@versini/sassysaint 8.113.0 → 8.114.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (81) hide show
  1. package/dist/chunks/{AboutChangelog.Ca_-0R2Z.js → AboutChangelog.BRKQCkR7.js} +2 -2
  2. package/dist/chunks/{AboutEntry.d0wBsNrA.js → AboutEntry.DJiEOY0P.js} +7 -7
  3. package/dist/chunks/{App.Cq8qzFk_.js → App.BAM2I5AW.js} +209 -206
  4. package/dist/chunks/{Bubble.Cv3jM5GI.js → Bubble.BVVtityP.js} +1 -1
  5. package/dist/chunks/{ButtonIconDelete.DLEr4aRh.js → ButtonIconDelete.7y-gm-Dt.js} +2 -2
  6. package/dist/chunks/{Chart.DtaEPJXs.js → Chart.DtjM-Aet.js} +2 -2
  7. package/dist/chunks/{ChatBubbleAssistant.CJ8KkIfU.js → ChatBubbleAssistant.BYoRcC_t.js} +4 -4
  8. package/dist/chunks/{ChatBubbleUser.BqD9i861.js → ChatBubbleUser._O3tGQOo.js} +3 -3
  9. package/dist/chunks/{ChatHistoryTable.BsiGSi8P.js → ChatHistoryTable.B4Bkgt-a.js} +11 -11
  10. package/dist/chunks/{HistoryEntry.DwDFj_Ul.js → HistoryEntry.kjIxebIy.js} +38 -38
  11. package/dist/chunks/{LoginEntry.BobCLcqT.js → LoginEntry.CVyZjMRf.js} +4 -4
  12. package/dist/chunks/{LogoEntry.Bmkirjfi.js → LogoEntry.DsjEGI9Q.js} +212 -212
  13. package/dist/chunks/{MemoriesEntry.DJqg-T1a.js → MemoriesEntry.pWnmnsBR.js} +5 -5
  14. package/dist/chunks/{ProfileEntry.CmxgoGnW.js → ProfileEntry.CUV-9iMm.js} +4 -4
  15. package/dist/chunks/{SettingsEntry.DHDvN-1t.js → SettingsEntry.D7f2JSbh.js} +21 -21
  16. package/dist/chunks/{UsageEntry.BDfnFUrH.js → UsageEntry.Zc_UQH0X.js} +5 -5
  17. package/dist/chunks/{_baseUniq.Dqe5_Toi.js → _baseUniq.Dz8vqFYn.js} +1 -1
  18. package/dist/chunks/{arc.CGZV-MjU.js → arc.Cel1vAaw.js} +1 -1
  19. package/dist/chunks/{architecture-U656AL7Q.C90Ax7My.js → architecture-U656AL7Q.Bau_6x2T.js} +1 -1
  20. package/dist/chunks/{architectureDiagram-VXUJARFQ.C0rS0fWw.js → architectureDiagram-VXUJARFQ.CTJCoMJR.js} +4 -4
  21. package/dist/chunks/{blockDiagram-VD42YOAC.DznxMf4F.js → blockDiagram-VD42YOAC.C1fZF2Qi.js} +5 -5
  22. package/dist/chunks/{browser.BnaQHHqz.js → browser.IFlLSBVr.js} +1 -1
  23. package/dist/chunks/{c4Diagram-YG6GDRKO.CWhiqagE.js → c4Diagram-YG6GDRKO.DxfEXSDw.js} +2 -2
  24. package/dist/chunks/{channel.BB9TnGcL.js → channel.Crqqf8xS.js} +1 -1
  25. package/dist/chunks/{chunk-4BX2VUAB.7Zy44KUT.js → chunk-4BX2VUAB.B1sp6OG-.js} +1 -1
  26. package/dist/chunks/{chunk-55IACEB6.Lg0HIhiW.js → chunk-55IACEB6.7jeAOT6R.js} +1 -1
  27. package/dist/chunks/{chunk-B4BG7PRW._kvdklxD.js → chunk-B4BG7PRW.DpbI4cYu.js} +4 -4
  28. package/dist/chunks/{chunk-DI55MBZ5.ClpeQBli.js → chunk-DI55MBZ5.BiaDWUoQ.js} +3 -3
  29. package/dist/chunks/{chunk-FMBD7UC4.CqySj1TF.js → chunk-FMBD7UC4.BXyTIYDT.js} +1 -1
  30. package/dist/chunks/{chunk-QN33PNHL.AHj100hS.js → chunk-QN33PNHL.CN1KQ5dZ.js} +1 -1
  31. package/dist/chunks/{chunk-QZHKN3VN.OZ_ibyKi.js → chunk-QZHKN3VN.Dy4HzwJh.js} +1 -1
  32. package/dist/chunks/{chunk-TZMSLE5B.BA1BUwQ7.js → chunk-TZMSLE5B.8O_SYqSk.js} +1 -1
  33. package/dist/chunks/{classDiagram-2ON5EDUG.CuY8-09E.js → classDiagram-2ON5EDUG.C6SjOQZA.js} +2 -2
  34. package/dist/chunks/{classDiagram-v2-WZHVMYZB.CuY8-09E.js → classDiagram-v2-WZHVMYZB.C6SjOQZA.js} +2 -2
  35. package/dist/chunks/{clone.WhR2JIG7.js → clone.kHBv66Fv.js} +1 -1
  36. package/dist/chunks/{cose-bilkent-S5V4N54A.BcOQBmqz.js → cose-bilkent-S5V4N54A.CfZ8BOz7.js} +2 -2
  37. package/dist/chunks/{dagre-6UL2VRFP.Cxd9fG-F.js → dagre-6UL2VRFP.CvznJZiK.js} +5 -5
  38. package/dist/chunks/{diagram-PSM6KHXK.CLlexIci.js → diagram-PSM6KHXK.DrCu00Da.js} +4 -4
  39. package/dist/chunks/{diagram-QEK2KX5R.BTEc1ujY.js → diagram-QEK2KX5R.bE9TmGHp.js} +3 -3
  40. package/dist/chunks/{diagram-S2PKOQOG.CbTML28c.js → diagram-S2PKOQOG.DEy1COfR.js} +3 -3
  41. package/dist/chunks/{erDiagram-Q2GNP2WA.Df1MoHo8.js → erDiagram-Q2GNP2WA.D8b03MLg.js} +4 -4
  42. package/dist/chunks/{flowDiagram-NV44I4VS.jpS_I-dM.js → flowDiagram-NV44I4VS.DInwRk_j.js} +5 -5
  43. package/dist/chunks/{ganttDiagram-JELNMOA3.Oku1ntVE.js → ganttDiagram-JELNMOA3.Dybk4mrA.js} +2 -2
  44. package/dist/chunks/{gitGraph-F6HP7TQM.D89wWij9.js → gitGraph-F6HP7TQM.CxG_IW1H.js} +1 -1
  45. package/dist/chunks/{gitGraphDiagram-NY62KEGX.BptpVeuk.js → gitGraphDiagram-NY62KEGX.CeGGEPgi.js} +4 -4
  46. package/dist/chunks/{graph.Cj535hCW.js → graph.DxS0Bwc6.js} +2 -2
  47. package/dist/chunks/{index.Q9yZjdlK.js → index.BioJzCYL.js} +1 -1
  48. package/dist/chunks/{index.BdwPaWcz.js → index.BkomSwOE.js} +604 -554
  49. package/dist/chunks/{index.1ELMiZ8D.js → index.BodQYsJf.js} +3 -3
  50. package/dist/chunks/{index.BaCt_uGv.js → index.C5NafzGQ.js} +1 -1
  51. package/dist/chunks/{index.DWX-wHHb.js → index.Co-f17DV.js} +1 -1
  52. package/dist/chunks/{index.BWr_28b7.js → index.D85YI7Wl.js} +1 -1
  53. package/dist/chunks/{index.CM45pRF7.js → index.Dye0BS6x.js} +1 -1
  54. package/dist/chunks/{index.z-5IhSKr.js → index.kZl7F18r.js} +3 -3
  55. package/dist/chunks/{index.ycTAFvKg.js → index.pc6V2BBc.js} +1 -1
  56. package/dist/chunks/{info-NVLQJR56.oTyx52uE.js → info-NVLQJR56.gbsK-wAt.js} +1 -1
  57. package/dist/chunks/{infoDiagram-WHAUD3N6.g6JDcDNU.js → infoDiagram-WHAUD3N6.B1L4Txav.js} +2 -2
  58. package/dist/chunks/{journeyDiagram-XKPGCS4Q.f_92qAl0.js → journeyDiagram-XKPGCS4Q.CzGFwIGW.js} +4 -4
  59. package/dist/chunks/{kanban-definition-3W4ZIXB7.B3gL60Q9.js → kanban-definition-3W4ZIXB7.D510ik0K.js} +2 -2
  60. package/dist/chunks/{layout.BLvY5Ig2.js → layout.BbStGyH7.js} +4 -4
  61. package/dist/chunks/{mermaid-parser.core.DST2gLCf.js → mermaid-parser.core.DLoOBoS2.js} +10 -10
  62. package/dist/chunks/{min.DOBvLEmc.js → min.C2iTESft.js} +2 -2
  63. package/dist/chunks/{mindmap-definition-VGOIOE7T.CK488S2A.js → mindmap-definition-VGOIOE7T.BJ7Xufd2.js} +4 -4
  64. package/dist/chunks/{packet-BFZMPI3H.CF4QtBQx.js → packet-BFZMPI3H.CadD0Dpw.js} +1 -1
  65. package/dist/chunks/{pie-7BOR55EZ.B93_9bCD.js → pie-7BOR55EZ.CmGOMfn4.js} +1 -1
  66. package/dist/chunks/{pieDiagram-ADFJNKIX.C_yA28Ld.js → pieDiagram-ADFJNKIX.DvO6qHxs.js} +4 -4
  67. package/dist/chunks/{quadrantDiagram-AYHSOK5B.ufnw7lik.js → quadrantDiagram-AYHSOK5B.BYidVb51.js} +1 -1
  68. package/dist/chunks/{radar-NHE76QYJ.D7PBakm5.js → radar-NHE76QYJ.Bj6P60wg.js} +1 -1
  69. package/dist/chunks/{rehype-mermaid.8n0pbfjI.js → rehype-mermaid.B4U14ID3.js} +33 -33
  70. package/dist/chunks/{requirementDiagram-UZGBJVZJ.Uc5GMBA0.js → requirementDiagram-UZGBJVZJ.CCDdZAAy.js} +3 -3
  71. package/dist/chunks/{sankeyDiagram-TZEHDZUN.BLq90Q-Y.js → sankeyDiagram-TZEHDZUN.CMA4B14I.js} +1 -1
  72. package/dist/chunks/{sequenceDiagram-WL72ISMW.CUq7bUmz.js → sequenceDiagram-WL72ISMW.JdF7_fNB.js} +3 -3
  73. package/dist/chunks/{stateDiagram-FKZM4ZOC.DaWP7cRp.js → stateDiagram-FKZM4ZOC.CTOT4T2A.js} +4 -4
  74. package/dist/chunks/{stateDiagram-v2-4FDKWEC3.CLTyxBua.js → stateDiagram-v2-4FDKWEC3.DcDToOq5.js} +2 -2
  75. package/dist/chunks/{timeline-definition-IT6M3QCI.BZbALyFR.js → timeline-definition-IT6M3QCI.AOnuXGL7.js} +2 -2
  76. package/dist/chunks/{treemap-KMMF4GRG.B4HMZPBF.js → treemap-KMMF4GRG.h1nXfThB.js} +1 -1
  77. package/dist/chunks/{useMarkdown.BXgiegIf.js → useMarkdown.C3lDppOG.js} +942 -874
  78. package/dist/chunks/{xychartDiagram-PRI3JC2R.CZybyhJi.js → xychartDiagram-PRI3JC2R.BHkiS_uf.js} +1 -1
  79. package/dist/components/SassySaint/SassySaint.js +1 -1
  80. package/dist/index.js +3 -3
  81. package/package.json +3 -3
@@ -1,8 +1,8 @@
1
1
  import { jsx as h, jsxs as z, Fragment as ut } from "react/jsx-runtime";
2
- import { ACTION_SORT as lu, ACTION_SEARCH as uu, ACTION_RESET_PROMPT as Ya, ACTION_TOGGLE_PROMPT as Ja, LOCAL_STORAGE_PREFIX as He, LOCAL_STORAGE_CHAT_ID as Kn, n as $e, useChat as du, DEFAULT_ICON_ACTION_SIZE as tt, isTauri as sr, useUserPreferences as bt, serverUrl as Ka, useEntitlements as Mo, useSaveChat as fu, LOCAL_STORAGE_PRIVATE_DISCLOSURE as pu, B as ar, LOCAL_STORAGE_REASONING_DISCLOSURE as mu, PROMPT_EDITABLE_AREA_CLASSNAME as hu, PROMPT_CLASSNAME as gu, j as Xa, ERROR_MESSAGE as vu, o as cn, U as yu, INPUT_BOTTOM_OFFSET_IPHONE as bu, INPUT_BOTTOM_OFFSET_IPAD as wu, INPUT_BOTTOM_OFFSET as qa, INPUT_BOTTOM_OFFSET_EXTRA as Fr, getLayoutPaddingClass as uo, canEvaluateModels as us, k as _u, a as Eu, i as Su, s as Cu, x as xu, c as Zr, setNewProvider as ds, useQueryClient as Iu, n$1 as fo, useServerCapabilities as Tu, getMessageContaintWrapperClass as Au, UI_FOOTER_BUFFER as Qa, UI_BUTTON_SCROLL_BUFFER as Ru, UI_DEFAULT_MAIN_HEIGHT as fs, e as Ou, applyOledMode as Nu, UI_DEFAULT_MAIN_HEIGHT_IPHONE as Pu, y as ps, v as Mu, LOCAL_STORAGE_SORT as ku, LOCAL_STORAGE_SEARCH as Du, LOCAL_STORAGE_OLED_MODE as $u, LOCAL_STORAGE_FULL_SCREEN as Lu, LOCAL_STORAGE_SORT_TIMESTAMP as zu, LOCAL_STORAGE_SORT_TOKEN_USAGE as Fu } from "./index.BdwPaWcz.js";
2
+ import { ACTION_SORT as lu, ACTION_SEARCH as uu, ACTION_RESET_PROMPT as Ya, ACTION_TOGGLE_PROMPT as Ja, LOCAL_STORAGE_PREFIX as Ve, LOCAL_STORAGE_CHAT_ID as Kn, n as $e, useChat as du, DEFAULT_ICON_ACTION_SIZE as tt, isTauri as sr, useUserPreferences as bt, serverUrl as Ka, useEntitlements as Mo, useSaveChat as fu, LOCAL_STORAGE_PRIVATE_DISCLOSURE as pu, F as ar, LOCAL_STORAGE_REASONING_DISCLOSURE as mu, PROMPT_EDITABLE_AREA_CLASSNAME as hu, PROMPT_CLASSNAME as gu, X as Xa, ERROR_MESSAGE as vu, o as cn, v as yu, INPUT_BOTTOM_OFFSET_IPHONE as bu, INPUT_BOTTOM_OFFSET_IPAD as wu, INPUT_BOTTOM_OFFSET as qa, INPUT_BOTTOM_OFFSET_EXTRA as Fr, getLayoutPaddingClass as uo, canEvaluateModels as us, x as _u, a as Eu, i as Su, s as Cu, W as xu, c as Zr, setNewProvider as ds, useQueryClient as Iu, n$1 as fo, useServerCapabilities as Tu, getMessageContaintWrapperClass as Au, UI_FOOTER_BUFFER as Qa, UI_BUTTON_SCROLL_BUFFER as Ru, UI_DEFAULT_MAIN_HEIGHT as fs, e as Ou, applyOledMode as Nu, UI_DEFAULT_MAIN_HEIGHT_IPHONE as Pu, y as ps, V as Mu, LOCAL_STORAGE_SORT as ku, LOCAL_STORAGE_SEARCH as Du, LOCAL_STORAGE_OLED_MODE as $u, LOCAL_STORAGE_FULL_SCREEN as Lu, LOCAL_STORAGE_SORT_TIMESTAMP as zu, LOCAL_STORAGE_SORT_TOKEN_USAGE as Fu } from "./index.BkomSwOE.js";
3
3
  import * as w from "react";
