@versini/sassysaint 8.118.4 → 8.119.1

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 (87) hide show
  1. package/dist/chunks/{AboutChangelog.Dspi4cmi.js → AboutChangelog.DUUKJ4nJ.js} +2 -2
  2. package/dist/chunks/{AboutEntry.DxWZPlbg.js → AboutEntry.HowTPv8P.js} +7 -7
  3. package/dist/chunks/{App.yIuQGm0t.js → App.YH7VhNjK.js} +647 -646
  4. package/dist/chunks/{BubbleActions.BMYwxyEv.js → BubbleActions.CVas6oiy.js} +3 -3
  5. package/dist/chunks/ButtonIconDelete.DLIImGjj.js +538 -0
  6. package/dist/chunks/{Chart.C1IWoXDe.js → Chart.CgyzOc3_.js} +2 -2
  7. package/dist/chunks/{ChatBubbleAssistant.BKlO1McH.js → ChatBubbleAssistant.PmI4ABQt.js} +9 -6
  8. package/dist/chunks/{ChatBubbleUser.CSjDB1B9.js → ChatBubbleUser.YIoXqbVF.js} +4 -4
  9. package/dist/chunks/HistoryDataGrid.Dxc-zHra.js +487 -0
  10. package/dist/chunks/HistoryEntry.fta5Qy7u.js +305 -0
  11. package/dist/chunks/InlineFilter.BV1LITjW.js +123 -0
  12. package/dist/chunks/{LoginEntry.BEPZiizw.js → LoginEntry.s9rmuYKn.js} +4 -4
  13. package/dist/chunks/{LogoEntry.BZFz5IRw.js → LogoEntry.BAI8lPSQ.js} +175 -163
  14. package/dist/chunks/{MemoriesEntry.C40K6l5F.js → MemoriesEntry.z0U8T17Y.js} +234 -206
  15. package/dist/chunks/{ProfileEntry.C0WTyHem.js → ProfileEntry.CbUS7vRG.js} +4 -4
  16. package/dist/chunks/{SettingsEntry.B1WFVdjg.js → SettingsEntry.LEugTL8A.js} +5 -5
  17. package/dist/chunks/{UsageEntry.CPOickJC.js → UsageEntry.DMIbfTUl.js} +5 -5
  18. package/dist/chunks/{_baseUniq.YXUy3_Q9.js → _baseUniq.3SecgKQH.js} +1 -1
  19. package/dist/chunks/{arc.CgPKPJv0.js → arc.BDfa_lp3.js} +1 -1
  20. package/dist/chunks/{architecture-U656AL7Q.D2ZUn_s6.js → architecture-U656AL7Q.HFVQwsOS.js} +1 -1
  21. package/dist/chunks/{architectureDiagram-VXUJARFQ.DbVJLkeI.js → architectureDiagram-VXUJARFQ.BvrTiPQ0.js} +4 -4
  22. package/dist/chunks/{blockDiagram-VD42YOAC.DFlSEVyA.js → blockDiagram-VD42YOAC.DOklLUrl.js} +5 -5
  23. package/dist/chunks/{browser.DtDEL-3A.js → browser.DQk9GqZL.js} +1 -1
  24. package/dist/chunks/{c4Diagram-YG6GDRKO.CiBMNtX8.js → c4Diagram-YG6GDRKO.BFUTTk1Y.js} +2 -2
  25. package/dist/chunks/{channel.DS55bkfq.js → channel.BOFo9Gr-.js} +1 -1
  26. package/dist/chunks/{chunk-4BX2VUAB.t3AfQtrb.js → chunk-4BX2VUAB.CvDkLN8F.js} +1 -1
  27. package/dist/chunks/{chunk-55IACEB6.tlGBBIP8.js → chunk-55IACEB6.B2kRln8j.js} +1 -1
  28. package/dist/chunks/{chunk-B4BG7PRW.DB-Y3GhQ.js → chunk-B4BG7PRW.Corbwbnt.js} +4 -4
  29. package/dist/chunks/{chunk-DI55MBZ5.CkwKVFLI.js → chunk-DI55MBZ5.BT3HHSn0.js} +3 -3
  30. package/dist/chunks/{chunk-FMBD7UC4.CRLAfQmx.js → chunk-FMBD7UC4.5EY27HC-.js} +1 -1
  31. package/dist/chunks/{chunk-QN33PNHL.DF4bWkbp.js → chunk-QN33PNHL.BbRol0tK.js} +1 -1
  32. package/dist/chunks/{chunk-QZHKN3VN.BijmX3ar.js → chunk-QZHKN3VN.BDDo68fx.js} +1 -1
  33. package/dist/chunks/{chunk-TZMSLE5B.BIvqaR0r.js → chunk-TZMSLE5B.DUziio9C.js} +1 -1
  34. package/dist/chunks/{classDiagram-2ON5EDUG.SU5U-1P1.js → classDiagram-2ON5EDUG.CQzgRWsN.js} +2 -2
  35. package/dist/chunks/{classDiagram-v2-WZHVMYZB.SU5U-1P1.js → classDiagram-v2-WZHVMYZB.CQzgRWsN.js} +2 -2
  36. package/dist/chunks/{clone.8clUx6ET.js → clone.BbTV7Hf1.js} +1 -1
  37. package/dist/chunks/{cose-bilkent-S5V4N54A.DnWtIsYd.js → cose-bilkent-S5V4N54A.H-phdC7M.js} +2 -2
  38. package/dist/chunks/{dagre-6UL2VRFP.C8KeFvOQ.js → dagre-6UL2VRFP.x6Rep04B.js} +5 -5
  39. package/dist/chunks/{diagram-PSM6KHXK.DnzHPurw.js → diagram-PSM6KHXK.CSCzs70K.js} +4 -4
  40. package/dist/chunks/{diagram-QEK2KX5R.DCKZbQSh.js → diagram-QEK2KX5R.Dtem9HUK.js} +3 -3
  41. package/dist/chunks/{diagram-S2PKOQOG.lY2nb2ry.js → diagram-S2PKOQOG.zbHWbMaf.js} +3 -3
  42. package/dist/chunks/{erDiagram-Q2GNP2WA.BYtHx1uZ.js → erDiagram-Q2GNP2WA.BtpqAsGU.js} +4 -4
  43. package/dist/chunks/{flowDiagram-NV44I4VS.G-nRLM7M.js → flowDiagram-NV44I4VS.DWAr7BjD.js} +5 -5
  44. package/dist/chunks/{ganttDiagram-JELNMOA3.B7RwC1m-.js → ganttDiagram-JELNMOA3.CMrQ-dz3.js} +2 -2
  45. package/dist/chunks/{gitGraph-F6HP7TQM.Chwk8Igs.js → gitGraph-F6HP7TQM.BpVVMz0e.js} +1 -1
  46. package/dist/chunks/{gitGraphDiagram-NY62KEGX.BQpsCwST.js → gitGraphDiagram-NY62KEGX.Dnudwhw8.js} +4 -4
  47. package/dist/chunks/{graph.toxuN_lw.js → graph.Dchkn011.js} +2 -2
  48. package/dist/chunks/{index.KxPrp_tf.js → index.B-JCLT_X.js} +3 -3
  49. package/dist/chunks/{index.Bt339Jho.js → index.B8WGlS1_.js} +1 -1
  50. package/dist/chunks/{index.petd1VFV.js → index.C1iOYl0L.js} +1 -1
  51. package/dist/chunks/{index.BlDUpXR0.js → index.CFiwZc0d.js} +1 -1
  52. package/dist/chunks/{index.ChIqgESd.js → index.CJdOzh65.js} +1 -1
  53. package/dist/chunks/{index.mDr9FsVI.js → index.CKTPHcKB.js} +1 -1
  54. package/dist/chunks/{index.D_muERB9.js → index.CtIbZ6tf.js} +1 -1
  55. package/dist/chunks/{index.7D5oQmQR.js → index.CxH0cB2j.js} +3 -3
  56. package/dist/chunks/{index.hGvmkGha.js → index.jtqzynwK.js} +2 -2
  57. package/dist/chunks/{info-NVLQJR56.DqwhVDNM.js → info-NVLQJR56.D6y19kSs.js} +1 -1
  58. package/dist/chunks/{infoDiagram-WHAUD3N6.Bz9PwgrD.js → infoDiagram-WHAUD3N6.Df1Bl645.js} +2 -2
  59. package/dist/chunks/{journeyDiagram-XKPGCS4Q.b8ugCUee.js → journeyDiagram-XKPGCS4Q.Ci2alRy7.js} +4 -4
  60. package/dist/chunks/{kanban-definition-3W4ZIXB7.ruPmZWrk.js → kanban-definition-3W4ZIXB7.DfuyRvt8.js} +2 -2
  61. package/dist/chunks/{layout.Bw1IU1i2.js → layout.D90hHM4d.js} +4 -4
  62. package/dist/chunks/{mermaid-parser.core.BgEYW9Yt.js → mermaid-parser.core.DLE_P-x2.js} +10 -10
  63. package/dist/chunks/{min.C98rd9wr.js → min.B0AjWADq.js} +2 -2
  64. package/dist/chunks/{mindmap-definition-VGOIOE7T.VWXpOB6F.js → mindmap-definition-VGOIOE7T.Bu83LzTN.js} +257 -232
  65. package/dist/chunks/{packet-BFZMPI3H.BYL6GQTI.js → packet-BFZMPI3H.DxZoEqgw.js} +1 -1
  66. package/dist/chunks/{pie-7BOR55EZ.BbY5iD1e.js → pie-7BOR55EZ.DWdiSl6K.js} +1 -1
  67. package/dist/chunks/{pieDiagram-ADFJNKIX.CsOtW7r-.js → pieDiagram-ADFJNKIX.BDwKttQ7.js} +4 -4
  68. package/dist/chunks/{quadrantDiagram-AYHSOK5B.7UFNI_vX.js → quadrantDiagram-AYHSOK5B.CRt3S_H1.js} +1 -1
  69. package/dist/chunks/{radar-NHE76QYJ.DvagCir3.js → radar-NHE76QYJ.CoZXKuQy.js} +1 -1
  70. package/dist/chunks/{rehype-mermaid.hM-_EEUn.js → rehype-mermaid.Om4IoSir.js} +33 -33
  71. package/dist/chunks/{requirementDiagram-UZGBJVZJ.CBvrcwfU.js → requirementDiagram-UZGBJVZJ.DlBPAOx9.js} +3 -3
  72. package/dist/chunks/{sankeyDiagram-TZEHDZUN.DwPokg-1.js → sankeyDiagram-TZEHDZUN.BZytE4s9.js} +1 -1
  73. package/dist/chunks/{sequenceDiagram-WL72ISMW.DTlYi-bq.js → sequenceDiagram-WL72ISMW.Bbuw9Hz-.js} +3 -3
  74. package/dist/chunks/{stateDiagram-FKZM4ZOC.B3zjLqs6.js → stateDiagram-FKZM4ZOC.BsnKKwn5.js} +4 -4
  75. package/dist/chunks/{stateDiagram-v2-4FDKWEC3.M0ePKl-7.js → stateDiagram-v2-4FDKWEC3.BsNASJkO.js} +2 -2
  76. package/dist/chunks/{timeline-definition-IT6M3QCI.QqZxgHc2.js → timeline-definition-IT6M3QCI.R8tQley7.js} +2 -2
  77. package/dist/chunks/{treemap-KMMF4GRG.BmCv7l6d.js → treemap-KMMF4GRG.Cs8W98VP.js} +1 -1
  78. package/dist/chunks/{useMarkdown.ZHvHgCd8.js → useMarkdown.Bzgv93hs.js} +8 -8
  79. package/dist/chunks/{xychartDiagram-PRI3JC2R.CPjv7vTS.js → xychartDiagram-PRI3JC2R.SMqCrVMM.js} +1 -1
  80. package/dist/components/SassySaint/SassySaint.js +1 -1
  81. package/dist/index.js +3 -3
  82. package/dist/style.css +1 -1
  83. package/package.json +4 -4
  84. package/dist/chunks/ButtonIconDelete.BMqZFgu1.js +0 -326
  85. package/dist/chunks/ChatHistoryTable.B8dA3To0.js +0 -322
  86. package/dist/chunks/HistoryEntry.Bhv62llk.js +0 -333
  87. package/dist/chunks/useAnimatedHeight.3F4Xj7iE.js +0 -91
@@ -1,8 +1,8 @@
1
1
  import { jsx as g, jsxs as F, Fragment as ct } from "react/jsx-runtime";
2
- import { ACTION_SORT as du, ACTION_SEARCH as fu, ACTION_RESET_PROMPT as Ja, ACTION_TOGGLE_PROMPT as Ka, LOCAL_STORAGE_PREFIX as He, LOCAL_STORAGE_CHAT_ID as Kn, n as $e, useChat as pu, DEFAULT_ICON_ACTION_SIZE as tt, isTauri as ar, useUserPreferences as vt, serverUrl as Xa, useEntitlements as Do, useSaveChat as mu, LOCAL_STORAGE_PRIVATE_DISCLOSURE as hu, F as ir, LOCAL_STORAGE_REASONING_DISCLOSURE as gu, PROMPT_EDITABLE_AREA_CLASSNAME as vu, PROMPT_CLASSNAME as yu, X as qa, ERROR_MESSAGE as bu, o as an, v as wu, INPUT_BOTTOM_OFFSET_IPHONE as _u, INPUT_BOTTOM_OFFSET_IPAD as Eu, INPUT_BOTTOM_OFFSET as Qa, INPUT_BOTTOM_OFFSET_EXTRA as Zr, getLayoutPaddingClass as fo, canEvaluateModels as ds, W as Su, a as Cu, i as xu, s as Tu, x as Iu, c as Ur, setNewProvider as fs, useQueryClient as Au, n$1 as po, useServerCapabilities as Ru, getMessageContaintWrapperClass as Ou, UI_FOOTER_BUFFER as ei, UI_BUTTON_SCROLL_BUFFER as Nu, UI_DEFAULT_MAIN_HEIGHT as ps, e as Pu, applyOledMode as Mu, UI_DEFAULT_MAIN_HEIGHT_IPHONE as ku, y as ms, V as Du, LOCAL_STORAGE_SORT as $u, LOCAL_STORAGE_SEARCH as Lu, LOCAL_STORAGE_OLED_MODE as zu, LOCAL_STORAGE_FULL_SCREEN as Fu, LOCAL_STORAGE_SORT_TIMESTAMP as Zu, LOCAL_STORAGE_SORT_TOKEN_USAGE as Uu } from "./index.hGvmkGha.js";
2
+ import { ACTION_SORT as du, ACTION_SEARCH as fu, ACTION_RESET_PROMPT as Ja, ACTION_TOGGLE_PROMPT as Ka, LOCAL_STORAGE_PREFIX as He, LOCAL_STORAGE_CHAT_ID as Kn, n as $e, useChat as pu, DEFAULT_ICON_ACTION_SIZE as tt, isTauri as ar, useUserPreferences as vt, serverUrl as Xa, useEntitlements as Do, useSaveChat as mu, LOCAL_STORAGE_PRIVATE_DISCLOSURE as hu, F as ir, LOCAL_STORAGE_REASONING_DISCLOSURE as gu, PROMPT_EDITABLE_AREA_CLASSNAME as vu, PROMPT_CLASSNAME as yu, X as qa, ERROR_MESSAGE as bu, o as an, v as wu, INPUT_BOTTOM_OFFSET_IPHONE as _u, INPUT_BOTTOM_OFFSET_IPAD as Eu, INPUT_BOTTOM_OFFSET as Qa, INPUT_BOTTOM_OFFSET_EXTRA as Zr, getLayoutPaddingClass as fo, canEvaluateModels as ds, W as Su, a as Cu, i as xu, s as Tu, x as Iu, c as Ur, setNewProvider as fs, useQueryClient as Au, n$1 as po, useServerCapabilities as Ru, getMessageContaintWrapperClass as Ou, UI_FOOTER_BUFFER as ei, UI_BUTTON_SCROLL_BUFFER as Nu, UI_DEFAULT_MAIN_HEIGHT as ps, e as Pu, applyOledMode as Mu, UI_DEFAULT_MAIN_HEIGHT_IPHONE as ku, y as ms, V as Du, LOCAL_STORAGE_SORT as $u, LOCAL_STORAGE_SEARCH as Lu, LOCAL_STORAGE_OLED_MODE as zu, LOCAL_STORAGE_FULL_SCREEN as Fu, LOCAL_STORAGE_SORT_TIMESTAMP as Zu, LOCAL_STORAGE_SORT_TOKEN_USAGE as Uu } from "./index.jtqzynwK.js";
3
+ import { SortDirections as rn, ChatContext as Le, ButtonIcon as jt, useTheme as Ke, IconAddLight as ju, IconCloseLight as Bu, IconEditLight as Hu, Button as ti, IconLockedLight as Vu, IconUnlockedLight as Wu, IconNext as Gu, IconSelected as Yu, IconUnSelected as Ju, PromptsContext as $o, IconBookSparklesLight as Ku, IconRewrite as Xu, IconProofread as qu, IconMagic as Qu, IconLightBulbLight as ed, IconSendLight as td, INPUT_PLACEHOLDER_TEXT_IN_SESSION as ni, INPUT_PLACEHOLDER_TEXT_MORNING as nd, INPUT_PLACEHOLDER_TEXT_TODAY as rd, INPUT_PLACEHOLDER_TEXT_AFTERNOON as od, INPUT_PLACEHOLDER_TEXT_EVENING as sd, INPUT_PLACEHOLDER_TEXT_NIGHT as ad, INPUT_PLACEHOLDER_TEXT_DEFAULT as id, IconClose as cd, AppContext as wn, useUniqueId as ld, CLIPBOARD_PROMPT as hs, FOOTER_DISCLAIMERS as gs, useResizeObserver as ri, APP_SET_FOOTER_HEIGHT as ud, FOOTER_TOP as mo, FOOTER_BOTTOM as on, APP_SET_FOOTER_POSITION as jr, IconOpenAI as dd, IconAnthropic as fd, IconGoogleGemini as pd, TOAST_PROVIDER_CHANGED as vs, LOG_OUT as ys, IconProfile as md, IconSliders as hd, IconHistory as gd, IconEditUser as vd, IconChart as yd, IconInfo as bd, IconBack as wd, IconSettings as _d, Logo as Ed, appReducer as Sd, APP_SET_OLED_MODE as Cd, APP_SET_FULL_SCREEN as xd, APP_SET_THEME_MODE as Td, APP_SET_THEME_PALETTE as Id, HistoryContext as Ad, APP_CLASSNAME as Rd } from "./LogoEntry.BAI8lPSQ.js";
3
4
  import * as w from "react";
4
- import Ze, { useSyncExternalStore as Xn, useCallback as J, useEffect as U, useRef as V, useState as B, createContext as ti, useContext as de, useMemo as Ae, useId as ni, useLayoutEffect as wn, cloneElement as ri, Suspense as mo, lazy as yt, useReducer as Dn } from "react";
5
- import { TableCellSortDirections as rn, ChatContext as Le, ButtonIcon as jt, useTheme as Ke, IconAddLight as ju, IconCloseLight as Bu, IconEditLight as Hu, Button as oi, IconLockedLight as Vu, IconUnlockedLight as Wu, IconNext as Gu, IconSelected as Yu, IconUnSelected as Ju, PromptsContext as $o, IconBookSparklesLight as Ku, IconRewrite as Xu, IconProofread as qu, IconMagic as Qu, IconLightBulbLight as ed, IconSendLight as td, INPUT_PLACEHOLDER_TEXT_IN_SESSION as si, INPUT_PLACEHOLDER_TEXT_MORNING as nd, INPUT_PLACEHOLDER_TEXT_TODAY as rd, INPUT_PLACEHOLDER_TEXT_AFTERNOON as od, INPUT_PLACEHOLDER_TEXT_EVENING as sd, INPUT_PLACEHOLDER_TEXT_NIGHT as ad, INPUT_PLACEHOLDER_TEXT_DEFAULT as id, IconClose as cd, AppContext as _n, useUniqueId as ld, CLIPBOARD_PROMPT as hs, FOOTER_DISCLAIMERS as gs, useResizeObserver as ai, APP_SET_FOOTER_HEIGHT as ud, FOOTER_TOP as ho, FOOTER_BOTTOM as on, APP_SET_FOOTER_POSITION as jr, IconOpenAI as dd, IconAnthropic as fd, IconGoogleGemini as pd, TOAST_PROVIDER_CHANGED as vs, LOG_OUT as ys, IconProfile as md, IconSliders as hd, IconHistory as gd, IconEditUser as vd, IconChart as yd, IconInfo as bd, IconBack as wd, IconSettings as _d, Logo as Ed, appReducer as Sd, APP_SET_OLED_MODE as Cd, APP_SET_FULL_SCREEN as xd, APP_SET_THEME_MODE as Td, APP_SET_THEME_PALETTE as Id, HistoryContext as Ad, APP_CLASSNAME as Rd } from "./LogoEntry.BZFz5IRw.js";
5
+ import Ze, { useSyncExternalStore as Xn, useCallback as J, useEffect as U, useRef as V, useState as B, createContext as oi, useContext as de, useMemo as Ae, useId as si, useLayoutEffect as _n, cloneElement as ai, Suspense as ho, lazy as yt, useReducer as Dn } from "react";
6
6
  import M, { clsx as lt } from "clsx";
7
7
  import { useFloatingParentNodeId as Od, FloatingTree as Nd, useMergeRefs as Pd, FloatingNode as Md, FloatingPortal as kd, FloatingOverlay as Dd, FloatingFocusManager as $d, useFloatingNodeId as Ld, useFloating as zd, useClick as Fd, useDismiss as Zd, useRole as Ud, useInteractions as jd } from "@floating-ui/react";
8
8
  import * as ii from "react-dom";
@@ -56,7 +56,7 @@ function et({ key: e, initialValue: t }) {
56
56
  i
57
57
  ];
58
58
  }
