@stacksjs/components 0.2.720 → 0.2.722

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.
@@ -51,13 +51,17 @@ export const fetchpriority = priority ? 'high' : (authoredFetchPriority || 'auto
51
51
  * through anything transparent in it and stays there once it has loaded,
52
52
  * which is a permanent artefact on every PNG with an alpha channel.
53
53
  */
54
- const placeholderMode = $props.placeholder
54
+ export const placeholderMode = $props.placeholder ?? null
55
55
  // Stacks' former default accepted a preview URL; keep CSS backgrounds too.
56
56
  const customPlaceholder = typeof placeholderMode === 'string' && /^(?:data:image\/|https?:\/\/|\/|\.{1,2}\/)/i.test(placeholderMode)
57
57
  ? `url(${JSON.stringify(placeholderMode)})` : placeholderMode
58
58
  const imagePlaceholder = getImagePlaceholder($props.src || '')
59
- const placeholderColor = $props.placeholderColor || imagePlaceholder?.color || '#e5e7eb'
60
- const preview = delivered?.placeholder || imagePlaceholder?.dataUrl
59
+ export const authoredPlaceholderColor = $props.placeholderColor || ''
60
+ export const paletteColor = imagePlaceholder?.color || '#e5e7eb'
61
+ const placeholderColor = authoredPlaceholderColor || paletteColor
62
+ export const preview = delivered?.placeholder || imagePlaceholder?.dataUrl || ''
63
+ export const hasAutomaticPlaceholder = !!delivered?.placeholder
64
+ export const placeholderIsTransparent = !!imagePlaceholder?.transparent
61
65
  export const placeholder = placeholderMode === 'empty' || placeholderMode === 'none' ? ''
62
66
  : placeholderMode === 'color' ? (imagePlaceholder?.transparent ? '' : placeholderColor)
63
67
  : placeholderMode === 'blur' || placeholderMode === 'thumbhash' ? (imagePlaceholder?.transparent ? '' : preview ? `url("${preview}")` : placeholderColor)
@@ -69,14 +73,15 @@ export const objectFit = authoredObjectFit || authoredFit || 'cover'
69
73
  export const authoredObjectPosition = $props.objectPosition || ''
70
74
  export const authoredPosition = $props.position || ''
71
75
  export const objectPosition = authoredObjectPosition || authoredPosition || 'center'
72
- export const rounded = $bool($props.rounded)
76
+ // Preserve named tokens; coercing them to boolean loses the requested radius.
77
+ export const rounded = typeof $props.rounded === 'string' ? $props.rounded : $bool($props.rounded)
73
78
  export const zoomOnHover = $bool($props.zoomOnHover)
74
79
  export const className = $props.className || $props.class || ''
75
80
 
76
81
  export const hasWebP = !!(webpSrc || webpSrcSet)
77
82
 
78
83
  export const roundingRadius = '0.5rem'
79
- const RADII = {
84
+ export const roundingRadii = {
80
85
  true: roundingRadius,
81
86
  full: '9999px',
82
87
  sm: '0.125rem',
@@ -86,7 +91,7 @@ const RADII = {
86
91
  '2xl': '1rem',
87
92
  }
88
93
 
89
- const radius = rounded ? (RADII[String(rounded)] || RADII.true) : ''
94
+ const radius = $bool(rounded) ? (Object.prototype.hasOwnProperty.call(roundingRadii, String(rounded)) ? roundingRadii[String(rounded)] : roundingRadii.true) : ''
90
95
 
91
96
  /**
92
97
  * Styles inline rather than as utility classes.
@@ -129,7 +134,6 @@ export const imageStyle = [
129
134
  `object-fit: ${objectFit}`,
130
135
  `object-position: ${objectPosition}`,
131
136
  radius ? `border-radius: ${radius}` : '',
132
- zoomOnHover ? 'transition: transform 0.3s ease-in-out' : '',
133
137
  ].filter(Boolean).join('; ')
134
138
  </script>
135
139
 
@@ -155,12 +159,17 @@ const imageLoading = derived(() => isPriority() ? 'eager' : (liveLoading() || (i
155
159
  const imageFetchPriority = derived(() => isPriority() ? 'high' : (liveFetchPriority() || 'auto'))
156
160
  const liveDecoding = useReactiveProp('decoding', {{ decoding }})
157
161
  const imageDecoding = derived(() => liveDecoding() || 'async')
158
- // Preserve the server's boolean contract, including typed false-like strings.
159
- const liveRounded = useReactiveProp('rounded', {{ rounded }}, { parse: value => imageBoolean(value, false) })
160
- const imageRadius = derived(() => imageBoolean(liveRounded(), false) ? {{ roundingRadius }} : null)
162
+ // Keep tokens intact through attribute parsing and authored-default replay.
163
+ const liveRounded = useReactiveProp('rounded', {{ rounded }}, { parse: value => value })
164
+ const roundingRadii = {{ roundingRadii }}
165
+ const imageRadius = derived(() => {
166
+ const value = liveRounded()
167
+ if (!imageBoolean(value, false)) return null
168
+ return Object.prototype.hasOwnProperty.call(roundingRadii, String(value)) ? roundingRadii[String(value)] : roundingRadii.true
169
+ })
161
170
  // Transfer SSR-owned rounding to the binding before it captures its baseline.
162
171
  // Otherwise clearing a binding restores the original rounded inline style.
163
- if ({{ rounded }}) {
172
+ if (imageBoolean({{ rounded }}, false)) {
164
173
  const physicalImage = window.__STX_CURRENT_ELEMENT__?.querySelector('[data-stx-native-host-root]')
165
174
  if (physicalImage) {
166
175
  const frame = window.stx._host.parent(physicalImage)
@@ -179,6 +188,8 @@ const imageWidth = useReactiveProp('width', {{ width ?? null }})
179
188
  const imageHeight = useReactiveProp('height', {{ height ?? null }})
180
189
  const liveRatio = useReactiveProp('aspectRatio', {{ aspectRatio ?? null }})
181
190
  const nativeImage = !!window.stx._host.isNative
191
+ const liveZoomOnHover = useReactiveProp('zoomOnHover', {{ zoomOnHover }}, { parse: value => imageBoolean(value, false) })
192
+ const imageZoomEnabled = derived(() => !nativeImage && imageBoolean(liveZoomOnHover(), false))
182
193
  const emit = defineEmits(['load', 'error'])
183
194
  // Image load/error events do not bubble to the picture/component root.
184
195
  // Forward the original browser event or host payload, never a lossy copy.
@@ -214,10 +225,41 @@ const imageCandidates = derived(() => {
214
225
  if (liveSrcSet() === undefined || liveSrcSet() === initialCandidates) return keepInitialSources() ? initialCandidates || null : null
215
226
  return liveSrcSet() == null || liveSrcSet() === '' ? null : String(liveSrcSet())
216
227
  })
217
- const initialBackground = {{ placeholder ? `${placeholder} center / cover no-repeat` : '' }}
228
+ const livePlaceholder = useReactiveProp('placeholder', {{ placeholderMode }}, { parse: value => value == null ? value : String(value) })
229
+ const livePlaceholderColor = useReactiveProp('placeholderColor', {{ authoredPlaceholderColor }})
230
+ const preparedPlaceholderPreview = {{ preview }}
231
+ const transparentPlaceholder = imageBoolean({{ placeholderIsTransparent }}, false)
232
+ const automaticPlaceholder = imageBoolean({{ hasAutomaticPlaceholder }}, false)
233
+ const hadPlaceholder = imageBoolean({{ !!placeholder }}, false)
234
+ // Hand the SSR background to its binding, rather than restoring it on clear.
235
+ // Native hosts do not implement this browser background shorthand.
236
+ if (!nativeImage && hadPlaceholder) {
237
+ const physicalImage = window.__STX_CURRENT_ELEMENT__?.querySelector('[data-stx-native-host-root]')
238
+ const frame = physicalImage && window.stx._host.parent(physicalImage)
239
+ if (frame) window.stx._host.setStyle(frame, { background: null })
240
+ }
241
+ const imagePlaceholderStyles = derived(() => {
242
+ if (nativeImage) return {}
243
+ const mode = livePlaceholder()
244
+ const color = livePlaceholderColor() || {{ paletteColor }}
245
+ const custom = typeof mode === 'string' && /^(?:data:image\/|https?:\/\/|\/|\.{1,2}\/)/i.test(mode)
246
+ ? `url(${JSON.stringify(mode)})` : mode
247
+ const background = mode === 'empty' || mode === 'none' ? ''
248
+ : mode === 'color' ? (transparentPlaceholder ? '' : color)
249
+ : mode === 'blur' || mode === 'thumbhash' ? (transparentPlaceholder ? '' : preparedPlaceholderPreview ? `url(${JSON.stringify(preparedPlaceholderPreview)})` : color)
250
+ : custom || (automaticPlaceholder ? `url(${JSON.stringify(preparedPlaceholderPreview)})` : '')
251
+ // Prepared metadata belongs to the original source/candidates, as before.
252
+ if (!keepInitialSources()) return { background: hadPlaceholder || background ? 'none' : null }
253
+ return { background: background ? `${background} center / cover no-repeat` : null }
254
+ })
218
255
  </script>
219
256
 
220
- <picture class="{{ className }}" style="{{ frameStyle }}" :style="{ aspectRatio: imageRatio(), borderRadius: imageRadius()@if(placeholder), background: keepInitialSources() ? initialBackground : 'none'@endif }">
257
+ <picture class="{{ className }}" style="{{ frameStyle }}" :style="{ aspectRatio: imageRatio(), borderRadius: imageRadius(), ...imagePlaceholderStyles() }"
258
+ @if(!$native)
259
+ @if(zoomOnHover)data-stx-image-zoom@endif
260
+ :data-stx-image-zoom="imageZoomEnabled() ? '' : null"
261
+ @endif
262
+ >
221
263
  @foreach(sources as source)
222
264
  <source
223
265
  @if(source.type)type="{{ source.type }}"@endif
@@ -276,3 +318,14 @@ const initialBackground = {{ placeholder ? `${placeholder} center / cover no-rep
276
318
  :style="{ objectFit: imageFit(), objectPosition: imagePosition(), borderRadius: imageRadius() }"
277
319
  />
278
320
  </picture>
321
+
322
+ <style>
323
+ @media (hover: hover) and (prefers-reduced-motion: no-preference) {
324
+ picture[data-stx-image-zoom] > img {
325
+ transition: scale 0.3s ease-in-out;
326
+ }
327
+ picture[data-stx-image-zoom]:hover > img {
328
+ scale: 1.05;
329
+ }
330
+ }
331
+ </style>
@@ -87,10 +87,21 @@ const liveSrc = useReactiveProp('src', {{ src }})
87
87
  const livePoster = useReactiveProp('poster', {{ poster }})
88
88
  const liveLabel = useReactiveProp('label', {{ label }})
89
89
  const liveRatio = useReactiveProp('aspectRatio', {{ aspectRatio }})
90
- const liveControls = useReactiveProp('controls', {{ controls }})
91
- const liveAutoplay = useReactiveProp('autoplay', {{ autoplay }})
92
- const liveLoop = useReactiveProp('loop', {{ loop }})
93
- const liveMuted = useReactiveProp('muted', {{ muted }})
90
+ // Match server $bool for attributes, authored-default replay and typed parent
91
+ // writes (which bypass parsing). Controls alone defaults to enabled when null.
92
+ function videoBoolean(value, fallback) {
93
+ if (value == null) return fallback
94
+ if (typeof value === 'string') return !['false', '0', 'off', 'no'].includes(value.trim().toLowerCase())
95
+ return Boolean(value)
96
+ }
97
+ const liveControls = useReactiveProp('controls', {{ controls }}, { parse: value => videoBoolean(value, true) })
98
+ const liveAutoplay = useReactiveProp('autoplay', {{ autoplay }}, { parse: value => videoBoolean(value, false) })
99
+ const liveLoop = useReactiveProp('loop', {{ loop }}, { parse: value => videoBoolean(value, false) })
100
+ const liveMuted = useReactiveProp('muted', {{ muted }}, { parse: value => videoBoolean(value, false) })
101
+ const playerControls = derived(() => videoBoolean(liveControls(), true))
102
+ const playerAutoplay = derived(() => videoBoolean(liveAutoplay(), false))
103
+ const playerLoop = derived(() => videoBoolean(liveLoop(), false))
104
+ const playerMuted = derived(() => videoBoolean(liveMuted(), false))
94
105
  const element = useRef('player')
95
106
  const emit = nativeVideo ? defineEmits(['play', 'pause', 'ended', 'timeupdate', 'loadedmetadata', 'loadstart', 'error']) : null
96
107
 
@@ -141,10 +152,10 @@ effect(() => {
141
152
  :poster="livePoster() || null"
142
153
  :aria-label="liveLabel() || null"
143
154
  :style="playerStyle()"
144
- :controls="liveControls()"
145
- :autoplay="liveAutoplay()"
146
- :loop="liveLoop()"
147
- :muted="liveMuted()"
155
+ :controls="playerControls()"
156
+ :autoplay="playerAutoplay()"
157
+ :loop="playerLoop()"
158
+ :muted="playerMuted()"
148
159
  data-media-config="{{ playerConfig }}"
149
160
  @if(poster) poster="{{ poster }}" @endif
150
161
  @if(controls) controls @endif
@@ -166,7 +177,7 @@ effect(() => {
166
177
  @if(isPage)
167
178
  <span data-native-fallback class="block h-full w-full"></span>
168
179
  @else
169
- <video data-native-fallback @if(src) src="{{ src }}" @endif @if(poster) poster="{{ poster }}" @endif @if(controls) controls @endif @if(loop) loop @endif :controls="liveControls()" :loop="liveLoop()" :muted="liveMuted()" @if(playsinline) playsinline @endif preload="none" @if(crossorigin) crossorigin="{{ crossorigin }}" @endif controlslist="{{ controlslist }}" @if(disablePictureInPicture) disablepictureinpicture @endif @if(label) aria-label="{{ label }}" @endif class="object-contain h-full w-full"></video>
180
+ <video data-native-fallback @if(src) src="{{ src }}" @endif @if(poster) poster="{{ poster }}" @endif @if(controls) controls @endif @if(loop) loop @endif @if(muted) muted @endif :controls="playerControls()" :loop="playerLoop()" :muted="playerMuted()" @if(playsinline) playsinline @endif preload="none" @if(crossorigin) crossorigin="{{ crossorigin }}" @endif controlslist="{{ controlslist }}" @if(disablePictureInPicture) disablepictureinpicture @endif @if(label) aria-label="{{ label }}" @endif class="object-contain h-full w-full"></video>
170
181
  @endif
171
182
  <video-skin>
172
183
  <media-seek-button slot="left" seconds="-10"></media-seek-button>
package/dist/index.js CHANGED
@@ -1,14 +1,14 @@
1
1
  // @bun
2
- var Xe={__stx:!0,src:"./components/CodeBlock.stx"};var Qe={__stx:!0,src:"./components/Footer.stx"};var Ze={__stx:!0,src:"./components/Hero.stx"};var et={__stx:!0,src:"./components/Installation.stx"};function Hr(e){let{code:t,onSuccess:s,onError:o,timeout:a=2000}=e,n=!1,r=null;return{copied:n,copy:async()=>{try{if(!navigator.clipboard)throw Error("Clipboard API not available");await navigator.clipboard.writeText(t),n=!0,s?.(),r=setTimeout(()=>{n=!1,r=null},a)}catch(p){let u=p instanceof Error?p:Error("Failed to copy code");o?.(u),console.error("Failed to copy code:",u)}},reset:()=>{if(n=!1,r)clearTimeout(r),r=null}}}async function Fr(e){try{return await navigator.clipboard.writeText(e),!0}catch(t){return console.error("Failed to copy to clipboard:",t),!1}}function tt(){if(typeof window>"u")return"light";return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function xe(e){return e==="system"?tt():e}function Br(e={}){let{storageKey:t="theme",defaultTheme:s="system"}=e,o=s;if(typeof window<"u"&&typeof localStorage<"u"){let c=localStorage.getItem(t);if(c)o=c}let a=xe(o)==="dark",n=(c)=>{let p=xe(c);if(typeof document<"u")if(p==="dark")document.documentElement.classList.add("dark");else document.documentElement.classList.remove("dark");if(typeof localStorage<"u")localStorage.setItem(t,c)},r=(c)=>{o=c,n(c)},i=()=>{let p=xe(o)==="dark"?"light":"dark";r(p)};if(n(o),typeof window<"u"&&o==="system")window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",(c)=>{if(o==="system")n("system")});return{isDark:a,theme:o,toggle:i,setTheme:r}}function st(e,t){if(typeof document>"u")return;document.title=t?t.replace("%s",e):e}function O(e,t,s=!1){if(typeof document>"u")return;let o=s?"property":"name",a=document.querySelector(`meta[${o}="${e}"]`);if(!a)a=document.createElement("meta"),a.setAttribute(o,e),document.head.appendChild(a);a.setAttribute("content",t)}function ot(e,t){if(typeof document>"u")return;let s=document.querySelector(`link[rel="${e}"]`);if(!s)s=document.createElement("link"),s.setAttribute("rel",e),document.head.appendChild(s);s.setAttribute("href",t)}function Wr(e){let{title:t,description:s,author:o,keywords:a,ogImage:n,ogImageWidth:r,ogImageHeight:i,twitterCard:c="summary_large_image",twitterSite:p,twitterCreator:u,canonical:d}=e;if(t)st(t),O("og:title",t,!0),O("twitter:title",t);if(s)O("description",s),O("og:description",s,!0),O("twitter:description",s);if(o)O("author",o);if(a&&a.length>0)O("keywords",a.join(", "));if(n)O("og:image",n,!0),O("twitter:image",n);if(r)O("og:image:width",r,!0);if(i)O("og:image:height",i,!0);if(O("twitter:card",c),p)O("twitter:site",p);if(u)O("twitter:creator",u);if(d)ot("canonical",d);if(O("og:type","website",!0),typeof window<"u")O("og:url",window.location.href,!0)}function Kr(e){let t=[],{title:s,description:o,author:a,keywords:n,ogImage:r,ogImageWidth:i,ogImageHeight:c,twitterCard:p="summary_large_image",twitterSite:u,twitterCreator:d,canonical:g}=e;if(s)t.push(`<title>${N(s)}</title>`),t.push(`<meta property="og:title" content="${N(s)}" />`),t.push(`<meta name="twitter:title" content="${N(s)}" />`);if(o)t.push(`<meta name="description" content="${N(o)}" />`),t.push(`<meta property="og:description" content="${N(o)}" />`),t.push(`<meta name="twitter:description" content="${N(o)}" />`);if(a)t.push(`<meta name="author" content="${N(a)}" />`);if(n&&n.length>0)t.push(`<meta name="keywords" content="${N(n.join(", "))}" />`);if(r)t.push(`<meta property="og:image" content="${N(r)}" />`),t.push(`<meta name="twitter:image" content="${N(r)}" />`);if(i)t.push(`<meta property="og:image:width" content="${N(i)}" />`);if(c)t.push(`<meta property="og:image:height" content="${N(c)}" />`);if(t.push(`<meta name="twitter:card" content="${N(p)}" />`),u)t.push(`<meta name="twitter:site" content="${N(u)}" />`);if(d)t.push(`<meta name="twitter:creator" content="${N(d)}" />`);if(g)t.push(`<link rel="canonical" href="${N(g)}" />`);return t.push('<meta property="og:type" content="website" />'),t.join(`
2
+ var Xe={__stx:!0,src:"./components/CodeBlock.stx"};var Qe={__stx:!0,src:"./components/Footer.stx"};var Ze={__stx:!0,src:"./components/Hero.stx"};var et={__stx:!0,src:"./components/Installation.stx"};function Hr(e){let{code:t,onSuccess:s,onError:o,timeout:a=2000}=e,n=!1,r=null;return{copied:n,copy:async()=>{try{if(!navigator.clipboard)throw Error("Clipboard API not available");await navigator.clipboard.writeText(t),n=!0,s?.(),r=setTimeout(()=>{n=!1,r=null},a)}catch(p){let u=p instanceof Error?p:Error("Failed to copy code");o?.(u),console.error("Failed to copy code:",u)}},reset:()=>{if(n=!1,r)clearTimeout(r),r=null}}}async function Fr(e){try{return await navigator.clipboard.writeText(e),!0}catch(t){return console.error("Failed to copy to clipboard:",t),!1}}function tt(){if(typeof window>"u")return"light";return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function xe(e){return e==="system"?tt():e}function Br(e={}){let{storageKey:t="theme",defaultTheme:s="system"}=e,o=s;if(typeof window<"u"&&typeof localStorage<"u"){let c=localStorage.getItem(t);if(c)o=c}let a=xe(o)==="dark",n=(c)=>{let p=xe(c);if(typeof document<"u")if(p==="dark")document.documentElement.classList.add("dark");else document.documentElement.classList.remove("dark");if(typeof localStorage<"u")localStorage.setItem(t,c)},r=(c)=>{o=c,n(c)},i=()=>{let p=xe(o)==="dark"?"light":"dark";r(p)};if(n(o),typeof window<"u"&&o==="system")window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",(c)=>{if(o==="system")n("system")});return{isDark:a,theme:o,toggle:i,setTheme:r}}function st(e,t){if(typeof document>"u")return;document.title=t?t.replace("%s",e):e}function O(e,t,s=!1){if(typeof document>"u")return;let o=s?"property":"name",a=document.querySelector(`meta[${o}="${e}"]`);if(!a)a=document.createElement("meta"),a.setAttribute(o,e),document.head.appendChild(a);a.setAttribute("content",t)}function ot(e,t){if(typeof document>"u")return;let s=document.querySelector(`link[rel="${e}"]`);if(!s)s=document.createElement("link"),s.setAttribute("rel",e),document.head.appendChild(s);s.setAttribute("href",t)}function Wr(e){let{title:t,description:s,author:o,keywords:a,ogImage:n,ogImageWidth:r,ogImageHeight:i,twitterCard:c="summary_large_image",twitterSite:p,twitterCreator:u,canonical:d}=e;if(t)st(t),O("og:title",t,!0),O("twitter:title",t);if(s)O("description",s),O("og:description",s,!0),O("twitter:description",s);if(o)O("author",o);if(a&&a.length>0)O("keywords",a.join(", "));if(n)O("og:image",n,!0),O("twitter:image",n);if(r)O("og:image:width",r,!0);if(i)O("og:image:height",i,!0);if(O("twitter:card",c),p)O("twitter:site",p);if(u)O("twitter:creator",u);if(d)ot("canonical",d);if(O("og:type","website",!0),typeof window<"u")O("og:url",window.location.href,!0)}function _r(e){let t=[],{title:s,description:o,author:a,keywords:n,ogImage:r,ogImageWidth:i,ogImageHeight:c,twitterCard:p="summary_large_image",twitterSite:u,twitterCreator:d,canonical:g}=e;if(s)t.push(`<title>${N(s)}</title>`),t.push(`<meta property="og:title" content="${N(s)}" />`),t.push(`<meta name="twitter:title" content="${N(s)}" />`);if(o)t.push(`<meta name="description" content="${N(o)}" />`),t.push(`<meta property="og:description" content="${N(o)}" />`),t.push(`<meta name="twitter:description" content="${N(o)}" />`);if(a)t.push(`<meta name="author" content="${N(a)}" />`);if(n&&n.length>0)t.push(`<meta name="keywords" content="${N(n.join(", "))}" />`);if(r)t.push(`<meta property="og:image" content="${N(r)}" />`),t.push(`<meta name="twitter:image" content="${N(r)}" />`);if(i)t.push(`<meta property="og:image:width" content="${N(i)}" />`);if(c)t.push(`<meta property="og:image:height" content="${N(c)}" />`);if(t.push(`<meta name="twitter:card" content="${N(p)}" />`),u)t.push(`<meta name="twitter:site" content="${N(u)}" />`);if(d)t.push(`<meta name="twitter:creator" content="${N(d)}" />`);if(g)t.push(`<link rel="canonical" href="${N(g)}" />`);return t.push('<meta property="og:type" content="website" />'),t.join(`
3
3
  `)}function N(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#039;")}function Ur(e,t,s={}){let{enabled:o=!0,ignore:a=[]}=s,n=(r)=>{if(!o||!e)return;let i=r.target;if(!e.contains(i)){if(!a.some((p)=>{let u=document.querySelectorAll(p);return Array.from(u).some((d)=>d.contains(i))}))t(r)}};if(typeof document<"u")document.addEventListener("mousedown",n),document.addEventListener("touchstart",n);return()=>{if(typeof document<"u")document.removeEventListener("mousedown",n),document.removeEventListener("touchstart",n)}}function Jr(e,t={}){let{enabled:s=!0,initialFocus:o=null,returnFocus:a=!0,fallbackFocus:n=null}=t,r=null,i=!1;function c(){if(!e)return[];let m=["a[href]","button:not([disabled])","textarea:not([disabled])","input:not([disabled])","select:not([disabled])",'[tabindex]:not([tabindex="-1"])'].join(",");return Array.from(e.querySelectorAll(m))}function p(m){if(!s||!i||!e)return;let k=c();if(k.length===0){m.preventDefault();return}let C=k[0],y=k[k.length-1];if(m.shiftKey){if(document.activeElement===C||document.activeElement===e)m.preventDefault(),y.focus()}else if(document.activeElement===y)m.preventDefault(),C.focus()}function u(m){if(m.key==="Escape"&&s&&i)g()}function d(){if(!s||!e||i)return;if(r=document.activeElement,o)o.focus();else{let m=c();if(m.length>0)m[0].focus();else if(n)n.focus();else e.focus()}document.addEventListener("keydown",p),document.addEventListener("keydown",u),i=!0}function g(){if(!i)return;if(document.removeEventListener("keydown",p),document.removeEventListener("keydown",u),a&&r)r.focus();i=!1}return{activate:d,deactivate:g}}function Xr(e,t={}){let{enabled:s=!0,preventDefault:o=!0,stopPropagation:a=!1,target:n=typeof document<"u"?document:null}=t,r=Array.isArray(e)?e:[e],i=(c)=>{if(!s)return;r.forEach((p)=>{if(!(Array.isArray(p.key)?p.key:[p.key]).some((g)=>g.toLowerCase()===c.key.toLowerCase()))return;if(p.ctrl!==void 0&&p.ctrl!==c.ctrlKey)return;if(p.shift!==void 0&&p.shift!==c.shiftKey)return;if(p.alt!==void 0&&p.alt!==c.altKey)return;if(p.meta!==void 0&&p.meta!==c.metaKey)return;if(o)c.preventDefault();if(a)c.stopPropagation();p.handler(c)})};if(n)n.addEventListener("keydown",i);return()=>{if(n)n.removeEventListener("keydown",i)}}var Qr={ESCAPE:"Escape",ENTER:"Enter",SPACE:" ",TAB:"Tab",ARROW_UP:"ArrowUp",ARROW_DOWN:"ArrowDown",ARROW_LEFT:"ArrowLeft",ARROW_RIGHT:"ArrowRight",HOME:"Home",END:"End",PAGE_UP:"PageUp",PAGE_DOWN:"PageDown"};function ei(e,t,s={}){let{serializer:o=JSON.stringify,deserializer:a=JSON.parse,onError:n=console.error}=s,r=t;try{if(typeof window<"u"){let d=window.localStorage.getItem(e);if(d!==null)r=a(d)}}catch(d){n(d)}let i=r,c=new Set;function p(d){try{let g=typeof d==="function"?d(i):d;if(i=g,typeof window<"u")window.localStorage.setItem(e,o(g));c.forEach((m)=>m(g))}catch(g){n(g)}}function u(){try{if(i=t,typeof window<"u")window.localStorage.removeItem(e);c.forEach((d)=>d(t))}catch(d){n(d)}}if(typeof window<"u"){let d=(g)=>{if(g.key===e&&g.newValue!==null)try{let m=a(g.newValue);i=m,c.forEach((k)=>k(m))}catch(m){n(m)}else if(g.key===e&&g.newValue===null)i=t,c.forEach((m)=>m(t))};window.addEventListener("storage",d)}return{value:i,setValue:p,removeValue:u}}function X(e,t={}){let{defaultValue:s=!1}=t,o=s,a=null;if(typeof window<"u"&&"matchMedia"in window){a=window.matchMedia(e),o=a.matches;let r=(i)=>{o=i.matches};if(a.addEventListener)a.addEventListener("change",r);else a.addListener(r)}function n(){if(a)o=a.matches}return{matches:o,updateMatches:n}}var Q={xs:"(min-width: 320px)",sm:"(min-width: 640px)",md:"(min-width: 768px)",lg:"(min-width: 1024px)",xl:"(min-width: 1280px)","2xl":"(min-width: 1536px)",mobile:"(max-width: 767px)",tablet:"(min-width: 768px) and (max-width: 1023px)",desktop:"(min-width: 1024px)",dark:"(prefers-color-scheme: dark)",light:"(prefers-color-scheme: light)",reducedMotion:"(prefers-reduced-motion: reduce)",portrait:"(orientation: portrait)",landscape:"(orientation: landscape)"};function si(e){return X(Q[e])}function oi(){return X(Q.mobile)}function ai(){return X(Q.desktop)}function ni(){return X(Q.dark)}function ri(){return X(Q.reducedMotion)}function se(){return globalThis.stx?.overlays}function li(e,t){se()?.open(e,t)}function ci(e){se()?.close(e)}function di(e){return se()?.isTop(e)??!1}function pi(){return se()?.list()??[]}var Le=["gray","neutral","slate","zinc","red","green","yellow","blue","indigo"],hi="--stx-color";function at(e,t){return t===void 0?`var(${e})`:`var(${e}, ${t})`}function fi(e={}){let t={};for(let s of Le){let o=e[s];if(!o||typeof o==="string")continue;let a={};for(let[n,r]of Object.entries(o))a[n]=at(`--stx-color-${s}-${n}`,r);t[s]=a}return t}function mi(e={}){let t=[];for(let s of Le){let o=e[s];if(!o||typeof o==="string")continue;for(let a of Object.keys(o))t.push(`--stx-color-${s}-${a}`)}return t}var rt="./Accordion-ehpymjam.stx";var lt="./AccordionItem-fc4ekdqf.stx";var dt="./Audio-ay34sh1f.stx";var ut="./Login-4666t7j4.stx";var ft="./Signup-pm2r0f2m.stx";var gt="./TwoFactorChallenge-3tsbfdsd.stx";var xt="./Avatar-6gexb2xv.stx";var wt="./Badge-33phrqza.stx";var kt="./Breadcrumb-cgw1bb6s.stx";class M extends Error{component;context;constructor(e,t,s={}){let o=M.formatMessage(e,t,s);super(o);if(this.name="ComponentError",this.component=e,this.context={component:e,...s},Error.captureStackTrace)Error.captureStackTrace(this,M)}static formatMessage(e,t,s){let o=`[${e}] ${t}`;if(s.prop)o+=`
4
4
  Prop: "${s.prop}"`;if(s.received!==void 0)o+=`
5
5
  Received: ${JSON.stringify(s.received)}`;if(s.expected!==void 0){let a=Array.isArray(s.expected)?s.expected.map((n)=>JSON.stringify(n)).join(", "):JSON.stringify(s.expected);o+=`
6
6
  Expected: ${a}`}if(s.details)o+=`
7
7
  Details: ${s.details}`;if(s.docsUrl)o+=`
8
8
  Documentation: ${s.docsUrl}`;else if(e)o+=`
9
- Documentation: https://stacksjs.com/components/${e.toLowerCase()}`;return o}toJSON(){return{name:this.name,message:this.message,component:this.component,context:this.context,stack:this.stack}}}var J={invalidProp(e,t,s,o){return new M(e,`Invalid prop value for "${t}"`,{prop:t,received:s,expected:o,details:Array.isArray(o)?`The "${t}" prop must be one of the allowed values`:`The "${t}" prop does not match the expected type`})},requiredProp(e,t){return new M(e,`Required prop "${t}" is missing`,{prop:t,details:`The "${t}" prop is required for ${e} to function correctly`})},invalidType(e,t,s,o){return new M(e,`Invalid type for prop "${t}"`,{prop:t,received:typeof s,expected:o,details:`Expected "${t}" to be of type ${o}, but received ${typeof s}`})},componentNotFound(e){return new M("ComponentLoader",`Component "${e}" not found`,{component:e,details:"Make sure the component is properly imported and registered"})},invalidChildren(e,t,s){return new M(e,"Invalid children",{received:typeof t,expected:s,details:`${e} expects ${s} as children`})},stateUpdate(e,t,s){return new M(e,`Failed to update state "${t}"`,{details:s.message})},eventHandler(e,t,s){return new M(e,`Error in "${t}" event handler`,{details:s.message})},render(e,t){return new M(e,"Failed to render component",{details:t.message})}},oe=null;function Vi(e){oe=e}function Bi(){oe=null}function ae(e,t={}){let{throwError:s=!0,logError:o=!0}=t;if(o){if(console.error("Component Error:",e),e instanceof M)console.group("Error Details"),console.log("Component:",e.component),console.log("Context:",e.context),console.groupEnd()}if(oe)try{oe(e)}catch(a){console.error("Error in error handler:",a)}if(s)throw e}function Oe(e,t,s){return(...o)=>{try{let a=e(...o);if(a instanceof Promise)return a.catch((n)=>{let r=J.eventHandler(t,s,n);throw ae(r,{throwError:!1}),r});return a}catch(a){let n=J.eventHandler(t,s,a);throw ae(n,{throwError:!1}),n}}}function Ct(e,t){if(!e)throw t}function $t(e,t,s={}){let o=M.formatMessage(e,t,s);console.warn(`\u26A0\uFE0F ${o}`)}function qi(e,t){Ct(e,t)}function Wi(e){let t=typeof process<"u"&&process.env.DEBUG==="true";return{log(...s){if(t)console.log(`[${e}]`,...s)},warn(s,o){$t(e,s,o)},error(s,o){let a=new M(e,s,o);ae(a,{throwError:!1})}}}function Ki(e,t,s){try{return t()}catch(o){let a=J.render(e,o);return ae(a,{throwError:!1}),s}}class L{validate;message;isRequired;constructor(e,t,s=!1){this.validate=e;this.message=t;this.isRequired=s}get required(){return new L(this.validate,this.message,!0)}}var l={string:new L((e)=>typeof e==="string",(e,t,s)=>`Invalid prop \`${t}\` of type \`${typeof e}\` supplied to \`${s}\`, expected \`string\`.`),number:new L((e)=>typeof e==="number"&&!Number.isNaN(e),(e,t,s)=>`Invalid prop \`${t}\` of type \`${typeof e}\` supplied to \`${s}\`, expected \`number\`.`),boolean:new L((e)=>typeof e==="boolean",(e,t,s)=>`Invalid prop \`${t}\` of type \`${typeof e}\` supplied to \`${s}\`, expected \`boolean\`.`),func:new L((e)=>typeof e==="function",(e,t,s)=>`Invalid prop \`${t}\` of type \`${typeof e}\` supplied to \`${s}\`, expected \`function\`.`),object:new L((e)=>typeof e==="object"&&e!==null&&!Array.isArray(e),(e,t,s)=>`Invalid prop \`${t}\` of type \`${typeof e}\` supplied to \`${s}\`, expected \`object\`.`),array:new L((e)=>Array.isArray(e),(e,t,s)=>`Invalid prop \`${t}\` of type \`${typeof e}\` supplied to \`${s}\`, expected \`array\`.`),any:new L(()=>!0,()=>""),oneOf(e){return new L((t)=>e.includes(t),(t,s,o)=>`Invalid prop \`${s}\` of value \`${t}\` supplied to \`${o}\`, expected one of [${e.map((a)=>JSON.stringify(a)).join(", ")}].`)},oneOfType(e){return new L((t,s,o)=>e.some((a)=>a.validate(t,s,o)),(t,s,o)=>`Invalid prop \`${s}\` supplied to \`${o}\`, expected one of the specified types.`)},arrayOf(e){return new L((t,s,o)=>{if(!Array.isArray(t))return!1;return t.every((a,n)=>e.validate(a,`${s}[${n}]`,o))},(t,s,o)=>`Invalid prop \`${s}\` supplied to \`${o}\`, expected array of specified type.`)},shape(e){return new L((t,s,o)=>{if(typeof t!=="object"||t===null||Array.isArray(t))return!1;for(let[a,n]of Object.entries(e)){if(n.isRequired&&!(a in t))return!1;if(a in t&&!n.validate(t[a],`${s}.${a}`,o))return!1}return!0},(t,s,o)=>`Invalid prop \`${s}\` supplied to \`${o}\`, expected object matching specified shape.`)},instanceOf(e){return new L((t)=>t instanceof e,(t,s,o)=>`Invalid prop \`${s}\` supplied to \`${o}\`, expected instance of \`${e.name}\`.`)},custom(e,t){return new L(e,typeof t==="string"?()=>t:t)},min(e){return new L((t)=>typeof t==="number"&&t>=e,(t,s,o)=>`Invalid prop \`${s}\` of value \`${t}\` supplied to \`${o}\`, expected value >= ${e}.`)},max(e){return new L((t)=>typeof t==="number"&&t<=e,(t,s,o)=>`Invalid prop \`${s}\` of value \`${t}\` supplied to \`${o}\`, expected value <= ${e}.`)},range(e,t){return new L((s)=>typeof s==="number"&&s>=e&&s<=t,(s,o,a)=>`Invalid prop \`${o}\` of value \`${s}\` supplied to \`${a}\`, expected value between ${e} and ${t}.`)},pattern(e){return new L((t)=>typeof t==="string"&&e.test(t),(t,s,o)=>`Invalid prop \`${s}\` of value \`${t}\` supplied to \`${o}\`, expected value matching pattern ${e}.`)},email:new L((e)=>typeof e==="string"&&/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e),(e,t,s)=>`Invalid prop \`${t}\` of value \`${e}\` supplied to \`${s}\`, expected valid email address.`),url:new L((e)=>{if(typeof e!=="string")return!1;try{let t=new URL(e);return!0}catch{return!1}},(e,t,s)=>`Invalid prop \`${t}\` of value \`${e}\` supplied to \`${s}\`, expected valid URL.`)};function St(e,t,s,o={}){let{throwOnError:a=!1,logWarnings:n=!0}=o,r=[];for(let[i,c]of Object.entries(s)){let p=t[i],u=p===void 0;if(c.isRequired&&u){let d=`Required prop \`${i}\` was not specified in \`${e}\`.`;r.push(d);continue}if(u)continue;if(!c.validate(p,i,e)){let d=c.message(p,i,e);r.push(d)}}if(r.length>0){if(n)console.group(`\u26A0\uFE0F Prop validation failed for \`${e}\``),r.forEach((i)=>console.warn(i)),console.groupEnd();if(a)throw Error(`Prop validation failed for \`${e}\`:
9
+ Documentation: https://stacksjs.com/components/${e.toLowerCase()}`;return o}toJSON(){return{name:this.name,message:this.message,component:this.component,context:this.context,stack:this.stack}}}var J={invalidProp(e,t,s,o){return new M(e,`Invalid prop value for "${t}"`,{prop:t,received:s,expected:o,details:Array.isArray(o)?`The "${t}" prop must be one of the allowed values`:`The "${t}" prop does not match the expected type`})},requiredProp(e,t){return new M(e,`Required prop "${t}" is missing`,{prop:t,details:`The "${t}" prop is required for ${e} to function correctly`})},invalidType(e,t,s,o){return new M(e,`Invalid type for prop "${t}"`,{prop:t,received:typeof s,expected:o,details:`Expected "${t}" to be of type ${o}, but received ${typeof s}`})},componentNotFound(e){return new M("ComponentLoader",`Component "${e}" not found`,{component:e,details:"Make sure the component is properly imported and registered"})},invalidChildren(e,t,s){return new M(e,"Invalid children",{received:typeof t,expected:s,details:`${e} expects ${s} as children`})},stateUpdate(e,t,s){return new M(e,`Failed to update state "${t}"`,{details:s.message})},eventHandler(e,t,s){return new M(e,`Error in "${t}" event handler`,{details:s.message})},render(e,t){return new M(e,"Failed to render component",{details:t.message})}},oe=null;function Vi(e){oe=e}function Bi(){oe=null}function ae(e,t={}){let{throwError:s=!0,logError:o=!0}=t;if(o){if(console.error("Component Error:",e),e instanceof M)console.group("Error Details"),console.log("Component:",e.component),console.log("Context:",e.context),console.groupEnd()}if(oe)try{oe(e)}catch(a){console.error("Error in error handler:",a)}if(s)throw e}function Oe(e,t,s){return(...o)=>{try{let a=e(...o);if(a instanceof Promise)return a.catch((n)=>{let r=J.eventHandler(t,s,n);throw ae(r,{throwError:!1}),r});return a}catch(a){let n=J.eventHandler(t,s,a);throw ae(n,{throwError:!1}),n}}}function Ct(e,t){if(!e)throw t}function $t(e,t,s={}){let o=M.formatMessage(e,t,s);console.warn(`\u26A0\uFE0F ${o}`)}function qi(e,t){Ct(e,t)}function Wi(e){let t=typeof process<"u"&&process.env.DEBUG==="true";return{log(...s){if(t)console.log(`[${e}]`,...s)},warn(s,o){$t(e,s,o)},error(s,o){let a=new M(e,s,o);ae(a,{throwError:!1})}}}function _i(e,t,s){try{return t()}catch(o){let a=J.render(e,o);return ae(a,{throwError:!1}),s}}class L{validate;message;isRequired;constructor(e,t,s=!1){this.validate=e;this.message=t;this.isRequired=s}get required(){return new L(this.validate,this.message,!0)}}var l={string:new L((e)=>typeof e==="string",(e,t,s)=>`Invalid prop \`${t}\` of type \`${typeof e}\` supplied to \`${s}\`, expected \`string\`.`),number:new L((e)=>typeof e==="number"&&!Number.isNaN(e),(e,t,s)=>`Invalid prop \`${t}\` of type \`${typeof e}\` supplied to \`${s}\`, expected \`number\`.`),boolean:new L((e)=>typeof e==="boolean",(e,t,s)=>`Invalid prop \`${t}\` of type \`${typeof e}\` supplied to \`${s}\`, expected \`boolean\`.`),func:new L((e)=>typeof e==="function",(e,t,s)=>`Invalid prop \`${t}\` of type \`${typeof e}\` supplied to \`${s}\`, expected \`function\`.`),object:new L((e)=>typeof e==="object"&&e!==null&&!Array.isArray(e),(e,t,s)=>`Invalid prop \`${t}\` of type \`${typeof e}\` supplied to \`${s}\`, expected \`object\`.`),array:new L((e)=>Array.isArray(e),(e,t,s)=>`Invalid prop \`${t}\` of type \`${typeof e}\` supplied to \`${s}\`, expected \`array\`.`),any:new L(()=>!0,()=>""),oneOf(e){return new L((t)=>e.includes(t),(t,s,o)=>`Invalid prop \`${s}\` of value \`${t}\` supplied to \`${o}\`, expected one of [${e.map((a)=>JSON.stringify(a)).join(", ")}].`)},oneOfType(e){return new L((t,s,o)=>e.some((a)=>a.validate(t,s,o)),(t,s,o)=>`Invalid prop \`${s}\` supplied to \`${o}\`, expected one of the specified types.`)},arrayOf(e){return new L((t,s,o)=>{if(!Array.isArray(t))return!1;return t.every((a,n)=>e.validate(a,`${s}[${n}]`,o))},(t,s,o)=>`Invalid prop \`${s}\` supplied to \`${o}\`, expected array of specified type.`)},shape(e){return new L((t,s,o)=>{if(typeof t!=="object"||t===null||Array.isArray(t))return!1;for(let[a,n]of Object.entries(e)){if(n.isRequired&&!(a in t))return!1;if(a in t&&!n.validate(t[a],`${s}.${a}`,o))return!1}return!0},(t,s,o)=>`Invalid prop \`${s}\` supplied to \`${o}\`, expected object matching specified shape.`)},instanceOf(e){return new L((t)=>t instanceof e,(t,s,o)=>`Invalid prop \`${s}\` supplied to \`${o}\`, expected instance of \`${e.name}\`.`)},custom(e,t){return new L(e,typeof t==="string"?()=>t:t)},min(e){return new L((t)=>typeof t==="number"&&t>=e,(t,s,o)=>`Invalid prop \`${s}\` of value \`${t}\` supplied to \`${o}\`, expected value >= ${e}.`)},max(e){return new L((t)=>typeof t==="number"&&t<=e,(t,s,o)=>`Invalid prop \`${s}\` of value \`${t}\` supplied to \`${o}\`, expected value <= ${e}.`)},range(e,t){return new L((s)=>typeof s==="number"&&s>=e&&s<=t,(s,o,a)=>`Invalid prop \`${o}\` of value \`${s}\` supplied to \`${a}\`, expected value between ${e} and ${t}.`)},pattern(e){return new L((t)=>typeof t==="string"&&e.test(t),(t,s,o)=>`Invalid prop \`${s}\` of value \`${t}\` supplied to \`${o}\`, expected value matching pattern ${e}.`)},email:new L((e)=>typeof e==="string"&&/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e),(e,t,s)=>`Invalid prop \`${t}\` of value \`${e}\` supplied to \`${s}\`, expected valid email address.`),url:new L((e)=>{if(typeof e!=="string")return!1;try{let t=new URL(e);return!0}catch{return!1}},(e,t,s)=>`Invalid prop \`${t}\` of value \`${e}\` supplied to \`${s}\`, expected valid URL.`)};function St(e,t,s,o={}){let{throwOnError:a=!1,logWarnings:n=!0}=o,r=[];for(let[i,c]of Object.entries(s)){let p=t[i],u=p===void 0;if(c.isRequired&&u){let d=`Required prop \`${i}\` was not specified in \`${e}\`.`;r.push(d);continue}if(u)continue;if(!c.validate(p,i,e)){let d=c.message(p,i,e);r.push(d)}}if(r.length>0){if(n)console.group(`\u26A0\uFE0F Prop validation failed for \`${e}\``),r.forEach((i)=>console.warn(i)),console.groupEnd();if(a)throw Error(`Prop validation failed for \`${e}\`:
10
10
  ${r.join(`
11
- `)}`)}return{valid:r.length===0,errors:r}}function H(e,t,s){return(o)=>St(e,o,t,s)}function Ui(e,t,s="value"){if(!t.validate(e,s,"assertion"))throw Error(t.message(e,s,"assertion"))}function Gi(e,t,s="value"){if(!t.validate(e,s,"warning"))console.warn(t.message(e,s,"warning"))}var Et="./Button-gmct2gvq.stx";var It={variant:l.oneOf(["primary","secondary","outline","ghost","danger"]),size:l.oneOf(["xs","sm","md","lg","xl"]),disabled:l.boolean,loading:l.boolean,type:l.oneOf(["button","submit","reset"]),fullWidth:l.boolean,label:l.string,text:l.string,leftIcon:l.string,rightIcon:l.string,className:l.string,onClick:l.func},Zi=H("Button",It);function el(e){return Oe(e,"Button","onClick")}function tl(e){if(e&&!["primary","secondary","outline","ghost","danger"].includes(e))throw J.invalidProp("Button","variant",e,["primary","secondary","outline","ghost","danger"])}function sl(e){if(e&&!["xs","sm","md","lg","xl"].includes(e))throw J.invalidProp("Button","size",e,["xs","sm","md","lg","xl"])}var At="./Calendar-5vs6x7gj.stx";var Ot="./DateRangePicker-4zmf34e4.stx";var Dt="./EmptyState-snj7gbsn.stx";var Mt="./ErrorState-qb7af5zb.stx";var jt="./ThemeToggle-4wm9zare.stx";var Ft="./Card-r55zpjqh.stx";var Bt="./Checkbox-80myyzzm.stx";var Wt="./ChoiceChips-8dcf172n.stx";var _t="./Combobox-9n04ec5w.stx";var Gt="./ComboboxButton-4r6a45s1.stx";var Yt="./ComboboxInput-1gyfpnca.stx";var Qt="./ComboboxOption-wkw70js7.stx";var es="./ComboboxOptions-zhr9b6rx.stx";var ss="./CommandPalette-qqjdbcyg.stx";var as="./CommandPaletteItem-7290ce1z.stx";var rs="./Dialog-7q0a67ge.stx";var ls="./DialogBackdrop-de5m5m4w.stx";var ds="./DialogDescription-yd2jgt2m.stx";var us="./DialogPanel-qa5j5ns2.stx";var fs="./DialogTitle-nw0pw114.stx";var gs="./Drawer-nywb36q5.stx";var xs="./Dropdown-hb8ks69x.stx";var ws="./DropdownButton-wxc25hsy.stx";var ks="./DropdownItem-af0vzc8a.stx";var $s="./DropdownItems-bkz7jkyz.stx";var Ts="./Form-cybgg9ym.stx";var Es={action:l.string,method:l.oneOf(["GET","POST","PUT","DELETE","PATCH"]),validationSchema:l.object,initialValues:l.object,validateOnChange:l.boolean,validateOnBlur:l.boolean,onSubmit:l.func,onError:l.func,className:l.string},gc=H("Form",Es);var Ps="./GroupedList-j3sxv5pb.stx";var Ls="./GroupedListRow-v52zmzpk.stx";var Ns="./Image-g6tvb6sf.stx";var Rs="./EmailInput-sf9jfrgz.stx";var zs="./NumberInput-pq4k2k4k.stx";var Hs="./PasswordInput-r51qzgc0.stx";var Vs="./SearchInput-w15r5t95.stx";var qs="./TextInput-1kvx4pte.stx";var Ws={value:l.string,onChange:l.func,placeholder:l.string,disabled:l.boolean,readonly:l.boolean,size:l.oneOf(["sm","md","lg"]),error:l.boolean,label:l.string,helperText:l.string,required:l.boolean,className:l.string,inputClassName:l.string},Ks={value:l.string,onChange:l.func,placeholder:l.string,disabled:l.boolean,readonly:l.boolean,size:l.oneOf(["sm","md","lg"]),error:l.boolean,label:l.string,helperText:l.string,required:l.boolean,className:l.string,inputClassName:l.string,leftIcon:l.string,rightIcon:l.string,clearable:l.boolean,maxLength:l.number,showCount:l.boolean,type:l.oneOf(["text","date","time","datetime-local","month","week","url","tel","color","search","email","number","password"]),pattern:l.string,list:l.string,minLength:l.number,htmlSize:l.number,autofocus:l.boolean},_s={value:l.string,onChange:l.func,placeholder:l.string,disabled:l.boolean,readonly:l.boolean,size:l.oneOf(["sm","md","lg"]),error:l.boolean,label:l.string,helperText:l.string,required:l.boolean,className:l.string,inputClassName:l.string,min:l.number,max:l.number,step:l.number,showControls:l.boolean},Us={value:l.string,onChange:l.func,placeholder:l.string,disabled:l.boolean,readonly:l.boolean,size:l.oneOf(["sm","md","lg"]),error:l.boolean,label:l.string,helperText:l.string,required:l.boolean,className:l.string,inputClassName:l.string,showStrength:l.boolean},Gs={value:l.string,onChange:l.func,placeholder:l.string,disabled:l.boolean,readonly:l.boolean,size:l.oneOf(["sm","md","lg"]),error:l.boolean,label:l.string,helperText:l.string,required:l.boolean,className:l.string,inputClassName:l.string,onSearch:l.func,loading:l.boolean},Nc=H("TextInput",Ks),Dc=H("EmailInput",Ws),Rc=H("PasswordInput",Us),Mc=H("NumberInput",_s),zc=H("SearchInput",Gs);var Ys="./List-dvszwyn2.stx";var Qs="./Listbox-83j2q4x6.stx";var eo="./ListboxButton-gan8e3nw.stx";var so="./ListboxLabel-ka0hfm7b.stx";var ao="./ListboxOption-gpaqvk3s.stx";var ro="./ListboxOptions-2928864k.stx";var lo="./FilterChip-bynt5maa.stx";var po="./FilterChips-mpmev5v5.stx";var ho="./ListRow-nvyg2fwb.stx";var mo="./NavBar-ky8tedjb.stx";var bo="./SectionCard-8b5fyrjd.stx";var vo="./TabBar-6m1ajm1d.stx";var yo="./TabBarItem-kddfnhk3.stx";var Co="./Navigator-1yk1c3pp.stx";var So="./Notification-b3cz24f0.stx";var Eo="./Pager-5e7knyqh.stx";var Po="./PagerDots-076w890y.stx";var Lo="./Pagination-8bhbkpcp.stx";var No="./Checkout-crbegxyv.stx";var Ro="./DefaultPaymentMethod-ss3x61tr.stx";var zo="./PaymentMethods-z4hhr0kv.stx";var Ho="./SubscriptionCheckout-rdcv32n1.stx";var Vo="./Popover-jjt7p7sn.stx";var qo="./PopoverButton-ks3cttd9.stx";var Ko="./PopoverPanel-ddgj4gz3.stx";var Uo="./Portal-m73vz879.stx";var Jo="./Progress-2qzb77kc.stx";var Xo="./Radio-8153x74w.stx";var Zo="./RadioGroup-smqcqgds.stx";var ta="./RadioGroupDescription-z34r9avr.stx";var oa="./RadioGroupLabel-ka0hfm7b.stx";var na="./RadioGroupOption-twcw1b2a.stx";var ia="./SegmentedControl-9b1vh960.stx";var ca="./Select-1cnqbcmg.stx";var pa="./Sidebar-8dygywjv.stx";var ha="./SidebarFooter-s7skj92y.stx";var ma="./SidebarHeader-x7jdhmyr.stx";var ba="./SidebarItem-r4f2pref.stx";var va="./SidebarPinned-48kyk193.stx";var ya="./SidebarSection-5sqza2j6.stx";var Ca="./SidebarSpace-bwv98azf.stx";var Sa="./SidebarSpaces-mdtrynr2.stx";var Ea="./SidebarSpaceSwitcher-1mycft2g.stx";var ne={blue:"#0088ff",red:"#ff383c",pink:"#ff2d55",orange:"#ff8d28",yellow:"#ffcc00",green:"#34c759",teal:"#00c3d0",cyan:"#00c0e8",indigo:"#6155f5",purple:"#cb30e0",brown:"#ac7f5e",gray:"#8e8e93"},_={pane:["bg-[#f2f2f4]/90 dark:bg-[#1c1c1e]/88","backdrop-blur-[50px] backdrop-saturate-[180%]","text-black dark:text-white","select-none"].join(" "),selection:"accent",layers:{shimmerRim:!0},scrollArea:"flex-1 overflow-y-auto overflow-x-hidden px-[10px] pb-[10px]",sectionHeader:["group/section flex w-full items-center","pl-[8px] pr-[6px] pt-[16px] pb-[5px]","text-[11px] font-semibold leading-[13px]","text-[#3c3c43]/60 dark:text-[#ebebf5]/60"].join(" "),sectionChevron:["i-f7-chevron-down h-[11px] w-[11px] ml-auto","text-[#3c3c43]/45 dark:text-[#ebebf5]/45","opacity-0 group-hover/section:opacity-100 transition-opacity duration-150","transition-transform duration-200"].join(" "),sectionGroup:"flex flex-col",item:{base:["flex w-full items-center","h-[32px] rounded-[8px] pl-[4px] pr-[8px]","text-[13px] leading-[16px] font-normal","text-black dark:text-white","transition-colors duration-150 ease-out","cursor-default"].join(" "),hover:"hover:bg-black/4 dark:hover:bg-white/6",active:"",pressed:"active:bg-black/10 dark:active:bg-white/18",disabled:"opacity-40 pointer-events-none",disclosure:"flex h-[16px] w-[18px] shrink-0 items-center justify-center",chevron:["i-f7-chevron-right h-[11px] w-[11px]","text-[#3c3c43]/55 dark:text-[#ebebf5]/55","transition-transform duration-200 ease-out"].join(" "),iconSlot:"flex h-[20px] w-[22px] shrink-0 items-center justify-center mr-[7px]",icon:"h-[17px] w-[17px]",image:"h-[20px] w-[20px] rounded-[4px] object-cover shadow-sm",label:"flex-1 truncate text-left",count:["ml-[8px] shrink-0 tabular-nums","text-[13px] leading-[16px]","text-[#3c3c43]/60 dark:text-[#ebebf5]/60"].join(" "),indentPerLevel:16}},Ia={selection:"classes",pane:"bg-[#f4f4f3] dark:bg-neutral-950 text-zinc-950 dark:text-white select-none",layers:{},scrollArea:"flex-1 overflow-y-auto overflow-x-hidden px-5 py-5",sectionHeader:"group/section flex w-full items-center gap-2.5 px-4 pb-2 pt-5 text-[13px] font-semibold uppercase tracking-[0.12em] text-zinc-400 dark:text-zinc-500",sectionChevron:"i-f7-chevron-down h-3 w-3 ml-auto opacity-0 group-hover/section:opacity-100 transition-opacity duration-150 transition-transform duration-200",sectionGroup:"flex flex-col space-y-1",item:{base:"flex w-full items-center gap-3 rounded-[16px] px-3.5 py-2 text-[14px] leading-tight transition-colors duration-150",hover:"hover:bg-[#ececea] hover:text-zinc-950 dark:hover:bg-white/10",active:"bg-[#e7e7e5] text-zinc-950 dark:bg-white/12 dark:text-white",pressed:"active:bg-[#e2e2e0] dark:active:bg-white/15",disabled:"opacity-50 pointer-events-none",disclosure:"flex h-4 w-4 shrink-0 items-center justify-center",chevron:"i-f7-chevron-right h-3 w-3 opacity-50 transition-transform duration-200",iconSlot:"flex h-5 w-5 shrink-0 items-center justify-center",icon:"h-[18px] w-[18px] text-zinc-500 dark:text-zinc-500",image:"h-5 w-5 rounded object-cover",label:"flex-1 truncate text-left text-zinc-700 dark:text-zinc-300",count:"ml-auto grid h-5 min-w-5 place-items-center rounded-full bg-white/70 px-1.5 text-[11px] font-medium text-zinc-500 shadow-sm dark:bg-white/10 dark:text-zinc-400",indentPerLevel:12}},Pa={selection:"classes",pane:"bg-[#f3f3f1]/48 dark:bg-neutral-950/32 backdrop-blur-3xl backdrop-saturate-150 text-zinc-950 dark:text-white select-none",layers:{tint:"bg-[linear-gradient(112deg,rgba(255,255,255,0.20)_0%,rgba(255,255,255,0.04)_45%,rgba(226,226,222,0.16)_100%)] dark:bg-[linear-gradient(112deg,rgba(255,255,255,0.08)_0%,rgba(255,255,255,0.02)_46%,rgba(255,255,255,0.06)_100%)]"},scrollArea:"flex-1 overflow-y-auto overflow-x-hidden px-5 py-2",sectionHeader:"group/section flex w-full items-center gap-2.5 px-3 pb-1.5 pt-3 rounded-[14px] text-[12px] font-semibold uppercase tracking-[0.10em] text-zinc-500/80 dark:text-zinc-400/80",sectionChevron:"i-f7-chevron-down h-3 w-3 ml-auto opacity-0 group-hover/section:opacity-100 transition-opacity duration-150 transition-transform duration-200",sectionGroup:"flex flex-col space-y-1",item:{base:"flex w-full items-center gap-3 rounded-[14px] px-3 py-1.5 text-[13.5px] leading-tight transition-colors duration-150",hover:"hover:bg-white/38 hover:text-zinc-950 dark:hover:bg-white/10",active:"bg-[#e8e8e6]/90 text-zinc-950 dark:bg-white/12 dark:text-white",pressed:"active:bg-white/50 dark:active:bg-white/15",disabled:"opacity-50 pointer-events-none",disclosure:"flex h-4 w-4 shrink-0 items-center justify-center",chevron:"i-f7-chevron-right h-3 w-3 opacity-50 transition-transform duration-200",iconSlot:"flex h-5 w-5 shrink-0 items-center justify-center",icon:"h-[18px] w-[18px] text-zinc-600 dark:text-zinc-400",image:"h-5 w-5 rounded object-cover",label:"flex-1 truncate text-left text-zinc-700 dark:text-zinc-300",count:"ml-auto grid h-5 min-w-5 place-items-center rounded-full bg-white/72 px-1.5 text-[11px] font-medium text-zinc-500 shadow-sm dark:bg-white/10 dark:text-zinc-400",indentPerLevel:12}},Aa={selection:"classes",pane:["bg-[#f7f5f1]/92 dark:bg-[#1a1a1c]/92","backdrop-blur-[40px] backdrop-saturate-[160%]","text-[#2c2a28] dark:text-[#ededf0]","select-none"].join(" "),layers:{tint:["bg-[linear-gradient(180deg,var(--stx-sidebar-tint,rgba(255,251,242,0.55))_0%,rgba(255,255,255,0)_38%)]","dark:bg-[linear-gradient(180deg,var(--stx-sidebar-tint,rgba(255,255,255,0.05))_0%,rgba(255,255,255,0)_42%)]"].join(" ")},scrollArea:"flex-1 overflow-y-auto overflow-x-hidden px-[16px] pb-[8px]",sectionHeader:["group/section flex w-full items-center","px-[8px] pt-[14px] pb-[4px]","text-[11px] font-medium leading-[13px]","opacity-55"].join(" "),sectionChevron:["i-f7-chevron-down h-[10px] w-[10px] ml-auto","opacity-0 group-hover/section:opacity-100 transition-opacity duration-150","transition-transform duration-200"].join(" "),sectionGroup:"flex flex-col space-y-[2px]",item:{base:["flex w-full items-center","h-[30px] rounded-[8px] pl-[6px] pr-[8px]","text-[13px] leading-[16px] font-normal","text-current","transition-[background-color,box-shadow,color] duration-150 ease-out","cursor-default"].join(" "),hover:"hover:bg-white/55 dark:hover:bg-white/8",active:["bg-white dark:bg-white/14","font-medium","shadow-[0_1px_2px_rgba(0,0,0,0.08)] dark:shadow-[0_1px_2px_rgba(0,0,0,0.35)]","ring-1 ring-black/5 dark:ring-white/8"].join(" "),pressed:"active:bg-white/80 dark:active:bg-white/18",disabled:"opacity-40 pointer-events-none",disclosure:"flex h-[16px] w-[16px] shrink-0 items-center justify-center",chevron:["i-f7-chevron-right h-[10px] w-[10px] opacity-45","transition-transform duration-200 ease-out"].join(" "),iconSlot:"flex h-[18px] w-[18px] shrink-0 items-center justify-center mr-[8px]",icon:"h-[16px] w-[16px]",image:"h-[18px] w-[18px] rounded-[5px] object-cover shadow-sm",label:"flex-1 truncate text-left",count:["ml-[8px] shrink-0 tabular-nums","text-[12px] leading-[16px] opacity-45"].join(" "),indentPerLevel:14}},La={..._,pane:"bg-stone-100 dark:bg-neutral-900 text-black dark:text-white select-none",layers:{}},Oa={..._,pane:"bg-transparent text-black dark:text-white select-none",layers:{}},Na={..._,pane:"bg-white/50 dark:bg-black/40 backdrop-blur-3xl backdrop-saturate-200 text-black dark:text-white select-none",layers:{}},Ne={macos:_,tahoe:_,"macos-tahoe":_,"macos-latest":_,arc:Aa,workspace:Ia,desktop:Pa,solid:La,transparent:Oa,vibrancy:Na};function Ip(e){return Ne[e||"macos"]||Ne.macos}function Pp(e){if(!e)return;return ne[e]||e}var Da=ne.gray;function q(e,t,s){return`color-mix(in oklab, ${e} ${t}%, ${s})`}function De(e){return{light:{from:q(e,35,"#ffffff"),to:q(e,12.5,"#ffffff"),ink:q(e,22,"#17171b"),accent:q(e,88,"#2a2a30")},dark:{from:q(e,27,"#101014"),to:q(e,10,"#08080b"),ink:q(e,12,"#f4f4f7"),accent:q(e,74,"#ffffff")}}}function Op(e,t){return`linear-gradient(180deg, ${e} 0%, ${t} 100%)`}function Ra(e){if(!e)return De(Da);if(typeof e!=="string")return e;return De(ne[e]||e)}function Ma(e){return[`--stx-space-light-from: ${e.light.from}`,`--stx-space-light-to: ${e.light.to}`,`--stx-space-light-ink: ${e.light.ink}`,`--stx-space-light-accent: ${e.light.accent}`,`--stx-space-dark-from: ${e.dark.from}`,`--stx-space-dark-to: ${e.dark.to}`,`--stx-space-dark-ink: ${e.dark.ink}`,`--stx-space-dark-accent: ${e.dark.accent}`].join("; ")}function Re(e,t,s,o){if(!e||!e.label)return null;return{id:e.id||`${t}-${s}`,label:e.label,icon:e.icon||o}}function za(e){let t=Ra(e.tint);return{id:e.id,label:e.label||"",icon:e.icon||"",pinned:e.pinned||[],sections:e.sections||[],action:Re(e.action,e.id,"action","i-f7-plus"),clear:Re(e.clear,e.id,"clear","i-f7-arrow-down"),tint:t,style:Ma(t),deferred:e.deferred===!0,showTitle:e.showTitle??!0}}function Np(e){return(e||[]).map(za)}function Dp(e,t){if(!t)return 0;let s=e.findIndex((o)=>o.id===t);return s===-1?0:s}function Rp(e){return e.map((t)=>t.tint)}var Ha="./Skeleton-m4p66zcs.stx";var Va="./Spinner-vhnc3y03.stx";var qa="./Stepper-68gxcmej.stx";var Ka="./StepperStep-zf4pq1s0.stx";class re{storage;namespace;watchers=new Map;encryptionKey="stx-storage-key";constructor(e="local",t=""){if(this.storage=e==="local"?globalThis.localStorage:globalThis.sessionStorage,this.namespace=t,typeof window<"u")window.addEventListener("storage",this.handleStorageEvent.bind(this))}handleStorageEvent(e){if(!e.key)return;let t=this.namespace&&e.key.startsWith(`${this.namespace}:`)?e.key.slice(this.namespace.length+1):e.key,s=this.watchers.get(t);if(s){let o=e.oldValue?JSON.parse(e.oldValue).value:null,a=e.newValue?JSON.parse(e.newValue).value:null;s.forEach((n)=>n(a,o,t))}}encrypt(e){let t="";for(let s=0;s<e.length;s++)t+=String.fromCharCode(e.charCodeAt(s)^this.encryptionKey.charCodeAt(s%this.encryptionKey.length));return btoa(t)}decrypt(e){try{let t=atob(e),s="";for(let o=0;o<t.length;o++)s+=String.fromCharCode(t.charCodeAt(o)^this.encryptionKey.charCodeAt(o%this.encryptionKey.length));return s}catch{return e}}compress(e){if(e.length<100)return e;let t={},s=256,o=[],a="";for(let n=0;n<e.length;n++){let r=e.charAt(n),i=a+r;if(t[i]!==void 0)a=i;else o.push(a.length>1?t[a]:a.charCodeAt(0)),t[i]=s++,a=r}if(a!=="")o.push(a.length>1?t[a]:a.charCodeAt(0));return JSON.stringify(o)}decompress(e){try{let t=JSON.parse(e);if(!Array.isArray(t))return e;let s={},o=256,a=String.fromCharCode(t[0]),n=a;for(let r=1;r<t.length;r++){let i=t[r],c;if(s[i]!==void 0)c=s[i];else if(i===o)c=a+a.charAt(0);else return e;n+=c,s[o++]=a+c.charAt(0),a=c}return n}catch{return e}}getKey(e){return this.namespace?`${this.namespace}:${e}`:e}set(e,t,s){let o=this.getKey(e),a=this.get(e),n={value:t,timestamp:Date.now(),expire:s?.expire,encrypted:s?.encrypt||!1,compressed:s?.compress||!1};try{let r=JSON.stringify(n);if(s?.compress)r=this.compress(r);if(s?.encrypt)r=this.encrypt(r);this.storage.setItem(o,r),this.notifyWatchers(e,t,a)}catch(r){console.error("Storage set error:",r)}}get(e){let t=this.getKey(e);try{let s=this.storage.getItem(t);if(!s)return null;if(s.match(/^[A-Z0-9+/]+=*$/i))try{s=this.decrypt(s)}catch{}if(s.startsWith("["))try{s=this.decompress(s)}catch{}let o=JSON.parse(s);if(o.expire&&Date.now()-o.timestamp>o.expire)return this.remove(e),null;return o.value}catch(s){return console.error("Storage get error:",s),null}}watch(e,t){if(!this.watchers.has(e))this.watchers.set(e,new Set);return this.watchers.get(e).add(t),()=>{let s=this.watchers.get(e);if(s){if(s.delete(t),s.size===0)this.watchers.delete(e)}}}notifyWatchers(e,t,s){let o=this.watchers.get(e);if(o)o.forEach((a)=>a(t,s,e))}remove(e){let t=this.getKey(e),s=this.get(e);this.storage.removeItem(t),this.notifyWatchers(e,null,s)}clear(){if(this.namespace)this.keys().forEach((t)=>this.remove(t));else this.storage.clear()}has(e){return this.get(e)!==null}keys(){let e=Object.keys(this.storage);if(this.namespace){let t=`${this.namespace}:`;return e.filter((s)=>s.startsWith(t)).map((s)=>s.slice(t.length))}return e}size(){return this.keys().length}getQuota(){if("storage"in navigator&&"estimate"in navigator.storage)return null;try{let e=0;for(let s=0;s<this.storage.length;s++){let o=this.storage.key(s);if(o){let a=this.storage.getItem(o)||"";e+=o.length+a.length}}let t=5242880;return{usage:e*2,quota:t,percentage:e*2/t*100}}catch{return null}}setMany(e,t){Object.entries(e).forEach(([s,o])=>{this.set(s,o,t)})}getMany(e){let t={};return e.forEach((s)=>{t[s]=this.get(s)}),t}removeMany(e){e.forEach((t)=>this.remove(t))}}var iu={local:new re("local"),session:new re("session")};function lu(e="local",t){return new re(e,t)}var Ua="./Switch-zfjdd6dw.stx";var Ja="./Table-0a4y46vd.stx";var Xa="./TableBody-y49bqb1p.stx";var Za="./TableCell-jhvsxw8b.stx";var tn="./TableHead-e9xvjx2j.stx";var on="./TableHeader-krzcx4sv.stx";var nn="./TableRow-dt8e11aj.stx";var ln="./Tab-j9f4t166.stx";var dn="./TabList-r1pc87xs.stx";var un="./TabPanel-5htevsq6.stx";var fn="./Tabs-psm5wj7c.stx";var gn="./Teleport-vqs75x36.stx";var xn="./Textarea-9xmhjqp8.stx";var wn="./Tooltip-pev702hb.stx";var kn="./Transition-7m0mk45s.stx";var $n="./Video-gjrfc8ne.stx";var Tn="./VirtualList-fa7v5a3h.stx";var In="./VirtualTable-kp7b3wyv.stx";var Pn=0;function Me(e="a11y"){return`${e}-${++Pn}-${Date.now()}`}function sh(e,t,s={}){let{visible:o=!1,id:a=Me("label")}=s,n=document.createElement(o?"label":"span");if(n.id=a,n.textContent=e,!o)Object.assign(n.style,{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",border:"0"});if(t)if(t.setAttribute("aria-labelledby",a),t.parentElement)t.parentElement.insertBefore(n,t);else document.body.appendChild(n);return a}function oh(e,t){let s=Me("desc"),o=document.createElement("span");if(o.id=s,o.textContent=e,Object.assign(o.style,{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",border:"0"}),t)if(t.setAttribute("aria-describedby",s),t.parentElement)t.parentElement.insertBefore(o,t);else document.body.appendChild(o);return s}function ah(e,t="polite"){let s=document.createElement("div");s.setAttribute("role","status"),s.setAttribute("aria-live",t),s.setAttribute("aria-atomic","true"),Object.assign(s.style,{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",border:"0"}),document.body.appendChild(s),setTimeout(()=>{s.textContent=e},100),setTimeout(()=>{s.parentNode?.removeChild(s)},1000)}function ve(e){let t=["a[href]","area[href]",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])","button:not([disabled])","iframe","object","embed","[contenteditable]",'[tabindex]:not([tabindex="-1"])'].join(",");return Array.from(e.querySelectorAll(t)).filter((s)=>s.offsetParent!==null)}function nh(e,t={}){let{initialFocus:s,returnFocus:o,escapeDeactivates:a=!0,clickOutsideDeactivates:n=!0,allowOutsideClick:r=!1,onActivate:i,onDeactivate:c}=t,p=!1,u=!1,d=null,g=(v)=>{if(u)return;if(a&&v.key==="Escape"){v.preventDefault(),C();return}if(v.key==="Tab"){let E=ve(e);if(E.length===0){v.preventDefault();return}let P=E[0],S=E[E.length-1];if(v.shiftKey){if(document.activeElement===P)v.preventDefault(),S.focus()}else if(document.activeElement===S)v.preventDefault(),P.focus()}},m=(v)=>{if(u)return;if(!e.contains(v.target)){if(typeof r==="function"){if(!r(v)&&n)C()}else if(!r&&n)C()}};function k(){if(p)return;p=!0,d=document.activeElement;let v=s||ve(e)[0];if(v&&typeof v.focus==="function")v.focus();document.addEventListener("keydown",g),document.addEventListener("click",m),i?.()}function C(){if(!p)return;p=!1;let v=o||d;if(v&&typeof v.focus==="function")v.focus();document.removeEventListener("keydown",g),document.removeEventListener("click",m),c?.()}function y(){u=!0}function b(){u=!1}return{activate:k,deactivate:C,pause:y,unpause:b}}function rh(e,t={}){let{selector:s='[role="option"], [role="menuitem"], [role="tab"], button',initialIndex:o=0,orientation:a="both",loop:n=!0,onFocusChange:r}=t,i=o,c=()=>Array.from(e.querySelectorAll(s)),p=(d)=>{let g=c();if(d<0||d>=g.length)return;g.forEach((m,k)=>{if(k===d){if(m.setAttribute("tabindex","0"),typeof m.focus==="function")m.focus()}else m.setAttribute("tabindex","-1")}),i=d,r?.(d,g[d])},u=(d)=>{let m=c().length-1,k=!1,C=i;switch(d.key){case"ArrowRight":if(a==="horizontal"||a==="both"){if(C=i+1,C>m)C=n?0:m;k=!0}break;case"ArrowLeft":if(a==="horizontal"||a==="both"){if(C=i-1,C<0)C=n?m:0;k=!0}break;case"ArrowDown":if(a==="vertical"||a==="both"){if(C=i+1,C>m)C=n?0:m;k=!0}break;case"ArrowUp":if(a==="vertical"||a==="both"){if(C=i-1,C<0)C=n?m:0;k=!0}break;case"Home":C=0,k=!0;break;case"End":C=m,k=!0;break}if(k)d.preventDefault(),p(C)};return p(o),e.addEventListener("keydown",u),()=>{e.removeEventListener("keydown",u)}}var ih={Enter:"Enter",Space:" ",Escape:"Escape",ArrowUp:"ArrowUp",ArrowDown:"ArrowDown",ArrowLeft:"ArrowLeft",ArrowRight:"ArrowRight",Tab:"Tab",Home:"Home",End:"End",PageUp:"PageUp",PageDown:"PageDown"};function lh(e){return document.activeElement===e}function ch(e,t){let s=t||document.activeElement,o=ve(document.body),a=o.indexOf(s);if(a===-1)return;let n=e==="next"?a+1:a-1,r=o[n];if(r)r.focus()}function dh(e){if(e.getAttribute("aria-hidden")==="true")return!1;let t=window.getComputedStyle(e);if(t.display==="none"||t.visibility==="hidden")return!1;return!0}var ph={setExpanded(e,t){e.setAttribute("aria-expanded",String(t))},setSelected(e,t){e.setAttribute("aria-selected",String(t))},setChecked(e,t){e.setAttribute("aria-checked",String(t))},setDisabled(e,t){if(e.setAttribute("aria-disabled",String(t)),t)e.setAttribute("tabindex","-1");else e.removeAttribute("tabindex")},setHidden(e,t){if(t)e.setAttribute("aria-hidden","true");else e.removeAttribute("aria-hidden")},setPressed(e,t){e.setAttribute("aria-pressed",String(t))},setInvalid(e,t){e.setAttribute("aria-invalid",String(t))},setRequired(e,t){e.setAttribute("aria-required",String(t))},setLive(e,t){e.setAttribute("aria-live",t)},setBusy(e,t){e.setAttribute("aria-busy",String(t))}};function uh(e){let t=document.createElement("span");return t.textContent=e,t.className="sr-only",Object.assign(t.style,{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",border:"0"}),t}function hh(){if(typeof window.matchMedia==="function")return window.matchMedia("(prefers-reduced-motion: reduce)").matches;return!1}function fh(){if(typeof window.matchMedia==="function")return window.matchMedia("(prefers-contrast: high)").matches;return!1}function mh(){if(typeof window.matchMedia==="function"){if(window.matchMedia("(prefers-color-scheme: dark)").matches)return"dark";if(window.matchMedia("(prefers-color-scheme: light)").matches)return"light"}return null}function gh(e,t="Skip to main content"){let s=document.createElement("a");return s.href=`#${e}`,s.textContent=t,s.className="skip-link",Object.assign(s.style,{position:"absolute",top:"-40px",left:"0",background:"#000",color:"#fff",padding:"8px",textDecoration:"none",zIndex:"100"}),s.addEventListener("focus",()=>{s.style.top="0"}),s.addEventListener("blur",()=>{s.style.top="-40px"}),s}function bh(e){let t=[],s=(o)=>{let a=e.getAttribute(o);if(a){let n=a.split(" ");for(let r of n)if(!document.getElementById(r))t.push(`${o} references non-existent ID: ${r}`)}};return s("aria-labelledby"),s("aria-describedby"),s("aria-controls"),s("aria-owns"),s("aria-activedescendant"),t}var An=(e,t,s,o)=>s*e/o+t,Ln=(e,t,s,o)=>(e/=o,s*e*e+t),On=(e,t,s,o)=>(e/=o,-s*e*(e-2)+t),Nn=(e,t,s,o)=>{if(e/=o/2,e<1)return s/2*e*e+t;return e--,-s/2*(e*(e-2)-1)+t},Dn=(e,t,s,o)=>(e/=o,s*e*e*e+t),Rn=(e,t,s,o)=>(e/=o,e--,s*(e*e*e+1)+t),Mn=(e,t,s,o)=>{if(e/=o/2,e<1)return s/2*e*e*e+t;return e-=2,s/2*(e*e*e+2)+t},zn=(e,t,s,o)=>(e/=o,s*e*e*e*e+t),jn=(e,t,s,o)=>(e/=o,e--,-s*(e*e*e*e-1)+t),Hn=(e,t,s,o)=>{if(e/=o/2,e<1)return s/2*e*e*e*e+t;return e-=2,-s/2*(e*e*e*e-2)+t},Fn=(e,t,s,o)=>(e/=o,s*e*e*e*e*e+t),Vn=(e,t,s,o)=>(e/=o,e--,s*(e*e*e*e*e+1)+t),Bn=(e,t,s,o)=>{if(e/=o/2,e<1)return s/2*e*e*e*e*e+t;return e-=2,s/2*(e*e*e*e*e+2)+t},qn=(e,t,s,o)=>-s*Math.cos(e/o*(Math.PI/2))+s+t,Wn=(e,t,s,o)=>s*Math.sin(e/o*(Math.PI/2))+t,Kn=(e,t,s,o)=>-s/2*(Math.cos(Math.PI*e/o)-1)+t,_n=(e,t,s,o)=>e===0?t:s*2**(10*(e/o-1))+t,Un=(e,t,s,o)=>e===o?t+s:s*(-(2**(-10*e/o))+1)+t,Gn=(e,t,s,o)=>{if(e===0)return t;if(e===o)return t+s;if(e/=o/2,e<1)return s/2*2**(10*(e-1))+t;return e--,s/2*(-(2**(-10*e))+2)+t},Jn=(e,t,s,o)=>(e/=o,-s*(Math.sqrt(1-e*e)-1)+t),Yn=(e,t,s,o)=>(e/=o,e--,s*Math.sqrt(1-e*e)+t),Xn=(e,t,s,o)=>{if(e/=o/2,e<1)return-s/2*(Math.sqrt(1-e*e)-1)+t;return e-=2,s/2*(Math.sqrt(1-e*e)+1)+t},Qn=(e,t,s,o)=>{let a=1.70158,n=0,r=s;if(e===0)return t;if(e/=o,e===1)return t+s;if(!n)n=o*0.3;if(r<Math.abs(s))r=s,a=n/4;else a=n/(2*Math.PI)*Math.asin(s/r);return e-=1,-(r*2**(10*e)*Math.sin((e*o-a)*(2*Math.PI)/n))+t},Zn=(e,t,s,o)=>{let a=1.70158,n=0,r=s;if(e===0)return t;if(e/=o,e===1)return t+s;if(!n)n=o*0.3;if(r<Math.abs(s))r=s,a=n/4;else a=n/(2*Math.PI)*Math.asin(s/r);return r*2**(-10*e)*Math.sin((e*o-a)*(2*Math.PI)/n)+s+t},er=(e,t,s,o)=>{let a=1.70158,n=0,r=s;if(e===0)return t;if(e/=o/2,e===2)return t+s;if(!n)n=o*0.44999999999999996;if(r<Math.abs(s))r=s,a=n/4;else a=n/(2*Math.PI)*Math.asin(s/r);if(e<1)return e-=1,-0.5*(r*2**(10*e)*Math.sin((e*o-a)*(2*Math.PI)/n))+t;return e-=1,r*2**(-10*e)*Math.sin((e*o-a)*(2*Math.PI)/n)*0.5+s+t},tr=(e,t,s,o)=>(e/=o,s*e*e*(2.70158*e-1.70158)+t),sr=(e,t,s,o)=>(e/=o,e--,s*(e*e*(2.70158*e+1.70158)+1)+t),or=(e,t,s,o)=>{let a=1.70158;if(e/=o/2,e<1)return a*=1.525,s/2*(e*e*((a+1)*e-a))+t;return e-=2,a*=1.525,s/2*(e*e*((a+1)*e+a)+2)+t},we=(e,t,s,o)=>{if(e/=o,e<0.36363636363636365)return s*(7.5625*e*e)+t;else if(e<0.7272727272727273)return e-=0.5454545454545454,s*(7.5625*e*e+0.75)+t;else if(e<0.9090909090909091)return e-=0.8181818181818182,s*(7.5625*e*e+0.9375)+t;else return e-=0.9545454545454546,s*(7.5625*e*e+0.984375)+t},ze=(e,t,s,o)=>s-we(o-e,0,s,o)+t,ar=(e,t,s,o)=>{if(e<o/2)return ze(e*2,0,s,o)*0.5+t;return we(e*2-o,0,s,o)*0.5+s*0.5+t},vh={linear:An,easeInQuad:Ln,easeOutQuad:On,easeInOutQuad:Nn,easeInCubic:Dn,easeOutCubic:Rn,easeInOutCubic:Mn,easeInQuart:zn,easeOutQuart:jn,easeInOutQuart:Hn,easeInQuint:Fn,easeOutQuint:Vn,easeInOutQuint:Bn,easeInSine:qn,easeOutSine:Wn,easeInOutSine:Kn,easeInExpo:_n,easeOutExpo:Un,easeInOutExpo:Gn,easeInCirc:Jn,easeOutCirc:Yn,easeInOutCirc:Xn,easeInElastic:Qn,easeOutElastic:Zn,easeInOutElastic:er,easeInBack:tr,easeOutBack:sr,easeInOutBack:or,easeInBounce:ze,easeOutBounce:we,easeInOutBounce:ar};function nr(e,t={}){let{duration:s="1s",timing:o="ease",delay:a="0s",iteration:n="1",direction:r="normal",fill:i="both",playState:c="running"}=t;return`${e} ${s} ${o} ${a} ${n} ${r} ${i} ${c}`}function je(e,t,s={}){e.style.animation=nr(t,s)}function yh(e){e.style.animation=""}function rr(e){return new Promise((t)=>{let s=()=>{e.removeEventListener("animationend",s),t()};e.addEventListener("animationend",s)})}function kh(e,t,s={}){let{stagger:o=100,...a}=s;e.forEach((n,r)=>{let i=`${r*o}ms`;je(n,t,{...a,delay:i})})}async function Ch(e,t){for(let s of t)je(e,s.name,s.options),await rr(e)}var $h={fadeIn:"animate-fade-in",fadeOut:"animate-fade-out",slideInUp:"animate-slide-in-up",slideInDown:"animate-slide-in-down",slideInLeft:"animate-slide-in-left",slideInRight:"animate-slide-in-right",zoomIn:"animate-zoom-in",zoomOut:"animate-zoom-out",bounce:"animate-bounce",spin:"animate-spin",ping:"animate-ping",pulse:"animate-pulse"};function Sh(e,t,s=1000){return new Promise((o)=>{e.classList.add(t),setTimeout(()=>{e.classList.remove(t),o()},s)})}function Th(e,t){let s=`
11
+ `)}`)}return{valid:r.length===0,errors:r}}function H(e,t,s){return(o)=>St(e,o,t,s)}function Ui(e,t,s="value"){if(!t.validate(e,s,"assertion"))throw Error(t.message(e,s,"assertion"))}function Gi(e,t,s="value"){if(!t.validate(e,s,"warning"))console.warn(t.message(e,s,"warning"))}var Et="./Button-gmct2gvq.stx";var It={variant:l.oneOf(["primary","secondary","outline","ghost","danger"]),size:l.oneOf(["xs","sm","md","lg","xl"]),disabled:l.boolean,loading:l.boolean,type:l.oneOf(["button","submit","reset"]),fullWidth:l.boolean,label:l.string,text:l.string,leftIcon:l.string,rightIcon:l.string,className:l.string,onClick:l.func},Zi=H("Button",It);function el(e){return Oe(e,"Button","onClick")}function tl(e){if(e&&!["primary","secondary","outline","ghost","danger"].includes(e))throw J.invalidProp("Button","variant",e,["primary","secondary","outline","ghost","danger"])}function sl(e){if(e&&!["xs","sm","md","lg","xl"].includes(e))throw J.invalidProp("Button","size",e,["xs","sm","md","lg","xl"])}var At="./Calendar-5vs6x7gj.stx";var Ot="./DateRangePicker-4zmf34e4.stx";var Dt="./EmptyState-snj7gbsn.stx";var Mt="./ErrorState-qb7af5zb.stx";var jt="./ThemeToggle-4wm9zare.stx";var Ft="./Card-r55zpjqh.stx";var Bt="./Checkbox-80myyzzm.stx";var Wt="./ChoiceChips-8dcf172n.stx";var Kt="./Combobox-9n04ec5w.stx";var Gt="./ComboboxButton-4r6a45s1.stx";var Yt="./ComboboxInput-1gyfpnca.stx";var Qt="./ComboboxOption-wkw70js7.stx";var es="./ComboboxOptions-zhr9b6rx.stx";var ss="./CommandPalette-qqjdbcyg.stx";var as="./CommandPaletteItem-7290ce1z.stx";var rs="./Dialog-7q0a67ge.stx";var ls="./DialogBackdrop-de5m5m4w.stx";var ds="./DialogDescription-yd2jgt2m.stx";var us="./DialogPanel-qa5j5ns2.stx";var fs="./DialogTitle-nw0pw114.stx";var gs="./Drawer-nywb36q5.stx";var xs="./Dropdown-hb8ks69x.stx";var ws="./DropdownButton-wxc25hsy.stx";var ks="./DropdownItem-af0vzc8a.stx";var $s="./DropdownItems-bkz7jkyz.stx";var Ts="./Form-cybgg9ym.stx";var Es={action:l.string,method:l.oneOf(["GET","POST","PUT","DELETE","PATCH"]),validationSchema:l.object,initialValues:l.object,validateOnChange:l.boolean,validateOnBlur:l.boolean,onSubmit:l.func,onError:l.func,className:l.string},gc=H("Form",Es);var Ps="./GroupedList-j3sxv5pb.stx";var Ls="./GroupedListRow-v52zmzpk.stx";var Ns="./Image-czxrr68w.stx";var Rs="./EmailInput-sf9jfrgz.stx";var zs="./NumberInput-pq4k2k4k.stx";var Hs="./PasswordInput-r51qzgc0.stx";var Vs="./SearchInput-w15r5t95.stx";var qs="./TextInput-1kvx4pte.stx";var Ws={value:l.string,onChange:l.func,placeholder:l.string,disabled:l.boolean,readonly:l.boolean,size:l.oneOf(["sm","md","lg"]),error:l.boolean,label:l.string,helperText:l.string,required:l.boolean,className:l.string,inputClassName:l.string},_s={value:l.string,onChange:l.func,placeholder:l.string,disabled:l.boolean,readonly:l.boolean,size:l.oneOf(["sm","md","lg"]),error:l.boolean,label:l.string,helperText:l.string,required:l.boolean,className:l.string,inputClassName:l.string,leftIcon:l.string,rightIcon:l.string,clearable:l.boolean,maxLength:l.number,showCount:l.boolean,type:l.oneOf(["text","date","time","datetime-local","month","week","url","tel","color","search","email","number","password"]),pattern:l.string,list:l.string,minLength:l.number,htmlSize:l.number,autofocus:l.boolean},Ks={value:l.string,onChange:l.func,placeholder:l.string,disabled:l.boolean,readonly:l.boolean,size:l.oneOf(["sm","md","lg"]),error:l.boolean,label:l.string,helperText:l.string,required:l.boolean,className:l.string,inputClassName:l.string,min:l.number,max:l.number,step:l.number,showControls:l.boolean},Us={value:l.string,onChange:l.func,placeholder:l.string,disabled:l.boolean,readonly:l.boolean,size:l.oneOf(["sm","md","lg"]),error:l.boolean,label:l.string,helperText:l.string,required:l.boolean,className:l.string,inputClassName:l.string,showStrength:l.boolean},Gs={value:l.string,onChange:l.func,placeholder:l.string,disabled:l.boolean,readonly:l.boolean,size:l.oneOf(["sm","md","lg"]),error:l.boolean,label:l.string,helperText:l.string,required:l.boolean,className:l.string,inputClassName:l.string,onSearch:l.func,loading:l.boolean},Nc=H("TextInput",_s),Dc=H("EmailInput",Ws),Rc=H("PasswordInput",Us),Mc=H("NumberInput",Ks),zc=H("SearchInput",Gs);var Ys="./List-dvszwyn2.stx";var Qs="./Listbox-83j2q4x6.stx";var eo="./ListboxButton-gan8e3nw.stx";var so="./ListboxLabel-ka0hfm7b.stx";var ao="./ListboxOption-gpaqvk3s.stx";var ro="./ListboxOptions-2928864k.stx";var lo="./FilterChip-bynt5maa.stx";var po="./FilterChips-mpmev5v5.stx";var ho="./ListRow-nvyg2fwb.stx";var mo="./NavBar-ky8tedjb.stx";var bo="./SectionCard-8b5fyrjd.stx";var vo="./TabBar-6m1ajm1d.stx";var yo="./TabBarItem-kddfnhk3.stx";var Co="./Navigator-1yk1c3pp.stx";var So="./Notification-b3cz24f0.stx";var Eo="./Pager-5e7knyqh.stx";var Po="./PagerDots-076w890y.stx";var Lo="./Pagination-8bhbkpcp.stx";var No="./Checkout-crbegxyv.stx";var Ro="./DefaultPaymentMethod-ss3x61tr.stx";var zo="./PaymentMethods-z4hhr0kv.stx";var Ho="./SubscriptionCheckout-rdcv32n1.stx";var Vo="./Popover-jjt7p7sn.stx";var qo="./PopoverButton-ks3cttd9.stx";var _o="./PopoverPanel-ddgj4gz3.stx";var Uo="./Portal-m73vz879.stx";var Jo="./Progress-2qzb77kc.stx";var Xo="./Radio-8153x74w.stx";var Zo="./RadioGroup-smqcqgds.stx";var ta="./RadioGroupDescription-z34r9avr.stx";var oa="./RadioGroupLabel-ka0hfm7b.stx";var na="./RadioGroupOption-twcw1b2a.stx";var ia="./SegmentedControl-9b1vh960.stx";var ca="./Select-1cnqbcmg.stx";var pa="./Sidebar-8dygywjv.stx";var ha="./SidebarFooter-s7skj92y.stx";var ma="./SidebarHeader-x7jdhmyr.stx";var ba="./SidebarItem-r4f2pref.stx";var va="./SidebarPinned-48kyk193.stx";var ya="./SidebarSection-5sqza2j6.stx";var Ca="./SidebarSpace-bwv98azf.stx";var Sa="./SidebarSpaces-mdtrynr2.stx";var Ea="./SidebarSpaceSwitcher-1mycft2g.stx";var ne={blue:"#0088ff",red:"#ff383c",pink:"#ff2d55",orange:"#ff8d28",yellow:"#ffcc00",green:"#34c759",teal:"#00c3d0",cyan:"#00c0e8",indigo:"#6155f5",purple:"#cb30e0",brown:"#ac7f5e",gray:"#8e8e93"},K={pane:["bg-[#f2f2f4]/90 dark:bg-[#1c1c1e]/88","backdrop-blur-[50px] backdrop-saturate-[180%]","text-black dark:text-white","select-none"].join(" "),selection:"accent",layers:{shimmerRim:!0},scrollArea:"flex-1 overflow-y-auto overflow-x-hidden px-[10px] pb-[10px]",sectionHeader:["group/section flex w-full items-center","pl-[8px] pr-[6px] pt-[16px] pb-[5px]","text-[11px] font-semibold leading-[13px]","text-[#3c3c43]/60 dark:text-[#ebebf5]/60"].join(" "),sectionChevron:["i-f7-chevron-down h-[11px] w-[11px] ml-auto","text-[#3c3c43]/45 dark:text-[#ebebf5]/45","opacity-0 group-hover/section:opacity-100 transition-opacity duration-150","transition-transform duration-200"].join(" "),sectionGroup:"flex flex-col",item:{base:["flex w-full items-center","h-[32px] rounded-[8px] pl-[4px] pr-[8px]","text-[13px] leading-[16px] font-normal","text-black dark:text-white","transition-colors duration-150 ease-out","cursor-default"].join(" "),hover:"hover:bg-black/4 dark:hover:bg-white/6",active:"",pressed:"active:bg-black/10 dark:active:bg-white/18",disabled:"opacity-40 pointer-events-none",disclosure:"flex h-[16px] w-[18px] shrink-0 items-center justify-center",chevron:["i-f7-chevron-right h-[11px] w-[11px]","text-[#3c3c43]/55 dark:text-[#ebebf5]/55","transition-transform duration-200 ease-out"].join(" "),iconSlot:"flex h-[20px] w-[22px] shrink-0 items-center justify-center mr-[7px]",icon:"h-[17px] w-[17px]",image:"h-[20px] w-[20px] rounded-[4px] object-cover shadow-sm",label:"flex-1 truncate text-left",count:["ml-[8px] shrink-0 tabular-nums","text-[13px] leading-[16px]","text-[#3c3c43]/60 dark:text-[#ebebf5]/60"].join(" "),indentPerLevel:16}},Ia={selection:"classes",pane:"bg-[#f4f4f3] dark:bg-neutral-950 text-zinc-950 dark:text-white select-none",layers:{},scrollArea:"flex-1 overflow-y-auto overflow-x-hidden px-5 py-5",sectionHeader:"group/section flex w-full items-center gap-2.5 px-4 pb-2 pt-5 text-[13px] font-semibold uppercase tracking-[0.12em] text-zinc-400 dark:text-zinc-500",sectionChevron:"i-f7-chevron-down h-3 w-3 ml-auto opacity-0 group-hover/section:opacity-100 transition-opacity duration-150 transition-transform duration-200",sectionGroup:"flex flex-col space-y-1",item:{base:"flex w-full items-center gap-3 rounded-[16px] px-3.5 py-2 text-[14px] leading-tight transition-colors duration-150",hover:"hover:bg-[#ececea] hover:text-zinc-950 dark:hover:bg-white/10",active:"bg-[#e7e7e5] text-zinc-950 dark:bg-white/12 dark:text-white",pressed:"active:bg-[#e2e2e0] dark:active:bg-white/15",disabled:"opacity-50 pointer-events-none",disclosure:"flex h-4 w-4 shrink-0 items-center justify-center",chevron:"i-f7-chevron-right h-3 w-3 opacity-50 transition-transform duration-200",iconSlot:"flex h-5 w-5 shrink-0 items-center justify-center",icon:"h-[18px] w-[18px] text-zinc-500 dark:text-zinc-500",image:"h-5 w-5 rounded object-cover",label:"flex-1 truncate text-left text-zinc-700 dark:text-zinc-300",count:"ml-auto grid h-5 min-w-5 place-items-center rounded-full bg-white/70 px-1.5 text-[11px] font-medium text-zinc-500 shadow-sm dark:bg-white/10 dark:text-zinc-400",indentPerLevel:12}},Pa={selection:"classes",pane:"bg-[#f3f3f1]/48 dark:bg-neutral-950/32 backdrop-blur-3xl backdrop-saturate-150 text-zinc-950 dark:text-white select-none",layers:{tint:"bg-[linear-gradient(112deg,rgba(255,255,255,0.20)_0%,rgba(255,255,255,0.04)_45%,rgba(226,226,222,0.16)_100%)] dark:bg-[linear-gradient(112deg,rgba(255,255,255,0.08)_0%,rgba(255,255,255,0.02)_46%,rgba(255,255,255,0.06)_100%)]"},scrollArea:"flex-1 overflow-y-auto overflow-x-hidden px-5 py-2",sectionHeader:"group/section flex w-full items-center gap-2.5 px-3 pb-1.5 pt-3 rounded-[14px] text-[12px] font-semibold uppercase tracking-[0.10em] text-zinc-500/80 dark:text-zinc-400/80",sectionChevron:"i-f7-chevron-down h-3 w-3 ml-auto opacity-0 group-hover/section:opacity-100 transition-opacity duration-150 transition-transform duration-200",sectionGroup:"flex flex-col space-y-1",item:{base:"flex w-full items-center gap-3 rounded-[14px] px-3 py-1.5 text-[13.5px] leading-tight transition-colors duration-150",hover:"hover:bg-white/38 hover:text-zinc-950 dark:hover:bg-white/10",active:"bg-[#e8e8e6]/90 text-zinc-950 dark:bg-white/12 dark:text-white",pressed:"active:bg-white/50 dark:active:bg-white/15",disabled:"opacity-50 pointer-events-none",disclosure:"flex h-4 w-4 shrink-0 items-center justify-center",chevron:"i-f7-chevron-right h-3 w-3 opacity-50 transition-transform duration-200",iconSlot:"flex h-5 w-5 shrink-0 items-center justify-center",icon:"h-[18px] w-[18px] text-zinc-600 dark:text-zinc-400",image:"h-5 w-5 rounded object-cover",label:"flex-1 truncate text-left text-zinc-700 dark:text-zinc-300",count:"ml-auto grid h-5 min-w-5 place-items-center rounded-full bg-white/72 px-1.5 text-[11px] font-medium text-zinc-500 shadow-sm dark:bg-white/10 dark:text-zinc-400",indentPerLevel:12}},Aa={selection:"classes",pane:["bg-[#f7f5f1]/92 dark:bg-[#1a1a1c]/92","backdrop-blur-[40px] backdrop-saturate-[160%]","text-[#2c2a28] dark:text-[#ededf0]","select-none"].join(" "),layers:{tint:["bg-[linear-gradient(180deg,var(--stx-sidebar-tint,rgba(255,251,242,0.55))_0%,rgba(255,255,255,0)_38%)]","dark:bg-[linear-gradient(180deg,var(--stx-sidebar-tint,rgba(255,255,255,0.05))_0%,rgba(255,255,255,0)_42%)]"].join(" ")},scrollArea:"flex-1 overflow-y-auto overflow-x-hidden px-[16px] pb-[8px]",sectionHeader:["group/section flex w-full items-center","px-[8px] pt-[14px] pb-[4px]","text-[11px] font-medium leading-[13px]","opacity-55"].join(" "),sectionChevron:["i-f7-chevron-down h-[10px] w-[10px] ml-auto","opacity-0 group-hover/section:opacity-100 transition-opacity duration-150","transition-transform duration-200"].join(" "),sectionGroup:"flex flex-col space-y-[2px]",item:{base:["flex w-full items-center","h-[30px] rounded-[8px] pl-[6px] pr-[8px]","text-[13px] leading-[16px] font-normal","text-current","transition-[background-color,box-shadow,color] duration-150 ease-out","cursor-default"].join(" "),hover:"hover:bg-white/55 dark:hover:bg-white/8",active:["bg-white dark:bg-white/14","font-medium","shadow-[0_1px_2px_rgba(0,0,0,0.08)] dark:shadow-[0_1px_2px_rgba(0,0,0,0.35)]","ring-1 ring-black/5 dark:ring-white/8"].join(" "),pressed:"active:bg-white/80 dark:active:bg-white/18",disabled:"opacity-40 pointer-events-none",disclosure:"flex h-[16px] w-[16px] shrink-0 items-center justify-center",chevron:["i-f7-chevron-right h-[10px] w-[10px] opacity-45","transition-transform duration-200 ease-out"].join(" "),iconSlot:"flex h-[18px] w-[18px] shrink-0 items-center justify-center mr-[8px]",icon:"h-[16px] w-[16px]",image:"h-[18px] w-[18px] rounded-[5px] object-cover shadow-sm",label:"flex-1 truncate text-left",count:["ml-[8px] shrink-0 tabular-nums","text-[12px] leading-[16px] opacity-45"].join(" "),indentPerLevel:14}},La={...K,pane:"bg-stone-100 dark:bg-neutral-900 text-black dark:text-white select-none",layers:{}},Oa={...K,pane:"bg-transparent text-black dark:text-white select-none",layers:{}},Na={...K,pane:"bg-white/50 dark:bg-black/40 backdrop-blur-3xl backdrop-saturate-200 text-black dark:text-white select-none",layers:{}},Ne={macos:K,tahoe:K,"macos-tahoe":K,"macos-latest":K,arc:Aa,workspace:Ia,desktop:Pa,solid:La,transparent:Oa,vibrancy:Na};function Ip(e){return Ne[e||"macos"]||Ne.macos}function Pp(e){if(!e)return;return ne[e]||e}var Da=ne.gray;function q(e,t,s){return`color-mix(in oklab, ${e} ${t}%, ${s})`}function De(e){return{light:{from:q(e,35,"#ffffff"),to:q(e,12.5,"#ffffff"),ink:q(e,22,"#17171b"),accent:q(e,88,"#2a2a30")},dark:{from:q(e,27,"#101014"),to:q(e,10,"#08080b"),ink:q(e,12,"#f4f4f7"),accent:q(e,74,"#ffffff")}}}function Op(e,t){return`linear-gradient(180deg, ${e} 0%, ${t} 100%)`}function Ra(e){if(!e)return De(Da);if(typeof e!=="string")return e;return De(ne[e]||e)}function Ma(e){return[`--stx-space-light-from: ${e.light.from}`,`--stx-space-light-to: ${e.light.to}`,`--stx-space-light-ink: ${e.light.ink}`,`--stx-space-light-accent: ${e.light.accent}`,`--stx-space-dark-from: ${e.dark.from}`,`--stx-space-dark-to: ${e.dark.to}`,`--stx-space-dark-ink: ${e.dark.ink}`,`--stx-space-dark-accent: ${e.dark.accent}`].join("; ")}function Re(e,t,s,o){if(!e||!e.label)return null;return{id:e.id||`${t}-${s}`,label:e.label,icon:e.icon||o}}function za(e){let t=Ra(e.tint);return{id:e.id,label:e.label||"",icon:e.icon||"",pinned:e.pinned||[],sections:e.sections||[],action:Re(e.action,e.id,"action","i-f7-plus"),clear:Re(e.clear,e.id,"clear","i-f7-arrow-down"),tint:t,style:Ma(t),deferred:e.deferred===!0,showTitle:e.showTitle??!0}}function Np(e){return(e||[]).map(za)}function Dp(e,t){if(!t)return 0;let s=e.findIndex((o)=>o.id===t);return s===-1?0:s}function Rp(e){return e.map((t)=>t.tint)}var Ha="./Skeleton-m4p66zcs.stx";var Va="./Spinner-vhnc3y03.stx";var qa="./Stepper-68gxcmej.stx";var _a="./StepperStep-zf4pq1s0.stx";class re{storage;namespace;watchers=new Map;encryptionKey="stx-storage-key";constructor(e="local",t=""){if(this.storage=e==="local"?globalThis.localStorage:globalThis.sessionStorage,this.namespace=t,typeof window<"u")window.addEventListener("storage",this.handleStorageEvent.bind(this))}handleStorageEvent(e){if(!e.key)return;let t=this.namespace&&e.key.startsWith(`${this.namespace}:`)?e.key.slice(this.namespace.length+1):e.key,s=this.watchers.get(t);if(s){let o=e.oldValue?JSON.parse(e.oldValue).value:null,a=e.newValue?JSON.parse(e.newValue).value:null;s.forEach((n)=>n(a,o,t))}}encrypt(e){let t="";for(let s=0;s<e.length;s++)t+=String.fromCharCode(e.charCodeAt(s)^this.encryptionKey.charCodeAt(s%this.encryptionKey.length));return btoa(t)}decrypt(e){try{let t=atob(e),s="";for(let o=0;o<t.length;o++)s+=String.fromCharCode(t.charCodeAt(o)^this.encryptionKey.charCodeAt(o%this.encryptionKey.length));return s}catch{return e}}compress(e){if(e.length<100)return e;let t={},s=256,o=[],a="";for(let n=0;n<e.length;n++){let r=e.charAt(n),i=a+r;if(t[i]!==void 0)a=i;else o.push(a.length>1?t[a]:a.charCodeAt(0)),t[i]=s++,a=r}if(a!=="")o.push(a.length>1?t[a]:a.charCodeAt(0));return JSON.stringify(o)}decompress(e){try{let t=JSON.parse(e);if(!Array.isArray(t))return e;let s={},o=256,a=String.fromCharCode(t[0]),n=a;for(let r=1;r<t.length;r++){let i=t[r],c;if(s[i]!==void 0)c=s[i];else if(i===o)c=a+a.charAt(0);else return e;n+=c,s[o++]=a+c.charAt(0),a=c}return n}catch{return e}}getKey(e){return this.namespace?`${this.namespace}:${e}`:e}set(e,t,s){let o=this.getKey(e),a=this.get(e),n={value:t,timestamp:Date.now(),expire:s?.expire,encrypted:s?.encrypt||!1,compressed:s?.compress||!1};try{let r=JSON.stringify(n);if(s?.compress)r=this.compress(r);if(s?.encrypt)r=this.encrypt(r);this.storage.setItem(o,r),this.notifyWatchers(e,t,a)}catch(r){console.error("Storage set error:",r)}}get(e){let t=this.getKey(e);try{let s=this.storage.getItem(t);if(!s)return null;if(s.match(/^[A-Z0-9+/]+=*$/i))try{s=this.decrypt(s)}catch{}if(s.startsWith("["))try{s=this.decompress(s)}catch{}let o=JSON.parse(s);if(o.expire&&Date.now()-o.timestamp>o.expire)return this.remove(e),null;return o.value}catch(s){return console.error("Storage get error:",s),null}}watch(e,t){if(!this.watchers.has(e))this.watchers.set(e,new Set);return this.watchers.get(e).add(t),()=>{let s=this.watchers.get(e);if(s){if(s.delete(t),s.size===0)this.watchers.delete(e)}}}notifyWatchers(e,t,s){let o=this.watchers.get(e);if(o)o.forEach((a)=>a(t,s,e))}remove(e){let t=this.getKey(e),s=this.get(e);this.storage.removeItem(t),this.notifyWatchers(e,null,s)}clear(){if(this.namespace)this.keys().forEach((t)=>this.remove(t));else this.storage.clear()}has(e){return this.get(e)!==null}keys(){let e=Object.keys(this.storage);if(this.namespace){let t=`${this.namespace}:`;return e.filter((s)=>s.startsWith(t)).map((s)=>s.slice(t.length))}return e}size(){return this.keys().length}getQuota(){if("storage"in navigator&&"estimate"in navigator.storage)return null;try{let e=0;for(let s=0;s<this.storage.length;s++){let o=this.storage.key(s);if(o){let a=this.storage.getItem(o)||"";e+=o.length+a.length}}let t=5242880;return{usage:e*2,quota:t,percentage:e*2/t*100}}catch{return null}}setMany(e,t){Object.entries(e).forEach(([s,o])=>{this.set(s,o,t)})}getMany(e){let t={};return e.forEach((s)=>{t[s]=this.get(s)}),t}removeMany(e){e.forEach((t)=>this.remove(t))}}var iu={local:new re("local"),session:new re("session")};function lu(e="local",t){return new re(e,t)}var Ua="./Switch-zfjdd6dw.stx";var Ja="./Table-0a4y46vd.stx";var Xa="./TableBody-y49bqb1p.stx";var Za="./TableCell-jhvsxw8b.stx";var tn="./TableHead-e9xvjx2j.stx";var on="./TableHeader-krzcx4sv.stx";var nn="./TableRow-dt8e11aj.stx";var ln="./Tab-j9f4t166.stx";var dn="./TabList-r1pc87xs.stx";var un="./TabPanel-5htevsq6.stx";var fn="./Tabs-psm5wj7c.stx";var gn="./Teleport-vqs75x36.stx";var xn="./Textarea-9xmhjqp8.stx";var wn="./Tooltip-pev702hb.stx";var kn="./Transition-7m0mk45s.stx";var $n="./Video-9p1pncwt.stx";var Tn="./VirtualList-fa7v5a3h.stx";var In="./VirtualTable-kp7b3wyv.stx";var Pn=0;function Me(e="a11y"){return`${e}-${++Pn}-${Date.now()}`}function sh(e,t,s={}){let{visible:o=!1,id:a=Me("label")}=s,n=document.createElement(o?"label":"span");if(n.id=a,n.textContent=e,!o)Object.assign(n.style,{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",border:"0"});if(t)if(t.setAttribute("aria-labelledby",a),t.parentElement)t.parentElement.insertBefore(n,t);else document.body.appendChild(n);return a}function oh(e,t){let s=Me("desc"),o=document.createElement("span");if(o.id=s,o.textContent=e,Object.assign(o.style,{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",border:"0"}),t)if(t.setAttribute("aria-describedby",s),t.parentElement)t.parentElement.insertBefore(o,t);else document.body.appendChild(o);return s}function ah(e,t="polite"){let s=document.createElement("div");s.setAttribute("role","status"),s.setAttribute("aria-live",t),s.setAttribute("aria-atomic","true"),Object.assign(s.style,{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",border:"0"}),document.body.appendChild(s),setTimeout(()=>{s.textContent=e},100),setTimeout(()=>{s.parentNode?.removeChild(s)},1000)}function ve(e){let t=["a[href]","area[href]",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])","button:not([disabled])","iframe","object","embed","[contenteditable]",'[tabindex]:not([tabindex="-1"])'].join(",");return Array.from(e.querySelectorAll(t)).filter((s)=>s.offsetParent!==null)}function nh(e,t={}){let{initialFocus:s,returnFocus:o,escapeDeactivates:a=!0,clickOutsideDeactivates:n=!0,allowOutsideClick:r=!1,onActivate:i,onDeactivate:c}=t,p=!1,u=!1,d=null,g=(v)=>{if(u)return;if(a&&v.key==="Escape"){v.preventDefault(),C();return}if(v.key==="Tab"){let E=ve(e);if(E.length===0){v.preventDefault();return}let P=E[0],S=E[E.length-1];if(v.shiftKey){if(document.activeElement===P)v.preventDefault(),S.focus()}else if(document.activeElement===S)v.preventDefault(),P.focus()}},m=(v)=>{if(u)return;if(!e.contains(v.target)){if(typeof r==="function"){if(!r(v)&&n)C()}else if(!r&&n)C()}};function k(){if(p)return;p=!0,d=document.activeElement;let v=s||ve(e)[0];if(v&&typeof v.focus==="function")v.focus();document.addEventListener("keydown",g),document.addEventListener("click",m),i?.()}function C(){if(!p)return;p=!1;let v=o||d;if(v&&typeof v.focus==="function")v.focus();document.removeEventListener("keydown",g),document.removeEventListener("click",m),c?.()}function y(){u=!0}function b(){u=!1}return{activate:k,deactivate:C,pause:y,unpause:b}}function rh(e,t={}){let{selector:s='[role="option"], [role="menuitem"], [role="tab"], button',initialIndex:o=0,orientation:a="both",loop:n=!0,onFocusChange:r}=t,i=o,c=()=>Array.from(e.querySelectorAll(s)),p=(d)=>{let g=c();if(d<0||d>=g.length)return;g.forEach((m,k)=>{if(k===d){if(m.setAttribute("tabindex","0"),typeof m.focus==="function")m.focus()}else m.setAttribute("tabindex","-1")}),i=d,r?.(d,g[d])},u=(d)=>{let m=c().length-1,k=!1,C=i;switch(d.key){case"ArrowRight":if(a==="horizontal"||a==="both"){if(C=i+1,C>m)C=n?0:m;k=!0}break;case"ArrowLeft":if(a==="horizontal"||a==="both"){if(C=i-1,C<0)C=n?m:0;k=!0}break;case"ArrowDown":if(a==="vertical"||a==="both"){if(C=i+1,C>m)C=n?0:m;k=!0}break;case"ArrowUp":if(a==="vertical"||a==="both"){if(C=i-1,C<0)C=n?m:0;k=!0}break;case"Home":C=0,k=!0;break;case"End":C=m,k=!0;break}if(k)d.preventDefault(),p(C)};return p(o),e.addEventListener("keydown",u),()=>{e.removeEventListener("keydown",u)}}var ih={Enter:"Enter",Space:" ",Escape:"Escape",ArrowUp:"ArrowUp",ArrowDown:"ArrowDown",ArrowLeft:"ArrowLeft",ArrowRight:"ArrowRight",Tab:"Tab",Home:"Home",End:"End",PageUp:"PageUp",PageDown:"PageDown"};function lh(e){return document.activeElement===e}function ch(e,t){let s=t||document.activeElement,o=ve(document.body),a=o.indexOf(s);if(a===-1)return;let n=e==="next"?a+1:a-1,r=o[n];if(r)r.focus()}function dh(e){if(e.getAttribute("aria-hidden")==="true")return!1;let t=window.getComputedStyle(e);if(t.display==="none"||t.visibility==="hidden")return!1;return!0}var ph={setExpanded(e,t){e.setAttribute("aria-expanded",String(t))},setSelected(e,t){e.setAttribute("aria-selected",String(t))},setChecked(e,t){e.setAttribute("aria-checked",String(t))},setDisabled(e,t){if(e.setAttribute("aria-disabled",String(t)),t)e.setAttribute("tabindex","-1");else e.removeAttribute("tabindex")},setHidden(e,t){if(t)e.setAttribute("aria-hidden","true");else e.removeAttribute("aria-hidden")},setPressed(e,t){e.setAttribute("aria-pressed",String(t))},setInvalid(e,t){e.setAttribute("aria-invalid",String(t))},setRequired(e,t){e.setAttribute("aria-required",String(t))},setLive(e,t){e.setAttribute("aria-live",t)},setBusy(e,t){e.setAttribute("aria-busy",String(t))}};function uh(e){let t=document.createElement("span");return t.textContent=e,t.className="sr-only",Object.assign(t.style,{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",border:"0"}),t}function hh(){if(typeof window.matchMedia==="function")return window.matchMedia("(prefers-reduced-motion: reduce)").matches;return!1}function fh(){if(typeof window.matchMedia==="function")return window.matchMedia("(prefers-contrast: high)").matches;return!1}function mh(){if(typeof window.matchMedia==="function"){if(window.matchMedia("(prefers-color-scheme: dark)").matches)return"dark";if(window.matchMedia("(prefers-color-scheme: light)").matches)return"light"}return null}function gh(e,t="Skip to main content"){let s=document.createElement("a");return s.href=`#${e}`,s.textContent=t,s.className="skip-link",Object.assign(s.style,{position:"absolute",top:"-40px",left:"0",background:"#000",color:"#fff",padding:"8px",textDecoration:"none",zIndex:"100"}),s.addEventListener("focus",()=>{s.style.top="0"}),s.addEventListener("blur",()=>{s.style.top="-40px"}),s}function bh(e){let t=[],s=(o)=>{let a=e.getAttribute(o);if(a){let n=a.split(" ");for(let r of n)if(!document.getElementById(r))t.push(`${o} references non-existent ID: ${r}`)}};return s("aria-labelledby"),s("aria-describedby"),s("aria-controls"),s("aria-owns"),s("aria-activedescendant"),t}var An=(e,t,s,o)=>s*e/o+t,Ln=(e,t,s,o)=>(e/=o,s*e*e+t),On=(e,t,s,o)=>(e/=o,-s*e*(e-2)+t),Nn=(e,t,s,o)=>{if(e/=o/2,e<1)return s/2*e*e+t;return e--,-s/2*(e*(e-2)-1)+t},Dn=(e,t,s,o)=>(e/=o,s*e*e*e+t),Rn=(e,t,s,o)=>(e/=o,e--,s*(e*e*e+1)+t),Mn=(e,t,s,o)=>{if(e/=o/2,e<1)return s/2*e*e*e+t;return e-=2,s/2*(e*e*e+2)+t},zn=(e,t,s,o)=>(e/=o,s*e*e*e*e+t),jn=(e,t,s,o)=>(e/=o,e--,-s*(e*e*e*e-1)+t),Hn=(e,t,s,o)=>{if(e/=o/2,e<1)return s/2*e*e*e*e+t;return e-=2,-s/2*(e*e*e*e-2)+t},Fn=(e,t,s,o)=>(e/=o,s*e*e*e*e*e+t),Vn=(e,t,s,o)=>(e/=o,e--,s*(e*e*e*e*e+1)+t),Bn=(e,t,s,o)=>{if(e/=o/2,e<1)return s/2*e*e*e*e*e+t;return e-=2,s/2*(e*e*e*e*e+2)+t},qn=(e,t,s,o)=>-s*Math.cos(e/o*(Math.PI/2))+s+t,Wn=(e,t,s,o)=>s*Math.sin(e/o*(Math.PI/2))+t,_n=(e,t,s,o)=>-s/2*(Math.cos(Math.PI*e/o)-1)+t,Kn=(e,t,s,o)=>e===0?t:s*2**(10*(e/o-1))+t,Un=(e,t,s,o)=>e===o?t+s:s*(-(2**(-10*e/o))+1)+t,Gn=(e,t,s,o)=>{if(e===0)return t;if(e===o)return t+s;if(e/=o/2,e<1)return s/2*2**(10*(e-1))+t;return e--,s/2*(-(2**(-10*e))+2)+t},Jn=(e,t,s,o)=>(e/=o,-s*(Math.sqrt(1-e*e)-1)+t),Yn=(e,t,s,o)=>(e/=o,e--,s*Math.sqrt(1-e*e)+t),Xn=(e,t,s,o)=>{if(e/=o/2,e<1)return-s/2*(Math.sqrt(1-e*e)-1)+t;return e-=2,s/2*(Math.sqrt(1-e*e)+1)+t},Qn=(e,t,s,o)=>{let a=1.70158,n=0,r=s;if(e===0)return t;if(e/=o,e===1)return t+s;if(!n)n=o*0.3;if(r<Math.abs(s))r=s,a=n/4;else a=n/(2*Math.PI)*Math.asin(s/r);return e-=1,-(r*2**(10*e)*Math.sin((e*o-a)*(2*Math.PI)/n))+t},Zn=(e,t,s,o)=>{let a=1.70158,n=0,r=s;if(e===0)return t;if(e/=o,e===1)return t+s;if(!n)n=o*0.3;if(r<Math.abs(s))r=s,a=n/4;else a=n/(2*Math.PI)*Math.asin(s/r);return r*2**(-10*e)*Math.sin((e*o-a)*(2*Math.PI)/n)+s+t},er=(e,t,s,o)=>{let a=1.70158,n=0,r=s;if(e===0)return t;if(e/=o/2,e===2)return t+s;if(!n)n=o*0.44999999999999996;if(r<Math.abs(s))r=s,a=n/4;else a=n/(2*Math.PI)*Math.asin(s/r);if(e<1)return e-=1,-0.5*(r*2**(10*e)*Math.sin((e*o-a)*(2*Math.PI)/n))+t;return e-=1,r*2**(-10*e)*Math.sin((e*o-a)*(2*Math.PI)/n)*0.5+s+t},tr=(e,t,s,o)=>(e/=o,s*e*e*(2.70158*e-1.70158)+t),sr=(e,t,s,o)=>(e/=o,e--,s*(e*e*(2.70158*e+1.70158)+1)+t),or=(e,t,s,o)=>{let a=1.70158;if(e/=o/2,e<1)return a*=1.525,s/2*(e*e*((a+1)*e-a))+t;return e-=2,a*=1.525,s/2*(e*e*((a+1)*e+a)+2)+t},we=(e,t,s,o)=>{if(e/=o,e<0.36363636363636365)return s*(7.5625*e*e)+t;else if(e<0.7272727272727273)return e-=0.5454545454545454,s*(7.5625*e*e+0.75)+t;else if(e<0.9090909090909091)return e-=0.8181818181818182,s*(7.5625*e*e+0.9375)+t;else return e-=0.9545454545454546,s*(7.5625*e*e+0.984375)+t},ze=(e,t,s,o)=>s-we(o-e,0,s,o)+t,ar=(e,t,s,o)=>{if(e<o/2)return ze(e*2,0,s,o)*0.5+t;return we(e*2-o,0,s,o)*0.5+s*0.5+t},vh={linear:An,easeInQuad:Ln,easeOutQuad:On,easeInOutQuad:Nn,easeInCubic:Dn,easeOutCubic:Rn,easeInOutCubic:Mn,easeInQuart:zn,easeOutQuart:jn,easeInOutQuart:Hn,easeInQuint:Fn,easeOutQuint:Vn,easeInOutQuint:Bn,easeInSine:qn,easeOutSine:Wn,easeInOutSine:_n,easeInExpo:Kn,easeOutExpo:Un,easeInOutExpo:Gn,easeInCirc:Jn,easeOutCirc:Yn,easeInOutCirc:Xn,easeInElastic:Qn,easeOutElastic:Zn,easeInOutElastic:er,easeInBack:tr,easeOutBack:sr,easeInOutBack:or,easeInBounce:ze,easeOutBounce:we,easeInOutBounce:ar};function nr(e,t={}){let{duration:s="1s",timing:o="ease",delay:a="0s",iteration:n="1",direction:r="normal",fill:i="both",playState:c="running"}=t;return`${e} ${s} ${o} ${a} ${n} ${r} ${i} ${c}`}function je(e,t,s={}){e.style.animation=nr(t,s)}function yh(e){e.style.animation=""}function rr(e){return new Promise((t)=>{let s=()=>{e.removeEventListener("animationend",s),t()};e.addEventListener("animationend",s)})}function kh(e,t,s={}){let{stagger:o=100,...a}=s;e.forEach((n,r)=>{let i=`${r*o}ms`;je(n,t,{...a,delay:i})})}async function Ch(e,t){for(let s of t)je(e,s.name,s.options),await rr(e)}var $h={fadeIn:"animate-fade-in",fadeOut:"animate-fade-out",slideInUp:"animate-slide-in-up",slideInDown:"animate-slide-in-down",slideInLeft:"animate-slide-in-left",slideInRight:"animate-slide-in-right",zoomIn:"animate-zoom-in",zoomOut:"animate-zoom-out",bounce:"animate-bounce",spin:"animate-spin",ping:"animate-ping",pulse:"animate-pulse"};function Sh(e,t,s=1000){return new Promise((o)=>{e.classList.add(t),setTimeout(()=>{e.classList.remove(t),o()},s)})}function Th(e,t){let s=`
12
12
  @keyframes ${e} {
13
13
  ${Object.entries(t).map(([a,n])=>{let r=Object.entries(n).map(([i,c])=>`${i}: ${c};`).join(" ");return`${a} { ${r} }`}).join(`
14
14
  `)}
@@ -19,7 +19,7 @@ ${r.join(`
19
19
  :root:not(.light) `)}
20
20
  }`,d.map((y)=>`.dark ${y}`).join(`
21
21
  `)].filter(Boolean).join(`
22
- `);return{html:n.replace(/(<span class="[^"]*")[^>]*?\s+style="[^"]*"/g,(y,b)=>Be.test(/class="([^"]*)"/.exec(b)?.[1]??"")?b:y),css:k}}async function Ah(e,t={}){let{theme:s="auto",language:o="typescript",lineNumbers:a=!1,wrapLines:n=!0}=t,r=s==="auto"?globalThis.matchMedia?.("(prefers-color-scheme: dark)").matches?"github-dark":"github-light":s==="dark"?Ve:Fe,i;try{i=await dr()}catch{return{html:ke(e),css:"",language:o,theme:r}}if(s==="auto"){let d=await hr(i,e,o);if(d)return{html:d.html,css:d.css,language:o,theme:"auto"}}let c;try{c=await i.highlight(e,o,{theme:r})}catch{return{html:ke(e),css:"",language:o,theme:r}}let p=c,u=typeof p==="string"?{html:p,css:""}:{html:p?.html??ke(e),css:p?.css??""};return{html:u.html,css:u.css,language:o,theme:r}}function Lh(e){if(e.includes("<!DOCTYPE")||e.includes("<html"))return"html";if(e.includes("<?php"))return"php";if(e.includes("import")&&e.includes("from"))return"typescript";if(e.includes("function")||e.includes("const"))return"javascript";if(e.includes("{")&&e.includes("}"))return"json";if(e.includes("$")&&e.includes("|"))return"bash";if(e.includes("#")&&e.includes("##"))return"markdown";return"typescript"}function Oh(e,t){return`<div class="${t?`rounded-md overflow-auto text-sm leading-relaxed font-mono ${t}`:"rounded-md overflow-auto text-sm leading-relaxed font-mono"}">${e}</div>`}var F=null,fr=(e)=>e===1?0:1;function ie(e,t){return t.split(".").reduce((s,o)=>s?.[o],e)}function Ce(e,t={}){return e.replace(/\{(\w+)\}/g,(s,o)=>t[o]!==void 0?String(t[o]):s)}function Dh(e){let{locale:t,fallbackLocale:s="en",messages:o,pluralRules:a={},dateTimeFormats:n={},numberFormats:r={},missing:i,warnMissing:c=!0}=e;function p(b,v={}){let E=ie(o[t],b);if(E===void 0&&s)E=ie(o[s],b);if(E===void 0){if(i){let P=i(t,b);if(P)return Ce(P,v)}if(c&&typeof console<"u")console.warn(`[i18n] Missing translation for key "${b}" in locale "${t}"`);return b}if(typeof E==="string")return Ce(E,v);return String(E)}function u(b,v,E={}){let P=p(b,{...E,count:v});if(P.includes("|")){let S=P.split("|").map((K)=>K.trim()),z=(a[t]||fr)(v,t),B=S[z]||S[S.length-1];return Ce(B,{...E,count:v})}return P}function d(b,v="default"){let E=typeof b==="number"?new Date(b):b,P=n[v]||n.default||{};return new Intl.DateTimeFormat(t,P).format(E)}function g(b,v="default"){let E=r[v]||r.default||{};return new Intl.NumberFormat(t,E).format(b)}function m(b){if(ie(o[t],b)!==void 0)return!0;if(s)return ie(o[s],b)!==void 0;return!1}function k(b){if(!o[b]){console.warn(`[i18n] Locale "${b}" not found. Available locales: ${Object.keys(o).join(", ")}`);return}t=b}function C(b,v){if(!o[b])o[b]={};o[b]={...o[b],...v}}function y(b){delete o[b]}return{get locale(){return t},get availableLocales(){return Object.keys(o)},setLocale:k,t:p,tc:u,d,n:g,te:m,addMessages:C,removeLocale:y}}function Rh(e){F=e}function Mh(){return F}function zh(e,t){if(!F)return console.warn("[i18n] No global i18n instance set. Call setI18n() first."),e;return F.t(e,t)}function jh(e,t,s){if(!F)return console.warn("[i18n] No global i18n instance set. Call setI18n() first."),e;return F.tc(e,t,s)}function Hh(e,t){if(!F)return console.warn("[i18n] No global i18n instance set. Call setI18n() first."),String(e);return F.d(e,t)}function Fh(e,t){if(!F)return console.warn("[i18n] No global i18n instance set. Call setI18n() first."),String(e);return F.n(e,t)}var Vh={en:(e)=>e===1?0:1,de:(e)=>e===1?0:1,nl:(e)=>e===1?0:1,sv:(e)=>e===1?0:1,fr:(e)=>e===0||e===1?0:1,pt_BR:(e)=>e===0||e===1?0:1,ru:(e)=>{if(e%10===1&&e%100!==11)return 0;if(e%10>=2&&e%10<=4&&(e%100<10||e%100>=20))return 1;return 2},pl:(e)=>{if(e===1)return 0;if(e%10>=2&&e%10<=4&&(e%100<10||e%100>=20))return 1;return 2},cs:(e)=>{if(e===1)return 0;if(e>=2&&e<=4)return 1;return 2},ar:(e)=>{if(e===0)return 0;if(e===1)return 1;if(e===2)return 2;if(e%100>=3&&e%100<=10)return 3;if(e%100>=11)return 4;return 5},ja:()=>0,ko:()=>0,zh:()=>0,th:()=>0,vi:()=>0},Bh={short:{year:"numeric",month:"numeric",day:"numeric"},long:{year:"numeric",month:"long",day:"numeric"},full:{weekday:"long",year:"numeric",month:"long",day:"numeric"},time:{hour:"numeric",minute:"numeric"},datetime:{year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric"}},qh={decimal:{style:"decimal",minimumFractionDigits:2,maximumFractionDigits:2},currency:{style:"currency",currency:"USD"},percent:{style:"percent",minimumFractionDigits:0,maximumFractionDigits:2},compact:{notation:"compact"}};function Wh(e){let t=["ar","he","fa","ur","yi"],s=e.split("-")[0].toLowerCase();return t.includes(s)}async function Kh(e,t){try{return await t()}catch(s){return console.error(`[i18n] Failed to load messages for locale "${e}":`,s),{}}}var _h={en:{common:{loading:"Loading...",error:"Error",retry:"Retry",cancel:"Cancel",confirm:"Confirm",close:"Close",save:"Save",delete:"Delete",edit:"Edit",search:"Search",clear:"Clear",submit:"Submit",reset:"Reset"},form:{required:"This field is required",invalid:"Invalid value",tooShort:"Value is too short (minimum {min} characters)",tooLong:"Value is too long (maximum {max} characters)",invalidEmail:"Invalid email address",invalidUrl:"Invalid URL"},pagination:{previous:"Previous",next:"Next",page:"Page {page}",of:"of {total}"}},es:{common:{loading:"Cargando...",error:"Error",retry:"Reintentar",cancel:"Cancelar",confirm:"Confirmar",close:"Cerrar",save:"Guardar",delete:"Eliminar",edit:"Editar",search:"Buscar",clear:"Limpiar",submit:"Enviar",reset:"Restablecer"},form:{required:"Este campo es obligatorio",invalid:"Valor inv\xE1lido",tooShort:"El valor es demasiado corto (m\xEDnimo {min} caracteres)",tooLong:"El valor es demasiado largo (m\xE1ximo {max} caracteres)",invalidEmail:"Direcci\xF3n de correo electr\xF3nico inv\xE1lida",invalidUrl:"URL inv\xE1lida"},pagination:{previous:"Anterior",next:"Siguiente",page:"P\xE1gina {page}",of:"de {total}"}},fr:{common:{loading:"Chargement...",error:"Erreur",retry:"R\xE9essayer",cancel:"Annuler",confirm:"Confirmer",close:"Fermer",save:"Enregistrer",delete:"Supprimer",edit:"Modifier",search:"Rechercher",clear:"Effacer",submit:"Soumettre",reset:"R\xE9initialiser"},form:{required:"Ce champ est obligatoire",invalid:"Valeur invalide",tooShort:"La valeur est trop courte (minimum {min} caract\xE8res)",tooLong:"La valeur est trop longue (maximum {max} caract\xE8res)",invalidEmail:"Adresse e-mail invalide",invalidUrl:"URL invalide"},pagination:{previous:"Pr\xE9c\xE9dent",next:"Suivant",page:"Page {page}",of:"sur {total}"}}};function Gh(e={}){let{max:t=10,ttl:s=0,include:o,exclude:a,hooks:n,debug:r=!1}=e,i=new Map,c=0,p=0;function u(...h){if(r)console.log("[KeepAlive]",...h)}function d(h){if(a){if(a instanceof RegExp&&a.test(h))return!1;if(Array.isArray(a)&&a.includes(h))return!1}if(o){if(o instanceof RegExp&&!o.test(h))return!1;if(Array.isArray(o)&&!o.includes(h))return!1}return!0}function g(h){if(!s||!h.expiresAt)return!1;return Date.now()>h.expiresAt}function m(h){let f=i.get(h);if(f)f.lastAccessedAt=Date.now(),f.accessCount++,f.instance.lastAccessedAt=f.lastAccessedAt,i.delete(h),i.set(h,f),u(`Touched: ${h} (access count: ${f.accessCount})`)}function k(){if(i.size===0)return!1;let h=i.keys().next().value;if(!h)return!1;let f=i.get(h);if(f){u(`Evicting LRU: ${h}`);let T=f.instance.hooks;if(T?.onDeactivate)T.onDeactivate(f.instance);if(n?.onDeactivate)n.onDeactivate(f.instance);return i.delete(h),!0}return!1}function C(h,f,T){if(!d(f.type))return u(`Type not cacheable: ${f.type}`),f;if(i.size>=t)k();let R=Date.now(),U={instance:{...f,hooks:T||f.hooks,createdAt:f.createdAt||R,lastAccessedAt:R},accessCount:0,createdAt:R,lastAccessedAt:R,expiresAt:s?R+s:void 0};if(i.set(h,U),u(`Cached: ${h} (size: ${i.size}/${t})`),T?.onMount)T.onMount(U.instance);if(n?.onMount)n.onMount(U.instance);return U.instance}function y(h){let f=i.get(h);if(!f)return p++,u(`Miss: ${h}`),null;if(g(f))return u(`Expired: ${h}`),i.delete(h),p++,null;return c++,m(h),u(`Hit: ${h}`),f.instance}function b(h){let f=i.get(h);if(!f)return!1;if(g(f))return i.delete(h),!1;return!0}function v(h){let f=i.get(h);if(!f)return!1;u(`Removing: ${h}`);let T=f.instance.hooks;if(T?.onUnmount)T.onUnmount(f.instance);if(n?.onUnmount)n.onUnmount(f.instance);return i.delete(h)}function E(){u("Clearing cache"),i.forEach((h)=>{let f=h.instance.hooks;if(f?.onUnmount)f.onUnmount(h.instance);if(n?.onUnmount)n.onUnmount(h.instance)}),i.clear(),c=0,p=0}function P(){let h=0,f=Date.now();for(let[T,R]of i.entries())if(g(R))u(`Pruning expired: ${T}`),v(T),h++;while(i.size>t)if(k())h++;else break;if(h>0)u(`Pruned ${h} entries`);return h}function S(h){let f=y(h);if(!f)return null;u(`Activating: ${h}`);let T=f.hooks;if(T?.onActivate)T.onActivate(f);if(n?.onActivate)n.onActivate(f);if(f.state&&T?.onRestore)T.onRestore(f,f.state);return f}function V(h){let f=i.get(h);if(!f)return!1;u(`Deactivating: ${h}`);let T=f.instance,R=T.hooks;if(R?.onSave)T.state=R.onSave(T);if(R?.onDeactivate)R.onDeactivate(T);if(n?.onDeactivate)n.onDeactivate(T);return!0}function z(){let h=c+p;return{hits:c,misses:p,size:i.size,max:t,hitRate:h>0?c/h:0,keys:Array.from(i.keys())}}function B(){return Array.from(i.keys())}function K(){return i.size}return{cache:C,get:y,has:b,remove:v,clear:E,prune:P,activate:S,deactivate:V,getStats:z,keys:B,size:K}}function Jh(e){let t=new Map;return{set(s,o){if(t.has(s))t.delete(s);if(t.set(s,o),t.size>e){let a=t.keys().next().value;if(a)t.delete(a)}},get(s){if(!t.has(s))return;let o=t.get(s);return t.delete(s),t.set(s,o),o},has(s){return t.has(s)},delete(s){return t.delete(s)},clear(){t.clear()},get size(){return t.size},keys(){return Array.from(t.keys())},values(){return Array.from(t.values())},forEach(s){t.forEach(s)}}}function Yh(){let e=new Map;return{save(t,s){e.set(t,JSON.parse(JSON.stringify(s)))},restore(t){let s=e.get(t);return s?JSON.parse(JSON.stringify(s)):null},has(t){return e.has(t)},remove(t){return e.delete(t)},clear(){e.clear()},keys(){return Array.from(e.keys())},get size(){return e.size}}}function Xh(e,t={}){let{maxSize:s=100,reset:o}=t,a=[];return{acquire(){if(a.length>0)return a.pop();return e()},release(n){if(a.length<s){if(o)o(n);a.push(n)}},clear(){a.length=0},get size(){return a.length},get maxSize(){return s}}}var W=new Map;async function le(e,t){let s=t||e.toString();if(W.has(s))return W.get(s);let o=e();W.set(s,o);try{return await o}catch(a){throw W.delete(s),a}}function Zh(e,t={}){let{retryAttempts:s=3,retryDelay:o=1000,onLoading:a,onLoaded:n,onError:r}=t,i="idle",c,p,u=async(d=0)=>{try{if(i==="loading"||i==="loaded"){if(c)return c}i="loading",a?.();let g=await le(e);return c=g,i="loaded",n?.(g),g}catch(g){let m=g;if(d<s)return await new Promise((k)=>setTimeout(k,o*(d+1))),u(d+1);throw i="error",p=m,r?.(m),m}};return{get state(){return i},get module(){return c},get error(){return p},load:()=>u(),preload:()=>u()}}function mr(e,t,s={}){if(!e)return console.warn("lazyLoad: element is null"),()=>{};let{root:o=null,rootMargin:a="0px",threshold:n=0.01,placeholder:r,errorContent:i,onLoading:c,onLoaded:p,onError:u}=s,d=!1,g=null;if(r)if(typeof r==="string")e.innerHTML=r;else e.innerHTML="",e.appendChild(r);return g=new IntersectionObserver(async(k)=>{for(let C of k)if(C.isIntersecting&&!d){d=!0,g?.disconnect();try{c?.();let y=await le(t);if(p?.(y),y&&typeof y.default?.render==="function"){let b=await y.default.render();e.innerHTML=b}}catch(y){let b=y;if(u?.(b),i)if(typeof i==="string")e.innerHTML=i;else e.innerHTML="",e.appendChild(i);else e.innerHTML=`<div style="color: red;">Failed to load component: ${b.message}</div>`}}},{root:o,rootMargin:a,threshold:n}),g.observe(e),()=>{g?.disconnect(),g=null}}function ef(e,t,s={}){let o=[],a=Array.from(e);for(let n of a){let r=typeof t==="function"&&t.length>0?()=>t(n):t,i=mr(n,r,s);o.push(i)}return()=>{o.forEach((n)=>n())}}function gr(e){return le(e)}function tf(e){return Promise.all(e.map((t)=>gr(t)))}function sf(e){if(e)W.delete(e);else W.clear()}function of(){return{size:W.size,keys:Array.from(W.keys())}}function af(e){return{async load(t){let s=e[t];if(!s)throw Error(`No route found for path: ${t}`);return le(s,`route:${t}`)},async preload(t){return this.load(t)},async preloadRoutes(t){return Promise.all(t.map((s)=>this.preload(s)))}}}function br(e,t,s={}){if(!e)return()=>{};let{root:o=null,rootMargin:a="50px",threshold:n=0.01,placeholder:r,onLoading:i,onLoaded:c,onError:p}=s;if(r&&typeof r==="string")e.src=r;let u=!1,d=null;return d=new IntersectionObserver((m)=>{for(let k of m)if(k.isIntersecting&&!u)u=!0,d?.disconnect(),i?.(),e.src=t,e.addEventListener("load",()=>{c?.(e),e.classList.add("loaded")},{once:!0}),e.addEventListener("error",(C)=>{let y=Error(`Failed to load image: ${t}`);p?.(y),e.classList.add("error")},{once:!0})},{root:o,rootMargin:a,threshold:n}),d.observe(e),()=>{d?.disconnect(),d=null}}function nf(e=document,t={}){let s=e.querySelectorAll("img[data-lazy-src]"),o=[];return s.forEach((a)=>{let n=a.getAttribute("data-lazy-src");if(n){let r=br(a,n,t);o.push(r)}}),()=>{o.forEach((a)=>a())}}var $e={colors:{primary:"#3b82f6",secondary:"#8b5cf6",success:"#10b981",warning:"#f59e0b",danger:"#ef4444",info:"#06b6d4",gray:"#6b7280",white:"#ffffff",black:"#000000"},typography:{fontFamily:{sans:'system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif',serif:'Georgia, Cambria, "Times New Roman", Times, serif',mono:'Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace'},fontSize:{xs:"0.75rem",sm:"0.875rem",base:"1rem",lg:"1.125rem",xl:"1.25rem","2xl":"1.5rem","3xl":"1.875rem","4xl":"2.25rem"},fontWeight:{light:"300",normal:"400",medium:"500",semibold:"600",bold:"700"},lineHeight:{tight:"1.25",normal:"1.5",relaxed:"1.75"}},spacing:{xs:"0.25rem",sm:"0.5rem",md:"1rem",lg:"1.5rem",xl:"2rem","2xl":"3rem","3xl":"4rem","4xl":"6rem"},borderRadius:{none:"0",sm:"0.125rem",md:"0.375rem",lg:"0.5rem",full:"9999px"},shadows:{sm:"0 1px 2px 0 rgba(0, 0, 0, 0.05)",md:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)",lg:"0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)",xl:"0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)","2xl":"0 25px 50px -12px rgba(0, 0, 0, 0.25)",none:"none"},components:{button:{borderRadius:"0.375rem",padding:"0.5rem 1rem",fontSize:"0.875rem",fontWeight:"500"},input:{borderRadius:"0.375rem",padding:"0.5rem 0.75rem",fontSize:"0.875rem",borderWidth:"1px"},card:{borderRadius:"0.5rem",padding:"1.5rem",shadow:"0 1px 3px 0 rgba(0, 0, 0, 0.1)"}}};function qe(e,t){let s={...e};for(let o in t)if(t[o]instanceof Object&&o in e)s[o]=qe(e[o],t[o]);else s[o]=t[o];return s}function Z(e){return qe($e,e)}var ce=$e;function lf(){return ce}function xr(e){let t=[];if(e.colors)Object.entries(e.colors).forEach(([s,o])=>{if(o)t.push(`--color-${s}: ${o};`)});if(e.typography?.fontFamily)Object.entries(e.typography.fontFamily).forEach(([s,o])=>{if(o)t.push(`--font-${s}: ${o};`)});if(e.typography?.fontSize)Object.entries(e.typography.fontSize).forEach(([s,o])=>{if(o)t.push(`--text-${s}: ${o};`)});if(e.typography?.fontWeight)Object.entries(e.typography.fontWeight).forEach(([s,o])=>{if(o)t.push(`--font-weight-${s}: ${o};`)});if(e.typography?.lineHeight)Object.entries(e.typography.lineHeight).forEach(([s,o])=>{if(o)t.push(`--leading-${s}: ${o};`)});if(e.spacing)Object.entries(e.spacing).forEach(([s,o])=>{if(o)t.push(`--spacing-${s}: ${o};`)});if(e.borderRadius)Object.entries(e.borderRadius).forEach(([s,o])=>{if(o)t.push(`--radius-${s}: ${o};`)});if(e.shadows)Object.entries(e.shadows).forEach(([s,o])=>{if(o)t.push(`--shadow-${s}: ${o};`)});if(e.components?.button)Object.entries(e.components.button).forEach(([s,o])=>{if(o)t.push(`--button-${s.replace(/([A-Z])/g,"-$1").toLowerCase()}: ${o};`)});if(e.components?.input)Object.entries(e.components.input).forEach(([s,o])=>{if(o)t.push(`--input-${s.replace(/([A-Z])/g,"-$1").toLowerCase()}: ${o};`)});if(e.components?.card)Object.entries(e.components.card).forEach(([s,o])=>{if(o)t.push(`--card-${s.replace(/([A-Z])/g,"-$1").toLowerCase()}: ${o};`)});return`:root {
22
+ `);return{html:n.replace(/(<span class="[^"]*")[^>]*?\s+style="[^"]*"/g,(y,b)=>Be.test(/class="([^"]*)"/.exec(b)?.[1]??"")?b:y),css:k}}async function Ah(e,t={}){let{theme:s="auto",language:o="typescript",lineNumbers:a=!1,wrapLines:n=!0}=t,r=s==="auto"?globalThis.matchMedia?.("(prefers-color-scheme: dark)").matches?"github-dark":"github-light":s==="dark"?Ve:Fe,i;try{i=await dr()}catch{return{html:ke(e),css:"",language:o,theme:r}}if(s==="auto"){let d=await hr(i,e,o);if(d)return{html:d.html,css:d.css,language:o,theme:"auto"}}let c;try{c=await i.highlight(e,o,{theme:r})}catch{return{html:ke(e),css:"",language:o,theme:r}}let p=c,u=typeof p==="string"?{html:p,css:""}:{html:p?.html??ke(e),css:p?.css??""};return{html:u.html,css:u.css,language:o,theme:r}}function Lh(e){if(e.includes("<!DOCTYPE")||e.includes("<html"))return"html";if(e.includes("<?php"))return"php";if(e.includes("import")&&e.includes("from"))return"typescript";if(e.includes("function")||e.includes("const"))return"javascript";if(e.includes("{")&&e.includes("}"))return"json";if(e.includes("$")&&e.includes("|"))return"bash";if(e.includes("#")&&e.includes("##"))return"markdown";return"typescript"}function Oh(e,t){return`<div class="${t?`rounded-md overflow-auto text-sm leading-relaxed font-mono ${t}`:"rounded-md overflow-auto text-sm leading-relaxed font-mono"}">${e}</div>`}var F=null,fr=(e)=>e===1?0:1;function ie(e,t){return t.split(".").reduce((s,o)=>s?.[o],e)}function Ce(e,t={}){return e.replace(/\{(\w+)\}/g,(s,o)=>t[o]!==void 0?String(t[o]):s)}function Dh(e){let{locale:t,fallbackLocale:s="en",messages:o,pluralRules:a={},dateTimeFormats:n={},numberFormats:r={},missing:i,warnMissing:c=!0}=e;function p(b,v={}){let E=ie(o[t],b);if(E===void 0&&s)E=ie(o[s],b);if(E===void 0){if(i){let P=i(t,b);if(P)return Ce(P,v)}if(c&&typeof console<"u")console.warn(`[i18n] Missing translation for key "${b}" in locale "${t}"`);return b}if(typeof E==="string")return Ce(E,v);return String(E)}function u(b,v,E={}){let P=p(b,{...E,count:v});if(P.includes("|")){let S=P.split("|").map((_)=>_.trim()),z=(a[t]||fr)(v,t),B=S[z]||S[S.length-1];return Ce(B,{...E,count:v})}return P}function d(b,v="default"){let E=typeof b==="number"?new Date(b):b,P=n[v]||n.default||{};return new Intl.DateTimeFormat(t,P).format(E)}function g(b,v="default"){let E=r[v]||r.default||{};return new Intl.NumberFormat(t,E).format(b)}function m(b){if(ie(o[t],b)!==void 0)return!0;if(s)return ie(o[s],b)!==void 0;return!1}function k(b){if(!o[b]){console.warn(`[i18n] Locale "${b}" not found. Available locales: ${Object.keys(o).join(", ")}`);return}t=b}function C(b,v){if(!o[b])o[b]={};o[b]={...o[b],...v}}function y(b){delete o[b]}return{get locale(){return t},get availableLocales(){return Object.keys(o)},setLocale:k,t:p,tc:u,d,n:g,te:m,addMessages:C,removeLocale:y}}function Rh(e){F=e}function Mh(){return F}function zh(e,t){if(!F)return console.warn("[i18n] No global i18n instance set. Call setI18n() first."),e;return F.t(e,t)}function jh(e,t,s){if(!F)return console.warn("[i18n] No global i18n instance set. Call setI18n() first."),e;return F.tc(e,t,s)}function Hh(e,t){if(!F)return console.warn("[i18n] No global i18n instance set. Call setI18n() first."),String(e);return F.d(e,t)}function Fh(e,t){if(!F)return console.warn("[i18n] No global i18n instance set. Call setI18n() first."),String(e);return F.n(e,t)}var Vh={en:(e)=>e===1?0:1,de:(e)=>e===1?0:1,nl:(e)=>e===1?0:1,sv:(e)=>e===1?0:1,fr:(e)=>e===0||e===1?0:1,pt_BR:(e)=>e===0||e===1?0:1,ru:(e)=>{if(e%10===1&&e%100!==11)return 0;if(e%10>=2&&e%10<=4&&(e%100<10||e%100>=20))return 1;return 2},pl:(e)=>{if(e===1)return 0;if(e%10>=2&&e%10<=4&&(e%100<10||e%100>=20))return 1;return 2},cs:(e)=>{if(e===1)return 0;if(e>=2&&e<=4)return 1;return 2},ar:(e)=>{if(e===0)return 0;if(e===1)return 1;if(e===2)return 2;if(e%100>=3&&e%100<=10)return 3;if(e%100>=11)return 4;return 5},ja:()=>0,ko:()=>0,zh:()=>0,th:()=>0,vi:()=>0},Bh={short:{year:"numeric",month:"numeric",day:"numeric"},long:{year:"numeric",month:"long",day:"numeric"},full:{weekday:"long",year:"numeric",month:"long",day:"numeric"},time:{hour:"numeric",minute:"numeric"},datetime:{year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric"}},qh={decimal:{style:"decimal",minimumFractionDigits:2,maximumFractionDigits:2},currency:{style:"currency",currency:"USD"},percent:{style:"percent",minimumFractionDigits:0,maximumFractionDigits:2},compact:{notation:"compact"}};function Wh(e){let t=["ar","he","fa","ur","yi"],s=e.split("-")[0].toLowerCase();return t.includes(s)}async function _h(e,t){try{return await t()}catch(s){return console.error(`[i18n] Failed to load messages for locale "${e}":`,s),{}}}var Kh={en:{common:{loading:"Loading...",error:"Error",retry:"Retry",cancel:"Cancel",confirm:"Confirm",close:"Close",save:"Save",delete:"Delete",edit:"Edit",search:"Search",clear:"Clear",submit:"Submit",reset:"Reset"},form:{required:"This field is required",invalid:"Invalid value",tooShort:"Value is too short (minimum {min} characters)",tooLong:"Value is too long (maximum {max} characters)",invalidEmail:"Invalid email address",invalidUrl:"Invalid URL"},pagination:{previous:"Previous",next:"Next",page:"Page {page}",of:"of {total}"}},es:{common:{loading:"Cargando...",error:"Error",retry:"Reintentar",cancel:"Cancelar",confirm:"Confirmar",close:"Cerrar",save:"Guardar",delete:"Eliminar",edit:"Editar",search:"Buscar",clear:"Limpiar",submit:"Enviar",reset:"Restablecer"},form:{required:"Este campo es obligatorio",invalid:"Valor inv\xE1lido",tooShort:"El valor es demasiado corto (m\xEDnimo {min} caracteres)",tooLong:"El valor es demasiado largo (m\xE1ximo {max} caracteres)",invalidEmail:"Direcci\xF3n de correo electr\xF3nico inv\xE1lida",invalidUrl:"URL inv\xE1lida"},pagination:{previous:"Anterior",next:"Siguiente",page:"P\xE1gina {page}",of:"de {total}"}},fr:{common:{loading:"Chargement...",error:"Erreur",retry:"R\xE9essayer",cancel:"Annuler",confirm:"Confirmer",close:"Fermer",save:"Enregistrer",delete:"Supprimer",edit:"Modifier",search:"Rechercher",clear:"Effacer",submit:"Soumettre",reset:"R\xE9initialiser"},form:{required:"Ce champ est obligatoire",invalid:"Valeur invalide",tooShort:"La valeur est trop courte (minimum {min} caract\xE8res)",tooLong:"La valeur est trop longue (maximum {max} caract\xE8res)",invalidEmail:"Adresse e-mail invalide",invalidUrl:"URL invalide"},pagination:{previous:"Pr\xE9c\xE9dent",next:"Suivant",page:"Page {page}",of:"sur {total}"}}};function Gh(e={}){let{max:t=10,ttl:s=0,include:o,exclude:a,hooks:n,debug:r=!1}=e,i=new Map,c=0,p=0;function u(...h){if(r)console.log("[KeepAlive]",...h)}function d(h){if(a){if(a instanceof RegExp&&a.test(h))return!1;if(Array.isArray(a)&&a.includes(h))return!1}if(o){if(o instanceof RegExp&&!o.test(h))return!1;if(Array.isArray(o)&&!o.includes(h))return!1}return!0}function g(h){if(!s||!h.expiresAt)return!1;return Date.now()>h.expiresAt}function m(h){let f=i.get(h);if(f)f.lastAccessedAt=Date.now(),f.accessCount++,f.instance.lastAccessedAt=f.lastAccessedAt,i.delete(h),i.set(h,f),u(`Touched: ${h} (access count: ${f.accessCount})`)}function k(){if(i.size===0)return!1;let h=i.keys().next().value;if(!h)return!1;let f=i.get(h);if(f){u(`Evicting LRU: ${h}`);let T=f.instance.hooks;if(T?.onDeactivate)T.onDeactivate(f.instance);if(n?.onDeactivate)n.onDeactivate(f.instance);return i.delete(h),!0}return!1}function C(h,f,T){if(!d(f.type))return u(`Type not cacheable: ${f.type}`),f;if(i.size>=t)k();let R=Date.now(),U={instance:{...f,hooks:T||f.hooks,createdAt:f.createdAt||R,lastAccessedAt:R},accessCount:0,createdAt:R,lastAccessedAt:R,expiresAt:s?R+s:void 0};if(i.set(h,U),u(`Cached: ${h} (size: ${i.size}/${t})`),T?.onMount)T.onMount(U.instance);if(n?.onMount)n.onMount(U.instance);return U.instance}function y(h){let f=i.get(h);if(!f)return p++,u(`Miss: ${h}`),null;if(g(f))return u(`Expired: ${h}`),i.delete(h),p++,null;return c++,m(h),u(`Hit: ${h}`),f.instance}function b(h){let f=i.get(h);if(!f)return!1;if(g(f))return i.delete(h),!1;return!0}function v(h){let f=i.get(h);if(!f)return!1;u(`Removing: ${h}`);let T=f.instance.hooks;if(T?.onUnmount)T.onUnmount(f.instance);if(n?.onUnmount)n.onUnmount(f.instance);return i.delete(h)}function E(){u("Clearing cache"),i.forEach((h)=>{let f=h.instance.hooks;if(f?.onUnmount)f.onUnmount(h.instance);if(n?.onUnmount)n.onUnmount(h.instance)}),i.clear(),c=0,p=0}function P(){let h=0,f=Date.now();for(let[T,R]of i.entries())if(g(R))u(`Pruning expired: ${T}`),v(T),h++;while(i.size>t)if(k())h++;else break;if(h>0)u(`Pruned ${h} entries`);return h}function S(h){let f=y(h);if(!f)return null;u(`Activating: ${h}`);let T=f.hooks;if(T?.onActivate)T.onActivate(f);if(n?.onActivate)n.onActivate(f);if(f.state&&T?.onRestore)T.onRestore(f,f.state);return f}function V(h){let f=i.get(h);if(!f)return!1;u(`Deactivating: ${h}`);let T=f.instance,R=T.hooks;if(R?.onSave)T.state=R.onSave(T);if(R?.onDeactivate)R.onDeactivate(T);if(n?.onDeactivate)n.onDeactivate(T);return!0}function z(){let h=c+p;return{hits:c,misses:p,size:i.size,max:t,hitRate:h>0?c/h:0,keys:Array.from(i.keys())}}function B(){return Array.from(i.keys())}function _(){return i.size}return{cache:C,get:y,has:b,remove:v,clear:E,prune:P,activate:S,deactivate:V,getStats:z,keys:B,size:_}}function Jh(e){let t=new Map;return{set(s,o){if(t.has(s))t.delete(s);if(t.set(s,o),t.size>e){let a=t.keys().next().value;if(a)t.delete(a)}},get(s){if(!t.has(s))return;let o=t.get(s);return t.delete(s),t.set(s,o),o},has(s){return t.has(s)},delete(s){return t.delete(s)},clear(){t.clear()},get size(){return t.size},keys(){return Array.from(t.keys())},values(){return Array.from(t.values())},forEach(s){t.forEach(s)}}}function Yh(){let e=new Map;return{save(t,s){e.set(t,JSON.parse(JSON.stringify(s)))},restore(t){let s=e.get(t);return s?JSON.parse(JSON.stringify(s)):null},has(t){return e.has(t)},remove(t){return e.delete(t)},clear(){e.clear()},keys(){return Array.from(e.keys())},get size(){return e.size}}}function Xh(e,t={}){let{maxSize:s=100,reset:o}=t,a=[];return{acquire(){if(a.length>0)return a.pop();return e()},release(n){if(a.length<s){if(o)o(n);a.push(n)}},clear(){a.length=0},get size(){return a.length},get maxSize(){return s}}}var W=new Map;async function le(e,t){let s=t||e.toString();if(W.has(s))return W.get(s);let o=e();W.set(s,o);try{return await o}catch(a){throw W.delete(s),a}}function Zh(e,t={}){let{retryAttempts:s=3,retryDelay:o=1000,onLoading:a,onLoaded:n,onError:r}=t,i="idle",c,p,u=async(d=0)=>{try{if(i==="loading"||i==="loaded"){if(c)return c}i="loading",a?.();let g=await le(e);return c=g,i="loaded",n?.(g),g}catch(g){let m=g;if(d<s)return await new Promise((k)=>setTimeout(k,o*(d+1))),u(d+1);throw i="error",p=m,r?.(m),m}};return{get state(){return i},get module(){return c},get error(){return p},load:()=>u(),preload:()=>u()}}function mr(e,t,s={}){if(!e)return console.warn("lazyLoad: element is null"),()=>{};let{root:o=null,rootMargin:a="0px",threshold:n=0.01,placeholder:r,errorContent:i,onLoading:c,onLoaded:p,onError:u}=s,d=!1,g=null;if(r)if(typeof r==="string")e.innerHTML=r;else e.innerHTML="",e.appendChild(r);return g=new IntersectionObserver(async(k)=>{for(let C of k)if(C.isIntersecting&&!d){d=!0,g?.disconnect();try{c?.();let y=await le(t);if(p?.(y),y&&typeof y.default?.render==="function"){let b=await y.default.render();e.innerHTML=b}}catch(y){let b=y;if(u?.(b),i)if(typeof i==="string")e.innerHTML=i;else e.innerHTML="",e.appendChild(i);else e.innerHTML=`<div style="color: red;">Failed to load component: ${b.message}</div>`}}},{root:o,rootMargin:a,threshold:n}),g.observe(e),()=>{g?.disconnect(),g=null}}function ef(e,t,s={}){let o=[],a=Array.from(e);for(let n of a){let r=typeof t==="function"&&t.length>0?()=>t(n):t,i=mr(n,r,s);o.push(i)}return()=>{o.forEach((n)=>n())}}function gr(e){return le(e)}function tf(e){return Promise.all(e.map((t)=>gr(t)))}function sf(e){if(e)W.delete(e);else W.clear()}function of(){return{size:W.size,keys:Array.from(W.keys())}}function af(e){return{async load(t){let s=e[t];if(!s)throw Error(`No route found for path: ${t}`);return le(s,`route:${t}`)},async preload(t){return this.load(t)},async preloadRoutes(t){return Promise.all(t.map((s)=>this.preload(s)))}}}function br(e,t,s={}){if(!e)return()=>{};let{root:o=null,rootMargin:a="50px",threshold:n=0.01,placeholder:r,onLoading:i,onLoaded:c,onError:p}=s;if(r&&typeof r==="string")e.src=r;let u=!1,d=null;return d=new IntersectionObserver((m)=>{for(let k of m)if(k.isIntersecting&&!u)u=!0,d?.disconnect(),i?.(),e.src=t,e.addEventListener("load",()=>{c?.(e),e.classList.add("loaded")},{once:!0}),e.addEventListener("error",(C)=>{let y=Error(`Failed to load image: ${t}`);p?.(y),e.classList.add("error")},{once:!0})},{root:o,rootMargin:a,threshold:n}),d.observe(e),()=>{d?.disconnect(),d=null}}function nf(e=document,t={}){let s=e.querySelectorAll("img[data-lazy-src]"),o=[];return s.forEach((a)=>{let n=a.getAttribute("data-lazy-src");if(n){let r=br(a,n,t);o.push(r)}}),()=>{o.forEach((a)=>a())}}var $e={colors:{primary:"#3b82f6",secondary:"#8b5cf6",success:"#10b981",warning:"#f59e0b",danger:"#ef4444",info:"#06b6d4",gray:"#6b7280",white:"#ffffff",black:"#000000"},typography:{fontFamily:{sans:'system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif',serif:'Georgia, Cambria, "Times New Roman", Times, serif',mono:'Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace'},fontSize:{xs:"0.75rem",sm:"0.875rem",base:"1rem",lg:"1.125rem",xl:"1.25rem","2xl":"1.5rem","3xl":"1.875rem","4xl":"2.25rem"},fontWeight:{light:"300",normal:"400",medium:"500",semibold:"600",bold:"700"},lineHeight:{tight:"1.25",normal:"1.5",relaxed:"1.75"}},spacing:{xs:"0.25rem",sm:"0.5rem",md:"1rem",lg:"1.5rem",xl:"2rem","2xl":"3rem","3xl":"4rem","4xl":"6rem"},borderRadius:{none:"0",sm:"0.125rem",md:"0.375rem",lg:"0.5rem",full:"9999px"},shadows:{sm:"0 1px 2px 0 rgba(0, 0, 0, 0.05)",md:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)",lg:"0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)",xl:"0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)","2xl":"0 25px 50px -12px rgba(0, 0, 0, 0.25)",none:"none"},components:{button:{borderRadius:"0.375rem",padding:"0.5rem 1rem",fontSize:"0.875rem",fontWeight:"500"},input:{borderRadius:"0.375rem",padding:"0.5rem 0.75rem",fontSize:"0.875rem",borderWidth:"1px"},card:{borderRadius:"0.5rem",padding:"1.5rem",shadow:"0 1px 3px 0 rgba(0, 0, 0, 0.1)"}}};function qe(e,t){let s={...e};for(let o in t)if(t[o]instanceof Object&&o in e)s[o]=qe(e[o],t[o]);else s[o]=t[o];return s}function Z(e){return qe($e,e)}var ce=$e;function lf(){return ce}function xr(e){let t=[];if(e.colors)Object.entries(e.colors).forEach(([s,o])=>{if(o)t.push(`--color-${s}: ${o};`)});if(e.typography?.fontFamily)Object.entries(e.typography.fontFamily).forEach(([s,o])=>{if(o)t.push(`--font-${s}: ${o};`)});if(e.typography?.fontSize)Object.entries(e.typography.fontSize).forEach(([s,o])=>{if(o)t.push(`--text-${s}: ${o};`)});if(e.typography?.fontWeight)Object.entries(e.typography.fontWeight).forEach(([s,o])=>{if(o)t.push(`--font-weight-${s}: ${o};`)});if(e.typography?.lineHeight)Object.entries(e.typography.lineHeight).forEach(([s,o])=>{if(o)t.push(`--leading-${s}: ${o};`)});if(e.spacing)Object.entries(e.spacing).forEach(([s,o])=>{if(o)t.push(`--spacing-${s}: ${o};`)});if(e.borderRadius)Object.entries(e.borderRadius).forEach(([s,o])=>{if(o)t.push(`--radius-${s}: ${o};`)});if(e.shadows)Object.entries(e.shadows).forEach(([s,o])=>{if(o)t.push(`--shadow-${s}: ${o};`)});if(e.components?.button)Object.entries(e.components.button).forEach(([s,o])=>{if(o)t.push(`--button-${s.replace(/([A-Z])/g,"-$1").toLowerCase()}: ${o};`)});if(e.components?.input)Object.entries(e.components.input).forEach(([s,o])=>{if(o)t.push(`--input-${s.replace(/([A-Z])/g,"-$1").toLowerCase()}: ${o};`)});if(e.components?.card)Object.entries(e.components.card).forEach(([s,o])=>{if(o)t.push(`--card-${s.replace(/([A-Z])/g,"-$1").toLowerCase()}: ${o};`)});return`:root {
23
23
  ${t.join(`
24
24
  `)}
25
- }`}function cf(e,t){if(ce=e,typeof document>"u")return;let s=t||document.documentElement;if(e.colors)Object.entries(e.colors).forEach(([o,a])=>{if(a)s.style.setProperty(`--color-${o}`,a)});if(e.typography?.fontFamily)Object.entries(e.typography.fontFamily).forEach(([o,a])=>{if(a)s.style.setProperty(`--font-${o}`,a)});if(e.typography?.fontSize)Object.entries(e.typography.fontSize).forEach(([o,a])=>{if(a)s.style.setProperty(`--text-${o}`,a)});if(e.typography?.fontWeight)Object.entries(e.typography.fontWeight).forEach(([o,a])=>{if(a)s.style.setProperty(`--font-weight-${o}`,a)});if(e.typography?.lineHeight)Object.entries(e.typography.lineHeight).forEach(([o,a])=>{if(a)s.style.setProperty(`--leading-${o}`,a)});if(e.spacing)Object.entries(e.spacing).forEach(([o,a])=>{if(a)s.style.setProperty(`--spacing-${o}`,a)});if(e.borderRadius)Object.entries(e.borderRadius).forEach(([o,a])=>{if(a)s.style.setProperty(`--radius-${o}`,a)});if(e.shadows)Object.entries(e.shadows).forEach(([o,a])=>{if(a)s.style.setProperty(`--shadow-${o}`,a)});if(e.components?.button)Object.entries(e.components.button).forEach(([o,a])=>{if(a)s.style.setProperty(`--button-${o.replace(/([A-Z])/g,"-$1").toLowerCase()}`,a)});if(e.components?.input)Object.entries(e.components.input).forEach(([o,a])=>{if(a)s.style.setProperty(`--input-${o.replace(/([A-Z])/g,"-$1").toLowerCase()}`,a)});if(e.components?.card)Object.entries(e.components.card).forEach(([o,a])=>{if(a)s.style.setProperty(`--card-${o.replace(/([A-Z])/g,"-$1").toLowerCase()}`,a)})}function df(){return ce}function pf(e){let t=e.split("."),s=ce;for(let o of t)if(s&&typeof s==="object"&&o in s)s=s[o];else return;return s}var uf={default:$e,purple:Z({colors:{primary:"#8b5cf6",secondary:"#a78bfa"}}),green:Z({colors:{primary:"#10b981",secondary:"#34d399"}}),orange:Z({colors:{primary:"#f97316",secondary:"#fb923c"}}),dark:Z({colors:{primary:"#60a5fa",secondary:"#a78bfa",gray:"#9ca3af",white:"#1f2937",black:"#f9fafb"}}),minimal:Z({borderRadius:{none:"0",sm:"0",md:"0.125rem",lg:"0.25rem",full:"0.25rem"},shadows:{sm:"none",md:"0 1px 2px 0 rgba(0, 0, 0, 0.05)",lg:"0 1px 3px 0 rgba(0, 0, 0, 0.1)",xl:"0 4px 6px -1px rgba(0, 0, 0, 0.1)","2xl":"0 10px 15px -3px rgba(0, 0, 0, 0.1)",none:"none"}})};function hf(e){return xr(e)}var wr="./ChatInbox-cbbb5x1n.stx";var kr="./ChatMessage-rj37tdgn.stx";var $r="./ConversationListItem-fjha2cgq.stx";var Tr="./MessageBubble-v5m96g43.stx";function vf(e,t=""){if(!e)return"";let s=e;if(typeof s.href==="string"&&s.href)return s.href;if(!t)return"";let o=!1,a=t.replace(/\{(\w+)\}/g,(n,r)=>{let i=s[r];if(i==null||i==="")return o=!0,"";return encodeURIComponent(String(i))});return o?"":a}import{derived as de,effect as Er,sharedRequest as Ir,state as D}from"@stacksjs/stx";import{useBroadcastStream as Pr}from"@stacksjs/stx/composables/use-broadcast-stream";var Ar=1500;function Cf(e){let t=e.endpoint??"/messages",s=D([]),o=D([]),a=D(null),n=D(""),r=D([]),i=D(!1),c=D(!1),p=D(!1),u=D(""),d=D(""),g=D(""),m=D(!1),k=D(!1),C=D(4000),y=D(!1),b=new Set,v=null,E=null,P="",S=0,V=new Map,z=null,B=!1,K=0;function h(){S++,s.set([]),o.set([]),a.set(null),n.set(""),r.set([]),d.set(""),u.set(""),i.set(!1),c.set(!1),p.set(!1),V=new Map,z=null,K=0,k.set(!1),v?.close(),v=null}function f(){let w=e.scopeKey();if(w!==P)h(),P=w;return Je(),S}async function T(w,x){let I=await e.request(`${t}${w}`,{...x,cache:"no-store"}),A=await I.json().catch(()=>({}));if(!I.ok)throw Error(A.error||"Could not load messages. Try again.");return A}let R=de(()=>{let w=g().toLowerCase().trim();return s().map((x)=>({...x,conversation:o().find((I)=>I.recipient_id===x.id)})).filter((x)=>(!w||`${x.name} ${x.role}`.toLowerCase().includes(w))&&(!m()||(x.conversation?.unread??0)>0)).sort((x,I)=>(I.conversation?.last_message?.id??0)-(x.conversation?.last_message?.id??0)||x.name.localeCompare(I.name))}),U=de(()=>o().reduce((w,x)=>w+x.unread,0)),Se=de(()=>!!n()&&!!d().trim()&&d().trim().length<=C()&&!p()&&!c()),We=de(e.selfId);function Y(w){u.set(w instanceof Error?w.message:"Could not load messages. Try again.")}async function pe(w,x,I=!0){let A=await T(`/conversations/${x}`);if(w!==S||x!==n()||e.scopeKey()!==P)return;let j=A.messages[0]?.id;if(r.set([...r().filter((ge)=>j&&ge.id<j),...A.messages]),r().length===A.messages.length)k.set(A.has_more);let te=A.messages.at(-1);if(I&&te){if(await T(`/conversations/${x}/read`,{method:"POST",body:JSON.stringify({through_id:te.id})}),w===S&&x===n())o.update((ge)=>ge.map((be)=>be.id===x?{...be,unread:0}:be))}}let ue=Ir(),ee=new Set;function Ke(){if(!e.broadcastEndpoint||!e.selfId()||y())return Promise.resolve();return new Promise((w)=>{let x=()=>{clearTimeout(I),ee.delete(x),w()},I=setTimeout(x,Ar);ee.add(x)})}function Te(){if(!ee.size)return!1;for(let w of[...ee])w();return!0}function Ee(){return f(),ue.run(S,()=>Ke().then(Ie)).finally(G)}async function _e(){f(),await ue.fresh(S,()=>Ie()).finally(G)}async function Ie(){let w=f();i.set(!0),u.set("");try{let x=await T("");if(w!==S||e.scopeKey()!==P)return;s.set(x.contacts),o.set(x.conversations),C.set(x.max_length),i.set(!1);let I=a()?x.contacts.find((j)=>j.id===a().id):null;if(a()&&!I){let j=a().id;Pe(),V.delete(j),d.set(""),z=null}else if(I)a.set(I);let A=e.initialRecipient?.()??0;if(A>0&&A!==K){let j=x.contacts.find((te)=>te.id===A);if(j)K=A,await he(j)}}catch(x){if(w===S)Y(x)}finally{if(w===S)i.set(!1)}}async function he(w){if(f(),a())V.set(a().id,d());let x=++S;p.set(!1),a.set(w),d.set(V.get(w.id)??""),n.set(""),r.set([]),k.set(!1),u.set(""),c.set(!0);try{let I=await T("/conversations",{method:"POST",body:JSON.stringify({recipient_id:w.id})});if(x!==S||e.scopeKey()!==P)return;n.set(I.id),await pe(x,I.id)}catch(I){if(x===S)Y(I)}finally{if(x===S)c.set(!1);G()}}function Pe(){if(a())V.set(a().id,d());S++,p.set(!1),c.set(!1),a.set(null),n.set(""),r.set([]),u.set("")}async function Ue(){if(f(),!Se())return;let w=n(),x=d().trim(),I=S,A=z?.body===x&&z.thread===w?z.key:crypto.randomUUID();z={body:x,key:A,thread:w},p.set(!0),u.set("");try{if(await T(`/conversations/${w}/messages`,{method:"POST",body:JSON.stringify({body:x,client_key:A})}),I!==S||e.scopeKey()!==P)return;if(d().trim()===x)d.set("");V.delete(a().id),z=null,await pe(I,w),await _e()}catch(j){if(I===S)Y(j)}finally{if(I===S)p.set(!1);G()}}async function Ge(){let w=n(),x=r()[0]?.id,I=S;if(!w||!x||c())return;c.set(!0);try{let A=await T(`/conversations/${w}?before=${x}`);if(I===S&&w===n())r.set([...A.messages,...r()]),k.set(A.has_more)}catch(A){if(I===S)Y(A)}finally{if(I===S)c.set(!1);G()}}async function Ae(w=!1){if(B||p()||c())return;B=!0;try{if(await Ee(),w&&a()&&!n())await he(a());else if(w&&n())await pe(S,n())}catch(x){Y(x)}finally{B=!1,G()}}let fe=!1;async function me(){if(B||ue.busy||p()||c()){fe=!0;return}await Ae([...b].some((w)=>w()))}function Je(){if(v||!b.size||!e.selfId()||!e.broadcastEndpoint)return;let w=P;v=Pr({endpoint:e.broadcastEndpoint,request:e.request,onStatus:(x)=>{if(y.set(x),!x)Te()},onConnected:()=>{if(!Te()&&w===e.scopeKey())me()},onMessage:(x)=>{if(w===e.scopeKey()&&x.event.startsWith("messaging."))me()}})}function Ye(w=()=>!1){if(b.add(w),f(),!E)E=Er(()=>{f()});return()=>{if(b.delete(w),!b.size)v?.close(),v=null,E?.(),E=null}}function G(){if(fe)fe=!1,me()}return{contacts:s,conversations:o,selected:a,threadId:n,messages:r,loading:i,threadLoading:c,sending:p,error:u,draft:d,search:g,unreadOnly:m,hasMore:k,maxLength:C,rows:R,unread:U,canSend:Se,selfId:We,load:Ee,open:he,back:Pe,send:Ue,older:Ge,refresh:Ae,reset:h,observe:Ye,connected:y}}var Or="./ChatUnreadBadge-3vq0t8d2.stx";var Dr="./ChatLauncher-3zph4trh.stx";export{rt as Accordion,lt as AccordionItem,$h as AnimationClasses,dt as Audio,xt as Avatar,wt as Badge,kt as Breadcrumb,Q as Breakpoints,Et as Button,At as Calendar,Ft as Card,wr as ChatInbox,Dr as ChatLauncher,kr as ChatMessage,Or as ChatUnreadBadge,Bt as Checkbox,No as Checkout,Wt as ChoiceChips,Xe as CodeBlock,_t as Combobox,Gt as ComboboxButton,Yt as ComboboxInput,Qt as ComboboxOption,es as ComboboxOptions,ss as CommandPalette,as as CommandPaletteItem,M as ComponentError,$r as ConversationListItem,Ot as DateRangePicker,Ro as DefaultPaymentMethod,rs as Dialog,ls as DialogBackdrop,ds as DialogDescription,us as DialogPanel,fs as DialogTitle,gs as Drawer,xs as Dropdown,ws as DropdownButton,ks as DropdownItem,$s as DropdownItems,vh as Easing,Rs as EmailInput,Dt as EmptyState,Mt as ErrorState,J as ErrorTypes,lo as FilterChip,po as FilterChips,Qe as Footer,Ts as Form,Ps as GroupedList,Ls as GroupedListRow,Ze as Hero,Ns as Image,et as Installation,ih as KeyboardKeys,Qr as KeyboardShortcuts,lr as KeyframeAnimations,Ys as List,ho as ListRow,Qs as Listbox,eo as ListboxButton,so as ListboxLabel,ao as ListboxOption,ro as ListboxOptions,ut as Login,Tr as MessageBubble,mo as NavBar,Co as Navigator,So as Notification,zs as NumberInput,Eo as Pager,Po as PagerDots,Lo as Pagination,Hs as PasswordInput,zo as PaymentMethods,Vo as Popover,qo as PopoverButton,Ko as PopoverPanel,Uo as Portal,Jo as Progress,l as PropTypes,Xo as Radio,Zo as RadioGroup,ta as RadioGroupDescription,oa as RadioGroupLabel,na as RadioGroupOption,hi as SHADE_VAR_PREFIX,Vs as SearchInput,bo as SectionCard,ia as SegmentedControl,ca as Select,pa as Sidebar,ha as SidebarFooter,ma as SidebarHeader,ba as SidebarItem,va as SidebarPinned,ya as SidebarSection,Ca as SidebarSpace,Ea as SidebarSpaceSwitcher,Sa as SidebarSpaces,ft as Signup,Ha as Skeleton,Va as Spinner,qa as Stepper,Ka as StepperStep,re as StorageManager,Ho as SubscriptionCheckout,Ua as Switch,Le as THEMED_FAMILIES,ln as Tab,vo as TabBar,yo as TabBarItem,dn as TabList,un as TabPanel,Ja as Table,Xa as TableBody,Za as TableCell,tn as TableHead,on as TableHeader,nn as TableRow,fn as Tabs,gn as Teleport,qs as TextInput,xn as Textarea,jt as ThemeToggle,wn as Tooltip,kn as Transition,gt as TwoFactorChallenge,$n as Video,Tn as VirtualList,In as VirtualTable,Ih as animate,Sh as animateWithClass,ah as announceToScreenReader,je as applyAnimation,Oh as applyHeadwindClasses,cf as applyTheme,ph as aria,Ct as assert,Ui as assertProp,It as buttonPropSchema,Bi as clearErrorHandler,sf as clearModuleCache,ci as closeOverlay,_h as componentMessages,vf as contactLink,Fr as copyToClipboard,oh as createAriaDescription,sh as createAriaLabel,Cf as createChat,Xh as createComponentPool,Wi as createDebugger,nh as createFocusTrap,Dh as createI18n,Gh as createKeepAlive,ir as createKeyframeAnimation,Th as createKeyframes,Jh as createLRUCache,H as createPropValidator,af as createRouteLoader,rh as createRovingTabindex,el as createSafeClickHandler,uh as createScreenReaderText,gh as createSkipLink,Yh as createStateManager,lu as createStorage,Z as createTheme,nr as cssAnimation,Hh as d,Bh as dateTimeFormats,$e as defaultTheme,De as deriveSpaceTint,Lh as detectLanguage,qi as devAssert,tr as easeInBack,ze as easeInBounce,Jn as easeInCirc,Dn as easeInCubic,Qn as easeInElastic,_n as easeInExpo,or as easeInOutBack,ar as easeInOutBounce,Xn as easeInOutCirc,Mn as easeInOutCubic,er as easeInOutElastic,Gn as easeInOutExpo,Nn as easeInOutQuad,Hn as easeInOutQuart,Bn as easeInOutQuint,Kn as easeInOutSine,Ln as easeInQuad,zn as easeInQuart,Fn as easeInQuint,qn as easeInSine,sr as easeOutBack,we as easeOutBounce,Yn as easeOutCirc,Rn as easeOutCubic,Zn as easeOutElastic,Un as easeOutExpo,On as easeOutQuad,jn as easeOutQuart,Vn as easeOutQuint,Wn as easeOutSine,Ki as errorBoundary,Es as formPropSchema,Me as generateId,Kr as generateSEOTags,hf as generateThemeCSS,of as getCacheStats,mh as getColorSchemePreference,xe as getEffectiveTheme,ve as getFocusableElements,dr as getHighlighter,Mh as getI18n,tt as getSystemTheme,lf as getTheme,pf as getThemeValue,ae as handleError,lh as hasFocus,Ah as highlight,Wh as isRTL,di as isTopOverlay,dh as isVisibleToScreenReader,mr as lazyLoad,ef as lazyLoadAll,Zh as lazyLoadComponent,br as lazyLoadImage,nf as lazyLoadImages,le as lazyLoadModule,An as linear,Kh as loadLocaleMessages,ne as macosColors,ch as moveFocus,Fh as n,za as normalizeSpace,Np as normalizeSpaces,qh as numberFormats,_s as numberInputPropSchema,li as openOverlay,pi as openOverlays,Vh as pluralRules,fh as prefersHighContrast,hh as prefersReducedMotion,gr as preloadModule,tf as preloadModules,yh as removeAnimation,Pp as resolveIconColor,Ip as resolveSidebarTheme,Ra as resolveSpaceTint,Ch as sequenceAnimations,Vi as setErrorHandler,Rh as setI18n,ot as setLink,O as setMeta,st as setTitle,Ne as sidebarThemes,Dp as spaceIndexOf,Rp as spaceTintPayload,Ma as spaceTintVars,Op as spaceWashGradient,kh as staggerAnimation,iu as storage,fi as stxThemePreset,zh as t,jh as tc,Ks as textInputPropSchema,uf as themePresets,xr as themeToCSSProperties,mi as themeVariableNames,si as useBreakpoint,Ur as useClickOutside,Hr as useCopyCode,Br as useDarkMode,Jr as useFocusTrap,ni as useIsDarkMode,ai as useIsDesktop,oi as useIsMobile,Xr as useKeyboard,ei as useLocalStorage,X as useMediaQuery,ri as usePrefersReducedMotion,Wr as useSEO,df as useTheme,bh as validateAriaRelationships,Zi as validateButtonProps,Dc as validateEmailInputProps,gc as validateFormProps,Mc as validateNumberInputProps,Rc as validatePasswordInputProps,St as validateProps,zc as validateSearchInputProps,sl as validateSize,Nc as validateTextInputProps,tl as validateVariant,rr as waitForAnimation,$t as warn,Gi as warnProp,Oe as wrapErrorHandler};
25
+ }`}function cf(e,t){if(ce=e,typeof document>"u")return;let s=t||document.documentElement;if(e.colors)Object.entries(e.colors).forEach(([o,a])=>{if(a)s.style.setProperty(`--color-${o}`,a)});if(e.typography?.fontFamily)Object.entries(e.typography.fontFamily).forEach(([o,a])=>{if(a)s.style.setProperty(`--font-${o}`,a)});if(e.typography?.fontSize)Object.entries(e.typography.fontSize).forEach(([o,a])=>{if(a)s.style.setProperty(`--text-${o}`,a)});if(e.typography?.fontWeight)Object.entries(e.typography.fontWeight).forEach(([o,a])=>{if(a)s.style.setProperty(`--font-weight-${o}`,a)});if(e.typography?.lineHeight)Object.entries(e.typography.lineHeight).forEach(([o,a])=>{if(a)s.style.setProperty(`--leading-${o}`,a)});if(e.spacing)Object.entries(e.spacing).forEach(([o,a])=>{if(a)s.style.setProperty(`--spacing-${o}`,a)});if(e.borderRadius)Object.entries(e.borderRadius).forEach(([o,a])=>{if(a)s.style.setProperty(`--radius-${o}`,a)});if(e.shadows)Object.entries(e.shadows).forEach(([o,a])=>{if(a)s.style.setProperty(`--shadow-${o}`,a)});if(e.components?.button)Object.entries(e.components.button).forEach(([o,a])=>{if(a)s.style.setProperty(`--button-${o.replace(/([A-Z])/g,"-$1").toLowerCase()}`,a)});if(e.components?.input)Object.entries(e.components.input).forEach(([o,a])=>{if(a)s.style.setProperty(`--input-${o.replace(/([A-Z])/g,"-$1").toLowerCase()}`,a)});if(e.components?.card)Object.entries(e.components.card).forEach(([o,a])=>{if(a)s.style.setProperty(`--card-${o.replace(/([A-Z])/g,"-$1").toLowerCase()}`,a)})}function df(){return ce}function pf(e){let t=e.split("."),s=ce;for(let o of t)if(s&&typeof s==="object"&&o in s)s=s[o];else return;return s}var uf={default:$e,purple:Z({colors:{primary:"#8b5cf6",secondary:"#a78bfa"}}),green:Z({colors:{primary:"#10b981",secondary:"#34d399"}}),orange:Z({colors:{primary:"#f97316",secondary:"#fb923c"}}),dark:Z({colors:{primary:"#60a5fa",secondary:"#a78bfa",gray:"#9ca3af",white:"#1f2937",black:"#f9fafb"}}),minimal:Z({borderRadius:{none:"0",sm:"0",md:"0.125rem",lg:"0.25rem",full:"0.25rem"},shadows:{sm:"none",md:"0 1px 2px 0 rgba(0, 0, 0, 0.05)",lg:"0 1px 3px 0 rgba(0, 0, 0, 0.1)",xl:"0 4px 6px -1px rgba(0, 0, 0, 0.1)","2xl":"0 10px 15px -3px rgba(0, 0, 0, 0.1)",none:"none"}})};function hf(e){return xr(e)}var wr="./ChatInbox-cbbb5x1n.stx";var kr="./ChatMessage-rj37tdgn.stx";var $r="./ConversationListItem-fjha2cgq.stx";var Tr="./MessageBubble-v5m96g43.stx";function vf(e,t=""){if(!e)return"";let s=e;if(typeof s.href==="string"&&s.href)return s.href;if(!t)return"";let o=!1,a=t.replace(/\{(\w+)\}/g,(n,r)=>{let i=s[r];if(i==null||i==="")return o=!0,"";return encodeURIComponent(String(i))});return o?"":a}import{derived as de,effect as Er,sharedRequest as Ir,state as D}from"@stacksjs/stx";import{useBroadcastStream as Pr}from"@stacksjs/stx/composables/use-broadcast-stream";var Ar=1500;function Cf(e){let t=e.endpoint??"/messages",s=D([]),o=D([]),a=D(null),n=D(""),r=D([]),i=D(!1),c=D(!1),p=D(!1),u=D(""),d=D(""),g=D(""),m=D(!1),k=D(!1),C=D(4000),y=D(!1),b=new Set,v=null,E=null,P="",S=0,V=new Map,z=null,B=!1,_=0;function h(){S++,s.set([]),o.set([]),a.set(null),n.set(""),r.set([]),d.set(""),u.set(""),i.set(!1),c.set(!1),p.set(!1),V=new Map,z=null,_=0,k.set(!1),v?.close(),v=null}function f(){let w=e.scopeKey();if(w!==P)h(),P=w;return Je(),S}async function T(w,x){let I=await e.request(`${t}${w}`,{...x,cache:"no-store"}),A=await I.json().catch(()=>({}));if(!I.ok)throw Error(A.error||"Could not load messages. Try again.");return A}let R=de(()=>{let w=g().toLowerCase().trim();return s().map((x)=>({...x,conversation:o().find((I)=>I.recipient_id===x.id)})).filter((x)=>(!w||`${x.name} ${x.role}`.toLowerCase().includes(w))&&(!m()||(x.conversation?.unread??0)>0)).sort((x,I)=>(I.conversation?.last_message?.id??0)-(x.conversation?.last_message?.id??0)||x.name.localeCompare(I.name))}),U=de(()=>o().reduce((w,x)=>w+x.unread,0)),Se=de(()=>!!n()&&!!d().trim()&&d().trim().length<=C()&&!p()&&!c()),We=de(e.selfId);function Y(w){u.set(w instanceof Error?w.message:"Could not load messages. Try again.")}async function pe(w,x,I=!0){let A=await T(`/conversations/${x}`);if(w!==S||x!==n()||e.scopeKey()!==P)return;let j=A.messages[0]?.id;if(r.set([...r().filter((ge)=>j&&ge.id<j),...A.messages]),r().length===A.messages.length)k.set(A.has_more);let te=A.messages.at(-1);if(I&&te){if(await T(`/conversations/${x}/read`,{method:"POST",body:JSON.stringify({through_id:te.id})}),w===S&&x===n())o.update((ge)=>ge.map((be)=>be.id===x?{...be,unread:0}:be))}}let ue=Ir(),ee=new Set;function _e(){if(!e.broadcastEndpoint||!e.selfId()||y())return Promise.resolve();return new Promise((w)=>{let x=()=>{clearTimeout(I),ee.delete(x),w()},I=setTimeout(x,Ar);ee.add(x)})}function Te(){if(!ee.size)return!1;for(let w of[...ee])w();return!0}function Ee(){return f(),ue.run(S,()=>_e().then(Ie)).finally(G)}async function Ke(){f(),await ue.fresh(S,()=>Ie()).finally(G)}async function Ie(){let w=f();i.set(!0),u.set("");try{let x=await T("");if(w!==S||e.scopeKey()!==P)return;s.set(x.contacts),o.set(x.conversations),C.set(x.max_length),i.set(!1);let I=a()?x.contacts.find((j)=>j.id===a().id):null;if(a()&&!I){let j=a().id;Pe(),V.delete(j),d.set(""),z=null}else if(I)a.set(I);let A=e.initialRecipient?.()??0;if(A>0&&A!==_){let j=x.contacts.find((te)=>te.id===A);if(j)_=A,await he(j)}}catch(x){if(w===S)Y(x)}finally{if(w===S)i.set(!1)}}async function he(w){if(f(),a())V.set(a().id,d());let x=++S;p.set(!1),a.set(w),d.set(V.get(w.id)??""),n.set(""),r.set([]),k.set(!1),u.set(""),c.set(!0);try{let I=await T("/conversations",{method:"POST",body:JSON.stringify({recipient_id:w.id})});if(x!==S||e.scopeKey()!==P)return;n.set(I.id),await pe(x,I.id)}catch(I){if(x===S)Y(I)}finally{if(x===S)c.set(!1);G()}}function Pe(){if(a())V.set(a().id,d());S++,p.set(!1),c.set(!1),a.set(null),n.set(""),r.set([]),u.set("")}async function Ue(){if(f(),!Se())return;let w=n(),x=d().trim(),I=S,A=z?.body===x&&z.thread===w?z.key:crypto.randomUUID();z={body:x,key:A,thread:w},p.set(!0),u.set("");try{if(await T(`/conversations/${w}/messages`,{method:"POST",body:JSON.stringify({body:x,client_key:A})}),I!==S||e.scopeKey()!==P)return;if(d().trim()===x)d.set("");V.delete(a().id),z=null,await pe(I,w),await Ke()}catch(j){if(I===S)Y(j)}finally{if(I===S)p.set(!1);G()}}async function Ge(){let w=n(),x=r()[0]?.id,I=S;if(!w||!x||c())return;c.set(!0);try{let A=await T(`/conversations/${w}?before=${x}`);if(I===S&&w===n())r.set([...A.messages,...r()]),k.set(A.has_more)}catch(A){if(I===S)Y(A)}finally{if(I===S)c.set(!1);G()}}async function Ae(w=!1){if(B||p()||c())return;B=!0;try{if(await Ee(),w&&a()&&!n())await he(a());else if(w&&n())await pe(S,n())}catch(x){Y(x)}finally{B=!1,G()}}let fe=!1;async function me(){if(B||ue.busy||p()||c()){fe=!0;return}await Ae([...b].some((w)=>w()))}function Je(){if(v||!b.size||!e.selfId()||!e.broadcastEndpoint)return;let w=P;v=Pr({endpoint:e.broadcastEndpoint,request:e.request,onStatus:(x)=>{if(y.set(x),!x)Te()},onConnected:()=>{if(!Te()&&w===e.scopeKey())me()},onMessage:(x)=>{if(w===e.scopeKey()&&x.event.startsWith("messaging."))me()}})}function Ye(w=()=>!1){if(b.add(w),f(),!E)E=Er(()=>{f()});return()=>{if(b.delete(w),!b.size)v?.close(),v=null,E?.(),E=null}}function G(){if(fe)fe=!1,me()}return{contacts:s,conversations:o,selected:a,threadId:n,messages:r,loading:i,threadLoading:c,sending:p,error:u,draft:d,search:g,unreadOnly:m,hasMore:k,maxLength:C,rows:R,unread:U,canSend:Se,selfId:We,load:Ee,open:he,back:Pe,send:Ue,older:Ge,refresh:Ae,reset:h,observe:Ye,connected:y}}var Or="./ChatUnreadBadge-3vq0t8d2.stx";var Dr="./ChatLauncher-3zph4trh.stx";export{rt as Accordion,lt as AccordionItem,$h as AnimationClasses,dt as Audio,xt as Avatar,wt as Badge,kt as Breadcrumb,Q as Breakpoints,Et as Button,At as Calendar,Ft as Card,wr as ChatInbox,Dr as ChatLauncher,kr as ChatMessage,Or as ChatUnreadBadge,Bt as Checkbox,No as Checkout,Wt as ChoiceChips,Xe as CodeBlock,Kt as Combobox,Gt as ComboboxButton,Yt as ComboboxInput,Qt as ComboboxOption,es as ComboboxOptions,ss as CommandPalette,as as CommandPaletteItem,M as ComponentError,$r as ConversationListItem,Ot as DateRangePicker,Ro as DefaultPaymentMethod,rs as Dialog,ls as DialogBackdrop,ds as DialogDescription,us as DialogPanel,fs as DialogTitle,gs as Drawer,xs as Dropdown,ws as DropdownButton,ks as DropdownItem,$s as DropdownItems,vh as Easing,Rs as EmailInput,Dt as EmptyState,Mt as ErrorState,J as ErrorTypes,lo as FilterChip,po as FilterChips,Qe as Footer,Ts as Form,Ps as GroupedList,Ls as GroupedListRow,Ze as Hero,Ns as Image,et as Installation,ih as KeyboardKeys,Qr as KeyboardShortcuts,lr as KeyframeAnimations,Ys as List,ho as ListRow,Qs as Listbox,eo as ListboxButton,so as ListboxLabel,ao as ListboxOption,ro as ListboxOptions,ut as Login,Tr as MessageBubble,mo as NavBar,Co as Navigator,So as Notification,zs as NumberInput,Eo as Pager,Po as PagerDots,Lo as Pagination,Hs as PasswordInput,zo as PaymentMethods,Vo as Popover,qo as PopoverButton,_o as PopoverPanel,Uo as Portal,Jo as Progress,l as PropTypes,Xo as Radio,Zo as RadioGroup,ta as RadioGroupDescription,oa as RadioGroupLabel,na as RadioGroupOption,hi as SHADE_VAR_PREFIX,Vs as SearchInput,bo as SectionCard,ia as SegmentedControl,ca as Select,pa as Sidebar,ha as SidebarFooter,ma as SidebarHeader,ba as SidebarItem,va as SidebarPinned,ya as SidebarSection,Ca as SidebarSpace,Ea as SidebarSpaceSwitcher,Sa as SidebarSpaces,ft as Signup,Ha as Skeleton,Va as Spinner,qa as Stepper,_a as StepperStep,re as StorageManager,Ho as SubscriptionCheckout,Ua as Switch,Le as THEMED_FAMILIES,ln as Tab,vo as TabBar,yo as TabBarItem,dn as TabList,un as TabPanel,Ja as Table,Xa as TableBody,Za as TableCell,tn as TableHead,on as TableHeader,nn as TableRow,fn as Tabs,gn as Teleport,qs as TextInput,xn as Textarea,jt as ThemeToggle,wn as Tooltip,kn as Transition,gt as TwoFactorChallenge,$n as Video,Tn as VirtualList,In as VirtualTable,Ih as animate,Sh as animateWithClass,ah as announceToScreenReader,je as applyAnimation,Oh as applyHeadwindClasses,cf as applyTheme,ph as aria,Ct as assert,Ui as assertProp,It as buttonPropSchema,Bi as clearErrorHandler,sf as clearModuleCache,ci as closeOverlay,Kh as componentMessages,vf as contactLink,Fr as copyToClipboard,oh as createAriaDescription,sh as createAriaLabel,Cf as createChat,Xh as createComponentPool,Wi as createDebugger,nh as createFocusTrap,Dh as createI18n,Gh as createKeepAlive,ir as createKeyframeAnimation,Th as createKeyframes,Jh as createLRUCache,H as createPropValidator,af as createRouteLoader,rh as createRovingTabindex,el as createSafeClickHandler,uh as createScreenReaderText,gh as createSkipLink,Yh as createStateManager,lu as createStorage,Z as createTheme,nr as cssAnimation,Hh as d,Bh as dateTimeFormats,$e as defaultTheme,De as deriveSpaceTint,Lh as detectLanguage,qi as devAssert,tr as easeInBack,ze as easeInBounce,Jn as easeInCirc,Dn as easeInCubic,Qn as easeInElastic,Kn as easeInExpo,or as easeInOutBack,ar as easeInOutBounce,Xn as easeInOutCirc,Mn as easeInOutCubic,er as easeInOutElastic,Gn as easeInOutExpo,Nn as easeInOutQuad,Hn as easeInOutQuart,Bn as easeInOutQuint,_n as easeInOutSine,Ln as easeInQuad,zn as easeInQuart,Fn as easeInQuint,qn as easeInSine,sr as easeOutBack,we as easeOutBounce,Yn as easeOutCirc,Rn as easeOutCubic,Zn as easeOutElastic,Un as easeOutExpo,On as easeOutQuad,jn as easeOutQuart,Vn as easeOutQuint,Wn as easeOutSine,_i as errorBoundary,Es as formPropSchema,Me as generateId,_r as generateSEOTags,hf as generateThemeCSS,of as getCacheStats,mh as getColorSchemePreference,xe as getEffectiveTheme,ve as getFocusableElements,dr as getHighlighter,Mh as getI18n,tt as getSystemTheme,lf as getTheme,pf as getThemeValue,ae as handleError,lh as hasFocus,Ah as highlight,Wh as isRTL,di as isTopOverlay,dh as isVisibleToScreenReader,mr as lazyLoad,ef as lazyLoadAll,Zh as lazyLoadComponent,br as lazyLoadImage,nf as lazyLoadImages,le as lazyLoadModule,An as linear,_h as loadLocaleMessages,ne as macosColors,ch as moveFocus,Fh as n,za as normalizeSpace,Np as normalizeSpaces,qh as numberFormats,Ks as numberInputPropSchema,li as openOverlay,pi as openOverlays,Vh as pluralRules,fh as prefersHighContrast,hh as prefersReducedMotion,gr as preloadModule,tf as preloadModules,yh as removeAnimation,Pp as resolveIconColor,Ip as resolveSidebarTheme,Ra as resolveSpaceTint,Ch as sequenceAnimations,Vi as setErrorHandler,Rh as setI18n,ot as setLink,O as setMeta,st as setTitle,Ne as sidebarThemes,Dp as spaceIndexOf,Rp as spaceTintPayload,Ma as spaceTintVars,Op as spaceWashGradient,kh as staggerAnimation,iu as storage,fi as stxThemePreset,zh as t,jh as tc,_s as textInputPropSchema,uf as themePresets,xr as themeToCSSProperties,mi as themeVariableNames,si as useBreakpoint,Ur as useClickOutside,Hr as useCopyCode,Br as useDarkMode,Jr as useFocusTrap,ni as useIsDarkMode,ai as useIsDesktop,oi as useIsMobile,Xr as useKeyboard,ei as useLocalStorage,X as useMediaQuery,ri as usePrefersReducedMotion,Wr as useSEO,df as useTheme,bh as validateAriaRelationships,Zi as validateButtonProps,Dc as validateEmailInputProps,gc as validateFormProps,Mc as validateNumberInputProps,Rc as validatePasswordInputProps,St as validateProps,zc as validateSearchInputProps,sl as validateSize,Nc as validateTextInputProps,tl as validateVariant,rr as waitForAnimation,$t as warn,Gi as warnProp,Oe as wrapErrorHandler};
@@ -45,9 +45,14 @@ export declare const fetchpriority: unknown;
45
45
  * through anything transparent in it and stays there once it has loaded,
46
46
  * which is a permanent artefact on every PNG with an alpha channel.
47
47
  */
48
- declare const placeholderMode: unknown;
48
+ export declare const placeholderMode: unknown;
49
49
  declare const imagePlaceholder: unknown;
50
+ export declare const authoredPlaceholderColor: unknown;
51
+ export declare const paletteColor: unknown;
50
52
  declare const placeholderColor: unknown;
53
+ export declare const preview: unknown;
54
+ export declare const hasAutomaticPlaceholder: unknown;
55
+ export declare const placeholderIsTransparent: unknown;
51
56
  export declare const placeholder: boolean;
52
57
  export declare const aspectRatio: unknown;
53
58
  export declare const authoredObjectFit: unknown;
@@ -56,7 +61,8 @@ export declare const objectFit: unknown;
56
61
  export declare const authoredObjectPosition: unknown;
57
62
  export declare const authoredPosition: unknown;
58
63
  export declare const objectPosition: unknown;
59
- export declare const rounded: ReturnType<typeof $bool>;
64
+ // Preserve named tokens; coercing them to boolean loses the requested radius.
65
+ export declare const rounded: boolean;
60
66
  export declare const zoomOnHover: ReturnType<typeof $bool>;
61
67
  export declare const className: unknown;
62
68
  export declare const hasWebP: unknown;
@@ -74,7 +80,7 @@ export declare const roundingRadius: '0.5rem';
74
80
  * }
75
81
  * ```
76
82
  */
77
- declare const RADII: {
83
+ export declare const roundingRadii: {
78
84
  true: typeof roundingRadius;
79
85
  /** @defaultValue '9999px' */
80
86
  full: string;
@@ -108,5 +114,5 @@ declare const radius: unknown;
108
114
  */
109
115
  export declare const frameStyle: unknown;
110
116
  export declare const imageStyle: unknown;
111
- declare type __DtsxStxComponentType = DefineComponent<{ webpSrc?: string, webpSrcSet?: string, src?: string, sources?: unknown, srcSet?: unknown, srcset?: string, sizes?: unknown, decorative?: unknown, alt?: string, width?: unknown, height?: unknown, priority?: unknown, lazy?: unknown, loading?: string, fetchpriority?: string, decoding?: string, placeholder?: unknown, placeholderColor?: unknown, aspectRatio?: unknown, objectFit?: string, fit?: string, objectPosition?: string, position?: string, rounded?: unknown, zoomOnHover?: unknown, className?: unknown, class?: string }> & { readonly __stxEmits?: ["load", "error"] }
117
+ declare type __DtsxStxComponentType = DefineComponent<{ webpSrc?: string, webpSrcSet?: string, src?: string, sources?: unknown, srcSet?: unknown, srcset?: string, sizes?: unknown, decorative?: unknown, alt?: string, width?: unknown, height?: unknown, priority?: unknown, lazy?: unknown, loading?: string, fetchpriority?: string, decoding?: string, placeholder?: unknown, placeholderColor?: string, aspectRatio?: unknown, objectFit?: string, fit?: string, objectPosition?: string, position?: string, rounded?: unknown, zoomOnHover?: unknown, className?: unknown, class?: string }> & { readonly __stxEmits?: ["load", "error"] }
112
118
  export default __dtsx_component__;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/components",
3
3
  "type": "module",
4
- "version": "0.2.720",
4
+ "version": "0.2.722",
5
5
  "description": "A modern component library built with STX, featuring headwind utility classes and TypeScript syntax highlighting.",
6
6
  "author": "Chris Breuer <chris@stacksjs.org>",
7
7
  "license": "MIT",
@@ -77,8 +77,8 @@
77
77
  "dependencies": {
78
78
  "@iconify-json/f7": "^1.2.2",
79
79
  "@stacksjs/ts-css": "^0.3.11",
80
- "@stacksjs/stx": "0.2.720",
81
- "bun-plugin-stx": "0.2.720",
80
+ "@stacksjs/stx": "0.2.722",
81
+ "bun-plugin-stx": "0.2.722",
82
82
  "ts-syntax-highlighter": "^0.2.17",
83
83
  "ts-video-player": "^0.1.9"
84
84
  },
@@ -51,13 +51,17 @@ export const fetchpriority = priority ? 'high' : (authoredFetchPriority || 'auto
51
51
  * through anything transparent in it and stays there once it has loaded,
52
52
  * which is a permanent artefact on every PNG with an alpha channel.
53
53
  */
54
- const placeholderMode = $props.placeholder
54
+ export const placeholderMode = $props.placeholder ?? null
55
55
  // Stacks' former default accepted a preview URL; keep CSS backgrounds too.
56
56
  const customPlaceholder = typeof placeholderMode === 'string' && /^(?:data:image\/|https?:\/\/|\/|\.{1,2}\/)/i.test(placeholderMode)
57
57
  ? `url(${JSON.stringify(placeholderMode)})` : placeholderMode
58
58
  const imagePlaceholder = getImagePlaceholder($props.src || '')
59
- const placeholderColor = $props.placeholderColor || imagePlaceholder?.color || '#e5e7eb'
60
- const preview = delivered?.placeholder || imagePlaceholder?.dataUrl
59
+ export const authoredPlaceholderColor = $props.placeholderColor || ''
60
+ export const paletteColor = imagePlaceholder?.color || '#e5e7eb'
61
+ const placeholderColor = authoredPlaceholderColor || paletteColor
62
+ export const preview = delivered?.placeholder || imagePlaceholder?.dataUrl || ''
63
+ export const hasAutomaticPlaceholder = !!delivered?.placeholder
64
+ export const placeholderIsTransparent = !!imagePlaceholder?.transparent
61
65
  export const placeholder = placeholderMode === 'empty' || placeholderMode === 'none' ? ''
62
66
  : placeholderMode === 'color' ? (imagePlaceholder?.transparent ? '' : placeholderColor)
63
67
  : placeholderMode === 'blur' || placeholderMode === 'thumbhash' ? (imagePlaceholder?.transparent ? '' : preview ? `url("${preview}")` : placeholderColor)
@@ -69,14 +73,15 @@ export const objectFit = authoredObjectFit || authoredFit || 'cover'
69
73
  export const authoredObjectPosition = $props.objectPosition || ''
70
74
  export const authoredPosition = $props.position || ''
71
75
  export const objectPosition = authoredObjectPosition || authoredPosition || 'center'
72
- export const rounded = $bool($props.rounded)
76
+ // Preserve named tokens; coercing them to boolean loses the requested radius.
77
+ export const rounded = typeof $props.rounded === 'string' ? $props.rounded : $bool($props.rounded)
73
78
  export const zoomOnHover = $bool($props.zoomOnHover)
74
79
  export const className = $props.className || $props.class || ''
75
80
 
76
81
  export const hasWebP = !!(webpSrc || webpSrcSet)
77
82
 
78
83
  export const roundingRadius = '0.5rem'
79
- const RADII = {
84
+ export const roundingRadii = {
80
85
  true: roundingRadius,
81
86
  full: '9999px',
82
87
  sm: '0.125rem',
@@ -86,7 +91,7 @@ const RADII = {
86
91
  '2xl': '1rem',
87
92
  }
88
93
 
89
- const radius = rounded ? (RADII[String(rounded)] || RADII.true) : ''
94
+ const radius = $bool(rounded) ? (Object.prototype.hasOwnProperty.call(roundingRadii, String(rounded)) ? roundingRadii[String(rounded)] : roundingRadii.true) : ''
90
95
 
91
96
  /**
92
97
  * Styles inline rather than as utility classes.
@@ -129,7 +134,6 @@ export const imageStyle = [
129
134
  `object-fit: ${objectFit}`,
130
135
  `object-position: ${objectPosition}`,
131
136
  radius ? `border-radius: ${radius}` : '',
132
- zoomOnHover ? 'transition: transform 0.3s ease-in-out' : '',
133
137
  ].filter(Boolean).join('; ')
134
138
  </script>
135
139
 
@@ -155,12 +159,17 @@ const imageLoading = derived(() => isPriority() ? 'eager' : (liveLoading() || (i
155
159
  const imageFetchPriority = derived(() => isPriority() ? 'high' : (liveFetchPriority() || 'auto'))
156
160
  const liveDecoding = useReactiveProp('decoding', {{ decoding }})
157
161
  const imageDecoding = derived(() => liveDecoding() || 'async')
158
- // Preserve the server's boolean contract, including typed false-like strings.
159
- const liveRounded = useReactiveProp('rounded', {{ rounded }}, { parse: value => imageBoolean(value, false) })
160
- const imageRadius = derived(() => imageBoolean(liveRounded(), false) ? {{ roundingRadius }} : null)
162
+ // Keep tokens intact through attribute parsing and authored-default replay.
163
+ const liveRounded = useReactiveProp('rounded', {{ rounded }}, { parse: value => value })
164
+ const roundingRadii = {{ roundingRadii }}
165
+ const imageRadius = derived(() => {
166
+ const value = liveRounded()
167
+ if (!imageBoolean(value, false)) return null
168
+ return Object.prototype.hasOwnProperty.call(roundingRadii, String(value)) ? roundingRadii[String(value)] : roundingRadii.true
169
+ })
161
170
  // Transfer SSR-owned rounding to the binding before it captures its baseline.
162
171
  // Otherwise clearing a binding restores the original rounded inline style.
163
- if ({{ rounded }}) {
172
+ if (imageBoolean({{ rounded }}, false)) {
164
173
  const physicalImage = window.__STX_CURRENT_ELEMENT__?.querySelector('[data-stx-native-host-root]')
165
174
  if (physicalImage) {
166
175
  const frame = window.stx._host.parent(physicalImage)
@@ -179,6 +188,8 @@ const imageWidth = useReactiveProp('width', {{ width ?? null }})
179
188
  const imageHeight = useReactiveProp('height', {{ height ?? null }})
180
189
  const liveRatio = useReactiveProp('aspectRatio', {{ aspectRatio ?? null }})
181
190
  const nativeImage = !!window.stx._host.isNative
191
+ const liveZoomOnHover = useReactiveProp('zoomOnHover', {{ zoomOnHover }}, { parse: value => imageBoolean(value, false) })
192
+ const imageZoomEnabled = derived(() => !nativeImage && imageBoolean(liveZoomOnHover(), false))
182
193
  const emit = defineEmits(['load', 'error'])
183
194
  // Image load/error events do not bubble to the picture/component root.
184
195
  // Forward the original browser event or host payload, never a lossy copy.
@@ -214,10 +225,41 @@ const imageCandidates = derived(() => {
214
225
  if (liveSrcSet() === undefined || liveSrcSet() === initialCandidates) return keepInitialSources() ? initialCandidates || null : null
215
226
  return liveSrcSet() == null || liveSrcSet() === '' ? null : String(liveSrcSet())
216
227
  })
217
- const initialBackground = {{ placeholder ? `${placeholder} center / cover no-repeat` : '' }}
228
+ const livePlaceholder = useReactiveProp('placeholder', {{ placeholderMode }}, { parse: value => value == null ? value : String(value) })
229
+ const livePlaceholderColor = useReactiveProp('placeholderColor', {{ authoredPlaceholderColor }})
230
+ const preparedPlaceholderPreview = {{ preview }}
231
+ const transparentPlaceholder = imageBoolean({{ placeholderIsTransparent }}, false)
232
+ const automaticPlaceholder = imageBoolean({{ hasAutomaticPlaceholder }}, false)
233
+ const hadPlaceholder = imageBoolean({{ !!placeholder }}, false)
234
+ // Hand the SSR background to its binding, rather than restoring it on clear.
235
+ // Native hosts do not implement this browser background shorthand.
236
+ if (!nativeImage && hadPlaceholder) {
237
+ const physicalImage = window.__STX_CURRENT_ELEMENT__?.querySelector('[data-stx-native-host-root]')
238
+ const frame = physicalImage && window.stx._host.parent(physicalImage)
239
+ if (frame) window.stx._host.setStyle(frame, { background: null })
240
+ }
241
+ const imagePlaceholderStyles = derived(() => {
242
+ if (nativeImage) return {}
243
+ const mode = livePlaceholder()
244
+ const color = livePlaceholderColor() || {{ paletteColor }}
245
+ const custom = typeof mode === 'string' && /^(?:data:image\/|https?:\/\/|\/|\.{1,2}\/)/i.test(mode)
246
+ ? `url(${JSON.stringify(mode)})` : mode
247
+ const background = mode === 'empty' || mode === 'none' ? ''
248
+ : mode === 'color' ? (transparentPlaceholder ? '' : color)
249
+ : mode === 'blur' || mode === 'thumbhash' ? (transparentPlaceholder ? '' : preparedPlaceholderPreview ? `url(${JSON.stringify(preparedPlaceholderPreview)})` : color)
250
+ : custom || (automaticPlaceholder ? `url(${JSON.stringify(preparedPlaceholderPreview)})` : '')
251
+ // Prepared metadata belongs to the original source/candidates, as before.
252
+ if (!keepInitialSources()) return { background: hadPlaceholder || background ? 'none' : null }
253
+ return { background: background ? `${background} center / cover no-repeat` : null }
254
+ })
218
255
  </script>
219
256
 
220
- <picture class="{{ className }}" style="{{ frameStyle }}" :style="{ aspectRatio: imageRatio(), borderRadius: imageRadius()@if(placeholder), background: keepInitialSources() ? initialBackground : 'none'@endif }">
257
+ <picture class="{{ className }}" style="{{ frameStyle }}" :style="{ aspectRatio: imageRatio(), borderRadius: imageRadius(), ...imagePlaceholderStyles() }"
258
+ @if(!$native)
259
+ @if(zoomOnHover)data-stx-image-zoom@endif
260
+ :data-stx-image-zoom="imageZoomEnabled() ? '' : null"
261
+ @endif
262
+ >
221
263
  @foreach(sources as source)
222
264
  <source
223
265
  @if(source.type)type="{{ source.type }}"@endif
@@ -276,3 +318,14 @@ const initialBackground = {{ placeholder ? `${placeholder} center / cover no-rep
276
318
  :style="{ objectFit: imageFit(), objectPosition: imagePosition(), borderRadius: imageRadius() }"
277
319
  />
278
320
  </picture>
321
+
322
+ <style>
323
+ @media (hover: hover) and (prefers-reduced-motion: no-preference) {
324
+ picture[data-stx-image-zoom] > img {
325
+ transition: scale 0.3s ease-in-out;
326
+ }
327
+ picture[data-stx-image-zoom]:hover > img {
328
+ scale: 1.05;
329
+ }
330
+ }
331
+ </style>
@@ -87,6 +87,20 @@ opts out: your sources are used as written.
87
87
  />
88
88
  ```
89
89
 
90
+ ### Hover zoom
91
+
92
+ ```stx
93
+ <Image src="/photo.jpg" alt="Photo" zoomOnHover />
94
+ ```
95
+
96
+ On hover-capable browsers, the image scales to 1.05 inside its clipped frame
97
+ with a 0.3-second transition. The individual CSS `scale` property preserves
98
+ authored transforms. `:zoomOnHover="enabled"` toggles this live, including
99
+ while hovered. False/null disables it; undefined restores the authored default.
100
+ Reduced-motion preferences disable both scaling and its transition, including
101
+ preference changes while hovered. Touch-only and native views do not zoom.
102
+ The same image node and source are retained; no pointer/media listeners are added.
103
+
90
104
  ## Props
91
105
 
92
106
  | Prop | Type | Default | Description |
@@ -111,7 +125,7 @@ opts out: your sources are used as written.
111
125
  | `objectFit` | `'contain' \| 'cover' \| 'fill' \| 'none' \| 'scale-down'` | `'cover'` | How the image fills its box |
112
126
  | `objectPosition` | `string` | `'center'` | Focal point of the crop |
113
127
  | `rounded` | `boolean \| 'full' \| 'sm' \| 'md' \| 'lg' \| 'xl' \| '2xl'` | `false` | Corner radius |
114
- | `zoomOnHover` | `boolean` | `false` | Transition hook for a hover scale |
128
+ | `zoomOnHover` | `boolean` | `false` | Reactive 1.05 hover zoom; disabled for reduced motion and non-hover/native views |
115
129
  | `fit` / `position` | `string` | - | Aliases for objectFit / objectPosition |
116
130
  | `class` | `string` | - | Alias for className |
117
131
  | `className` | `string` | `''` | Extra classes on the `<picture>` |
@@ -87,10 +87,21 @@ const liveSrc = useReactiveProp('src', {{ src }})
87
87
  const livePoster = useReactiveProp('poster', {{ poster }})
88
88
  const liveLabel = useReactiveProp('label', {{ label }})
89
89
  const liveRatio = useReactiveProp('aspectRatio', {{ aspectRatio }})
90
- const liveControls = useReactiveProp('controls', {{ controls }})
91
- const liveAutoplay = useReactiveProp('autoplay', {{ autoplay }})
92
- const liveLoop = useReactiveProp('loop', {{ loop }})
93
- const liveMuted = useReactiveProp('muted', {{ muted }})
90
+ // Match server $bool for attributes, authored-default replay and typed parent
91
+ // writes (which bypass parsing). Controls alone defaults to enabled when null.
92
+ function videoBoolean(value, fallback) {
93
+ if (value == null) return fallback
94
+ if (typeof value === 'string') return !['false', '0', 'off', 'no'].includes(value.trim().toLowerCase())
95
+ return Boolean(value)
96
+ }
97
+ const liveControls = useReactiveProp('controls', {{ controls }}, { parse: value => videoBoolean(value, true) })
98
+ const liveAutoplay = useReactiveProp('autoplay', {{ autoplay }}, { parse: value => videoBoolean(value, false) })
99
+ const liveLoop = useReactiveProp('loop', {{ loop }}, { parse: value => videoBoolean(value, false) })
100
+ const liveMuted = useReactiveProp('muted', {{ muted }}, { parse: value => videoBoolean(value, false) })
101
+ const playerControls = derived(() => videoBoolean(liveControls(), true))
102
+ const playerAutoplay = derived(() => videoBoolean(liveAutoplay(), false))
103
+ const playerLoop = derived(() => videoBoolean(liveLoop(), false))
104
+ const playerMuted = derived(() => videoBoolean(liveMuted(), false))
94
105
  const element = useRef('player')
95
106
  const emit = nativeVideo ? defineEmits(['play', 'pause', 'ended', 'timeupdate', 'loadedmetadata', 'loadstart', 'error']) : null
96
107
 
@@ -141,10 +152,10 @@ effect(() => {
141
152
  :poster="livePoster() || null"
142
153
  :aria-label="liveLabel() || null"
143
154
  :style="playerStyle()"
144
- :controls="liveControls()"
145
- :autoplay="liveAutoplay()"
146
- :loop="liveLoop()"
147
- :muted="liveMuted()"
155
+ :controls="playerControls()"
156
+ :autoplay="playerAutoplay()"
157
+ :loop="playerLoop()"
158
+ :muted="playerMuted()"
148
159
  data-media-config="{{ playerConfig }}"
149
160
  @if(poster) poster="{{ poster }}" @endif
150
161
  @if(controls) controls @endif
@@ -166,7 +177,7 @@ effect(() => {
166
177
  @if(isPage)
167
178
  <span data-native-fallback class="block h-full w-full"></span>
168
179
  @else
169
- <video data-native-fallback @if(src) src="{{ src }}" @endif @if(poster) poster="{{ poster }}" @endif @if(controls) controls @endif @if(loop) loop @endif :controls="liveControls()" :loop="liveLoop()" :muted="liveMuted()" @if(playsinline) playsinline @endif preload="none" @if(crossorigin) crossorigin="{{ crossorigin }}" @endif controlslist="{{ controlslist }}" @if(disablePictureInPicture) disablepictureinpicture @endif @if(label) aria-label="{{ label }}" @endif class="object-contain h-full w-full"></video>
180
+ <video data-native-fallback @if(src) src="{{ src }}" @endif @if(poster) poster="{{ poster }}" @endif @if(controls) controls @endif @if(loop) loop @endif @if(muted) muted @endif :controls="playerControls()" :loop="playerLoop()" :muted="playerMuted()" @if(playsinline) playsinline @endif preload="none" @if(crossorigin) crossorigin="{{ crossorigin }}" @endif controlslist="{{ controlslist }}" @if(disablePictureInPicture) disablepictureinpicture @endif @if(label) aria-label="{{ label }}" @endif class="object-contain h-full w-full"></video>
170
181
  @endif
171
182
  <video-skin>
172
183
  <media-seek-button slot="left" seconds="-10"></media-seek-button>