4
4
  import Ze, { useSyncExternalStore as Xn, useCallback as J, useEffect as Z, useRef as W, useState as B, createContext as ei, useContext as de, useMemo as Ae, useId as ti, useLayoutEffect as _n, cloneElement as ni, Suspense as ir, lazy as ot, useReducer as Dn } from "react";
5
- import { TableCellSortDirections as on, ChatContext as Le, useTheme as Ke, ButtonIcon as st, IconAddLight as Zu, IconCloseLight as Uu, IconEditLight as ju, Button as ri, IconLockedLight as Bu, IconUnlockedLight as Hu, IconNext as Vu, IconSelected as Wu, IconUnSelected as Gu, PromptsContext as ko, IconBookSparklesLight as Yu, IconRewrite as Ju, IconProofread as Ku, IconMagic as Xu, IconLightBulbLight as qu, IconSendLight as Qu, INPUT_PLACEHOLDER_TEXT_IN_SESSION as oi, INPUT_PLACEHOLDER_TEXT_MORNING as ed, INPUT_PLACEHOLDER_TEXT_TODAY as td, INPUT_PLACEHOLDER_TEXT_AFTERNOON as nd, INPUT_PLACEHOLDER_TEXT_EVENING as rd, INPUT_PLACEHOLDER_TEXT_NIGHT as od, INPUT_PLACEHOLDER_TEXT_DEFAULT as sd, IconClose as ad, AppContext as En, useUniqueId as id, CLIPBOARD_PROMPT as ms, FOOTER_DISCLAIMERS as hs, useResizeObserver as si, APP_SET_FOOTER_HEIGHT as cd, FOOTER_TOP as po, FOOTER_BOTTOM as sn, APP_SET_FOOTER_POSITION as Ur, IconOpenAI as ld, IconAnthropic as ud, IconGoogleGemini as dd, TOAST_PROVIDER_CHANGED as gs, LOG_OUT as vs, IconProfile as fd, IconSliders as pd, IconHistory as md, IconEditUser as hd, IconChart as gd, IconInfo as vd, IconBack as yd, IconSettings as bd, Logo as wd, appReducer as _d, APP_SET_OLED_MODE as Ed, APP_SET_FULL_SCREEN as Sd, APP_SET_THEME_MODE as Cd, APP_SET_THEME_PALETTE as xd, HistoryContext as Id, APP_CLASSNAME as Td } from "./LogoEntry.Bmkirjfi.js";
5
+ import { TableCellSortDirections as on, ChatContext as Le, useTheme as Ke, ButtonIcon as st, IconAddLight as Zu, IconCloseLight as Uu, IconEditLight as ju, Button as ri, IconLockedLight as Bu, IconUnlockedLight as Vu, IconNext as Hu, IconSelected as Wu, IconUnSelected as Gu, PromptsContext as ko, IconBookSparklesLight as Yu, IconRewrite as Ju, IconProofread as Ku, IconMagic as Xu, IconLightBulbLight as qu, IconSendLight as Qu, INPUT_PLACEHOLDER_TEXT_IN_SESSION as oi, INPUT_PLACEHOLDER_TEXT_MORNING as ed, INPUT_PLACEHOLDER_TEXT_TODAY as td, INPUT_PLACEHOLDER_TEXT_AFTERNOON as nd, INPUT_PLACEHOLDER_TEXT_EVENING as rd, INPUT_PLACEHOLDER_TEXT_NIGHT as od, INPUT_PLACEHOLDER_TEXT_DEFAULT as sd, IconClose as ad, AppContext as En, useUniqueId as id, CLIPBOARD_PROMPT as ms, FOOTER_DISCLAIMERS as hs, useResizeObserver as si, APP_SET_FOOTER_HEIGHT as cd, FOOTER_TOP as po, FOOTER_BOTTOM as sn, APP_SET_FOOTER_POSITION as Ur, IconOpenAI as ld, IconAnthropic as ud, IconGoogleGemini as dd, TOAST_PROVIDER_CHANGED as gs, LOG_OUT as vs, IconProfile as fd, IconSliders as pd, IconHistory as md, IconEditUser as hd, IconChart as gd, IconInfo as vd, IconBack as yd, IconSettings as bd, Logo as wd, appReducer as _d, APP_SET_OLED_MODE as Ed, APP_SET_FULL_SCREEN as Sd, APP_SET_THEME_MODE as Cd, APP_SET_THEME_PALETTE as xd, HistoryContext as Id, APP_CLASSNAME as Td } from "./LogoEntry.DsjEGI9Q.js";
6
6
  import U, { clsx as dt } from "clsx";
7
7
  import { useFloatingParentNodeId as Ad, FloatingTree as Rd, useMergeRefs as Od, FloatingNode as Nd, FloatingPortal as Pd, FloatingOverlay as Md, FloatingFocusManager as kd, useFloatingNodeId as Dd, useFloating as $d, useClick as Ld, useDismiss as zd, useRole as Fd, useInteractions as Zd } from "@floating-ui/react";
8
8
  import * as ai from "react-dom";
@@ -61,17 +61,17 @@ const b0 = (e, t) => {
61
61
  return (...r) => {
62
62
  window.clearTimeout(n), n = window.setTimeout(() => e(...r), t);
63
63
  };
64
- }, Ht = () => window.innerWidth < 403, Hd = () => window.innerWidth >= 403 && window.innerWidth <= 1220, We = () => {
64
+ }, Vt = () => window.innerWidth < 403, Vd = () => window.innerWidth >= 403 && window.innerWidth <= 1220, We = () => {
65
65
  const e = [
66
66
  "iPhone Simulator",
67
67
  "iPhone"
68
- ].includes(navigator.platform) || navigator.userAgent.includes("Mac") && "ontouchend" in document || window.indexedDB !== null, t = /iPhone/.test(navigator.userAgent), n = Ht(), r = navigator.maxTouchPoints > 1;
68
+ ].includes(navigator.platform) || navigator.userAgent.includes("Mac") && "ontouchend" in document || window.indexedDB !== null, t = /iPhone/.test(navigator.userAgent), n = Vt(), r = navigator.maxTouchPoints > 1;
69
69
  return e && t && n && r;
70
- }, Vd = () => {
70
+ }, Hd = () => {
71
71
  const e = [
72
72
  "iPad Simulator",
73
73
  "iPad"
74
- ].includes(navigator.platform) || navigator.userAgent.includes("Mac") && "ontouchend" in document || window.indexedDB !== null, t = Hd(), n = navigator.maxTouchPoints > 1;
74
+ ].includes(navigator.platform) || navigator.userAgent.includes("Mac") && "ontouchend" in document || window.indexedDB !== null, t = Vd(), n = navigator.maxTouchPoints > 1;
75
75
  return e && t && n;