59
- const O0 = (e, t) => {
59
+ const N0 = (e, t) => {
60
60
  let n;
61
61
  return (...r) => {
62
62
  window.clearTimeout(n), n = window.setTimeout(() => e(...r), t);
@@ -73,12 +73,12 @@ const O0 = (e, t) => {
73
73
  "iPad"
74
74
  ].includes(navigator.platform) || navigator.userAgent.includes("Mac") && "ontouchend" in document || window.indexedDB !== null, t = Wd(), n = navigator.maxTouchPoints > 1;
75
75
  return e && t && n;
76
- }, Yd = () => window.matchMedia("(display-mode: standalone)").matches || window.navigator.standalone === !0, N0 = (e, t) => t === 1 ? e : `${e}s`, P0 = new Intl.NumberFormat("en", {
76
+ }, Yd = () => window.matchMedia("(display-mode: standalone)").matches || window.navigator.standalone === !0, P0 = (e, t) => t === 1 ? e : `${e}s`, M0 = new Intl.NumberFormat("en", {
77
77
  signDisplay: "never",
78
78
  maximumFractionDigits: 0
79
- }), M0 = (e) => window.btoa(encodeURIComponent(e).replace(/%([0-9A-F]{2})/g, function(n, r) {
79
+ }), k0 = (e) => window.btoa(encodeURIComponent(e).replace(/%([0-9A-F]{2})/g, function(n, r) {
80
80
  return String.fromCharCode(+`0x${r}`);
81
- })), k0 = (e) => decodeURIComponent(window.atob(e).split("").map(function(t) {
81
+ })), D0 = (e) => decodeURIComponent(window.atob(e).split("").map(function(t) {
82
82
  return `%${`00${t.charCodeAt(0).toString(16)}`.slice(-2)}`;
83
83
  }).join(""));
84
84
  var li = "vercel.ai.error", Jd = Symbol.for(li), _s, Es, ut = class ui extends (Es = Error, _s = Jd, Es) {
@@ -6016,16 +6016,17 @@ function $v() {
6016
6016
  return Yr(Dv);
6017
6017
  }
6018
6018
  const Lv = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), sa = { randomUUID: Lv };
6019
- function pt(e, t, n) {
6020
- if (sa.randomUUID && !e)
6021
- return sa.randomUUID();
6019
+ function zv(e, t, n) {
6022
6020
  e = e || {};
6023
6021
  const r = e.random ?? e.rng?.() ?? $v();
6024
6022
  if (r.length < 16)
6025
6023
  throw new Error("Random bytes length must be >= 16");
6026
6024
  return r[6] = r[6] & 15 | 64, r[8] = r[8] & 63 | 128, kv(r);
6027
6025
  }
6028
- const It = "CHAT_SET_STATUS", ic = "CHAT_SET_USAGE", pn = "CHAT_SET_ATTACHMENTS", So = "CHAT_SET_PRIVATE", cc = "CHAT_SET_PROVIDER", Vt = "CHAT_RESET", zv = "CHAT_SCROLL_TO_BOTTOM", Fv = (e, t) => {
6026
+ function pt(e, t, n) {
6027
+ return sa.randomUUID && !e ? sa.randomUUID() : zv(e);
6028
+ }
6029
+ const It = "CHAT_SET_STATUS", ic = "CHAT_SET_USAGE", pn = "CHAT_SET_ATTACHMENTS", So = "CHAT_SET_PRIVATE", cc = "CHAT_SET_PROVIDER", Vt = "CHAT_RESET", Fv = "CHAT_SCROLL_TO_BOTTOM", Zv = (e, t) => {
6029
6030
  switch (t.type) {
6030
6031
  case ic:
6031
6032
  return {
@@ -6057,9 +6058,9 @@ const It = "CHAT_SET_STATUS", ic = "CHAT_SET_USAGE", pn = "CHAT_SET_ATTACHMENTS"
6057
6058
  tokenUsage: t.payload.tokenUsage ? l + t.payload.tokenUsage : l,
6058
6059
  attachments: t.payload.attachments !== void 0 ? t.payload.attachments : e.attachments,
6059
6060
  /**
6060
- * When restoring a chat, clear lastStreamingTimestamp so that the
6061
- * footer displays restoredTimestamp instead. Otherwise, keep the
6062
- * current value or update it when streaming.
6061
+ * When restoring a chat, clear lastStreamingTimestamp so that the footer
6062
+ * displays restoredTimestamp instead. Otherwise, keep the current value or
6063
+ * update it when streaming.
6063
6064
  */
6064
6065
  lastStreamingTimestamp: n ? 0 : r ? Date.now() : e.lastStreamingTimestamp
6065
6066
  };
@@ -6087,7 +6088,7 @@ const It = "CHAT_SET_STATUS", ic = "CHAT_SET_USAGE", pn = "CHAT_SET_ATTACHMENTS"
6087
6088
  scrollToBottomTrigger: e.scrollToBottomTrigger
6088
6089
  };
6089
6090
  }
6090
- case zv:
6091
+ case Fv:
6091
6092
  return {
6092
6093
  ...e,
6093
6094
  scrollToBottomTrigger: Date.now()
@@ -6095,7 +6096,7 @@ const It = "CHAT_SET_STATUS", ic = "CHAT_SET_USAGE", pn = "CHAT_SET_ATTACHMENTS"
6095
6096
  default:
6096
6097
  return e;
6097
6098
  }
6098
- }, Zv = (e, t) => {
6099
+ }, Uv = (e, t) => {
6099
6100
  switch (t?.type) {
6100
6101
  case fu:
6101
6102
  return {
@@ -6114,7 +6115,7 @@ const It = "CHAT_SET_STATUS", ic = "CHAT_SET_USAGE", pn = "CHAT_SET_ATTACHMENTS"
6114
6115
  default:
6115
6116
  return e;
6116
6117
  }
6117
- }, Uv = (e, t) => {
6118
+ }, jv = (e, t) => {
6118
6119
  switch (t?.type) {
6119
6120
  case Ka:
6120
6121
  return {
@@ -6131,7 +6132,7 @@ const It = "CHAT_SET_STATUS", ic = "CHAT_SET_USAGE", pn = "CHAT_SET_ATTACHMENTS"
6131
6132
  }
6132
6133
  };
6133
6134
  var Jr, aa;
6134
- function jv() {
6135
+ function Bv() {
6135
6136
  if (aa) return Jr;
6136
6137
  aa = 1;
6137
6138
  function e(t, n) {
@@ -6148,8 +6149,8 @@ function jv() {
6148
6149
  }
6149
6150
  return Jr = e, Jr;
6150
6151
  }
6151
- var Bv = /* @__PURE__ */ jv();
6152
- const Hv = /* @__PURE__ */ rv(Bv);
6152
+ var Hv = /* @__PURE__ */ Bv();
6153
+ const Vv = /* @__PURE__ */ rv(Hv);
6153
6154
  var lc = (e, t, n) => {
6154
6155
  if (!t.has(e))
6155
6156
  throw TypeError("Cannot " + n);
@@ -6158,10 +6159,10 @@ var lc = (e, t, n) => {
6158
6159
  throw TypeError("Cannot add the same private member more than once");
6159
6160
  t instanceof WeakSet ? t.add(e) : t.set(e, n);
6160
6161
  }, ot = (e, t, n, r) => (lc(e, t, "write to private field"), t.set(e, n), n);
6161
- function Vv(e, t) {
6162
- return t != null ? Hv(e, t) : e;
6162
+ function Wv(e, t) {
6163
+ return t != null ? Vv(e, t) : e;
6163
6164
  }
6164
- var Ie, Qn, er, Qt, en, tn, zt, Co, xo, Wv = class {
6165
+ var Ie, Qn, er, Qt, en, tn, zt, Co, xo, Gv = class {
6165
6166
  constructor(e = []) {
6166
6167
  Fe(this, Ie, void 0), Fe(this, Qn, "ready"), Fe(this, er, void 0), Fe(this, Qt, /* @__PURE__ */ new Set()), Fe(this, en, /* @__PURE__ */ new Set()), Fe(this, tn, /* @__PURE__ */ new Set()), this.pushMessage = (t) => {
6167
6168
  ot(this, Ie, re(this, Ie).concat(t)), re(this, zt).call(this);
@@ -6175,7 +6176,7 @@ var Ie, Qn, er, Qt, en, tn, zt, Co, xo, Wv = class {
6175
6176
  ...re(this, Ie).slice(t + 1)
6176
6177
  ]), re(this, zt).call(this);
6177
6178
  }, this.snapshot = (t) => structuredClone(t), this["~registerMessagesCallback"] = (t, n) => {
6178
- const r = n ? Vv(t, n) : t;
6179
+ const r = n ? Wv(t, n) : t;
6179
6180
  return re(this, Qt).add(r), () => {
6180
6181
  re(this, Qt).delete(r);
6181
6182
  };
@@ -6221,12 +6222,12 @@ Co = /* @__PURE__ */ new WeakMap();
6221
6222
  xo = /* @__PURE__ */ new WeakMap();
6222
6223
  var Ft, ia = class extends Mv {
6223
6224
  constructor({ messages: e, ...t }) {
6224
- const n = new Wv(e);
6225
+ const n = new Gv(e);
6225
6226
  super({ ...t, state: n }), Fe(this, Ft, void 0), this["~registerMessagesCallback"] = (r, o) => re(this, Ft)["~registerMessagesCallback"](r, o), this["~registerStatusCallback"] = (r) => re(this, Ft)["~registerStatusCallback"](r), this["~registerErrorCallback"] = (r) => re(this, Ft)["~registerErrorCallback"](r), ot(this, Ft, n);
6226
6227
  }
6227
6228
  };
6228
6229
  Ft = /* @__PURE__ */ new WeakMap();
6229
- function Gv({
6230
+ function Yv({
6230
6231
  experimental_throttle: e,
6231
6232
  resume: t = !1,
6232
6233
  ...n
@@ -6284,7 +6285,7 @@ const ca = () => ({
6284
6285
  onError: /* @__PURE__ */ new Set(),
6285
6286
  onData: /* @__PURE__ */ new Set(),
6286
6287
  onToolCall: /* @__PURE__ */ new Set()
6287
- }), uc = ti(null);
6288
+ }), uc = oi(null);
6288
6289
  function bt(e = {}) {
6289
6290
  const t = de(uc);
6290
6291
  if (!t)
@@ -6303,7 +6304,7 @@ function bt(e = {}) {
6303
6304
  setInput: t.setInput
6304
6305
  };
6305
6306
  }
6306
- function Yv({
6307
+ function Jv({
6307
6308
  children: e,
6308
6309
  value: t
6309
6310
  }) {
@@ -6323,7 +6324,7 @@ function Yv({
6323
6324
  }, []), c = J(async (d) => {
6324
6325
  for (const u of n.current.onToolCall)
6325
6326
  await u(d);
6326
- }, []), l = Gv({
6327
+ }, []), l = Yv({
6327
6328
  id: t.id,
6328
6329
  messages: t.messages,
6329
6330
  transport: t.transport || new Ho({
@@ -6349,7 +6350,7 @@ function Yv({
6349
6350
  }
6350
6351
  );
6351
6352
  }
6352
- const Jv = ({ chatId: e }) => {
6353
+ const Kv = ({ chatId: e }) => {
6353
6354
  const { messages: t } = bt(), {
6354
6355
  state: { privateChat: n }
6355
6356
  } = de(Le), r = V(e), o = V(!1);
@@ -6391,7 +6392,7 @@ const la = ({
6391
6392
  };
6392
6393
  }
6393
6394
  }, []), n && Kr ? /* @__PURE__ */ g(Kr, { containerId: e, ...t }) : null;
6394
- }, Kv = 1e3, Xv = ({
6395
+ }, Xv = 1e3, qv = ({
6395
6396
  currentChatId: e,
6396
6397
  setChatId: t,
6397
6398
  setInitialMessages: n,
@@ -6407,7 +6408,7 @@ const la = ({
6407
6408
  enabled: d
6408
6409
  });
6409
6410
  return U(() => {
6410
- !u || !d || a || o > 0 && Date.now() - o < Kv || u.messages && (r({
6411
+ !u || !d || a || o > 0 && Date.now() - o < Xv || u.messages && (r({
6411
6412
  type: It,
6412
6413
  payload: {
6413
6414
  streaming: !1,
@@ -6437,7 +6438,7 @@ function ua(e, t) {
6437
6438
  t
6438
6439
  ]);
6439
6440
  }
6440
- function qv() {
6441
+ function Qv() {
6441
6442
  const [e, t] = B({
6442
6443
  width: 0,
6443
6444
  height: 0
@@ -6449,7 +6450,7 @@ function qv() {
6449
6450
  }, []);
6450
6451
  return ua("resize", n), ua("orientationchange", n), U(n, []), e;
6451
6452
  }
6452
- function Qv() {
6453
+ function ey() {
6453
6454
  const [e, t] = B({
6454
6455
  width: 0,
6455
6456
  height: 0
@@ -6469,8 +6470,8 @@ function Qv() {
6469
6470
  n
6470
6471
  ]), e;
6471
6472
  }
6472
- const ey = "z-20", ty = "z-10";
6473
- function ny(e) {
6473
+ const ty = "z-20", ny = "z-10";
6474
+ function ry(e) {
6474
6475
  const [t, n] = B(!1);
6475
6476
  return U(() => {
6476
6477
  if (!e) {
@@ -6487,7 +6488,7 @@ function ny(e) {
6487
6488
  };
6488
6489
  }, [e]), t;
6489
6490
  }
6490
- function ry(e) {
6491
+ function oy(e) {
6491
6492
  const t = e.toLowerCase().split("+").map((s) => s.trim()), n = {
6492
6493
  alt: t.includes("alt"),
6493
6494
  ctrl: t.includes("ctrl"),
@@ -6506,7 +6507,7 @@ function ry(e) {
6506
6507
  key: o
6507
6508
  };
6508
6509
  }
6509
- function oy(e, t) {
6510
+ function sy(e, t) {
6510
6511
  const { alt: n, ctrl: r, meta: o, mod: s, shift: i, key: a } = e, { altKey: c, ctrlKey: l, metaKey: d, shiftKey: u, key: h } = t;
6511
6512
  if (n !== c)
6512
6513
  return !1;
@@ -6518,9 +6519,9 @@ function oy(e, t) {
6518
6519
  return i !== u ? !1 : !!(a && (h.toLowerCase() === a.toLowerCase() || t.code.replace("Key", "").toLowerCase() === a.toLowerCase()));
6519
6520
  }
6520
6521
  function dc(e) {
6521
- return (t) => oy(ry(e), t);
6522
+ return (t) => sy(oy(e), t);
6522
6523
  }
6523
- function sy(e) {
6524
+ function ay(e) {
6524
6525
  return (t) => {
6525
6526
  const n = "nativeEvent" in t ? t.nativeEvent : t;
6526
6527
  e.forEach(([r, o, s = {
@@ -6530,7 +6531,7 @@ function sy(e) {
6530
6531
  });
6531
6532
  };
6532
6533
  }
6533
- function ay(e, t, n = !1) {
6534
+ function iy(e, t, n = !1) {
6534
6535
  return e.target instanceof HTMLElement ? (n || !e.target.isContentEditable) && !t.includes(e.target.tagName) : !0;
6535
6536
  }
6536
6537
  function Vo(e, t = [
@@ -6543,7 +6544,7 @@ function Vo(e, t = [
6543
6544
  e.forEach(([s, i, a = {
6544
6545
  preventDefault: !0
6545
6546
  }]) => {
6546
- dc(s)(o) && ay(o, t, n) && (a.preventDefault && o.preventDefault(), i(o));
6547
+ dc(s)(o) && iy(o, t, n) && (a.preventDefault && o.preventDefault(), i(o));
6547
6548
  });
6548
6549
  };
6549
6550
  return document.documentElement.addEventListener("keydown", r), () => document.documentElement.removeEventListener("keydown", r);
@@ -6553,15 +6554,15 @@ function Vo(e, t = [
6553
6554
  n
6554
6555
  ]);
6555
6556
  }
6556
- const iy = ["top", "right", "bottom", "left"], mt = Math.min, Se = Math.max, fr = Math.round, Zn = Math.floor, Ge = (e) => ({
6557
+ const cy = ["top", "right", "bottom", "left"], mt = Math.min, Se = Math.max, fr = Math.round, Zn = Math.floor, Ge = (e) => ({
6557
6558
  x: e,
6558
6559
  y: e
6559
- }), cy = {
6560
+ }), ly = {
6560
6561
  left: "right",
6561
6562
  right: "left",
6562
6563
  bottom: "top",
6563
6564
  top: "bottom"
6564
- }, ly = {
6565
+ }, uy = {
6565
6566
  start: "end",
6566
6567
  end: "start"
6567
6568
  };
@@ -6583,48 +6584,48 @@ function Wo(e) {
6583
6584
  function Go(e) {
6584
6585
  return e === "y" ? "height" : "width";
6585
6586
  }
6586
- const uy = /* @__PURE__ */ new Set(["top", "bottom"]);
6587
+ const dy = /* @__PURE__ */ new Set(["top", "bottom"]);
6587
6588
  function Ve(e) {
6588
- return uy.has(rt(e)) ? "y" : "x";
6589
+ return dy.has(rt(e)) ? "y" : "x";
6589
6590
  }
6590
6591
  function Yo(e) {
6591
6592
  return Wo(Ve(e));
6592
6593
  }
6593
- function dy(e, t, n) {
6594
+ function fy(e, t, n) {
6594
6595
  n === void 0 && (n = !1);
6595
6596
  const r = Yt(e), o = Yo(e), s = Go(o);
6596
6597
  let i = o === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
6597
6598
  return t.reference[s] > t.floating[s] && (i = pr(i)), [i, pr(i)];
6598
6599
  }
6599
- function fy(e) {
6600
+ function py(e) {
6600
6601
  const t = pr(e);
6601
6602
  return [Io(e), t, Io(t)];
6602
6603
  }
6603
6604
  function Io(e) {
6604
- return e.replace(/start|end/g, (t) => ly[t]);
6605
+ return e.replace(/start|end/g, (t) => uy[t]);
6605
6606
  }
6606
- const da = ["left", "right"], fa = ["right", "left"], py = ["top", "bottom"], my = ["bottom", "top"];
6607
- function hy(e, t, n) {
6607
+ const da = ["left", "right"], fa = ["right", "left"], my = ["top", "bottom"], hy = ["bottom", "top"];
6608
+ function gy(e, t, n) {
6608
6609
  switch (e) {
6609
6610
  case "top":
6610
6611
  case "bottom":
6611
6612
  return n ? t ? fa : da : t ? da : fa;
6612
6613
  case "left":
6613
6614
  case "right":
6614
- return t ? py : my;
6615
+ return t ? my : hy;
6615
6616
  default:
6616
6617
  return [];
6617
6618
  }
6618
6619
  }
6619
- function gy(e, t, n, r) {
6620
+ function vy(e, t, n, r) {
6620
6621
  const o = Yt(e);
6621
- let s = hy(rt(e), n === "start", r);
6622
+ let s = gy(rt(e), n === "start", r);
6622
6623
  return o && (s = s.map((i) => i + "-" + o), t && (s = s.concat(s.map(Io)))), s;
6623
6624
  }
6624
6625
  function pr(e) {
6625
- return e.replace(/left|right|bottom|top/g, (t) => cy[t]);
6626
+ return e.replace(/left|right|bottom|top/g, (t) => ly[t]);
6626
6627
  }
6627
- function vy(e) {
6628
+ function yy(e) {
6628
6629
  return {
6629
6630
  top: 0,
6630
6631
  right: 0,
@@ -6634,7 +6635,7 @@ function vy(e) {
6634
6635
  };
6635
6636
  }
6636
6637
  function fc(e) {
6637
- return typeof e != "number" ? vy(e) : {
6638
+ return typeof e != "number" ? yy(e) : {
6638
6639
  top: e,
6639
6640
  right: e,
6640
6641
  bottom: e,
@@ -6707,7 +6708,7 @@ function pa(e, t, n) {
6707
6708
  }
6708
6709
  return m;
6709
6710
  }
6710
- const yy = async (e, t, n) => {
6711
+ const by = async (e, t, n) => {
6711
6712
  const {
6712
6713
  placement: r = "bottom",
6713
6714
  strategy: o = "absolute",
@@ -6813,7 +6814,7 @@ async function mn(e, t) {
6813
6814
  right: (S.right - b.right + p.right) / E.x
6814
6815
  };
6815
6816
  }
6816
- const by = (e) => ({
6817
+ const wy = (e) => ({
6817
6818
  name: "arrow",
6818
6819
  options: e,
6819
6820
  async fn(t) {
@@ -6850,7 +6851,7 @@ const by = (e) => ({
6850
6851
  reset: H
6851
6852
  };
6852
6853
  }
6853
- }), wy = function(e) {
6854
+ }), _y = function(e) {
6854
6855
  return e === void 0 && (e = {}), {
6855
6856
  name: "flip",
6856
6857
  options: e,
@@ -6874,12 +6875,12 @@ const by = (e) => ({
6874
6875
  } = nt(e, t);
6875
6876
  if ((n = s.arrow) != null && n.alignmentOffset)
6876
6877
  return {};
6877
- const b = rt(o), _ = Ve(a), y = rt(a) === a, E = await (c.isRTL == null ? void 0 : c.isRTL(l.floating)), S = h || (y || !f ? [pr(a)] : fy(a)), T = p !== "none";
6878
- !h && T && S.push(...gy(a, f, p, E));
6878
+ const b = rt(o), _ = Ve(a), y = rt(a) === a, E = await (c.isRTL == null ? void 0 : c.isRTL(l.floating)), S = h || (y || !f ? [pr(a)] : py(a)), T = p !== "none";
6879
+ !h && T && S.push(...vy(a, f, p, E));
6879
6880
  const x = [a, ...S], I = await mn(t, v), k = [];
6880
6881
  let D = ((r = s.flip) == null ? void 0 : r.overflows) || [];
6881
6882
  if (d && k.push(I[b]), u) {
6882
- const z = dy(o, i, E);
6883
+ const z = fy(o, i, E);
6883
6884
  k.push(I[z[0]], I[z[1]]);
6884
6885
  }
6885
6886
  if (D = [...D, {
@@ -6941,9 +6942,9 @@ function ma(e, t) {
6941
6942
  };
6942
6943
  }
6943
6944
  function ha(e) {
6944
- return iy.some((t) => e[t] >= 0);
6945
+ return cy.some((t) => e[t] >= 0);
6945
6946
  }
6946
- const _y = function(e) {
6947
+ const Ey = function(e) {
6947
6948
  return e === void 0 && (e = {}), {
6948
6949
  name: "hide",
6949
6950
  options: e,
@@ -6985,7 +6986,7 @@ const _y = function(e) {
6985
6986
  }
6986
6987
  };
6987
6988
  }, pc = /* @__PURE__ */ new Set(["left", "top"]);
6988
- async function Ey(e, t) {
6989
+ async function Sy(e, t) {
6989
6990
  const {
6990
6991
  placement: n,
6991
6992
  platform: r,
@@ -7012,7 +7013,7 @@ async function Ey(e, t) {
7012
7013
  y: m * d
7013
7014
  };
7014
7015
  }
7015
- const Sy = function(e) {
7016
+ const Cy = function(e) {
7016
7017
  return e === void 0 && (e = 0), {
7017
7018
  name: "offset",
7018
7019
  options: e,
@@ -7023,7 +7024,7 @@ const Sy = function(e) {
7023
7024
  y: s,
7024
7025
  placement: i,
7025
7026
  middlewareData: a
7026
- } = t, c = await Ey(t, e);
7027
+ } = t, c = await Sy(t, e);
7027
7028
  return i === ((n = a.offset) == null ? void 0 : n.placement) && (r = a.arrow) != null && r.alignmentOffset ? {} : {
7028
7029
  x: o + c.x,
7029
7030
  y: s + c.y,
@@ -7034,7 +7035,7 @@ const Sy = function(e) {
7034
7035
  };
7035
7036
  }
7036
7037
  };
7037
- }, Cy = function(e) {
7038
+ }, xy = function(e) {
7038
7039
  return e === void 0 && (e = {}), {
7039
7040
  name: "shift",
7040
7041
  options: e,
@@ -7090,7 +7091,7 @@ const Sy = function(e) {
7090
7091
  };
7091
7092
  }
7092
7093
  };
7093
- }, xy = function(e) {
7094
+ }, Ty = function(e) {
7094
7095
  return e === void 0 && (e = {}), {
7095
7096
  options: e,
7096
7097
  fn(t) {
@@ -7132,7 +7133,7 @@ const Sy = function(e) {
7132
7133
  };
7133
7134
  }
7134
7135
  };
7135
- }, Ty = function(e) {
7136
+ }, Iy = function(e) {
7136
7137
  return e === void 0 && (e = {}), {
7137
7138
  name: "size",
7138
7139
  options: e,
@@ -7199,7 +7200,7 @@ function Ye(e) {
7199
7200
  function ga(e) {
7200
7201
  return !xr() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof Ce(e).ShadowRoot;
7201
7202
  }
7202
- const Iy = /* @__PURE__ */ new Set(["inline", "contents"]);
7203
+ const Ay = /* @__PURE__ */ new Set(["inline", "contents"]);
7203
7204
  function Tn(e) {
7204
7205
  const {
7205
7206
  overflow: t,
@@ -7207,15 +7208,15 @@ function Tn(e) {
7207
7208
  overflowY: r,
7208
7209
  display: o
7209
7210
  } = De(e);
7210
- return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && !Iy.has(o);
7211
+ return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && !Ay.has(o);
7211
7212
  }
7212
- const Ay = /* @__PURE__ */ new Set(["table", "td", "th"]);
7213
- function Ry(e) {
7214
- return Ay.has(Jt(e));
7213
+ const Ry = /* @__PURE__ */ new Set(["table", "td", "th"]);
7214
+ function Oy(e) {
7215
+ return Ry.has(Jt(e));
7215
7216
  }
7216
- const Oy = [":popover-open", ":modal"];
7217
+ const Ny = [":popover-open", ":modal"];
7217
7218
  function Tr(e) {
7218
- return Oy.some((t) => {
7219
+ return Ny.some((t) => {
7219
7220
  try {
7220
7221
  return e.matches(t);
7221
7222
  } catch {
@@ -7223,12 +7224,12 @@ function Tr(e) {
7223
7224
  }
7224
7225
  });
7225
7226
  }
7226
- const Ny = ["transform", "translate", "scale", "rotate", "perspective"], Py = ["transform", "translate", "scale", "rotate", "perspective", "filter"], My = ["paint", "layout", "strict", "content"];
7227
+ const Py = ["transform", "translate", "scale", "rotate", "perspective"], My = ["transform", "translate", "scale", "rotate", "perspective", "filter"], ky = ["paint", "layout", "strict", "content"];
7227
7228
  function Jo(e) {
7228
7229
  const t = Ko(), n = ke(e) ? De(e) : e;
7229
- return Ny.some((r) => n[r] ? n[r] !== "none" : !1) || (n.containerType ? n.containerType !== "normal" : !1) || !t && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !t && (n.filter ? n.filter !== "none" : !1) || Py.some((r) => (n.willChange || "").includes(r)) || My.some((r) => (n.contain || "").includes(r));
7230
+ return Py.some((r) => n[r] ? n[r] !== "none" : !1) || (n.containerType ? n.containerType !== "normal" : !1) || !t && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !t && (n.filter ? n.filter !== "none" : !1) || My.some((r) => (n.willChange || "").includes(r)) || ky.some((r) => (n.contain || "").includes(r));
7230
7231
  }
7231
- function ky(e) {
7232
+ function Dy(e) {
7232
7233
  let t = ht(e);
7233
7234
  for (; Ye(t) && !Wt(t); ) {
7234
7235
  if (Jo(t))
@@ -7242,9 +7243,9 @@ function ky(e) {
7242
7243
  function Ko() {
7243
7244
  return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
7244
7245
  }
7245
- const Dy = /* @__PURE__ */ new Set(["html", "body", "#document"]);
7246
+ const $y = /* @__PURE__ */ new Set(["html", "body", "#document"]);
7246
7247
  function Wt(e) {
7247
- return Dy.has(Jt(e));
7248
+ return $y.has(Jt(e));
7248
7249
  }
7249
7250
  function De(e) {
7250
7251
  return Ce(e).getComputedStyle(e);
@@ -7315,15 +7316,15 @@ function Zt(e) {
7315
7316
  y: a
7316
7317
  };
7317
7318
  }
7318
- const $y = /* @__PURE__ */ Ge(0);
7319
+ const Ly = /* @__PURE__ */ Ge(0);
7319
7320
  function vc(e) {
7320
7321
  const t = Ce(e);
7321
- return !Ko() || !t.visualViewport ? $y : {
7322
+ return !Ko() || !t.visualViewport ? Ly : {
7322
7323
  x: t.visualViewport.offsetLeft,
7323
7324
  y: t.visualViewport.offsetTop
7324
7325
  };
7325
7326
  }
7326
- function Ly(e, t, n) {
7327
+ function zy(e, t, n) {
7327
7328
  return t === void 0 && (t = !1), !n || t && n !== Ce(e) ? !1 : t;
7328
7329
  }
7329
7330
  function Rt(e, t, n, r) {
@@ -7331,7 +7332,7 @@ function Rt(e, t, n, r) {
7331
7332
  const o = e.getBoundingClientRect(), s = Xo(e);
7332
7333
  let i = Ge(1);
7333
7334
  t && (r ? ke(r) && (i = Zt(r)) : i = Zt(e));
7334
- const a = Ly(s, n, r) ? vc(s) : Ge(0);
7335
+ const a = zy(s, n, r) ? vc(s) : Ge(0);
7335
7336
  let c = (o.left + a.x) / i.x, l = (o.top + a.y) / i.y, d = o.width / i.x, u = o.height / i.y;
7336
7337
  if (s) {
7337
7338
  const h = Ce(s), m = r && ke(r) ? Ce(r) : r;
@@ -7359,7 +7360,7 @@ function yc(e, t) {
7359
7360
  y: o
7360
7361
  };
7361
7362
  }
7362
- function zy(e) {
7363
+ function Fy(e) {
7363
7364
  let {
7364
7365
  elements: t,
7365
7366
  rect: n,
@@ -7386,10 +7387,10 @@ function zy(e) {
7386
7387
  y: n.y * l.y - c.scrollTop * l.y + d.y + h.y
7387
7388
  };
7388
7389
  }
7389
- function Fy(e) {
7390
+ function Zy(e) {
7390
7391
  return Array.from(e.getClientRects());
7391
7392
  }
7392
- function Zy(e) {
7393
+ function Uy(e) {
7393
7394
  const t = Xe(e), n = Ir(e), r = e.ownerDocument.body, o = Se(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), s = Se(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight);
7394
7395
  let i = -n.scrollLeft + Ar(e);
7395
7396
  const a = -n.scrollTop;
@@ -7401,7 +7402,7 @@ function Zy(e) {
7401
7402
  };
7402
7403
  }
7403
7404
  const va = 25;
7404
- function Uy(e, t) {
7405
+ function jy(e, t) {
7405
7406
  const n = Ce(e), r = Xe(e), o = n.visualViewport;
7406
7407
  let s = r.clientWidth, i = r.clientHeight, a = 0, c = 0;
7407
7408
  if (o) {
@@ -7421,8 +7422,8 @@ function Uy(e, t) {
7421
7422
  y: c
7422
7423
  };
7423
7424
  }
7424
- const jy = /* @__PURE__ */ new Set(["absolute", "fixed"]);
7425
- function By(e, t) {
7425
+ const By = /* @__PURE__ */ new Set(["absolute", "fixed"]);
7426
+ function Hy(e, t) {
7426
7427
  const n = Rt(e, !0, t === "fixed"), r = n.top + e.clientTop, o = n.left + e.clientLeft, s = Ye(e) ? Zt(e) : Ge(1), i = e.clientWidth * s.x, a = e.clientHeight * s.y, c = o * s.x, l = r * s.y;
7427
7428
  return {
7428
7429
  width: i,
@@ -7434,11 +7435,11 @@ function By(e, t) {
7434
7435
  function ya(e, t, n) {
7435
7436
  let r;
7436
7437
  if (t === "viewport")
7437
- r = Uy(e, n);
7438
+ r = jy(e, n);
7438
7439
  else if (t === "document")
7439
- r = Zy(Xe(e));
7440
+ r = Uy(Xe(e));
7440
7441
  else if (ke(t))
7441
- r = By(t, n);
7442
+ r = Hy(t, n);
7442
7443
  else {
7443
7444
  const o = vc(e);
7444
7445
  r = {
@@ -7454,7 +7455,7 @@ function bc(e, t) {
7454
7455
  const n = ht(e);
7455
7456
  return n === t || !ke(n) || Wt(n) ? !1 : De(n).position === "fixed" || bc(n, t);
7456
7457
  }
7457
- function Hy(e, t) {
7458
+ function Vy(e, t) {
7458
7459
  const n = t.get(e);
7459
7460
  if (n)
7460
7461
  return n;
@@ -7463,18 +7464,18 @@ function Hy(e, t) {
7463
7464
  let i = s ? ht(e) : e;
7464
7465
  for (; ke(i) && !Wt(i); ) {
7465
7466
  const a = De(i), c = Jo(i);
7466
- !c && a.position === "fixed" && (o = null), (s ? !c && !o : !c && a.position === "static" && !!o && jy.has(o.position) || Tn(i) && !c && bc(e, i)) ? r = r.filter((d) => d !== i) : o = a, i = ht(i);
7467
+ !c && a.position === "fixed" && (o = null), (s ? !c && !o : !c && a.position === "static" && !!o && By.has(o.position) || Tn(i) && !c && bc(e, i)) ? r = r.filter((d) => d !== i) : o = a, i = ht(i);
7467
7468
  }
7468
7469
  return t.set(e, r), r;
7469
7470
  }
7470
- function Vy(e) {
7471
+ function Wy(e) {
7471
7472
  let {
7472
7473
  element: t,
7473
7474
  boundary: n,
7474
7475
  rootBoundary: r,
7475
7476
  strategy: o
7476
7477
  } = e;
7477
- const i = [...n === "clippingAncestors" ? Tr(t) ? [] : Hy(t, this._c) : [].concat(n), r], a = i[0], c = i.reduce((l, d) => {
7478
+ const i = [...n === "clippingAncestors" ? Tr(t) ? [] : Vy(t, this._c) : [].concat(n), r], a = i[0], c = i.reduce((l, d) => {
7478
7479
  const u = ya(t, d, o);
7479
7480
  return l.top = Se(u.top, l.top), l.right = mt(u.right, l.right), l.bottom = mt(u.bottom, l.bottom), l.left = Se(u.left, l.left), l;
7480
7481
  }, ya(t, a, o));
@@ -7485,7 +7486,7 @@ function Vy(e) {
7485
7486
  y: c.top
7486
7487
  };
7487
7488
  }
7488
- function Wy(e) {
7489
+ function Gy(e) {
7489
7490
  const {
7490
7491
  width: t,
7491
7492
  height: n
@@ -7495,7 +7496,7 @@ function Wy(e) {
7495
7496
  height: n
7496
7497
  };
7497
7498
  }
7498
- function Gy(e, t, n) {
7499
+ function Yy(e, t, n) {
7499
7500
  const r = Ye(t), o = Xe(t), s = n === "fixed", i = Rt(e, !0, s, t);
7500
7501
  let a = {
7501
7502
  scrollLeft: 0,
@@ -7544,14 +7545,14 @@ function wc(e, t) {
7544
7545
  return n;
7545
7546
  }
7546
7547
  let r = ba(e, t);
7547
- for (; r && Ry(r) && Xr(r); )
7548
+ for (; r && Oy(r) && Xr(r); )
7548
7549
  r = ba(r, t);
7549
- return r && Wt(r) && Xr(r) && !Jo(r) ? n : r || ky(e) || n;
7550
+ return r && Wt(r) && Xr(r) && !Jo(r) ? n : r || Dy(e) || n;
7550
7551
  }
7551
- const Yy = async function(e) {
7552
+ const Jy = async function(e) {
7552
7553
  const t = this.getOffsetParent || wc, n = this.getDimensions, r = await n(e.floating);
7553
7554
  return {
7554
- reference: Gy(e.reference, await t(e.floating), e.strategy),
7555
+ reference: Yy(e.reference, await t(e.floating), e.strategy),
7555
7556
  floating: {
7556
7557
  x: 0,
7557
7558
  y: 0,
@@ -7560,25 +7561,25 @@ const Yy = async function(e) {
7560
7561
  }
7561
7562
  };
7562
7563
  };
7563
- function Jy(e) {
7564
+ function Ky(e) {
7564
7565
  return De(e).direction === "rtl";
7565
7566
  }
7566
- const Ky = {
7567
- convertOffsetParentRelativeRectToViewportRelativeRect: zy,
7567
+ const Xy = {
7568
+ convertOffsetParentRelativeRectToViewportRelativeRect: Fy,
7568
7569
  getDocumentElement: Xe,
7569
- getClippingRect: Vy,
7570
+ getClippingRect: Wy,
7570
7571
  getOffsetParent: wc,
7571
- getElementRects: Yy,
7572
- getClientRects: Fy,
7573
- getDimensions: Wy,
7572
+ getElementRects: Jy,
7573
+ getClientRects: Zy,
7574
+ getDimensions: Gy,
7574
7575
  getScale: Zt,
7575
7576
  isElement: ke,
7576
- isRTL: Jy
7577
+ isRTL: Ky
7577
7578
  };
7578
7579
  function _c(e, t) {
7579
7580
  return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
7580
7581
  }
7581
- function Xy(e, t) {
7582
+ function qy(e, t) {
7582
7583
  let n = null, r;
7583
7584
  const o = Xe(e);
7584
7585
  function s() {
@@ -7624,7 +7625,7 @@ function Xy(e, t) {
7624
7625
  }
7625
7626
  return i(!0), s;
7626
7627
  }
7627
- function qy(e, t, n, r) {
7628
+ function Qy(e, t, n, r) {
7628
7629
  r === void 0 && (r = {});
7629
7630
  const {
7630
7631
  ancestorScroll: o = !0,
@@ -7638,7 +7639,7 @@ function qy(e, t, n, r) {
7638
7639
  passive: !0
7639
7640
  }), s && b.addEventListener("resize", n);
7640
7641
  });
7641
- const u = l && a ? Xy(l, n) : null;
7642
+ const u = l && a ? qy(l, n) : null;
7642
7643
  let h = -1, m = null;
7643
7644
  i && (m = new ResizeObserver((b) => {
7644
7645
  let [_] = b;
@@ -7660,15 +7661,15 @@ function qy(e, t, n, r) {
7660
7661
  }), u?.(), (b = m) == null || b.disconnect(), m = null, c && cancelAnimationFrame(p);
7661
7662
  };
7662
7663
  }
7663
- const Ec = Sy, Sc = Cy, Cc = wy, Qy = Ty, eb = _y, Ro = by, tb = xy, xc = (e, t, n) => {
7664
+ const Ec = Cy, Sc = xy, Cc = _y, eb = Iy, tb = Ey, Ro = wy, nb = Ty, xc = (e, t, n) => {
7664
7665
  const r = /* @__PURE__ */ new Map(), o = {
7665
- platform: Ky,
7666
+ platform: Xy,
7666
7667
  ...n
7667
7668
  }, s = {
7668
7669
  ...o.platform,
7669
7670
  _c: r
7670
7671
  };
7671
- return yy(e, t, {
7672
+ return by(e, t, {
7672
7673
  ...o,
7673
7674
  platform: s
7674
7675
  });
@@ -7677,7 +7678,7 @@ const wa = [
7677
7678
  "mousedown",
7678
7679
  "touchstart"
7679
7680
  ];
7680
- function nb(e, t, n) {
7681
+ function rb(e, t, n) {
7681
7682
  const r = V(null);
7682
7683
  return U(() => {
7683
7684
  const o = (s) => {
@@ -7696,7 +7697,7 @@ function nb(e, t, n) {
7696
7697
  t
7697
7698
  ]), r;
7698
7699
  }
7699
- function rb(e, t) {
7700
+ function ob(e, t) {
7700
7701
  const [n, r] = B(!1), o = V(null), s = V(null), i = J(() => {
7701
7702
  r((c) => (!c && (!o.current || o.current === -1) && (o.current = window.setInterval(s.current, t)), !0));
7702
7703
  }, [
@@ -7715,27 +7716,27 @@ function rb(e, t) {
7715
7716
  active: n
7716
7717
  };
7717
7718
  }
7718
- const ob = "av-tooltip", sb = "av-tooltip-arrow", Un = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, ab = () => M("absolute top-0 left-0 w-max py-1 px-2 rounded-sm text-sm z-50"), _a = ({ mode: e }) => M({
7719
+ const sb = "av-tooltip", ab = "av-tooltip-arrow", Un = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, ib = () => M("absolute top-0 left-0 w-max py-1 px-2 rounded-sm text-sm z-50"), _a = ({ mode: e }) => M({
7719
7720
  "bg-surface-darker": e === "dark" || e === "system",
7720
7721
  "bg-surface-lighter": e === "light" || e === "alt-system",
7721
7722
  "dark:bg-surface-lighter": e === "system",
7722
7723
  "dark:bg-surface-darker": e === "alt-system"
7723
- }), ib = ({ mode: e }) => M({
7724
+ }), cb = ({ mode: e }) => M({
7724
7725
  "text-copy-light": e === "dark" || e === "system",
7725
7726
  "text-copy-dark": e === "light" || e === "alt-system",
7726
7727
  "dark:text-copy-dark": e === "system",
7727
7728
  "dark:text-copy-light": e === "alt-system"
7728
- }), cb = ({ mode: e }) => M({
7729
+ }), lb = ({ mode: e }) => M({
7729
7730
  "shadow-md": e === "light" || e === "alt-system",
7730
7731
  "dark:shadow-md": e === "system"
7731
- }), lb = () => M("absolute", "size-2", "transform rotate-45"), ub = ({ mode: e, className: t, tooltipClassName: n, arrowClassName: r }) => {
7732
- const o = M("relative inline-block", t), s = M(ob, ab(), _a({
7733
- mode: e
7734
- }), ib({
7732
+ }), ub = () => M("absolute", "size-2", "transform rotate-45"), db = ({ mode: e, className: t, tooltipClassName: n, arrowClassName: r }) => {
7733
+ const o = M("relative inline-block", t), s = M(sb, ib(), _a({
7735
7734
  mode: e
7736
7735
  }), cb({
7737
7736
  mode: e
7738
- }), n), i = M(sb, lb(), _a({
7737
+ }), lb({
7738
+ mode: e
7739
+ }), n), i = M(ab, ub(), _a({
7739
7740
  mode: e
7740
7741
  }), r);
7741
7742
  return {
@@ -7743,19 +7744,19 @@ const ob = "av-tooltip", sb = "av-tooltip-arrow", Un = (e, t = "px") => typeof e
7743
7744
  arrow: i,
7744
7745
  wrapper: o
7745
7746
  };
7746
- }, db = ({ animationDuration: e = 300 }) => ({
7747
+ }, fb = ({ animationDuration: e = 300 }) => ({
7747
7748
  animation: `av-tooltip-fade-in ${e}ms ease-in-out`
7748
- }), fb = 5e3, pb = ({ trigger: e, label: t, placement: n = "top", mode: r = "system", animationDuration: o = 300, delay: s = 0, className: i, tooltipClassName: a, arrowClassName: c }) => {
7749
- const l = nb(() => {
7749
+ }), pb = 5e3, mb = ({ trigger: e, label: t, placement: n = "top", mode: r = "system", animationDuration: o = 300, delay: s = 0, className: i, tooltipClassName: a, arrowClassName: c }) => {
7750
+ const l = rb(() => {
7750
7751
  y.stop(), v(!1);
7751
- }), d = V(null), u = V(null), h = V(null), [m, p] = B(!1), [f, v] = B(!1), [b, _] = B(!1), y = rb(() => {
7752
+ }), d = V(null), u = V(null), h = V(null), [m, p] = B(!1), [f, v] = B(!1), [b, _] = B(!1), y = ob(() => {
7752
7753
  v(!1);
7753
- }, fb), E = ub({
7754
+ }, pb), E = db({
7754
7755
  mode: r,
7755
7756
  className: i,
7756
7757
  tooltipClassName: a,
7757
7758
  arrowClassName: c
7758
- }), S = db({
7759
+ }), S = fb({
7759
7760
  animationDuration: o
7760
7761
  }), T = J(async () => {
7761
7762
  if (l.current && d.current && u.current) {
@@ -7845,7 +7846,7 @@ const ob = "av-tooltip", sb = "av-tooltip-arrow", Un = (e, t = "px") => typeof e
7845
7846
  trigger: e,
7846
7847
  className: t,
7847
7848
  ...n
7848
- }) => Ae(() => We(), []) ? /* @__PURE__ */ g("div", { className: t, children: e }) : /* @__PURE__ */ g(pb, { delay: 500, className: t, trigger: e, ...n }), In = ({
7849
+ }) => Ae(() => We(), []) ? /* @__PURE__ */ g("div", { className: t, children: e }) : /* @__PURE__ */ g(mb, { delay: 500, className: t, trigger: e, ...n }), In = ({
7849
7850
  label: e,
7850
7851
  labelRight: t,
7851
7852
  placement: n = "top-end",
@@ -7886,7 +7887,7 @@ const ob = "av-tooltip", sb = "av-tooltip-arrow", Un = (e, t = "px") => typeof e
7886
7887
  trigger: t ? /* @__PURE__ */ g(jt, { ...p, labelRight: t, children: i }) : /* @__PURE__ */ g(jt, { ...p, children: i })
7887
7888
  }
7888
7889
  );
7889
- }, mb = ({
7890
+ }, hb = ({
7890
7891
  className: e,
7891
7892
  onClick: t
7892
7893
  }) => {
@@ -7917,7 +7918,7 @@ function Tc(e, t) {
7917
7918
  };
7918
7919
  }, [e, t]);
7919
7920
  }
7920
- const hb = ({
7921
+ const gb = ({
7921
7922
  className: e
7922
7923
  }) => {
7923
7924
  const { getAccessToken: t, user: n } = $e(), {
@@ -8023,8 +8024,8 @@ const Ic = async () => (qr || (qr = import(
8023
8024
  "./index.ri2Dr1rJ.js"
8024
8025
  )), qr), Ac = async () => (Qr || (Qr = import(
8025
8026
  /* webpackChunkName: "toast-utilities" */
8026
- "./index.hGvmkGha.js"
8027
- ).then((e) => e.utilities)), Qr), gb = async () => {
8027
+ "./index.jtqzynwK.js"
8028
+ ).then((e) => e.utilities)), Qr), vb = async () => {
8028
8029
  try {
8029
8030
  await Promise.all([Ic(), Ac()]);
8030
8031
  } catch {
@@ -8045,12 +8046,12 @@ const Ic = async () => (qr || (qr = import(
8045
8046
  }, 100);
8046
8047
  } catch {
8047
8048
  }
8048
- }, Ea = (e, t) => Rc(e, "success", t), vb = (e, t) => Rc(e, "error", t), hr = (e) => {
8049
+ }, Ea = (e, t) => Rc(e, "success", t), yb = (e, t) => Rc(e, "error", t), hr = (e) => {
8049
8050
  const { check: t } = Do();
8050
8051
  return t(e);
8051
8052
  };
8052
- const yb = "av-messagebox", bb = "av-panel", Qe = "messagebox", Oc = /* @__PURE__ */ ti(null);
8053
- function wb({ initialOpen: e = !1, open: t, onOpenChange: n, initialFocus: r } = {}) {
8053
+ const bb = "av-messagebox", wb = "av-panel", Qe = "messagebox", Oc = /* @__PURE__ */ oi(null);
8054
+ function _b({ initialOpen: e = !1, open: t, onOpenChange: n, initialFocus: r } = {}) {
8054
8055
  const [o, s] = B(e), [i, a] = B(), [c, l] = B(), d = t ?? o, u = n ?? s, h = Ld(), m = zd({
8055
8056
  nodeId: h,
8056
8057
  open: d,
@@ -8097,13 +8098,13 @@ const Or = () => {
8097
8098
  return e;
8098
8099
  };
8099
8100
  function Sa({ children: e, ...t }) {
8100
- const n = wb(t);
8101
+ const n = _b(t);
8101
8102
  return /* @__PURE__ */ g(Oc.Provider, {
8102
8103
  value: n,
8103
8104
  children: e
8104
8105
  });
8105
8106
  }
8106
- function _b(e) {
8107
+ function Eb(e) {
8107
8108
  return Od() === null ? /* @__PURE__ */ g(Nd, {
8108
8109
  children: /* @__PURE__ */ g(Sa, {
8109
8110
  ...e
@@ -8112,7 +8113,7 @@ function _b(e) {
8112
8113
  ...e
8113
8114
  });
8114
8115
  }
8115
- function Eb({ ref: e, overlayBackground: t, ...n }) {
8116
+ function Sb({ ref: e, overlayBackground: t, ...n }) {
8116
8117
  const { context: r, nodeId: o, ...s } = Or(), i = Pd([
8117
8118
  s.refs.setFloating,
8118
8119
  e
@@ -8143,9 +8144,9 @@ function Eb({ ref: e, overlayBackground: t, ...n }) {
8143
8144
  })
8144
8145
  });
8145
8146
  }
8146
- function Sb({ children: e, ref: t, ...n }) {
8147
- const { setLabelId: r } = Or(), o = ni();
8148
- return wn(() => (r(o), () => r(void 0)), [
8147
+ function Cb({ children: e, ref: t, ...n }) {
8148
+ const { setLabelId: r } = Or(), o = si();
8149
+ return _n(() => (r(o), () => r(void 0)), [
8149
8150
  o,
8150
8151
  r
8151
8152
  ]), /* @__PURE__ */ g("h1", {
@@ -8155,9 +8156,9 @@ function Sb({ children: e, ref: t, ...n }) {
8155
8156
  children: e
8156
8157
  });
8157
8158
  }
8158
- function Cb({ children: e, ref: t, ...n }) {
8159
- const { setDescriptionId: r } = Or(), o = ni();
8160
- return wn(() => (r(o), () => r(void 0)), [
8159
+ function xb({ children: e, ref: t, ...n }) {
8160
+ const { setDescriptionId: r } = Or(), o = si();
8161
+ return _n(() => (r(o), () => r(void 0)), [
8161
8162
  o,
8162
8163
  r
8163
8164
  ]), /* @__PURE__ */ g("div", {
@@ -8167,13 +8168,13 @@ function Cb({ children: e, ref: t, ...n }) {
8167
8168
  children: e
8168
8169
  });
8169
8170
  }
8170
- function xb({ ref: e, trigger: t, className: n, ...r }) {
8171
+ function Tb({ ref: e, trigger: t, className: n, ...r }) {
8171
8172
  const { setOpen: o } = Or(), s = J(() => o(!1), [
8172
8173
  o
8173
8174
  ]);
8174
8175
  return /* @__PURE__ */ g("div", {
8175
8176
  className: n,
8176
- children: /* @__PURE__ */ ri(t, {
8177
+ children: /* @__PURE__ */ ai(t, {
8177
8178
  ref: e,
8178
8179
  onClick: s,
8179
8180
  ...r
@@ -8189,7 +8190,7 @@ const Ca = ({ blurEffect: e }) => M("absolute left-0 right-0 z-20 backdrop-brigh
8189
8190
  "large",
8190
8191
  "bg-surface-darker": e === /* inlined export .NONE */
8191
8192
  "none"
8192
- }), Tb = ({ className: e, kind: t, borderMode: n, animation: r, maxWidth: o = (
8193
+ }), Ib = ({ className: e, kind: t, borderMode: n, animation: r, maxWidth: o = (
8193
8194
  /* inlined export .MEDIUM */
8194
8195
  "medium"
8195
8196
  ), maxHeight: s, blurEffect: i = (
@@ -8210,7 +8211,7 @@ const Ca = ({ blurEffect: e }) => M("absolute left-0 right-0 z-20 backdrop-brigh
8210
8211
  /**
8211
8212
  * Panel styles
8212
8213
  */
8213
- [`${bb} sm:rounded-3xl sm:border`]: t === /* inlined export .TYPE_PANEL */
8214
+ [`${wb} sm:rounded-3xl sm:border`]: t === /* inlined export .TYPE_PANEL */
8214
8215
  "panel",
8215
8216
  /**
8216
8217
  * Widths and max widths for Panel
@@ -8247,7 +8248,7 @@ const Ca = ({ blurEffect: e }) => M("absolute left-0 right-0 z-20 backdrop-brigh
8247
8248
  /**
8248
8249
  * Messagebox styles
8249
8250
  */
8250
- [`${yb} rounded-3xl border`]: t === Qe,
8251
+ [`${bb} rounded-3xl border`]: t === Qe,
8251
8252
  /**
8252
8253
  * Widths and max widths for Messagebox
8253
8254
  */
@@ -8317,7 +8318,7 @@ const Ca = ({ blurEffect: e }) => M("absolute left-0 right-0 z-20 backdrop-brigh
8317
8318
  ),
8318
8319
  content: "p-4 rounded-3xl"
8319
8320
  };
8320
- }, Ib = ({ open: e, onOpenChange: t, title: n, children: r, footer: o, borderMode: s = "light", kind: i = (
8321
+ }, Ab = ({ open: e, onOpenChange: t, title: n, children: r, footer: o, borderMode: s = "light", kind: i = (
8321
8322
  /* inlined export .TYPE_PANEL */
8322
8323
  "panel"
8323
8324
  ), className: a, animation: c = !1, animationType: l = (
@@ -8335,7 +8336,7 @@ const Ca = ({ blurEffect: e }) => M("absolute left-0 right-0 z-20 backdrop-brigh
8335
8336
  opacity: 0
8336
8337
  } : {
8337
8338
  transform: "translateY(-100vh)"
8338
- } : {}), b = Tb({
8339
+ } : {}), b = Ib({
8339
8340
  className: a,
8340
8341
  kind: i,
8341
8342
  borderMode: s,
@@ -8373,22 +8374,22 @@ const Ca = ({ blurEffect: e }) => M("absolute left-0 right-0 z-20 backdrop-brigh
8373
8374
  c,
8374
8375
  l
8375
8376
  ]), /* @__PURE__ */ g(ct, {
8376
- children: e && /* @__PURE__ */ g(_b, {
8377
+ children: e && /* @__PURE__ */ g(Eb, {
8377
8378
  open: e,
8378
8379
  onOpenChange: t,
8379
8380
  initialFocus: m,
8380
- children: /* @__PURE__ */ g(Eb, {
8381
+ children: /* @__PURE__ */ g(Sb, {
8381
8382
  className: b.outerWrapper,
8382
8383
  style: {
8383
8384
  ...f
8384
8385
  },
8385
- children: /* @__PURE__ */ F(Cb, {
8386
+ children: /* @__PURE__ */ F(xb, {
8386
8387
  className: b.innerWrapper,
8387
8388
  children: [
8388
8389
  /* @__PURE__ */ F("div", {
8389
8390
  className: b.header,
8390
8391
  children: [
8391
- /* @__PURE__ */ g(xb, {
8392
+ /* @__PURE__ */ g(Tb, {
8392
8393
  className: b.closeWrapper,
8393
8394
  trigger: /* @__PURE__ */ g("button", {
8394
8395
  className: b.closeButton,
@@ -8411,7 +8412,7 @@ const Ca = ({ blurEffect: e }) => M("absolute left-0 right-0 z-20 backdrop-brigh
8411
8412
  })
8412
8413
  })
8413
8414
  }),
8414
- /* @__PURE__ */ g(Sb, {
8415
+ /* @__PURE__ */ g(Cb, {
8415
8416
  className: b.title,
8416
8417
  children: n
8417
8418
  })
@@ -8436,7 +8437,7 @@ const Ca = ({ blurEffect: e }) => M("absolute left-0 right-0 z-20 backdrop-brigh
8436
8437
  };
8437
8438
  const eo = 50, xa = 120;
8438
8439
  let je = null, jn = 0;
8439
- const Ab = () => {
8440
+ const Rb = () => {
8440
8441
  if (typeof window > "u" || je && document.body.contains(je))
8441
8442
  return;
8442
8443
  const e = document.querySelector('label[data-haptic-singleton="true"]');
@@ -8449,21 +8450,21 @@ const Ab = () => {
8449
8450
  t.type = "checkbox", t.setAttribute("switch", ""), t.style.display = "none", t.setAttribute("aria-hidden", "true"), t.dataset.hapticSingleton = "true";
8450
8451
  const n = document.createElement("label");
8451
8452
  n.style.display = "none", n.setAttribute("aria-hidden", "true"), n.dataset.hapticSingleton = "true", n.appendChild(t), document.body.appendChild(n), je = n;
8452
- }, Rb = () => {
8453
- je && document.body && document.body.contains(je) && document.body.removeChild(je), je = null;
8454
8453
  }, Ob = () => {
8454
+ je && document.body && document.body.contains(je) && document.body.removeChild(je), je = null;
8455
+ }, Nb = () => {
8455
8456
  const e = V(/* @__PURE__ */ new Set());
8456
8457
  U(() => {
8457
8458
  jn++;
8458
8459
  try {
8459
- Ab();
8460
+ Rb();
8460
8461
  } catch (r) {
8461
8462
  throw jn--, r;
8462
8463
  }
8463
8464
  return () => {
8464
8465
  for (const r of e.current)
8465
8466
  clearTimeout(r);
8466
- e.current.clear(), jn--, jn === 0 && Rb();
8467
+ e.current.clear(), jn--, jn === 0 && Ob();
8467
8468
  };
8468
8469
  }, []);
8469
8470
  const t = J(() => {
@@ -8498,7 +8499,7 @@ const Ab = () => {
8498
8499
  ])
8499
8500
  };
8500
8501
  };
8501
- const Nb = "av-toggle", Pb = ({ narrow: e }) => M(
8502
+ const Pb = "av-toggle", Mb = ({ narrow: e }) => M(
8502
8503
  "peer",
8503
8504
  "rounded-full",
8504
8505
  {
@@ -8507,12 +8508,12 @@ const Nb = "av-toggle", Pb = ({ narrow: e }) => M(
8507
8508
  },
8508
8509
  // Smooth background/border transition when toggling
8509
8510
  "transition-colors duration-300 ease-in-out motion-reduce:transition-none"
8510
- ), Mb = ({ focusMode: e }) => M("peer-focus:outline", "peer-focus:outline-2", "peer-focus:outline-offset-2", {
8511
+ ), kb = ({ focusMode: e }) => M("peer-focus:outline", "peer-focus:outline-2", "peer-focus:outline-offset-2", {
8511
8512
  "peer-focus:outline-focus-dark": e === "dark",
8512
8513
  "peer-focus:outline-focus-light": e === "light",
8513
8514
  "peer-focus:outline-focus-light dark:peer-focus:outline-focus-dark": e === "alt-system",
8514
8515
  "peer-focus:outline-focus-dark dark:peer-focus:outline-focus-light": e === "system"
8515
- }), kb = ({ narrow: e }) => M(
8516
+ }), Db = ({ narrow: e }) => M(
8516
8517
  {
8517
8518
  "peer-checked:after:translate-x-full": !e,
8518
8519
  "peer-checked:after:translate-x-4": e
@@ -8522,12 +8523,12 @@ const Nb = "av-toggle", Pb = ({ narrow: e }) => M(
8522
8523
  // knob circle and border color when checked
8523
8524
  "peer-checked:after:bg-white",
8524
8525
  "peer-checked:after:border-white"
8525
- ), Db = ({ narrow: e }) => M("after:left-[2px]", "after:top-[2px]", "after:border", "after:border-surface-light dark:after:border-surface-medium", "after:bg-surface-light dark:after:bg-surface-medium", "after:absolute", "after:transition-all after:duration-300 after:ease-in-out after:motion-reduce:transition-none after:will-change-transform", "after:content-['']", "after:rounded-full", {
8526
+ ), $b = ({ narrow: e }) => M("after:left-[2px]", "after:top-[2px]", "after:border", "after:border-surface-light dark:after:border-surface-medium", "after:bg-surface-light dark:after:bg-surface-medium", "after:absolute", "after:transition-all after:duration-300 after:ease-in-out after:motion-reduce:transition-none after:will-change-transform", "after:content-['']", "after:rounded-full", {
8526
8527
  // Normal toggle knob (circle)
8527
8528
  "after:h-5 after:w-5": !e,
8528
8529
  // Narrow toggle knob (oval)
8529
8530
  " after:h-4 after:w-7": e
8530
- }), $b = ({ mode: e, noBorder: t }) => M({
8531
+ }), Lb = ({ mode: e, noBorder: t }) => M({
8531
8532
  border: !t,
8532
8533
  "border-border-medium bg-surface-medium": e === "light",
8533
8534
  "border-border-light bg-surface-darker": e === "dark",
@@ -8546,17 +8547,17 @@ const Nb = "av-toggle", Pb = ({ narrow: e }) => M(
8546
8547
  "text-copy-lighter/60 dark:text-copy-dark/60": t === "alt-system" && o,
8547
8548
  "text-copy-dark/60 dark:text-copy-lighter/60": t === "system" && o,
8548
8549
  "text-xs": o
8549
- })), Lb = ({ className: e }) => M(Nb, "relative flex cursor-pointer items-center", e), zb = () => "relative inline-block", Fb = ({ mode: e, focusMode: t, labelHidden: n, className: r, noBorder: o, narrow: s, labelMode: i, labelPosition: a = "right", subLabel: c }) => ({
8550
- toggle: M(Pb({
8550
+ })), zb = ({ className: e }) => M(Pb, "relative flex cursor-pointer items-center", e), Fb = () => "relative inline-block", Zb = ({ mode: e, focusMode: t, labelHidden: n, className: r, noBorder: o, narrow: s, labelMode: i, labelPosition: a = "right", subLabel: c }) => ({
8551
+ toggle: M(Mb({
8551
8552
  narrow: s
8552
- }), $b({
8553
+ }), Lb({
8553
8554
  mode: e,
8554
8555
  noBorder: o
8555
- }), Mb({
8556
+ }), kb({
8556
8557
  focusMode: t
8557
- }), Db({
8558
+ }), $b({
8558
8559
  narrow: s
8559
- }), kb({
8560
+ }), Db({
8560
8561
  narrow: s
8561
8562
  })),
8562
8563
  label: Ta({
@@ -8573,12 +8574,12 @@ const Nb = "av-toggle", Pb = ({ narrow: e }) => M(
8573
8574
  subLabel: c
8574
8575
  }),
8575
8576
  input: "peer sr-only",
8576
- wrapper: Lb({
8577
+ wrapper: zb({
8577
8578
  className: r
8578
8579
  }),
8579
- toggleWrapper: zb()
8580
- }), Zb = ({ checked: e = !1, onChange: t, label: n, labelHidden: r = !1, name: o, mode: s = "system", focusMode: i = "system", labelMode: a, className: c, noBorder: l = !1, narrow: d = !1, noHaptic: u = !1, labelPosition: h = "right", subLabel: m }) => {
8581
- const { haptic: p } = Ob(), f = Fb({
8580
+ toggleWrapper: Fb()
8581
+ }), Ub = ({ checked: e = !1, onChange: t, label: n, labelHidden: r = !1, name: o, mode: s = "system", focusMode: i = "system", labelMode: a, className: c, noBorder: l = !1, narrow: d = !1, noHaptic: u = !1, labelPosition: h = "right", subLabel: m }) => {
8582
+ const { haptic: p } = Nb(), f = Zb({
8582
8583
  mode: s,
8583
8584
  focusMode: i,
8584
8585
  labelHidden: r,
@@ -8628,12 +8629,12 @@ const Nb = "av-toggle", Pb = ({ narrow: e }) => M(
8628
8629
  h === "right" && b
8629
8630
  ]
8630
8631
  });
8631
- }, Ub = ({
8632
+ }, jb = ({
8632
8633
  onOpenChange: e,
8633
8634
  label: t = "Dismiss",
8634
8635
  ref: n
8635
8636
  }) => /* @__PURE__ */ g(
8636
- oi,
8637
+ ti,
8637
8638
  {
8638
8639
  ref: n,
8639
8640
  mode: "light",
@@ -8663,7 +8664,7 @@ const Nb = "av-toggle", Pb = ({ narrow: e }) => M(
8663
8664
  }) => {
8664
8665
  const h = V(null), m = /* @__PURE__ */ F("div", { className: "flex flex-wrap justify-end gap-x-2", children: [
8665
8666
  /* @__PURE__ */ g("div", { className: "box-border max-w-full basis-auto", children: !s && /* @__PURE__ */ g(
8666
- Ub,
8667
+ jb,
8667
8668
  {
8668
8669
  onOpenChange: t,
8669
8670
  label: o.cancelAction,
@@ -8671,7 +8672,7 @@ const Nb = "av-toggle", Pb = ({ narrow: e }) => M(
8671
8672
  }
8672
8673
  ) }),
8673
8674
  /* @__PURE__ */ g("div", { className: "box-border max-w-full basis-auto", children: /* @__PURE__ */ g(
8674
- oi,
8675
+ ti,
8675
8676
  {
8676
8677
  noBorder: !0,
8677
8678
  mode: "dark",
@@ -8685,7 +8686,7 @@ const Nb = "av-toggle", Pb = ({ narrow: e }) => M(
8685
8686
  ) })
8686
8687
  ] }), p = c ? /* @__PURE__ */ F("div", { className: "flex flex-wrap justify-between items-center gap-x-2", children: [
8687
8688
  /* @__PURE__ */ g("div", { className: "box-border max-w-full basis-auto grow", children: /* @__PURE__ */ g(
8688
- Zb,
8689
+ Ub,
8689
8690
  {
8690
8691
  narrow: !0,
8691
8692
  mode: "dark",
@@ -8702,7 +8703,7 @@ const Nb = "av-toggle", Pb = ({ narrow: e }) => M(
8702
8703
  /* @__PURE__ */ g("div", { className: "box-border max-w-full basis-auto grow", children: m })
8703
8704
  ] }) : m;
8704
8705
  return /* @__PURE__ */ g(
8705
- Ib,
8706
+ Ab,
8706
8707
  {
8707
8708
  kind: "messagebox",
8708
8709
  open: e,
@@ -8715,7 +8716,7 @@ const Nb = "av-toggle", Pb = ({ narrow: e }) => M(
8715
8716
  children: r
8716
8717
  }
8717
8718
  );
8718
- }, jb = ({
8719
+ }, Bb = ({
8719
8720
  className: e
8720
8721
  }) => {
8721
8722
  const { getAccessToken: t, user: n } = $e(), {
@@ -8763,7 +8764,7 @@ const Nb = "av-toggle", Pb = ({ narrow: e }) => M(
8763
8764
  }
8764
8765
  });
8765
8766
  } catch {
8766
- await vb("Failed to toggle privacy. Please try again.", {
8767
+ await yb("Failed to toggle privacy. Please try again.", {
8767
8768
  containerId: "toggle-privacy"
8768
8769
  });
8769
8770
  }
@@ -8882,9 +8883,9 @@ function An(e, t = []) {
8882
8883
  );
8883
8884
  };
8884
8885
  };
8885
- return o.scopeName = e, [r, Bb(o, ...t)];
8886
+ return o.scopeName = e, [r, Hb(o, ...t)];
8886
8887
  }
8887
- function Bb(...e) {
8888
+ function Hb(...e) {
8888
8889
  const t = e[0];
8889
8890
  if (e.length === 1) return t;
8890
8891
  const n = () => {
@@ -8903,7 +8904,7 @@ function Bb(...e) {
8903
8904
  return n.scopeName = t.scopeName, n;
8904
8905
  }
8905
8906
  var gt = globalThis?.document ? w.useLayoutEffect : () => {
8906
- }, Hb = w[" useInsertionEffect ".trim().toString()] || gt;
8907
+ }, Vb = w[" useInsertionEffect ".trim().toString()] || gt;
8907
8908
  function qo({
8908
8909
  prop: e,
8909
8910
  defaultProp: t,
@@ -8911,7 +8912,7 @@ function qo({
8911
8912
  },
8912
8913
  caller: r
8913
8914
  }) {
8914
- const [o, s, i] = Vb({
8915
+ const [o, s, i] = Wb({
8915
8916
  defaultProp: t,
8916
8917
  onChange: n
8917
8918
  }), a = e !== void 0, c = a ? e : o;
@@ -8927,7 +8928,7 @@ function qo({
8927
8928
  const l = w.useCallback(
8928
8929
  (d) => {
8929
8930
  if (a) {
8930
- const u = Wb(d) ? d(e) : d;
8931
+ const u = Gb(d) ? d(e) : d;
8931
8932
  u !== e && i.current?.(u);
8932
8933
  } else
8933
8934
  s(d);
@@ -8936,24 +8937,24 @@ function qo({
8936
8937
  );
8937
8938
  return [c, l];
8938
8939
  }
8939
- function Vb({
8940
+ function Wb({
8940
8941
  defaultProp: e,
8941
8942
  onChange: t
8942
8943
  }) {
8943
8944
  const [n, r] = w.useState(e), o = w.useRef(n), s = w.useRef(t);
8944
- return Hb(() => {
8945
+ return Vb(() => {
8945
8946
  s.current = t;
8946
8947
  }, [t]), w.useEffect(() => {
8947
8948
  o.current !== n && (s.current?.(n), o.current = n);
8948
8949
  }, [n, o]), [n, r, s];
8949
8950
  }
8950
- function Wb(e) {
8951
+ function Gb(e) {
8951
8952
  return typeof e == "function";
8952
8953
  }
8953
8954
  // @__NO_SIDE_EFFECTS__
8954
8955
  function gr(e) {
8955
- const t = /* @__PURE__ */ Gb(e), n = w.forwardRef((r, o) => {
8956
- const { children: s, ...i } = r, a = w.Children.toArray(s), c = a.find(Jb);
8956
+ const t = /* @__PURE__ */ Yb(e), n = w.forwardRef((r, o) => {
8957
+ const { children: s, ...i } = r, a = w.Children.toArray(s), c = a.find(Kb);
8957
8958
  if (c) {
8958
8959
  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);
8959
8960
  return /* @__PURE__ */ g(t, { ...i, ref: o, children: w.isValidElement(l) ? w.cloneElement(l, void 0, d) : null });
@@ -8963,22 +8964,22 @@ function gr(e) {
8963
8964
  return n.displayName = `${e}.Slot`, n;
8964
8965
  }
8965
8966
  // @__NO_SIDE_EFFECTS__
8966
- function Gb(e) {
8967
+ function Yb(e) {
8967
8968
  const t = w.forwardRef((n, r) => {
8968
8969
  const { children: o, ...s } = n;
8969
8970
  if (w.isValidElement(o)) {
8970
- const i = Xb(o), a = Kb(s, o.props);
8971
+ const i = qb(o), a = Xb(s, o.props);
8971
8972
  return o.type !== w.Fragment && (a.ref = r ? Nr(r, i) : i), w.cloneElement(o, a);
8972
8973
  }
8973
8974
  return w.Children.count(o) > 1 ? w.Children.only(null) : null;
8974
8975
  });
8975
8976
  return t.displayName = `${e}.SlotClone`, t;
8976
8977
  }
8977
- var Yb = /* @__PURE__ */ Symbol("radix.slottable");
8978
- function Jb(e) {
8979
- return w.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === Yb;
8978
+ var Jb = /* @__PURE__ */ Symbol("radix.slottable");
8979
+ function Kb(e) {
8980
+ return w.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === Jb;
8980
8981
  }
8981
- function Kb(e, t) {
8982
+ function Xb(e, t) {
8982
8983
  const n = { ...t };
8983
8984
  for (const r in t) {
8984
8985
  const o = e[r], s = t[r];
@@ -8989,11 +8990,11 @@ function Kb(e, t) {
8989
8990
  }
8990
8991
  return { ...e, ...n };
8991
8992
  }
8992
- function Xb(e) {
8993
+ function qb(e) {
8993
8994
  let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning;
8994
8995
  return n ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
8995
8996
  }
8996
- var qb = [
8997
+ var Qb = [
8997
8998
  "a",
8998
8999
  "button",
8999
9000
  "div",
@@ -9011,7 +9012,7 @@ var qb = [
9011
9012
  "span",
9012
9013
  "svg",
9013
9014
  "ul"
9014
- ], be = qb.reduce((e, t) => {
9015
+ ], be = Qb.reduce((e, t) => {
9015
9016
  const n = /* @__PURE__ */ gr(`Primitive.${t}`), r = w.forwardRef((o, s) => {
9016
9017
  const { asChild: i, ...a } = o, c = i ? n : t;
9017
9018
  return typeof window < "u" && (window[/* @__PURE__ */ Symbol.for("radix-ui")] = !0), /* @__PURE__ */ g(c, { ...a, ref: s });
@@ -9063,9 +9064,9 @@ function Pc(e) {
9063
9064
  r
9064
9065
  ];
9065
9066
  }
9066
- var Qb = w.createContext(void 0);
9067
+ var ew = w.createContext(void 0);
9067
9068
  function Mc(e) {
9068
- const t = w.useContext(Qb);
9069
+ const t = w.useContext(ew);
9069
9070
  return e || t || "ltr";
9070
9071
  }
9071
9072
  function Je(e) {
@@ -9074,7 +9075,7 @@ function Je(e) {
9074
9075
  t.current = e;
9075
9076
  }), w.useMemo(() => (...n) => t.current?.(...n), []);
9076
9077
  }
9077
- function ew(e, t = globalThis?.document) {
9078
+ function tw(e, t = globalThis?.document) {
9078
9079
  const n = Je(e);
9079
9080
  w.useEffect(() => {
9080
9081
  const r = (o) => {
@@ -9083,7 +9084,7 @@ function ew(e, t = globalThis?.document) {
9083
9084
  return t.addEventListener("keydown", r, { capture: !0 }), () => t.removeEventListener("keydown", r, { capture: !0 });
9084
9085
  }, [n, t]);
9085
9086
  }
9086
- var tw = "DismissableLayer", Oo = "dismissableLayer.update", nw = "dismissableLayer.pointerDownOutside", rw = "dismissableLayer.focusOutside", Aa, kc = w.createContext({
9087
+ var nw = "DismissableLayer", Oo = "dismissableLayer.update", rw = "dismissableLayer.pointerDownOutside", ow = "dismissableLayer.focusOutside", Aa, kc = w.createContext({
9087
9088
  layers: /* @__PURE__ */ new Set(),
9088
9089
  layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
9089
9090
  branches: /* @__PURE__ */ new Set()
@@ -9097,14 +9098,14 @@ var tw = "DismissableLayer", Oo = "dismissableLayer.update", nw = "dismissableLa
9097
9098
  onInteractOutside: i,
9098
9099
  onDismiss: a,
9099
9100
  ...c
9100
- } = e, l = w.useContext(kc), [d, u] = w.useState(null), h = d?.ownerDocument ?? globalThis?.document, [, m] = w.useState({}), p = we(t, (x) => u(x)), f = Array.from(l.layers), [v] = [...l.layersWithOutsidePointerEventsDisabled].slice(-1), b = f.indexOf(v), _ = d ? f.indexOf(d) : -1, y = l.layersWithOutsidePointerEventsDisabled.size > 0, E = _ >= b, S = aw((x) => {
9101
+ } = e, l = w.useContext(kc), [d, u] = w.useState(null), h = d?.ownerDocument ?? globalThis?.document, [, m] = w.useState({}), p = we(t, (x) => u(x)), f = Array.from(l.layers), [v] = [...l.layersWithOutsidePointerEventsDisabled].slice(-1), b = f.indexOf(v), _ = d ? f.indexOf(d) : -1, y = l.layersWithOutsidePointerEventsDisabled.size > 0, E = _ >= b, S = iw((x) => {
9101
9102
  const I = x.target, k = [...l.branches].some((D) => D.contains(I));
9102
9103
  !E || k || (o?.(x), i?.(x), x.defaultPrevented || a?.());
9103
- }, h), T = iw((x) => {
9104
+ }, h), T = cw((x) => {
9104
9105
  const I = x.target;
9105
9106
  [...l.branches].some((D) => D.contains(I)) || (s?.(x), i?.(x), x.defaultPrevented || a?.());
9106
9107
  }, h);
9107
- return ew((x) => {
9108
+ return tw((x) => {
9108
9109
  _ === l.layers.size - 1 && (r?.(x), !x.defaultPrevented && a && (x.preventDefault(), a()));
9109
9110
  }, h), w.useEffect(() => {
9110
9111
  if (d)
@@ -9135,8 +9136,8 @@ var tw = "DismissableLayer", Oo = "dismissableLayer.update", nw = "dismissableLa
9135
9136
  );
9136
9137
  }
9137
9138
  );
9138
- Dc.displayName = tw;
9139
- var ow = "DismissableLayerBranch", sw = w.forwardRef((e, t) => {
9139
+ Dc.displayName = nw;
9140
+ var sw = "DismissableLayerBranch", aw = w.forwardRef((e, t) => {
9140
9141
  const n = w.useContext(kc), r = w.useRef(null), o = we(t, r);
9141
9142
  return w.useEffect(() => {
9142
9143
  const s = r.current;
@@ -9146,8 +9147,8 @@ var ow = "DismissableLayerBranch", sw = w.forwardRef((e, t) => {
9146
9147
  };
9147
9148
  }, [n.branches]), /* @__PURE__ */ g(be.div, { ...e, ref: o });
9148
9149
  });
9149
- sw.displayName = ow;
9150
- function aw(e, t = globalThis?.document) {
9150
+ aw.displayName = sw;
9151
+ function iw(e, t = globalThis?.document) {
9151
9152
  const n = Je(e), r = w.useRef(!1), o = w.useRef(() => {
9152
9153
  });
9153
9154
  return w.useEffect(() => {
@@ -9155,7 +9156,7 @@ function aw(e, t = globalThis?.document) {
9155
9156
  if (a.target && !r.current) {
9156
9157
  let c = function() {
9157
9158
  $c(
9158
- nw,
9159
+ rw,
9159
9160
  n,
9160
9161
  l,
9161
9162
  { discrete: !0 }
@@ -9177,11 +9178,11 @@ function aw(e, t = globalThis?.document) {
9177
9178
  onPointerDownCapture: () => r.current = !0
9178
9179
  };
9179
9180
  }
9180
- function iw(e, t = globalThis?.document) {
9181
+ function cw(e, t = globalThis?.document) {
9181
9182
  const n = Je(e), r = w.useRef(!1);
9182
9183
  return w.useEffect(() => {
9183
9184
  const o = (s) => {
9184
- s.target && !r.current && $c(rw, n, { originalEvent: s }, {
9185
+ s.target && !r.current && $c(ow, n, { originalEvent: s }, {
9185
9186
  discrete: !1
9186
9187
  });
9187
9188
  };
@@ -9200,7 +9201,7 @@ function $c(e, t, n, { discrete: r }) {
9200
9201
  t && o.addEventListener(e, t, { once: !0 }), r ? Nc(o, s) : o.dispatchEvent(s);
9201
9202
  }
9202
9203
  var to = 0;
9203
- function cw() {
9204
+ function lw() {
9204
9205
  w.useEffect(() => {
9205
9206
  const e = document.querySelectorAll("[data-radix-focus-guard]");
9206
9207
  return document.body.insertAdjacentElement("afterbegin", e[0] ?? Oa()), document.body.insertAdjacentElement("beforeend", e[1] ?? Oa()), to++, () => {
@@ -9212,7 +9213,7 @@ function Oa() {
9212
9213
  const e = document.createElement("span");
9213
9214
  return e.setAttribute("data-radix-focus-guard", ""), e.tabIndex = 0, e.style.outline = "none", e.style.opacity = "0", e.style.position = "fixed", e.style.pointerEvents = "none", e;
9214
9215
  }
9215
- var no = "focusScope.autoFocusOnMount", ro = "focusScope.autoFocusOnUnmount", Na = { bubbles: !1, cancelable: !0 }, lw = "FocusScope", Lc = w.forwardRef((e, t) => {
9216
+ var no = "focusScope.autoFocusOnMount", ro = "focusScope.autoFocusOnUnmount", Na = { bubbles: !1, cancelable: !0 }, uw = "FocusScope", Lc = w.forwardRef((e, t) => {
9216
9217
  const {
9217
9218
  loop: n = !1,
9218
9219
  trapped: r = !1,
@@ -9255,7 +9256,7 @@ var no = "focusScope.autoFocusOnMount", ro = "focusScope.autoFocusOnUnmount", Na
9255
9256
  const f = document.activeElement;
9256
9257
  if (!a.contains(f)) {
9257
9258
  const b = new CustomEvent(no, Na);
9258
- a.addEventListener(no, l), a.dispatchEvent(b), b.defaultPrevented || (uw(hw(zc(a)), { select: !0 }), document.activeElement === f && st(a));
9259
+ a.addEventListener(no, l), a.dispatchEvent(b), b.defaultPrevented || (dw(gw(zc(a)), { select: !0 }), document.activeElement === f && st(a));
9259
9260
  }
9260
9261
  return () => {
9261
9262
  a.removeEventListener(no, l), setTimeout(() => {
@@ -9270,7 +9271,7 @@ var no = "focusScope.autoFocusOnMount", ro = "focusScope.autoFocusOnUnmount", Na
9270
9271
  if (!n && !r || m.paused) return;
9271
9272
  const v = f.key === "Tab" && !f.altKey && !f.ctrlKey && !f.metaKey, b = document.activeElement;
9272
9273
  if (v && b) {
9273
- const _ = f.currentTarget, [y, E] = dw(_);
9274
+ const _ = f.currentTarget, [y, E] = fw(_);
9274
9275
  y && E ? !f.shiftKey && b === E ? (f.preventDefault(), n && st(y, { select: !0 })) : f.shiftKey && b === y && (f.preventDefault(), n && st(E, { select: !0 })) : b === _ && f.preventDefault();
9275
9276
  }
9276
9277
  },
@@ -9278,13 +9279,13 @@ var no = "focusScope.autoFocusOnMount", ro = "focusScope.autoFocusOnUnmount", Na
9278
9279
  );
9279
9280
  return /* @__PURE__ */ g(be.div, { tabIndex: -1, ...i, ref: h, onKeyDown: p });
9280
9281
  });
9281
- Lc.displayName = lw;
9282
- function uw(e, { select: t = !1 } = {}) {
9282
+ Lc.displayName = uw;
9283
+ function dw(e, { select: t = !1 } = {}) {
9283
9284
  const n = document.activeElement;
9284
9285
  for (const r of e)
9285
9286
  if (st(r, { select: t }), document.activeElement !== n) return;
9286
9287
  }
9287
- function dw(e) {
9288
+ function fw(e) {
9288
9289
  const t = zc(e), n = Pa(t, e), r = Pa(t.reverse(), e);
9289
9290
  return [n, r];
9290
9291
  }
@@ -9300,9 +9301,9 @@ function zc(e) {
9300
9301
  }
9301
9302
  function Pa(e, t) {
9302
9303
  for (const n of e)
9303
- if (!fw(n, { upTo: t })) return n;
9304
+ if (!pw(n, { upTo: t })) return n;
9304
9305
  }
9305
- function fw(e, { upTo: t }) {
9306
+ function pw(e, { upTo: t }) {
9306
9307
  if (getComputedStyle(e).visibility === "hidden") return !0;
9307
9308
  for (; e; ) {
9308
9309
  if (t !== void 0 && e === t) return !1;
@@ -9311,17 +9312,17 @@ function fw(e, { upTo: t }) {
9311
9312
  }
9312
9313
  return !1;
9313
9314
  }
9314
- function pw(e) {
9315
+ function mw(e) {
9315
9316
  return e instanceof HTMLInputElement && "select" in e;
9316
9317
  }
9317
9318
  function st(e, { select: t = !1 } = {}) {
9318
9319
  if (e && e.focus) {
9319
9320
  const n = document.activeElement;
9320
- e.focus({ preventScroll: !0 }), e !== n && pw(e) && t && e.select();
9321
+ e.focus({ preventScroll: !0 }), e !== n && mw(e) && t && e.select();
9321
9322
  }
9322
9323
  }
9323
- var Ma = mw();
9324
- function mw() {
9324
+ var Ma = hw();
9325
+ function hw() {
9325
9326
  let e = [];
9326
9327
  return {
9327
9328
  add(t) {
@@ -9337,19 +9338,19 @@ function ka(e, t) {
9337
9338
  const n = [...e], r = n.indexOf(t);
9338
9339
  return r !== -1 && n.splice(r, 1), n;
9339
9340
  }
9340
- function hw(e) {
9341
+ function gw(e) {
9341
9342
  return e.filter((t) => t.tagName !== "A");
9342
9343
  }
9343
- var gw = w[" useId ".trim().toString()] || (() => {
9344
- }), vw = 0;
9344
+ var vw = w[" useId ".trim().toString()] || (() => {
9345
+ }), yw = 0;
9345
9346
  function vn(e) {
9346
- const [t, n] = w.useState(gw());
9347
+ const [t, n] = w.useState(vw());
9347
9348
  return gt(() => {
9348
- n((r) => r ?? String(vw++));
9349
+ n((r) => r ?? String(yw++));
9349
9350
  }, [e]), e || (t ? `radix-${t}` : "");
9350
9351
  }
9351
- var yw = typeof document < "u", bw = function() {
9352
- }, tr = yw ? wn : bw;
9352
+ var bw = typeof document < "u", ww = function() {
9353
+ }, tr = bw ? _n : ww;
9353
9354
  function vr(e, t) {
9354
9355
  if (e === t)
9355
9356
  return !0;
@@ -9393,7 +9394,7 @@ function oo(e) {
9393
9394
  t.current = e;
9394
9395
  }), t;
9395
9396
  }
9396
- function ww(e) {
9397
+ function _w(e) {
9397
9398
  e === void 0 && (e = {});
9398
9399
  const {
9399
9400
  placement: t = "bottom",
@@ -9495,7 +9496,7 @@ function ww(e) {
9495
9496
  floatingStyles: q
9496
9497
  }), [d, R, Q, H, q]);
9497
9498
  }
9498
- const _w = (e) => {
9499
+ const Ew = (e) => {
9499
9500
  function t(n) {
9500
9501
  return {}.hasOwnProperty.call(n, "current");
9501
9502
  }
@@ -9516,29 +9517,29 @@ const _w = (e) => {
9516
9517
  }).fn(n) : {};
9517
9518
  }
9518
9519
  };
9519
- }, Ew = (e, t) => ({
9520
+ }, Sw = (e, t) => ({
9520
9521
  ...Ec(e),
9521
9522
  options: [e, t]
9522
- }), Sw = (e, t) => ({
9523
- ...Sc(e),
9524
- options: [e, t]
9525
9523
  }), Cw = (e, t) => ({
9526
- ...tb(e),
9524
+ ...Sc(e),
9527
9525
  options: [e, t]
9528
9526
  }), xw = (e, t) => ({
9529
- ...Cc(e),
9527
+ ...nb(e),
9530
9528
  options: [e, t]
9531
9529
  }), Tw = (e, t) => ({
9532
- ...Qy(e),
9530
+ ...Cc(e),
9533
9531
  options: [e, t]
9534
9532
  }), Iw = (e, t) => ({
9535
9533
  ...eb(e),
9536
9534
  options: [e, t]
9537
9535
  }), Aw = (e, t) => ({
9538
- ..._w(e),
9536
+ ...tb(e),
9537
+ options: [e, t]
9538
+ }), Rw = (e, t) => ({
9539
+ ...Ew(e),
9539
9540
  options: [e, t]
9540
9541
  });
9541
- var Rw = "Arrow", Zc = w.forwardRef((e, t) => {
9542
+ var Ow = "Arrow", Zc = w.forwardRef((e, t) => {
9542
9543
  const { children: n, width: r = 10, height: o = 5, ...s } = e;
9543
9544
  return /* @__PURE__ */ g(
9544
9545
  be.svg,
@@ -9553,9 +9554,9 @@ var Rw = "Arrow", Zc = w.forwardRef((e, t) => {
9553
9554
  }
9554
9555
  );
9555
9556
  });
9556
- Zc.displayName = Rw;
9557
- var Ow = Zc;
9558
- function Nw(e) {
9557
+ Zc.displayName = Ow;
9558
+ var Nw = Zc;
9559
+ function Pw(e) {
9559
9560
  const [t, n] = w.useState(void 0);
9560
9561
  return gt(() => {
9561
9562
  if (e) {
@@ -9577,9 +9578,9 @@ function Nw(e) {
9577
9578
  n(void 0);
9578
9579
  }, [e]), t;
9579
9580
  }
9580
- var Qo = "Popper", [Uc, jc] = An(Qo), [Pw, Bc] = Uc(Qo), Hc = (e) => {
9581
+ var Qo = "Popper", [Uc, jc] = An(Qo), [Mw, Bc] = Uc(Qo), Hc = (e) => {
9581
9582
  const { __scopePopper: t, children: n } = e, [r, o] = w.useState(null);
9582
- return /* @__PURE__ */ g(Pw, { scope: t, anchor: r, onAnchorChange: o, children: n });
9583
+ return /* @__PURE__ */ g(Mw, { scope: t, anchor: r, onAnchorChange: o, children: n });
9583
9584
  };
9584
9585
  Hc.displayName = Qo;
9585
9586
  var Vc = "PopperAnchor", Wc = w.forwardRef(
@@ -9592,7 +9593,7 @@ var Vc = "PopperAnchor", Wc = w.forwardRef(
9592
9593
  }
9593
9594
  );
9594
9595
  Wc.displayName = Vc;
9595
- var es = "PopperContent", [Mw, kw] = Uc(es), Gc = w.forwardRef(
9596
+ var es = "PopperContent", [kw, Dw] = Uc(es), Gc = w.forwardRef(
9596
9597
  (e, t) => {
9597
9598
  const {
9598
9599
  __scopePopper: n,
@@ -9609,40 +9610,40 @@ var es = "PopperContent", [Mw, kw] = Uc(es), Gc = w.forwardRef(
9609
9610
  updatePositionStrategy: m = "optimized",
9610
9611
  onPlaced: p,
9611
9612
  ...f
9612
- } = e, v = Bc(es, n), [b, _] = w.useState(null), y = we(t, (ce) => _(ce)), [E, S] = w.useState(null), T = Nw(E), x = T?.width ?? 0, I = T?.height ?? 0, k = r + (s !== "center" ? "-" + s : ""), D = typeof d == "number" ? d : { top: 0, right: 0, bottom: 0, left: 0, ...d }, j = Array.isArray(l) ? l : [l], O = j.length > 0, R = {
9613
+ } = e, v = Bc(es, n), [b, _] = w.useState(null), y = we(t, (ce) => _(ce)), [E, S] = w.useState(null), T = Pw(E), x = T?.width ?? 0, I = T?.height ?? 0, k = r + (s !== "center" ? "-" + s : ""), D = typeof d == "number" ? d : { top: 0, right: 0, bottom: 0, left: 0, ...d }, j = Array.isArray(l) ? l : [l], O = j.length > 0, R = {
9613
9614
  padding: D,
9614
- boundary: j.filter($w),
9615
+ boundary: j.filter(Lw),
9615
9616
  // with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
9616
9617
  altBoundary: O
9617
- }, { refs: z, floatingStyles: Q, placement: H, isPositioned: q, middlewareData: $ } = ww({
9618
+ }, { refs: z, floatingStyles: Q, placement: H, isPositioned: q, middlewareData: $ } = _w({
9618
9619
  // default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
9619
9620
  strategy: "fixed",
9620
9621
  placement: k,
9621
- whileElementsMounted: (...ce) => qy(...ce, {
9622
+ whileElementsMounted: (...ce) => Qy(...ce, {
9622
9623
  animationFrame: m === "always"
9623
9624
  }),
9624
9625
  elements: {
9625
9626
  reference: v.anchor
9626
9627
  },
9627
9628
  middleware: [
9628
- Ew({ mainAxis: o + I, alignmentAxis: i }),
9629
- c && Sw({
9629
+ Sw({ mainAxis: o + I, alignmentAxis: i }),
9630
+ c && Cw({
9630
9631
  mainAxis: !0,
9631
9632
  crossAxis: !1,
9632
- limiter: u === "partial" ? Cw() : void 0,
9633
+ limiter: u === "partial" ? xw() : void 0,
9633
9634
  ...R
9634
9635
  }),
9635
- c && xw({ ...R }),
9636
- Tw({
9636
+ c && Tw({ ...R }),
9637
+ Iw({
9637
9638
  ...R,
9638
9639
  apply: ({ elements: ce, rects: _t, availableWidth: kn, availableHeight: Kt }) => {
9639
9640
  const { width: $r, height: Lr } = _t.reference, Mt = ce.floating.style;
9640
9641
  Mt.setProperty("--radix-popper-available-width", `${kn}px`), Mt.setProperty("--radix-popper-available-height", `${Kt}px`), Mt.setProperty("--radix-popper-anchor-width", `${$r}px`), Mt.setProperty("--radix-popper-anchor-height", `${Lr}px`);
9641
9642
  }
9642
9643
  }),
9643
- E && Aw({ element: E, padding: a }),
9644
- Lw({ arrowWidth: x, arrowHeight: I }),
9645
- h && Iw({ strategy: "referenceHidden", ...R })
9644
+ E && Rw({ element: E, padding: a }),
9645
+ zw({ arrowWidth: x, arrowHeight: I }),
9646
+ h && Aw({ strategy: "referenceHidden", ...R })
9646
9647
  ]
9647
9648
  }), [N, ie] = Kc(H), Te = Je(p);
9648
9649
  gt(() => {
@@ -9676,7 +9677,7 @@ var es = "PopperContent", [Mw, kw] = Uc(es), Gc = w.forwardRef(
9676
9677
  },
9677
9678
  dir: e.dir,
9678
9679
  children: /* @__PURE__ */ g(
9679
- Mw,
9680
+ kw,
9680
9681
  {
9681
9682
  scope: n,
9682
9683
  placedSide: N,
@@ -9706,13 +9707,13 @@ var es = "PopperContent", [Mw, kw] = Uc(es), Gc = w.forwardRef(
9706
9707
  }
9707
9708
  );
9708
9709
  Gc.displayName = es;
9709
- var Yc = "PopperArrow", Dw = {
9710
+ var Yc = "PopperArrow", $w = {
9710
9711
  top: "bottom",
9711
9712
  right: "left",
9712
9713
  bottom: "top",
9713
9714
  left: "right"
9714
9715
  }, Jc = w.forwardRef(function(t, n) {
9715
- const { __scopePopper: r, ...o } = t, s = kw(Yc, r), i = Dw[s.placedSide];
9716
+ const { __scopePopper: r, ...o } = t, s = Dw(Yc, r), i = $w[s.placedSide];
9716
9717
  return (
9717
9718
  // we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
9718
9719
  // doesn't report size as we'd expect on SVG elements.
@@ -9741,7 +9742,7 @@ var Yc = "PopperArrow", Dw = {
9741
9742
  visibility: s.shouldHideArrow ? "hidden" : void 0
9742
9743
  },
9743
9744
  children: /* @__PURE__ */ g(
9744
- Ow,
9745
+ Nw,
9745
9746
  {
9746
9747
  ...o,
9747
9748
  ref: n,
@@ -9757,10 +9758,10 @@ var Yc = "PopperArrow", Dw = {
9757
9758
  );
9758
9759
  });
9759
9760
  Jc.displayName = Yc;
9760
- function $w(e) {
9761
+ function Lw(e) {
9761
9762
  return e !== null;
9762
9763
  }
9763
- var Lw = (e) => ({
9764
+ var zw = (e) => ({
9764
9765
  name: "transformOrigin",
9765
9766
  options: e,
9766
9767
  fn(t) {
@@ -9773,23 +9774,23 @@ function Kc(e) {
9773
9774
  const [t, n = "center"] = e.split("-");
9774
9775
  return [t, n];
9775
9776
  }
9776
- var Xc = Hc, zw = Wc, Fw = Gc, Zw = Jc, Uw = "Portal", qc = w.forwardRef((e, t) => {
9777
+ var Xc = Hc, Fw = Wc, Zw = Gc, Uw = Jc, jw = "Portal", qc = w.forwardRef((e, t) => {
9777
9778
  const { container: n, ...r } = e, [o, s] = w.useState(!1);
9778
9779
  gt(() => s(!0), []);
9779
9780
  const i = n || o && globalThis?.document?.body;
9780
9781
  return i ? Bd.createPortal(/* @__PURE__ */ g(be.div, { ...r, ref: t }), i) : null;
9781
9782
  });
9782
- qc.displayName = Uw;
9783
- function jw(e, t) {
9783
+ qc.displayName = jw;
9784
+ function Bw(e, t) {
9784
9785
  return w.useReducer((n, r) => t[n][r] ?? n, e);
9785
9786
  }
9786
9787
  var Rn = (e) => {
9787
- const { present: t, children: n } = e, r = Bw(t), o = typeof n == "function" ? n({ present: r.isPresent }) : w.Children.only(n), s = we(r.ref, Hw(o));
9788
+ const { present: t, children: n } = e, r = Hw(t), o = typeof n == "function" ? n({ present: r.isPresent }) : w.Children.only(n), s = we(r.ref, Vw(o));
9788
9789
  return typeof n == "function" || r.isPresent ? w.cloneElement(o, { ref: s }) : null;
9789
9790
  };
9790
9791
  Rn.displayName = "Presence";
9791
- function Bw(e) {
9792
- const [t, n] = w.useState(), r = w.useRef(null), o = w.useRef(e), s = w.useRef("none"), i = e ? "mounted" : "unmounted", [a, c] = jw(i, {
9792
+ function Hw(e) {
9793
+ const [t, n] = w.useState(), r = w.useRef(null), o = w.useRef(e), s = w.useRef("none"), i = e ? "mounted" : "unmounted", [a, c] = Bw(i, {
9793
9794
  mounted: {
9794
9795
  UNMOUNT: "unmounted",
9795
9796
  ANIMATION_OUT: "unmountSuspended"
@@ -9840,18 +9841,18 @@ function Bw(e) {
9840
9841
  function Bn(e) {
9841
9842
  return e?.animationName || "none";
9842
9843
  }
9843
- function Hw(e) {
9844
+ function Vw(e) {
9844
9845
  let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning;
9845
9846
  return n ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
9846
9847
  }
9847
- var so = "rovingFocusGroup.onEntryFocus", Vw = { bubbles: !1, cancelable: !0 }, On = "RovingFocusGroup", [No, Qc, Ww] = Pc(On), [Gw, el] = An(
9848
+ var so = "rovingFocusGroup.onEntryFocus", Ww = { bubbles: !1, cancelable: !0 }, On = "RovingFocusGroup", [No, Qc, Gw] = Pc(On), [Yw, el] = An(
9848
9849
  On,
9849
- [Ww]
9850
- ), [Yw, Jw] = Gw(On), tl = w.forwardRef(
9851
- (e, t) => /* @__PURE__ */ g(No.Provider, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ g(No.Slot, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ g(Kw, { ...e, ref: t }) }) })
9850
+ [Gw]
9851
+ ), [Jw, Kw] = Yw(On), tl = w.forwardRef(
9852
+ (e, t) => /* @__PURE__ */ g(No.Provider, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ g(No.Slot, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ g(Xw, { ...e, ref: t }) }) })
9852
9853
  );
9853
9854
  tl.displayName = On;
9854
- var Kw = w.forwardRef((e, t) => {
9855
+ var Xw = w.forwardRef((e, t) => {
9855
9856
  const {
9856
9857
  __scopeRovingFocusGroup: n,
9857
9858
  orientation: r,
@@ -9874,7 +9875,7 @@ var Kw = w.forwardRef((e, t) => {
9874
9875
  if (I)
9875
9876
  return I.addEventListener(so, y), () => I.removeEventListener(so, y);
9876
9877
  }, [y]), /* @__PURE__ */ g(
9877
- Yw,
9878
+ Jw,
9878
9879
  {
9879
9880
  scope: n,
9880
9881
  orientation: r,
@@ -9908,7 +9909,7 @@ var Kw = w.forwardRef((e, t) => {
9908
9909
  onFocus: G(e.onFocus, (I) => {
9909
9910
  const k = !S.current;
9910
9911
  if (I.target === I.currentTarget && k && !b) {
9911
- const D = new CustomEvent(so, Vw);
9912
+ const D = new CustomEvent(so, Ww);
9912
9913
  if (I.currentTarget.dispatchEvent(D), !D.defaultPrevented) {
9913
9914
  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(
9914
9915
  Boolean
@@ -9932,7 +9933,7 @@ var Kw = w.forwardRef((e, t) => {
9932
9933
  tabStopId: s,
9933
9934
  children: i,
9934
9935
  ...a
9935
- } = e, c = vn(), l = s || c, d = Jw(nl, n), u = d.currentTabStopId === l, h = Qc(n), { onFocusableItemAdd: m, onFocusableItemRemove: p, currentTabStopId: f } = d;
9936
+ } = e, c = vn(), l = s || c, d = Kw(nl, n), u = d.currentTabStopId === l, h = Qc(n), { onFocusableItemAdd: m, onFocusableItemRemove: p, currentTabStopId: f } = d;
9936
9937
  return w.useEffect(() => {
9937
9938
  if (r)
9938
9939
  return m(), () => p();
@@ -9960,7 +9961,7 @@ var Kw = w.forwardRef((e, t) => {
9960
9961
  return;
9961
9962
  }
9962
9963
  if (v.target !== v.currentTarget) return;
9963
- const b = Qw(v, d.orientation, d.dir);
9964
+ const b = e_(v, d.orientation, d.dir);
9964
9965
  if (b !== void 0) {
9965
9966
  if (v.metaKey || v.ctrlKey || v.altKey || v.shiftKey) return;
9966
9967
  v.preventDefault();
@@ -9969,7 +9970,7 @@ var Kw = w.forwardRef((e, t) => {
9969
9970
  else if (b === "prev" || b === "next") {
9970
9971
  b === "prev" && y.reverse();
9971
9972
  const E = y.indexOf(v.currentTarget);
9972
- y = d.loop ? e_(y, E + 1) : y.slice(E + 1);
9973
+ y = d.loop ? t_(y, E + 1) : y.slice(E + 1);
9973
9974
  }
9974
9975
  setTimeout(() => ol(y));
9975
9976
  }
@@ -9982,7 +9983,7 @@ var Kw = w.forwardRef((e, t) => {
9982
9983
  }
9983
9984
  );
9984
9985
  rl.displayName = nl;
9985
- var Xw = {
9986
+ var qw = {
9986
9987
  ArrowLeft: "prev",
9987
9988
  ArrowUp: "prev",
9988
9989
  ArrowRight: "next",
@@ -9992,30 +9993,30 @@ var Xw = {
9992
9993
  PageDown: "last",
9993
9994
  End: "last"
9994
9995
  };
9995
- function qw(e, t) {
9996
+ function Qw(e, t) {
9996
9997
  return t !== "rtl" ? e : e === "ArrowLeft" ? "ArrowRight" : e === "ArrowRight" ? "ArrowLeft" : e;
9997
9998
  }
9998
- function Qw(e, t, n) {
9999
- const r = qw(e.key, n);
9999
+ function e_(e, t, n) {
10000
+ const r = Qw(e.key, n);
10000
10001
  if (!(t === "vertical" && ["ArrowLeft", "ArrowRight"].includes(r)) && !(t === "horizontal" && ["ArrowUp", "ArrowDown"].includes(r)))
10001
- return Xw[r];
10002
+ return qw[r];
10002
10003
  }
10003
10004
  function ol(e, t = !1) {
10004
10005
  const n = document.activeElement;
10005
10006
  for (const r of e)
10006
10007
  if (r === n || (r.focus({ preventScroll: t }), document.activeElement !== n)) return;
10007
10008
  }
10008
- function e_(e, t) {
10009
+ function t_(e, t) {
10009
10010
  return e.map((n, r) => e[(t + r) % e.length]);
10010
10011
  }
10011
- var t_ = tl, n_ = rl, r_ = function(e) {
10012
+ var n_ = tl, r_ = rl, o_ = function(e) {
10012
10013
  if (typeof document > "u")
10013
10014
  return null;
10014
10015
  var t = Array.isArray(e) ? e[0] : e;
10015
10016
  return t.ownerDocument.body;
10016
10017
  }, Dt = /* @__PURE__ */ new WeakMap(), Hn = /* @__PURE__ */ new WeakMap(), Vn = {}, ao = 0, sl = function(e) {
10017
10018
  return e && (e.host || sl(e.parentNode));
10018
- }, o_ = function(e, t) {
10019
+ }, s_ = function(e, t) {
10019
10020
  return t.map(function(n) {
10020
10021
  if (e.contains(n))
10021
10022
  return n;
@@ -10024,8 +10025,8 @@ var t_ = tl, n_ = rl, r_ = function(e) {
10024
10025
  }).filter(function(n) {
10025
10026
  return !!n;
10026
10027
  });
10027
- }, s_ = function(e, t, n, r) {
10028
- var o = o_(t, Array.isArray(e) ? e : [e]);
10028
+ }, a_ = function(e, t, n, r) {
10029
+ var o = s_(t, Array.isArray(e) ? e : [e]);
10029
10030
  Vn[n] || (Vn[n] = /* @__PURE__ */ new WeakMap());
10030
10031
  var s = Vn[n], i = [], a = /* @__PURE__ */ new Set(), c = new Set(o), l = function(u) {
10031
10032
  !u || a.has(u) || (a.add(u), l(u.parentNode));
@@ -10050,10 +10051,10 @@ var t_ = tl, n_ = rl, r_ = function(e) {
10050
10051
  Dt.set(u, h), s.set(u, m), h || (Hn.has(u) || u.removeAttribute(r), Hn.delete(u)), m || u.removeAttribute(n);
10051
10052
  }), ao--, ao || (Dt = /* @__PURE__ */ new WeakMap(), Dt = /* @__PURE__ */ new WeakMap(), Hn = /* @__PURE__ */ new WeakMap(), Vn = {});
10052
10053
  };
10053
- }, a_ = function(e, t, n) {
10054
+ }, i_ = function(e, t, n) {
10054
10055
  n === void 0 && (n = "data-aria-hidden");
10055
- var r = Array.from(Array.isArray(e) ? e : [e]), o = r_(e);
10056
- return o ? (r.push.apply(r, Array.from(o.querySelectorAll("[aria-live], script"))), s_(r, o, n, "aria-hidden")) : function() {
10056
+ var r = Array.from(Array.isArray(e) ? e : [e]), o = o_(e);
10057
+ return o ? (r.push.apply(r, Array.from(o.querySelectorAll("[aria-live], script"))), a_(r, o, n, "aria-hidden")) : function() {
10057
10058
  return null;
10058
10059
  };
10059
10060
  }, Be = function() {
@@ -10073,16 +10074,16 @@ function al(e, t) {
10073
10074
  t.indexOf(r[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[o]) && (n[r[o]] = e[r[o]]);
10074
10075
  return n;
10075
10076
  }
10076
- function i_(e, t, n) {
10077
+ function c_(e, t, n) {
10077
10078
  if (n || arguments.length === 2) for (var r = 0, o = t.length, s; r < o; r++)
10078
10079
  (s || !(r in t)) && (s || (s = Array.prototype.slice.call(t, 0, r)), s[r] = t[r]);
10079
10080
  return e.concat(s || Array.prototype.slice.call(t));
10080
10081
  }
10081
- var nr = "right-scroll-bar-position", rr = "width-before-scroll-bar", c_ = "with-scroll-bars-hidden", l_ = "--removed-body-scroll-bar-size";
10082
+ var nr = "right-scroll-bar-position", rr = "width-before-scroll-bar", l_ = "with-scroll-bars-hidden", u_ = "--removed-body-scroll-bar-size";
10082
10083
  function io(e, t) {
10083
10084
  return typeof e == "function" ? e(t) : e && (e.current = t), e;
10084
10085
  }
10085
- function u_(e, t) {
10086
+ function d_(e, t) {
10086
10087
  var n = B(function() {
10087
10088
  return {
10088
10089
  // value
@@ -10103,14 +10104,14 @@ function u_(e, t) {
10103
10104
  })[0];
10104
10105
  return n.callback = t, n.facade;
10105
10106
  }
10106
- var d_ = typeof window < "u" ? w.useLayoutEffect : w.useEffect, $a = /* @__PURE__ */ new WeakMap();
10107
- function f_(e, t) {
10108
- var n = u_(null, function(r) {
10107
+ var f_ = typeof window < "u" ? w.useLayoutEffect : w.useEffect, $a = /* @__PURE__ */ new WeakMap();
10108
+ function p_(e, t) {
10109
+ var n = d_(null, function(r) {
10109
10110
  return e.forEach(function(o) {
10110
10111
  return io(o, r);
10111
10112
  });
10112
10113
  });
10113
- return d_(function() {
10114
+ return f_(function() {
10114
10115
  var r = $a.get(n);
10115
10116
  if (r) {
10116
10117
  var o = new Set(r), s = new Set(e), i = n.current;
@@ -10123,11 +10124,11 @@ function f_(e, t) {
10123
10124
  $a.set(n, e);
10124
10125
  }, [e]), n;
10125
10126
  }
10126
- function p_(e) {
10127
+ function m_(e) {
10127
10128
  return e;
10128
10129
  }
10129
- function m_(e, t) {
10130
- t === void 0 && (t = p_);
10130
+ function h_(e, t) {
10131
+ t === void 0 && (t = m_);
10131
10132
  var n = [], r = !1, o = {
10132
10133
  read: function() {
10133
10134
  if (r)
@@ -10181,9 +10182,9 @@ function m_(e, t) {
10181
10182
  };
10182
10183
  return o;
10183
10184
  }
10184
- function h_(e) {
10185
+ function g_(e) {
10185
10186
  e === void 0 && (e = {});
10186
- var t = m_(null);
10187
+ var t = h_(null);
10187
10188
  return t.options = Be({ async: !0, ssr: !1 }, e), t;
10188
10189
  }
10189
10190
  var il = function(e) {
@@ -10196,16 +10197,16 @@ var il = function(e) {
10196
10197
  return w.createElement(r, Be({}, n));
10197
10198
  };
10198
10199
  il.isSideCarExport = !0;
10199
- function g_(e, t) {
10200
+ function v_(e, t) {
10200
10201
  return e.useMedium(t), il;
10201
10202
  }
10202
- var cl = h_(), co = function() {
10203
+ var cl = g_(), co = function() {
10203
10204
  }, Pr = w.forwardRef(function(e, t) {
10204
10205
  var n = w.useRef(null), r = w.useState({
10205
10206
  onScrollCapture: co,
10206
10207
  onWheelCapture: co,
10207
10208
  onTouchMoveCapture: co
10208
- }), o = r[0], s = r[1], i = e.forwardProps, a = e.children, c = e.className, l = e.removeScrollBar, d = e.enabled, u = e.shards, h = e.sideCar, m = e.noRelative, p = e.noIsolation, f = e.inert, v = e.allowPinchZoom, b = e.as, _ = b === void 0 ? "div" : b, y = e.gapMode, E = al(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), S = h, T = f_([n, t]), x = Be(Be({}, E), o);
10209
+ }), o = r[0], s = r[1], i = e.forwardProps, a = e.children, c = e.className, l = e.removeScrollBar, d = e.enabled, u = e.shards, h = e.sideCar, m = e.noRelative, p = e.noIsolation, f = e.inert, v = e.allowPinchZoom, b = e.as, _ = b === void 0 ? "div" : b, y = e.gapMode, E = al(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), S = h, T = p_([n, t]), x = Be(Be({}, E), o);
10209
10210
  return w.createElement(
10210
10211
  w.Fragment,
10211
10212
  null,
@@ -10222,37 +10223,37 @@ Pr.classNames = {
10222
10223
  fullWidth: rr,
10223
10224
  zeroRight: nr
10224
10225
  };
10225
- var v_ = function() {
10226
+ var y_ = function() {
10226
10227
  if (typeof __webpack_nonce__ < "u")
10227
10228
  return __webpack_nonce__;
10228
10229
  };
10229
- function y_() {
10230
+ function b_() {
10230
10231
  if (!document)
10231
10232
  return null;
10232
10233
  var e = document.createElement("style");
10233
10234
  e.type = "text/css";
10234
- var t = v_();
10235
+ var t = y_();
10235
10236
  return t && e.setAttribute("nonce", t), e;
10236
10237
  }
10237
- function b_(e, t) {
10238
+ function w_(e, t) {
10238
10239
  e.styleSheet ? e.styleSheet.cssText = t : e.appendChild(document.createTextNode(t));
10239
10240
  }
10240
- function w_(e) {
10241
+ function __(e) {
10241
10242
  var t = document.head || document.getElementsByTagName("head")[0];
10242
10243
  t.appendChild(e);
10243
10244
  }
10244
- var __ = function() {
10245
+ var E_ = function() {
10245
10246
  var e = 0, t = null;
10246
10247
  return {
10247
10248
  add: function(n) {
10248
- e == 0 && (t = y_()) && (b_(t, n), w_(t)), e++;
10249
+ e == 0 && (t = b_()) && (w_(t, n), __(t)), e++;
10249
10250
  },
10250
10251
  remove: function() {
10251
10252
  e--, !e && t && (t.parentNode && t.parentNode.removeChild(t), t = null);
10252
10253
  }
10253
10254
  };
10254
- }, E_ = function() {
10255
- var e = __();
10255
+ }, S_ = function() {
10256
+ var e = E_();
10256
10257
  return function(t, n) {
10257
10258
  w.useEffect(function() {
10258
10259
  return e.add(t), function() {
@@ -10261,35 +10262,35 @@ var __ = function() {
10261
10262
  }, [t && n]);
10262
10263
  };
10263
10264
  }, ll = function() {
10264
- var e = E_(), t = function(n) {
10265
+ var e = S_(), t = function(n) {
10265
10266
  var r = n.styles, o = n.dynamic;
10266
10267
  return e(r, o), null;
10267
10268
  };
10268
10269
  return t;
10269
- }, S_ = {
10270
+ }, C_ = {
10270
10271
  left: 0,
10271
10272
  top: 0,
10272
10273
  right: 0,
10273
10274
  gap: 0
10274
10275
  }, lo = function(e) {
10275
10276
  return parseInt(e || "", 10) || 0;
10276
- }, C_ = function(e) {
10277
+ }, x_ = function(e) {
10277
10278
  var t = window.getComputedStyle(document.body), n = t[e === "padding" ? "paddingLeft" : "marginLeft"], r = t[e === "padding" ? "paddingTop" : "marginTop"], o = t[e === "padding" ? "paddingRight" : "marginRight"];
10278
10279
  return [lo(n), lo(r), lo(o)];
10279
- }, x_ = function(e) {
10280
+ }, T_ = function(e) {
10280
10281
  if (e === void 0 && (e = "margin"), typeof window > "u")
10281
- return S_;
10282
- var t = C_(e), n = document.documentElement.clientWidth, r = window.innerWidth;
10282
+ return C_;
10283
+ var t = x_(e), n = document.documentElement.clientWidth, r = window.innerWidth;
10283
10284
  return {
10284
10285
  left: t[0],
10285
10286
  top: t[1],
10286
10287
  right: t[2],
10287
10288
  gap: Math.max(0, r - n + t[2] - t[0])
10288
10289
  };
10289
- }, T_ = ll(), Ut = "data-scroll-locked", I_ = function(e, t, n, r) {
10290
+ }, I_ = ll(), Ut = "data-scroll-locked", A_ = function(e, t, n, r) {
10290
10291
  var o = e.left, s = e.top, i = e.right, a = e.gap;
10291
10292
  return n === void 0 && (n = "margin"), `
10292
- .`.concat(c_, ` {
10293
+ .`.concat(l_, ` {
10293
10294
  overflow: hidden `).concat(r, `;
10294
10295
  padding-right: `).concat(a, "px ").concat(r, `;
10295
10296
  }
@@ -10327,26 +10328,26 @@ var __ = function() {
10327
10328
  }
10328
10329
 
10329
10330
  body[`).concat(Ut, `] {
10330
- `).concat(l_, ": ").concat(a, `px;
10331
+ `).concat(u_, ": ").concat(a, `px;
10331
10332
  }
10332
10333
  `);
10333
10334
  }, La = function() {
10334
10335
  var e = parseInt(document.body.getAttribute(Ut) || "0", 10);
10335
10336
  return isFinite(e) ? e : 0;
10336
- }, A_ = function() {
10337
+ }, R_ = function() {
10337
10338
  w.useEffect(function() {
10338
10339
  return document.body.setAttribute(Ut, (La() + 1).toString()), function() {
10339
10340
  var e = La() - 1;
10340
10341
  e <= 0 ? document.body.removeAttribute(Ut) : document.body.setAttribute(Ut, e.toString());
10341
10342
  };
10342
10343
  }, []);
10343
- }, R_ = function(e) {
10344
+ }, O_ = function(e) {
10344
10345
  var t = e.noRelative, n = e.noImportant, r = e.gapMode, o = r === void 0 ? "margin" : r;
10345
- A_();
10346
+ R_();
10346
10347
  var s = w.useMemo(function() {
10347
- return x_(o);
10348
+ return T_(o);
10348
10349
  }, [o]);
10349
- return w.createElement(T_, { styles: I_(s, !t, o, n ? "" : "!important") });
10350
+ return w.createElement(I_, { styles: A_(s, !t, o, n ? "" : "!important") });
10350
10351
  }, Po = !1;
10351
10352
  if (typeof window < "u")
10352
10353
  try {
@@ -10359,7 +10360,7 @@ if (typeof window < "u")
10359
10360
  } catch {
10360
10361
  Po = !1;
10361
10362
  }
10362
- var $t = Po ? { passive: !1 } : !1, O_ = function(e) {
10363
+ var $t = Po ? { passive: !1 } : !1, N_ = function(e) {
10363
10364
  return e.tagName === "TEXTAREA";
10364
10365
  }, ul = function(e, t) {
10365
10366
  if (!(e instanceof Element))
@@ -10368,11 +10369,11 @@ var $t = Po ? { passive: !1 } : !1, O_ = function(e) {
10368
10369
  return (
10369
10370
  // not-not-scrollable
10370
10371
  n[t] !== "hidden" && // contains scroll inside self
10371
- !(n.overflowY === n.overflowX && !O_(e) && n[t] === "visible")
10372
+ !(n.overflowY === n.overflowX && !N_(e) && n[t] === "visible")
10372
10373
  );
10373
- }, N_ = function(e) {
10374
- return ul(e, "overflowY");
10375
10374
  }, P_ = function(e) {
10375
+ return ul(e, "overflowY");
10376
+ }, M_ = function(e) {
10376
10377
  return ul(e, "overflowX");
10377
10378
  }, za = function(e, t) {
10378
10379
  var n = t.ownerDocument, r = t;
@@ -10387,14 +10388,14 @@ var $t = Po ? { passive: !1 } : !1, O_ = function(e) {
10387
10388
  r = r.parentNode;
10388
10389
  } while (r && r !== n.body);
10389
10390
  return !1;
10390
- }, M_ = function(e) {
10391
+ }, k_ = function(e) {
10391
10392
  var t = e.scrollTop, n = e.scrollHeight, r = e.clientHeight;
10392
10393
  return [
10393
10394
  t,
10394
10395
  n,
10395
10396
  r
10396
10397
  ];
10397
- }, k_ = function(e) {
10398
+ }, D_ = function(e) {
10398
10399
  var t = e.scrollLeft, n = e.scrollWidth, r = e.clientWidth;
10399
10400
  return [
10400
10401
  t,
@@ -10402,13 +10403,13 @@ var $t = Po ? { passive: !1 } : !1, O_ = function(e) {
10402
10403
  r
10403
10404
  ];
10404
10405
  }, dl = function(e, t) {
10405
- return e === "v" ? N_(t) : P_(t);
10406
+ return e === "v" ? P_(t) : M_(t);
10406
10407
  }, fl = function(e, t) {
10407
- return e === "v" ? M_(t) : k_(t);
10408
- }, D_ = function(e, t) {
10408
+ return e === "v" ? k_(t) : D_(t);
10409
+ }, $_ = function(e, t) {
10409
10410
  return e === "h" && t === "rtl" ? -1 : 1;
10410
- }, $_ = function(e, t, n, r, o) {
10411
- var s = D_(e, window.getComputedStyle(t).direction), i = s * r, a = n.target, c = t.contains(a), l = !1, d = i > 0, u = 0, h = 0;
10411
+ }, L_ = function(e, t, n, r, o) {
10412
+ var s = $_(e, window.getComputedStyle(t).direction), i = s * r, a = n.target, c = t.contains(a), l = !1, d = i > 0, u = 0, h = 0;
10412
10413
  do {
10413
10414
  if (!a)
10414
10415
  break;
@@ -10428,22 +10429,22 @@ var $t = Po ? { passive: !1 } : !1, O_ = function(e) {
10428
10429
  return [e.deltaX, e.deltaY];
10429
10430
  }, Za = function(e) {
10430
10431
  return e && "current" in e ? e.current : e;
10431
- }, L_ = function(e, t) {
10432
+ }, z_ = function(e, t) {
10432
10433
  return e[0] === t[0] && e[1] === t[1];
10433
- }, z_ = function(e) {
10434
+ }, F_ = function(e) {
10434
10435
  return `
10435
10436
  .block-interactivity-`.concat(e, ` {pointer-events: none;}
10436
10437
  .allow-interactivity-`).concat(e, ` {pointer-events: all;}
10437
10438
  `);
10438
- }, F_ = 0, Lt = [];
10439
- function Z_(e) {
10440
- var t = w.useRef([]), n = w.useRef([0, 0]), r = w.useRef(), o = w.useState(F_++)[0], s = w.useState(ll)[0], i = w.useRef(e);
10439
+ }, Z_ = 0, Lt = [];
10440
+ function U_(e) {
10441
+ var t = w.useRef([]), n = w.useRef([0, 0]), r = w.useRef(), o = w.useState(Z_++)[0], s = w.useState(ll)[0], i = w.useRef(e);
10441
10442
  w.useEffect(function() {
10442
10443
  i.current = e;
10443
10444
  }, [e]), w.useEffect(function() {
10444
10445
  if (e.inert) {
10445
10446
  document.body.classList.add("block-interactivity-".concat(o));
10446
- var f = i_([e.lockRef.current], (e.shards || []).map(Za), !0).filter(Boolean);
10447
+ var f = c_([e.lockRef.current], (e.shards || []).map(Za), !0).filter(Boolean);
10447
10448
  return f.forEach(function(v) {
10448
10449
  return v.classList.add("allow-interactivity-".concat(o));
10449
10450
  }), function() {
@@ -10470,12 +10471,12 @@ function Z_(e) {
10470
10471
  if (!r.current && "changedTouches" in f && (y || E) && (r.current = S), !S)
10471
10472
  return !0;
10472
10473
  var O = r.current || S;
10473
- return $_(O, v, f, O === "h" ? y : E);
10474
+ return L_(O, v, f, O === "h" ? y : E);
10474
10475
  }, []), c = w.useCallback(function(f) {
10475
10476
  var v = f;
10476
10477
  if (!(!Lt.length || Lt[Lt.length - 1] !== s)) {
10477
10478
  var b = "deltaY" in v ? Fa(v) : Gn(v), _ = t.current.filter(function(S) {
10478
- return S.name === v.type && (S.target === v.target || v.target === S.shadowParent) && L_(S.delta, b);
10479
+ return S.name === v.type && (S.target === v.target || v.target === S.shadowParent) && z_(S.delta, b);
10479
10480
  })[0];
10480
10481
  if (_ && _.should) {
10481
10482
  v.cancelable && v.preventDefault();
@@ -10489,7 +10490,7 @@ function Z_(e) {
10489
10490
  }
10490
10491
  }
10491
10492
  }, []), l = w.useCallback(function(f, v, b, _) {
10492
- var y = { name: f, delta: v, target: b, should: _, shadowParent: U_(b) };
10493
+ var y = { name: f, delta: v, target: b, should: _, shadowParent: j_(b) };
10493
10494
  t.current.push(y), setTimeout(function() {
10494
10495
  t.current = t.current.filter(function(E) {
10495
10496
  return E !== y;
@@ -10517,31 +10518,31 @@ function Z_(e) {
10517
10518
  return w.createElement(
10518
10519
  w.Fragment,
10519
10520
  null,
10520
- p ? w.createElement(s, { styles: z_(o) }) : null,
10521
- m ? w.createElement(R_, { noRelative: e.noRelative, gapMode: e.gapMode }) : null
10521
+ p ? w.createElement(s, { styles: F_(o) }) : null,
10522
+ m ? w.createElement(O_, { noRelative: e.noRelative, gapMode: e.gapMode }) : null
10522
10523
  );
10523
10524
  }
10524
- function U_(e) {
10525
+ function j_(e) {
10525
10526
  for (var t = null; e !== null; )
10526
10527
  e instanceof ShadowRoot && (t = e.host, e = e.host), e = e.parentNode;
10527
10528
  return t;
10528
10529
  }
10529
- const j_ = g_(cl, Z_);
10530
+ const B_ = v_(cl, U_);
10530
10531
  var pl = w.forwardRef(function(e, t) {
10531
- return w.createElement(Pr, Be({}, e, { ref: t, sideCar: j_ }));
10532
+ return w.createElement(Pr, Be({}, e, { ref: t, sideCar: B_ }));
10532
10533
  });
10533
10534
  pl.classNames = Pr.classNames;
10534
- var Mo = ["Enter", " "], B_ = ["ArrowDown", "PageUp", "Home"], ml = ["ArrowUp", "PageDown", "End"], H_ = [...B_, ...ml], V_ = {
10535
+ var Mo = ["Enter", " "], H_ = ["ArrowDown", "PageUp", "Home"], ml = ["ArrowUp", "PageDown", "End"], V_ = [...H_, ...ml], W_ = {
10535
10536
  ltr: [...Mo, "ArrowRight"],
10536
10537
  rtl: [...Mo, "ArrowLeft"]
10537
- }, W_ = {
10538
+ }, G_ = {
10538
10539
  ltr: ["ArrowLeft"],
10539
10540
  rtl: ["ArrowRight"]
10540
- }, Nn = "Menu", [yn, G_, Y_] = Pc(Nn), [Nt, hl] = An(Nn, [
10541
- Y_,
10541
+ }, Nn = "Menu", [yn, Y_, J_] = Pc(Nn), [Nt, hl] = An(Nn, [
10542
+ J_,
10542
10543
  jc,
10543
10544
  el
10544
- ]), Pn = jc(), gl = el(), [vl, wt] = Nt(Nn), [J_, Mn] = Nt(Nn), yl = (e) => {
10545
+ ]), Pn = jc(), gl = el(), [vl, wt] = Nt(Nn), [K_, Mn] = Nt(Nn), yl = (e) => {
10545
10546
  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), h = Mc(o);
10546
10547
  return w.useEffect(() => {
10547
10548
  const m = () => {
@@ -10559,7 +10560,7 @@ var Mo = ["Enter", " "], B_ = ["ArrowDown", "PageUp", "Home"], ml = ["ArrowUp",
10559
10560
  content: c,
10560
10561
  onContentChange: l,
10561
10562
  children: /* @__PURE__ */ g(
10562
- J_,
10563
+ K_,
10563
10564
  {
10564
10565
  scope: t,
10565
10566
  onClose: w.useCallback(() => u(!1), [u]),
@@ -10573,31 +10574,31 @@ var Mo = ["Enter", " "], B_ = ["ArrowDown", "PageUp", "Home"], ml = ["ArrowUp",
10573
10574
  ) });
10574
10575
  };
10575
10576
  yl.displayName = Nn;
10576
- var K_ = "MenuAnchor", ts = w.forwardRef(
10577
+ var X_ = "MenuAnchor", ts = w.forwardRef(
10577
10578
  (e, t) => {
10578
10579
  const { __scopeMenu: n, ...r } = e, o = Pn(n);
10579
- return /* @__PURE__ */ g(zw, { ...o, ...r, ref: t });
10580
+ return /* @__PURE__ */ g(Fw, { ...o, ...r, ref: t });
10580
10581
  }
10581
10582
  );
10582
- ts.displayName = K_;
10583
- var ns = "MenuPortal", [X_, bl] = Nt(ns, {
10583
+ ts.displayName = X_;
10584
+ var ns = "MenuPortal", [q_, bl] = Nt(ns, {
10584
10585
  forceMount: void 0
10585
10586
  }), wl = (e) => {
10586
10587
  const { __scopeMenu: t, forceMount: n, children: r, container: o } = e, s = wt(ns, t);
10587
- return /* @__PURE__ */ g(X_, { scope: t, forceMount: n, children: /* @__PURE__ */ g(Rn, { present: n || s.open, children: /* @__PURE__ */ g(qc, { asChild: !0, container: o, children: r }) }) });
10588
+ return /* @__PURE__ */ g(q_, { scope: t, forceMount: n, children: /* @__PURE__ */ g(Rn, { present: n || s.open, children: /* @__PURE__ */ g(qc, { asChild: !0, container: o, children: r }) }) });
10588
10589
  };
10589
10590
  wl.displayName = ns;
10590
- var Re = "MenuContent", [q_, rs] = Nt(Re), _l = w.forwardRef(
10591
+ var Re = "MenuContent", [Q_, rs] = Nt(Re), _l = w.forwardRef(
10591
10592
  (e, t) => {
10592
10593
  const n = bl(Re, e.__scopeMenu), { forceMount: r = n.forceMount, ...o } = e, s = wt(Re, e.__scopeMenu), i = Mn(Re, e.__scopeMenu);
10593
- return /* @__PURE__ */ g(yn.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ g(Rn, { present: r || s.open, children: /* @__PURE__ */ g(yn.Slot, { scope: e.__scopeMenu, children: i.modal ? /* @__PURE__ */ g(Q_, { ...o, ref: t }) : /* @__PURE__ */ g(eE, { ...o, ref: t }) }) }) });
10594
+ return /* @__PURE__ */ g(yn.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ g(Rn, { present: r || s.open, children: /* @__PURE__ */ g(yn.Slot, { scope: e.__scopeMenu, children: i.modal ? /* @__PURE__ */ g(eE, { ...o, ref: t }) : /* @__PURE__ */ g(tE, { ...o, ref: t }) }) }) });
10594
10595
  }
10595
- ), Q_ = w.forwardRef(
10596
+ ), eE = w.forwardRef(
10596
10597
  (e, t) => {
10597
10598
  const n = wt(Re, e.__scopeMenu), r = w.useRef(null), o = we(t, r);
10598
10599
  return w.useEffect(() => {
10599
10600
  const s = r.current;
10600
- if (s) return a_(s);
10601
+ if (s) return i_(s);
10601
10602
  }, []), /* @__PURE__ */ g(
10602
10603
  os,
10603
10604
  {
@@ -10615,7 +10616,7 @@ var Re = "MenuContent", [q_, rs] = Nt(Re), _l = w.forwardRef(
10615
10616
  }
10616
10617
  );
10617
10618
  }
10618
- ), eE = w.forwardRef((e, t) => {
10619
+ ), tE = w.forwardRef((e, t) => {
10619
10620
  const n = wt(Re, e.__scopeMenu);
10620
10621
  return /* @__PURE__ */ g(
10621
10622
  os,
@@ -10628,7 +10629,7 @@ var Re = "MenuContent", [q_, rs] = Nt(Re), _l = w.forwardRef(
10628
10629
  onDismiss: () => n.onOpenChange(!1)
10629
10630
  }
10630
10631
  );
10631
- }), tE = /* @__PURE__ */ gr("MenuContent.ScrollLock"), os = w.forwardRef(
10632
+ }), nE = /* @__PURE__ */ gr("MenuContent.ScrollLock"), os = w.forwardRef(
10632
10633
  (e, t) => {
10633
10634
  const {
10634
10635
  __scopeMenu: n,
@@ -10645,16 +10646,16 @@ var Re = "MenuContent", [q_, rs] = Nt(Re), _l = w.forwardRef(
10645
10646
  onDismiss: m,
10646
10647
  disableOutsideScroll: p,
10647
10648
  ...f
10648
- } = e, v = wt(Re, n), b = Mn(Re, n), _ = Pn(n), y = gl(n), E = G_(n), [S, T] = w.useState(null), x = w.useRef(null), I = we(t, x, v.onContentChange), k = w.useRef(0), D = w.useRef(""), j = w.useRef(0), O = w.useRef(null), R = w.useRef("right"), z = w.useRef(0), Q = p ? pl : w.Fragment, H = p ? { as: tE, allowPinchZoom: !0 } : void 0, q = (N) => {
10649
- const ie = D.current + N, Te = E().filter((ce) => !ce.disabled), ze = document.activeElement, me = Te.find((ce) => ce.ref.current === ze)?.textValue, Ee = Te.map((ce) => ce.textValue), Pt = pE(Ee, ie, me), qe = Te.find((ce) => ce.textValue === Pt)?.ref.current;
10649
+ } = e, v = wt(Re, n), b = Mn(Re, n), _ = Pn(n), y = gl(n), E = Y_(n), [S, T] = w.useState(null), x = w.useRef(null), I = we(t, x, v.onContentChange), k = w.useRef(0), D = w.useRef(""), j = w.useRef(0), O = w.useRef(null), R = w.useRef("right"), z = w.useRef(0), Q = p ? pl : w.Fragment, H = p ? { as: nE, allowPinchZoom: !0 } : void 0, q = (N) => {
10650
+ const ie = D.current + N, Te = E().filter((ce) => !ce.disabled), ze = document.activeElement, me = Te.find((ce) => ce.ref.current === ze)?.textValue, Ee = Te.map((ce) => ce.textValue), Pt = mE(Ee, ie, me), qe = Te.find((ce) => ce.textValue === Pt)?.ref.current;
10650
10651
  (function ce(_t) {
10651
10652
  D.current = _t, window.clearTimeout(k.current), _t !== "" && (k.current = window.setTimeout(() => ce(""), 1e3));
10652
10653
  })(ie), qe && setTimeout(() => qe.focus());
10653
10654
  };
10654
- w.useEffect(() => () => window.clearTimeout(k.current), []), cw();
10655
- const $ = w.useCallback((N) => R.current === O.current?.side && hE(N, O.current?.area), []);
10655
+ w.useEffect(() => () => window.clearTimeout(k.current), []), lw();
10656
+ const $ = w.useCallback((N) => R.current === O.current?.side && gE(N, O.current?.area), []);
10656
10657
  return /* @__PURE__ */ g(
10657
- q_,
10658
+ Q_,
10658
10659
  {
10659
10660
  scope: n,
10660
10661
  searchRef: D,
@@ -10700,7 +10701,7 @@ var Re = "MenuContent", [q_, rs] = Nt(Re), _l = w.forwardRef(
10700
10701
  onInteractOutside: h,
10701
10702
  onDismiss: m,
10702
10703
  children: /* @__PURE__ */ g(
10703
- t_,
10704
+ n_,
10704
10705
  {
10705
10706
  asChild: !0,
10706
10707
  ...y,
@@ -10714,7 +10715,7 @@ var Re = "MenuContent", [q_, rs] = Nt(Re), _l = w.forwardRef(
10714
10715
  }),
10715
10716
  preventScrollOnEntryFocus: !0,
10716
10717
  children: /* @__PURE__ */ g(
10717
- Fw,
10718
+ Zw,
10718
10719
  {
10719
10720
  role: "menu",
10720
10721
  "aria-orientation": "vertical",
@@ -10729,10 +10730,10 @@ var Re = "MenuContent", [q_, rs] = Nt(Re), _l = w.forwardRef(
10729
10730
  const Te = N.target.closest("[data-radix-menu-content]") === N.currentTarget, ze = N.ctrlKey || N.altKey || N.metaKey, me = N.key.length === 1;
10730
10731
  Te && (N.key === "Tab" && N.preventDefault(), !ze && me && q(N.key));
10731
10732
  const Ee = x.current;
10732
- if (N.target !== Ee || !H_.includes(N.key)) return;
10733
+ if (N.target !== Ee || !V_.includes(N.key)) return;
10733
10734
  N.preventDefault();
10734
10735
  const qe = E().filter((ce) => !ce.disabled).map((ce) => ce.ref.current);
10735
- ml.includes(N.key) && qe.reverse(), dE(qe);
10736
+ ml.includes(N.key) && qe.reverse(), fE(qe);
10736
10737
  }),
10737
10738
  onBlur: G(e.onBlur, (N) => {
10738
10739
  N.currentTarget.contains(N.target) || (window.clearTimeout(k.current), D.current = "");
@@ -10760,20 +10761,20 @@ var Re = "MenuContent", [q_, rs] = Nt(Re), _l = w.forwardRef(
10760
10761
  }
10761
10762
  );
10762
10763
  _l.displayName = Re;
10763
- var nE = "MenuGroup", ss = w.forwardRef(
10764
+ var rE = "MenuGroup", ss = w.forwardRef(
10764
10765
  (e, t) => {
10765
10766
  const { __scopeMenu: n, ...r } = e;
10766
10767
  return /* @__PURE__ */ g(be.div, { role: "group", ...r, ref: t });
10767
10768
  }
10768
10769
  );
10769
- ss.displayName = nE;
10770
- var rE = "MenuLabel", El = w.forwardRef(
10770
+ ss.displayName = rE;
10771
+ var oE = "MenuLabel", El = w.forwardRef(
10771
10772
  (e, t) => {
10772
10773
  const { __scopeMenu: n, ...r } = e;
10773
10774
  return /* @__PURE__ */ g(be.div, { ...r, ref: t });
10774
10775
  }
10775
10776
  );
10776
- El.displayName = rE;
10777
+ El.displayName = oE;
10777
10778
  var yr = "MenuItem", Ua = "menu.itemSelect", Mr = w.forwardRef(
10778
10779
  (e, t) => {
10779
10780
  const { disabled: n = !1, onSelect: r, ...o } = e, s = w.useRef(null), i = Mn(yr, e.__scopeMenu), a = rs(yr, e.__scopeMenu), c = we(t, s), l = w.useRef(!1), d = () => {
@@ -10817,7 +10818,7 @@ var Sl = w.forwardRef(
10817
10818
  scope: n,
10818
10819
  disabled: r,
10819
10820
  textValue: o ?? h,
10820
- children: /* @__PURE__ */ g(n_, { asChild: !0, ...a, focusable: !r, children: /* @__PURE__ */ g(
10821
+ children: /* @__PURE__ */ g(r_, { asChild: !0, ...a, focusable: !r, children: /* @__PURE__ */ g(
10821
10822
  be.div,
10822
10823
  {
10823
10824
  role: "menuitem",
@@ -10843,7 +10844,7 @@ var Sl = w.forwardRef(
10843
10844
  }
10844
10845
  );
10845
10846
  }
10846
- ), oE = "MenuCheckboxItem", Cl = w.forwardRef(
10847
+ ), sE = "MenuCheckboxItem", Cl = w.forwardRef(
10847
10848
  (e, t) => {
10848
10849
  const { checked: n = !1, onCheckedChange: r, ...o } = e;
10849
10850
  return /* @__PURE__ */ g(Rl, { scope: e.__scopeMenu, checked: n, children: /* @__PURE__ */ g(
@@ -10863,21 +10864,21 @@ var Sl = w.forwardRef(
10863
10864
  ) });
10864
10865
  }
10865
10866
  );
10866
- Cl.displayName = oE;
10867
- var xl = "MenuRadioGroup", [sE, aE] = Nt(
10867
+ Cl.displayName = sE;
10868
+ var xl = "MenuRadioGroup", [aE, iE] = Nt(
10868
10869
  xl,
10869
10870
  { value: void 0, onValueChange: () => {
10870
10871
  } }
10871
10872
  ), Tl = w.forwardRef(
10872
10873
  (e, t) => {
10873
10874
  const { value: n, onValueChange: r, ...o } = e, s = Je(r);
10874
- return /* @__PURE__ */ g(sE, { scope: e.__scopeMenu, value: n, onValueChange: s, children: /* @__PURE__ */ g(ss, { ...o, ref: t }) });
10875
+ return /* @__PURE__ */ g(aE, { scope: e.__scopeMenu, value: n, onValueChange: s, children: /* @__PURE__ */ g(ss, { ...o, ref: t }) });
10875
10876
  }
10876
10877
  );
10877
10878
  Tl.displayName = xl;
10878
10879
  var Il = "MenuRadioItem", Al = w.forwardRef(
10879
10880
  (e, t) => {
10880
- const { value: n, ...r } = e, o = aE(Il, e.__scopeMenu), s = n === o.value;
10881
+ const { value: n, ...r } = e, o = iE(Il, e.__scopeMenu), s = n === o.value;
10881
10882
  return /* @__PURE__ */ g(Rl, { scope: e.__scopeMenu, checked: s, children: /* @__PURE__ */ g(
10882
10883
  Mr,
10883
10884
  {
@@ -10896,12 +10897,12 @@ var Il = "MenuRadioItem", Al = w.forwardRef(
10896
10897
  }
10897
10898
  );
10898
10899
  Al.displayName = Il;
10899
- var as = "MenuItemIndicator", [Rl, iE] = Nt(
10900
+ var as = "MenuItemIndicator", [Rl, cE] = Nt(
10900
10901
  as,
10901
10902
  { checked: !1 }
10902
10903
  ), Ol = w.forwardRef(
10903
10904
  (e, t) => {
10904
- const { __scopeMenu: n, forceMount: r, ...o } = e, s = iE(as, n);
10905
+ const { __scopeMenu: n, forceMount: r, ...o } = e, s = cE(as, n);
10905
10906
  return /* @__PURE__ */ g(
10906
10907
  Rn,
10907
10908
  {
@@ -10919,7 +10920,7 @@ var as = "MenuItemIndicator", [Rl, iE] = Nt(
10919
10920
  }
10920
10921
  );
10921
10922
  Ol.displayName = as;
10922
- var cE = "MenuSeparator", Nl = w.forwardRef(
10923
+ var lE = "MenuSeparator", Nl = w.forwardRef(
10923
10924
  (e, t) => {
10924
10925
  const { __scopeMenu: n, ...r } = e;
10925
10926
  return /* @__PURE__ */ g(
@@ -10933,15 +10934,15 @@ var cE = "MenuSeparator", Nl = w.forwardRef(
10933
10934
  );
10934
10935
  }
10935
10936
  );
10936
- Nl.displayName = cE;
10937
- var lE = "MenuArrow", Pl = w.forwardRef(
10937
+ Nl.displayName = lE;
10938
+ var uE = "MenuArrow", Pl = w.forwardRef(
10938
10939
  (e, t) => {
10939
10940
  const { __scopeMenu: n, ...r } = e, o = Pn(n);
10940
- return /* @__PURE__ */ g(Zw, { ...o, ...r, ref: t });
10941
+ return /* @__PURE__ */ g(Uw, { ...o, ...r, ref: t });
10941
10942
  }
10942
10943
  );
10943
- Pl.displayName = lE;
10944
- var is = "MenuSub", [uE, Ml] = Nt(is), kl = (e) => {
10944
+ Pl.displayName = uE;
10945
+ var is = "MenuSub", [dE, Ml] = Nt(is), kl = (e) => {
10945
10946
  const { __scopeMenu: t, children: n, open: r = !1, onOpenChange: o } = e, s = wt(is, t), i = Pn(t), [a, c] = w.useState(null), [l, d] = w.useState(null), u = Je(o);
10946
10947
  return w.useEffect(() => (s.open === !1 && u(!1), () => u(!1)), [s.open, u]), /* @__PURE__ */ g(Xc, { ...i, children: /* @__PURE__ */ g(
10947
10948
  vl,
@@ -10952,7 +10953,7 @@ var is = "MenuSub", [uE, Ml] = Nt(is), kl = (e) => {
10952
10953
  content: l,
10953
10954
  onContentChange: d,
10954
10955
  children: /* @__PURE__ */ g(
10955
- uE,
10956
+ dE,
10956
10957
  {
10957
10958
  scope: t,
10958
10959
  contentId: vn(),
@@ -11027,7 +11028,7 @@ var nn = "MenuSubTrigger", Dl = w.forwardRef(
11027
11028
  ),
11028
11029
  onKeyDown: G(e.onKeyDown, (u) => {
11029
11030
  const h = s.searchRef.current !== "";
11030
- e.disabled || h && u.key === " " || V_[r.dir].includes(u.key) && (n.onOpenChange(!0), n.content?.focus(), u.preventDefault());
11031
+ e.disabled || h && u.key === " " || W_[r.dir].includes(u.key) && (n.onOpenChange(!0), n.content?.focus(), u.preventDefault());
11031
11032
  })
11032
11033
  }
11033
11034
  ) });
@@ -11060,7 +11061,7 @@ var $l = "MenuSubContent", Ll = w.forwardRef(
11060
11061
  i.onClose(), d.preventDefault();
11061
11062
  }),
11062
11063
  onKeyDown: G(e.onKeyDown, (d) => {
11063
- const u = d.currentTarget.contains(d.target), h = W_[i.dir].includes(d.key);
11064
+ const u = d.currentTarget.contains(d.target), h = G_[i.dir].includes(d.key);
11064
11065
  u && h && (s.onOpenChange(!1), a.trigger?.focus(), d.preventDefault());
11065
11066
  })
11066
11067
  }
@@ -11077,24 +11078,24 @@ function br(e) {
11077
11078
  function cs(e) {
11078
11079
  return br(e) ? "indeterminate" : e ? "checked" : "unchecked";
11079
11080
  }
11080
- function dE(e) {
11081
+ function fE(e) {
11081
11082
  const t = document.activeElement;
11082
11083
  for (const n of e)
11083
11084
  if (n === t || (n.focus(), document.activeElement !== t)) return;
11084
11085
  }
11085
- function fE(e, t) {
11086
+ function pE(e, t) {
11086
11087
  return e.map((n, r) => e[(t + r) % e.length]);
11087
11088
  }
11088
- function pE(e, t, n) {
11089
+ function mE(e, t, n) {
11089
11090
  const o = t.length > 1 && Array.from(t).every((l) => l === t[0]) ? t[0] : t, s = n ? e.indexOf(n) : -1;
11090
- let i = fE(e, Math.max(s, 0));
11091
+ let i = pE(e, Math.max(s, 0));
11091
11092
  o.length === 1 && (i = i.filter((l) => l !== n));
11092
11093
  const c = i.find(
11093
11094
  (l) => l.toLowerCase().startsWith(o.toLowerCase())
11094
11095
  );
11095
11096
  return c !== n ? c : void 0;
11096
11097
  }
11097
- function mE(e, t) {
11098
+ function hE(e, t) {
11098
11099
  const { x: n, y: r } = e;
11099
11100
  let o = !1;
11100
11101
  for (let s = 0, i = t.length - 1; s < t.length; i = s++) {
@@ -11103,18 +11104,18 @@ function mE(e, t) {
11103
11104
  }
11104
11105
  return o;
11105
11106
  }
11106
- function hE(e, t) {
11107
+ function gE(e, t) {
11107
11108
  if (!t) return !1;
11108
11109
  const n = { x: e.clientX, y: e.clientY };
11109
- return mE(n, t);
11110
+ return hE(n, t);
11110
11111
  }
11111
11112
  function bn(e) {
11112
11113
  return (t) => t.pointerType === "mouse" ? e(t) : void 0;
11113
11114
  }
11114
- var gE = yl, vE = ts, yE = wl, bE = _l, wE = ss, _E = El, EE = Mr, SE = Cl, CE = Tl, xE = Al, TE = Ol, IE = Nl, AE = Pl, RE = kl, OE = Dl, NE = Ll, kr = "DropdownMenu", [PE] = An(
11115
+ var vE = yl, yE = ts, bE = wl, wE = _l, _E = ss, EE = El, SE = Mr, CE = Cl, xE = Tl, TE = Al, IE = Ol, AE = Nl, RE = Pl, OE = kl, NE = Dl, PE = Ll, kr = "DropdownMenu", [ME] = An(
11115
11116
  kr,
11116
11117
  [hl]
11117
- ), he = hl(), [ME, Fl] = PE(kr), Zl = (e) => {
11118
+ ), he = hl(), [kE, Fl] = ME(kr), Zl = (e) => {
11118
11119
  const {
11119
11120
  __scopeDropdownMenu: t,
11120
11121
  children: n,
@@ -11130,7 +11131,7 @@ var gE = yl, vE = ts, yE = wl, bE = _l, wE = ss, _E = El, EE = Mr, SE = Cl, CE =
11130
11131
  caller: kr
11131
11132
  });
11132
11133
  return /* @__PURE__ */ g(
11133
- ME,
11134
+ kE,
11134
11135
  {
11135
11136
  scope: t,
11136
11137
  triggerId: vn(),
@@ -11140,7 +11141,7 @@ var gE = yl, vE = ts, yE = wl, bE = _l, wE = ss, _E = El, EE = Mr, SE = Cl, CE =
11140
11141
  onOpenChange: u,
11141
11142
  onOpenToggle: w.useCallback(() => u((h) => !h), [u]),
11142
11143
  modal: a,
11143
- children: /* @__PURE__ */ g(gE, { ...c, open: d, onOpenChange: u, dir: r, modal: a, children: n })
11144
+ children: /* @__PURE__ */ g(vE, { ...c, open: d, onOpenChange: u, dir: r, modal: a, children: n })
11144
11145
  }
11145
11146
  );
11146
11147
  };
@@ -11148,7 +11149,7 @@ Zl.displayName = kr;
11148
11149
  var Ul = "DropdownMenuTrigger", jl = w.forwardRef(
11149
11150
  (e, t) => {
11150
11151
  const { __scopeDropdownMenu: n, disabled: r = !1, ...o } = e, s = Fl(Ul, n), i = he(n);
11151
- return /* @__PURE__ */ g(vE, { asChild: !0, ...i, children: /* @__PURE__ */ g(
11152
+ return /* @__PURE__ */ g(yE, { asChild: !0, ...i, children: /* @__PURE__ */ g(
11152
11153
  be.button,
11153
11154
  {
11154
11155
  type: "button",
@@ -11172,16 +11173,16 @@ var Ul = "DropdownMenuTrigger", jl = w.forwardRef(
11172
11173
  }
11173
11174
  );
11174
11175
  jl.displayName = Ul;
11175
- var kE = "DropdownMenuPortal", Bl = (e) => {
11176
+ var DE = "DropdownMenuPortal", Bl = (e) => {
11176
11177
  const { __scopeDropdownMenu: t, ...n } = e, r = he(t);
11177
- return /* @__PURE__ */ g(yE, { ...r, ...n });
11178
+ return /* @__PURE__ */ g(bE, { ...r, ...n });
11178
11179
  };
11179
- Bl.displayName = kE;
11180
+ Bl.displayName = DE;
11180
11181
  var Hl = "DropdownMenuContent", Vl = w.forwardRef(
11181
11182
  (e, t) => {
11182
11183
  const { __scopeDropdownMenu: n, ...r } = e, o = Fl(Hl, n), s = he(n), i = w.useRef(!1);
11183
11184
  return /* @__PURE__ */ g(
11184
- bE,
11185
+ wE,
11185
11186
  {
11186
11187
  id: o.contentId,
11187
11188
  "aria-labelledby": o.triggerId,
@@ -11208,76 +11209,76 @@ var Hl = "DropdownMenuContent", Vl = w.forwardRef(
11208
11209
  }
11209
11210
  );
11210
11211
  Vl.displayName = Hl;
11211
- var DE = "DropdownMenuGroup", $E = w.forwardRef(
11212
+ var $E = "DropdownMenuGroup", LE = w.forwardRef(
11212
11213
  (e, t) => {
11213
11214
  const { __scopeDropdownMenu: n, ...r } = e, o = he(n);
11214
- return /* @__PURE__ */ g(wE, { ...o, ...r, ref: t });
11215
+ return /* @__PURE__ */ g(_E, { ...o, ...r, ref: t });
11215
11216
  }
11216
11217
  );
11217
- $E.displayName = DE;
11218
- var LE = "DropdownMenuLabel", Wl = w.forwardRef(
11218
+ LE.displayName = $E;
11219
+ var zE = "DropdownMenuLabel", Wl = w.forwardRef(
11219
11220
  (e, t) => {
11220
11221
  const { __scopeDropdownMenu: n, ...r } = e, o = he(n);
11221
- return /* @__PURE__ */ g(_E, { ...o, ...r, ref: t });
11222
+ return /* @__PURE__ */ g(EE, { ...o, ...r, ref: t });
11222
11223
  }
11223
11224
  );
11224
- Wl.displayName = LE;
11225
- var zE = "DropdownMenuItem", Gl = w.forwardRef(
11225
+ Wl.displayName = zE;
11226
+ var FE = "DropdownMenuItem", Gl = w.forwardRef(
11226
11227
  (e, t) => {
11227
11228
  const { __scopeDropdownMenu: n, ...r } = e, o = he(n);
11228
- return /* @__PURE__ */ g(EE, { ...o, ...r, ref: t });
11229
+ return /* @__PURE__ */ g(SE, { ...o, ...r, ref: t });
11229
11230
  }
11230
11231
  );
11231
- Gl.displayName = zE;
11232
- var FE = "DropdownMenuCheckboxItem", ZE = w.forwardRef((e, t) => {
11233
- const { __scopeDropdownMenu: n, ...r } = e, o = he(n);
11234
- return /* @__PURE__ */ g(SE, { ...o, ...r, ref: t });
11235
- });
11236
- ZE.displayName = FE;
11237
- var UE = "DropdownMenuRadioGroup", jE = w.forwardRef((e, t) => {
11232
+ Gl.displayName = FE;
11233
+ var ZE = "DropdownMenuCheckboxItem", UE = w.forwardRef((e, t) => {
11238
11234
  const { __scopeDropdownMenu: n, ...r } = e, o = he(n);
11239
11235
  return /* @__PURE__ */ g(CE, { ...o, ...r, ref: t });
11240
11236
  });
11241
- jE.displayName = UE;
11242
- var BE = "DropdownMenuRadioItem", HE = w.forwardRef((e, t) => {
11237
+ UE.displayName = ZE;
11238
+ var jE = "DropdownMenuRadioGroup", BE = w.forwardRef((e, t) => {
11243
11239
  const { __scopeDropdownMenu: n, ...r } = e, o = he(n);
11244
11240
  return /* @__PURE__ */ g(xE, { ...o, ...r, ref: t });
11245
11241
  });
11246
- HE.displayName = BE;
11247
- var VE = "DropdownMenuItemIndicator", WE = w.forwardRef((e, t) => {
11242
+ BE.displayName = jE;
11243
+ var HE = "DropdownMenuRadioItem", VE = w.forwardRef((e, t) => {
11248
11244
  const { __scopeDropdownMenu: n, ...r } = e, o = he(n);
11249
11245
  return /* @__PURE__ */ g(TE, { ...o, ...r, ref: t });
11250
11246
  });
11251
- WE.displayName = VE;
11252
- var GE = "DropdownMenuSeparator", Yl = w.forwardRef((e, t) => {
11247
+ VE.displayName = HE;
11248
+ var WE = "DropdownMenuItemIndicator", GE = w.forwardRef((e, t) => {
11253
11249
  const { __scopeDropdownMenu: n, ...r } = e, o = he(n);
11254
11250
  return /* @__PURE__ */ g(IE, { ...o, ...r, ref: t });
11255
11251
  });
11256
- Yl.displayName = GE;
11257
- var YE = "DropdownMenuArrow", JE = w.forwardRef(
11252
+ GE.displayName = WE;
11253
+ var YE = "DropdownMenuSeparator", Yl = w.forwardRef((e, t) => {
11254
+ const { __scopeDropdownMenu: n, ...r } = e, o = he(n);
11255
+ return /* @__PURE__ */ g(AE, { ...o, ...r, ref: t });
11256
+ });
11257
+ Yl.displayName = YE;
11258
+ var JE = "DropdownMenuArrow", KE = w.forwardRef(
11258
11259
  (e, t) => {
11259
11260
  const { __scopeDropdownMenu: n, ...r } = e, o = he(n);
11260
- return /* @__PURE__ */ g(AE, { ...o, ...r, ref: t });
11261
+ return /* @__PURE__ */ g(RE, { ...o, ...r, ref: t });
11261
11262
  }
11262
11263
  );
11263
- JE.displayName = YE;
11264
- var KE = (e) => {
11264
+ KE.displayName = JE;
11265
+ var XE = (e) => {
11265
11266
  const { __scopeDropdownMenu: t, children: n, open: r, onOpenChange: o, defaultOpen: s } = e, i = he(t), [a, c] = qo({
11266
11267
  prop: r,
11267
11268
  defaultProp: s ?? !1,
11268
11269
  onChange: o,
11269
11270
  caller: "DropdownMenuSub"
11270
11271
  });
11271
- return /* @__PURE__ */ g(RE, { ...i, open: a, onOpenChange: c, children: n });
11272
- }, XE = "DropdownMenuSubTrigger", Jl = w.forwardRef((e, t) => {
11272
+ return /* @__PURE__ */ g(OE, { ...i, open: a, onOpenChange: c, children: n });
11273
+ }, qE = "DropdownMenuSubTrigger", Jl = w.forwardRef((e, t) => {
11273
11274
  const { __scopeDropdownMenu: n, ...r } = e, o = he(n);
11274
- return /* @__PURE__ */ g(OE, { ...o, ...r, ref: t });
11275
+ return /* @__PURE__ */ g(NE, { ...o, ...r, ref: t });
11275
11276
  });
11276
- Jl.displayName = XE;
11277
- var qE = "DropdownMenuSubContent", Kl = w.forwardRef((e, t) => {
11277
+ Jl.displayName = qE;
11278
+ var QE = "DropdownMenuSubContent", Kl = w.forwardRef((e, t) => {
11278
11279
  const { __scopeDropdownMenu: n, ...r } = e, o = he(n);
11279
11280
  return /* @__PURE__ */ g(
11280
- NE,
11281
+ PE,
11281
11282
  {
11282
11283
  ...o,
11283
11284
  ...r,
@@ -11293,8 +11294,8 @@ var qE = "DropdownMenuSubContent", Kl = w.forwardRef((e, t) => {
11293
11294
  }
11294
11295
  );
11295
11296
  });
11296
- Kl.displayName = qE;
11297
- var QE = Zl, eS = jl, Xl = Bl, tS = Vl, nS = Wl, ja = Gl, rS = Yl, oS = KE, sS = Jl, aS = Kl;
11297
+ Kl.displayName = QE;
11298
+ var eS = Zl, tS = jl, Xl = Bl, nS = Vl, rS = Wl, ja = Gl, oS = Yl, sS = XE, aS = Jl, iS = Kl;
11298
11299
  const Ba = (e) => {
11299
11300
  if (typeof e == "string")
11300
11301
  return e;
@@ -11307,17 +11308,17 @@ const Ba = (e) => {
11307
11308
  }
11308
11309
  return "Element";
11309
11310
  };
11310
- const iS = "z-100 rounded-md bg-surface-light shadow-sm shadow-border-dark outline-hidden p-3 sm:p-2 prose prose-dark", cS = "z-[60] rounded-md bg-surface-light shadow-sm shadow-border-dark outline-hidden p-3 sm:p-2 mx-3", lS = M("flex items-center flex-row justify-between", "w-full", "m-0 first:mt-0 mt-2 sm:mt-1 px-2 py-1", "rounded-md border border-transparent", "text-left text-base select-none cursor-pointer", "outline-hidden focus:border focus:border-border-medium focus:bg-surface-lighter focus:underline", "disabled:cursor-not-allowed disabled:text-copy-medium", "data-highlighted:bg-surface-lighter data-highlighted:border-border-medium data-highlighted:underline", "data-[state=open]:bg-surface-lighter"), uS = (e) => e ? e.startsWith("top") ? "top" : e.startsWith("left") ? "left" : e.startsWith("right") ? "right" : "bottom" : "bottom", dS = (e) => !e || e.endsWith("-start") ? "start" : e.endsWith("-end") ? "end" : "center", Dr = ({ trigger: e, children: t, label: n = "Open menu", defaultPlacement: r = "bottom-start", onOpenChange: o, mode: s = "system", focusMode: i = "system", sideOffset: a = 10, modal: c = !0 }) => {
11311
+ const cS = "z-100 rounded-md bg-surface-light shadow-sm shadow-border-dark outline-hidden p-3 sm:p-2 prose prose-dark", lS = "z-[60] rounded-md bg-surface-light shadow-sm shadow-border-dark outline-hidden p-3 sm:p-2 mx-3", uS = M("flex items-center flex-row justify-between", "w-full", "m-0 first:mt-0 mt-2 sm:mt-1 px-2 py-1", "rounded-md border border-transparent", "text-left text-base select-none cursor-pointer", "outline-hidden focus:border focus:border-border-medium focus:bg-surface-lighter focus:underline", "disabled:cursor-not-allowed disabled:text-copy-medium", "data-highlighted:bg-surface-lighter data-highlighted:border-border-medium data-highlighted:underline", "data-[state=open]:bg-surface-lighter"), dS = (e) => e ? e.startsWith("top") ? "top" : e.startsWith("left") ? "left" : e.startsWith("right") ? "right" : "bottom" : "bottom", fS = (e) => !e || e.endsWith("-start") ? "start" : e.endsWith("-end") ? "end" : "center", Dr = ({ trigger: e, children: t, label: n = "Open menu", defaultPlacement: r = "bottom-start", onOpenChange: o, mode: s = "system", focusMode: i = "system", sideOffset: a = 10, modal: c = !0 }) => {
11311
11312
  const [l, d] = B(!1), [u, h] = B(void 0), m = Ba(e) === "Button" || Ba(e) === "ButtonIcon", p = m ? {
11312
11313
  noInternalClick: m,
11313
11314
  focusMode: i,
11314
11315
  mode: s
11315
- } : {}, f = V(null), v = e ? /* @__PURE__ */ ri(e, {
11316
+ } : {}, f = V(null), v = e ? /* @__PURE__ */ ai(e, {
11316
11317
  ...p,
11317
11318
  "aria-label": n,
11318
11319
  ref: f
11319
11320
  }) : null;
11320
- return /* @__PURE__ */ F(QE, {
11321
+ return /* @__PURE__ */ F(eS, {
11321
11322
  onOpenChange: (_) => {
11322
11323
  if (d(_), o?.(_), _ && f.current) {
11323
11324
  const y = f.current.closest("dialog");
@@ -11332,18 +11333,18 @@ const iS = "z-100 rounded-md bg-surface-light shadow-sm shadow-border-dark outli
11332
11333
  },
11333
11334
  modal: c,
11334
11335
  children: [
11335
- /* @__PURE__ */ g(eS, {
11336
+ /* @__PURE__ */ g(tS, {
11336
11337
  asChild: !0,
11337
11338
  "data-state": l ? "open" : "closed",
11338
11339
  children: v
11339
11340
  }),
11340
11341
  /* @__PURE__ */ g(Xl, {
11341
11342
  container: u,
11342
- children: /* @__PURE__ */ g(tS, {
11343
- className: iS,
11343
+ children: /* @__PURE__ */ g(nS, {
11344
+ className: cS,
11344
11345
  sideOffset: a,
11345
- side: uS(r),
11346
- align: dS(r),
11346
+ side: dS(r),
11347
+ align: fS(r),
11347
11348
  loop: !0,
11348
11349
  children: t
11349
11350
  })
@@ -11352,10 +11353,10 @@ const iS = "z-100 rounded-md bg-surface-light shadow-sm shadow-border-dark outli
11352
11353
  });
11353
11354
  };
11354
11355
  Dr.displayName = "DropdownMenu";
11355
- const ql = ({ label: e, icon: t, children: n, disabled: r = !1, sideOffset: o = 2, alignOffset: s = -4 }) => /* @__PURE__ */ F(oS, {
11356
+ const ql = ({ label: e, icon: t, children: n, disabled: r = !1, sideOffset: o = 2, alignOffset: s = -4 }) => /* @__PURE__ */ F(sS, {
11356
11357
  children: [
11357
- /* @__PURE__ */ F(sS, {
11358
- className: lS,
11358
+ /* @__PURE__ */ F(aS, {
11359
+ className: uS,
11359
11360
  disabled: r,
11360
11361
  children: [
11361
11362
  /* @__PURE__ */ F("span", {
@@ -11376,8 +11377,8 @@ const ql = ({ label: e, icon: t, children: n, disabled: r = !1, sideOffset: o =
11376
11377
  ]
11377
11378
  }),
11378
11379
  /* @__PURE__ */ g(Xl, {
11379
- children: /* @__PURE__ */ g(aS, {
11380
- className: cS,
11380
+ children: /* @__PURE__ */ g(iS, {
11381
+ className: lS,
11381
11382
  sideOffset: o,
11382
11383
  alignOffset: s,
11383
11384
  loop: !0,
@@ -11389,7 +11390,7 @@ const ql = ({ label: e, icon: t, children: n, disabled: r = !1, sideOffset: o =
11389
11390
  ql.displayName = "DropdownMenuSub";
11390
11391
  const Ql = ({ className: e, ...t }) => {
11391
11392
  const n = M(e, "my-1 border-t border-border-medium");
11392
- return /* @__PURE__ */ g(rS, {
11393
+ return /* @__PURE__ */ g(oS, {
11393
11394
  className: n,
11394
11395
  ...t
11395
11396
  });
@@ -11397,7 +11398,7 @@ const Ql = ({ className: e, ...t }) => {
11397
11398
  Ql.displayName = "DropdownMenuSeparator";
11398
11399
  const wr = ({ className: e, icon: t, children: n, ...r }) => {
11399
11400
  const o = M(e, "pt-1 pb-2 mb-2", "text-sm text-copy-dark font-bold", "border-b border-border-medium", t && "flex items-center");
11400
- return /* @__PURE__ */ F(nS, {
11401
+ return /* @__PURE__ */ F(rS, {
11401
11402
  className: o,
11402
11403
  ...r,
11403
11404
  children: [
@@ -11410,7 +11411,7 @@ const wr = ({ className: e, icon: t, children: n, ...r }) => {
11410
11411
  });
11411
11412
  };
11412
11413
  wr.displayName = "DropdownMenuGroupLabel";
11413
- const fS = M("flex flex-row items-center", "w-full", "m-0 first:mt-0 mt-2 sm:mt-1 px-2 py-1", "rounded-md border border-transparent", "text-left text-base select-none cursor-pointer", "outline-hidden focus:border focus:border-border-medium focus:bg-surface-lighter focus:underline", "disabled:cursor-not-allowed disabled:text-copy-medium", "data-highlighted:bg-surface-lighter data-highlighted:border-border-medium data-highlighted:underline", "data-disabled:cursor-not-allowed data-disabled:text-copy-medium"), Me = ({ label: e, disabled: t, icon: n, raw: r = !1, children: o, ignoreClick: s = !1, selected: i, onSelect: a, onClick: c, onFocus: l, ...d }) => {
11414
+ const pS = M("flex flex-row items-center", "w-full", "m-0 first:mt-0 mt-2 sm:mt-1 px-2 py-1", "rounded-md border border-transparent", "text-left text-base select-none cursor-pointer", "outline-hidden focus:border focus:border-border-medium focus:bg-surface-lighter focus:underline", "disabled:cursor-not-allowed disabled:text-copy-medium", "data-highlighted:bg-surface-lighter data-highlighted:border-border-medium data-highlighted:underline", "data-disabled:cursor-not-allowed data-disabled:text-copy-medium"), Me = ({ label: e, disabled: t, icon: n, raw: r = !1, children: o, ignoreClick: s = !1, selected: i, onSelect: a, onClick: c, onFocus: l, ...d }) => {
11414
11415
  let u = "";
11415
11416
  if (r && o)
11416
11417
  return /* @__PURE__ */ g(ja, {
@@ -11422,7 +11423,7 @@ const fS = M("flex flex-row items-center", "w-full", "m-0 first:mt-0 mt-2 sm:mt-
11422
11423
  children: o
11423
11424
  });
11424
11425
  n && (u = "pl-2");
11425
- const h = M(fS, {
11426
+ const h = M(pS, {
11426
11427
  "bg-none": !t && !i
11427
11428
  });
11428
11429
  return /* @__PURE__ */ F(ja, {
@@ -11451,12 +11452,12 @@ const fS = M("flex flex-row items-center", "w-full", "m-0 first:mt-0 mt-2 sm:mt-
11451
11452
  });
11452
11453
  };
11453
11454
  Me.displayName = "DropdownMenuItem";
11454
- const pS = (e) => {
11455
+ const mS = (e) => {
11455
11456
  for (let t = 0; t < e.length; t++)
11456
11457
  if (e[t].enabled)
11457
11458
  return !0;
11458
11459
  return !1;
11459
- }, mS = ({
11460
+ }, hS = ({
11460
11461
  className: e,
11461
11462
  defaultPlacement: t = "top-start"
11462
11463
  }) => {
@@ -11475,7 +11476,7 @@ const pS = (e) => {
11475
11476
  prompt: f
11476
11477
  }
11477
11478
  });
11478
- }, m = u && d && d.tags && pS(d.tags), p = /* @__PURE__ */ F(
11479
+ }, m = u && d && d.tags && mS(d.tags), p = /* @__PURE__ */ F(
11479
11480
  Dr,
11480
11481
  {
11481
11482
  mode: "light",
@@ -11538,7 +11539,7 @@ const pS = (e) => {
11538
11539
  trigger: p
11539
11540
  }
11540
11541
  ) : /* @__PURE__ */ g("div", { className: e, children: p });
11541
- }, hS = ({
11542
+ }, gS = ({
11542
11543
  className: e
11543
11544
  }) => {
11544
11545
  const {
@@ -11627,7 +11628,7 @@ const pS = (e) => {
11627
11628
  }
11628
11629
  )
11629
11630
  ] });
11630
- }, gS = ({
11631
+ }, vS = ({
11631
11632
  className: e
11632
11633
  }) => {
11633
11634
  const { getAccessToken: t, user: n } = $e(), {
@@ -11655,7 +11656,7 @@ const pS = (e) => {
11655
11656
  }
11656
11657
  );
11657
11658
  };
11658
- function vS(e) {
11659
+ function yS(e) {
11659
11660
  const [t, n] = B(
11660
11661
  () => Ha()
11661
11662
  );
@@ -11665,13 +11666,13 @@ function vS(e) {
11665
11666
  n((s) => s !== o ? o : s);
11666
11667
  }, 3e3);
11667
11668
  return () => clearInterval(r);
11668
- }, []), e ? si : t;
11669
+ }, []), e ? ni : t;
11669
11670
  }
11670
11671
  function Ha() {
11671
11672
  const e = (/* @__PURE__ */ new Date()).getHours();
11672
11673
  return e >= 5 && e < 11 ? nd : e >= 11 && e < 12 ? rd : e >= 12 && e < 17 ? od : e >= 17 && e < 21 ? sd : e >= 21 && e < 24 ? ad : id;
11673
11674
  }
11674
- const yS = [".png", ".jpg", ".jpeg", ".webp"], bS = [".pdf", ".txt"], wS = [
11675
+ const bS = [".png", ".jpg", ".jpeg", ".webp"], wS = [".pdf", ".txt"], _S = [
11675
11676
  ".js",
11676
11677
  ".cjs",
11677
11678
  ".mjs",
@@ -11686,28 +11687,28 @@ const yS = [".png", ".jpg", ".jpeg", ".webp"], bS = [".pdf", ".txt"], wS = [
11686
11687
  ".json",
11687
11688
  ".md"
11688
11689
  ], Ct = [
11689
- ...bS,
11690
11690
  ...wS,
11691
- ...yS
11692
- ], ko = 400 * 1024, _S = "text/plain", or = (e) => {
11691
+ ..._S,
11692
+ ...bS
11693
+ ], ko = 400 * 1024, ES = "text/plain", or = (e) => {
11693
11694
  if (e === 0)
11694
11695
  return "0 Bytes";
11695
11696
  const t = 1024, n = ["Bytes", "KB", "MB", "GB"], r = Math.floor(Math.log(e) / Math.log(t));
11696
11697
  return parseFloat((e / Math.pow(t, r)).toFixed(2)) + " " + n[r];
11697
- }, eu = (e) => e.reduce((t, n) => t + n.size, 0), ES = (e) => e.type ? e : new File(
11698
+ }, eu = (e) => e.reduce((t, n) => t + n.size, 0), SS = (e) => e.type ? e : new File(
11698
11699
  [e],
11699
11700
  // Use the original file content
11700
11701
  e.name,
11701
11702
  {
11702
- type: _S,
11703
+ type: ES,
11703
11704
  lastModified: e.lastModified
11704
11705
  }
11705
- ), SS = () => lt(
11706
+ ), CS = () => lt(
11706
11707
  "relative rounded-md text-base h-auto min-w-28 overflow-hidden pt-2"
11707
- ), CS = ({ oledMode: e }) => lt({
11708
+ ), xS = ({ oledMode: e }) => lt({
11708
11709
  "bg-surface-darker/95 dark:bg-surface-darker": e,
11709
11710
  "bg-surface-darker": !e
11710
- }), xS = () => lt("text-copy-lighter caret-copy-light"), TS = ({ oledMode: e }) => lt(
11711
+ }), TS = () => lt("text-copy-lighter caret-copy-light"), IS = ({ oledMode: e }) => lt(
11711
11712
  "has-[.av-prompt-editable:focus]:outline",
11712
11713
  "has-[.av-prompt-editable:focus]:outline-2",
11713
11714
  "has-[.av-prompt-editable:focus]:outline-offset-2",
@@ -11715,7 +11716,7 @@ const yS = [".png", ".jpg", ".jpeg", ".webp"], bS = [".pdf", ".txt"], wS = [
11715
11716
  "has-[.av-prompt-editable:focus]:outline-focus-light": !e,
11716
11717
  "dark:has-[.av-prompt-editable:focus]:outline-focus-light has-[.av-prompt-editable:focus]:outline-focus-dark": e
11717
11718
  }
11718
- ), IS = (e) => lt(
11719
+ ), AS = (e) => lt(
11719
11720
  "peer",
11720
11721
  "text-base resize-none overflow-hidden w-full text-inherit outline-none",
11721
11722
  "h-6 pr-2 pl-3",
@@ -11723,22 +11724,22 @@ const yS = [".png", ".jpg", ".jpeg", ".webp"], bS = [".pdf", ".txt"], wS = [
11723
11724
  "sm:placeholder:text-sm",
11724
11725
  "transition-all duration-300 ease-out",
11725
11726
  e
11726
- ), AS = ({
11727
+ ), RS = ({
11727
11728
  oledMode: e,
11728
11729
  placeholderColor: t
11729
11730
  }) => ({
11730
11731
  wrapper: lt(
11731
11732
  yu,
11732
- CS({ oledMode: e }),
11733
- SS(),
11734
- xS(),
11735
- TS({ oledMode: e })
11733
+ xS({ oledMode: e }),
11734
+ CS(),
11735
+ TS(),
11736
+ IS({ oledMode: e })
11736
11737
  ),
11737
11738
  textArea: lt(
11738
11739
  vu,
11739
- IS(t)
11740
+ AS(t)
11740
11741
  )
11741
- }), RS = ({
11742
+ }), OS = ({
11742
11743
  files: e,
11743
11744
  clearFile: t
11744
11745
  }) => e && e.length > 0 && /* @__PURE__ */ F("div", { className: "px-4 py-2", children: [
@@ -11777,7 +11778,7 @@ const yS = [".png", ".jpg", ".jpeg", ".webp"], bS = [".pdf", ".txt"], wS = [
11777
11778
  " ",
11778
11779
  or(ko)
11779
11780
  ] })
11780
- ] }), ls = 1200, tu = 200 * 1024, OS = 0.85, Va = 0.5, NS = 0.1, PS = ["image/jpeg", "image/webp"], MS = ["image/png", "image/jpeg", "image/webp"], nu = (e) => MS.includes(e.type), kS = (e, t, n = ls) => {
11781
+ ] }), ls = 1200, tu = 200 * 1024, NS = 0.85, Va = 0.5, PS = 0.1, MS = ["image/jpeg", "image/webp"], kS = ["image/png", "image/jpeg", "image/webp"], nu = (e) => kS.includes(e.type), DS = (e, t, n = ls) => {
11781
11782
  if (e <= n && t <= n)
11782
11783
  return { width: e, height: t };
11783
11784
  const r = e / t;
@@ -11788,14 +11789,14 @@ const yS = [".png", ".jpg", ".jpeg", ".webp"], bS = [".pdf", ".txt"], wS = [
11788
11789
  width: Math.round(n * r),
11789
11790
  height: n
11790
11791
  };
11791
- }, DS = (e) => new Promise((t, n) => {
11792
+ }, $S = (e) => new Promise((t, n) => {
11792
11793
  const r = new Image(), o = URL.createObjectURL(e);
11793
11794
  r.onload = () => {
11794
11795
  URL.revokeObjectURL(o), t(r);
11795
11796
  }, r.onerror = () => {
11796
11797
  URL.revokeObjectURL(o), n(new Error(`Failed to load image: ${e.name}`));
11797
11798
  }, r.src = o;
11798
- }), $S = (e, t, n) => new Promise((r, o) => {
11799
+ }), LS = (e, t, n) => new Promise((r, o) => {
11799
11800
  e.toBlob(
11800
11801
  (s) => {
11801
11802
  s ? r(s) : o(new Error("Failed to convert canvas to blob"));
@@ -11803,11 +11804,11 @@ const yS = [".png", ".jpg", ".jpeg", ".webp"], bS = [".pdf", ".txt"], wS = [
11803
11804
  t,
11804
11805
  n
11805
11806
  );
11806
- }), LS = (e) => e === "image/png" ? "image/jpeg" : e, zS = async (e, t = tu, n = ls) => {
11807
+ }), zS = (e) => e === "image/png" ? "image/jpeg" : e, FS = async (e, t = tu, n = ls) => {
11807
11808
  if (!nu(e) || e.size <= t)
11808
11809
  return e;
11809
11810
  try {
11810
- const r = await DS(e), { width: o, height: s } = kS(
11811
+ const r = await $S(e), { width: o, height: s } = DS(
11811
11812
  r.naturalWidth,
11812
11813
  r.naturalHeight,
11813
11814
  n
@@ -11817,16 +11818,16 @@ const yS = [".png", ".jpg", ".jpeg", ".webp"], bS = [".pdf", ".txt"], wS = [
11817
11818
  if (!a)
11818
11819
  return e;
11819
11820
  a.fillStyle = "#FFFFFF", a.fillRect(0, 0, o, s), a.drawImage(r, 0, 0, o, s);
11820
- const c = LS(e.type), l = PS.includes(c);
11821
- let d = OS, u;
11821
+ const c = zS(e.type), l = MS.includes(c);
11822
+ let d = NS, u;
11822
11823
  do {
11823
- if (u = await $S(
11824
+ if (u = await LS(
11824
11825
  i,
11825
11826
  c,
11826
11827
  l ? d : 1
11827
11828
  ), u.size <= t || d <= Va)
11828
11829
  break;
11829
- d -= NS;
11830
+ d -= PS;
11830
11831
  } while (d >= Va);
11831
11832
  if (u.size >= e.size)
11832
11833
  return e;
@@ -11842,14 +11843,14 @@ const yS = [".png", ".jpg", ".jpeg", ".webp"], bS = [".pdf", ".txt"], wS = [
11842
11843
  } catch (r) {
11843
11844
  return console.warn("Image compression failed, using original file:", r), e;
11844
11845
  }
11845
- }, FS = async (e, t = tu, n = ls) => await Promise.all(
11846
- e.map((o) => nu(o) ? zS(o, t, n) : Promise.resolve(o))
11847
- ), ru = 24, ZS = 500, ou = 1, US = 5, jS = ru * ou, Wa = US * ru, BS = "ready", HS = "streaming", VS = "error", WS = "submitted", Yn = (e) => {
11848
- e.current && (e.current.style.height = `${jS}px`);
11849
- }, GS = () => {
11846
+ }, ZS = async (e, t = tu, n = ls) => await Promise.all(
11847
+ e.map((o) => nu(o) ? FS(o, t, n) : Promise.resolve(o))
11848
+ ), ru = 24, US = 500, ou = 1, jS = 5, BS = ru * ou, Wa = jS * ru, HS = "ready", VS = "streaming", WS = "error", GS = "submitted", Yn = (e) => {
11849
+ e.current && (e.current.style.height = `${BS}px`);
11850
+ }, YS = () => {
11850
11851
  const { user: e, getAccessToken: t } = $e(), n = hr(ir.ADDON.ATTACHMENTS), r = hr(ir.ADDON.REASONING), { allowedModels: o } = Do(), [s, i] = B(null), [a, c] = B(!1), [l, d] = B(!1), {
11851
11852
  state: { oledMode: u }
11852
- } = de(_n), {
11853
+ } = de(wn), {
11853
11854
  dispatch: h,
11854
11855
  state: {
11855
11856
  reasoningText: m,
@@ -11863,7 +11864,7 @@ const yS = [".png", ".jpg", ".jpeg", ".webp"], bS = [".pdf", ".txt"], wS = [
11863
11864
  } = de(Le), { state: E, dispatch: S } = de($o), { data: T } = vt({
11864
11865
  user: e?.username,
11865
11866
  getAccessToken: t
11866
- }), x = V(null), I = V(null), k = V(!1), D = V(0), j = V(0), O = V(null), R = V(null), z = ld(), [Q, H] = Ke(), q = AS({
11867
+ }), x = V(null), I = V(null), k = V(!1), D = V(0), j = V(0), O = V(null), R = V(null), z = ld(), [Q, H] = Ke(), q = RS({
11867
11868
  oledMode: u,
11868
11869
  placeholderColor: Q(H.Placeholder)
11869
11870
  }), $ = r && T?.showReasoningButton, { setMessages: N, status: ie, id: Te, sendMessage: ze, input: me, setInput: Ee, messages: Pt } = bt({
@@ -11876,7 +11877,7 @@ const yS = [".png", ".jpg", ".jpeg", ".webp"], bS = [".pdf", ".txt"], wS = [
11876
11877
  }
11877
11878
  });
11878
11879
  }
11879
- }), qe = vS(!!Pt.length), ce = J(
11880
+ }), qe = yS(!!Pt.length), ce = J(
11880
11881
  (Y) => {
11881
11882
  Ee(Y.target.value);
11882
11883
  },
@@ -11916,25 +11917,25 @@ const yS = [".png", ".jpg", ".jpeg", ".webp"], bS = [".pdf", ".txt"], wS = [
11916
11917
  ]
11917
11918
  ), kn = J(
11918
11919
  async (Y) => {
11919
- Y === BS && h({
11920
+ Y === HS && h({
11920
11921
  type: It,
11921
11922
  payload: {
11922
11923
  loading: !1,
11923
11924
  streaming: !1
11924
11925
  }
11925
- }), Y === WS && h({
11926
+ }), Y === GS && h({
11926
11927
  type: It,
11927
11928
  payload: {
11928
11929
  loading: !0,
11929
11930
  streaming: !1
11930
11931
  }
11931
- }), Y === HS && h({
11932
+ }), Y === VS && h({
11932
11933
  type: It,
11933
11934
  payload: {
11934
11935
  loading: !1,
11935
11936
  streaming: !0
11936
11937
  }
11937
- }), Y === VS && setTimeout(() => {
11938
+ }), Y === WS && setTimeout(() => {
11938
11939
  f || (h({
11939
11940
  type: It,
11940
11941
  payload: {
@@ -11983,7 +11984,7 @@ const yS = [".png", ".jpg", ".jpeg", ".webp"], bS = [".pdf", ".txt"], wS = [
11983
11984
  x.current = `Only ${Oe} files are allowed.`, c(!0);
11984
11985
  return;
11985
11986
  }
11986
- const St = await FS(kt);
11987
+ const St = await ZS(kt);
11987
11988
  if (eu(St) > ko) {
11988
11989
  x.current = `Total file size exceeds the limit of ${or(
11989
11990
  ko
@@ -12022,7 +12023,7 @@ const yS = [".png", ".jpg", ".jpeg", ".webp"], bS = [".pdf", ".txt"], wS = [
12022
12023
  let ue;
12023
12024
  if (s && s.length > 0) {
12024
12025
  const kt = Array.from(s).map(
12025
- (St) => ES(St)
12026
+ (St) => SS(St)
12026
12027
  ), Et = new DataTransfer();
12027
12028
  kt.forEach((St) => Et.items.add(St)), ue = Et.files;
12028
12029
  }
@@ -12067,7 +12068,7 @@ const yS = [".png", ".jpg", ".jpeg", ".webp"], bS = [".pdf", ".txt"], wS = [
12067
12068
  const Y = Date.now() - j.current < 600;
12068
12069
  !me && !Y && Yn(R), R.current.focus();
12069
12070
  }
12070
- }, ZS)) : p === !1 && !me && (Yn(R), !We() && R.current && R.current.focus());
12071
+ }, US)) : p === !1 && !me && (Yn(R), !We() && R.current && R.current.focus());
12071
12072
  }, [v, p, me]), U(() => {
12072
12073
  Date.now() - j.current < 200 && me && requestAnimationFrame(() => {
12073
12074
  Kt();
@@ -12092,7 +12093,7 @@ const yS = [".png", ".jpg", ".jpeg", ".webp"], bS = [".pdf", ".txt"], wS = [
12092
12093
  }
12093
12094
  ),
12094
12095
  /* @__PURE__ */ g("div", { className: q.wrapper, ref: O, children: /* @__PURE__ */ F("form", { onSubmit: us, children: [
12095
- /* @__PURE__ */ g("div", { id: z, className: "sr-only", children: si }),
12096
+ /* @__PURE__ */ g("div", { id: z, className: "sr-only", children: ni }),
12096
12097
  /* @__PURE__ */ F("div", { className: "relative pb-3 sm:pb-0", children: [
12097
12098
  /* @__PURE__ */ g(
12098
12099
  "textarea",
@@ -12104,7 +12105,7 @@ const yS = [".png", ".jpg", ".jpeg", ".webp"], bS = [".pdf", ".txt"], wS = [
12104
12105
  translate: "no",
12105
12106
  onChange: uu,
12106
12107
  value: me,
12107
- onKeyDown: sy([
12108
+ onKeyDown: ay([
12108
12109
  [l ? "enter" : "mod+Enter", us]
12109
12110
  ]),
12110
12111
  className: q.textArea,
@@ -12124,11 +12125,11 @@ const yS = [".png", ".jpg", ".jpeg", ".webp"], bS = [".pdf", ".txt"], wS = [
12124
12125
  }
12125
12126
  )
12126
12127
  ] }),
12127
- /* @__PURE__ */ g(RS, { files: s, clearFile: Mt }),
12128
+ /* @__PURE__ */ g(OS, { files: s, clearFile: Mt }),
12128
12129
  /* @__PURE__ */ F("div", { className: "p-2 flex items-center", children: [
12129
- /* @__PURE__ */ g(gS, { className: "order-7 ml-auto" }),
12130
+ /* @__PURE__ */ g(vS, { className: "order-7 ml-auto" }),
12130
12131
  /* @__PURE__ */ g(
12131
- hb,
12132
+ gb,
12132
12133
  {
12133
12134
  className: M("order-1 sm:mr-2", {
12134
12135
  "mr-3": $,
@@ -12137,7 +12138,7 @@ const yS = [".png", ".jpg", ".jpeg", ".webp"], bS = [".pdf", ".txt"], wS = [
12137
12138
  }
12138
12139
  ),
12139
12140
  /* @__PURE__ */ g(
12140
- mS,
12141
+ hS,
12141
12142
  {
12142
12143
  className: M("order-2 sm:mr-2", {
12143
12144
  "mr-3": $,
@@ -12146,7 +12147,7 @@ const yS = [".png", ".jpg", ".jpeg", ".webp"], bS = [".pdf", ".txt"], wS = [
12146
12147
  }
12147
12148
  ),
12148
12149
  n && /* @__PURE__ */ g(
12149
- mb,
12150
+ hb,
12150
12151
  {
12151
12152
  className: M("order-3 sm:mr-2", {
12152
12153
  "mr-3": $,
@@ -12155,9 +12156,9 @@ const yS = [".png", ".jpg", ".jpeg", ".webp"], bS = [".pdf", ".txt"], wS = [
12155
12156
  onClick: Lr
12156
12157
  }
12157
12158
  ),
12158
- $ && /* @__PURE__ */ g(hS, { className: M("order-4 mr-3 sm:mr-2") }),
12159
+ $ && /* @__PURE__ */ g(gS, { className: M("order-4 mr-3 sm:mr-2") }),
12159
12160
  /* @__PURE__ */ g(
12160
- jb,
12161
+ Bb,
12161
12162
  {
12162
12163
  className: M("order-5 mr-3 sm:mr-2", {
12163
12164
  "mr-3": $,
@@ -12168,15 +12169,15 @@ const yS = [".png", ".jpg", ".jpeg", ".webp"], bS = [".pdf", ".txt"], wS = [
12168
12169
  ] })
12169
12170
  ] }) })
12170
12171
  ] });
12171
- }, Jn = "--sassy-bottom", YS = ({ isComponent: e }) => {
12172
+ }, Jn = "--sassy-bottom", JS = ({ isComponent: e }) => {
12172
12173
  const {
12173
12174
  state: { loading: t, streaming: n, restoring: r }
12174
12175
  } = de(Le), {
12175
12176
  state: { footerHeight: o, footerPosition: s, fullScreen: i },
12176
12177
  dispatch: a
12177
- } = de(_n), [c] = B(
12178
+ } = de(wn), [c] = B(
12178
12179
  () => gs[Math.floor(Math.random() * gs.length)]
12179
- ), l = Ae(() => We(), []), d = Ae(() => Gd(), []), { messages: u } = bt(), [h, m] = ai(), [p, f] = Ke(), v = ny(d), { height: b } = qv(), { height: _ } = Qv(), y = d ? 0 : b - _, E = Ae(() => {
12180
+ ), l = Ae(() => We(), []), d = Ae(() => Gd(), []), { messages: u } = bt(), [h, m] = ri(), [p, f] = Ke(), v = ry(d), { height: b } = Qv(), { height: _ } = ey(), y = d ? 0 : b - _, E = Ae(() => {
12180
12181
  const S = l ? _u : d ? Eu : Qa;
12181
12182
  return l ? y > 70 && y < 500 ? Zr / 2 : S : d ? v ? Zr : S : y > 0 && y < 100 ? Zr : S;
12182
12183
  }, [y, l, d, v]);
@@ -12187,11 +12188,11 @@ const yS = [".png", ".jpg", ".jpeg", ".webp"], bS = [".pdf", ".txt"], wS = [
12187
12188
  footerHeight: m.height
12188
12189
  }
12189
12190
  });
12190
- }, [m.height, o, a]), wn(() => {
12191
+ }, [m.height, o, a]), _n(() => {
12191
12192
  if (!h || !h.current)
12192
12193
  return;
12193
12194
  const S = h?.current?.style.getPropertyValue(Jn);
12194
- if (s === ho && (t && !n || r) && S !== `${E}px` && (h.current.style.setProperty(
12195
+ if (s === mo && (t && !n || r) && S !== `${E}px` && (h.current.style.setProperty(
12195
12196
  Jn,
12196
12197
  `${E}px`
12197
12198
  ), a({
@@ -12217,7 +12218,7 @@ const yS = [".png", ".jpg", ".jpeg", ".webp"], bS = [".pdf", ".txt"], wS = [
12217
12218
  ), a({
12218
12219
  type: jr,
12219
12220
  payload: {
12220
- footerPosition: ho,
12221
+ footerPosition: mo,
12221
12222
  footerOffset: Number(T)
12222
12223
  }
12223
12224
  }));
@@ -12241,13 +12242,13 @@ const yS = [".png", ".jpg", ".jpeg", ".webp"], bS = [".pdf", ".txt"], wS = [
12241
12242
  className: M(
12242
12243
  "border-transparent mt-5",
12243
12244
  "bottom-(--sassy-bottom)",
12244
- ey,
12245
+ ty,
12245
12246
  {
12246
12247
  "transition-all duration-300 ease-in-out": d
12247
12248
  }
12248
12249
  ),
12249
12250
  children: /* @__PURE__ */ F("div", { className: fo({ fullScreen: i }), children: [
12250
- /* @__PURE__ */ g(GS, {}),
12251
+ /* @__PURE__ */ g(YS, {}),
12251
12252
  /* @__PURE__ */ g(
12252
12253
  "div",
12253
12254
  {
@@ -12277,14 +12278,14 @@ const yS = [".png", ".jpg", ".jpeg", ".webp"], bS = [".pdf", ".txt"], wS = [
12277
12278
  label: "Google Gemini",
12278
12279
  icon: pd
12279
12280
  }
12280
- ], JS = ({ className: e }) => {
12281
+ ], KS = ({ className: e }) => {
12281
12282
  const {
12282
12283
  dispatch: t,
12283
12284
  state: { privateChat: n },
12284
12285
  setChatId: r,
12285
12286
  setInitialMessages: o
12286
12287
  } = de(Le), { getAccessToken: s, user: i } = $e(), { status: a } = bt(), { allowedModels: c, status: l } = Do(), [d, u] = Ke(), [h, m] = B(!1), p = J(() => {
12287
- h || (gb(), m(!0));
12288
+ h || (vb(), m(!0));
12288
12289
  }, [h]), {
12289
12290
  isSuccess: f,
12290
12291
  refetch: v,
@@ -12437,78 +12438,78 @@ const yS = [".png", ".jpg", ".jpeg", ".webp"], bS = [".pdf", ".txt"], wS = [
12437
12438
  }
12438
12439
  )
12439
12440
  ] }) : /* @__PURE__ */ g("div", { className: e, children: D });
12440
- }, KS = yt(
12441
+ }, XS = yt(
12441
12442
  () => import(
12442
12443
  /* webpackChunkName: "modal-chunk" */
12443
- "./ProfileEntry.C0WTyHem.js"
12444
+ "./ProfileEntry.CbUS7vRG.js"
12444
12445
  ).then((e) => ({
12445
12446
  default: e.Profile
12446
12447
  }))
12447
- ), XS = yt(
12448
+ ), qS = yt(
12448
12449
  () => import(
12449
12450
  /* webpackChunkName: "modal-chunk" */
12450
- "./SettingsEntry.B1WFVdjg.js"
12451
+ "./SettingsEntry.LEugTL8A.js"
12451
12452
  ).then((e) => ({
12452
12453
  default: e.SettingsPanel
12453
12454
  }))
12454
- ), qS = yt(
12455
+ ), QS = yt(
12455
12456
  () => import(
12456
12457
  /* webpackChunkName: "modal-chunk" */
12457
- "./HistoryEntry.Bhv62llk.js"
12458
+ "./HistoryEntry.fta5Qy7u.js"
12458
12459
  ).then((e) => ({
12459
12460
  default: e.HistoryPanel
12460
12461
  }))
12461
- ), QS = yt(
12462
+ ), e0 = yt(
12462
12463
  () => import(
12463
12464
  /* webpackChunkName: "modal-chunk" */
12464
- "./AboutEntry.DxWZPlbg.js"
12465
+ "./AboutEntry.HowTPv8P.js"
12465
12466
  ).then((e) => ({ default: e.About }))
12466
- ), e0 = yt(
12467
+ ), t0 = yt(
12467
12468
  () => import(
12468
12469
  /* webpackChunkName: "modal-chunk" */
12469
- "./UsageEntry.CPOickJC.js"
12470
+ "./UsageEntry.DMIbfTUl.js"
12470
12471
  ).then((e) => ({ default: e.Usage }))
12471
- ), t0 = yt(
12472
+ ), n0 = yt(
12472
12473
  () => import(
12473
12474
  /* webpackChunkName: "modal-chunk" */
12474
- "./MemoriesEntry.C40K6l5F.js"
12475
+ "./MemoriesEntry.z0U8T17Y.js"
12475
12476
  ).then((e) => ({ default: e.default }))
12476
- ), n0 = ({
12477
+ ), r0 = ({
12477
12478
  open: e,
12478
12479
  onOpenChange: t
12479
12480
  }) => {
12480
12481
  const { user: n } = $e();
12481
12482
  return /* @__PURE__ */ g(
12482
- t0,
12483
+ n0,
12483
12484
  {
12484
12485
  open: e,
12485
12486
  onOpenChange: t,
12486
12487
  user: n?.username
12487
12488
  }
12488
12489
  );
12489
- }, r0 = ({ type: e, open: t, onOpenChange: n }) => t ? /* @__PURE__ */ g(mo, { fallback: /* @__PURE__ */ g("div", {}), children: (() => {
12490
+ }, o0 = ({ type: e, open: t, onOpenChange: n }) => t ? /* @__PURE__ */ g(ho, { fallback: /* @__PURE__ */ g("div", {}), children: (() => {
12490
12491
  switch (e) {
12491
12492
  case "profile":
12492
- return /* @__PURE__ */ g(KS, { open: t, onOpenChange: n });
12493
- case "settings":
12494
12493
  return /* @__PURE__ */ g(XS, { open: t, onOpenChange: n });
12495
- case "history":
12494
+ case "settings":
12496
12495
  return /* @__PURE__ */ g(qS, { open: t, onOpenChange: n });
12497
- case "about":
12496
+ case "history":
12498
12497
  return /* @__PURE__ */ g(QS, { open: t, onOpenChange: n });
12499
- case "usage":
12498
+ case "about":
12500
12499
  return /* @__PURE__ */ g(e0, { open: t, onOpenChange: n });
12500
+ case "usage":
12501
+ return /* @__PURE__ */ g(t0, { open: t, onOpenChange: n });
12501
12502
  case "memories":
12502
- return /* @__PURE__ */ g(n0, { open: t, onOpenChange: n });
12503
+ return /* @__PURE__ */ g(r0, { open: t, onOpenChange: n });
12503
12504
  default:
12504
12505
  return null;
12505
12506
  }
12506
- })() }) : null, o0 = ({
12507
+ })() }) : null, s0 = ({
12507
12508
  isComponent: e = !1
12508
12509
  }) => {
12509
12510
  const {
12510
12511
  state: { oledMode: t }
12511
- } = de(_n), { logout: n, getAccessToken: r, user: o } = $e(), s = Au(), [i, a] = Ke(), { data: c, isSuccess: l } = vt({
12512
+ } = de(wn), { logout: n, getAccessToken: r, user: o } = $e(), s = Au(), [i, a] = Ke(), { data: c, isSuccess: l } = vt({
12512
12513
  user: o?.username,
12513
12514
  getAccessToken: r
12514
12515
  }), [d, u] = B(null), [h, m] = B(!1), [p, f] = B(!1), [v, b] = B(!1), _ = hr(ir.TOOL.MEMORIES);
@@ -12519,23 +12520,23 @@ const yS = [".png", ".jpg", ".jpeg", ".webp"], bS = [".pdf", ".txt"], wS = [
12519
12520
  p || Promise.all([
12520
12521
  import(
12521
12522
  /* webpackChunkName: "modal-chunk" */
12522
- "./ProfileEntry.C0WTyHem.js"
12523
+ "./ProfileEntry.CbUS7vRG.js"
12523
12524
  ),
12524
12525
  import(
12525
12526
  /* webpackChunkName: "modal-chunk" */
12526
- "./SettingsEntry.B1WFVdjg.js"
12527
+ "./SettingsEntry.LEugTL8A.js"
12527
12528
  ),
12528
12529
  import(
12529
12530
  /* webpackChunkName: "modal-chunk" */
12530
- "./HistoryEntry.Bhv62llk.js"
12531
+ "./HistoryEntry.fta5Qy7u.js"
12531
12532
  ),
12532
12533
  import(
12533
12534
  /* webpackChunkName: "modal-chunk" */
12534
- "./AboutEntry.DxWZPlbg.js"
12535
+ "./AboutEntry.HowTPv8P.js"
12535
12536
  ),
12536
12537
  import(
12537
12538
  /* webpackChunkName: "modal-chunk" */
12538
- "./UsageEntry.CPOickJC.js"
12539
+ "./UsageEntry.DMIbfTUl.js"
12539
12540
  )
12540
12541
  ]).finally(() => f(!0));
12541
12542
  }, [p]), E = J((k) => {
@@ -12582,7 +12583,7 @@ const yS = [".png", ".jpg", ".jpeg", ".webp"], bS = [".pdf", ".txt"], wS = [
12582
12583
  }
12583
12584
  ),
12584
12585
  /* @__PURE__ */ g(
12585
- r0,
12586
+ o0,
12586
12587
  {
12587
12588
  type: d,
12588
12589
  open: d !== null,
@@ -12597,7 +12598,7 @@ const yS = [".png", ".jpg", ".jpeg", ".webp"], bS = [".pdf", ".txt"], wS = [
12597
12598
  "bg-surface-darker/95 dark:bg-surface-darker": t
12598
12599
  }),
12599
12600
  children: /* @__PURE__ */ F("div", { className: "flex flex-wrap justify-between items-center", children: [
12600
- /* @__PURE__ */ g("div", { className: "box-border max-w-full basis-auto", children: /* @__PURE__ */ g(JS, { className: "mr-2" }) }),
12601
+ /* @__PURE__ */ g("div", { className: "box-border max-w-full basis-auto", children: /* @__PURE__ */ g(KS, { className: "mr-2" }) }),
12601
12602
  /* @__PURE__ */ g("div", { className: "box-border max-w-full basis-auto", children: /* @__PURE__ */ g(
12602
12603
  Rr,
12603
12604
  {
@@ -12692,7 +12693,7 @@ const yS = [".png", ".jpg", ".jpeg", ".webp"], bS = [".pdf", ".txt"], wS = [
12692
12693
  )
12693
12694
  ] });
12694
12695
  };
12695
- function s0() {
12696
+ function a0() {
12696
12697
  const e = V(null), [t, n] = B(!1);
12697
12698
  return {
12698
12699
  ref: J((o) => {
@@ -12701,7 +12702,7 @@ function s0() {
12701
12702
  inViewport: t
12702
12703
  };
12703
12704
  }
12704
- const a0 = ({
12705
+ const i0 = ({
12705
12706
  show: e,
12706
12707
  bottom: t,
12707
12708
  onClick: n,
@@ -12711,7 +12712,7 @@ const a0 = ({
12711
12712
  {
12712
12713
  style: { bottom: `${t}px` },
12713
12714
  className: r || M(
12714
- ty,
12715
+ ny,
12715
12716
  "fixed left-1/2 transform -translate-x-1/2 isolate",
12716
12717
  "transition-all duration-300 ease-in-out"
12717
12718
  ),
@@ -12749,10 +12750,10 @@ const a0 = ({
12749
12750
  }
12750
12751
  ) : null;
12751
12752
  const sr = "av-bubble";
12752
- const i0 = ({ kind: e, noMaxWidth: t }) => M("px-4 py-2", {
12753
+ const c0 = ({ kind: e, noMaxWidth: t }) => M("px-4 py-2", {
12753
12754
  "max-w-xs sm:max-w-md md:max-w-2xl": !t,
12754
12755
  "lg:max-w-3xl": e === "left" && !t
12755
- }), c0 = ({ kind: e, gradient: t }) => t ? t === "light" ? M({
12756
+ }), l0 = ({ kind: e, gradient: t }) => t ? t === "light" ? M({
12756
12757
  "bg-linear-to-b from-surface-light/80 to-surface-light dark:from-surface-dark/80 dark:to-surface-dark": e === "left",
12757
12758
  "bg-linear-to-b from-surface-accent/80 to-surface-accent": e === "right"
12758
12759
  }) : t === "medium" ? M({
@@ -12764,9 +12765,9 @@ const i0 = ({ kind: e, noMaxWidth: t }) => M("px-4 py-2", {
12764
12765
  }) : M({
12765
12766
  "bg-surface-light dark:bg-surface-dark": e === "left",
12766
12767
  "bg-surface-accent": e === "right"
12767
- }), l0 = ({ kind: e }) => M("prose prose-dark dark:prose-lighter", "prose-blockquote:my-1", "prose-ol:my-1 prose-ul:my-1", {
12768
+ }), u0 = ({ kind: e }) => M("prose prose-dark dark:prose-lighter", "prose-blockquote:my-1", "prose-ol:my-1 prose-ul:my-1", {
12768
12769
  "text-copy-lighter": e === "right"
12769
- }), u0 = ({ kind: e, tail: t }) => {
12770
+ }), d0 = ({ kind: e, tail: t }) => {
12770
12771
  if (t)
12771
12772
  return M(`${sr}-${e}-tail`, "rounded-3xl", "relative", "before:content-['']", "before:w-3", "before:h-2", "before:absolute", "before:bottom-0", {
12772
12773
  "last-bubble-right:before:right-0.5 last-bubble-right:before:border-l-8 last-bubble-right:before:border-l-surface-accent last-bubble-right:before:rounded-bl-[100%]": e === "right",
@@ -12777,18 +12778,18 @@ const i0 = ({ kind: e, noMaxWidth: t }) => M("px-4 py-2", {
12777
12778
  "rounded-tr-xl": e === "left",
12778
12779
  "rounded-tl-xl": e === "right"
12779
12780
  });
12780
- }, d0 = ({ kind: e, className: t, contentClassName: n, footerClassName: r, noMaxWidth: o, tail: s, gradient: i }) => {
12781
+ }, f0 = ({ kind: e, className: t, contentClassName: n, footerClassName: r, noMaxWidth: o, tail: s, gradient: i }) => {
12781
12782
  const a = M(sr, `${sr}-${e}`, "flex items-start", {
12782
12783
  "flex-row-reverse": e === "right"
12783
- }, t), c = M(`${sr}-content`, "flex flex-col empty:hidden", i0({
12784
+ }, t), c = M(`${sr}-content`, "flex flex-col empty:hidden", c0({
12784
12785
  kind: e,
12785
12786
  noMaxWidth: o
12786
- }), l0({
12787
+ }), u0({
12787
12788
  kind: e
12788
- }), c0({
12789
+ }), l0({
12789
12790
  kind: e,
12790
12791
  gradient: i
12791
- }), u0({
12792
+ }), d0({
12792
12793
  kind: e,
12793
12794
  tail: s
12794
12795
  }), n), l = M("pr-2 pt-1 text-end text-xs text-copy-light", r), d = M("flex flex-col-reverse sm:flex-row", {
@@ -12804,8 +12805,8 @@ const i0 = ({ kind: e, noMaxWidth: t }) => M("px-4 py-2", {
12804
12805
  action: d
12805
12806
  };
12806
12807
  };
12807
- const f0 = (e) => typeof e == "object" && e !== null && "isEmpty" in e && e.isEmpty === !0, p0 = (e) => typeof e == "object" && e !== null && "key" in e && "value" in e, su = ({ children: e, kind: t = "left", className: n, contentClassName: r, footerClassName: o, footer: s, rawFooter: i, action: a, noMaxWidth: c = !1, tail: l = !1, gradient: d }) => {
12808
- const u = d0({
12808
+ const p0 = (e) => typeof e == "object" && e !== null && "isEmpty" in e && e.isEmpty === !0, m0 = (e) => typeof e == "object" && e !== null && "key" in e && "value" in e, su = ({ children: e, kind: t = "left", className: n, contentClassName: r, footerClassName: o, footer: s, rawFooter: i, action: a, noMaxWidth: c = !1, tail: l = !1, gradient: d }) => {
12809
+ const u = f0({
12809
12810
  kind: t,
12810
12811
  className: n,
12811
12812
  contentClassName: r,
@@ -12823,7 +12824,7 @@ const f0 = (e) => typeof e == "object" && e !== null && "isEmpty" in e && e.isEm
12823
12824
  className: u.main,
12824
12825
  children: e
12825
12826
  }),
12826
- s && s.map((h, m) => f0(h) ? /* @__PURE__ */ g("div", {
12827
+ s && s.map((h, m) => p0(h) ? /* @__PURE__ */ g("div", {
12827
12828
  className: "prose-p:m-0",
12828
12829
  children: /* @__PURE__ */ g("p", {
12829
12830
  className: u.footer,
@@ -12833,7 +12834,7 @@ const f0 = (e) => typeof e == "object" && e !== null && "isEmpty" in e && e.isEm
12833
12834
  children: " "
12834
12835
  })
12835
12836
  })
12836
- }, `footer-empty-${m}`) : p0(h) ? /* @__PURE__ */ g("div", {
12837
+ }, `footer-empty-${m}`) : m0(h) ? /* @__PURE__ */ g("div", {
12837
12838
  className: "prose-p:m-0",
12838
12839
  children: /* @__PURE__ */ F("p", {
12839
12840
  className: u.footer,
@@ -12906,17 +12907,17 @@ const Ga = "av-spinner", au = ({ spinnerRef: e, mode: t = "system", type: n = "c
12906
12907
  })
12907
12908
  ]
12908
12909
  });
12909
- }, Ya = 1, m0 = 150, h0 = yt(
12910
+ }, Ya = 1, h0 = 150, g0 = yt(
12910
12911
  () => import(
12911
12912
  /* webpackChunkName: "LazyMessageAssistant" */
12912
- "./ChatBubbleAssistant.BKlO1McH.js"
12913
+ "./ChatBubbleAssistant.PmI4ABQt.js"
12913
12914
  )
12914
- ), g0 = yt(
12915
+ ), v0 = yt(
12915
12916
  () => import(
12916
12917
  /* webpackChunkName: "LazyMessageUser" */
12917
- "./ChatBubbleUser.CSjDB1B9.js"
12918
+ "./ChatBubbleUser.YIoXqbVF.js"
12918
12919
  )
12919
- ), v0 = Ze.memo(
12920
+ ), y0 = Ze.memo(
12920
12921
  ({
12921
12922
  role: e,
12922
12923
  content: t,
@@ -12932,7 +12933,7 @@ const Ga = "av-spinner", au = ({ spinnerRef: e, mode: t = "system", type: n = "c
12932
12933
  );
12933
12934
  return U(() => {
12934
12935
  if (o && c && t && t.trim().length >= Ya) {
12935
- const m = Date.now() - d.current, p = m0 - m;
12936
+ const m = Date.now() - d.current, p = h0 - m;
12936
12937
  if (p > 0) {
12937
12938
  const f = setTimeout(
12938
12939
  () => l(!1),
@@ -12942,8 +12943,8 @@ const Ga = "av-spinner", au = ({ spinnerRef: e, mode: t = "system", type: n = "c
12942
12943
  }
12943
12944
  l(!1);
12944
12945
  }
12945
- }, [t, c, o]), e === po && t ? /* @__PURE__ */ g(mo, { fallback: /* @__PURE__ */ g("span", {}), children: /* @__PURE__ */ g(g0, { content: t }) }) : e === an && o && (s === "submitted" || s === "streaming") && c ? /* @__PURE__ */ g(su, { tail: !0, children: /* @__PURE__ */ g(au, { type: "dots" }) }) : e === an && t && t.trim().length >= Ya ? /* @__PURE__ */ g(mo, { fallback: /* @__PURE__ */ g("span", {}), children: /* @__PURE__ */ g(
12946
- h0,
12946
+ }, [t, c, o]), e === po && t ? /* @__PURE__ */ g(ho, { fallback: /* @__PURE__ */ g("span", {}), children: /* @__PURE__ */ g(v0, { content: t }) }) : e === an && o && (s === "submitted" || s === "streaming") && c ? /* @__PURE__ */ g(su, { tail: !0, children: /* @__PURE__ */ g(au, { type: "dots" }) }) : e === an && t && t.trim().length >= Ya ? /* @__PURE__ */ g(ho, { fallback: /* @__PURE__ */ g("span", {}), children: /* @__PURE__ */ g(
12947
+ g0,
12947
12948
  {
12948
12949
  role: e,
12949
12950
  content: t,
@@ -12956,7 +12957,7 @@ const Ga = "av-spinner", au = ({ spinnerRef: e, mode: t = "system", type: n = "c
12956
12957
  }
12957
12958
  ) }) : null;
12958
12959
  }
12959
- ), y0 = (e) => {
12960
+ ), b0 = (e) => {
12960
12961
  if (e.parts && Array.isArray(e.parts)) {
12961
12962
  const t = e.parts.filter((n) => n.type === "text").map((n) => n.text).filter(Boolean);
12962
12963
  return t.length > 0 ? t.join(`
@@ -12965,7 +12966,7 @@ const Ga = "av-spinner", au = ({ spinnerRef: e, mode: t = "system", type: n = "c
12965
12966
  if ("content" in e && typeof e.content == "string")
12966
12967
  return e.content;
12967
12968
  };
12968
- function b0(e) {
12969
+ function w0(e) {
12969
12970
  const t = e.metadata;
12970
12971
  if (t?.model)
12971
12972
  return { model: String(t.model) };
@@ -12989,11 +12990,11 @@ const iu = Ze.forwardRef((e, t) => {
12989
12990
  return n && n.length > 0 ? /* @__PURE__ */ F("div", { className: "space-y-6 mt-2 @container", children: [
12990
12991
  n?.map((c, l) => {
12991
12992
  let d;
12992
- const u = `${l}-${c.role}`, h = y0(c), m = b0(c), p = c.role === an && l === o, f = l === a;
12993
+ const u = `${l}-${c.role}`, h = b0(c), m = w0(c), p = c.role === an && l === o, f = l === a;
12993
12994
  return /* @__PURE__ */ F(Ze.Fragment, { children: [
12994
12995
  f && /* @__PURE__ */ g("div", { ref: t, className: "new-message-marker" }),
12995
12996
  /* @__PURE__ */ g(
12996
- v0,
12997
+ y0,
12997
12998
  {
12998
12999
  role: c.role,
12999
13000
  content: h,
@@ -13011,10 +13012,10 @@ const iu = Ze.forwardRef((e, t) => {
13011
13012
  ] }) : null;
13012
13013
  });
13013
13014
  iu.displayName = "MessagesList";
13014
- const w0 = () => {
13015
- const { isAuthenticated: e } = $e(), { ref: t, inViewport: n } = s0(), r = V(null), o = V(null), s = V(null), i = V(null), [a, c] = B(0), {
13015
+ const _0 = () => {
13016
+ const { isAuthenticated: e } = $e(), { ref: t, inViewport: n } = a0(), r = V(null), o = V(null), s = V(null), i = V(null), [a, c] = B(0), {
13016
13017
  state: { footerPosition: l, footerHeight: d, footerOffset: u, oledMode: h }
13017
- } = de(_n), {
13018
+ } = de(wn), {
13018
13019
  state: { loading: m, streaming: p, scrollToBottomTrigger: f }
13019
13020
  } = de(Le), { messages: v } = bt(), b = V(0), _ = V(!1), y = V(0), E = V(0), S = V(0), { data: T, isSuccess: x } = Ru(), I = Ou({
13020
13021
  isAuthenticated: e,
@@ -13095,7 +13096,7 @@ const w0 = () => {
13095
13096
  )
13096
13097
  ] }),
13097
13098
  /* @__PURE__ */ g(
13098
- a0,
13099
+ i0,
13099
13100
  {
13100
13101
  show: !n && l === on && !m && !p,
13101
13102
  bottom: b.current,
@@ -13108,7 +13109,7 @@ function cu({
13108
13109
  isComponent: e = !1,
13109
13110
  headerHeight: t = 0
13110
13111
  }) {
13111
- const { user: n, getAccessToken: r } = $e(), [o, s] = B(`${ps}px`), [i, a] = ai(), [c, l] = B(pt()), [d, u] = B([]), [h] = et({
13112
+ const { user: n, getAccessToken: r } = $e(), [o, s] = B(`${ps}px`), [i, a] = ri(), [c, l] = B(pt()), [d, u] = B([]), [h] = et({
13112
13113
  key: He + Lu,
13113
13114
  initialValue: ""
13114
13115
  }), [m] = et({
@@ -13127,7 +13128,7 @@ function cu({
13127
13128
  key: Fu,
13128
13129
  initialValue: !1
13129
13130
  }), _ = Ae(() => ({
13130
- footerPosition: ho,
13131
+ footerPosition: mo,
13131
13132
  footerHeight: 0,
13132
13133
  footerOffset: We() ? Qa : 0,
13133
13134
  oledMode: !1,
@@ -13149,12 +13150,12 @@ function cu({
13149
13150
  }
13150
13151
  })()
13151
13152
  }, [I, k] = Dn(
13152
- Zv,
13153
+ Uv,
13153
13154
  x
13154
- ), [D, j] = Dn(Uv, {
13155
+ ), [D, j] = Dn(jv, {
13155
13156
  prompt: "",
13156
13157
  lastTriggeredTimestamp: 0
13157
- }), [O, R] = Dn(Fv, {
13158
+ }), [O, R] = Dn(Zv, {
13158
13159
  provider: "",
13159
13160
  // OpenAI, Anthropic, etc.
13160
13161
  privateChat: !1,
@@ -13179,7 +13180,7 @@ function cu({
13179
13180
  username: n?.username
13180
13181
  }
13181
13182
  }), [n?.username]);
13182
- return Xv({
13183
+ return qv({
13183
13184
  currentChatId: c,
13184
13185
  setChatId: l,
13185
13186
  setInitialMessages: u,
@@ -13212,7 +13213,7 @@ function cu({
13212
13213
  provider: z.provider
13213
13214
  }
13214
13215
  });
13215
- }, [z]), wn(() => {
13216
+ }, [z]), _n(() => {
13216
13217
  if (y.footerPosition === "FOOTER_BOTTOM") {
13217
13218
  const H = S === "mt-1" ? 4 : 20, q = `calc(${a.height}px + ${H}px)`;
13218
13219
  s(
@@ -13236,7 +13237,7 @@ function cu({
13236
13237
  state: I,
13237
13238
  dispatch: k
13238
13239
  },
13239
- children: /* @__PURE__ */ g(_n.Provider, { value: { state: y, dispatch: E }, children: /* @__PURE__ */ g(
13240
+ children: /* @__PURE__ */ g(wn.Provider, { value: { state: y, dispatch: E }, children: /* @__PURE__ */ g(
13240
13241
  $o.Provider,
13241
13242
  {
13242
13243
  value: { state: D, dispatch: j },
@@ -13250,7 +13251,7 @@ function cu({
13250
13251
  setInitialMessages: u
13251
13252
  },
13252
13253
  children: /* @__PURE__ */ F(
13253
- Yv,
13254
+ Jv,
13254
13255
  {
13255
13256
  value: {
13256
13257
  id: c,
@@ -13262,7 +13263,7 @@ function cu({
13262
13263
  }
13263
13264
  },
13264
13265
  children: [
13265
- /* @__PURE__ */ g(Jv, { chatId: c }),
13266
+ /* @__PURE__ */ g(Kv, { chatId: c }),
13266
13267
  /* @__PURE__ */ F("div", { className: Rd, children: [
13267
13268
  /* @__PURE__ */ g(la, { containerId: "toggle-save" }),
13268
13269
  /* @__PURE__ */ g(la, { containerId: "toggle-provider" })
@@ -13275,7 +13276,7 @@ function cu({
13275
13276
  extraClass: S,
13276
13277
  fullScreen: b
13277
13278
  }),
13278
- children: /* @__PURE__ */ g(o0, { isComponent: e })
13279
+ children: /* @__PURE__ */ g(s0, { isComponent: e })
13279
13280
  }
13280
13281
  ),
13281
13282
  /* @__PURE__ */ g(
@@ -13285,10 +13286,10 @@ function cu({
13285
13286
  style: {
13286
13287
  height: o
13287
13288
  },
13288
- children: /* @__PURE__ */ g(w0, {})
13289
+ children: /* @__PURE__ */ g(_0, {})
13289
13290
  }
13290
13291
  ),
13291
- /* @__PURE__ */ g(YS, { isComponent: e })
13292
+ /* @__PURE__ */ g(JS, { isComponent: e })
13292
13293
  ]
13293
13294
  }
13294
13295
  )
@@ -13300,14 +13301,14 @@ function cu({
13300
13301
  );
13301
13302
  }
13302
13303
  cu.displayName = "App";
13303
- const D0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, default: cu }, Symbol.toStringTag, { value: "Module" }));
13304
+ const $0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, default: cu }, Symbol.toStringTag, { value: "Module" }));
13304
13305
  export {
13305
- D0 as App,
13306
+ $0 as App,
13306
13307
  su as Bubble,
13307
- Ub as ButtonCancel,
13308
- a0 as ButtonScroll,
13308
+ jb as ButtonCancel,
13309
+ i0 as ButtonScroll,
13309
13310
  Vt as CHAT_RESET,
13310
- zv as CHAT_SCROLL_TO_BOTTOM,
13311
+ Fv as CHAT_SCROLL_TO_BOTTOM,
13311
13312
  pn as CHAT_SET_ATTACHMENTS,
13312
13313
  It as CHAT_SET_STATUS,
13313
13314
  gn as ConfirmationPanel,
@@ -13316,22 +13317,22 @@ export {
13316
13317
  Me as DropdownMenuItem,
13317
13318
  ql as DropdownMenuSub,
13318
13319
  la as LazyToastContainerWrapper,
13319
- Ib as Panel,
13320
+ Ab as Panel,
13320
13321
  Rr as ResponsiveTooltip,
13321
- Zb as Toggle,
13322
- O0 as debounce,
13322
+ Ub as Toggle,
13323
+ N0 as debounce,
13323
13324
  rv as getDefaultExportFromCjs,
13324
13325
  Bt as isProbablyMobile,
13325
- P0 as numberFormatter,
13326
- M0 as obfuscate,
13327
- N0 as pluralize,
13328
- gb as preloadToast,
13329
- vb as showErrorToast,
13326
+ M0 as numberFormatter,
13327
+ k0 as obfuscate,
13328
+ P0 as pluralize,
13329
+ vb as preloadToast,
13330
+ yb as showErrorToast,
13330
13331
  Ea as showSuccessToast,
13331
- k0 as unObfuscate,
13332
+ D0 as unObfuscate,
13332
13333
  bt as useAiChat,
13333
13334
  hr as useCapability,
13334
- s0 as useInViewport,
13335
+ a0 as useInViewport,
13335
13336
  et as useLocalStorage,
13336
13337
  pt as v4
13337
13338
  };