76
76
  }, Wd = () => window.matchMedia("(display-mode: standalone)").matches || window.navigator.standalone === !0, w0 = (e, t) => t === 1 ? e : `${e}s`, _0 = new Intl.NumberFormat("en", {
77
77
  signDisplay: "never",
@@ -136,7 +136,7 @@ Error message: ${ui(t)}`,
136
136
  static isInstance(e) {
137
137
  return ft.hasMarker(e, mi);
138
138
  }
139
- }, hi = "AI_TypeValidationError", gi = `vercel.ai.error.${hi}`, Xd = Symbol.for(gi), Ts, As, Vt = class mo extends (As = ft, Ts = Xd, As) {
139
+ }, hi = "AI_TypeValidationError", gi = `vercel.ai.error.${hi}`, Xd = Symbol.for(gi), Ts, As, Ht = class mo extends (As = ft, Ts = Xd, As) {
140
140
  constructor({ value: t, cause: n }) {
141
141
  super({
142
142
  name: hi,
@@ -546,7 +546,7 @@ function Lf(e) {
546
546
  const zf = (e) => {
547
547
  const t = e ? `[\\s\\S]{${e?.minimum ?? 0},${e?.maximum ?? ""}}` : "[\\s\\S]*";
548
548
  return new RegExp(`^${t}$`);
549
- }, Ff = /^\d+$/, Zf = /^-?\d+(?:\.\d+)?/i, Uf = /true|false/i, jf = /null/i, Bf = /^[^A-Z]*$/, Hf = /^[^a-z]*$/, _e = /* @__PURE__ */ C("$ZodCheck", (e, t) => {
549
+ }, Ff = /^\d+$/, Zf = /^-?\d+(?:\.\d+)?/i, Uf = /true|false/i, jf = /null/i, Bf = /^[^A-Z]*$/, Vf = /^[^a-z]*$/, _e = /* @__PURE__ */ C("$ZodCheck", (e, t) => {
550
550
  var n;
551
551
  e._zod ?? (e._zod = {}), e._zod.def = t, (n = e._zod).onattach ?? (n.onattach = []);
552
552
  }), Ai = {
@@ -587,7 +587,7 @@ const zf = (e) => {
587
587
  continue: !t.abort
588
588
  });
589
589
  };
590
- }), Vf = /* @__PURE__ */ C("$ZodCheckMultipleOf", (e, t) => {
590
+ }), Hf = /* @__PURE__ */ C("$ZodCheckMultipleOf", (e, t) => {
591
591
  _e.init(e, t), e._zod.onattach.push((n) => {
592
592
  var r;
593
593
  (r = n._zod.bag).multipleOf ?? (r.multipleOf = t.value);
@@ -760,7 +760,7 @@ const zf = (e) => {
760
760
  }), Xf = /* @__PURE__ */ C("$ZodCheckLowerCase", (e, t) => {
761
761
  t.pattern ?? (t.pattern = Bf), Er.init(e, t);
762
762
  }), qf = /* @__PURE__ */ C("$ZodCheckUpperCase", (e, t) => {
763
- t.pattern ?? (t.pattern = Hf), Er.init(e, t);
763
+ t.pattern ?? (t.pattern = Vf), Er.init(e, t);
764
764
  }), Qf = /* @__PURE__ */ C("$ZodCheckIncludes", (e, t) => {
765
765
  _e.init(e, t);
766
766
  const n = Sn(t.includes), r = new RegExp(typeof t.position == "number" ? `^.{${t.position}}${n}` : n);
@@ -1548,12 +1548,12 @@ const Fp = /* @__PURE__ */ C("$ZodRecord", (e, t) => {
1548
1548
  const n = t.innerType._zod.pattern;
1549
1549
  return n ? new RegExp(`^(${Lo(n.source)})?$`) : void 0;
1550
1550
  }), e._zod.parse = (n, r) => t.innerType._zod.optin === "optional" ? t.innerType._zod.run(n, r) : n.value === void 0 ? n : t.innerType._zod.run(n, r);
1551
- }), Hp = /* @__PURE__ */ C("$ZodNullable", (e, t) => {
1551
+ }), Vp = /* @__PURE__ */ C("$ZodNullable", (e, t) => {
1552
1552
  te.init(e, t), K(e._zod, "optin", () => t.innerType._zod.optin), K(e._zod, "optout", () => t.innerType._zod.optout), K(e._zod, "pattern", () => {
1553
1553
  const n = t.innerType._zod.pattern;
1554
1554
  return n ? new RegExp(`^(${Lo(n.source)}|null)$`) : void 0;
1555
1555
  }), K(e._zod, "values", () => t.innerType._zod.values ? /* @__PURE__ */ new Set([...t.innerType._zod.values, null]) : void 0), e._zod.parse = (n, r) => n.value === null ? n : t.innerType._zod.run(n, r);
1556
- }), Vp = /* @__PURE__ */ C("$ZodDefault", (e, t) => {
1556
+ }), Hp = /* @__PURE__ */ C("$ZodDefault", (e, t) => {
1557
1557
  te.init(e, t), e._zod.optin = "optional", K(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (n, r) => {
1558
1558
  if (n.value === void 0)
1559
1559
  return n.value = t.defaultValue, n;
@@ -1994,7 +1994,7 @@ function Br(e, t) {
1994
1994
  });
1995
1995
  }
1996
1996
  function js(e, t) {
1997
- return new Vf({
1997
+ return new Hf({
1998
1998
  check: "multiple_of",
1999
1999
  ...P(t),
2000
2000
  value: e
@@ -2104,7 +2104,7 @@ function Bm(e, t, n) {
2104
2104
  ...r
2105
2105
  });
2106
2106
  }
2107
- function Hm(e, t, n) {
2107
+ function Vm(e, t, n) {
2108
2108
  return new e({
2109
2109
  type: "custom",
2110
2110
  check: "custom",
@@ -2513,7 +2513,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
2513
2513
  }
2514
2514
  }
2515
2515
  }
2516
- function Vm(e, t) {
2516
+ function Hm(e, t) {
2517
2517
  if (e instanceof ki) {
2518
2518
  const r = new Bs(t), o = {};
2519
2519
  for (const a of e._idmap.entries()) {
@@ -2682,7 +2682,7 @@ const eh = (e, t) => {
2682
2682
  ]
2683
2683
  }
2684
2684
  // { parent: true }
2685
- ), e.clone = (n, r) => Pt(e, n, r), e.brand = () => e, e.register = ((n, r) => (n.add(e, r), e)), e.parse = (n, r) => th(e, n, r, { callee: e.parse }), e.safeParse = (n, r) => rh(e, n, r), e.parseAsync = async (n, r) => nh(e, n, r, { callee: e.parseAsync }), e.safeParseAsync = async (n, r) => Li(e, n, r), e.spa = e.safeParseAsync, e.refine = (n, r) => e.check(qh(n, r)), e.superRefine = (n) => e.check(Qh(n)), e.overwrite = (n) => e.check(Cn(n)), e.optional = () => Ws(e), e.nullable = () => Gs(e), e.nullish = () => Ws(Gs(e)), e.nonoptional = (n) => Bh(e, n), e.array = () => Yt(e), e.or = (n) => ye([e, n]), e.and = (n) => Mh(e, n), e.transform = (n) => Ys(e, Lh(n)), e.default = (n) => Zh(e, n), e.prefault = (n) => jh(e, n), e.catch = (n) => Vh(e, n), e.pipe = (n) => Ys(e, n), e.readonly = () => Yh(e), e.describe = (n) => {
2685
+ ), e.clone = (n, r) => Pt(e, n, r), e.brand = () => e, e.register = ((n, r) => (n.add(e, r), e)), e.parse = (n, r) => th(e, n, r, { callee: e.parse }), e.safeParse = (n, r) => rh(e, n, r), e.parseAsync = async (n, r) => nh(e, n, r, { callee: e.parseAsync }), e.safeParseAsync = async (n, r) => Li(e, n, r), e.spa = e.safeParseAsync, e.refine = (n, r) => e.check(qh(n, r)), e.superRefine = (n) => e.check(Qh(n)), e.overwrite = (n) => e.check(Cn(n)), e.optional = () => Ws(e), e.nullable = () => Gs(e), e.nullish = () => Ws(Gs(e)), e.nonoptional = (n) => Bh(e, n), e.array = () => Yt(e), e.or = (n) => ye([e, n]), e.and = (n) => Mh(e, n), e.transform = (n) => Ys(e, Lh(n)), e.default = (n) => Zh(e, n), e.prefault = (n) => jh(e, n), e.catch = (n) => Hh(e, n), e.pipe = (n) => Ys(e, n), e.readonly = () => Yh(e), e.describe = (n) => {
2686
2686
  const r = e.clone();
2687
2687
  return Qt.add(r, { description: n }), r;
2688
2688
  }, Object.defineProperty(e, "description", {
@@ -2700,7 +2700,7 @@ const eh = (e, t) => {
2700
2700
  const n = e._zod.bag;
2701
2701
  e.format = n.format ?? null, e.minLength = n.minimum ?? null, e.maxLength = n.maximum ?? null, e.regex = (...r) => e.check(Pm(...r)), e.includes = (...r) => e.check(Dm(...r)), e.startsWith = (...r) => e.check($m(...r)), e.endsWith = (...r) => e.check(Lm(...r)), e.min = (...r) => e.check(ur(...r)), e.max = (...r) => e.check(Di(...r)), e.length = (...r) => e.check($i(...r)), e.nonempty = (...r) => e.check(ur(1, ...r)), e.lowercase = (r) => e.check(Mm(r)), e.uppercase = (r) => e.check(km(r)), e.trim = () => e.check(Fm()), e.normalize = (...r) => e.check(zm(...r)), e.toLowerCase = () => e.check(Zm()), e.toUpperCase = () => e.check(Um());
2702
2702
  }), oh = /* @__PURE__ */ C("ZodString", (e, t) => {
2703
- Fo.init(e, t), zi.init(e, t), e.email = (n) => e.check(tm(sh, n)), e.url = (n) => e.check(am(ah, n)), e.jwt = (n) => e.check(_m(_h, n)), e.emoji = (n) => e.check(im(ih, n)), e.guid = (n) => e.check(Fs(Hs, n)), e.uuid = (n) => e.check(nm(zn, n)), e.uuidv4 = (n) => e.check(rm(zn, n)), e.uuidv6 = (n) => e.check(om(zn, n)), e.uuidv7 = (n) => e.check(sm(zn, n)), e.nanoid = (n) => e.check(cm(ch, n)), e.guid = (n) => e.check(Fs(Hs, n)), e.cuid = (n) => e.check(lm(lh, n)), e.cuid2 = (n) => e.check(um(uh, n)), e.ulid = (n) => e.check(dm(dh, n)), e.base64 = (n) => e.check(ym(yh, n)), e.base64url = (n) => e.check(bm(bh, n)), e.xid = (n) => e.check(fm(fh, n)), e.ksuid = (n) => e.check(pm(ph, n)), e.ipv4 = (n) => e.check(mm(mh, n)), e.ipv6 = (n) => e.check(hm(hh, n)), e.cidrv4 = (n) => e.check(gm(gh, n)), e.cidrv6 = (n) => e.check(vm(vh, n)), e.e164 = (n) => e.check(wm(wh, n)), e.datetime = (n) => e.check(Gm(n)), e.date = (n) => e.check(Jm(n)), e.time = (n) => e.check(Xm(n)), e.duration = (n) => e.check(Qm(n));
2703
+ Fo.init(e, t), zi.init(e, t), e.email = (n) => e.check(tm(sh, n)), e.url = (n) => e.check(am(ah, n)), e.jwt = (n) => e.check(_m(_h, n)), e.emoji = (n) => e.check(im(ih, n)), e.guid = (n) => e.check(Fs(Vs, n)), e.uuid = (n) => e.check(nm(zn, n)), e.uuidv4 = (n) => e.check(rm(zn, n)), e.uuidv6 = (n) => e.check(om(zn, n)), e.uuidv7 = (n) => e.check(sm(zn, n)), e.nanoid = (n) => e.check(cm(ch, n)), e.guid = (n) => e.check(Fs(Vs, n)), e.cuid = (n) => e.check(lm(lh, n)), e.cuid2 = (n) => e.check(um(uh, n)), e.ulid = (n) => e.check(dm(dh, n)), e.base64 = (n) => e.check(ym(yh, n)), e.base64url = (n) => e.check(bm(bh, n)), e.xid = (n) => e.check(fm(fh, n)), e.ksuid = (n) => e.check(pm(ph, n)), e.ipv4 = (n) => e.check(mm(mh, n)), e.ipv6 = (n) => e.check(hm(hh, n)), e.cidrv4 = (n) => e.check(gm(gh, n)), e.cidrv6 = (n) => e.check(vm(vh, n)), e.e164 = (n) => e.check(wm(wh, n)), e.datetime = (n) => e.check(Gm(n)), e.date = (n) => e.check(Jm(n)), e.time = (n) => e.check(Xm(n)), e.duration = (n) => e.check(Qm(n));
2704
2704
  });
2705
2705
  function A(e) {
2706
2706
  return em(oh, e);
@@ -2709,7 +2709,7 @@ const ae = /* @__PURE__ */ C("ZodStringFormat", (e, t) => {
2709
2709
  oe.init(e, t), zi.init(e, t);
2710
2710
  }), sh = /* @__PURE__ */ C("ZodEmail", (e, t) => {
2711
2711
  ip.init(e, t), ae.init(e, t);
2712
- }), Hs = /* @__PURE__ */ C("ZodGUID", (e, t) => {
2712
+ }), Vs = /* @__PURE__ */ C("ZodGUID", (e, t) => {
2713
2713
  sp.init(e, t), ae.init(e, t);
2714
2714
  }), zn = /* @__PURE__ */ C("ZodUUID", (e, t) => {
2715
2715
  ap.init(e, t), ae.init(e, t);
@@ -2746,7 +2746,7 @@ const ae = /* @__PURE__ */ C("ZodStringFormat", (e, t) => {
2746
2746
  }), _h = /* @__PURE__ */ C("ZodJWT", (e, t) => {
2747
2747
  Rp.init(e, t), ae.init(e, t);
2748
2748
  }), Fi = /* @__PURE__ */ C("ZodNumber", (e, t) => {
2749
- Pi.init(e, t), se.init(e, t), e.gt = (r, o) => e.check(Us(r, o)), e.gte = (r, o) => e.check(Br(r, o)), e.min = (r, o) => e.check(Br(r, o)), e.lt = (r, o) => e.check(Zs(r, o)), e.lte = (r, o) => e.check(jr(r, o)), e.max = (r, o) => e.check(jr(r, o)), e.int = (r) => e.check(Vs(r)), e.safe = (r) => e.check(Vs(r)), e.positive = (r) => e.check(Us(0, r)), e.nonnegative = (r) => e.check(Br(0, r)), e.negative = (r) => e.check(Zs(0, r)), e.nonpositive = (r) => e.check(jr(0, r)), e.multipleOf = (r, o) => e.check(js(r, o)), e.step = (r, o) => e.check(js(r, o)), e.finite = () => e;
2749
+ Pi.init(e, t), se.init(e, t), e.gt = (r, o) => e.check(Us(r, o)), e.gte = (r, o) => e.check(Br(r, o)), e.min = (r, o) => e.check(Br(r, o)), e.lt = (r, o) => e.check(Zs(r, o)), e.lte = (r, o) => e.check(jr(r, o)), e.max = (r, o) => e.check(jr(r, o)), e.int = (r) => e.check(Hs(r)), e.safe = (r) => e.check(Hs(r)), e.positive = (r) => e.check(Us(0, r)), e.nonnegative = (r) => e.check(Br(0, r)), e.negative = (r) => e.check(Zs(0, r)), e.nonpositive = (r) => e.check(jr(0, r)), e.multipleOf = (r, o) => e.check(js(r, o)), e.step = (r, o) => e.check(js(r, o)), e.finite = () => e;
2750
2750
  const n = e._zod.bag;
2751
2751
  e.minValue = Math.max(n.minimum ?? Number.NEGATIVE_INFINITY, n.exclusiveMinimum ?? Number.NEGATIVE_INFINITY) ?? null, e.maxValue = Math.min(n.maximum ?? Number.POSITIVE_INFINITY, n.exclusiveMaximum ?? Number.POSITIVE_INFINITY) ?? null, e.isInt = (n.format ?? "").includes("int") || Number.isSafeInteger(n.multipleOf ?? 0.5), e.isFinite = !0, e.format = n.format ?? null;
2752
2752
  });
@@ -2756,7 +2756,7 @@ function Eh(e) {
2756
2756
  const Sh = /* @__PURE__ */ C("ZodNumberFormat", (e, t) => {
2757
2757
  Op.init(e, t), Fi.init(e, t);
2758
2758
  });
2759
- function Vs(e) {
2759
+ function Hs(e) {
2760
2760
  return Tm(Sh, e);
2761
2761
  }
2762
2762
  const Ch = /* @__PURE__ */ C("ZodBoolean", (e, t) => {
@@ -2790,7 +2790,7 @@ function Yt(e, t) {
2790
2790
  return jm(Rh, e, t);
2791
2791
  }
2792
2792
  const Ui = /* @__PURE__ */ C("ZodObject", (e, t) => {
2793
- $p.init(e, t), se.init(e, t), K(e, "shape", () => t.shape), e.keyof = () => Bi(Object.keys(e._zod.def.shape)), e.catchall = (n) => e.clone({ ...e._zod.def, catchall: n }), e.passthrough = () => e.clone({ ...e._zod.def, catchall: Ue() }), e.loose = () => e.clone({ ...e._zod.def, catchall: Ue() }), e.strict = () => e.clone({ ...e._zod.def, catchall: Zi() }), e.strip = () => e.clone({ ...e._zod.def, catchall: void 0 }), e.extend = (n) => af(e, n), e.merge = (n) => cf(e, n), e.pick = (n) => of(e, n), e.omit = (n) => sf(e, n), e.partial = (...n) => lf(Hi, e, n[0]), e.required = (...n) => uf(Vi, e, n[0]);
2793
+ $p.init(e, t), se.init(e, t), K(e, "shape", () => t.shape), e.keyof = () => Bi(Object.keys(e._zod.def.shape)), e.catchall = (n) => e.clone({ ...e._zod.def, catchall: n }), e.passthrough = () => e.clone({ ...e._zod.def, catchall: Ue() }), e.loose = () => e.clone({ ...e._zod.def, catchall: Ue() }), e.strict = () => e.clone({ ...e._zod.def, catchall: Zi() }), e.strip = () => e.clone({ ...e._zod.def, catchall: void 0 }), e.extend = (n) => af(e, n), e.merge = (n) => cf(e, n), e.pick = (n) => of(e, n), e.omit = (n) => sf(e, n), e.partial = (...n) => lf(Vi, e, n[0]), e.required = (...n) => uf(Hi, e, n[0]);
2794
2794
  });
2795
2795
  function ee(e, t) {
2796
2796
  const n = {
@@ -2929,17 +2929,17 @@ function Lh(e) {
2929
2929
  transform: e
2930
2930
  });
2931
2931
  }
2932
- const Hi = /* @__PURE__ */ C("ZodOptional", (e, t) => {
2932
+ const Vi = /* @__PURE__ */ C("ZodOptional", (e, t) => {
2933
2933
  Bp.init(e, t), se.init(e, t), e.unwrap = () => e._zod.def.innerType;
2934
2934
  });
2935
2935
  function Ws(e) {
2936
- return new Hi({
2936
+ return new Vi({
2937
2937
  type: "optional",
2938
2938
  innerType: e
2939
2939
  });
2940
2940
  }
2941
2941
  const zh = /* @__PURE__ */ C("ZodNullable", (e, t) => {
2942
- Hp.init(e, t), se.init(e, t), e.unwrap = () => e._zod.def.innerType;
2942
+ Vp.init(e, t), se.init(e, t), e.unwrap = () => e._zod.def.innerType;
2943
2943
  });
2944
2944
  function Gs(e) {
2945
2945
  return new zh({
@@ -2948,7 +2948,7 @@ function Gs(e) {
2948
2948
  });
2949
2949
  }
2950
2950
  const Fh = /* @__PURE__ */ C("ZodDefault", (e, t) => {
2951
- Vp.init(e, t), se.init(e, t), e.unwrap = () => e._zod.def.innerType, e.removeDefault = e.unwrap;
2951
+ Hp.init(e, t), se.init(e, t), e.unwrap = () => e._zod.def.innerType, e.removeDefault = e.unwrap;
2952
2952
  });
2953
2953
  function Zh(e, t) {
2954
2954
  return new Fh({
@@ -2971,21 +2971,21 @@ function jh(e, t) {
2971
2971
  }
2972
2972
  });
2973
2973
  }
2974
- const Vi = /* @__PURE__ */ C("ZodNonOptional", (e, t) => {
2974
+ const Hi = /* @__PURE__ */ C("ZodNonOptional", (e, t) => {
2975
2975
  Gp.init(e, t), se.init(e, t), e.unwrap = () => e._zod.def.innerType;
2976
2976
  });
2977
2977
  function Bh(e, t) {
2978
- return new Vi({
2978
+ return new Hi({
2979
2979
  type: "nonoptional",
2980
2980
  innerType: e,
2981
2981
  ...P(t)
2982
2982
  });
2983
2983
  }
2984
- const Hh = /* @__PURE__ */ C("ZodCatch", (e, t) => {
2984
+ const Vh = /* @__PURE__ */ C("ZodCatch", (e, t) => {
2985
2985
  Yp.init(e, t), se.init(e, t), e.unwrap = () => e._zod.def.innerType, e.removeCatch = e.unwrap;
2986
2986
  });
2987
- function Vh(e, t) {
2988
- return new Hh({
2987
+ function Hh(e, t) {
2988
+ return new Vh({
2989
2989
  type: "catch",
2990
2990
  innerType: e,
2991
2991
  catchValue: typeof t == "function" ? t : () => t
@@ -3034,7 +3034,7 @@ function Wi(e, t) {
3034
3034
  return Bm(Zo, e ?? (() => !0), t);
3035
3035
  }
3036
3036
  function qh(e, t = {}) {
3037
- return Hm(Zo, e, t);
3037
+ return Vm(Zo, e, t);
3038
3038
  }
3039
3039
  function Qh(e) {
3040
3040
  const t = Xh((n) => (n.addIssue = (r) => {
@@ -3068,14 +3068,14 @@ class Js extends Error {
3068
3068
  super(t), this.name = "ParseError", this.type = n.type, this.field = n.field, this.value = n.value, this.line = n.line;
3069
3069
  }
3070
3070
  }
3071
- function Hr(e) {
3071
+ function Vr(e) {
3072
3072
  }
3073
3073
  function eg(e) {
3074
3074
  if (typeof e == "function")
3075
3075
  throw new TypeError(
3076
3076
  "`callbacks` must be an object, got a function instead. Did you mean `{onEvent: fn}`?"
3077
3077
  );
3078
- const { onEvent: t = Hr, onError: n = Hr, onRetry: r = Hr, onComment: o } = e;
3078
+ const { onEvent: t = Vr, onError: n = Vr, onRetry: r = Vr, onComment: o } = e;
3079
3079
  let s = "", i = !0, a, c = "", l = "";
3080
3080
  function d(f) {
3081
3081
  const y = i ? f.replace(/^\xEF\xBB\xBF/, "") : f, [b, _] = tg(`${s}${y}`);
@@ -3441,7 +3441,7 @@ function wg(e) {
3441
3441
  const: e.value
3442
3442
  };
3443
3443
  }
3444
- var Vr = void 0, Ne = {
3444
+ var Hr = void 0, Ne = {
3445
3445
  /**
3446
3446
  * `c` was changed to `[cC]` to replicate /i flag
3447
3447
  */
@@ -3463,10 +3463,10 @@ var Vr = void 0, Ne = {
3463
3463
  * Fix in Zod:
3464
3464
  * https://github.com/colinhacks/zod/commit/9340fd51e48576a75adc919bff65dbc4a5d4c99b
3465
3465
  */
3466
- emoji: () => (Vr === void 0 && (Vr = RegExp(
3466
+ emoji: () => (Hr === void 0 && (Hr = RegExp(
3467
3467
  "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",
3468
3468
  "u"
3469
- )), Vr),
3469
+ )), Hr),
3470
3470
  /**
3471
3471
  * Unused
3472
3472
  */
@@ -4090,20 +4090,20 @@ function X(e, t, n = !1) {
4090
4090
  return c;
4091
4091
  }
4092
4092
  if (o && !n) {
4093
- const c = Hg(o, t);
4093
+ const c = Vg(o, t);
4094
4094
  if (c !== void 0)
4095
4095
  return c;
4096
4096
  }
4097
4097
  const s = { def: e, path: t.currentPath, jsonSchema: void 0 };
4098
4098
  t.seen.set(e, s);
4099
4099
  const i = jg(e, e.typeName, t), a = typeof i == "function" ? X(i(), t) : i;
4100
- if (a && Vg(e, t, a), t.postProcess) {
4100
+ if (a && Hg(e, t, a), t.postProcess) {
4101
4101
  const c = t.postProcess(a, e, t);
4102
4102
  return s.jsonSchema = a, c;
4103
4103
  }
4104
4104
  return s.jsonSchema = a, a;
4105
4105
  }
4106
- var Hg = (e, t) => {
4106
+ var Vg = (e, t) => {
4107
4107
  switch (t.$refStrategy) {
4108
4108
  case "root":
4109
4109
  return { $ref: e.path.join("/") };
@@ -4117,7 +4117,7 @@ var Hg = (e, t) => {
4117
4117
  )}! Defaulting to any`
4118
4118
  ), xe()) : t.$refStrategy === "seen" ? xe() : void 0;
4119
4119
  }
4120
- }, Vg = (e, t, n) => (e.description && (n.description = e.description), n), Wg = (e) => {
4120
+ }, Hg = (e, t, n) => (e.description && (n.description = e.description), n), Wg = (e) => {
4121
4121
  const t = lg(e), n = t.name !== void 0 ? [...t.basePath, t.definitionPath, t.name] : t.basePath;
4122
4122
  return {
4123
4123
  ...t,
@@ -4213,7 +4213,7 @@ function Kg(e) {
4213
4213
  const n = await e["~standard"].validate(t);
4214
4214
  return "value" in n ? { success: !0, value: n.value } : {
4215
4215
  success: !1,
4216
- error: new Vt({
4216
+ error: new Ht({
4217
4217
  value: t,
4218
4218
  cause: n.issues
4219
4219
  })
@@ -4244,7 +4244,7 @@ function qg(e, t) {
4244
4244
  return Cr(
4245
4245
  // defer json schema creation to avoid unnecessary computation when only validation is needed
4246
4246
  () => qn(
4247
- Vm(e, {
4247
+ Hm(e, {
4248
4248
  target: "draft-7",
4249
4249
  io: "input",
4250
4250
  reused: r ? "ref" : "inline"
@@ -4270,7 +4270,7 @@ async function ta({
4270
4270
  }) {
4271
4271
  const n = await fn({ value: e, schema: t });
4272
4272
  if (!n.success)
4273
- throw Vt.wrap({ value: e, cause: n.error });
4273
+ throw Ht.wrap({ value: e, cause: n.error });
4274
4274
  return n.value;
4275
4275
  }
4276
4276
  async function fn({
@@ -4284,13 +4284,13 @@ async function fn({
4284
4284
  const r = await n.validate(e);
4285
4285
  return r.success ? { success: !0, value: r.value, rawValue: e } : {
4286
4286
  success: !1,
4287
- error: Vt.wrap({ value: e, cause: r.error }),
4287
+ error: Ht.wrap({ value: e, cause: r.error }),
4288
4288
  rawValue: e
4289
4289
  };
4290
4290
  } catch (r) {
4291
4291
  return {
4292
4292
  success: !1,
4293
- error: Vt.wrap({ value: e, cause: r }),
4293
+ error: Ht.wrap({ value: e, cause: r }),
4294
4294
  rawValue: e
4295
4295
  };
4296
4296
  }
@@ -4368,34 +4368,34 @@ var na = "6.0.3", tc = ye([
4368
4368
  dn(A(), pn.optional()),
4369
4369
  Yt(pn)
4370
4370
  ])
4371
- ), V = dn(
4371
+ ), H = dn(
4372
4372
  A(),
4373
4373
  dn(A(), pn.optional())
4374
4374
  ), nc = ee({
4375
4375
  type: $("text"),
4376
4376
  text: A(),
4377
- providerOptions: V.optional()
4377
+ providerOptions: H.optional()
4378
4378
  }), sv = ee({
4379
4379
  type: $("image"),
4380
4380
  image: ye([tc, dr(URL)]),
4381
4381
  mediaType: A().optional(),
4382
- providerOptions: V.optional()
4382
+ providerOptions: H.optional()
4383
4383
  }), rc = ee({
4384
4384
  type: $("file"),
4385
4385
  data: ye([tc, dr(URL)]),
4386
4386
  filename: A().optional(),
4387
4387
  mediaType: A(),
4388
- providerOptions: V.optional()
4388
+ providerOptions: H.optional()
4389
4389
  }), av = ee({
4390
4390
  type: $("reasoning"),
4391
4391
  text: A(),
4392
- providerOptions: V.optional()
4392
+ providerOptions: H.optional()
4393
4393
  }), iv = ee({
4394
4394
  type: $("tool-call"),
4395
4395
  toolCallId: A(),
4396
4396
  toolName: A(),
4397
4397
  input: Ue(),
4398
- providerOptions: V.optional(),
4398
+ providerOptions: H.optional(),
4399
4399
  providerExecuted: ve().optional()
4400
4400
  }), cv = Nh(
4401
4401
  "type",
@@ -4403,27 +4403,27 @@ var na = "6.0.3", tc = ye([
4403
4403
  ee({
4404
4404
  type: $("text"),
4405
4405
  value: A(),
4406
- providerOptions: V.optional()
4406
+ providerOptions: H.optional()
4407
4407
  }),
4408
4408
  ee({
4409
4409
  type: $("json"),
4410
4410
  value: pn,
4411
- providerOptions: V.optional()
4411
+ providerOptions: H.optional()
4412
4412
  }),
4413
4413
  ee({
4414
4414
  type: $("execution-denied"),
4415
4415
  reason: A().optional(),
4416
- providerOptions: V.optional()
4416
+ providerOptions: H.optional()
4417
4417
  }),
4418
4418
  ee({
4419
4419
  type: $("error-text"),
4420
4420
  value: A(),
4421
- providerOptions: V.optional()
4421
+ providerOptions: H.optional()
4422
4422
  }),
4423
4423
  ee({
4424
4424
  type: $("error-json"),
4425
4425
  value: pn,
4426
- providerOptions: V.optional()
4426
+ providerOptions: H.optional()
4427
4427
  }),
4428
4428
  ee({
4429
4429
  type: $("content"),
@@ -4432,7 +4432,7 @@ var na = "6.0.3", tc = ye([
4432
4432
  ee({
4433
4433
  type: $("text"),
4434
4434
  text: A(),
4435
- providerOptions: V.optional()
4435
+ providerOptions: H.optional()
4436
4436
  }),
4437
4437
  ee({
4438
4438
  type: $("media"),
@@ -4444,37 +4444,37 @@ var na = "6.0.3", tc = ye([
4444
4444
  data: A(),
4445
4445
  mediaType: A(),
4446
4446
  filename: A().optional(),
4447
- providerOptions: V.optional()
4447
+ providerOptions: H.optional()
4448
4448
  }),
4449
4449
  ee({
4450
4450
  type: $("file-url"),
4451
4451
  url: A(),
4452
- providerOptions: V.optional()
4452
+ providerOptions: H.optional()
4453
4453
  }),
4454
4454
  ee({
4455
4455
  type: $("file-id"),
4456
4456
  fileId: ye([A(), dn(A(), A())]),
4457
- providerOptions: V.optional()
4457
+ providerOptions: H.optional()
4458
4458
  }),
4459
4459
  ee({
4460
4460
  type: $("image-data"),
4461
4461
  data: A(),
4462
4462
  mediaType: A(),
4463
- providerOptions: V.optional()
4463
+ providerOptions: H.optional()
4464
4464
  }),
4465
4465
  ee({
4466
4466
  type: $("image-url"),
4467
4467
  url: A(),
4468
- providerOptions: V.optional()
4468
+ providerOptions: H.optional()
4469
4469
  }),
4470
4470
  ee({
4471
4471
  type: $("image-file-id"),
4472
4472
  fileId: ye([A(), dn(A(), A())]),
4473
- providerOptions: V.optional()
4473
+ providerOptions: H.optional()
4474
4474
  }),
4475
4475
  ee({
4476
4476
  type: $("custom"),
4477
- providerOptions: V.optional()
4477
+ providerOptions: H.optional()
4478
4478
  })
4479
4479
  ])
4480
4480
  )
@@ -4485,7 +4485,7 @@ var na = "6.0.3", tc = ye([
4485
4485
  toolCallId: A(),
4486
4486
  toolName: A(),
4487
4487
  output: cv,
4488
- providerOptions: V.optional()
4488
+ providerOptions: H.optional()
4489
4489
  }), lv = ee({
4490
4490
  type: $("tool-approval-request"),
4491
4491
  approvalId: A(),
@@ -4499,7 +4499,7 @@ var na = "6.0.3", tc = ye([
4499
4499
  {
4500
4500
  role: $("system"),
4501
4501
  content: A(),
4502
- providerOptions: V.optional()
4502
+ providerOptions: H.optional()
4503
4503
  }
4504
4504
  ), fv = ee({
4505
4505
  role: $("user"),
@@ -4507,7 +4507,7 @@ var na = "6.0.3", tc = ye([
4507
4507
  A(),
4508
4508
  Yt(ye([nc, sv, rc]))
4509
4509
  ]),
4510
- providerOptions: V.optional()
4510
+ providerOptions: H.optional()
4511
4511
  }), pv = ee({
4512
4512
  role: $("assistant"),
4513
4513
  content: ye([
@@ -4523,11 +4523,11 @@ var na = "6.0.3", tc = ye([
4523
4523
  ])
4524
4524
  )
4525
4525
  ]),
4526
- providerOptions: V.optional()
4526
+ providerOptions: H.optional()
4527
4527
  }), mv = ee({
4528
4528
  role: $("tool"),
4529
4529
  content: Yt(ye([oc, uv])),
4530
- providerOptions: V.optional()
4530
+ providerOptions: H.optional()
4531
4531
  });
4532
4532
  ye([
4533
4533
  dv,
@@ -4896,7 +4896,7 @@ var vv = () => ({
4896
4896
  if (a == null || typeof a != "object" || !("elements" in a) || !Array.isArray(a.elements))
4897
4897
  throw new lt({
4898
4898
  message: "No object generated: response did not match schema.",
4899
- cause: new Vt({
4899
+ cause: new Ht({
4900
4900
  value: a,
4901
4901
  cause: "response must be an object with an elements array"
4902
4902
  }),
@@ -4981,7 +4981,7 @@ var vv = () => ({
4981
4981
  if (i == null || typeof i != "object" || !("result" in i) || typeof i.result != "string" || !e.includes(i.result))
4982
4982
  throw new lt({
4983
4983
  message: "No object generated: response did not match schema.",
4984
- cause: new Vt({
4984
+ cause: new Ht({
4985
4985
  value: i,
4986
4986
  cause: "response must be an object that contains a choice value."
4987
4987
  }),
@@ -5054,18 +5054,18 @@ var Ev = Yg(
5054
5054
  ne({
5055
5055
  type: $("text-start"),
5056
5056
  id: A(),
5057
- providerMetadata: V.optional()
5057
+ providerMetadata: H.optional()
5058
5058
  }),
5059
5059
  ne({
5060
5060
  type: $("text-delta"),
5061
5061
  id: A(),
5062
5062
  delta: A(),
5063
- providerMetadata: V.optional()
5063
+ providerMetadata: H.optional()
5064
5064
  }),
5065
5065
  ne({
5066
5066
  type: $("text-end"),
5067
5067
  id: A(),
5068
- providerMetadata: V.optional()
5068
+ providerMetadata: H.optional()
5069
5069
  }),
5070
5070
  ne({
5071
5071
  type: $("error"),
@@ -5090,7 +5090,7 @@ var Ev = Yg(
5090
5090
  toolName: A(),
5091
5091
  input: Ue(),
5092
5092
  providerExecuted: ve().optional(),
5093
- providerMetadata: V.optional(),
5093
+ providerMetadata: H.optional(),
5094
5094
  dynamic: ve().optional(),
5095
5095
  title: A().optional()
5096
5096
  }),
@@ -5100,7 +5100,7 @@ var Ev = Yg(
5100
5100
  toolName: A(),
5101
5101
  input: Ue(),
5102
5102
  providerExecuted: ve().optional(),
5103
- providerMetadata: V.optional(),
5103
+ providerMetadata: H.optional(),
5104
5104
  dynamic: ve().optional(),
5105
5105
  errorText: A(),
5106
5106
  title: A().optional()
@@ -5132,25 +5132,25 @@ var Ev = Yg(
5132
5132
  ne({
5133
5133
  type: $("reasoning-start"),
5134
5134
  id: A(),
5135
- providerMetadata: V.optional()
5135
+ providerMetadata: H.optional()
5136
5136
  }),
5137
5137
  ne({
5138
5138
  type: $("reasoning-delta"),
5139
5139
  id: A(),
5140
5140
  delta: A(),
5141
- providerMetadata: V.optional()
5141
+ providerMetadata: H.optional()
5142
5142
  }),
5143
5143
  ne({
5144
5144
  type: $("reasoning-end"),
5145
5145
  id: A(),
5146
- providerMetadata: V.optional()
5146
+ providerMetadata: H.optional()
5147
5147
  }),
5148
5148
  ne({
5149
5149
  type: $("source-url"),
5150
5150
  sourceId: A(),
5151
5151
  url: A(),
5152
5152
  title: A().optional(),
5153
- providerMetadata: V.optional()
5153
+ providerMetadata: H.optional()
5154
5154
  }),
5155
5155
  ne({
5156
5156
  type: $("source-document"),
@@ -5158,13 +5158,13 @@ var Ev = Yg(
5158
5158
  mediaType: A(),
5159
5159
  title: A(),
5160
5160
  filename: A().optional(),
5161
- providerMetadata: V.optional()
5161
+ providerMetadata: H.optional()
5162
5162
  }),
5163
5163
  ne({
5164
5164
  type: $("file"),
5165
5165
  url: A(),
5166
5166
  mediaType: A(),
5167
- providerMetadata: V.optional()
5167
+ providerMetadata: H.optional()
5168
5168
  }),
5169
5169
  ne({
5170
5170
  type: Wi(
@@ -6215,7 +6215,7 @@ var Ut, aa = class extends Nv {
6215
6215
  }
6216
6216
  };
6217
6217
  Ut = /* @__PURE__ */ new WeakMap();
6218
- function Hv({
6218
+ function Vv({
6219
6219
  experimental_throttle: e,
6220
6220
  resume: t = !1,
6221
6221
  ...n
@@ -6292,7 +6292,7 @@ function wt(e = {}) {
6292
6292
  setInput: t.setInput
6293
6293
  };
6294
6294
  }
6295
- function Vv({
6295
+ function Hv({
6296
6296
  children: e,
6297
6297
  value: t
6298
6298
  }) {
@@ -6312,7 +6312,7 @@ function Vv({
6312
6312
  }, []), c = J(async (d) => {
6313
6313
  for (const u of n.current.onToolCall)
6314
6314
  await u(d);
6315
- }, []), l = Hv({
6315
+ }, []), l = Vv({
6316
6316
  id: t.id,
6317
6317
  messages: t.messages,
6318
6318
  transport: t.transport || new jo({
@@ -6345,12 +6345,12 @@ const Wv = ({ chatId: e }) => {
6345
6345
  return Z(() => {
6346
6346
  const s = r.current !== e, i = t.length > 0;
6347
6347
  i && !n ? (window.localStorage.setItem(
6348
- He + Kn,
6348
+ Ve + Kn,
6349
6349
  JSON.stringify(e)
6350
6350
  ), o.current = !0) : n && i ? window.localStorage.removeItem(
6351
- He + Kn
6351
+ Ve + Kn
6352
6352
  ) : s && o.current && (window.localStorage.removeItem(
6353
- He + Kn
6353
+ Ve + Kn
6354
6354
  ), o.current = !1), r.current = e;
6355
6355
  }, [e, t.length, n]), null;
6356
6356
  };
@@ -6387,7 +6387,7 @@ const ca = ({
6387
6387
  dispatchChat: r
6388
6388
  }) => {
6389
6389
  const { user: o, getAccessToken: s } = $e(), [i, a] = B(!1), [c] = et({
6390
- key: He + Kn,
6390
+ key: Ve + Kn,
6391
6391
  initialValue: ""
6392
6392
  }), l = !!c && !i && !!o?.username && c !== e, { data: d } = du({
6393
6393
  chatId: l ? c : void 0,
@@ -6564,22 +6564,22 @@ function rt(e) {
6564
6564
  function Jt(e) {
6565
6565
  return e.split("-")[1];
6566
6566
  }
6567
- function Ho(e) {
6567
+ function Vo(e) {
6568
6568
  return e === "x" ? "y" : "x";
6569
6569
  }
6570
- function Vo(e) {
6570
+ function Ho(e) {
6571
6571
  return e === "y" ? "height" : "width";
6572
6572
  }
6573
6573
  const ay = /* @__PURE__ */ new Set(["top", "bottom"]);
6574
- function Ve(e) {
6574
+ function He(e) {
6575
6575
  return ay.has(rt(e)) ? "y" : "x";
6576
6576
  }
6577
6577
  function Wo(e) {
6578
- return Ho(Ve(e));
6578
+ return Vo(He(e));
6579
6579
  }
6580
6580
  function iy(e, t, n) {
6581
6581
  n === void 0 && (n = !1);
6582
- const r = Jt(e), o = Wo(e), s = Vo(o);
6582
+ const r = Jt(e), o = Wo(e), s = Ho(o);
6583
6583
  let i = o === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
6584
6584
  return t.reference[s] > t.floating[s] && (i = pr(i)), [i, pr(i)];
6585
6585
  }
@@ -6651,7 +6651,7 @@ function fa(e, t, n) {
6651
6651
  reference: r,
6652
6652
  floating: o
6653
6653
  } = e;
6654
- const s = Ve(t), i = Wo(t), a = Vo(i), c = rt(t), l = s === "y", d = r.x + r.width / 2 - o.width / 2, u = r.y + r.height / 2 - o.height / 2, g = r[a] / 2 - o[a] / 2;
6654
+ const s = He(t), i = Wo(t), a = Ho(i), c = rt(t), l = s === "y", d = r.x + r.width / 2 - o.width / 2, u = r.y + r.height / 2 - o.height / 2, g = r[a] / 2 - o[a] / 2;
6655
6655
  let m;
6656
6656
  switch (c) {
6657
6657
  case "top":
@@ -6821,20 +6821,20 @@ const hy = (e) => ({
6821
6821
  const u = dc(d), g = {
6822
6822
  x: n,
6823
6823
  y: r
6824
- }, m = Wo(o), p = Vo(m), f = await i.getDimensions(l), y = m === "y", b = y ? "top" : "left", _ = y ? "bottom" : "right", v = y ? "clientHeight" : "clientWidth", E = s.reference[p] + s.reference[m] - g[m] - s.floating[p], S = g[m] - s.reference[m], I = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(l));
6824
+ }, m = Wo(o), p = Ho(m), f = await i.getDimensions(l), y = m === "y", b = y ? "top" : "left", _ = y ? "bottom" : "right", v = y ? "clientHeight" : "clientWidth", E = s.reference[p] + s.reference[m] - g[m] - s.floating[p], S = g[m] - s.reference[m], I = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(l));
6825
6825
  let x = I ? I[v] : 0;
6826
6826
  (!x || !await (i.isElement == null ? void 0 : i.isElement(I))) && (x = a.floating[v] || s.floating[p]);
6827
- const T = E / 2 - S / 2, k = x / 2 - f[p] / 2 - 1, M = gt(u[b], k), j = gt(u[_], k), O = M, R = x - f[p] - j, L = x / 2 - f[p] / 2 + T, Q = Co(O, L, R), H = !c.arrow && Jt(o) != null && L !== Q && s.reference[p] / 2 - (L < O ? M : j) - f[p] / 2 < 0, q = H ? L < O ? L - O : L - R : 0;
6827
+ const T = E / 2 - S / 2, k = x / 2 - f[p] / 2 - 1, M = gt(u[b], k), j = gt(u[_], k), O = M, R = x - f[p] - j, L = x / 2 - f[p] / 2 + T, Q = Co(O, L, R), V = !c.arrow && Jt(o) != null && L !== Q && s.reference[p] / 2 - (L < O ? M : j) - f[p] / 2 < 0, q = V ? L < O ? L - O : L - R : 0;
6828
6828
  return {
6829
6829
  [m]: g[m] + q,
6830
6830
  data: {
6831
6831
  [m]: Q,
6832
6832
  centerOffset: L - Q - q,
6833
- ...H && {
6833
+ ...V && {
6834
6834
  alignmentOffset: q
6835
6835
  }
6836
6836
  },
6837
- reset: H
6837
+ reset: V
6838
6838
  };
6839
6839
  }
6840
6840
  }), gy = function(e) {
@@ -6861,7 +6861,7 @@ const hy = (e) => ({
6861
6861
  } = nt(e, t);
6862
6862
  if ((n = s.arrow) != null && n.alignmentOffset)
6863
6863
  return {};
6864
- const b = rt(o), _ = Ve(a), v = rt(a) === a, E = await (c.isRTL == null ? void 0 : c.isRTL(l.floating)), S = g || (v || !f ? [pr(a)] : cy(a)), I = p !== "none";
6864
+ const b = rt(o), _ = He(a), v = rt(a) === a, E = await (c.isRTL == null ? void 0 : c.isRTL(l.floating)), S = g || (v || !f ? [pr(a)] : cy(a)), I = p !== "none";
6865
6865
  !g && I && S.push(...fy(a, f, p, E));
6866
6866
  const x = [a, ...S], T = await hn(t, y), k = [];
6867
6867
  let M = ((r = s.flip) == null ? void 0 : r.overflows) || [];
@@ -6875,9 +6875,9 @@ const hy = (e) => ({
6875
6875
  }], !k.every((L) => L <= 0)) {
6876
6876
  var j, O;
6877
6877
  const L = (((j = s.flip) == null ? void 0 : j.index) || 0) + 1, Q = x[L];
6878
- if (Q && (!(u === "alignment" ? _ !== Ve(Q) : !1) || // We leave the current main axis only if every placement on that axis
6878
+ if (Q && (!(u === "alignment" ? _ !== He(Q) : !1) || // We leave the current main axis only if every placement on that axis
6879
6879
  // overflows the main axis.
6880
- M.every((D) => Ve(D.placement) === _ ? D.overflows[0] > 0 : !0)))
6880
+ M.every((D) => He(D.placement) === _ ? D.overflows[0] > 0 : !0)))
6881
6881
  return {
6882
6882
  data: {
6883
6883
  index: L,
@@ -6887,31 +6887,31 @@ const hy = (e) => ({
6887
6887
  placement: Q
6888
6888
  }
6889
6889
  };
6890
- let H = (O = M.filter((q) => q.overflows[0] <= 0).sort((q, D) => q.overflows[1] - D.overflows[1])[0]) == null ? void 0 : O.placement;
6891
- if (!H)
6890
+ let V = (O = M.filter((q) => q.overflows[0] <= 0).sort((q, D) => q.overflows[1] - D.overflows[1])[0]) == null ? void 0 : O.placement;
6891
+ if (!V)
6892
6892
  switch (m) {
6893
6893
  case "bestFit": {
6894
6894
  var R;
6895
6895
  const q = (R = M.filter((D) => {
6896
6896
  if (I) {
6897
- const N = Ve(D.placement);
6897
+ const N = He(D.placement);
6898
6898
  return N === _ || // Create a bias to the `y` side axis due to horizontal
6899
6899
  // reading directions favoring greater width.
6900
6900
  N === "y";
6901
6901
  }
6902
6902
  return !0;
6903
6903
  }).map((D) => [D.placement, D.overflows.filter((N) => N > 0).reduce((N, ie) => N + ie, 0)]).sort((D, N) => D[1] - N[1])[0]) == null ? void 0 : R[0];
6904
- q && (H = q);
6904
+ q && (V = q);
6905
6905
  break;
6906
6906
  }
6907
6907
  case "initialPlacement":
6908
- H = a;
6908
+ V = a;
6909
6909
  break;
6910
6910
  }
6911
- if (o !== H)
6911
+ if (o !== V)
6912
6912
  return {
6913
6913
  reset: {
6914
- placement: H
6914
+ placement: V
6915
6915
  }
6916
6916
  };
6917
6917
  }
@@ -6977,7 +6977,7 @@ async function yy(e, t) {
6977
6977
  placement: n,
6978
6978
  platform: r,
6979
6979
  elements: o
6980
- } = e, s = await (r.isRTL == null ? void 0 : r.isRTL(o.floating)), i = rt(n), a = Jt(n), c = Ve(n) === "y", l = fc.has(i) ? -1 : 1, d = s && c ? -1 : 1, u = nt(t, e);
6980
+ } = e, s = await (r.isRTL == null ? void 0 : r.isRTL(o.floating)), i = rt(n), a = Jt(n), c = He(n) === "y", l = fc.has(i) ? -1 : 1, d = s && c ? -1 : 1, u = nt(t, e);
6981
6981
  let {
6982
6982
  mainAxis: g,
6983
6983
  crossAxis: m,
@@ -7049,7 +7049,7 @@ const by = function(e) {
7049
7049
  } = nt(e, t), l = {
7050
7050
  x: n,
7051
7051
  y: r
7052
- }, d = await hn(t, c), u = Ve(rt(o)), g = Ho(u);
7052
+ }, d = await hn(t, c), u = He(rt(o)), g = Vo(u);
7053
7053
  let m = l[g], p = l[u];
7054
7054
  if (s) {
7055
7055
  const y = g === "y" ? "top" : "left", b = g === "y" ? "bottom" : "right", _ = m + d[y], v = m - d[b];
@@ -7094,7 +7094,7 @@ const by = function(e) {
7094
7094
  } = nt(e, t), d = {
7095
7095
  x: n,
7096
7096
  y: r
7097
- }, u = Ve(o), g = Ho(u);
7097
+ }, u = He(o), g = Vo(u);
7098
7098
  let m = d[g], p = d[u];
7099
7099
  const f = nt(a, t), y = typeof f == "number" ? {
7100
7100
  mainAxis: f,
@@ -7134,7 +7134,7 @@ const by = function(e) {
7134
7134
  apply: c = () => {
7135
7135
  },
7136
7136
  ...l
7137
- } = nt(e, t), d = await hn(t, l), u = rt(o), g = Jt(o), m = Ve(o) === "y", {
7137
+ } = nt(e, t), d = await hn(t, l), u = rt(o), g = Jt(o), m = He(o) === "y", {
7138
7138
  width: p,
7139
7139
  height: f
7140
7140
  } = s.floating;
@@ -7535,7 +7535,7 @@ function bc(e, t) {
7535
7535
  r = ya(r, t);
7536
7536
  return r && Gt(r) && Kr(r) && !Go(r) ? n : r || Oy(e) || n;
7537
7537
  }
7538
- const Hy = async function(e) {
7538
+ const Vy = async function(e) {
7539
7539
  const t = this.getOffsetParent || bc, n = this.getDimensions, r = await n(e.floating);
7540
7540
  return {
7541
7541
  reference: By(e.reference, await t(e.floating), e.strategy),
@@ -7547,7 +7547,7 @@ const Hy = async function(e) {
7547
7547
  }
7548
7548
  };
7549
7549
  };
7550
- function Vy(e) {
7550
+ function Hy(e) {
7551
7551
  return De(e).direction === "rtl";
7552
7552
  }
7553
7553
  const Wy = {
@@ -7555,12 +7555,12 @@ const Wy = {
7555
7555
  getDocumentElement: Xe,
7556
7556
  getClippingRect: Uy,
7557
7557
  getOffsetParent: bc,
7558
- getElementRects: Hy,
7558
+ getElementRects: Vy,
7559
7559
  getClientRects: Dy,
7560
7560
  getDimensions: jy,
7561
7561
  getScale: jt,
7562
7562
  isElement: ke,
7563
- isRTL: Vy
7563
+ isRTL: Hy
7564
7564
  };
7565
7565
  function wc(e, t) {
7566
7566
  return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
@@ -7986,7 +7986,7 @@ const Ic = async () => (Xr || (Xr = import(
7986
7986
  "./index.ri2Dr1rJ.js"
7987
7987
  )), Xr), Tc = async () => (qr || (qr = import(
7988
7988
  /* webpackChunkName: "toast-utilities" */
7989
- "./index.BdwPaWcz.js"
7989
+ "./index.BkomSwOE.js"
7990
7990
  ).then((e) => e.utilities)), qr), db = async () => {
7991
7991
  try {
7992
7992
  await Promise.all([Ic(), Tc()]);
@@ -8686,7 +8686,7 @@ const Ib = "av-toggle", Tb = ({ narrow: e }) => U(
8686
8686
  state: { privateChat: r, provider: o, tokenUsage: s },
8687
8687
  dispatch: i
8688
8688
  } = de(Le), { messages: a, id: c } = wt(), { mutateAsync: l } = fu({ getAccessToken: t }), [d, u] = Ke(), [g, m] = B(!1), [p, f] = B(!1), [y, b] = et({
8689
- key: He + pu,
8689
+ key: Ve + pu,
8690
8690
  initialValue: ""
8691
8691
  }), _ = hr(ar.TOOL.MEMORIES), { data: v, isSuccess: E } = bt({
8692
8692
  user: n?.username,
@@ -8740,8 +8740,8 @@ const Ib = "av-toggle", Tb = ({ narrow: e }) => U(
8740
8740
  {
8741
8741
  toggleLabel: "Don't show this again",
8742
8742
  toggleName: "private-disclosure",
8743
- maxHeight: Ht() ? "large" : "medium",
8744
- noCancelAction: Ht(),
8743
+ maxHeight: Vt() ? "large" : "medium",
8744
+ noCancelAction: Vt(),
8745
8745
  toggleChecked: g,
8746
8746
  onToggleChange: (x) => m(x),
8747
8747
  showConfirmation: p,
@@ -8786,7 +8786,7 @@ const Ib = "av-toggle", Tb = ({ narrow: e }) => U(
8786
8786
  className: "text-sm",
8787
8787
  disabled: !(E && v),
8788
8788
  children: r ? /* @__PURE__ */ h(Bu, { size: tt }) : /* @__PURE__ */ h(
8789
- Hu,
8789
+ Vu,
8790
8790
  {
8791
8791
  size: tt,
8792
8792
  className: d(u.PrivateChat)
@@ -8927,7 +8927,7 @@ function Ub(e) {
8927
8927
  // @__NO_SIDE_EFFECTS__
8928
8928
  function gr(e) {
8929
8929
  const t = /* @__PURE__ */ jb(e), n = w.forwardRef((r, o) => {
8930
- const { children: s, ...i } = r, a = w.Children.toArray(s), c = a.find(Hb);
8930
+ const { children: s, ...i } = r, a = w.Children.toArray(s), c = a.find(Vb);
8931
8931
  if (c) {
8932
8932
  const l = c.props.children, d = a.map((u) => u === c ? w.Children.count(l) > 1 ? w.Children.only(null) : w.isValidElement(l) ? l.props.children : null : u);
8933
8933
  return /* @__PURE__ */ h(t, { ...i, ref: o, children: w.isValidElement(l) ? w.cloneElement(l, void 0, d) : null });
@@ -8941,7 +8941,7 @@ function jb(e) {
8941
8941
  const t = w.forwardRef((n, r) => {
8942
8942
  const { children: o, ...s } = n;
8943
8943
  if (w.isValidElement(o)) {
8944
- const i = Wb(o), a = Vb(s, o.props);
8944
+ const i = Wb(o), a = Hb(s, o.props);
8945
8945
  return o.type !== w.Fragment && (a.ref = r ? Or(r, i) : i), w.cloneElement(o, a);
8946
8946
  }
8947
8947
  return w.Children.count(o) > 1 ? w.Children.only(null) : null;
@@ -8949,10 +8949,10 @@ function jb(e) {
8949
8949
  return t.displayName = `${e}.SlotClone`, t;
8950
8950
  }
8951
8951
  var Bb = /* @__PURE__ */ Symbol("radix.slottable");
8952
- function Hb(e) {
8952
+ function Vb(e) {
8953
8953
  return w.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === Bb;
8954
8954
  }
8955
- function Vb(e, t) {
8955
+ function Hb(e, t) {
8956
8956
  const n = { ...t };
8957
8957
  for (const r in t) {
8958
8958
  const o = e[r], s = t[r];
@@ -9437,7 +9437,7 @@ function hw(e) {
9437
9437
  floating: x,
9438
9438
  setReference: _,
9439
9439
  setFloating: v
9440
- }), [_, v]), H = w.useMemo(() => ({
9440
+ }), [_, v]), V = w.useMemo(() => ({
9441
9441
  reference: E,
9442
9442
  floating: S
9443
9443
  }), [E, S]), q = w.useMemo(() => {
@@ -9446,13 +9446,13 @@ function hw(e) {
9446
9446
  left: 0,
9447
9447
  top: 0
9448
9448
  };
9449
- if (!H.floating)
9449
+ if (!V.floating)
9450
9450
  return D;
9451
- const N = ka(H.floating, d.x), ie = ka(H.floating, d.y);
9451
+ const N = ka(V.floating, d.x), ie = ka(V.floating, d.y);
9452
9452
  return a ? {
9453
9453
  ...D,
9454
9454
  transform: "translate(" + N + "px, " + ie + "px)",
9455
- ...zc(H.floating) >= 1.5 && {
9455
+ ...zc(V.floating) >= 1.5 && {
9456
9456
  willChange: "transform"
9457
9457
  }
9458
9458
  } : {
@@ -9460,14 +9460,14 @@ function hw(e) {
9460
9460
  left: N,
9461
9461
  top: ie
9462
9462
  };
9463
- }, [n, a, H.floating, d.x, d.y]);
9463
+ }, [n, a, V.floating, d.x, d.y]);
9464
9464
  return w.useMemo(() => ({
9465
9465
  ...d,
9466
9466
  update: R,
9467
9467
  refs: Q,
9468
- elements: H,
9468
+ elements: V,
9469
9469
  floatingStyles: q
9470
- }), [d, R, Q, H, q]);
9470
+ }), [d, R, Q, V, q]);
9471
9471
  }
9472
9472
  const gw = (e) => {
9473
9473
  function t(n) {
@@ -9556,16 +9556,16 @@ var Xo = "Popper", [Zc, Uc] = An(Xo), [Tw, jc] = Zc(Xo), Bc = (e) => {
9556
9556
  return /* @__PURE__ */ h(Tw, { scope: t, anchor: r, onAnchorChange: o, children: n });
9557
9557
  };
9558
9558
  Bc.displayName = Xo;
9559
- var Hc = "PopperAnchor", Vc = w.forwardRef(
9559
+ var Vc = "PopperAnchor", Hc = w.forwardRef(
9560
9560
  (e, t) => {
9561
- const { __scopePopper: n, virtualRef: r, ...o } = e, s = jc(Hc, n), i = w.useRef(null), a = we(t, i), c = w.useRef(null);
9561
+ const { __scopePopper: n, virtualRef: r, ...o } = e, s = jc(Vc, n), i = w.useRef(null), a = we(t, i), c = w.useRef(null);
9562
9562
  return w.useEffect(() => {
9563
9563
  const l = c.current;
9564
9564
  c.current = r?.current || i.current, l !== c.current && s.onAnchorChange(c.current);
9565
9565
  }), r ? null : /* @__PURE__ */ h(be.div, { ...o, ref: a });
9566
9566
  }
9567
9567
  );
9568
- Vc.displayName = Hc;
9568
+ Hc.displayName = Vc;
9569
9569
  var qo = "PopperContent", [Aw, Rw] = Zc(qo), Wc = w.forwardRef(
9570
9570
  (e, t) => {
9571
9571
  const {
@@ -9588,7 +9588,7 @@ var qo = "PopperContent", [Aw, Rw] = Zc(qo), Wc = w.forwardRef(
9588
9588
  boundary: j.filter(Nw),
9589
9589
  // with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
9590
9590
  altBoundary: O
9591
- }, { refs: L, floatingStyles: Q, placement: H, isPositioned: q, middlewareData: D } = hw({
9591
+ }, { refs: L, floatingStyles: Q, placement: V, isPositioned: q, middlewareData: D } = hw({
9592
9592
  // default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
9593
9593
  strategy: "fixed",
9594
9594
  placement: k,
@@ -9618,7 +9618,7 @@ var qo = "PopperContent", [Aw, Rw] = Zc(qo), Wc = w.forwardRef(
9618
9618
  Pw({ arrowWidth: x, arrowHeight: T }),
9619
9619
  g && Ew({ strategy: "referenceHidden", ...R })
9620
9620
  ]
9621
- }), [N, ie] = Jc(H), Ie = Je(p);
9621
+ }), [N, ie] = Jc(V), Ie = Je(p);
9622
9622
  yt(() => {
9623
9623
  q && Ie?.();
9624
9624
  }, [q, Ie]);
@@ -9747,7 +9747,7 @@ function Jc(e) {
9747
9747
  const [t, n = "center"] = e.split("-");
9748
9748
  return [t, n];
9749
9749
  }
9750
- var Kc = Bc, Mw = Vc, kw = Wc, Dw = Yc, $w = "Portal", Xc = w.forwardRef((e, t) => {
9750
+ var Kc = Bc, Mw = Hc, kw = Wc, Dw = Yc, $w = "Portal", Xc = w.forwardRef((e, t) => {
9751
9751
  const { container: n, ...r } = e, [o, s] = w.useState(!1);
9752
9752
  yt(() => s(!0), []);
9753
9753
  const i = n || o && globalThis?.document?.body;
@@ -9821,11 +9821,11 @@ function Fw(e) {
9821
9821
  var oo = "rovingFocusGroup.onEntryFocus", Zw = { bubbles: !1, cancelable: !0 }, On = "RovingFocusGroup", [Ro, qc, Uw] = Nc(On), [jw, Qc] = An(
9822
9822
  On,
9823
9823
  [Uw]
9824
- ), [Bw, Hw] = jw(On), el = w.forwardRef(
9825
- (e, t) => /* @__PURE__ */ h(Ro.Provider, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ h(Ro.Slot, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ h(Vw, { ...e, ref: t }) }) })
9824
+ ), [Bw, Vw] = jw(On), el = w.forwardRef(
9825
+ (e, t) => /* @__PURE__ */ h(Ro.Provider, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ h(Ro.Slot, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ h(Hw, { ...e, ref: t }) }) })
9826
9826
  );
9827
9827
  el.displayName = On;
9828
- var Vw = w.forwardRef((e, t) => {
9828
+ var Hw = w.forwardRef((e, t) => {
9829
9829
  const {
9830
9830
  __scopeRovingFocusGroup: n,
9831
9831
  orientation: r,
@@ -9884,9 +9884,9 @@ var Vw = w.forwardRef((e, t) => {
9884
9884
  if (T.target === T.currentTarget && k && !b) {
9885
9885
  const M = new CustomEvent(oo, Zw);
9886
9886
  if (T.currentTarget.dispatchEvent(M), !M.defaultPrevented) {
9887
- const j = E().filter((H) => H.focusable), O = j.find((H) => H.active), R = j.find((H) => H.id === f), Q = [O, R, ...j].filter(
9887
+ const j = E().filter((V) => V.focusable), O = j.find((V) => V.active), R = j.find((V) => V.id === f), Q = [O, R, ...j].filter(
9888
9888
  Boolean
9889
- ).map((H) => H.ref.current);
9889
+ ).map((V) => V.ref.current);
9890
9890
  rl(Q, d);
9891
9891
  }
9892
9892
  }
@@ -9906,7 +9906,7 @@ var Vw = w.forwardRef((e, t) => {
9906
9906
  tabStopId: s,
9907
9907
  children: i,
9908
9908
  ...a
9909
- } = e, c = yn(), l = s || c, d = Hw(tl, n), u = d.currentTabStopId === l, g = qc(n), { onFocusableItemAdd: m, onFocusableItemRemove: p, currentTabStopId: f } = d;
9909
+ } = e, c = yn(), l = s || c, d = Vw(tl, n), u = d.currentTabStopId === l, g = qc(n), { onFocusableItemAdd: m, onFocusableItemRemove: p, currentTabStopId: f } = d;
9910
9910
  return w.useEffect(() => {
9911
9911
  if (r)
9912
9912
  return m(), () => p();
@@ -9987,7 +9987,7 @@ var Kw = el, Xw = nl, qw = function(e) {
9987
9987
  return null;
9988
9988
  var t = Array.isArray(e) ? e[0] : e;
9989
9989
  return t.ownerDocument.body;
9990
- }, Lt = /* @__PURE__ */ new WeakMap(), Hn = /* @__PURE__ */ new WeakMap(), Vn = {}, so = 0, ol = function(e) {
9990
+ }, Lt = /* @__PURE__ */ new WeakMap(), Vn = /* @__PURE__ */ new WeakMap(), Hn = {}, so = 0, ol = function(e) {
9991
9991
  return e && (e.host || ol(e.parentNode));
9992
9992
  }, Qw = function(e, t) {
9993
9993
  return t.map(function(n) {
@@ -10000,8 +10000,8 @@ var Kw = el, Xw = nl, qw = function(e) {
10000
10000
  });
10001
10001
  }, e_ = function(e, t, n, r) {
10002
10002
  var o = Qw(t, Array.isArray(e) ? e : [e]);
10003
- Vn[n] || (Vn[n] = /* @__PURE__ */ new WeakMap());
10004
- var s = Vn[n], i = [], a = /* @__PURE__ */ new Set(), c = new Set(o), l = function(u) {
10003
+ Hn[n] || (Hn[n] = /* @__PURE__ */ new WeakMap());
10004
+ var s = Hn[n], i = [], a = /* @__PURE__ */ new Set(), c = new Set(o), l = function(u) {
10005
10005
  !u || a.has(u) || (a.add(u), l(u.parentNode));
10006
10006
  };
10007
10007
  o.forEach(l);
@@ -10012,7 +10012,7 @@ var Kw = el, Xw = nl, qw = function(e) {
10012
10012
  else
10013
10013
  try {
10014
10014
  var m = g.getAttribute(r), p = m !== null && m !== "false", f = (Lt.get(g) || 0) + 1, y = (s.get(g) || 0) + 1;
10015
- Lt.set(g, f), s.set(g, y), i.push(g), f === 1 && p && Hn.set(g, !0), y === 1 && g.setAttribute(n, "true"), p || g.setAttribute(r, "true");
10015
+ Lt.set(g, f), s.set(g, y), i.push(g), f === 1 && p && Vn.set(g, !0), y === 1 && g.setAttribute(n, "true"), p || g.setAttribute(r, "true");
10016
10016
  } catch (b) {
10017
10017
  console.error("aria-hidden: cannot operate on ", g, b);
10018
10018
  }
@@ -10021,8 +10021,8 @@ var Kw = el, Xw = nl, qw = function(e) {
10021
10021
  return d(t), a.clear(), so++, function() {
10022
10022
  i.forEach(function(u) {
10023
10023
  var g = Lt.get(u) - 1, m = s.get(u) - 1;
10024
- Lt.set(u, g), s.set(u, m), g || (Hn.has(u) || u.removeAttribute(r), Hn.delete(u)), m || u.removeAttribute(n);
10025
- }), so--, so || (Lt = /* @__PURE__ */ new WeakMap(), Lt = /* @__PURE__ */ new WeakMap(), Hn = /* @__PURE__ */ new WeakMap(), Vn = {});
10024
+ Lt.set(u, g), s.set(u, m), g || (Vn.has(u) || u.removeAttribute(r), Vn.delete(u)), m || u.removeAttribute(n);
10025
+ }), so--, so || (Lt = /* @__PURE__ */ new WeakMap(), Lt = /* @__PURE__ */ new WeakMap(), Vn = /* @__PURE__ */ new WeakMap(), Hn = {});
10026
10026
  };
10027
10027
  }, t_ = function(e, t, n) {
10028
10028
  n === void 0 && (n = "data-aria-hidden");
@@ -10515,7 +10515,7 @@ var No = ["Enter", " "], z_ = ["ArrowDown", "PageUp", "Home"], pl = ["ArrowUp",
10515
10515
  B_,
10516
10516
  Uc,
10517
10517
  Qc
10518
- ]), Pn = Uc(), hl = Qc(), [gl, Et] = Mt(Nn), [H_, Mn] = Mt(Nn), vl = (e) => {
10518
+ ]), Pn = Uc(), hl = Qc(), [gl, Et] = Mt(Nn), [V_, Mn] = Mt(Nn), vl = (e) => {
10519
10519
  const { __scopeMenu: t, open: n = !1, children: r, dir: o, onOpenChange: s, modal: i = !0 } = e, a = Pn(t), [c, l] = w.useState(null), d = w.useRef(!1), u = Je(s), g = Pc(o);
10520
10520
  return w.useEffect(() => {
10521
10521
  const m = () => {
@@ -10533,7 +10533,7 @@ var No = ["Enter", " "], z_ = ["ArrowDown", "PageUp", "Home"], pl = ["ArrowUp",
10533
10533
  content: c,
10534
10534
  onContentChange: l,
10535
10535
  children: /* @__PURE__ */ h(
10536
- H_,
10536
+ V_,
10537
10537
  {
10538
10538
  scope: t,
10539
10539
  onClose: w.useCallback(() => u(!1), [u]),
@@ -10547,13 +10547,13 @@ var No = ["Enter", " "], z_ = ["ArrowDown", "PageUp", "Home"], pl = ["ArrowUp",
10547
10547
  ) });
10548
10548
  };
10549
10549
  vl.displayName = Nn;
10550
- var V_ = "MenuAnchor", Qo = w.forwardRef(
10550
+ var H_ = "MenuAnchor", Qo = w.forwardRef(
10551
10551
  (e, t) => {
10552
10552
  const { __scopeMenu: n, ...r } = e, o = Pn(n);
10553
10553
  return /* @__PURE__ */ h(Mw, { ...o, ...r, ref: t });
10554
10554
  }
10555
10555
  );
10556
- Qo.displayName = V_;
10556
+ Qo.displayName = H_;
10557
10557
  var es = "MenuPortal", [W_, yl] = Mt(es, {
10558
10558
  forceMount: void 0
10559
10559
  }), bl = (e) => {
@@ -10619,7 +10619,7 @@ var Re = "MenuContent", [G_, ts] = Mt(Re), wl = w.forwardRef(
10619
10619
  onDismiss: m,
10620
10620
  disableOutsideScroll: p,
10621
10621
  ...f
10622
- } = e, y = Et(Re, n), b = Mn(Re, n), _ = Pn(n), v = hl(n), E = j_(n), [S, I] = w.useState(null), x = w.useRef(null), T = we(t, x, y.onContentChange), k = w.useRef(0), M = w.useRef(""), j = w.useRef(0), O = w.useRef(null), R = w.useRef("right"), L = w.useRef(0), Q = p ? fl : w.Fragment, H = p ? { as: K_, allowPinchZoom: !0 } : void 0, q = (N) => {
10622
+ } = e, y = Et(Re, n), b = Mn(Re, n), _ = Pn(n), v = hl(n), E = j_(n), [S, I] = w.useState(null), x = w.useRef(null), T = we(t, x, y.onContentChange), k = w.useRef(0), M = w.useRef(""), j = w.useRef(0), O = w.useRef(null), R = w.useRef("right"), L = w.useRef(0), Q = p ? fl : w.Fragment, V = p ? { as: K_, allowPinchZoom: !0 } : void 0, q = (N) => {
10623
10623
  const ie = M.current + N, Ie = E().filter((ce) => !ce.disabled), ze = document.activeElement, me = Ie.find((ce) => ce.ref.current === ze)?.textValue, Ee = Ie.map((ce) => ce.textValue), kt = cE(Ee, ie, me), qe = Ie.find((ce) => ce.textValue === kt)?.ref.current;
10624
10624
  (function ce(St) {
10625
10625
  M.current = St, window.clearTimeout(k.current), St !== "" && (k.current = window.setTimeout(() => ce(""), 1e3));
@@ -10654,7 +10654,7 @@ var Re = "MenuContent", [G_, ts] = Mt(Re), wl = w.forwardRef(
10654
10654
  onPointerGraceIntentChange: w.useCallback((N) => {
10655
10655
  O.current = N;
10656
10656
  }, []),
10657
- children: /* @__PURE__ */ h(Q, { ...H, children: /* @__PURE__ */ h(
10657
+ children: /* @__PURE__ */ h(Q, { ...V, children: /* @__PURE__ */ h(
10658
10658
  $c,
10659
10659
  {
10660
10660
  asChild: !0,
@@ -11151,7 +11151,7 @@ var RE = "DropdownMenuPortal", jl = (e) => {
11151
11151
  return /* @__PURE__ */ h(pE, { ...r, ...n });
11152
11152
  };
11153
11153
  jl.displayName = RE;
11154
- var Bl = "DropdownMenuContent", Hl = w.forwardRef(
11154
+ var Bl = "DropdownMenuContent", Vl = w.forwardRef(
11155
11155
  (e, t) => {
11156
11156
  const { __scopeDropdownMenu: n, ...r } = e, o = zl(Bl, n), s = he(n), i = w.useRef(!1);
11157
11157
  return /* @__PURE__ */ h(
@@ -11181,7 +11181,7 @@ var Bl = "DropdownMenuContent", Hl = w.forwardRef(
11181
11181
  );
11182
11182
  }
11183
11183
  );
11184
- Hl.displayName = Bl;
11184
+ Vl.displayName = Bl;
11185
11185
  var OE = "DropdownMenuGroup", NE = w.forwardRef(
11186
11186
  (e, t) => {
11187
11187
  const { __scopeDropdownMenu: n, ...r } = e, o = he(n);
@@ -11189,13 +11189,13 @@ var OE = "DropdownMenuGroup", NE = w.forwardRef(
11189
11189
  }
11190
11190
  );
11191
11191
  NE.displayName = OE;
11192
- var PE = "DropdownMenuLabel", Vl = w.forwardRef(
11192
+ var PE = "DropdownMenuLabel", Hl = w.forwardRef(
11193
11193
  (e, t) => {
11194
11194
  const { __scopeDropdownMenu: n, ...r } = e, o = he(n);
11195
11195
  return /* @__PURE__ */ h(gE, { ...o, ...r, ref: t });
11196
11196
  }
11197
11197
  );
11198
- Vl.displayName = PE;
11198
+ Hl.displayName = PE;
11199
11199
  var ME = "DropdownMenuItem", Wl = w.forwardRef(
11200
11200
  (e, t) => {
11201
11201
  const { __scopeDropdownMenu: n, ...r } = e, o = he(n);
@@ -11228,14 +11228,14 @@ var jE = "DropdownMenuSeparator", Gl = w.forwardRef((e, t) => {
11228
11228
  return /* @__PURE__ */ h(EE, { ...o, ...r, ref: t });
11229
11229
  });
11230
11230
  Gl.displayName = jE;
11231
- var BE = "DropdownMenuArrow", HE = w.forwardRef(
11231
+ var BE = "DropdownMenuArrow", VE = w.forwardRef(
11232
11232
  (e, t) => {
11233
11233
  const { __scopeDropdownMenu: n, ...r } = e, o = he(n);
11234
11234
  return /* @__PURE__ */ h(SE, { ...o, ...r, ref: t });
11235
11235
  }
11236
11236
  );
11237
- HE.displayName = BE;
11238
- var VE = (e) => {
11237
+ VE.displayName = BE;
11238
+ var HE = (e) => {
11239
11239
  const { __scopeDropdownMenu: t, children: n, open: r, onOpenChange: o, defaultOpen: s } = e, i = he(t), [a, c] = Ko({
11240
11240
  prop: r,
11241
11241
  defaultProp: s ?? !1,
@@ -11268,7 +11268,7 @@ var GE = "DropdownMenuSubContent", Jl = w.forwardRef((e, t) => {
11268
11268
  );
11269
11269
  });
11270
11270
  Jl.displayName = GE;
11271
- var YE = Fl, JE = Ul, Kl = jl, KE = Hl, XE = Vl, Ua = Wl, qE = Gl, QE = VE, eS = Yl, tS = Jl;
11271
+ var YE = Fl, JE = Ul, Kl = jl, KE = Vl, XE = Hl, Ua = Wl, qE = Gl, QE = HE, eS = Yl, tS = Jl;
11272
11272
  const ja = (e) => {
11273
11273
  if (typeof e == "string")
11274
11274
  return e;
@@ -11342,7 +11342,7 @@ const Xl = ({ label: e, icon: t, children: n, disabled: r = !1, sideOffset: o =
11342
11342
  })
11343
11343
  ]
11344
11344
  }),
11345
- /* @__PURE__ */ h(Vu, {
11345
+ /* @__PURE__ */ h(Hu, {
11346
11346
  className: "ml-2",
11347
11347
  size: "size-3",
11348
11348
  monotone: !0
@@ -11520,7 +11520,7 @@ const cS = (e) => {
11520
11520
  setChatId: o,
11521
11521
  setInitialMessages: s
11522
11522
  } = de(Le), [i, a] = Ke(), [c, l] = B(!1), [d, u] = B(!1), [g, m] = et({
11523
- key: He + mu,
11523
+ key: Ve + mu,
11524
11524
  initialValue: ""
11525
11525
  }), [p, f] = B(!1), y = (_) => {
11526
11526
  o(ht()), s([]), r({
@@ -11557,8 +11557,8 @@ const cS = (e) => {
11557
11557
  {
11558
11558
  toggleLabel: "Don't show this again",
11559
11559
  toggleName: "reasoning-disclosure",
11560
- maxHeight: Ht() ? "large" : "medium",
11561
- noCancelAction: Ht(),
11560
+ maxHeight: Vt() ? "large" : "medium",
11561
+ noCancelAction: Vt(),
11562
11562
  toggleChecked: p,
11563
11563
  onToggleChange: (_) => f(_),
11564
11564
  showConfirmation: c,
@@ -11771,7 +11771,7 @@ const pS = [".png", ".jpg", ".jpeg", ".webp"], mS = [".pdf", ".txt"], hS = [
11771
11771
  " ",
11772
11772
  or(Po)
11773
11773
  ] })
11774
- ] }), is = 1200, eu = 200 * 1024, xS = 0.85, Ha = 0.5, IS = 0.1, TS = ["image/jpeg", "image/webp"], AS = ["image/png", "image/jpeg", "image/webp"], tu = (e) => AS.includes(e.type), RS = (e, t, n = is) => {
11774
+ ] }), is = 1200, eu = 200 * 1024, xS = 0.85, Va = 0.5, IS = 0.1, TS = ["image/jpeg", "image/webp"], AS = ["image/png", "image/jpeg", "image/webp"], tu = (e) => AS.includes(e.type), RS = (e, t, n = is) => {
11775
11775
  if (e <= n && t <= n)
11776
11776
  return { width: e, height: t };
11777
11777
  const r = e / t;
@@ -11818,10 +11818,10 @@ const pS = [".png", ".jpg", ".jpeg", ".webp"], mS = [".pdf", ".txt"], hS = [
11818
11818
  i,
11819
11819
  c,
11820
11820
  l ? d : 1
11821
- ), u.size <= t || d <= Ha)
11821
+ ), u.size <= t || d <= Va)
11822
11822
  break;
11823
11823
  d -= IS;
11824
- } while (d >= Ha);
11824
+ } while (d >= Va);
11825
11825
  if (u.size >= e.size)
11826
11826
  return e;
11827
11827
  const m = {
@@ -11838,7 +11838,7 @@ const pS = [".png", ".jpg", ".jpeg", ".webp"], mS = [".pdf", ".txt"], hS = [
11838
11838
  }
11839
11839
  }, kS = async (e, t = eu, n = is) => await Promise.all(
11840
11840
  e.map((o) => tu(o) ? MS(o, t, n) : Promise.resolve(o))
11841
- ), nu = 24, DS = 500, ru = 1, $S = 5, LS = nu * ru, Va = $S * nu, zS = "ready", FS = "streaming", ZS = "error", US = "submitted", Yn = (e) => {
11841
+ ), nu = 24, DS = 500, ru = 1, $S = 5, LS = nu * ru, Ha = $S * nu, zS = "ready", FS = "streaming", ZS = "error", US = "submitted", Yn = (e) => {
11842
11842
  e.current && (e.current.style.height = `${LS}px`);
11843
11843
  }, jS = () => {
11844
11844
  const { user: e, getAccessToken: t } = $e(), n = hr(ar.ADDON.ATTACHMENTS), r = hr(ar.ADDON.REASONING), { allowedModels: o } = Mo(), [s, i] = B(null), [a, c] = B(!1), [l, d] = B(!1), {
@@ -11857,9 +11857,9 @@ const pS = [".png", ".jpg", ".jpeg", ".webp"], mS = [".pdf", ".txt"], hS = [
11857
11857
  } = de(Le), { state: E, dispatch: S } = de(ko), { data: I } = bt({
11858
11858
  user: e?.username,
11859
11859
  getAccessToken: t
11860
- }), x = W(null), T = W(null), k = W(!1), M = W(0), j = W(0), O = W(null), R = W(null), L = id(), [Q, H] = Ke(), q = SS({
11860
+ }), x = W(null), T = W(null), k = W(!1), M = W(0), j = W(0), O = W(null), R = W(null), L = id(), [Q, V] = Ke(), q = SS({
11861
11861
  oledMode: u,
11862
- placeholderColor: Q(H.Placeholder)
11862
+ placeholderColor: Q(V.Placeholder)
11863
11863
  }), D = r && I?.showReasoningButton, { setMessages: N, status: ie, id: Ie, sendMessage: ze, input: me, setInput: Ee, messages: kt } = wt({
11864
11864
  onFinish: (Y) => {
11865
11865
  const ue = Y.message?.metadata;
@@ -11957,8 +11957,8 @@ const pS = [".png", ".jpg", ".jpeg", ".webp"], mS = [".pdf", ".txt"], hS = [
11957
11957
  return;
11958
11958
  R.current.style.height = "auto";
11959
11959
  const Y = R.current.scrollHeight;
11960
- if (Y > Va) {
11961
- R.current.style.height = `${Va}px`, R.current.style.overflowY = "scroll";
11960
+ if (Y > Ha) {
11961
+ R.current.style.height = `${Ha}px`, R.current.style.overflowY = "scroll";
11962
11962
  return;
11963
11963
  }
11964
11964
  R.current.style.height = `${Y}px`, R.current.style.overflowY = "hidden";
@@ -12170,7 +12170,7 @@ const pS = [".png", ".jpg", ".jpeg", ".webp"], mS = [".pdf", ".txt"], hS = [
12170
12170
  dispatch: a
12171
12171
  } = de(En), [c] = B(
12172
12172
  () => hs[Math.floor(Math.random() * hs.length)]
12173
- ), l = Ae(() => We(), []), d = Ae(() => Vd(), []), { messages: u } = wt(), [g, m] = si(), [p, f] = Ke(), y = qv(d), { height: b } = Yv(), { height: _ } = Jv(), v = d ? 0 : b - _, E = Ae(() => {
12173
+ ), l = Ae(() => We(), []), d = Ae(() => Hd(), []), { messages: u } = wt(), [g, m] = si(), [p, f] = Ke(), y = qv(d), { height: b } = Yv(), { height: _ } = Jv(), v = d ? 0 : b - _, E = Ae(() => {
12174
12174
  const S = l ? bu : d ? wu : qa;
12175
12175
  return l ? v > 70 && v < 500 ? Fr / 2 : S : d ? y ? Fr : S : v > 0 && v < 100 ? Fr : S;
12176
12176
  }, [v, l, d, y]);
@@ -12271,7 +12271,7 @@ const pS = [".png", ".jpg", ".jpeg", ".webp"], mS = [".pdf", ".txt"], hS = [
12271
12271
  label: "Google Gemini",
12272
12272
  icon: dd
12273
12273
  }
12274
- ], HS = ({ className: e }) => {
12274
+ ], VS = ({ className: e }) => {
12275
12275
  const {
12276
12276
  dispatch: t,
12277
12277
  state: { privateChat: n },
@@ -12356,6 +12356,7 @@ const pS = [".png", ".jpg", ".jpeg", ".webp"], mS = [".pdf", ".txt"], hS = [
12356
12356
  {
12357
12357
  noBorder: !0,
12358
12358
  noBackground: !0,
12359
+ mode: "light",
12359
12360
  label: "Providers",
12360
12361
  disabled: !x,
12361
12362
  onMouseEnter: p,
@@ -12430,41 +12431,41 @@ const pS = [".png", ".jpg", ".jpeg", ".webp"], mS = [".pdf", ".txt"], hS = [
12430
12431
  }
12431
12432
  )
12432
12433
  ] }) : /* @__PURE__ */ h("div", { className: e, children: M });
12433
- }, VS = ot(
12434
+ }, HS = ot(
12434
12435
  () => import(
12435
12436
  /* webpackChunkName: "modal-chunk" */
12436
- "./ProfileEntry.CmxgoGnW.js"
12437
+ "./ProfileEntry.CUV-9iMm.js"
12437
12438
  ).then((e) => ({
12438
12439
  default: e.Profile
12439
12440
  }))
12440
12441
  ), WS = ot(
12441
12442
  () => import(
12442
12443
  /* webpackChunkName: "modal-chunk" */
12443
- "./SettingsEntry.DHDvN-1t.js"
12444
+ "./SettingsEntry.D7f2JSbh.js"
12444
12445
  ).then((e) => ({
12445
12446
  default: e.SettingsPanel
12446
12447
  }))
12447
12448
  ), GS = ot(
12448
12449
  () => import(
12449
12450
  /* webpackChunkName: "modal-chunk" */
12450
- "./HistoryEntry.DwDFj_Ul.js"
12451
+ "./HistoryEntry.kjIxebIy.js"
12451
12452
  ).then((e) => ({
12452
12453
  default: e.HistoryPanel
12453
12454
  }))
12454
12455
  ), YS = ot(
12455
12456
  () => import(
12456
12457
  /* webpackChunkName: "modal-chunk" */
12457
- "./AboutEntry.d0wBsNrA.js"
12458
+ "./AboutEntry.DJiEOY0P.js"
12458
12459
  ).then((e) => ({ default: e.About }))
12459
12460
  ), JS = ot(
12460
12461
  () => import(
12461
12462
  /* webpackChunkName: "modal-chunk" */
12462
- "./UsageEntry.BDfnFUrH.js"
12463
+ "./UsageEntry.Zc_UQH0X.js"
12463
12464
  ).then((e) => ({ default: e.Usage }))
12464
12465
  ), KS = ot(
12465
12466
  () => import(
12466
12467
  /* webpackChunkName: "modal-chunk" */
12467
- "./MemoriesEntry.DJqg-T1a.js"
12468
+ "./MemoriesEntry.pWnmnsBR.js"
12468
12469
  ).then((e) => ({ default: e.default }))
12469
12470
  ), XS = ({
12470
12471
  open: e,
@@ -12482,7 +12483,7 @@ const pS = [".png", ".jpg", ".jpeg", ".webp"], mS = [".pdf", ".txt"], hS = [
12482
12483
  }, qS = ({ type: e, open: t, onOpenChange: n }) => t ? /* @__PURE__ */ h(ir, { fallback: /* @__PURE__ */ h("div", {}), children: (() => {
12483
12484
  switch (e) {
12484
12485
  case "profile":
12485
- return /* @__PURE__ */ h(VS, { open: t, onOpenChange: n });
12486
+ return /* @__PURE__ */ h(HS, { open: t, onOpenChange: n });
12486
12487
  case "settings":
12487
12488
  return /* @__PURE__ */ h(WS, { open: t, onOpenChange: n });
12488
12489
  case "history":
@@ -12512,23 +12513,23 @@ const pS = [".png", ".jpg", ".jpeg", ".webp"], mS = [".pdf", ".txt"], hS = [
12512
12513
  p || Promise.all([
12513
12514
  import(
12514
12515
  /* webpackChunkName: "modal-chunk" */
12515
- "./ProfileEntry.CmxgoGnW.js"
12516
+ "./ProfileEntry.CUV-9iMm.js"
12516
12517
  ),
12517
12518
  import(
12518
12519
  /* webpackChunkName: "modal-chunk" */
12519
- "./SettingsEntry.DHDvN-1t.js"
12520
+ "./SettingsEntry.D7f2JSbh.js"
12520
12521
  ),
12521
12522
  import(
12522
12523
  /* webpackChunkName: "modal-chunk" */
12523
- "./HistoryEntry.DwDFj_Ul.js"
12524
+ "./HistoryEntry.kjIxebIy.js"
12524
12525
  ),
12525
12526
  import(
12526
12527
  /* webpackChunkName: "modal-chunk" */
12527
- "./AboutEntry.d0wBsNrA.js"
12528
+ "./AboutEntry.DJiEOY0P.js"
12528
12529
  ),
12529
12530
  import(
12530
12531
  /* webpackChunkName: "modal-chunk" */
12531
- "./UsageEntry.BDfnFUrH.js"
12532
+ "./UsageEntry.Zc_UQH0X.js"
12532
12533
  )
12533
12534
  ]).finally(() => f(!0));
12534
12535
  }, [p]), E = J((k) => {
@@ -12590,7 +12591,7 @@ const pS = [".png", ".jpg", ".jpeg", ".webp"], mS = [".pdf", ".txt"], hS = [
12590
12591
  "bg-surface-darker/95 dark:bg-surface-darker": t
12591
12592
  }),
12592
12593
  children: /* @__PURE__ */ z("div", { className: "flex flex-wrap justify-between items-center", children: [
12593
- /* @__PURE__ */ h("div", { className: "box-border max-w-full basis-auto", children: /* @__PURE__ */ h(HS, { className: "mr-2" }) }),
12594
+ /* @__PURE__ */ h("div", { className: "box-border max-w-full basis-auto", children: /* @__PURE__ */ h(VS, { className: "mr-2" }) }),
12594
12595
  /* @__PURE__ */ h("div", { className: "box-border max-w-full basis-auto", children: /* @__PURE__ */ h(
12595
12596
  _t,
12596
12597
  {
@@ -12606,6 +12607,8 @@ const pS = [".png", ".jpg", ".jpeg", ".webp"], mS = [".pdf", ".txt"], hS = [
12606
12607
  st,
12607
12608
  {
12608
12609
  noBorder: !0,
12610
+ noBackground: !0,
12611
+ mode: "light",
12609
12612
  label: "Settings",
12610
12613
  onMouseEnter: v,
12611
12614
  onFocus: v,
@@ -12786,18 +12789,18 @@ const Wa = "av-spinner", ou = ({ spinnerRef: e, mode: t = "system", type: n = "c
12786
12789
  ]
12787
12790
  });
12788
12791
  }, n0 = ot(
12789
- () => import("./Bubble.Cv3jM5GI.js").then((e) => ({ default: e.Bubble }))
12792
+ () => import("./Bubble.BVVtityP.js").then((e) => ({ default: e.Bubble }))
12790
12793
  ), cs = (e) => /* @__PURE__ */ h(ir, { fallback: /* @__PURE__ */ h("span", { className: "inline-block" }), children: /* @__PURE__ */ h(n0, { ...e }) });
12791
12794
  cs.displayName = "AsyncBubble";
12792
12795
  const Ga = 1, r0 = 150, o0 = ot(
12793
12796
  () => import(
12794
12797
  /* webpackChunkName: "LazyMessageAssistant" */
12795
- "./ChatBubbleAssistant.CJ8KkIfU.js"
12798
+ "./ChatBubbleAssistant.BYoRcC_t.js"
12796
12799
  )
12797
12800
  ), s0 = ot(
12798
12801
  () => import(
12799
12802
  /* webpackChunkName: "LazyMessageUser" */
12800
- "./ChatBubbleUser.BqD9i861.js"
12803
+ "./ChatBubbleUser._O3tGQOo.js"
12801
12804
  )
12802
12805
  ), a0 = Ze.memo(
12803
12806
  ({
@@ -12897,7 +12900,7 @@ const l0 = () => {
12897
12900
  isAuthenticated: e,
12898
12901
  oledMode: g,
12899
12902
  extraClass: "rounded-b-md relative border-b-16 border-transparent"
12900
- }), x = Ht() ? "mt-4" : "", T = J(() => {
12903
+ }), x = Vt() ? "mt-4" : "", T = J(() => {
12901
12904
  if (a > 0 && r.current) {
12902
12905
  const { scrollHeight: M, clientHeight: j } = r.current;
12903
12906
  if (M - a < j && i.current) {
@@ -12984,16 +12987,16 @@ function au({
12984
12987
  headerHeight: t = 0
12985
12988
  }) {
12986
12989
  const { user: n, getAccessToken: r } = $e(), [o, s] = B(`${fs}px`), [i, a] = si(), [c, l] = B(ht()), [d, u] = B([]), [g] = et({
12987
- key: He + Du,
12990
+ key: Ve + Du,
12988
12991
  initialValue: ""
12989
12992
  }), [m] = et({
12990
- key: He + ku,
12993
+ key: Ve + ku,
12991
12994
  initialValue: ps
12992
12995
  }), [p] = et({
12993
- key: He + zu,
12996
+ key: Ve + zu,
12994
12997
  initialValue: on.DESC
12995
12998
  }), [f] = et({
12996
- key: He + Fu,
12999
+ key: Ve + Fu,
12997
13000
  initialValue: on.ASC
12998
13001
  }), [y] = et({
12999
13002
  key: $u,
@@ -13009,8 +13012,8 @@ function au({
13009
13012
  fullScreen: !1,
13010
13013
  themeMode: Ou
13011
13014
  }), []), [v, E] = Dn(_d, _), S = Ae(() => {
13012
- const H = We(), q = Wd();
13013
- return H && q ? "mt-1" : "mt-5";
13015
+ const V = We(), q = Wd();
13016
+ return V && q ? "mt-1" : "mt-5";
13014
13017
  }, []), x = {
13015
13018
  searchString: g,
13016
13019
  sortedCell: m,
@@ -13087,7 +13090,7 @@ function au({
13087
13090
  });
13088
13091
  }, [L]), _n(() => {
13089
13092
  if (v.footerPosition === "FOOTER_BOTTOM") {
13090
- const H = S === "mt-1" ? 4 : 20, q = `calc(${a.height}px + ${H}px)`;
13093
+ const V = S === "mt-1" ? 4 : 20, q = `calc(${a.height}px + ${V}px)`;
13091
13094
  s(
13092
13095
  `calc(100svh - ${t}px - ${q} - ${v.footerHeight}px - ${v.footerOffset}px - ${Qa}px)`
13093
13096
  );
@@ -13123,7 +13126,7 @@ function au({
13123
13126
  setInitialMessages: u
13124
13127
  },
13125
13128
  children: /* @__PURE__ */ z(
13126
- Vv,
13129
+ Hv,
13127
13130
  {
13128
13131
  value: {
13129
13132
  id: c,
@@ -13193,7 +13196,7 @@ export {
13193
13196
  Db as Toggle,
13194
13197
  b0 as debounce,
13195
13198
  tv as getDefaultExportFromCjs,
13196
- Ht as isProbablyMobile,
13199
+ Vt as isProbablyMobile,
13197
13200
  _0 as numberFormatter,
13198
13201
  E0 as obfuscate,
13199
13202
  w0 as pluralize,