sonahang-ui 1.0.4 → 1.0.5

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.
package/README.md CHANGED
@@ -88,6 +88,8 @@ Navigation: `Tabs`, `Breadcrumb`, `Pagination`, `Stepper`, `Accordion`
88
88
 
89
89
  Data display: `Avatar`, `Tag`, `Chip`, `Carousel`
90
90
 
91
+ Media: `AudioPlayer`, `AudioPlaylist`
92
+
91
93
  Every component, every prop, and every state is documented with live controls
92
94
  in [Storybook](https://github.com/sonangrai/sonahang-ui) — that's the real
93
95
  reference, this file is the summary.
@@ -0,0 +1,48 @@
1
+ import type { AudioHTMLAttributes, ReactNode, Ref } from "react";
2
+ import "./AudioPlayer.css";
3
+ export type AudioPlayerLabels = {
4
+ play?: string;
5
+ pause?: string;
6
+ previous?: string;
7
+ next?: string;
8
+ seek?: string;
9
+ mute?: string;
10
+ unmute?: string;
11
+ volume?: string;
12
+ /** Shown in place of the controls when the source fails to load. */
13
+ error?: string;
14
+ };
15
+ export type AudioPlayerProps = {
16
+ /** URL of the audio file. */
17
+ src: string;
18
+ /** Track name, shown above the controls. Also names the player region. */
19
+ title?: ReactNode;
20
+ /** Secondary line under the title — an artist, show, or episode. */
21
+ subtitle?: ReactNode;
22
+ /** Hides the volume controls, e.g. where the OS volume is all that matters. */
23
+ hideVolume?: boolean;
24
+ /** Initial volume, 0–1. Defaults to 1. */
25
+ defaultVolume?: number;
26
+ /** Accessible names for the controls — override to localise. */
27
+ labels?: AudioPlayerLabels;
28
+ /** Renders a Previous button beside Play. Omit for a single track. */
29
+ onPrevious?: () => void;
30
+ /** Renders a Next button beside Play. Omit for a single track. */
31
+ onNext?: () => void;
32
+ /** Extra controls, placed in the control row before the volume. */
33
+ actions?: ReactNode;
34
+ /** Class for the wrapper element. */
35
+ className?: string;
36
+ /** Ref to the underlying `<audio>` element, for imperative control. */
37
+ ref?: Ref<HTMLAudioElement>;
38
+ } & Omit<AudioHTMLAttributes<HTMLAudioElement>, "src" | "title" | "className" | "controls">;
39
+ /**
40
+ * Custom controls over a native `<audio>` element.
41
+ *
42
+ * The element stays the source of truth: playing, position, and volume are
43
+ * read back from its media events rather than tracked alongside it, so the UI
44
+ * can't drift from what's actually playing — even when something else drives
45
+ * the element through `ref`. The seek and volume bars are `RangeSlider`s, so
46
+ * arrow keys, Home/End, and screen-reader announcements come from the platform.
47
+ */
48
+ export declare function AudioPlayer({ src, title, subtitle, hideVolume, defaultVolume, labels, onPrevious, onNext, actions, className, ref, onPlay, onPause, onEnded, onTimeUpdate, onLoadedMetadata, onDurationChange, onVolumeChange, onError, ...props }: AudioPlayerProps): import("react").JSX.Element;
@@ -0,0 +1,59 @@
1
+ import type { ReactNode, Ref } from "react";
2
+ import type { AudioPlayerLabels } from "./AudioPlayer";
3
+ import type { PlayMode } from "./playlistOrder";
4
+ import "./AudioPlaylist.css";
5
+ export type AudioTrack = {
6
+ src: string;
7
+ title: ReactNode;
8
+ subtitle?: ReactNode;
9
+ /**
10
+ * Length in seconds, shown in the track list. Optional — the player learns
11
+ * it once a track loads, but the list can't without loading every file.
12
+ */
13
+ duration?: number;
14
+ /** Stable key. Falls back to the index and `src`. */
15
+ id?: string;
16
+ };
17
+ export type AudioPlaylistLabels = AudioPlayerLabels & {
18
+ /** Prefix for the play-mode button's name, e.g. "Play mode: Shuffle". */
19
+ playMode?: string;
20
+ /** Names of the individual modes. */
21
+ modes?: Partial<Record<PlayMode, string>>;
22
+ /** Name of the track list. */
23
+ tracks?: string;
24
+ };
25
+ export type AudioPlaylistProps = {
26
+ tracks: readonly AudioTrack[];
27
+ /** Names the playlist as a whole. Defaults to "Playlist". */
28
+ label?: string;
29
+ /** Current track — makes the playlist's position controlled. */
30
+ trackIndex?: number;
31
+ /** Initial track when uncontrolled. Defaults to the first. */
32
+ defaultTrackIndex?: number;
33
+ /** Fired with the index of the track being moved to. */
34
+ onTrackChange?: (index: number) => void;
35
+ /** Current play mode — makes it controlled. */
36
+ playMode?: PlayMode;
37
+ /** Initial play mode when uncontrolled. Defaults to `sequential`. */
38
+ defaultPlayMode?: PlayMode;
39
+ /** Fired with the next mode when the play-mode button is pressed. */
40
+ onPlayModeChange?: (mode: PlayMode) => void;
41
+ /** Hides the track list, leaving the player and its skip buttons. */
42
+ hideTrackList?: boolean;
43
+ hideVolume?: boolean;
44
+ /** Initial volume, 0–1. Carries across tracks. */
45
+ defaultVolume?: number;
46
+ labels?: AudioPlaylistLabels;
47
+ className?: string;
48
+ /** Ref to the underlying `<audio>` element. */
49
+ ref?: Ref<HTMLAudioElement>;
50
+ };
51
+ /**
52
+ * An `AudioPlayer` that works through a list of tracks, with Previous/Next,
53
+ * a play-mode button cycling through in order, repeat all, repeat one and
54
+ * shuffle, and a track list to jump around in.
55
+ *
56
+ * Volume and mute carry from track to track — it's one `<audio>` element
57
+ * whose source changes, not a player per track.
58
+ */
59
+ export declare function AudioPlaylist({ tracks, label, trackIndex, defaultTrackIndex, onTrackChange, playMode, defaultPlayMode, onPlayModeChange, hideTrackList, hideVolume, defaultVolume, labels, className, ref, }: AudioPlaylistProps): import("react").JSX.Element | null;
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Formats a playback position as `m:ss`, or `h:mm:ss` once it passes an hour.
3
+ *
4
+ * Anything that isn't a finite, non-negative number comes back as `--:--`.
5
+ * That covers the `NaN` a media element reports before its metadata loads and
6
+ * the `Infinity` it reports for a live stream — neither has a length to show.
7
+ */
8
+ export declare function formatAudioTime(seconds: number): string;
@@ -0,0 +1,7 @@
1
+ export { AudioPlayer } from "./AudioPlayer";
2
+ export type { AudioPlayerProps, AudioPlayerLabels } from "./AudioPlayer";
3
+ export { AudioPlaylist } from "./AudioPlaylist";
4
+ export type { AudioPlaylistProps, AudioPlaylistLabels, AudioTrack } from "./AudioPlaylist";
5
+ export { formatAudioTime } from "./formatAudioTime";
6
+ export { playModes, getNextTrack, getPreviousTrack, createShuffleOrder, } from "./playlistOrder";
7
+ export type { PlayMode, PlaylistAdvance, PlaylistPosition, PlaylistStep, } from "./playlistOrder";
@@ -0,0 +1,45 @@
1
+ export declare const playModes: readonly ["sequential", "repeat-all", "repeat-one", "shuffle"];
2
+ export type PlayMode = (typeof playModes)[number];
3
+ /** What moved the playlist on: the track finishing, or the Next button. */
4
+ export type PlaylistAdvance = "ended" | "next";
5
+ export type PlaylistPosition = {
6
+ /** Index of the current track. */
7
+ index: number;
8
+ /** Number of tracks in the playlist. */
9
+ count: number;
10
+ mode: PlayMode;
11
+ /**
12
+ * Shuffled play order, as track indices. Only read in `shuffle` mode; an
13
+ * order that no longer fits the playlist is replaced.
14
+ */
15
+ order?: readonly number[];
16
+ /** Source of randomness, for deterministic tests. Defaults to `Math.random`. */
17
+ random?: () => number;
18
+ };
19
+ export type PlaylistStep = {
20
+ /** Track to move to, or `null` to stop where we are. */
21
+ index: number | null;
22
+ /** The shuffle order to keep for the next step. */
23
+ order: number[];
24
+ };
25
+ /**
26
+ * A random permutation of `0..count-1` that starts with `first`, so turning
27
+ * shuffle on never jumps away from the track that's playing.
28
+ */
29
+ export declare function createShuffleOrder(count: number, first: number, random?: () => number): number[];
30
+ /**
31
+ * Where the playlist goes after the current track.
32
+ *
33
+ * - `sequential` stops after the last track when it ends; Next wraps.
34
+ * - `repeat-all` wraps either way.
35
+ * - `repeat-one` replays the track when it ends; Next still moves on, since
36
+ * pressing it is asking for a different track.
37
+ * - `shuffle` walks a shuffled order and reshuffles once every track has
38
+ * played, never starting the new round on the track that just finished.
39
+ */
40
+ export declare function getNextTrack(position: PlaylistPosition, advance: PlaylistAdvance): PlaylistStep;
41
+ /**
42
+ * Where Previous goes. In `shuffle` it retraces the shuffled order and stays
43
+ * on the first track of the round; otherwise it steps back and wraps.
44
+ */
45
+ export declare function getPreviousTrack(position: PlaylistPosition): PlaylistStep;
package/dist/index.d.ts CHANGED
@@ -74,6 +74,8 @@ export { Switch, SwitchGroup } from './components/Switch';
74
74
  export type { SwitchProps, SwitchGroupProps } from './components/Switch';
75
75
  export { SegmentedControl } from './components/SegmentedControl';
76
76
  export type { SegmentedControlProps, SegmentedControlOption, } from './components/SegmentedControl';
77
+ export { AudioPlayer, AudioPlaylist, formatAudioTime, playModes, getNextTrack, getPreviousTrack, createShuffleOrder, } from './components/AudioPlayer';
78
+ export type { AudioPlayerProps, AudioPlayerLabels, AudioPlaylistProps, AudioPlaylistLabels, AudioTrack, PlayMode, PlaylistAdvance, PlaylistPosition, PlaylistStep, } from './components/AudioPlayer';
77
79
  /**
78
80
  * Design tokens. The stylesheet already defines every color as a CSS var
79
81
  * (`--color-accent-600`, `--color-bg-surface`, …) — these are the same
@@ -1,7 +1,7 @@
1
- "use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});var e=Object.defineProperty,t=(t,n)=>{let r={};for(var i in t)e(r,i,{get:t[i],enumerable:!0});return n||e(r,Symbol.toStringTag,{value:`Module`}),r};let n=require("react/jsx-runtime"),r=require("react"),i=require("react-dom");var a=[`display`,`heading-1`,`heading-2`,`heading-3`,`heading-4`,`body-lg`,`body`,`body-sm`,`caption`],o=[`default`,`subtle`,`inverse`,`accent`],s=[`regular`,`medium`,`semibold`,`bold`],c={display:`h1`,"heading-1":`h1`,"heading-2":`h2`,"heading-3":`h3`,"heading-4":`h4`,"body-lg":`p`,body:`p`,"body-sm":`p`,caption:`span`};function l({as:e,variant:t=`body`,color:r=`default`,weight:i,align:a,className:o,style:s,children:l,...u}){let d=e??c[t],f=[`sh-text`,`sh-text--${t}`,`sh-text--color-${r}`,o].filter(Boolean).join(` `);return(0,n.jsx)(d,{className:f,style:{...i?{fontWeight:`var(--font-weight-${i})`}:void 0,...a?{textAlign:a}:void 0,...s},...u,children:l})}function u({variant:e=`primary`,size:t=`md`,fullWidth:n=!1,loading:r=!1,className:i}={}){return[`sh-button`,`sh-button--${e}`,`sh-button--${t}`,n&&`sh-button--full-width`,r&&`sh-button--loading`,i].filter(Boolean).join(` `)}function d({variant:e=`primary`,size:t=`md`,fullWidth:r=!1,icon:i,iconPosition:a=`left`,loading:o=!1,disabled:s,className:c,children:l,...d}){let f=e===`icon`,p=u({variant:e,size:t,fullWidth:r,loading:o,className:c});return(0,n.jsx)(`button`,{className:p,disabled:s||o,"aria-busy":o||void 0,...d,children:(0,n.jsxs)(`span`,{className:`sh-button__content`,children:[o&&(0,n.jsx)(`span`,{className:`sh-button__spinner`,"aria-hidden":`true`}),f?!o&&(0,n.jsx)(`span`,{className:`sh-button__icon`,children:i}):(0,n.jsxs)(n.Fragment,{children:[i&&a===`left`&&!o&&(0,n.jsx)(`span`,{className:`sh-button__icon`,children:i}),l,i&&a===`right`&&(0,n.jsx)(`span`,{className:`sh-button__icon`,children:i})]})]})})}var f=[`primary`,`secondary`,`outline`,`ghost`,`icon`],p=[`sm`,`md`,`lg`],m=()=>(0,n.jsx)(`svg`,{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:1.5,"aria-hidden":`true`,children:(0,n.jsx)(`path`,{d:`M3 13.5h4l1.5 2.5h7l1.5-2.5h4M3 13.5 5.8 6.2A1.5 1.5 0 0 1 7.2 5.2h9.6a1.5 1.5 0 0 1 1.4 1L21 13.5v3.3a1.5 1.5 0 0 1-1.5 1.5h-15A1.5 1.5 0 0 1 3 16.8Z`,strokeLinecap:`round`,strokeLinejoin:`round`})});function h({title:e,description:t,icon:i,action:a,secondaryAction:o,headingLevel:s=3,size:c=`md`,children:l,className:f,...p}){let h=i===void 0?(0,n.jsx)(m,{}):i,g=h!==!1&&h!==null,_=(e,t)=>{let{label:r,href:i,onClick:a,icon:o,variant:s,target:l,rel:f}=e,p=s??t;return i===void 0?(0,n.jsx)(d,{variant:p,size:c===`sm`?`sm`:`md`,icon:o,onClick:a,children:r}):(0,n.jsx)(`a`,{href:i,target:l,rel:f??(l===`_blank`?`noopener noreferrer`:void 0),onClick:a,className:u({variant:p,size:c===`sm`?`sm`:`md`}),children:(0,n.jsxs)(`span`,{className:`sh-button__content`,children:[o&&(0,n.jsx)(`span`,{className:`sh-button__icon`,children:o}),r]})})};return(0,n.jsxs)(`div`,{className:[`sh-empty-state`,`sh-empty-state--${c}`,f].filter(Boolean).join(` `),...p,children:[g&&(0,n.jsx)(`span`,{className:`sh-empty-state__icon`,children:h}),(0,r.createElement)(`h${s}`,{className:`sh-empty-state__title`},e),t&&(0,n.jsx)(`p`,{className:`sh-empty-state__description`,children:t}),(a||o)&&(0,n.jsxs)(`div`,{className:`sh-empty-state__actions`,children:[a&&_(a,`primary`),o&&_(o,`secondary`)]}),l&&(0,n.jsx)(`div`,{className:`sh-empty-state__extra`,children:l})]})}function g({variant:e=`primary`,className:t,children:r,...i}){let a=[`sh-tag`,`sh-tag--${e}`,t].filter(Boolean).join(` `);return(0,n.jsx)(`span`,{className:a,...i,children:r})}var _=[`primary`,`secondary`,`outline`],v={add:(0,n.jsx)(`svg`,{viewBox:`0 0 16 16`,fill:`none`,stroke:`currentColor`,strokeWidth:1.75,"aria-hidden":`true`,children:(0,n.jsx)(`path`,{d:`M8 3.5v9M3.5 8h9`,strokeLinecap:`round`})}),remove:(0,n.jsx)(`svg`,{viewBox:`0 0 16 16`,fill:`none`,stroke:`currentColor`,strokeWidth:1.75,"aria-hidden":`true`,children:(0,n.jsx)(`path`,{d:`M4.5 4.5l7 7M11.5 4.5l-7 7`,strokeLinecap:`round`})})},y={add:`Add`,remove:`Remove`};function b({variant:e=`primary`,action:t,onAction:r,actionLabel:i,disabled:a=!1,className:o,children:s,...c}){let l=[`sh-chip`,`sh-chip--${e}`,t&&`sh-chip--with-action`,a&&`sh-chip--disabled`,o].filter(Boolean).join(` `),u=i??(t?typeof s==`string`?`${y[t]} ${s}`:y[t]:void 0);return(0,n.jsxs)(`span`,{className:l,...c,children:[(0,n.jsx)(`span`,{className:`sh-chip__label`,children:s}),t&&(0,n.jsx)(`button`,{type:`button`,className:`sh-chip__action`,onClick:r,disabled:a,"aria-label":u,children:v[t]})]})}var x=[`primary`,`secondary`,`outline`],S=[`add`,`remove`],C=(0,r.createContext)(void 0);function w(e,t=2){let n=e.trim().split(/\s+/).filter(Boolean);return n.length===0?``:(n.length>t?[n[0],n[n.length-1]]:n).slice(0,t).map(e=>e.charAt(0).toUpperCase()).join(``)}var T=()=>(0,n.jsx)(`svg`,{viewBox:`0 0 24 24`,fill:`currentColor`,"aria-hidden":`true`,className:`sh-avatar__icon`,children:(0,n.jsx)(`path`,{d:`M12 12a4.5 4.5 0 1 0 0-9 4.5 4.5 0 0 0 0 9Zm0 1.8c-3.6 0-7.2 1.8-7.2 4.05V21h14.4v-3.15c0-2.25-3.6-4.05-7.2-4.05Z`})});function E({src:e,name:t,alt:i,size:a,className:o,children:s,...c}){let[l,u]=(0,r.useState)(void 0),d=(0,r.useContext)(C),f=a??d??`md`,p=!!e&&l!==e,m=t?w(t):``,h=i??t,g=[`sh-avatar`,`sh-avatar--${f}`,o].filter(Boolean).join(` `);return(0,n.jsx)(`span`,{className:g,...!p&&h?{role:`img`,"aria-label":h}:void 0,...c,children:p?(0,n.jsx)(`img`,{className:`sh-avatar__image`,src:e,alt:h??``,onError:()=>u(e)}):s??(0,n.jsx)(`span`,{className:`sh-avatar__fallback`,"aria-hidden":`true`,children:m||(0,n.jsx)(T,{})})})}function D({max:e,size:t=`md`,className:i,children:a,...o}){let s=r.Children.toArray(a).filter(r.isValidElement),c=typeof e==`number`&&e>=0?e:s.length,l=s.slice(0,c),u=s.length-l.length,d=[`sh-avatar-group`,i].filter(Boolean).join(` `);return(0,n.jsx)(C.Provider,{value:t,children:(0,n.jsxs)(`div`,{className:d,...o,children:[l,u>0&&(0,n.jsx)(`span`,{className:`sh-avatar sh-avatar--${t} sh-avatar--overflow`,role:`img`,"aria-label":`${u} more`,children:(0,n.jsxs)(`span`,{className:`sh-avatar__fallback`,"aria-hidden":`true`,children:[`+`,u]})})]})})}var O=[`sm`,`md`,`lg`];function k({label:e,helperText:t,error:i,icon:a,iconPosition:o=`left`,className:s,inputClassName:c,id:l,required:u,disabled:d,"aria-describedby":f,...p}){let m=(0,r.useId)(),h=l??m,g=`${h}-message`,_=!!i,v=i??t,y=[f,v?g:void 0].filter(Boolean).join(` `)||void 0,b=[`sh-input`,_&&`sh-input--invalid`,d&&`sh-input--disabled`,a&&`sh-input--with-icon-${o}`,s].filter(Boolean).join(` `);return(0,n.jsxs)(`div`,{className:b,children:[e&&(0,n.jsxs)(`label`,{className:`sh-input__label`,htmlFor:h,children:[e,u&&(0,n.jsx)(`span`,{className:`sh-input__required`,"aria-hidden":`true`,children:`*`})]}),(0,n.jsxs)(`span`,{className:`sh-input__field`,children:[a&&(0,n.jsx)(`span`,{className:`sh-input__icon`,"aria-hidden":`true`,children:a}),(0,n.jsx)(`input`,{id:h,className:[`sh-input__control`,c].filter(Boolean).join(` `),required:u,disabled:d,"aria-invalid":_||void 0,"aria-describedby":y,...p})]}),v&&(0,n.jsx)(`span`,{id:g,className:`sh-input__message`,children:v})]})}var A=[`numeric`,`alphanumeric`],j={numeric:/[0-9]/,alphanumeric:/[a-zA-Z0-9]/};function M(e,{length:t,type:n=`numeric`}){let r=j[n],i=``;for(let n of e){if(i.length>=t)break;r.test(n)&&(i+=n)}return i}function N({length:e=6,value:t,defaultValue:i=``,onChange:a,onComplete:o,type:s=`numeric`,mask:c=!1,groupSize:l,label:u,helperText:d,error:f,className:p,id:m,required:h,disabled:g,"aria-describedby":_,onFocus:v,onBlur:y,onSelect:b,onClick:x,...S}){let C=(0,r.useId)(),w=m??C,T=`${w}-message`,E=(0,r.useRef)(null),[D,O]=(0,r.useState)(!1),[k,A]=(0,r.useState)(0),[j,N]=(0,r.useState)(()=>M(i,{length:e,type:s})),P=t!==void 0,F=P?M(t,{length:e,type:s}):j,I=!!f,L=f??d,R=[_,L?T:void 0].filter(Boolean).join(` `)||void 0,z=()=>{let e=E.current;if(!e)return;let t=e.value.length;e.setSelectionRange(t,t),A(t)},ee=Array.from({length:e},(e,t)=>F[t]??``),B=D&&!g?Math.min(k,e-1):-1;return(0,n.jsxs)(`div`,{className:[`sh-input-otp`,I&&`sh-input-otp--invalid`,g&&`sh-input-otp--disabled`,p].filter(Boolean).join(` `),children:[u&&(0,n.jsxs)(`label`,{className:`sh-input-otp__label`,htmlFor:w,children:[u,h&&(0,n.jsx)(`span`,{className:`sh-input-otp__required`,"aria-hidden":`true`,children:`*`})]}),(0,n.jsxs)(`div`,{className:`sh-input-otp__field`,children:[(0,n.jsx)(`input`,{ref:E,id:w,className:`sh-input-otp__control`,value:F,required:h,disabled:g,inputMode:s===`numeric`?`numeric`:`text`,autoComplete:`one-time-code`,autoCorrect:`off`,autoCapitalize:`off`,spellCheck:!1,"aria-invalid":I||void 0,"aria-describedby":R,onChange:t=>{let n=M(t.target.value,{length:e,type:s});n!==F&&(P||N(n),a?.(n),n.length===e&&o?.(n))},onFocus:e=>{v?.(e),O(!0),z()},onBlur:e=>{y?.(e),O(!1)},onClick:e=>{x?.(e),z()},onSelect:e=>{b?.(e),A(e.currentTarget.selectionStart??F.length)},...S}),(0,n.jsx)(`div`,{className:`sh-input-otp__boxes`,"aria-hidden":`true`,children:ee.map((e,t)=>(0,n.jsxs)(r.Fragment,{children:[l!==void 0&&t>0&&t%l===0&&(0,n.jsx)(`span`,{className:`sh-input-otp__separator`}),(0,n.jsx)(`span`,{className:[`sh-input-otp__slot`,e&&`sh-input-otp__slot--filled`,t===B&&`sh-input-otp__slot--active`].filter(Boolean).join(` `),children:e&&c?`•`:e})]},t))})]}),L&&(0,n.jsx)(`span`,{id:T,className:`sh-input-otp__message`,children:L})]})}var P=(0,r.createContext)(void 0);function F(e){let t=(0,r.useContext)(P);if(!t)throw Error(`<${e}> must be rendered inside <Dropdown>.`);return t}function I({children:e,open:t,defaultOpen:i=!1,onOpenChange:a,placement:o=`bottom`,align:s=`start`,className:c,...l}){let u=(0,r.useId)(),d=(0,r.useRef)(null),f=(0,r.useRef)(null),[p,m]=(0,r.useState)(i),h=t!==void 0,g=h?t:p,[_,v]=(0,r.useState)(null),y=(0,r.useCallback)((e=null)=>{v(e),h||m(!0),a?.(!0)},[h,a]),b=(0,r.useCallback)(({restoreFocus:e=!0}={})=>{v(null),h||m(!1),a?.(!1),e&&d.current?.focus()},[h,a]);return(0,r.useEffect)(()=>{if(!g)return;let e=e=>{f.current?.contains(e.target)||b({restoreFocus:!1})};return document.addEventListener(`pointerdown`,e),()=>document.removeEventListener(`pointerdown`,e)},[g,b]),(0,r.useEffect)(()=>{if(!g)return;let e=e=>{e.key===`Escape`&&(e.preventDefault(),b())};return document.addEventListener(`keydown`,e),()=>document.removeEventListener(`keydown`,e)},[g,b]),(0,n.jsx)(P.Provider,{value:{isOpen:g,open:y,close:b,focusOnOpen:_,triggerId:`${u}-trigger`,menuId:`${u}-menu`,triggerRef:d,placement:o,align:s},children:(0,n.jsx)(`div`,{ref:f,className:[`sh-dropdown`,c].filter(Boolean).join(` `),...l,children:e})})}function L({children:e,className:t,onClick:r,onKeyDown:i,...a}){let{isOpen:o,open:s,close:c,triggerId:l,menuId:u,triggerRef:d}=F(`DropdownTrigger`);return(0,n.jsx)(`button`,{ref:d,type:`button`,id:l,className:[`sh-dropdown__trigger`,t].filter(Boolean).join(` `),"aria-haspopup":`menu`,"aria-expanded":o,"aria-controls":o?u:void 0,onClick:e=>{r?.(e),!e.defaultPrevented&&(o?c({restoreFocus:!1}):s(`first`))},onKeyDown:e=>{i?.(e),!(e.defaultPrevented||o)&&(e.key===`ArrowDown`?(e.preventDefault(),s(`first`)):e.key===`ArrowUp`&&(e.preventDefault(),s(`last`)))},...a,children:e})}function R({children:e,className:t,onKeyDown:i,...a}){let{isOpen:o,close:s,focusOnOpen:c,triggerId:l,menuId:u,placement:d,align:f}=F(`DropdownMenu`),p=(0,r.useRef)(null),m=()=>Array.from(p.current?.querySelectorAll(`[role="menuitem"]:not([disabled])`)??[]);return(0,r.useEffect)(()=>{if(!o||!c)return;let e=m();(c===`last`?e[e.length-1]:e[0])?.focus()},[o,c]),o?(0,n.jsx)(`div`,{ref:p,id:u,className:[`sh-dropdown__menu`,`sh-dropdown__menu--${d}`,`sh-dropdown__menu--${f}`,t].filter(Boolean).join(` `),role:`menu`,"aria-labelledby":l,onKeyDown:e=>{if(i?.(e),e.defaultPrevented)return;if(e.key===`Tab`){s({restoreFocus:!1});return}if(![`ArrowDown`,`ArrowUp`,`Home`,`End`].includes(e.key))return;let t=m();if(t.length===0)return;let n=t.indexOf(document.activeElement),r;r=e.key===`Home`?0:e.key===`End`?t.length-1:n===-1?0:e.key===`ArrowDown`?(n+1)%t.length:(n-1+t.length)%t.length,e.preventDefault(),t[r]?.focus()},...a,children:e}):null}function z({children:e,onSelect:t,closeOnSelect:r=!0,icon:i,destructive:a=!1,className:o,onClick:s,...c}){let{close:l}=F(`DropdownItem`);return(0,n.jsxs)(`button`,{type:`button`,role:`menuitem`,className:[`sh-dropdown__item`,a&&`sh-dropdown__item--destructive`,o].filter(Boolean).join(` `),tabIndex:-1,onClick:e=>{s?.(e),!e.defaultPrevented&&(t?.(),r&&l())},...c,children:[i&&(0,n.jsx)(`span`,{className:`sh-dropdown__item-icon`,"aria-hidden":`true`,children:i}),(0,n.jsx)(`span`,{className:`sh-dropdown__item-label`,children:e})]})}function ee({className:e,...t}){return(0,n.jsx)(`div`,{className:[`sh-dropdown__separator`,e].filter(Boolean).join(` `),role:`separator`,...t})}function B(e){let t=e.replace(/\r\n/g,`
1
+ "use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});var e=Object.defineProperty,t=(t,n)=>{let r={};for(var i in t)e(r,i,{get:t[i],enumerable:!0});return n||e(r,Symbol.toStringTag,{value:`Module`}),r};let n=require("react/jsx-runtime"),r=require("react"),i=require("react-dom");var a=[`display`,`heading-1`,`heading-2`,`heading-3`,`heading-4`,`body-lg`,`body`,`body-sm`,`caption`],o=[`default`,`subtle`,`inverse`,`accent`],s=[`regular`,`medium`,`semibold`,`bold`],c={display:`h1`,"heading-1":`h1`,"heading-2":`h2`,"heading-3":`h3`,"heading-4":`h4`,"body-lg":`p`,body:`p`,"body-sm":`p`,caption:`span`};function l({as:e,variant:t=`body`,color:r=`default`,weight:i,align:a,className:o,style:s,children:l,...u}){let d=e??c[t],f=[`sh-text`,`sh-text--${t}`,`sh-text--color-${r}`,o].filter(Boolean).join(` `);return(0,n.jsx)(d,{className:f,style:{...i?{fontWeight:`var(--font-weight-${i})`}:void 0,...a?{textAlign:a}:void 0,...s},...u,children:l})}function u({variant:e=`primary`,size:t=`md`,fullWidth:n=!1,loading:r=!1,className:i}={}){return[`sh-button`,`sh-button--${e}`,`sh-button--${t}`,n&&`sh-button--full-width`,r&&`sh-button--loading`,i].filter(Boolean).join(` `)}function d({variant:e=`primary`,size:t=`md`,fullWidth:r=!1,icon:i,iconPosition:a=`left`,loading:o=!1,disabled:s,className:c,children:l,...d}){let f=e===`icon`,p=u({variant:e,size:t,fullWidth:r,loading:o,className:c});return(0,n.jsx)(`button`,{className:p,disabled:s||o,"aria-busy":o||void 0,...d,children:(0,n.jsxs)(`span`,{className:`sh-button__content`,children:[o&&(0,n.jsx)(`span`,{className:`sh-button__spinner`,"aria-hidden":`true`}),f?!o&&(0,n.jsx)(`span`,{className:`sh-button__icon`,children:i}):(0,n.jsxs)(n.Fragment,{children:[i&&a===`left`&&!o&&(0,n.jsx)(`span`,{className:`sh-button__icon`,children:i}),l,i&&a===`right`&&(0,n.jsx)(`span`,{className:`sh-button__icon`,children:i})]})]})})}var f=[`primary`,`secondary`,`outline`,`ghost`,`icon`],p=[`sm`,`md`,`lg`],m=()=>(0,n.jsx)(`svg`,{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:1.5,"aria-hidden":`true`,children:(0,n.jsx)(`path`,{d:`M3 13.5h4l1.5 2.5h7l1.5-2.5h4M3 13.5 5.8 6.2A1.5 1.5 0 0 1 7.2 5.2h9.6a1.5 1.5 0 0 1 1.4 1L21 13.5v3.3a1.5 1.5 0 0 1-1.5 1.5h-15A1.5 1.5 0 0 1 3 16.8Z`,strokeLinecap:`round`,strokeLinejoin:`round`})});function h({title:e,description:t,icon:i,action:a,secondaryAction:o,headingLevel:s=3,size:c=`md`,children:l,className:f,...p}){let h=i===void 0?(0,n.jsx)(m,{}):i,g=h!==!1&&h!==null,_=(e,t)=>{let{label:r,href:i,onClick:a,icon:o,variant:s,target:l,rel:f}=e,p=s??t;return i===void 0?(0,n.jsx)(d,{variant:p,size:c===`sm`?`sm`:`md`,icon:o,onClick:a,children:r}):(0,n.jsx)(`a`,{href:i,target:l,rel:f??(l===`_blank`?`noopener noreferrer`:void 0),onClick:a,className:u({variant:p,size:c===`sm`?`sm`:`md`}),children:(0,n.jsxs)(`span`,{className:`sh-button__content`,children:[o&&(0,n.jsx)(`span`,{className:`sh-button__icon`,children:o}),r]})})};return(0,n.jsxs)(`div`,{className:[`sh-empty-state`,`sh-empty-state--${c}`,f].filter(Boolean).join(` `),...p,children:[g&&(0,n.jsx)(`span`,{className:`sh-empty-state__icon`,children:h}),(0,r.createElement)(`h${s}`,{className:`sh-empty-state__title`},e),t&&(0,n.jsx)(`p`,{className:`sh-empty-state__description`,children:t}),(a||o)&&(0,n.jsxs)(`div`,{className:`sh-empty-state__actions`,children:[a&&_(a,`primary`),o&&_(o,`secondary`)]}),l&&(0,n.jsx)(`div`,{className:`sh-empty-state__extra`,children:l})]})}function g({variant:e=`primary`,className:t,children:r,...i}){let a=[`sh-tag`,`sh-tag--${e}`,t].filter(Boolean).join(` `);return(0,n.jsx)(`span`,{className:a,...i,children:r})}var _=[`primary`,`secondary`,`outline`],v={add:(0,n.jsx)(`svg`,{viewBox:`0 0 16 16`,fill:`none`,stroke:`currentColor`,strokeWidth:1.75,"aria-hidden":`true`,children:(0,n.jsx)(`path`,{d:`M8 3.5v9M3.5 8h9`,strokeLinecap:`round`})}),remove:(0,n.jsx)(`svg`,{viewBox:`0 0 16 16`,fill:`none`,stroke:`currentColor`,strokeWidth:1.75,"aria-hidden":`true`,children:(0,n.jsx)(`path`,{d:`M4.5 4.5l7 7M11.5 4.5l-7 7`,strokeLinecap:`round`})})},y={add:`Add`,remove:`Remove`};function b({variant:e=`primary`,action:t,onAction:r,actionLabel:i,disabled:a=!1,className:o,children:s,...c}){let l=[`sh-chip`,`sh-chip--${e}`,t&&`sh-chip--with-action`,a&&`sh-chip--disabled`,o].filter(Boolean).join(` `),u=i??(t?typeof s==`string`?`${y[t]} ${s}`:y[t]:void 0);return(0,n.jsxs)(`span`,{className:l,...c,children:[(0,n.jsx)(`span`,{className:`sh-chip__label`,children:s}),t&&(0,n.jsx)(`button`,{type:`button`,className:`sh-chip__action`,onClick:r,disabled:a,"aria-label":u,children:v[t]})]})}var x=[`primary`,`secondary`,`outline`],S=[`add`,`remove`],C=(0,r.createContext)(void 0);function w(e,t=2){let n=e.trim().split(/\s+/).filter(Boolean);return n.length===0?``:(n.length>t?[n[0],n[n.length-1]]:n).slice(0,t).map(e=>e.charAt(0).toUpperCase()).join(``)}var T=()=>(0,n.jsx)(`svg`,{viewBox:`0 0 24 24`,fill:`currentColor`,"aria-hidden":`true`,className:`sh-avatar__icon`,children:(0,n.jsx)(`path`,{d:`M12 12a4.5 4.5 0 1 0 0-9 4.5 4.5 0 0 0 0 9Zm0 1.8c-3.6 0-7.2 1.8-7.2 4.05V21h14.4v-3.15c0-2.25-3.6-4.05-7.2-4.05Z`})});function E({src:e,name:t,alt:i,size:a,className:o,children:s,...c}){let[l,u]=(0,r.useState)(void 0),d=(0,r.useContext)(C),f=a??d??`md`,p=!!e&&l!==e,m=t?w(t):``,h=i??t,g=[`sh-avatar`,`sh-avatar--${f}`,o].filter(Boolean).join(` `);return(0,n.jsx)(`span`,{className:g,...!p&&h?{role:`img`,"aria-label":h}:void 0,...c,children:p?(0,n.jsx)(`img`,{className:`sh-avatar__image`,src:e,alt:h??``,onError:()=>u(e)}):s??(0,n.jsx)(`span`,{className:`sh-avatar__fallback`,"aria-hidden":`true`,children:m||(0,n.jsx)(T,{})})})}function D({max:e,size:t=`md`,className:i,children:a,...o}){let s=r.Children.toArray(a).filter(r.isValidElement),c=typeof e==`number`&&e>=0?e:s.length,l=s.slice(0,c),u=s.length-l.length,d=[`sh-avatar-group`,i].filter(Boolean).join(` `);return(0,n.jsx)(C.Provider,{value:t,children:(0,n.jsxs)(`div`,{className:d,...o,children:[l,u>0&&(0,n.jsx)(`span`,{className:`sh-avatar sh-avatar--${t} sh-avatar--overflow`,role:`img`,"aria-label":`${u} more`,children:(0,n.jsxs)(`span`,{className:`sh-avatar__fallback`,"aria-hidden":`true`,children:[`+`,u]})})]})})}var O=[`sm`,`md`,`lg`];function k({label:e,helperText:t,error:i,icon:a,iconPosition:o=`left`,className:s,inputClassName:c,id:l,required:u,disabled:d,"aria-describedby":f,...p}){let m=(0,r.useId)(),h=l??m,g=`${h}-message`,_=!!i,v=i??t,y=[f,v?g:void 0].filter(Boolean).join(` `)||void 0,b=[`sh-input`,_&&`sh-input--invalid`,d&&`sh-input--disabled`,a&&`sh-input--with-icon-${o}`,s].filter(Boolean).join(` `);return(0,n.jsxs)(`div`,{className:b,children:[e&&(0,n.jsxs)(`label`,{className:`sh-input__label`,htmlFor:h,children:[e,u&&(0,n.jsx)(`span`,{className:`sh-input__required`,"aria-hidden":`true`,children:`*`})]}),(0,n.jsxs)(`span`,{className:`sh-input__field`,children:[a&&(0,n.jsx)(`span`,{className:`sh-input__icon`,"aria-hidden":`true`,children:a}),(0,n.jsx)(`input`,{id:h,className:[`sh-input__control`,c].filter(Boolean).join(` `),required:u,disabled:d,"aria-invalid":_||void 0,"aria-describedby":y,...p})]}),v&&(0,n.jsx)(`span`,{id:g,className:`sh-input__message`,children:v})]})}var A=[`numeric`,`alphanumeric`],j={numeric:/[0-9]/,alphanumeric:/[a-zA-Z0-9]/};function M(e,{length:t,type:n=`numeric`}){let r=j[n],i=``;for(let n of e){if(i.length>=t)break;r.test(n)&&(i+=n)}return i}function N({length:e=6,value:t,defaultValue:i=``,onChange:a,onComplete:o,type:s=`numeric`,mask:c=!1,groupSize:l,label:u,helperText:d,error:f,className:p,id:m,required:h,disabled:g,"aria-describedby":_,onFocus:v,onBlur:y,onSelect:b,onClick:x,...S}){let C=(0,r.useId)(),w=m??C,T=`${w}-message`,E=(0,r.useRef)(null),[D,O]=(0,r.useState)(!1),[k,A]=(0,r.useState)(0),[j,N]=(0,r.useState)(()=>M(i,{length:e,type:s})),P=t!==void 0,F=P?M(t,{length:e,type:s}):j,I=!!f,L=f??d,R=[_,L?T:void 0].filter(Boolean).join(` `)||void 0,z=()=>{let e=E.current;if(!e)return;let t=e.value.length;e.setSelectionRange(t,t),A(t)},B=Array.from({length:e},(e,t)=>F[t]??``),V=D&&!g?Math.min(k,e-1):-1;return(0,n.jsxs)(`div`,{className:[`sh-input-otp`,I&&`sh-input-otp--invalid`,g&&`sh-input-otp--disabled`,p].filter(Boolean).join(` `),children:[u&&(0,n.jsxs)(`label`,{className:`sh-input-otp__label`,htmlFor:w,children:[u,h&&(0,n.jsx)(`span`,{className:`sh-input-otp__required`,"aria-hidden":`true`,children:`*`})]}),(0,n.jsxs)(`div`,{className:`sh-input-otp__field`,children:[(0,n.jsx)(`input`,{ref:E,id:w,className:`sh-input-otp__control`,value:F,required:h,disabled:g,inputMode:s===`numeric`?`numeric`:`text`,autoComplete:`one-time-code`,autoCorrect:`off`,autoCapitalize:`off`,spellCheck:!1,"aria-invalid":I||void 0,"aria-describedby":R,onChange:t=>{let n=M(t.target.value,{length:e,type:s});n!==F&&(P||N(n),a?.(n),n.length===e&&o?.(n))},onFocus:e=>{v?.(e),O(!0),z()},onBlur:e=>{y?.(e),O(!1)},onClick:e=>{x?.(e),z()},onSelect:e=>{b?.(e),A(e.currentTarget.selectionStart??F.length)},...S}),(0,n.jsx)(`div`,{className:`sh-input-otp__boxes`,"aria-hidden":`true`,children:B.map((e,t)=>(0,n.jsxs)(r.Fragment,{children:[l!==void 0&&t>0&&t%l===0&&(0,n.jsx)(`span`,{className:`sh-input-otp__separator`}),(0,n.jsx)(`span`,{className:[`sh-input-otp__slot`,e&&`sh-input-otp__slot--filled`,t===V&&`sh-input-otp__slot--active`].filter(Boolean).join(` `),children:e&&c?`•`:e})]},t))})]}),L&&(0,n.jsx)(`span`,{id:T,className:`sh-input-otp__message`,children:L})]})}var P=(0,r.createContext)(void 0);function F(e){let t=(0,r.useContext)(P);if(!t)throw Error(`<${e}> must be rendered inside <Dropdown>.`);return t}function I({children:e,open:t,defaultOpen:i=!1,onOpenChange:a,placement:o=`bottom`,align:s=`start`,className:c,...l}){let u=(0,r.useId)(),d=(0,r.useRef)(null),f=(0,r.useRef)(null),[p,m]=(0,r.useState)(i),h=t!==void 0,g=h?t:p,[_,v]=(0,r.useState)(null),y=(0,r.useCallback)((e=null)=>{v(e),h||m(!0),a?.(!0)},[h,a]),b=(0,r.useCallback)(({restoreFocus:e=!0}={})=>{v(null),h||m(!1),a?.(!1),e&&d.current?.focus()},[h,a]);return(0,r.useEffect)(()=>{if(!g)return;let e=e=>{f.current?.contains(e.target)||b({restoreFocus:!1})};return document.addEventListener(`pointerdown`,e),()=>document.removeEventListener(`pointerdown`,e)},[g,b]),(0,r.useEffect)(()=>{if(!g)return;let e=e=>{e.key===`Escape`&&(e.preventDefault(),b())};return document.addEventListener(`keydown`,e),()=>document.removeEventListener(`keydown`,e)},[g,b]),(0,n.jsx)(P.Provider,{value:{isOpen:g,open:y,close:b,focusOnOpen:_,triggerId:`${u}-trigger`,menuId:`${u}-menu`,triggerRef:d,placement:o,align:s},children:(0,n.jsx)(`div`,{ref:f,className:[`sh-dropdown`,c].filter(Boolean).join(` `),...l,children:e})})}function L({children:e,className:t,onClick:r,onKeyDown:i,...a}){let{isOpen:o,open:s,close:c,triggerId:l,menuId:u,triggerRef:d}=F(`DropdownTrigger`);return(0,n.jsx)(`button`,{ref:d,type:`button`,id:l,className:[`sh-dropdown__trigger`,t].filter(Boolean).join(` `),"aria-haspopup":`menu`,"aria-expanded":o,"aria-controls":o?u:void 0,onClick:e=>{r?.(e),!e.defaultPrevented&&(o?c({restoreFocus:!1}):s(`first`))},onKeyDown:e=>{i?.(e),!(e.defaultPrevented||o)&&(e.key===`ArrowDown`?(e.preventDefault(),s(`first`)):e.key===`ArrowUp`&&(e.preventDefault(),s(`last`)))},...a,children:e})}function R({children:e,className:t,onKeyDown:i,...a}){let{isOpen:o,close:s,focusOnOpen:c,triggerId:l,menuId:u,placement:d,align:f}=F(`DropdownMenu`),p=(0,r.useRef)(null),m=()=>Array.from(p.current?.querySelectorAll(`[role="menuitem"]:not([disabled])`)??[]);return(0,r.useEffect)(()=>{if(!o||!c)return;let e=m();(c===`last`?e[e.length-1]:e[0])?.focus()},[o,c]),o?(0,n.jsx)(`div`,{ref:p,id:u,className:[`sh-dropdown__menu`,`sh-dropdown__menu--${d}`,`sh-dropdown__menu--${f}`,t].filter(Boolean).join(` `),role:`menu`,"aria-labelledby":l,onKeyDown:e=>{if(i?.(e),e.defaultPrevented)return;if(e.key===`Tab`){s({restoreFocus:!1});return}if(![`ArrowDown`,`ArrowUp`,`Home`,`End`].includes(e.key))return;let t=m();if(t.length===0)return;let n=t.indexOf(document.activeElement),r;r=e.key===`Home`?0:e.key===`End`?t.length-1:n===-1?0:e.key===`ArrowDown`?(n+1)%t.length:(n-1+t.length)%t.length,e.preventDefault(),t[r]?.focus()},...a,children:e}):null}function z({children:e,onSelect:t,closeOnSelect:r=!0,icon:i,destructive:a=!1,className:o,onClick:s,...c}){let{close:l}=F(`DropdownItem`);return(0,n.jsxs)(`button`,{type:`button`,role:`menuitem`,className:[`sh-dropdown__item`,a&&`sh-dropdown__item--destructive`,o].filter(Boolean).join(` `),tabIndex:-1,onClick:e=>{s?.(e),!e.defaultPrevented&&(t?.(),r&&l())},...c,children:[i&&(0,n.jsx)(`span`,{className:`sh-dropdown__item-icon`,"aria-hidden":`true`,children:i}),(0,n.jsx)(`span`,{className:`sh-dropdown__item-label`,children:e})]})}function B({className:e,...t}){return(0,n.jsx)(`div`,{className:[`sh-dropdown__separator`,e].filter(Boolean).join(` `),role:`separator`,...t})}function V(e){let t=e.replace(/\r\n/g,`
2
2
  `).split(`
3
3
  `);for(;t.length>0&&t[0].trim()===``;)t.shift();for(;t.length>0&&t[t.length-1].trim()===``;)t.pop();if(t.length===0)return``;let n=t.filter(e=>e.trim()!==``).map(e=>e.length-e.trimStart().length),r=Math.min(...n);return t.map(e=>e.slice(r)).join(`
4
- `)}var te=()=>(0,n.jsxs)(`svg`,{viewBox:`0 0 16 16`,fill:`none`,stroke:`currentColor`,strokeWidth:1.5,"aria-hidden":`true`,children:[(0,n.jsx)(`rect`,{x:`5.75`,y:`5.75`,width:`8`,height:`8`,rx:`1.5`}),(0,n.jsx)(`path`,{d:`M10.5 3.5A1.5 1.5 0 0 0 9 2H3.5A1.5 1.5 0 0 0 2 3.5V9a1.5 1.5 0 0 0 1.5 1.5`})]}),ne=()=>(0,n.jsx)(`svg`,{viewBox:`0 0 16 16`,fill:`none`,stroke:`currentColor`,strokeWidth:1.75,"aria-hidden":`true`,children:(0,n.jsx)(`path`,{d:`M3.5 8.5l3 3 6-6.5`,strokeLinecap:`round`,strokeLinejoin:`round`})}),re=2e3;function ie({children:e,filename:t,language:i,showLineNumbers:a=!1,wrap:o=!1,copyable:s=!0,copyLabel:c=`Copy code`,maxHeight:l,className:u,...d}){let f=B(e),p=(0,r.useId)(),[m,h]=(0,r.useState)(`idle`),g=(0,r.useRef)(void 0);(0,r.useEffect)(()=>()=>window.clearTimeout(g.current),[]);let _=async()=>{window.clearTimeout(g.current);try{await navigator.clipboard.writeText(f),h(`copied`)}catch{h(`error`)}g.current=window.setTimeout(()=>h(`idle`),re)},v=t??i,y=v!==void 0||s;return(0,n.jsxs)(`div`,{className:[`sh-code-block`,o&&`sh-code-block--wrap`,a&&`sh-code-block--numbered`,u].filter(Boolean).join(` `),...d,children:[y&&(0,n.jsxs)(`div`,{className:`sh-code-block__header`,children:[v!==void 0&&(0,n.jsx)(`span`,{id:p,className:`sh-code-block__filename`,children:v}),s&&(0,n.jsx)(`button`,{type:`button`,className:`sh-code-block__copy`,"aria-label":c,onClick:_,children:m===`copied`?(0,n.jsx)(ne,{}):(0,n.jsx)(te,{})})]}),(0,n.jsx)(`pre`,{className:`sh-code-block__pre`,tabIndex:0,role:v===void 0?void 0:`group`,"aria-labelledby":v===void 0?void 0:p,style:l===void 0?void 0:{maxHeight:l},children:(0,n.jsx)(`code`,{className:[`sh-code-block__code`,i&&`language-${i}`].filter(Boolean).join(` `),children:a?f.split(`
4
+ `)}var ee=()=>(0,n.jsxs)(`svg`,{viewBox:`0 0 16 16`,fill:`none`,stroke:`currentColor`,strokeWidth:1.5,"aria-hidden":`true`,children:[(0,n.jsx)(`rect`,{x:`5.75`,y:`5.75`,width:`8`,height:`8`,rx:`1.5`}),(0,n.jsx)(`path`,{d:`M10.5 3.5A1.5 1.5 0 0 0 9 2H3.5A1.5 1.5 0 0 0 2 3.5V9a1.5 1.5 0 0 0 1.5 1.5`})]}),te=()=>(0,n.jsx)(`svg`,{viewBox:`0 0 16 16`,fill:`none`,stroke:`currentColor`,strokeWidth:1.75,"aria-hidden":`true`,children:(0,n.jsx)(`path`,{d:`M3.5 8.5l3 3 6-6.5`,strokeLinecap:`round`,strokeLinejoin:`round`})}),H=2e3;function ne({children:e,filename:t,language:i,showLineNumbers:a=!1,wrap:o=!1,copyable:s=!0,copyLabel:c=`Copy code`,maxHeight:l,className:u,...d}){let f=V(e),p=(0,r.useId)(),[m,h]=(0,r.useState)(`idle`),g=(0,r.useRef)(void 0);(0,r.useEffect)(()=>()=>window.clearTimeout(g.current),[]);let _=async()=>{window.clearTimeout(g.current);try{await navigator.clipboard.writeText(f),h(`copied`)}catch{h(`error`)}g.current=window.setTimeout(()=>h(`idle`),H)},v=t??i,y=v!==void 0||s;return(0,n.jsxs)(`div`,{className:[`sh-code-block`,o&&`sh-code-block--wrap`,a&&`sh-code-block--numbered`,u].filter(Boolean).join(` `),...d,children:[y&&(0,n.jsxs)(`div`,{className:`sh-code-block__header`,children:[v!==void 0&&(0,n.jsx)(`span`,{id:p,className:`sh-code-block__filename`,children:v}),s&&(0,n.jsx)(`button`,{type:`button`,className:`sh-code-block__copy`,"aria-label":c,onClick:_,children:m===`copied`?(0,n.jsx)(te,{}):(0,n.jsx)(ee,{})})]}),(0,n.jsx)(`pre`,{className:`sh-code-block__pre`,tabIndex:0,role:v===void 0?void 0:`group`,"aria-labelledby":v===void 0?void 0:p,style:l===void 0?void 0:{maxHeight:l},children:(0,n.jsx)(`code`,{className:[`sh-code-block__code`,i&&`language-${i}`].filter(Boolean).join(` `),children:a?f.split(`
5
5
  `).map((e,t,r)=>(0,n.jsxs)(`span`,{className:`sh-code-block__line`,children:[e,t<r.length-1?`
6
- `:``]},t)):f})}),s&&(0,n.jsx)(`span`,{role:`status`,"aria-live":`polite`,className:`sh-code-block__status`,children:m===`copied`?`Copied`:m===`error`?`Copy failed`:``})]})}function ae(e,t){if(!t)return e;let n=t===!0?typeof document>`u`?null:document.body:t;return n?(0,i.createPortal)(e,n):null}var V=0,H=null;function oe(){if(V===0){let{body:e}=document,t=e.style.overflow,n=e.style.paddingRight,r=window.innerWidth-document.documentElement.clientWidth;if(e.style.overflow=`hidden`,r>0){let t=Number.parseFloat(window.getComputedStyle(e).paddingRight)||0;e.style.paddingRight=`${t+r}px`}H=()=>{e.style.overflow=t,e.style.paddingRight=n}}V+=1;let e=!1;return()=>{e||(e=!0,--V,V===0&&(H?.(),H=null))}}function U({open:e,onClose:t,closeOnEscape:n,closeOnBackdropClick:i,initialFocus:a,lockScroll:o}){let s=(0,r.useRef)(null),c=(0,r.useRef)(null),l=(0,r.useId)();return(0,r.useEffect)(()=>{let t=s.current;if(t){if(!e){t.open&&t.close();return}return t.open||t.showModal(),a?.current?.focus(),o?oe():void 0}},[e,o]),(0,r.useEffect)(()=>{let e=s.current;if(!e)return;let r=e=>{e.preventDefault(),n&&t()};return e.addEventListener(`cancel`,r),()=>e.removeEventListener(`cancel`,r)},[n,t]),{titleId:`${l}-title`,descriptionId:`${l}-description`,surfaceProps:{ref:s,onMouseDown:e=>{c.current=e.target},onClick:e=>{i&&c.current===e.currentTarget&&e.target===e.currentTarget&&t()}}}}var se=()=>(0,n.jsx)(`svg`,{viewBox:`0 0 16 16`,fill:`none`,stroke:`currentColor`,strokeWidth:1.75,"aria-hidden":`true`,children:(0,n.jsx)(`path`,{d:`M4.5 4.5l7 7M11.5 4.5l-7 7`,strokeLinecap:`round`})});function ce({open:e,onClose:t,title:r,description:i,children:a,footer:o,size:s=`md`,role:c=`dialog`,closeOnEscape:l=!0,closeOnBackdropClick:u=!0,showClose:d=!0,closeLabel:f=`Close`,initialFocus:p,lockScroll:m=!0,portal:h=!1,className:g,..._}){let{titleId:v,descriptionId:y,surfaceProps:b}=U({open:e,onClose:t,closeOnEscape:l,closeOnBackdropClick:u,initialFocus:p,lockScroll:m});return ae((0,n.jsxs)(`dialog`,{role:c,"aria-labelledby":v,"aria-describedby":i?y:void 0,className:[`sh-dialog`,`sh-dialog--${s}`,g].filter(Boolean).join(` `),...b,..._,children:[(0,n.jsxs)(`div`,{className:`sh-dialog__header`,children:[(0,n.jsxs)(`div`,{className:`sh-dialog__heading`,children:[(0,n.jsx)(`h2`,{id:v,className:`sh-dialog__title`,children:r}),i&&(0,n.jsx)(`p`,{id:y,className:`sh-dialog__description`,children:i})]}),d&&(0,n.jsx)(`button`,{type:`button`,className:`sh-dialog__close`,"aria-label":f,onClick:t,children:(0,n.jsx)(se,{})})]}),a!=null&&a!==!1&&(0,n.jsx)(`div`,{className:`sh-dialog__body`,children:a}),o&&(0,n.jsx)(`div`,{className:`sh-dialog__footer`,children:o})]}),h)}var le=[`sm`,`md`,`lg`,`fullscreen`],ue=[`dialog`,`alertdialog`],de=()=>(0,n.jsx)(`svg`,{viewBox:`0 0 16 16`,fill:`none`,stroke:`currentColor`,strokeWidth:1.75,"aria-hidden":`true`,children:(0,n.jsx)(`path`,{d:`M4.5 4.5l7 7M11.5 4.5l-7 7`,strokeLinecap:`round`})});function fe({open:e,onClose:t,title:r,description:i,children:a,footer:o,side:s=`right`,size:c=`md`,closeOnEscape:l=!0,closeOnBackdropClick:u=!0,showClose:d=!0,closeLabel:f=`Close`,initialFocus:p,lockScroll:m=!0,portal:h=!1,className:g,..._}){let{titleId:v,descriptionId:y,surfaceProps:b}=U({open:e,onClose:t,closeOnEscape:l,closeOnBackdropClick:u,initialFocus:p,lockScroll:m});return ae((0,n.jsxs)(`dialog`,{"aria-labelledby":v,"aria-describedby":i?y:void 0,className:[`sh-drawer`,`sh-drawer--${s}`,`sh-drawer--${c}`,g].filter(Boolean).join(` `),...b,..._,children:[(0,n.jsxs)(`div`,{className:`sh-drawer__header`,children:[(0,n.jsxs)(`div`,{className:`sh-drawer__heading`,children:[(0,n.jsx)(`h2`,{id:v,className:`sh-drawer__title`,children:r}),i&&(0,n.jsx)(`p`,{id:y,className:`sh-drawer__description`,children:i})]}),d&&(0,n.jsx)(`button`,{type:`button`,className:`sh-drawer__close`,"aria-label":f,onClick:t,children:(0,n.jsx)(de,{})})]}),a!=null&&a!==!1&&(0,n.jsx)(`div`,{className:`sh-drawer__body`,children:a}),o&&(0,n.jsx)(`div`,{className:`sh-drawer__footer`,children:o})]}),h)}var pe=[`left`,`right`,`top`,`bottom`],me=[`sm`,`md`,`lg`,`full`],he={top:`bottom`,bottom:`top`,left:`right`,right:`left`},ge=[`top`,`bottom`,`right`,`left`],_e=12;function ve({trigger:e,tip:t,viewport:n,gap:r=8,preferred:i=`top`}){let a={top:e.top,bottom:n.height-e.bottom,left:e.left,right:n.width-e.right},o={top:t.height+r,bottom:t.height+r,left:t.width+r,right:t.width+r},s=[i,he[i]];for(let e of ge)s.includes(e)||s.push(e);return s.find(e=>a[e]>=o[e])||s.reduce((e,t)=>a[t]-o[t]>a[e]-o[e]?t:e)}function ye({side:e,trigger:t,tip:n,viewport:r,padding:i=8}){let a=e===`top`||e===`bottom`,o=a?n.width:n.height,s=a?r.width:r.height,c=(a?(t.left+t.right)/2:(t.top+t.bottom)/2)-o/2,l=c+o,u=0;l>s-i&&(u=s-i-l),c+u<i&&(u=i-c);let d=Math.max(0,o/2-_e);return Math.min(d,Math.max(-d,u))}var be=typeof window>`u`?r.useEffect:r.useLayoutEffect;function xe({children:e,content:t,placement:i=`top`,avoidCollisions:a=!0,delay:o=150,open:s,defaultOpen:c=!1,onOpenChange:l,disabled:u=!1,className:d,...f}){let p=(0,r.useId)(),m=(0,r.useRef)(void 0),h=(0,r.useRef)(null),g=(0,r.useRef)(null),_=(0,r.useRef)(!1),[v,y]=(0,r.useState)(c),b=s!==void 0,x=b?s:v,S=!u&&t!=null&&t!==``,C=()=>{m.current!==void 0&&(window.clearTimeout(m.current),m.current=void 0)},w=(0,r.useCallback)(e=>{b||y(e),l?.(e)},[b,l]),T=()=>{!S||x||_.current||(C(),o>0?m.current=window.setTimeout(()=>w(!0),o):w(!0))},E=()=>{C(),x&&w(!1)};(0,r.useEffect)(()=>C,[]);let D=i===`auto`?`top`:i,[O,k]=(0,r.useState)(null),A=a&&O?.preferred===D?O:{side:D,shift:0},j=A.side;if(be(()=>{if(!a||!x||!S)return;let e=()=>{let e=h.current,t=g.current;if(!e||!t)return;let n={width:t.offsetWidth,height:t.offsetHeight};if(n.width===0&&n.height===0)return;let r=e.getBoundingClientRect(),i={width:window.innerWidth,height:window.innerHeight},a=ve({trigger:r,tip:n,viewport:i,preferred:D}),o=ye({side:a,trigger:r,tip:n,viewport:i});k(e=>e?.preferred===D&&e.side===a&&e.shift===o?e:{preferred:D,side:a,shift:o})};return e(),window.addEventListener(`scroll`,e,!0),window.addEventListener(`resize`,e),()=>{window.removeEventListener(`scroll`,e,!0),window.removeEventListener(`resize`,e)}},[a,D,x,S]),(0,r.useEffect)(()=>{if(!x||!S)return;let e=e=>{e.key===`Escape`&&w(!1)};return document.addEventListener(`keydown`,e),()=>document.removeEventListener(`keydown`,e)},[x,S,w]),!(0,r.isValidElement)(e))throw Error(`<Tooltip> expects a single element child to describe.`);let M=S?(0,r.cloneElement)(e,{"aria-describedby":[e.props[`aria-describedby`],p].filter(Boolean).join(` `)}):e;return(0,n.jsxs)(`span`,{ref:h,className:[`sh-tooltip`,d].filter(Boolean).join(` `),onMouseEnter:T,onMouseLeave:()=>{_.current=!1,E()},onFocus:T,onBlur:()=>{_.current=!1,E()},onMouseDown:()=>{_.current=!0,E()},...f,children:[M,S&&(0,n.jsx)(`span`,{ref:g,id:p,role:`tooltip`,className:[`sh-tooltip__tip`,`sh-tooltip__tip--${j}`,x&&`sh-tooltip__tip--open`].filter(Boolean).join(` `),style:A.shift?{"--sh-tooltip-shift":`${A.shift}px`}:void 0,children:t})]})}var Se=()=>(0,n.jsx)(`svg`,{viewBox:`0 0 16 16`,fill:`none`,stroke:`currentColor`,strokeWidth:1.5,"aria-hidden":`true`,children:(0,n.jsx)(`path`,{d:`M4 6.5 8 10.5l4-4`,strokeLinecap:`round`,strokeLinejoin:`round`})}),Ce=e=>`options`in e;function we({label:e,helperText:t,error:i,options:a,placeholder:o,icon:s,className:c,selectClassName:l,children:u,id:d,required:f,disabled:p,multiple:m,"aria-describedby":h,...g}){let _=(0,r.useId)(),v=d??_,y=`${v}-message`,b=!!i,x=i??t,S=[h,x?y:void 0].filter(Boolean).join(` `)||void 0,C=[`sh-select`,b&&`sh-select--invalid`,p&&`sh-select--disabled`,s&&`sh-select--with-icon`,m&&`sh-select--multiple`,c].filter(Boolean).join(` `),w=e=>(0,n.jsx)(`option`,{value:e.value,disabled:e.disabled,children:e.label},e.value);return(0,n.jsxs)(`div`,{className:C,children:[e&&(0,n.jsxs)(`label`,{className:`sh-select__label`,htmlFor:v,children:[e,f&&(0,n.jsx)(`span`,{className:`sh-select__required`,"aria-hidden":`true`,children:`*`})]}),(0,n.jsxs)(`span`,{className:`sh-select__field`,children:[s&&(0,n.jsx)(`span`,{className:`sh-select__icon`,"aria-hidden":`true`,children:s}),(0,n.jsxs)(`select`,{...g,id:v,className:[`sh-select__control`,l].filter(Boolean).join(` `),required:f,disabled:p,multiple:m,"aria-invalid":b||void 0,"aria-describedby":S,children:[o&&(0,n.jsx)(`option`,{value:``,disabled:!0,children:o}),a?a.map(e=>Ce(e)?(0,n.jsx)(`optgroup`,{label:e.label,children:e.options.map(w)},e.label):w(e)):u]}),!m&&(0,n.jsx)(`span`,{className:`sh-select__chevron`,"aria-hidden":`true`,children:(0,n.jsx)(Se,{})})]}),x&&(0,n.jsx)(`span`,{id:y,className:`sh-select__message`,children:x})]})}function Te({label:e,helperText:t,error:i,resize:a=`vertical`,className:o,textareaClassName:s,id:c,rows:l=3,required:u,disabled:d,"aria-describedby":f,...p}){let m=(0,r.useId)(),h=c??m,g=`${h}-message`,_=!!i,v=i??t,y=[f,v?g:void 0].filter(Boolean).join(` `)||void 0,b=[`sh-textarea`,_&&`sh-textarea--invalid`,d&&`sh-textarea--disabled`,o].filter(Boolean).join(` `);return(0,n.jsxs)(`div`,{className:b,children:[e&&(0,n.jsxs)(`label`,{className:`sh-textarea__label`,htmlFor:h,children:[e,u&&(0,n.jsx)(`span`,{className:`sh-textarea__required`,"aria-hidden":`true`,children:`*`})]}),(0,n.jsx)(`textarea`,{id:h,className:[`sh-textarea__control`,`sh-textarea__control--resize-${a}`,s].filter(Boolean).join(` `),rows:l,required:u,disabled:d,"aria-invalid":_||void 0,"aria-describedby":y,...p}),v&&(0,n.jsx)(`span`,{id:g,className:`sh-textarea__message`,children:v})]})}var Ee=(0,r.createContext)(void 0);function De({value:e,label:t,indeterminate:i=!1,className:a,inputClassName:o,name:s,checked:c,disabled:l,onChange:u,ref:d,...f}){let p=(0,r.useContext)(Ee),m=(0,r.useRef)(null);(0,r.useEffect)(()=>{m.current&&(m.current.indeterminate=i)},[i]);let h=e=>{m.current=e,typeof d==`function`?d(e):d&&(d.current=e)},g=s??p?.name,_=p&&e!==void 0?p.value.includes(e):c,v=l??p?.disabled,y=t=>{p&&e!==void 0&&p.onToggle(e,t.target.checked),u?.(t)},b=[`sh-checkbox`,v&&`sh-checkbox--disabled`,a].filter(Boolean).join(` `);return(0,n.jsxs)(`label`,{className:b,children:[(0,n.jsx)(`input`,{...f,type:`checkbox`,ref:h,className:[`sh-checkbox__input`,o].filter(Boolean).join(` `),name:g,value:e,checked:_,disabled:v,onChange:y}),t&&(0,n.jsx)(`span`,{className:`sh-checkbox__label`,children:t})]})}function Oe({children:e,value:t,defaultValue:i,onChange:a,label:o,helperText:s,error:c,name:l,orientation:u=`vertical`,disabled:d=!1,"aria-label":f,className:p}){let m=(0,r.useId)(),h=(0,r.useId)(),g=(0,r.useId)(),_=l??m,[v,y]=(0,r.useState)(i??[]),b=t!==void 0,x=b?t:v,S=(e,t)=>{let n=t?[...x,e]:x.filter(t=>t!==e);b||y(n),a?.(n)},C=!!c,w=c??s,T=[`sh-checkbox-group`,C&&`sh-checkbox-group--invalid`,p].filter(Boolean).join(` `);return(0,n.jsxs)(`div`,{className:T,children:[o&&(0,n.jsx)(`span`,{className:`sh-checkbox-group__label`,id:h,children:o}),(0,n.jsx)(`div`,{className:`sh-checkbox-group__options sh-checkbox-group__options--${u}`,role:`group`,"aria-label":o?void 0:f,"aria-labelledby":o?h:void 0,"aria-describedby":w?g:void 0,"aria-invalid":C||void 0,children:(0,n.jsx)(Ee.Provider,{value:{name:_,value:x,onToggle:S,disabled:d},children:e})}),w&&(0,n.jsx)(`span`,{id:g,className:`sh-checkbox-group__message`,children:w})]})}var ke=(0,r.createContext)(void 0);function Ae({value:e,label:t,className:i,inputClassName:a,name:o,checked:s,disabled:c,onChange:l,...u}){let d=(0,r.useContext)(ke),f=o??d?.name,p=d?d.value===e:s,m=c??d?.disabled,h=t=>{d&&e!==void 0&&d.onSelect(e),l?.(t)},g=[`sh-radio`,m&&`sh-radio--disabled`,i].filter(Boolean).join(` `);return(0,n.jsxs)(`label`,{className:g,children:[(0,n.jsx)(`input`,{type:`radio`,className:[`sh-radio__input`,a].filter(Boolean).join(` `),name:f,value:e,checked:p,disabled:m,onChange:h,...u}),t&&(0,n.jsx)(`span`,{className:`sh-radio__label`,children:t})]})}function je({children:e,value:t,defaultValue:i,onChange:a,label:o,helperText:s,error:c,name:l,orientation:u=`vertical`,disabled:d=!1,"aria-label":f,className:p}){let m=(0,r.useId)(),h=(0,r.useId)(),g=(0,r.useId)(),_=l??m,[v,y]=(0,r.useState)(i),b=t!==void 0,x=b?t:v,S=e=>{b||y(e),a?.(e)},C=!!c,w=c??s,T=[`sh-radio-group`,C&&`sh-radio-group--invalid`,p].filter(Boolean).join(` `);return(0,n.jsxs)(`div`,{className:T,children:[o&&(0,n.jsx)(`span`,{className:`sh-radio-group__label`,id:h,children:o}),(0,n.jsx)(`div`,{className:`sh-radio-group__options sh-radio-group__options--${u}`,role:`radiogroup`,"aria-label":o?void 0:f,"aria-labelledby":o?h:void 0,"aria-describedby":w?g:void 0,"aria-invalid":C||void 0,children:(0,n.jsx)(ke.Provider,{value:{name:_,value:x,onSelect:S,disabled:d},children:e})}),w&&(0,n.jsx)(`span`,{id:g,className:`sh-radio-group__message`,children:w})]})}var W=(e,t)=>t<e?[]:Array.from({length:t-e+1},(t,n)=>e+n);function G({page:e,count:t,siblingCount:n=1,boundaryCount:r=1}){if(t<=0)return[];let i=W(1,Math.min(r,t)),a=W(Math.max(t-r+1,r+1),t),o=Math.max(Math.min(e-n,t-r-n*2-1),r+2),s=Math.min(Math.max(e+n,r+n*2+2),a.length>0?a[0]-2:t-1);return[...i,...o>r+2?[`ellipsis`]:r+1<t-r?[r+1]:[],...W(o,s),...s<t-r-1?[`ellipsis`]:t-r>r?[t-r]:[],...a]}var Me=({direction:e})=>(0,n.jsx)(`svg`,{viewBox:`0 0 16 16`,fill:`none`,stroke:`currentColor`,strokeWidth:1.75,"aria-hidden":`true`,children:(0,n.jsx)(`path`,{d:e===`left`?`M10 3.5 5.5 8l4.5 4.5`:`M6 3.5 10.5 8 6 12.5`,strokeLinecap:`round`,strokeLinejoin:`round`})}),Ne=({direction:e})=>(0,n.jsx)(`svg`,{viewBox:`0 0 16 16`,fill:`none`,stroke:`currentColor`,strokeWidth:1.75,"aria-hidden":`true`,children:(0,n.jsx)(`path`,{d:e===`left`?`M8 3.5 3.5 8 8 12.5M13 3.5 8.5 8l4.5 4.5`:`M8 3.5 12.5 8 8 12.5M3 3.5 7.5 8 3 12.5`,strokeLinecap:`round`,strokeLinejoin:`round`})}),Pe={first:`First page`,previous:`Previous page`,next:`Next page`,last:`Last page`,page:e=>`Page ${e}`};function Fe({count:e,page:t,defaultPage:i=1,onChange:a,siblingCount:o=1,boundaryCount:s=1,showFirstLast:c=!1,hidePrevNext:l=!1,disabled:u=!1,labels:d,"aria-label":f=`Pagination`,className:p,...m}){let[h,g]=(0,r.useState)(i),_=t!==void 0,v=_?t:h,y={...Pe,...d},b=t=>{t<1||t>e||t===v||(_||g(t),a?.(t))},x=G({page:v,count:e,siblingCount:o,boundaryCount:s});if(e<=0)return null;let S=(t,r,i,a)=>(0,n.jsx)(`li`,{className:`sh-pagination__item`,children:(0,n.jsx)(`button`,{type:`button`,className:`sh-pagination__control`,onClick:()=>b(i),disabled:u||i<1||i>e||i===v,"aria-label":r,children:a})},t);return(0,n.jsx)(`nav`,{className:[`sh-pagination`,p].filter(Boolean).join(` `),"aria-label":f,...m,children:(0,n.jsxs)(`ul`,{className:`sh-pagination__list`,children:[c&&S(`first`,y.first,1,(0,n.jsx)(Ne,{direction:`left`})),!l&&S(`prev`,y.previous,v-1,(0,n.jsx)(Me,{direction:`left`})),x.map((e,t)=>e===`ellipsis`?(0,n.jsx)(`li`,{className:`sh-pagination__item`,children:(0,n.jsx)(`span`,{className:`sh-pagination__ellipsis`,"aria-hidden":`true`,children:`…`})},`ellipsis-${t}`):(0,n.jsx)(`li`,{className:`sh-pagination__item`,children:(0,n.jsx)(`button`,{type:`button`,className:[`sh-pagination__page`,e===v&&`sh-pagination__page--current`].filter(Boolean).join(` `),onClick:()=>b(e),disabled:u,"aria-label":y.page(e),"aria-current":e===v?`page`:void 0,children:e})},e)),!l&&S(`next`,y.next,v+1,(0,n.jsx)(Me,{direction:`right`})),c&&S(`last`,y.last,e,(0,n.jsx)(Ne,{direction:`right`}))]})})}var Ie=(0,r.createContext)(void 0);function Le(e){let t=(0,r.useContext)(Ie);if(!t)throw Error(`<${e}> must be rendered inside <Accordion>.`);return t}var Re=(e,t)=>`${e}-trigger-${t}`,ze=(e,t)=>`${e}-panel-${t}`;function Be({children:e,type:t=`single`,value:i,defaultValue:a,onChange:o,collapsible:s=!0,headingLevel:c=3,className:l,...u}){let d=(0,r.useId)(),[f,p]=(0,r.useState)(a??[]),m=i!==void 0,h=m?i:f;return(0,n.jsx)(Ie.Provider,{value:{value:h,toggle:e=>{let n=h.includes(e),r;r=t===`multiple`?n?h.filter(t=>t!==e):[...h,e]:n?s?[]:h:[e],m||p(r),o?.(r)},baseId:d,headingLevel:c},children:(0,n.jsx)(`div`,{className:[`sh-accordion`,l].filter(Boolean).join(` `),...u,children:e})})}var Ve=()=>(0,n.jsx)(`svg`,{className:`sh-accordion__chevron`,viewBox:`0 0 16 16`,fill:`none`,stroke:`currentColor`,strokeWidth:1.75,"aria-hidden":`true`,children:(0,n.jsx)(`path`,{d:`M4 6.5 8 10.5l4-4`,strokeLinecap:`round`,strokeLinejoin:`round`})});function He({value:e,title:t,children:i,disabled:a=!1,className:o,...s}){let{value:c,toggle:l,baseId:u,headingLevel:d}=Le(`AccordionItem`),f=c.includes(e),p=(0,n.jsxs)(`button`,{type:`button`,id:Re(u,e),className:`sh-accordion__trigger`,"aria-expanded":f,"aria-controls":ze(u,e),disabled:a,onClick:()=>l(e),children:[(0,n.jsx)(`span`,{className:`sh-accordion__title`,children:t}),(0,n.jsx)(Ve,{})]});return(0,n.jsxs)(`div`,{className:[`sh-accordion__item`,f&&`sh-accordion__item--open`,a&&`sh-accordion__item--disabled`,o].filter(Boolean).join(` `),...s,children:[(0,r.createElement)(`h${d}`,{className:`sh-accordion__heading`},p),(0,n.jsx)(`div`,{id:ze(u,e),className:`sh-accordion__panel`,role:`region`,"aria-labelledby":Re(u,e),children:(0,n.jsx)(`div`,{className:`sh-accordion__panel-inner`,children:(0,n.jsx)(`div`,{className:`sh-accordion__content`,children:i})})})]})}var Ue=(0,r.createContext)(void 0);function We(e){let t=(0,r.useContext)(Ue);if(!t)throw Error(`<${e}> must be rendered inside <Stepper>.`);return t}function Ge({children:e,activeStep:t=0,orientation:i=`horizontal`,"aria-label":a=`Progress`,className:o,...s}){let c=r.Children.toArray(e).filter(r.isValidElement),l=e=>e<t?`complete`:e===t?`current`:`upcoming`;return(0,n.jsx)(`ol`,{className:[`sh-stepper`,`sh-stepper--${i}`,o].filter(Boolean).join(` `),"aria-label":a,...s,children:c.map((e,t)=>(0,n.jsx)(Ue.Provider,{value:{index:t,isLast:t===c.length-1,status:l(t),orientation:i},children:e},e.key??t))})}var Ke=()=>(0,n.jsx)(`svg`,{viewBox:`0 0 16 16`,fill:`none`,stroke:`currentColor`,strokeWidth:2,"aria-hidden":`true`,children:(0,n.jsx)(`path`,{d:`M3.5 8.5l3 3 6-6.5`,strokeLinecap:`round`,strokeLinejoin:`round`})}),qe=()=>(0,n.jsxs)(`svg`,{viewBox:`0 0 16 16`,fill:`none`,stroke:`currentColor`,strokeWidth:2,"aria-hidden":`true`,children:[(0,n.jsx)(`path`,{d:`M8 4.5v4.5`,strokeLinecap:`round`}),(0,n.jsx)(`circle`,{cx:`8`,cy:`11.6`,r:`0.9`,fill:`currentColor`,stroke:`none`})]});function Je({title:e,description:t,status:r,icon:i,onClick:a,disabled:o=!1,className:s}){let{index:c,isLast:l,status:u,orientation:d}=We(`Step`),f=r??u,p=i??(f===`complete`?(0,n.jsx)(Ke,{}):f===`error`?(0,n.jsx)(qe,{}):c+1),m=(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(`span`,{className:`sh-step__indicator`,children:p}),(0,n.jsxs)(`span`,{className:`sh-step__text`,children:[(0,n.jsx)(`span`,{className:`sh-step__title`,children:e}),t&&(0,n.jsx)(`span`,{className:`sh-step__description`,children:t})]})]});return(0,n.jsxs)(`li`,{className:[`sh-step`,`sh-step--${f}`,`sh-step--${d}`,l&&`sh-step--last`,s].filter(Boolean).join(` `),children:[a?(0,n.jsx)(`button`,{type:`button`,className:`sh-step__body sh-step__body--interactive`,onClick:a,disabled:o,"aria-current":f===`current`?`step`:void 0,children:m}):(0,n.jsx)(`span`,{className:`sh-step__body`,"aria-current":f===`current`?`step`:void 0,children:m}),!l&&(0,n.jsx)(`span`,{className:`sh-step__connector`,"aria-hidden":`true`})]})}var Ye=(0,r.createContext)(void 0);function Xe(e){let t=(0,r.useContext)(Ye);if(!t)throw Error(`<${e}> must be rendered inside <Breadcrumb>.`);return t}var Ze=()=>(0,n.jsx)(`svg`,{viewBox:`0 0 16 16`,fill:`none`,stroke:`currentColor`,strokeWidth:1.5,children:(0,n.jsx)(`path`,{d:`M6 3.5 10.5 8 6 12.5`,strokeLinecap:`round`,strokeLinejoin:`round`})});function Qe({children:e,separator:t=(0,n.jsx)(Ze,{}),"aria-label":i=`Breadcrumb`,className:a,...o}){let s=r.Children.toArray(e).filter(r.isValidElement);return(0,n.jsx)(`nav`,{className:[`sh-breadcrumb`,a].filter(Boolean).join(` `),"aria-label":i,...o,children:(0,n.jsx)(`ol`,{className:`sh-breadcrumb__list`,children:s.map((e,r)=>(0,n.jsx)(Ye.Provider,{value:{isLast:r===s.length-1,separator:t},children:e},e.key??r))})})}function $e({children:e,href:t,current:r,className:i,...a}){let{isLast:o,separator:s}=Xe(`BreadcrumbItem`),c=r??o;return(0,n.jsxs)(`li`,{className:[`sh-breadcrumb__item`,i].filter(Boolean).join(` `),children:[c?(0,n.jsx)(`span`,{className:`sh-breadcrumb__current`,"aria-current":`page`,children:e}):t?(0,n.jsx)(`a`,{className:`sh-breadcrumb__link`,href:t,...a,children:e}):(0,n.jsx)(`span`,{className:`sh-breadcrumb__text`,children:e}),!o&&(0,n.jsx)(`span`,{className:`sh-breadcrumb__separator`,"aria-hidden":`true`,children:s})]})}var K=(0,r.createContext)(void 0);function q(e){let t=(0,r.useContext)(K);if(!t)throw Error(`<${e}> must be rendered inside <Tabs>.`);return t}var et=(e,t)=>`${e}-tab-${t}`,tt=(e,t)=>`${e}-panel-${t}`;function nt({children:e,value:t,defaultValue:i,onChange:a,orientation:o=`horizontal`,activation:s=`automatic`,className:c,...l}){let u=(0,r.useId)(),[d,f]=(0,r.useState)(i),p=t!==void 0,m=p?t:d,h=e=>{p||f(e),a?.(e)},g=[`sh-tabs`,`sh-tabs--${o}`,c].filter(Boolean).join(` `);return(0,n.jsx)(K.Provider,{value:{value:m,select:h,baseId:u,orientation:o,activation:s},children:(0,n.jsx)(`div`,{className:g,...l,children:e})})}var rt=typeof window>`u`?r.useEffect:r.useLayoutEffect;function it({children:e,className:t,onKeyDown:i,...a}){let{value:o,orientation:s,activation:c,select:l}=q(`TabList`),u=(0,r.useRef)(null),[d,f]=(0,r.useState)(null),p=s===`vertical`;return rt(()=>{let e=u.current;if(!e)return;let t=Array.from(e.querySelectorAll(`[role="tab"]`)).find(e=>e.dataset.value===o);if(!t){f(null);return}let n=()=>{let e=p?t.offsetTop:t.offsetLeft,n=p?t.offsetHeight:t.offsetWidth;f(t=>({offset:e,size:n,animated:t!==null}))};if(n(),typeof ResizeObserver>`u`)return;let r=new ResizeObserver(n);return r.observe(e),r.observe(t),()=>r.disconnect()},[o,p]),(0,n.jsxs)(`div`,{ref:u,className:[`sh-tabs__list`,t].filter(Boolean).join(` `),role:`tablist`,"aria-orientation":s,onKeyDown:e=>{if(i?.(e),e.defaultPrevented||!u.current)return;let t=p?`ArrowDown`:`ArrowRight`;if(![t,p?`ArrowUp`:`ArrowLeft`,`Home`,`End`].includes(e.key))return;let n=Array.from(u.current.querySelectorAll(`[role="tab"]:not([disabled])`));if(n.length===0)return;let r=n.indexOf(document.activeElement),a;a=e.key===`Home`?0:e.key===`End`?n.length-1:r===-1?0:e.key===t?(r+1)%n.length:(r-1+n.length)%n.length;let o=n[a];if(o&&(e.preventDefault(),o.focus(),c===`automatic`)){let e=o.dataset.value;e!==void 0&&l(e)}},...a,children:[e,d&&(0,n.jsx)(`span`,{className:[`sh-tabs__indicator`,d.animated&&`sh-tabs__indicator--animated`].filter(Boolean).join(` `),"aria-hidden":`true`,style:{"--sh-tabs-indicator-offset":`${d.offset}px`,"--sh-tabs-indicator-size":`${d.size}px`}})]})}function at({value:e,children:t,className:r,disabled:i,onClick:a,...o}){let{value:s,select:c,baseId:l}=q(`Tab`),u=s===e,d=[`sh-tabs__tab`,u&&`sh-tabs__tab--selected`,r].filter(Boolean).join(` `);return(0,n.jsx)(`button`,{type:`button`,role:`tab`,id:et(l,e),className:d,"data-value":e,"aria-selected":u,"aria-controls":tt(l,e),tabIndex:u?0:-1,disabled:i,onClick:t=>{a?.(t),t.defaultPrevented||c(e)},...o,children:t})}function ot({value:e,children:t,keepMounted:r=!1,className:i,...a}){let{value:o,baseId:s}=q(`TabPanel`),c=o===e;return!c&&!r?null:(0,n.jsx)(`div`,{id:tt(s,e),className:[`sh-tabs__panel`,i].filter(Boolean).join(` `),role:`tabpanel`,"aria-labelledby":et(s,e),hidden:!c,tabIndex:0,...a,children:t})}var st=(0,r.createContext)(void 0);function J(e){let t=(0,r.useContext)(st);if(!t)throw Error(`<${e}> must be rendered inside <Carousel>.`);return t}var ct=(0,r.createContext)(void 0);function lt(e){let t=(0,r.useContext)(ct);if(t===void 0)throw Error(`<${e}> must be rendered inside <CarouselSlides>.`);return t}var ut=(e,t)=>`${e}-slide-${t}`;function dt(e,t,n){return t<=0?0:n?(Math.trunc(e)%t+t)%t:Math.min(Math.max(Math.trunc(e),0),t-1)}var ft=`(prefers-reduced-motion: reduce)`,pt=()=>typeof window<`u`&&typeof window.matchMedia==`function`;function mt(e){if(!pt())return()=>{};let t=window.matchMedia(ft);return t.addEventListener(`change`,e),()=>t.removeEventListener(`change`,e)}var ht=()=>pt()&&window.matchMedia(ft).matches;function gt(e){return typeof document>`u`?()=>{}:(document.addEventListener(`visibilitychange`,e),()=>document.removeEventListener(`visibilitychange`,e))}var _t=()=>typeof document<`u`&&document.hidden;function vt({enabled:e,interval:t,onTick:n}){let[i,a]=(0,r.useState)(!1),[o,s]=(0,r.useState)(!1),c=(0,r.useSyncExternalStore)(mt,ht,()=>!1),l=(0,r.useSyncExternalStore)(gt,_t,()=>!1),u=(0,r.useRef)(n);(0,r.useEffect)(()=>{u.current=n});let d=e&&!i&&!o&&!l&&!c;return(0,r.useEffect)(()=>{if(!d)return;let e=setInterval(()=>u.current(),t);return()=>clearInterval(e)},[d,t]),{pauseProps:{onMouseEnter:()=>a(!0),onMouseLeave:()=>a(!1),onFocus:()=>s(!0),onBlur:e=>{e.currentTarget.contains(e.relatedTarget)||s(!1)}}}}function yt({children:e,index:t,defaultIndex:i=0,onChange:a,loop:o=!0,autoPlay:s=!1,interval:c=5e3,"aria-label":l,className:u,...d}){let f=(0,r.useId)(),[p,m]=(0,r.useState)(i),[h,g]=(0,r.useState)(0),[_,v]=(0,r.useState)(!1),y=t!==void 0,b=y?t:p,x=h>0?dt(b,h,!1):b,S=s&&!_,C=(e,t=`user`)=>{t===`user`&&s&&v(!0);let n=dt(e,h,o);n!==x&&(y||m(n),a?.(n))},{pauseProps:w}=vt({enabled:S&&h>1,interval:c,onTick:()=>C(x+1,`auto`)}),T=[`sh-carousel`,u].filter(Boolean).join(` `);return(0,n.jsx)(st.Provider,{value:{index:x,count:h,setCount:g,goTo:C,loop:o,baseId:f,autoPlay:s,isPlaying:S,togglePlaying:()=>v(e=>!e)},children:(0,n.jsx)(`section`,{className:T,"aria-roledescription":`carousel`,"aria-label":l,...d,onMouseEnter:e=>{d.onMouseEnter?.(e),w.onMouseEnter(e)},onMouseLeave:e=>{d.onMouseLeave?.(e),w.onMouseLeave(e)},onFocus:e=>{d.onFocus?.(e),w.onFocus(e)},onBlur:e=>{d.onBlur?.(e),w.onBlur(e)},children:e})})}var bt=typeof window>`u`?r.useEffect:r.useLayoutEffect;function xt({children:e,className:t,onKeyDown:i,...a}){let{index:o,count:s,setCount:c,goTo:l,isPlaying:u}=J(`CarouselSlides`),d=r.Children.toArray(e);return bt(()=>{c(d.length)},[d.length,c]),(0,n.jsx)(`div`,{className:[`sh-carousel__viewport`,t].filter(Boolean).join(` `),"aria-live":u?`off`:`polite`,"aria-atomic":`false`,tabIndex:0,onKeyDown:e=>{if(i?.(e),e.defaultPrevented||s<=1)return;let t={ArrowLeft:o-1,ArrowRight:o+1,Home:0,End:s-1}[e.key];t!==void 0&&(e.preventDefault(),l(t,`user`))},...a,children:(0,n.jsx)(`div`,{className:`sh-carousel__track`,style:{"--sh-carousel-index":o},children:d.map((e,t)=>(0,n.jsx)(ct.Provider,{value:t,children:e},(0,r.isValidElement)(e)?e.key:t))})})}function St({children:e,className:t,...r}){let{index:i,count:a,baseId:o}=J(`CarouselSlide`),s=lt(`CarouselSlide`),c=s===i,l=[`sh-carousel__slide`,c&&`sh-carousel__slide--current`,t].filter(Boolean).join(` `);return(0,n.jsx)(`div`,{id:ut(o,s),className:l,role:`group`,"aria-roledescription":`slide`,"aria-label":`${s+1} of ${a}`,inert:!c,...r,children:e})}var Ct=({direction:e})=>(0,n.jsx)(`svg`,{viewBox:`0 0 16 16`,fill:`none`,stroke:`currentColor`,strokeWidth:1.75,"aria-hidden":`true`,children:(0,n.jsx)(`path`,{d:e===`left`?`M10 3.5 5.5 8l4.5 4.5`:`M6 3.5 10.5 8 6 12.5`,strokeLinecap:`round`,strokeLinejoin:`round`})});function wt({direction:e,component:t,defaultLabel:r,children:i,"aria-label":a=r,className:o,disabled:s,onClick:c,...l}){let{index:u,count:d,loop:f,goTo:p}=J(t),m=e===`next`,h=!f&&(m?u>=d-1:u<=0),g=[`sh-carousel__control`,`sh-carousel__control--${e}`,o].filter(Boolean).join(` `);return(0,n.jsx)(`button`,{type:`button`,className:g,"aria-label":a,disabled:s||h||d<=1,onClick:e=>{c?.(e),e.defaultPrevented||p(m?u+1:u-1,`user`)},...l,children:i??(0,n.jsx)(Ct,{direction:m?`right`:`left`})})}function Tt(e){return(0,n.jsx)(wt,{direction:`previous`,component:`CarouselPrevious`,defaultLabel:`Previous slide`,...e})}function Et(e){return(0,n.jsx)(wt,{direction:`next`,component:`CarouselNext`,defaultLabel:`Next slide`,...e})}function Dt({"aria-label":e=`Choose slide`,label:t=e=>`Slide ${e+1}`,className:r,...i}){let{index:a,count:o,goTo:s,baseId:c}=J(`CarouselDots`);return o<=1?null:(0,n.jsx)(`div`,{className:[`sh-carousel__dots`,r].filter(Boolean).join(` `),role:`group`,"aria-label":e,...i,children:Array.from({length:o},(e,r)=>{let i=r===a;return(0,n.jsx)(`button`,{type:`button`,className:[`sh-carousel__dot`,i&&`sh-carousel__dot--current`].filter(Boolean).join(` `),"aria-label":t(r),"aria-current":i?`true`:void 0,"aria-controls":ut(c,r),onClick:()=>s(r,`user`)},r)})})}var Ot=()=>(0,n.jsx)(`svg`,{viewBox:`0 0 16 16`,fill:`currentColor`,"aria-hidden":`true`,children:(0,n.jsx)(`path`,{d:`M5.5 3.4a.6.6 0 0 1 .92-.51l6.1 4.1a.6.6 0 0 1 0 1l-6.1 4.1a.6.6 0 0 1-.92-.5Z`})}),kt=()=>(0,n.jsxs)(`svg`,{viewBox:`0 0 16 16`,fill:`currentColor`,"aria-hidden":`true`,children:[(0,n.jsx)(`rect`,{x:`4`,y:`3`,width:`3`,height:`10`,rx:`1`}),(0,n.jsx)(`rect`,{x:`9`,y:`3`,width:`3`,height:`10`,rx:`1`})]});function At({labels:e,className:t,onClick:r,...i}){let{autoPlay:a,isPlaying:o,togglePlaying:s,count:c}=J(`CarouselPlayPause`);if(!a||c<=1)return null;let l={play:`Start slide rotation`,pause:`Stop slide rotation`,...e};return(0,n.jsx)(`button`,{type:`button`,className:[`sh-carousel__play-pause`,t].filter(Boolean).join(` `),"aria-label":o?l.pause:l.play,onClick:e=>{r?.(e),e.defaultPrevented||s()},...i,children:o?(0,n.jsx)(kt,{}):(0,n.jsx)(Ot,{})})}var jt=e=>typeof e==`number`?`${e}px`:e;function Mt({variant:e=`text`,width:t,height:r,lines:i=1,animation:a=`pulse`,className:o,...s}){let c=[`sh-skeleton`,`sh-skeleton--${e}`,`sh-skeleton--${a}`].join(` `),l={width:jt(t),height:jt(r??(e===`circular`?t:void 0))};return e===`text`&&i>1?(0,n.jsx)(`div`,{className:[`sh-skeleton-lines`,o].filter(Boolean).join(` `),"aria-hidden":`true`,...s,children:Array.from({length:i},(e,t)=>(0,n.jsx)(`span`,{className:c,style:t===i-1?{...l,width:`60%`}:l},t))}):(0,n.jsx)(`span`,{className:[c,o].filter(Boolean).join(` `),style:l,"aria-hidden":`true`,...s})}var Nt=[`text`,`rectangular`,`circular`],Pt=[`pulse`,`wave`,`none`];function Ft({size:e=`md`,label:t=`Loading`,showLabel:i=!1,className:a,...o}){let s=(0,r.useId)(),c=[`sh-spinner`,`sh-spinner--${e}`,i&&`sh-spinner--with-label`,a].filter(Boolean).join(` `);return(0,n.jsxs)(`span`,{className:c,role:`status`,"aria-labelledby":s,...o,children:[(0,n.jsx)(`span`,{className:`sh-spinner__ring`,"aria-hidden":`true`}),(0,n.jsx)(`span`,{id:s,className:i?`sh-spinner__label`:`sh-spinner__label--visually-hidden`,children:t})]})}var It=[`sm`,`md`,`lg`];function Lt({value:e,max:t=100,label:i,showValue:a=!1,formatValue:o,size:s=`md`,"aria-label":c,className:l,...u}){let d=(0,r.useId)(),f=e===void 0,p=t>0?t:0,m=f?0:Math.min(Math.max(e,0),p),h=p===0?0:m/p*100,g=o?o(m,p):`${Math.round(h)}%`,_=[`sh-progress`,`sh-progress--${s}`,f&&`sh-progress--indeterminate`,l].filter(Boolean).join(` `);return(0,n.jsxs)(`div`,{className:_,...u,children:[(i||a&&!f)&&(0,n.jsxs)(`span`,{className:`sh-progress__header`,children:[i&&(0,n.jsx)(`span`,{className:`sh-progress__label`,id:d,children:i}),a&&!f&&(0,n.jsx)(`span`,{className:`sh-progress__value`,children:g})]}),(0,n.jsx)(`div`,{className:`sh-progress__track`,role:`progressbar`,"aria-label":i?void 0:c,"aria-labelledby":i?d:void 0,"aria-valuemin":0,"aria-valuemax":p,"aria-valuenow":f?void 0:m,"aria-valuetext":f?void 0:o?g:void 0,children:(0,n.jsx)(`div`,{className:`sh-progress__bar`,style:{"--sh-progress-fill":`${h}%`}})})]})}var Rt=[`sm`,`md`,`lg`],zt={success:(0,n.jsxs)(`svg`,{viewBox:`0 0 20 20`,fill:`none`,stroke:`currentColor`,strokeWidth:1.6,"aria-hidden":`true`,children:[(0,n.jsx)(`circle`,{cx:`10`,cy:`10`,r:`7.5`}),(0,n.jsx)(`path`,{d:`M6.75 10.25l2.25 2.25 4.25-4.75`,strokeLinecap:`round`,strokeLinejoin:`round`})]}),info:(0,n.jsxs)(`svg`,{viewBox:`0 0 20 20`,fill:`none`,stroke:`currentColor`,strokeWidth:1.6,"aria-hidden":`true`,children:[(0,n.jsx)(`circle`,{cx:`10`,cy:`10`,r:`7.5`}),(0,n.jsx)(`path`,{d:`M10 9v4.5`,strokeLinecap:`round`}),(0,n.jsx)(`circle`,{cx:`10`,cy:`6.4`,r:`0.9`,fill:`currentColor`,stroke:`none`})]}),warning:(0,n.jsxs)(`svg`,{viewBox:`0 0 20 20`,fill:`none`,stroke:`currentColor`,strokeWidth:1.6,"aria-hidden":`true`,children:[(0,n.jsx)(`path`,{d:`M10 2.8 18 16.5H2L10 2.8Z`,strokeLinejoin:`round`}),(0,n.jsx)(`path`,{d:`M10 8v3.5`,strokeLinecap:`round`}),(0,n.jsx)(`circle`,{cx:`10`,cy:`13.9`,r:`0.9`,fill:`currentColor`,stroke:`none`})]}),error:(0,n.jsxs)(`svg`,{viewBox:`0 0 20 20`,fill:`none`,stroke:`currentColor`,strokeWidth:1.6,"aria-hidden":`true`,children:[(0,n.jsx)(`circle`,{cx:`10`,cy:`10`,r:`7.5`}),(0,n.jsx)(`path`,{d:`M7.5 7.5l5 5M12.5 7.5l-5 5`,strokeLinecap:`round`})]})},Bt=()=>(0,n.jsx)(`svg`,{viewBox:`0 0 16 16`,fill:`none`,stroke:`currentColor`,strokeWidth:1.75,"aria-hidden":`true`,children:(0,n.jsx)(`path`,{d:`M4.5 4.5l7 7M11.5 4.5l-7 7`,strokeLinecap:`round`})}),Vt={success:`status`,info:`status`,warning:`alert`,error:`alert`};function Ht({variant:e=`info`,title:t,children:r,icon:i,onDismiss:a,dismissLabel:o=`Dismiss`,role:s,className:c,...l}){let u=[`sh-alert`,`sh-alert--${e}`,c].filter(Boolean).join(` `),d=i===void 0?zt[e]:i;return(0,n.jsxs)(`div`,{className:u,role:s??Vt[e],...l,children:[d!==!1&&(0,n.jsx)(`span`,{className:`sh-alert__icon`,children:d}),(0,n.jsxs)(`div`,{className:`sh-alert__content`,children:[t&&(0,n.jsx)(`p`,{className:`sh-alert__title`,children:t}),r&&(0,n.jsx)(`div`,{className:`sh-alert__body`,children:r})]}),a&&(0,n.jsx)(`button`,{type:`button`,className:`sh-alert__dismiss`,onClick:a,"aria-label":o,children:(0,n.jsx)(Bt,{})})]})}var Ut=[`success`,`info`,`warning`,`error`];function Y(e,t){if(!t)return!0;let n=t.split(`,`).map(e=>e.trim().toLowerCase()).filter(Boolean);if(n.length===0)return!0;let r=e.name.toLowerCase(),i=e.type.toLowerCase();return n.some(e=>e.startsWith(`.`)?r.endsWith(e):e.endsWith(`/*`)?i.startsWith(e.slice(0,-1)):i===e)}function Wt(e){if(e<1024)return`${e} B`;let t=[`KB`,`MB`,`GB`,`TB`],n=e/1024,r=0;for(;n>=1024&&r<t.length-1;)n/=1024,r+=1;return`${Math.round(n*10)/10} ${t[r]}`}var Gt=()=>(0,n.jsxs)(`svg`,{className:`sh-filedrop__icon`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:1.5,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,children:[(0,n.jsx)(`path`,{d:`M12 16V4m0 0L8 8m4-4 4 4`}),(0,n.jsx)(`path`,{d:`M4 15v3a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-3`})]}),Kt=()=>(0,n.jsx)(`svg`,{viewBox:`0 0 16 16`,fill:`none`,stroke:`currentColor`,strokeWidth:1.75,"aria-hidden":`true`,children:(0,n.jsx)(`path`,{d:`M4.5 4.5l7 7M11.5 4.5l-7 7`,strokeLinecap:`round`})});function qt({label:e,helperText:t,error:i,placeholder:a=`Drag files here, or click to browse`,accept:o,multiple:s=!1,value:c,defaultValue:l,onChange:u,onReject:d,hideFileList:f=!1,disabled:p=!1,name:m,"aria-label":h,className:g,inputClassName:_}){let v=(0,r.useId)(),y=(0,r.useId)(),[b,x]=(0,r.useState)(l??[]),S=c!==void 0,C=S?c:b,[w,T]=(0,r.useState)(!1),E=(0,r.useRef)(0),D=!!i,O=i??t,k=e=>{S||x(e),u?.(e)},A=e=>{let t=e.filter(e=>Y(e,o)),n=e.filter(e=>!Y(e,o));n.length>0&&d?.(n),t.length!==0&&k(s?[...C,...t]:[t[0]])},j=e=>{A(Array.from(e.target.files??[])),e.target.value=``},M=e=>{p||(e.preventDefault(),E.current+=1,T(!0))},N=e=>{p||e.preventDefault()},P=e=>{p||(e.preventDefault(),--E.current,E.current<=0&&(E.current=0,T(!1)))},F=e=>{p||(e.preventDefault(),E.current=0,T(!1),A(Array.from(e.dataTransfer?.files??[])))},I=e=>{k(C.filter((t,n)=>n!==e))},L=[`sh-filedrop`,D&&`sh-filedrop--invalid`,p&&`sh-filedrop--disabled`,w&&`sh-filedrop--dragging`,g].filter(Boolean).join(` `);return(0,n.jsxs)(`div`,{className:L,children:[e&&(0,n.jsx)(`label`,{className:`sh-filedrop__label`,htmlFor:v,children:e}),(0,n.jsxs)(`label`,{className:`sh-filedrop__dropzone`,onDragEnter:M,onDragOver:N,onDragLeave:P,onDrop:F,children:[(0,n.jsx)(`input`,{id:v,type:`file`,className:[`sh-filedrop__input`,_].filter(Boolean).join(` `),accept:o,multiple:s,disabled:p,name:m,onChange:j,"aria-label":e?void 0:h,"aria-invalid":D||void 0,"aria-describedby":O?y:void 0}),(0,n.jsxs)(`span`,{className:`sh-filedrop__prompt`,"aria-hidden":`true`,children:[(0,n.jsx)(Gt,{}),(0,n.jsx)(`span`,{className:`sh-filedrop__placeholder`,children:a}),o&&(0,n.jsx)(`span`,{className:`sh-filedrop__accept`,children:o})]})]}),!f&&C.length>0&&(0,n.jsx)(`ul`,{className:`sh-filedrop__files`,children:C.map((e,t)=>(0,n.jsxs)(`li`,{className:`sh-filedrop__file`,children:[(0,n.jsx)(`span`,{className:`sh-filedrop__file-name`,children:e.name}),(0,n.jsx)(`span`,{className:`sh-filedrop__file-size`,children:Wt(e.size)}),(0,n.jsx)(`button`,{type:`button`,className:`sh-filedrop__file-remove`,onClick:()=>I(t),disabled:p,"aria-label":`Remove ${e.name}`,children:(0,n.jsx)(Kt,{})})]},`${e.name}-${t}`))}),O&&(0,n.jsx)(`span`,{id:y,className:`sh-filedrop__message`,children:O})]})}function Jt({label:e,helperText:t,error:i,value:a,defaultValue:o,onChange:s,min:c=0,max:l=100,step:u=1,showValue:d=!1,formatValue:f,className:p,inputClassName:m,id:h,disabled:g,"aria-describedby":_,...v}){let y=(0,r.useId)(),b=h??y,x=`${b}-message`,[S,C]=(0,r.useState)(o??c),w=a!==void 0,T=w?a:S,E=!!i,D=i??t,O=[_,D?x:void 0].filter(Boolean).join(` `)||void 0,k=e=>{let t=Number(e.target.value);w||C(t),s?.(t)},A=l===c?0:(T-c)/(l-c)*100,j=f?f(T):String(T),M=[`sh-range`,E&&`sh-range--invalid`,g&&`sh-range--disabled`,p].filter(Boolean).join(` `);return(0,n.jsxs)(`div`,{className:M,children:[(e||d)&&(0,n.jsxs)(`span`,{className:`sh-range__header`,children:[e&&(0,n.jsx)(`label`,{className:`sh-range__label`,htmlFor:b,children:e}),d&&(0,n.jsx)(`span`,{className:`sh-range__value`,children:j})]}),(0,n.jsx)(`input`,{...v,type:`range`,id:b,className:[`sh-range__input`,m].filter(Boolean).join(` `),style:{"--sh-range-fill":`${A}%`},min:c,max:l,step:u,value:T,disabled:g,onChange:k,"aria-invalid":E||void 0,"aria-describedby":O,"aria-valuetext":f?j:void 0}),D&&(0,n.jsx)(`span`,{id:x,className:`sh-range__message`,children:D})]})}function Yt({label:e,helperText:t,error:i,value:a,defaultValue:o,onChange:s,min:c=0,max:l=100,step:u=1,minGap:d=0,showValue:f=!1,formatValue:p,name:m,disabled:h=!1,"aria-label":g,className:_}){let v=(0,r.useId)(),y=(0,r.useId)(),[b,x]=(0,r.useState)(o??[c,l]),S=a!==void 0,[C,w]=S?a:b,T=!!i,E=i??t,D=e=>{S||x(e),s?.(e)},O=e=>{D([Math.min(Number(e.target.value),w-d),w])},k=e=>{D([C,Math.max(Number(e.target.value),C+d)])},A=e=>l===c?0:(e-c)/(l-c)*100,j=A(C),M=A(w),N=e=>p?p(e):String(e),P=C>(c+l)/2,F=[`sh-minmax`,T&&`sh-minmax--invalid`,h&&`sh-minmax--disabled`,P&&`sh-minmax--from-on-top`,_].filter(Boolean).join(` `),I=e?void 0:g,L=t=>e||g?`${e??g} ${t}`:t;return(0,n.jsxs)(`div`,{className:F,style:{"--sh-minmax-from":`${j}%`,"--sh-minmax-to":`${M}%`},children:[(e||f)&&(0,n.jsxs)(`span`,{className:`sh-minmax__header`,children:[e&&(0,n.jsx)(`span`,{className:`sh-minmax__label`,id:v,children:e}),f&&(0,n.jsxs)(`span`,{className:`sh-minmax__value`,children:[N(C),` – `,N(w)]})]}),(0,n.jsxs)(`div`,{className:`sh-minmax__rail`,role:`group`,"aria-label":I,"aria-labelledby":e?v:void 0,"aria-describedby":E?y:void 0,"aria-invalid":T||void 0,children:[(0,n.jsx)(`span`,{className:`sh-minmax__track`,"aria-hidden":`true`,children:(0,n.jsx)(`span`,{className:`sh-minmax__fill`})}),(0,n.jsx)(`input`,{type:`range`,className:`sh-minmax__input sh-minmax__input--from`,name:m?`${m}-min`:void 0,min:c,max:l,step:u,value:C,disabled:h,onChange:O,"aria-label":L(`minimum`),"aria-valuetext":p?N(C):void 0}),(0,n.jsx)(`input`,{type:`range`,className:`sh-minmax__input sh-minmax__input--to`,name:m?`${m}-max`:void 0,min:c,max:l,step:u,value:w,disabled:h,onChange:k,"aria-label":L(`maximum`),"aria-valuetext":p?N(w):void 0})]}),E&&(0,n.jsx)(`span`,{id:y,className:`sh-minmax__message`,children:E})]})}var Xt=(0,r.createContext)(void 0);function Zt({value:e,label:t,labelPosition:i,className:a,inputClassName:o,name:s,checked:c,disabled:l,onChange:u,...d}){let f=(0,r.useContext)(Xt),p=s??f?.name,m=f&&e!==void 0?f.value.includes(e):c,h=l??f?.disabled,g=i??f?.labelPosition??`right`,_=t=>{f&&e!==void 0&&f.onToggle(e,t.target.checked),u?.(t)},v=[`sh-switch`,`sh-switch--label-${g}`,h&&`sh-switch--disabled`,a].filter(Boolean).join(` `);return(0,n.jsxs)(`label`,{className:v,children:[(0,n.jsx)(`input`,{...d,type:`checkbox`,role:`switch`,className:[`sh-switch__input`,o].filter(Boolean).join(` `),name:p,value:e,checked:m,disabled:h,onChange:_}),(0,n.jsx)(`span`,{className:`sh-switch__track`,"aria-hidden":`true`,children:(0,n.jsx)(`span`,{className:`sh-switch__thumb`})}),t&&(0,n.jsx)(`span`,{className:`sh-switch__label`,children:t})]})}function Qt({children:e,value:t,defaultValue:i,onChange:a,label:o,helperText:s,error:c,name:l,orientation:u=`vertical`,labelPosition:d,disabled:f=!1,"aria-label":p,className:m}){let h=(0,r.useId)(),g=(0,r.useId)(),_=(0,r.useId)(),v=l??h,[y,b]=(0,r.useState)(i??[]),x=t!==void 0,S=x?t:y,C=(e,t)=>{let n=t?[...S,e]:S.filter(t=>t!==e);x||b(n),a?.(n)},w=!!c,T=c??s,E=[`sh-switch-group`,w&&`sh-switch-group--invalid`,m].filter(Boolean).join(` `);return(0,n.jsxs)(`div`,{className:E,children:[o&&(0,n.jsx)(`span`,{className:`sh-switch-group__label`,id:g,children:o}),(0,n.jsx)(`div`,{className:`sh-switch-group__options sh-switch-group__options--${u}`,role:`group`,"aria-label":o?void 0:p,"aria-labelledby":o?g:void 0,"aria-describedby":T?_:void 0,"aria-invalid":w||void 0,children:(0,n.jsx)(Xt.Provider,{value:{name:v,value:S,onToggle:C,disabled:f,labelPosition:d},children:e})}),T&&(0,n.jsx)(`span`,{id:_,className:`sh-switch-group__message`,children:T})]})}function $t({options:e,value:t,defaultValue:i,onChange:a,label:o,name:s,fullWidth:c=!1,disabled:l=!1,"aria-label":u,className:d}){let f=(0,r.useId)(),p=(0,r.useId)(),m=s??f,[h,g]=(0,r.useState)(i),_=t!==void 0,v=_?t:h,y=e=>{_||g(e),a?.(e)},b=e.findIndex(e=>e.value===v),x=[`sh-segmented`,c&&`sh-segmented--full-width`,l&&`sh-segmented--disabled`,b<0&&`sh-segmented--unselected`,d].filter(Boolean).join(` `),S={"--sh-segmented-count":e.length,"--sh-segmented-index":Math.max(b,0)};return(0,n.jsxs)(`div`,{className:`sh-segmented-field`,children:[o&&(0,n.jsx)(`span`,{className:`sh-segmented__group-label`,id:p,children:o}),(0,n.jsx)(`div`,{className:x,style:S,role:`radiogroup`,"aria-label":o?void 0:u,"aria-labelledby":o?p:void 0,children:e.map(e=>{let t=l||e.disabled;return(0,n.jsxs)(`label`,{className:[`sh-segmented__item`,t&&`sh-segmented__item--disabled`].filter(Boolean).join(` `),children:[(0,n.jsx)(`input`,{className:`sh-segmented__input`,type:`radio`,name:m,value:e.value,checked:v===e.value,disabled:t,onChange:()=>y(e.value)}),(0,n.jsx)(`span`,{className:`sh-segmented__label`,children:e.label})]},e.value)})})]})}var en=t({accent:()=>X,accentFill:()=>$,colorVar:()=>an,danger:()=>Q,neutral:()=>Z,palette:()=>tn,paletteVar:()=>on,semanticColors:()=>rn}),X={50:`#f6f0ff`,100:`#ece0ff`,200:`#d9c2ff`,300:`#c19dff`,400:`#a672ff`,500:`#8b47fa`,600:`#7429e0`,700:`#5d1fb8`,800:`#461890`,900:`#331269`,950:`#1f0b40`},Z={0:`#ffffff`,50:`#f8f7fa`,100:`#efedf3`,200:`#e2dfe8`,300:`#cac6d3`,400:`#a29cae`,500:`#79728a`,600:`#5a5468`,700:`#423d4d`,800:`#2c2836`,900:`#1a1720`,950:`#0d0b12`},Q={50:`#fef3f2`,100:`#fee4e2`,200:`#fecdca`,300:`#fda29b`,400:`#f97066`,500:`#f04438`,600:`#d92d20`,700:`#b42318`,800:`#912018`,900:`#7a271a`,950:`#55160c`},tn={accent:X,neutral:Z,danger:Q},$={bg:X[700],text:X[100]},nn={"accent-fill-bg":$.bg,"accent-fill-text":$.text},rn={light:{"bg-canvas":Z[0],"bg-surface":Z[50],"bg-subtle":Z[100],text:Z[900],"text-subtle":Z[600],"text-inverse":Z[0],border:Z[200],"border-strong":Z[300],accent:X[600],"accent-hover":X[700],"accent-subtle-bg":X[50],"accent-subtle-text":X[700],...nn,danger:Q[700],"danger-border":Q[500],scrim:`rgb(0 0 0 / 0.45)`,"accent-tint-1":X[50],"accent-tint-2":X[100],"accent-tint-3":X[200],"accent-tint-4":X[300],"accent-on-tint":X[900]},dark:{"bg-canvas":Z[950],"bg-surface":Z[900],"bg-subtle":Z[800],text:Z[50],"text-subtle":Z[400],"text-inverse":Z[950],border:Z[700],"border-strong":Z[600],accent:X[400],"accent-hover":X[300],"accent-subtle-bg":X[900],"accent-subtle-text":X[200],...nn,danger:Q[300],"danger-border":Q[400],scrim:`rgb(0 0 0 / 0.65)`,"accent-tint-1":X[950],"accent-tint-2":X[900],"accent-tint-3":X[800],"accent-tint-4":X[700],"accent-on-tint":X[100]}};function an(e){return`var(--color-${e})`}function on(e,t){return`var(--color-${e}-${String(t)})`}exports.Accordion=Be,exports.AccordionItem=He,exports.Alert=Ht,exports.Avatar=E,exports.AvatarGroup=D,exports.Breadcrumb=Qe,exports.BreadcrumbItem=$e,exports.Button=d,exports.Carousel=yt,exports.CarouselDots=Dt,exports.CarouselNext=Et,exports.CarouselPlayPause=At,exports.CarouselPrevious=Tt,exports.CarouselSlide=St,exports.CarouselSlides=xt,exports.Checkbox=De,exports.CheckboxGroup=Oe,exports.Chip=b,exports.CodeBlock=ie,exports.Dialog=ce,exports.Drawer=fe,exports.Dropdown=I,exports.DropdownItem=z,exports.DropdownMenu=R,exports.DropdownSeparator=ee,exports.DropdownTrigger=L,exports.EmptyState=h,exports.FileDrop=qt,exports.Input=k,exports.InputOtp=N,exports.MinMaxSlider=Yt,exports.Pagination=Fe,exports.ProgressBar=Lt,exports.Radio=Ae,exports.RadioGroup=je,exports.RangeSlider=Jt,exports.SegmentedControl=$t,exports.Select=we,exports.Skeleton=Mt,exports.Spinner=Ft,exports.Step=Je,exports.Stepper=Ge,exports.Switch=Zt,exports.SwitchGroup=Qt,exports.Tab=at,exports.TabList=it,exports.TabPanel=ot,exports.Tabs=nt,exports.Tag=g,exports.Text=l,exports.Textarea=Te,exports.Tooltip=xe,exports.accentFill=$,exports.alertVariants=Ut,exports.avatarSizes=O,exports.buttonClassNames=u,exports.buttonSizes=p,exports.buttonVariants=f,exports.chipActions=S,exports.chipVariants=x,Object.defineProperty(exports,"colorTokens",{enumerable:!0,get:function(){return en}}),exports.colorVar=an,exports.dedentCode=B,exports.dialogRoles=ue,exports.dialogSizes=le,exports.drawerSides=pe,exports.drawerSizes=me,exports.formatFileSize=Wt,exports.getPaginationRange=G,exports.isFileAccepted=Y,exports.otpTypes=A,exports.palette=tn,exports.paletteVar=on,exports.progressBarSizes=Rt,exports.resolveTooltipPlacement=ve,exports.sanitizeOtpValue=M,exports.semanticColors=rn,exports.skeletonAnimations=Pt,exports.skeletonVariants=Nt,exports.spinnerSizes=It,exports.tagVariants=_,exports.textColors=o,exports.textVariants=a,exports.textWeights=s;
6
+ `:``]},t)):f})}),s&&(0,n.jsx)(`span`,{role:`status`,"aria-live":`polite`,className:`sh-code-block__status`,children:m===`copied`?`Copied`:m===`error`?`Copy failed`:``})]})}function re(e,t){if(!t)return e;let n=t===!0?typeof document>`u`?null:document.body:t;return n?(0,i.createPortal)(e,n):null}var U=0,ie=null;function ae(){if(U===0){let{body:e}=document,t=e.style.overflow,n=e.style.paddingRight,r=window.innerWidth-document.documentElement.clientWidth;if(e.style.overflow=`hidden`,r>0){let t=Number.parseFloat(window.getComputedStyle(e).paddingRight)||0;e.style.paddingRight=`${t+r}px`}ie=()=>{e.style.overflow=t,e.style.paddingRight=n}}U+=1;let e=!1;return()=>{e||(e=!0,--U,U===0&&(ie?.(),ie=null))}}function oe({open:e,onClose:t,closeOnEscape:n,closeOnBackdropClick:i,initialFocus:a,lockScroll:o}){let s=(0,r.useRef)(null),c=(0,r.useRef)(null),l=(0,r.useId)();return(0,r.useEffect)(()=>{let t=s.current;if(t){if(!e){t.open&&t.close();return}return t.open||t.showModal(),a?.current?.focus(),o?ae():void 0}},[e,o]),(0,r.useEffect)(()=>{let e=s.current;if(!e)return;let r=e=>{e.preventDefault(),n&&t()};return e.addEventListener(`cancel`,r),()=>e.removeEventListener(`cancel`,r)},[n,t]),{titleId:`${l}-title`,descriptionId:`${l}-description`,surfaceProps:{ref:s,onMouseDown:e=>{c.current=e.target},onClick:e=>{i&&c.current===e.currentTarget&&e.target===e.currentTarget&&t()}}}}var se=()=>(0,n.jsx)(`svg`,{viewBox:`0 0 16 16`,fill:`none`,stroke:`currentColor`,strokeWidth:1.75,"aria-hidden":`true`,children:(0,n.jsx)(`path`,{d:`M4.5 4.5l7 7M11.5 4.5l-7 7`,strokeLinecap:`round`})});function ce({open:e,onClose:t,title:r,description:i,children:a,footer:o,size:s=`md`,role:c=`dialog`,closeOnEscape:l=!0,closeOnBackdropClick:u=!0,showClose:d=!0,closeLabel:f=`Close`,initialFocus:p,lockScroll:m=!0,portal:h=!1,className:g,..._}){let{titleId:v,descriptionId:y,surfaceProps:b}=oe({open:e,onClose:t,closeOnEscape:l,closeOnBackdropClick:u,initialFocus:p,lockScroll:m});return re((0,n.jsxs)(`dialog`,{role:c,"aria-labelledby":v,"aria-describedby":i?y:void 0,className:[`sh-dialog`,`sh-dialog--${s}`,g].filter(Boolean).join(` `),...b,..._,children:[(0,n.jsxs)(`div`,{className:`sh-dialog__header`,children:[(0,n.jsxs)(`div`,{className:`sh-dialog__heading`,children:[(0,n.jsx)(`h2`,{id:v,className:`sh-dialog__title`,children:r}),i&&(0,n.jsx)(`p`,{id:y,className:`sh-dialog__description`,children:i})]}),d&&(0,n.jsx)(`button`,{type:`button`,className:`sh-dialog__close`,"aria-label":f,onClick:t,children:(0,n.jsx)(se,{})})]}),a!=null&&a!==!1&&(0,n.jsx)(`div`,{className:`sh-dialog__body`,children:a}),o&&(0,n.jsx)(`div`,{className:`sh-dialog__footer`,children:o})]}),h)}var le=[`sm`,`md`,`lg`,`fullscreen`],ue=[`dialog`,`alertdialog`],de=()=>(0,n.jsx)(`svg`,{viewBox:`0 0 16 16`,fill:`none`,stroke:`currentColor`,strokeWidth:1.75,"aria-hidden":`true`,children:(0,n.jsx)(`path`,{d:`M4.5 4.5l7 7M11.5 4.5l-7 7`,strokeLinecap:`round`})});function fe({open:e,onClose:t,title:r,description:i,children:a,footer:o,side:s=`right`,size:c=`md`,closeOnEscape:l=!0,closeOnBackdropClick:u=!0,showClose:d=!0,closeLabel:f=`Close`,initialFocus:p,lockScroll:m=!0,portal:h=!1,className:g,..._}){let{titleId:v,descriptionId:y,surfaceProps:b}=oe({open:e,onClose:t,closeOnEscape:l,closeOnBackdropClick:u,initialFocus:p,lockScroll:m});return re((0,n.jsxs)(`dialog`,{"aria-labelledby":v,"aria-describedby":i?y:void 0,className:[`sh-drawer`,`sh-drawer--${s}`,`sh-drawer--${c}`,g].filter(Boolean).join(` `),...b,..._,children:[(0,n.jsxs)(`div`,{className:`sh-drawer__header`,children:[(0,n.jsxs)(`div`,{className:`sh-drawer__heading`,children:[(0,n.jsx)(`h2`,{id:v,className:`sh-drawer__title`,children:r}),i&&(0,n.jsx)(`p`,{id:y,className:`sh-drawer__description`,children:i})]}),d&&(0,n.jsx)(`button`,{type:`button`,className:`sh-drawer__close`,"aria-label":f,onClick:t,children:(0,n.jsx)(de,{})})]}),a!=null&&a!==!1&&(0,n.jsx)(`div`,{className:`sh-drawer__body`,children:a}),o&&(0,n.jsx)(`div`,{className:`sh-drawer__footer`,children:o})]}),h)}var pe=[`left`,`right`,`top`,`bottom`],me=[`sm`,`md`,`lg`,`full`],he={top:`bottom`,bottom:`top`,left:`right`,right:`left`},ge=[`top`,`bottom`,`right`,`left`],_e=12;function ve({trigger:e,tip:t,viewport:n,gap:r=8,preferred:i=`top`}){let a={top:e.top,bottom:n.height-e.bottom,left:e.left,right:n.width-e.right},o={top:t.height+r,bottom:t.height+r,left:t.width+r,right:t.width+r},s=[i,he[i]];for(let e of ge)s.includes(e)||s.push(e);return s.find(e=>a[e]>=o[e])||s.reduce((e,t)=>a[t]-o[t]>a[e]-o[e]?t:e)}function ye({side:e,trigger:t,tip:n,viewport:r,padding:i=8}){let a=e===`top`||e===`bottom`,o=a?n.width:n.height,s=a?r.width:r.height,c=(a?(t.left+t.right)/2:(t.top+t.bottom)/2)-o/2,l=c+o,u=0;l>s-i&&(u=s-i-l),c+u<i&&(u=i-c);let d=Math.max(0,o/2-_e);return Math.min(d,Math.max(-d,u))}var be=typeof window>`u`?r.useEffect:r.useLayoutEffect;function xe({children:e,content:t,placement:i=`top`,avoidCollisions:a=!0,delay:o=150,open:s,defaultOpen:c=!1,onOpenChange:l,disabled:u=!1,className:d,...f}){let p=(0,r.useId)(),m=(0,r.useRef)(void 0),h=(0,r.useRef)(null),g=(0,r.useRef)(null),_=(0,r.useRef)(!1),[v,y]=(0,r.useState)(c),b=s!==void 0,x=b?s:v,S=!u&&t!=null&&t!==``,C=()=>{m.current!==void 0&&(window.clearTimeout(m.current),m.current=void 0)},w=(0,r.useCallback)(e=>{b||y(e),l?.(e)},[b,l]),T=()=>{!S||x||_.current||(C(),o>0?m.current=window.setTimeout(()=>w(!0),o):w(!0))},E=()=>{C(),x&&w(!1)};(0,r.useEffect)(()=>C,[]);let D=i===`auto`?`top`:i,[O,k]=(0,r.useState)(null),A=a&&O?.preferred===D?O:{side:D,shift:0},j=A.side;if(be(()=>{if(!a||!x||!S)return;let e=()=>{let e=h.current,t=g.current;if(!e||!t)return;let n={width:t.offsetWidth,height:t.offsetHeight};if(n.width===0&&n.height===0)return;let r=e.getBoundingClientRect(),i={width:window.innerWidth,height:window.innerHeight},a=ve({trigger:r,tip:n,viewport:i,preferred:D}),o=ye({side:a,trigger:r,tip:n,viewport:i});k(e=>e?.preferred===D&&e.side===a&&e.shift===o?e:{preferred:D,side:a,shift:o})};return e(),window.addEventListener(`scroll`,e,!0),window.addEventListener(`resize`,e),()=>{window.removeEventListener(`scroll`,e,!0),window.removeEventListener(`resize`,e)}},[a,D,x,S]),(0,r.useEffect)(()=>{if(!x||!S)return;let e=e=>{e.key===`Escape`&&w(!1)};return document.addEventListener(`keydown`,e),()=>document.removeEventListener(`keydown`,e)},[x,S,w]),!(0,r.isValidElement)(e))throw Error(`<Tooltip> expects a single element child to describe.`);let M=S?(0,r.cloneElement)(e,{"aria-describedby":[e.props[`aria-describedby`],p].filter(Boolean).join(` `)}):e;return(0,n.jsxs)(`span`,{ref:h,className:[`sh-tooltip`,d].filter(Boolean).join(` `),onMouseEnter:T,onMouseLeave:()=>{_.current=!1,E()},onFocus:T,onBlur:()=>{_.current=!1,E()},onMouseDown:()=>{_.current=!0,E()},...f,children:[M,S&&(0,n.jsx)(`span`,{ref:g,id:p,role:`tooltip`,className:[`sh-tooltip__tip`,`sh-tooltip__tip--${j}`,x&&`sh-tooltip__tip--open`].filter(Boolean).join(` `),style:A.shift?{"--sh-tooltip-shift":`${A.shift}px`}:void 0,children:t})]})}var Se=()=>(0,n.jsx)(`svg`,{viewBox:`0 0 16 16`,fill:`none`,stroke:`currentColor`,strokeWidth:1.5,"aria-hidden":`true`,children:(0,n.jsx)(`path`,{d:`M4 6.5 8 10.5l4-4`,strokeLinecap:`round`,strokeLinejoin:`round`})}),Ce=e=>`options`in e;function we({label:e,helperText:t,error:i,options:a,placeholder:o,icon:s,className:c,selectClassName:l,children:u,id:d,required:f,disabled:p,multiple:m,"aria-describedby":h,...g}){let _=(0,r.useId)(),v=d??_,y=`${v}-message`,b=!!i,x=i??t,S=[h,x?y:void 0].filter(Boolean).join(` `)||void 0,C=[`sh-select`,b&&`sh-select--invalid`,p&&`sh-select--disabled`,s&&`sh-select--with-icon`,m&&`sh-select--multiple`,c].filter(Boolean).join(` `),w=e=>(0,n.jsx)(`option`,{value:e.value,disabled:e.disabled,children:e.label},e.value);return(0,n.jsxs)(`div`,{className:C,children:[e&&(0,n.jsxs)(`label`,{className:`sh-select__label`,htmlFor:v,children:[e,f&&(0,n.jsx)(`span`,{className:`sh-select__required`,"aria-hidden":`true`,children:`*`})]}),(0,n.jsxs)(`span`,{className:`sh-select__field`,children:[s&&(0,n.jsx)(`span`,{className:`sh-select__icon`,"aria-hidden":`true`,children:s}),(0,n.jsxs)(`select`,{...g,id:v,className:[`sh-select__control`,l].filter(Boolean).join(` `),required:f,disabled:p,multiple:m,"aria-invalid":b||void 0,"aria-describedby":S,children:[o&&(0,n.jsx)(`option`,{value:``,disabled:!0,children:o}),a?a.map(e=>Ce(e)?(0,n.jsx)(`optgroup`,{label:e.label,children:e.options.map(w)},e.label):w(e)):u]}),!m&&(0,n.jsx)(`span`,{className:`sh-select__chevron`,"aria-hidden":`true`,children:(0,n.jsx)(Se,{})})]}),x&&(0,n.jsx)(`span`,{id:y,className:`sh-select__message`,children:x})]})}function Te({label:e,helperText:t,error:i,resize:a=`vertical`,className:o,textareaClassName:s,id:c,rows:l=3,required:u,disabled:d,"aria-describedby":f,...p}){let m=(0,r.useId)(),h=c??m,g=`${h}-message`,_=!!i,v=i??t,y=[f,v?g:void 0].filter(Boolean).join(` `)||void 0,b=[`sh-textarea`,_&&`sh-textarea--invalid`,d&&`sh-textarea--disabled`,o].filter(Boolean).join(` `);return(0,n.jsxs)(`div`,{className:b,children:[e&&(0,n.jsxs)(`label`,{className:`sh-textarea__label`,htmlFor:h,children:[e,u&&(0,n.jsx)(`span`,{className:`sh-textarea__required`,"aria-hidden":`true`,children:`*`})]}),(0,n.jsx)(`textarea`,{id:h,className:[`sh-textarea__control`,`sh-textarea__control--resize-${a}`,s].filter(Boolean).join(` `),rows:l,required:u,disabled:d,"aria-invalid":_||void 0,"aria-describedby":y,...p}),v&&(0,n.jsx)(`span`,{id:g,className:`sh-textarea__message`,children:v})]})}var Ee=(0,r.createContext)(void 0);function De({value:e,label:t,indeterminate:i=!1,className:a,inputClassName:o,name:s,checked:c,disabled:l,onChange:u,ref:d,...f}){let p=(0,r.useContext)(Ee),m=(0,r.useRef)(null);(0,r.useEffect)(()=>{m.current&&(m.current.indeterminate=i)},[i]);let h=e=>{m.current=e,typeof d==`function`?d(e):d&&(d.current=e)},g=s??p?.name,_=p&&e!==void 0?p.value.includes(e):c,v=l??p?.disabled,y=t=>{p&&e!==void 0&&p.onToggle(e,t.target.checked),u?.(t)},b=[`sh-checkbox`,v&&`sh-checkbox--disabled`,a].filter(Boolean).join(` `);return(0,n.jsxs)(`label`,{className:b,children:[(0,n.jsx)(`input`,{...f,type:`checkbox`,ref:h,className:[`sh-checkbox__input`,o].filter(Boolean).join(` `),name:g,value:e,checked:_,disabled:v,onChange:y}),t&&(0,n.jsx)(`span`,{className:`sh-checkbox__label`,children:t})]})}function Oe({children:e,value:t,defaultValue:i,onChange:a,label:o,helperText:s,error:c,name:l,orientation:u=`vertical`,disabled:d=!1,"aria-label":f,className:p}){let m=(0,r.useId)(),h=(0,r.useId)(),g=(0,r.useId)(),_=l??m,[v,y]=(0,r.useState)(i??[]),b=t!==void 0,x=b?t:v,S=(e,t)=>{let n=t?[...x,e]:x.filter(t=>t!==e);b||y(n),a?.(n)},C=!!c,w=c??s,T=[`sh-checkbox-group`,C&&`sh-checkbox-group--invalid`,p].filter(Boolean).join(` `);return(0,n.jsxs)(`div`,{className:T,children:[o&&(0,n.jsx)(`span`,{className:`sh-checkbox-group__label`,id:h,children:o}),(0,n.jsx)(`div`,{className:`sh-checkbox-group__options sh-checkbox-group__options--${u}`,role:`group`,"aria-label":o?void 0:f,"aria-labelledby":o?h:void 0,"aria-describedby":w?g:void 0,"aria-invalid":C||void 0,children:(0,n.jsx)(Ee.Provider,{value:{name:_,value:x,onToggle:S,disabled:d},children:e})}),w&&(0,n.jsx)(`span`,{id:g,className:`sh-checkbox-group__message`,children:w})]})}var ke=(0,r.createContext)(void 0);function Ae({value:e,label:t,className:i,inputClassName:a,name:o,checked:s,disabled:c,onChange:l,...u}){let d=(0,r.useContext)(ke),f=o??d?.name,p=d?d.value===e:s,m=c??d?.disabled,h=t=>{d&&e!==void 0&&d.onSelect(e),l?.(t)},g=[`sh-radio`,m&&`sh-radio--disabled`,i].filter(Boolean).join(` `);return(0,n.jsxs)(`label`,{className:g,children:[(0,n.jsx)(`input`,{type:`radio`,className:[`sh-radio__input`,a].filter(Boolean).join(` `),name:f,value:e,checked:p,disabled:m,onChange:h,...u}),t&&(0,n.jsx)(`span`,{className:`sh-radio__label`,children:t})]})}function je({children:e,value:t,defaultValue:i,onChange:a,label:o,helperText:s,error:c,name:l,orientation:u=`vertical`,disabled:d=!1,"aria-label":f,className:p}){let m=(0,r.useId)(),h=(0,r.useId)(),g=(0,r.useId)(),_=l??m,[v,y]=(0,r.useState)(i),b=t!==void 0,x=b?t:v,S=e=>{b||y(e),a?.(e)},C=!!c,w=c??s,T=[`sh-radio-group`,C&&`sh-radio-group--invalid`,p].filter(Boolean).join(` `);return(0,n.jsxs)(`div`,{className:T,children:[o&&(0,n.jsx)(`span`,{className:`sh-radio-group__label`,id:h,children:o}),(0,n.jsx)(`div`,{className:`sh-radio-group__options sh-radio-group__options--${u}`,role:`radiogroup`,"aria-label":o?void 0:f,"aria-labelledby":o?h:void 0,"aria-describedby":w?g:void 0,"aria-invalid":C||void 0,children:(0,n.jsx)(ke.Provider,{value:{name:_,value:x,onSelect:S,disabled:d},children:e})}),w&&(0,n.jsx)(`span`,{id:g,className:`sh-radio-group__message`,children:w})]})}var Me=(e,t)=>t<e?[]:Array.from({length:t-e+1},(t,n)=>e+n);function Ne({page:e,count:t,siblingCount:n=1,boundaryCount:r=1}){if(t<=0)return[];let i=Me(1,Math.min(r,t)),a=Me(Math.max(t-r+1,r+1),t),o=Math.max(Math.min(e-n,t-r-n*2-1),r+2),s=Math.min(Math.max(e+n,r+n*2+2),a.length>0?a[0]-2:t-1);return[...i,...o>r+2?[`ellipsis`]:r+1<t-r?[r+1]:[],...Me(o,s),...s<t-r-1?[`ellipsis`]:t-r>r?[t-r]:[],...a]}var Pe=({direction:e})=>(0,n.jsx)(`svg`,{viewBox:`0 0 16 16`,fill:`none`,stroke:`currentColor`,strokeWidth:1.75,"aria-hidden":`true`,children:(0,n.jsx)(`path`,{d:e===`left`?`M10 3.5 5.5 8l4.5 4.5`:`M6 3.5 10.5 8 6 12.5`,strokeLinecap:`round`,strokeLinejoin:`round`})}),Fe=({direction:e})=>(0,n.jsx)(`svg`,{viewBox:`0 0 16 16`,fill:`none`,stroke:`currentColor`,strokeWidth:1.75,"aria-hidden":`true`,children:(0,n.jsx)(`path`,{d:e===`left`?`M8 3.5 3.5 8 8 12.5M13 3.5 8.5 8l4.5 4.5`:`M8 3.5 12.5 8 8 12.5M3 3.5 7.5 8 3 12.5`,strokeLinecap:`round`,strokeLinejoin:`round`})}),Ie={first:`First page`,previous:`Previous page`,next:`Next page`,last:`Last page`,page:e=>`Page ${e}`};function Le({count:e,page:t,defaultPage:i=1,onChange:a,siblingCount:o=1,boundaryCount:s=1,showFirstLast:c=!1,hidePrevNext:l=!1,disabled:u=!1,labels:d,"aria-label":f=`Pagination`,className:p,...m}){let[h,g]=(0,r.useState)(i),_=t!==void 0,v=_?t:h,y={...Ie,...d},b=t=>{t<1||t>e||t===v||(_||g(t),a?.(t))},x=Ne({page:v,count:e,siblingCount:o,boundaryCount:s});if(e<=0)return null;let S=(t,r,i,a)=>(0,n.jsx)(`li`,{className:`sh-pagination__item`,children:(0,n.jsx)(`button`,{type:`button`,className:`sh-pagination__control`,onClick:()=>b(i),disabled:u||i<1||i>e||i===v,"aria-label":r,children:a})},t);return(0,n.jsx)(`nav`,{className:[`sh-pagination`,p].filter(Boolean).join(` `),"aria-label":f,...m,children:(0,n.jsxs)(`ul`,{className:`sh-pagination__list`,children:[c&&S(`first`,y.first,1,(0,n.jsx)(Fe,{direction:`left`})),!l&&S(`prev`,y.previous,v-1,(0,n.jsx)(Pe,{direction:`left`})),x.map((e,t)=>e===`ellipsis`?(0,n.jsx)(`li`,{className:`sh-pagination__item`,children:(0,n.jsx)(`span`,{className:`sh-pagination__ellipsis`,"aria-hidden":`true`,children:`…`})},`ellipsis-${t}`):(0,n.jsx)(`li`,{className:`sh-pagination__item`,children:(0,n.jsx)(`button`,{type:`button`,className:[`sh-pagination__page`,e===v&&`sh-pagination__page--current`].filter(Boolean).join(` `),onClick:()=>b(e),disabled:u,"aria-label":y.page(e),"aria-current":e===v?`page`:void 0,children:e})},e)),!l&&S(`next`,y.next,v+1,(0,n.jsx)(Pe,{direction:`right`})),c&&S(`last`,y.last,e,(0,n.jsx)(Fe,{direction:`right`}))]})})}var Re=(0,r.createContext)(void 0);function ze(e){let t=(0,r.useContext)(Re);if(!t)throw Error(`<${e}> must be rendered inside <Accordion>.`);return t}var Be=(e,t)=>`${e}-trigger-${t}`,Ve=(e,t)=>`${e}-panel-${t}`;function He({children:e,type:t=`single`,value:i,defaultValue:a,onChange:o,collapsible:s=!0,headingLevel:c=3,className:l,...u}){let d=(0,r.useId)(),[f,p]=(0,r.useState)(a??[]),m=i!==void 0,h=m?i:f;return(0,n.jsx)(Re.Provider,{value:{value:h,toggle:e=>{let n=h.includes(e),r;r=t===`multiple`?n?h.filter(t=>t!==e):[...h,e]:n?s?[]:h:[e],m||p(r),o?.(r)},baseId:d,headingLevel:c},children:(0,n.jsx)(`div`,{className:[`sh-accordion`,l].filter(Boolean).join(` `),...u,children:e})})}var Ue=()=>(0,n.jsx)(`svg`,{className:`sh-accordion__chevron`,viewBox:`0 0 16 16`,fill:`none`,stroke:`currentColor`,strokeWidth:1.75,"aria-hidden":`true`,children:(0,n.jsx)(`path`,{d:`M4 6.5 8 10.5l4-4`,strokeLinecap:`round`,strokeLinejoin:`round`})});function We({value:e,title:t,children:i,disabled:a=!1,className:o,...s}){let{value:c,toggle:l,baseId:u,headingLevel:d}=ze(`AccordionItem`),f=c.includes(e),p=(0,n.jsxs)(`button`,{type:`button`,id:Be(u,e),className:`sh-accordion__trigger`,"aria-expanded":f,"aria-controls":Ve(u,e),disabled:a,onClick:()=>l(e),children:[(0,n.jsx)(`span`,{className:`sh-accordion__title`,children:t}),(0,n.jsx)(Ue,{})]});return(0,n.jsxs)(`div`,{className:[`sh-accordion__item`,f&&`sh-accordion__item--open`,a&&`sh-accordion__item--disabled`,o].filter(Boolean).join(` `),...s,children:[(0,r.createElement)(`h${d}`,{className:`sh-accordion__heading`},p),(0,n.jsx)(`div`,{id:Ve(u,e),className:`sh-accordion__panel`,role:`region`,"aria-labelledby":Be(u,e),children:(0,n.jsx)(`div`,{className:`sh-accordion__panel-inner`,children:(0,n.jsx)(`div`,{className:`sh-accordion__content`,children:i})})})]})}var Ge=(0,r.createContext)(void 0);function Ke(e){let t=(0,r.useContext)(Ge);if(!t)throw Error(`<${e}> must be rendered inside <Stepper>.`);return t}function qe({children:e,activeStep:t=0,orientation:i=`horizontal`,"aria-label":a=`Progress`,className:o,...s}){let c=r.Children.toArray(e).filter(r.isValidElement),l=e=>e<t?`complete`:e===t?`current`:`upcoming`;return(0,n.jsx)(`ol`,{className:[`sh-stepper`,`sh-stepper--${i}`,o].filter(Boolean).join(` `),"aria-label":a,...s,children:c.map((e,t)=>(0,n.jsx)(Ge.Provider,{value:{index:t,isLast:t===c.length-1,status:l(t),orientation:i},children:e},e.key??t))})}var Je=()=>(0,n.jsx)(`svg`,{viewBox:`0 0 16 16`,fill:`none`,stroke:`currentColor`,strokeWidth:2,"aria-hidden":`true`,children:(0,n.jsx)(`path`,{d:`M3.5 8.5l3 3 6-6.5`,strokeLinecap:`round`,strokeLinejoin:`round`})}),Ye=()=>(0,n.jsxs)(`svg`,{viewBox:`0 0 16 16`,fill:`none`,stroke:`currentColor`,strokeWidth:2,"aria-hidden":`true`,children:[(0,n.jsx)(`path`,{d:`M8 4.5v4.5`,strokeLinecap:`round`}),(0,n.jsx)(`circle`,{cx:`8`,cy:`11.6`,r:`0.9`,fill:`currentColor`,stroke:`none`})]});function Xe({title:e,description:t,status:r,icon:i,onClick:a,disabled:o=!1,className:s}){let{index:c,isLast:l,status:u,orientation:d}=Ke(`Step`),f=r??u,p=i??(f===`complete`?(0,n.jsx)(Je,{}):f===`error`?(0,n.jsx)(Ye,{}):c+1),m=(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(`span`,{className:`sh-step__indicator`,children:p}),(0,n.jsxs)(`span`,{className:`sh-step__text`,children:[(0,n.jsx)(`span`,{className:`sh-step__title`,children:e}),t&&(0,n.jsx)(`span`,{className:`sh-step__description`,children:t})]})]});return(0,n.jsxs)(`li`,{className:[`sh-step`,`sh-step--${f}`,`sh-step--${d}`,l&&`sh-step--last`,s].filter(Boolean).join(` `),children:[a?(0,n.jsx)(`button`,{type:`button`,className:`sh-step__body sh-step__body--interactive`,onClick:a,disabled:o,"aria-current":f===`current`?`step`:void 0,children:m}):(0,n.jsx)(`span`,{className:`sh-step__body`,"aria-current":f===`current`?`step`:void 0,children:m}),!l&&(0,n.jsx)(`span`,{className:`sh-step__connector`,"aria-hidden":`true`})]})}var Ze=(0,r.createContext)(void 0);function Qe(e){let t=(0,r.useContext)(Ze);if(!t)throw Error(`<${e}> must be rendered inside <Breadcrumb>.`);return t}var $e=()=>(0,n.jsx)(`svg`,{viewBox:`0 0 16 16`,fill:`none`,stroke:`currentColor`,strokeWidth:1.5,children:(0,n.jsx)(`path`,{d:`M6 3.5 10.5 8 6 12.5`,strokeLinecap:`round`,strokeLinejoin:`round`})});function et({children:e,separator:t=(0,n.jsx)($e,{}),"aria-label":i=`Breadcrumb`,className:a,...o}){let s=r.Children.toArray(e).filter(r.isValidElement);return(0,n.jsx)(`nav`,{className:[`sh-breadcrumb`,a].filter(Boolean).join(` `),"aria-label":i,...o,children:(0,n.jsx)(`ol`,{className:`sh-breadcrumb__list`,children:s.map((e,r)=>(0,n.jsx)(Ze.Provider,{value:{isLast:r===s.length-1,separator:t},children:e},e.key??r))})})}function tt({children:e,href:t,current:r,className:i,...a}){let{isLast:o,separator:s}=Qe(`BreadcrumbItem`),c=r??o;return(0,n.jsxs)(`li`,{className:[`sh-breadcrumb__item`,i].filter(Boolean).join(` `),children:[c?(0,n.jsx)(`span`,{className:`sh-breadcrumb__current`,"aria-current":`page`,children:e}):t?(0,n.jsx)(`a`,{className:`sh-breadcrumb__link`,href:t,...a,children:e}):(0,n.jsx)(`span`,{className:`sh-breadcrumb__text`,children:e}),!o&&(0,n.jsx)(`span`,{className:`sh-breadcrumb__separator`,"aria-hidden":`true`,children:s})]})}var nt=(0,r.createContext)(void 0);function rt(e){let t=(0,r.useContext)(nt);if(!t)throw Error(`<${e}> must be rendered inside <Tabs>.`);return t}var it=(e,t)=>`${e}-tab-${t}`,at=(e,t)=>`${e}-panel-${t}`;function ot({children:e,value:t,defaultValue:i,onChange:a,orientation:o=`horizontal`,activation:s=`automatic`,className:c,...l}){let u=(0,r.useId)(),[d,f]=(0,r.useState)(i),p=t!==void 0,m=p?t:d,h=e=>{p||f(e),a?.(e)},g=[`sh-tabs`,`sh-tabs--${o}`,c].filter(Boolean).join(` `);return(0,n.jsx)(nt.Provider,{value:{value:m,select:h,baseId:u,orientation:o,activation:s},children:(0,n.jsx)(`div`,{className:g,...l,children:e})})}var st=typeof window>`u`?r.useEffect:r.useLayoutEffect;function ct({children:e,className:t,onKeyDown:i,...a}){let{value:o,orientation:s,activation:c,select:l}=rt(`TabList`),u=(0,r.useRef)(null),[d,f]=(0,r.useState)(null),p=s===`vertical`;return st(()=>{let e=u.current;if(!e)return;let t=Array.from(e.querySelectorAll(`[role="tab"]`)).find(e=>e.dataset.value===o);if(!t){f(null);return}let n=()=>{let e=p?t.offsetTop:t.offsetLeft,n=p?t.offsetHeight:t.offsetWidth;f(t=>({offset:e,size:n,animated:t!==null}))};if(n(),typeof ResizeObserver>`u`)return;let r=new ResizeObserver(n);return r.observe(e),r.observe(t),()=>r.disconnect()},[o,p]),(0,n.jsxs)(`div`,{ref:u,className:[`sh-tabs__list`,t].filter(Boolean).join(` `),role:`tablist`,"aria-orientation":s,onKeyDown:e=>{if(i?.(e),e.defaultPrevented||!u.current)return;let t=p?`ArrowDown`:`ArrowRight`;if(![t,p?`ArrowUp`:`ArrowLeft`,`Home`,`End`].includes(e.key))return;let n=Array.from(u.current.querySelectorAll(`[role="tab"]:not([disabled])`));if(n.length===0)return;let r=n.indexOf(document.activeElement),a;a=e.key===`Home`?0:e.key===`End`?n.length-1:r===-1?0:e.key===t?(r+1)%n.length:(r-1+n.length)%n.length;let o=n[a];if(o&&(e.preventDefault(),o.focus(),c===`automatic`)){let e=o.dataset.value;e!==void 0&&l(e)}},...a,children:[e,d&&(0,n.jsx)(`span`,{className:[`sh-tabs__indicator`,d.animated&&`sh-tabs__indicator--animated`].filter(Boolean).join(` `),"aria-hidden":`true`,style:{"--sh-tabs-indicator-offset":`${d.offset}px`,"--sh-tabs-indicator-size":`${d.size}px`}})]})}function lt({value:e,children:t,className:r,disabled:i,onClick:a,...o}){let{value:s,select:c,baseId:l}=rt(`Tab`),u=s===e,d=[`sh-tabs__tab`,u&&`sh-tabs__tab--selected`,r].filter(Boolean).join(` `);return(0,n.jsx)(`button`,{type:`button`,role:`tab`,id:it(l,e),className:d,"data-value":e,"aria-selected":u,"aria-controls":at(l,e),tabIndex:u?0:-1,disabled:i,onClick:t=>{a?.(t),t.defaultPrevented||c(e)},...o,children:t})}function ut({value:e,children:t,keepMounted:r=!1,className:i,...a}){let{value:o,baseId:s}=rt(`TabPanel`),c=o===e;return!c&&!r?null:(0,n.jsx)(`div`,{id:at(s,e),className:[`sh-tabs__panel`,i].filter(Boolean).join(` `),role:`tabpanel`,"aria-labelledby":it(s,e),hidden:!c,tabIndex:0,...a,children:t})}var dt=(0,r.createContext)(void 0);function W(e){let t=(0,r.useContext)(dt);if(!t)throw Error(`<${e}> must be rendered inside <Carousel>.`);return t}var ft=(0,r.createContext)(void 0);function pt(e){let t=(0,r.useContext)(ft);if(t===void 0)throw Error(`<${e}> must be rendered inside <CarouselSlides>.`);return t}var mt=(e,t)=>`${e}-slide-${t}`;function ht(e,t,n){return t<=0?0:n?(Math.trunc(e)%t+t)%t:Math.min(Math.max(Math.trunc(e),0),t-1)}var gt=`(prefers-reduced-motion: reduce)`,_t=()=>typeof window<`u`&&typeof window.matchMedia==`function`;function vt(e){if(!_t())return()=>{};let t=window.matchMedia(gt);return t.addEventListener(`change`,e),()=>t.removeEventListener(`change`,e)}var yt=()=>_t()&&window.matchMedia(gt).matches;function bt(e){return typeof document>`u`?()=>{}:(document.addEventListener(`visibilitychange`,e),()=>document.removeEventListener(`visibilitychange`,e))}var xt=()=>typeof document<`u`&&document.hidden;function St({enabled:e,interval:t,onTick:n}){let[i,a]=(0,r.useState)(!1),[o,s]=(0,r.useState)(!1),c=(0,r.useSyncExternalStore)(vt,yt,()=>!1),l=(0,r.useSyncExternalStore)(bt,xt,()=>!1),u=(0,r.useRef)(n);(0,r.useEffect)(()=>{u.current=n});let d=e&&!i&&!o&&!l&&!c;return(0,r.useEffect)(()=>{if(!d)return;let e=setInterval(()=>u.current(),t);return()=>clearInterval(e)},[d,t]),{pauseProps:{onMouseEnter:()=>a(!0),onMouseLeave:()=>a(!1),onFocus:()=>s(!0),onBlur:e=>{e.currentTarget.contains(e.relatedTarget)||s(!1)}}}}function Ct({children:e,index:t,defaultIndex:i=0,onChange:a,loop:o=!0,autoPlay:s=!1,interval:c=5e3,"aria-label":l,className:u,...d}){let f=(0,r.useId)(),[p,m]=(0,r.useState)(i),[h,g]=(0,r.useState)(0),[_,v]=(0,r.useState)(!1),y=t!==void 0,b=y?t:p,x=h>0?ht(b,h,!1):b,S=s&&!_,C=(e,t=`user`)=>{t===`user`&&s&&v(!0);let n=ht(e,h,o);n!==x&&(y||m(n),a?.(n))},{pauseProps:w}=St({enabled:S&&h>1,interval:c,onTick:()=>C(x+1,`auto`)}),T=[`sh-carousel`,u].filter(Boolean).join(` `);return(0,n.jsx)(dt.Provider,{value:{index:x,count:h,setCount:g,goTo:C,loop:o,baseId:f,autoPlay:s,isPlaying:S,togglePlaying:()=>v(e=>!e)},children:(0,n.jsx)(`section`,{className:T,"aria-roledescription":`carousel`,"aria-label":l,...d,onMouseEnter:e=>{d.onMouseEnter?.(e),w.onMouseEnter(e)},onMouseLeave:e=>{d.onMouseLeave?.(e),w.onMouseLeave(e)},onFocus:e=>{d.onFocus?.(e),w.onFocus(e)},onBlur:e=>{d.onBlur?.(e),w.onBlur(e)},children:e})})}var wt=typeof window>`u`?r.useEffect:r.useLayoutEffect;function Tt({children:e,className:t,onKeyDown:i,...a}){let{index:o,count:s,setCount:c,goTo:l,isPlaying:u}=W(`CarouselSlides`),d=r.Children.toArray(e);return wt(()=>{c(d.length)},[d.length,c]),(0,n.jsx)(`div`,{className:[`sh-carousel__viewport`,t].filter(Boolean).join(` `),"aria-live":u?`off`:`polite`,"aria-atomic":`false`,tabIndex:0,onKeyDown:e=>{if(i?.(e),e.defaultPrevented||s<=1)return;let t={ArrowLeft:o-1,ArrowRight:o+1,Home:0,End:s-1}[e.key];t!==void 0&&(e.preventDefault(),l(t,`user`))},...a,children:(0,n.jsx)(`div`,{className:`sh-carousel__track`,style:{"--sh-carousel-index":o},children:d.map((e,t)=>(0,n.jsx)(ft.Provider,{value:t,children:e},(0,r.isValidElement)(e)?e.key:t))})})}function Et({children:e,className:t,...r}){let{index:i,count:a,baseId:o}=W(`CarouselSlide`),s=pt(`CarouselSlide`),c=s===i,l=[`sh-carousel__slide`,c&&`sh-carousel__slide--current`,t].filter(Boolean).join(` `);return(0,n.jsx)(`div`,{id:mt(o,s),className:l,role:`group`,"aria-roledescription":`slide`,"aria-label":`${s+1} of ${a}`,inert:!c,...r,children:e})}var Dt=({direction:e})=>(0,n.jsx)(`svg`,{viewBox:`0 0 16 16`,fill:`none`,stroke:`currentColor`,strokeWidth:1.75,"aria-hidden":`true`,children:(0,n.jsx)(`path`,{d:e===`left`?`M10 3.5 5.5 8l4.5 4.5`:`M6 3.5 10.5 8 6 12.5`,strokeLinecap:`round`,strokeLinejoin:`round`})});function Ot({direction:e,component:t,defaultLabel:r,children:i,"aria-label":a=r,className:o,disabled:s,onClick:c,...l}){let{index:u,count:d,loop:f,goTo:p}=W(t),m=e===`next`,h=!f&&(m?u>=d-1:u<=0),g=[`sh-carousel__control`,`sh-carousel__control--${e}`,o].filter(Boolean).join(` `);return(0,n.jsx)(`button`,{type:`button`,className:g,"aria-label":a,disabled:s||h||d<=1,onClick:e=>{c?.(e),e.defaultPrevented||p(m?u+1:u-1,`user`)},...l,children:i??(0,n.jsx)(Dt,{direction:m?`right`:`left`})})}function kt(e){return(0,n.jsx)(Ot,{direction:`previous`,component:`CarouselPrevious`,defaultLabel:`Previous slide`,...e})}function At(e){return(0,n.jsx)(Ot,{direction:`next`,component:`CarouselNext`,defaultLabel:`Next slide`,...e})}function jt({"aria-label":e=`Choose slide`,label:t=e=>`Slide ${e+1}`,className:r,...i}){let{index:a,count:o,goTo:s,baseId:c}=W(`CarouselDots`);return o<=1?null:(0,n.jsx)(`div`,{className:[`sh-carousel__dots`,r].filter(Boolean).join(` `),role:`group`,"aria-label":e,...i,children:Array.from({length:o},(e,r)=>{let i=r===a;return(0,n.jsx)(`button`,{type:`button`,className:[`sh-carousel__dot`,i&&`sh-carousel__dot--current`].filter(Boolean).join(` `),"aria-label":t(r),"aria-current":i?`true`:void 0,"aria-controls":mt(c,r),onClick:()=>s(r,`user`)},r)})})}var Mt=()=>(0,n.jsx)(`svg`,{viewBox:`0 0 16 16`,fill:`currentColor`,"aria-hidden":`true`,children:(0,n.jsx)(`path`,{d:`M5.5 3.4a.6.6 0 0 1 .92-.51l6.1 4.1a.6.6 0 0 1 0 1l-6.1 4.1a.6.6 0 0 1-.92-.5Z`})}),Nt=()=>(0,n.jsxs)(`svg`,{viewBox:`0 0 16 16`,fill:`currentColor`,"aria-hidden":`true`,children:[(0,n.jsx)(`rect`,{x:`4`,y:`3`,width:`3`,height:`10`,rx:`1`}),(0,n.jsx)(`rect`,{x:`9`,y:`3`,width:`3`,height:`10`,rx:`1`})]});function Pt({labels:e,className:t,onClick:r,...i}){let{autoPlay:a,isPlaying:o,togglePlaying:s,count:c}=W(`CarouselPlayPause`);if(!a||c<=1)return null;let l={play:`Start slide rotation`,pause:`Stop slide rotation`,...e};return(0,n.jsx)(`button`,{type:`button`,className:[`sh-carousel__play-pause`,t].filter(Boolean).join(` `),"aria-label":o?l.pause:l.play,onClick:e=>{r?.(e),e.defaultPrevented||s()},...i,children:o?(0,n.jsx)(Nt,{}):(0,n.jsx)(Mt,{})})}var Ft=e=>typeof e==`number`?`${e}px`:e;function It({variant:e=`text`,width:t,height:r,lines:i=1,animation:a=`pulse`,className:o,...s}){let c=[`sh-skeleton`,`sh-skeleton--${e}`,`sh-skeleton--${a}`].join(` `),l={width:Ft(t),height:Ft(r??(e===`circular`?t:void 0))};return e===`text`&&i>1?(0,n.jsx)(`div`,{className:[`sh-skeleton-lines`,o].filter(Boolean).join(` `),"aria-hidden":`true`,...s,children:Array.from({length:i},(e,t)=>(0,n.jsx)(`span`,{className:c,style:t===i-1?{...l,width:`60%`}:l},t))}):(0,n.jsx)(`span`,{className:[c,o].filter(Boolean).join(` `),style:l,"aria-hidden":`true`,...s})}var Lt=[`text`,`rectangular`,`circular`],Rt=[`pulse`,`wave`,`none`];function zt({size:e=`md`,label:t=`Loading`,showLabel:i=!1,className:a,...o}){let s=(0,r.useId)(),c=[`sh-spinner`,`sh-spinner--${e}`,i&&`sh-spinner--with-label`,a].filter(Boolean).join(` `);return(0,n.jsxs)(`span`,{className:c,role:`status`,"aria-labelledby":s,...o,children:[(0,n.jsx)(`span`,{className:`sh-spinner__ring`,"aria-hidden":`true`}),(0,n.jsx)(`span`,{id:s,className:i?`sh-spinner__label`:`sh-spinner__label--visually-hidden`,children:t})]})}var Bt=[`sm`,`md`,`lg`];function Vt({value:e,max:t=100,label:i,showValue:a=!1,formatValue:o,size:s=`md`,"aria-label":c,className:l,...u}){let d=(0,r.useId)(),f=e===void 0,p=t>0?t:0,m=f?0:Math.min(Math.max(e,0),p),h=p===0?0:m/p*100,g=o?o(m,p):`${Math.round(h)}%`,_=[`sh-progress`,`sh-progress--${s}`,f&&`sh-progress--indeterminate`,l].filter(Boolean).join(` `);return(0,n.jsxs)(`div`,{className:_,...u,children:[(i||a&&!f)&&(0,n.jsxs)(`span`,{className:`sh-progress__header`,children:[i&&(0,n.jsx)(`span`,{className:`sh-progress__label`,id:d,children:i}),a&&!f&&(0,n.jsx)(`span`,{className:`sh-progress__value`,children:g})]}),(0,n.jsx)(`div`,{className:`sh-progress__track`,role:`progressbar`,"aria-label":i?void 0:c,"aria-labelledby":i?d:void 0,"aria-valuemin":0,"aria-valuemax":p,"aria-valuenow":f?void 0:m,"aria-valuetext":f?void 0:o?g:void 0,children:(0,n.jsx)(`div`,{className:`sh-progress__bar`,style:{"--sh-progress-fill":`${h}%`}})})]})}var Ht=[`sm`,`md`,`lg`],Ut={success:(0,n.jsxs)(`svg`,{viewBox:`0 0 20 20`,fill:`none`,stroke:`currentColor`,strokeWidth:1.6,"aria-hidden":`true`,children:[(0,n.jsx)(`circle`,{cx:`10`,cy:`10`,r:`7.5`}),(0,n.jsx)(`path`,{d:`M6.75 10.25l2.25 2.25 4.25-4.75`,strokeLinecap:`round`,strokeLinejoin:`round`})]}),info:(0,n.jsxs)(`svg`,{viewBox:`0 0 20 20`,fill:`none`,stroke:`currentColor`,strokeWidth:1.6,"aria-hidden":`true`,children:[(0,n.jsx)(`circle`,{cx:`10`,cy:`10`,r:`7.5`}),(0,n.jsx)(`path`,{d:`M10 9v4.5`,strokeLinecap:`round`}),(0,n.jsx)(`circle`,{cx:`10`,cy:`6.4`,r:`0.9`,fill:`currentColor`,stroke:`none`})]}),warning:(0,n.jsxs)(`svg`,{viewBox:`0 0 20 20`,fill:`none`,stroke:`currentColor`,strokeWidth:1.6,"aria-hidden":`true`,children:[(0,n.jsx)(`path`,{d:`M10 2.8 18 16.5H2L10 2.8Z`,strokeLinejoin:`round`}),(0,n.jsx)(`path`,{d:`M10 8v3.5`,strokeLinecap:`round`}),(0,n.jsx)(`circle`,{cx:`10`,cy:`13.9`,r:`0.9`,fill:`currentColor`,stroke:`none`})]}),error:(0,n.jsxs)(`svg`,{viewBox:`0 0 20 20`,fill:`none`,stroke:`currentColor`,strokeWidth:1.6,"aria-hidden":`true`,children:[(0,n.jsx)(`circle`,{cx:`10`,cy:`10`,r:`7.5`}),(0,n.jsx)(`path`,{d:`M7.5 7.5l5 5M12.5 7.5l-5 5`,strokeLinecap:`round`})]})},Wt=()=>(0,n.jsx)(`svg`,{viewBox:`0 0 16 16`,fill:`none`,stroke:`currentColor`,strokeWidth:1.75,"aria-hidden":`true`,children:(0,n.jsx)(`path`,{d:`M4.5 4.5l7 7M11.5 4.5l-7 7`,strokeLinecap:`round`})}),Gt={success:`status`,info:`status`,warning:`alert`,error:`alert`};function Kt({variant:e=`info`,title:t,children:r,icon:i,onDismiss:a,dismissLabel:o=`Dismiss`,role:s,className:c,...l}){let u=[`sh-alert`,`sh-alert--${e}`,c].filter(Boolean).join(` `),d=i===void 0?Ut[e]:i;return(0,n.jsxs)(`div`,{className:u,role:s??Gt[e],...l,children:[d!==!1&&(0,n.jsx)(`span`,{className:`sh-alert__icon`,children:d}),(0,n.jsxs)(`div`,{className:`sh-alert__content`,children:[t&&(0,n.jsx)(`p`,{className:`sh-alert__title`,children:t}),r&&(0,n.jsx)(`div`,{className:`sh-alert__body`,children:r})]}),a&&(0,n.jsx)(`button`,{type:`button`,className:`sh-alert__dismiss`,onClick:a,"aria-label":o,children:(0,n.jsx)(Wt,{})})]})}var qt=[`success`,`info`,`warning`,`error`];function Jt(e,t){if(!t)return!0;let n=t.split(`,`).map(e=>e.trim().toLowerCase()).filter(Boolean);if(n.length===0)return!0;let r=e.name.toLowerCase(),i=e.type.toLowerCase();return n.some(e=>e.startsWith(`.`)?r.endsWith(e):e.endsWith(`/*`)?i.startsWith(e.slice(0,-1)):i===e)}function Yt(e){if(e<1024)return`${e} B`;let t=[`KB`,`MB`,`GB`,`TB`],n=e/1024,r=0;for(;n>=1024&&r<t.length-1;)n/=1024,r+=1;return`${Math.round(n*10)/10} ${t[r]}`}var Xt=()=>(0,n.jsxs)(`svg`,{className:`sh-filedrop__icon`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:1.5,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,children:[(0,n.jsx)(`path`,{d:`M12 16V4m0 0L8 8m4-4 4 4`}),(0,n.jsx)(`path`,{d:`M4 15v3a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-3`})]}),Zt=()=>(0,n.jsx)(`svg`,{viewBox:`0 0 16 16`,fill:`none`,stroke:`currentColor`,strokeWidth:1.75,"aria-hidden":`true`,children:(0,n.jsx)(`path`,{d:`M4.5 4.5l7 7M11.5 4.5l-7 7`,strokeLinecap:`round`})});function Qt({label:e,helperText:t,error:i,placeholder:a=`Drag files here, or click to browse`,accept:o,multiple:s=!1,value:c,defaultValue:l,onChange:u,onReject:d,hideFileList:f=!1,disabled:p=!1,name:m,"aria-label":h,className:g,inputClassName:_}){let v=(0,r.useId)(),y=(0,r.useId)(),[b,x]=(0,r.useState)(l??[]),S=c!==void 0,C=S?c:b,[w,T]=(0,r.useState)(!1),E=(0,r.useRef)(0),D=!!i,O=i??t,k=e=>{S||x(e),u?.(e)},A=e=>{let t=e.filter(e=>Jt(e,o)),n=e.filter(e=>!Jt(e,o));n.length>0&&d?.(n),t.length!==0&&k(s?[...C,...t]:[t[0]])},j=e=>{A(Array.from(e.target.files??[])),e.target.value=``},M=e=>{p||(e.preventDefault(),E.current+=1,T(!0))},N=e=>{p||e.preventDefault()},P=e=>{p||(e.preventDefault(),--E.current,E.current<=0&&(E.current=0,T(!1)))},F=e=>{p||(e.preventDefault(),E.current=0,T(!1),A(Array.from(e.dataTransfer?.files??[])))},I=e=>{k(C.filter((t,n)=>n!==e))},L=[`sh-filedrop`,D&&`sh-filedrop--invalid`,p&&`sh-filedrop--disabled`,w&&`sh-filedrop--dragging`,g].filter(Boolean).join(` `);return(0,n.jsxs)(`div`,{className:L,children:[e&&(0,n.jsx)(`label`,{className:`sh-filedrop__label`,htmlFor:v,children:e}),(0,n.jsxs)(`label`,{className:`sh-filedrop__dropzone`,onDragEnter:M,onDragOver:N,onDragLeave:P,onDrop:F,children:[(0,n.jsx)(`input`,{id:v,type:`file`,className:[`sh-filedrop__input`,_].filter(Boolean).join(` `),accept:o,multiple:s,disabled:p,name:m,onChange:j,"aria-label":e?void 0:h,"aria-invalid":D||void 0,"aria-describedby":O?y:void 0}),(0,n.jsxs)(`span`,{className:`sh-filedrop__prompt`,"aria-hidden":`true`,children:[(0,n.jsx)(Xt,{}),(0,n.jsx)(`span`,{className:`sh-filedrop__placeholder`,children:a}),o&&(0,n.jsx)(`span`,{className:`sh-filedrop__accept`,children:o})]})]}),!f&&C.length>0&&(0,n.jsx)(`ul`,{className:`sh-filedrop__files`,children:C.map((e,t)=>(0,n.jsxs)(`li`,{className:`sh-filedrop__file`,children:[(0,n.jsx)(`span`,{className:`sh-filedrop__file-name`,children:e.name}),(0,n.jsx)(`span`,{className:`sh-filedrop__file-size`,children:Yt(e.size)}),(0,n.jsx)(`button`,{type:`button`,className:`sh-filedrop__file-remove`,onClick:()=>I(t),disabled:p,"aria-label":`Remove ${e.name}`,children:(0,n.jsx)(Zt,{})})]},`${e.name}-${t}`))}),O&&(0,n.jsx)(`span`,{id:y,className:`sh-filedrop__message`,children:O})]})}function $t({label:e,helperText:t,error:i,value:a,defaultValue:o,onChange:s,min:c=0,max:l=100,step:u=1,showValue:d=!1,formatValue:f,className:p,inputClassName:m,id:h,disabled:g,"aria-describedby":_,...v}){let y=(0,r.useId)(),b=h??y,x=`${b}-message`,[S,C]=(0,r.useState)(o??c),w=a!==void 0,T=w?a:S,E=!!i,D=i??t,O=[_,D?x:void 0].filter(Boolean).join(` `)||void 0,k=e=>{let t=Number(e.target.value);w||C(t),s?.(t)},A=l===c?0:(T-c)/(l-c)*100,j=f?f(T):String(T),M=[`sh-range`,E&&`sh-range--invalid`,g&&`sh-range--disabled`,p].filter(Boolean).join(` `);return(0,n.jsxs)(`div`,{className:M,children:[(e||d)&&(0,n.jsxs)(`span`,{className:`sh-range__header`,children:[e&&(0,n.jsx)(`label`,{className:`sh-range__label`,htmlFor:b,children:e}),d&&(0,n.jsx)(`span`,{className:`sh-range__value`,children:j})]}),(0,n.jsx)(`input`,{...v,type:`range`,id:b,className:[`sh-range__input`,m].filter(Boolean).join(` `),style:{"--sh-range-fill":`${A}%`},min:c,max:l,step:u,value:T,disabled:g,onChange:k,"aria-invalid":E||void 0,"aria-describedby":O,"aria-valuetext":f?j:void 0}),D&&(0,n.jsx)(`span`,{id:x,className:`sh-range__message`,children:D})]})}function en({label:e,helperText:t,error:i,value:a,defaultValue:o,onChange:s,min:c=0,max:l=100,step:u=1,minGap:d=0,showValue:f=!1,formatValue:p,name:m,disabled:h=!1,"aria-label":g,className:_}){let v=(0,r.useId)(),y=(0,r.useId)(),[b,x]=(0,r.useState)(o??[c,l]),S=a!==void 0,[C,w]=S?a:b,T=!!i,E=i??t,D=e=>{S||x(e),s?.(e)},O=e=>{D([Math.min(Number(e.target.value),w-d),w])},k=e=>{D([C,Math.max(Number(e.target.value),C+d)])},A=e=>l===c?0:(e-c)/(l-c)*100,j=A(C),M=A(w),N=e=>p?p(e):String(e),P=C>(c+l)/2,F=[`sh-minmax`,T&&`sh-minmax--invalid`,h&&`sh-minmax--disabled`,P&&`sh-minmax--from-on-top`,_].filter(Boolean).join(` `),I=e?void 0:g,L=t=>e||g?`${e??g} ${t}`:t;return(0,n.jsxs)(`div`,{className:F,style:{"--sh-minmax-from":`${j}%`,"--sh-minmax-to":`${M}%`},children:[(e||f)&&(0,n.jsxs)(`span`,{className:`sh-minmax__header`,children:[e&&(0,n.jsx)(`span`,{className:`sh-minmax__label`,id:v,children:e}),f&&(0,n.jsxs)(`span`,{className:`sh-minmax__value`,children:[N(C),` – `,N(w)]})]}),(0,n.jsxs)(`div`,{className:`sh-minmax__rail`,role:`group`,"aria-label":I,"aria-labelledby":e?v:void 0,"aria-describedby":E?y:void 0,"aria-invalid":T||void 0,children:[(0,n.jsx)(`span`,{className:`sh-minmax__track`,"aria-hidden":`true`,children:(0,n.jsx)(`span`,{className:`sh-minmax__fill`})}),(0,n.jsx)(`input`,{type:`range`,className:`sh-minmax__input sh-minmax__input--from`,name:m?`${m}-min`:void 0,min:c,max:l,step:u,value:C,disabled:h,onChange:O,"aria-label":L(`minimum`),"aria-valuetext":p?N(C):void 0}),(0,n.jsx)(`input`,{type:`range`,className:`sh-minmax__input sh-minmax__input--to`,name:m?`${m}-max`:void 0,min:c,max:l,step:u,value:w,disabled:h,onChange:k,"aria-label":L(`maximum`),"aria-valuetext":p?N(w):void 0})]}),E&&(0,n.jsx)(`span`,{id:y,className:`sh-minmax__message`,children:E})]})}var tn=(0,r.createContext)(void 0);function nn({value:e,label:t,labelPosition:i,className:a,inputClassName:o,name:s,checked:c,disabled:l,onChange:u,...d}){let f=(0,r.useContext)(tn),p=s??f?.name,m=f&&e!==void 0?f.value.includes(e):c,h=l??f?.disabled,g=i??f?.labelPosition??`right`,_=t=>{f&&e!==void 0&&f.onToggle(e,t.target.checked),u?.(t)},v=[`sh-switch`,`sh-switch--label-${g}`,h&&`sh-switch--disabled`,a].filter(Boolean).join(` `);return(0,n.jsxs)(`label`,{className:v,children:[(0,n.jsx)(`input`,{...d,type:`checkbox`,role:`switch`,className:[`sh-switch__input`,o].filter(Boolean).join(` `),name:p,value:e,checked:m,disabled:h,onChange:_}),(0,n.jsx)(`span`,{className:`sh-switch__track`,"aria-hidden":`true`,children:(0,n.jsx)(`span`,{className:`sh-switch__thumb`})}),t&&(0,n.jsx)(`span`,{className:`sh-switch__label`,children:t})]})}function rn({children:e,value:t,defaultValue:i,onChange:a,label:o,helperText:s,error:c,name:l,orientation:u=`vertical`,labelPosition:d,disabled:f=!1,"aria-label":p,className:m}){let h=(0,r.useId)(),g=(0,r.useId)(),_=(0,r.useId)(),v=l??h,[y,b]=(0,r.useState)(i??[]),x=t!==void 0,S=x?t:y,C=(e,t)=>{let n=t?[...S,e]:S.filter(t=>t!==e);x||b(n),a?.(n)},w=!!c,T=c??s,E=[`sh-switch-group`,w&&`sh-switch-group--invalid`,m].filter(Boolean).join(` `);return(0,n.jsxs)(`div`,{className:E,children:[o&&(0,n.jsx)(`span`,{className:`sh-switch-group__label`,id:g,children:o}),(0,n.jsx)(`div`,{className:`sh-switch-group__options sh-switch-group__options--${u}`,role:`group`,"aria-label":o?void 0:p,"aria-labelledby":o?g:void 0,"aria-describedby":T?_:void 0,"aria-invalid":w||void 0,children:(0,n.jsx)(tn.Provider,{value:{name:v,value:S,onToggle:C,disabled:f,labelPosition:d},children:e})}),T&&(0,n.jsx)(`span`,{id:_,className:`sh-switch-group__message`,children:T})]})}function an({options:e,value:t,defaultValue:i,onChange:a,label:o,name:s,fullWidth:c=!1,disabled:l=!1,"aria-label":u,className:d}){let f=(0,r.useId)(),p=(0,r.useId)(),m=s??f,[h,g]=(0,r.useState)(i),_=t!==void 0,v=_?t:h,y=e=>{_||g(e),a?.(e)},b=e.findIndex(e=>e.value===v),x=[`sh-segmented`,c&&`sh-segmented--full-width`,l&&`sh-segmented--disabled`,b<0&&`sh-segmented--unselected`,d].filter(Boolean).join(` `),S={"--sh-segmented-count":e.length,"--sh-segmented-index":Math.max(b,0)};return(0,n.jsxs)(`div`,{className:`sh-segmented-field`,children:[o&&(0,n.jsx)(`span`,{className:`sh-segmented__group-label`,id:p,children:o}),(0,n.jsx)(`div`,{className:x,style:S,role:`radiogroup`,"aria-label":o?void 0:u,"aria-labelledby":o?p:void 0,children:e.map(e=>{let t=l||e.disabled;return(0,n.jsxs)(`label`,{className:[`sh-segmented__item`,t&&`sh-segmented__item--disabled`].filter(Boolean).join(` `),children:[(0,n.jsx)(`input`,{className:`sh-segmented__input`,type:`radio`,name:m,value:e.value,checked:v===e.value,disabled:t,onChange:()=>y(e.value)}),(0,n.jsx)(`span`,{className:`sh-segmented__label`,children:e.label})]},e.value)})})]})}function G(e){if(!Number.isFinite(e)||e<0)return`--:--`;let t=Math.floor(e),n=Math.floor(t/3600),r=Math.floor(t%3600/60),i=String(t%60).padStart(2,`0`);return n>0?`${n}:${String(r).padStart(2,`0`)}:${i}`:`${r}:${i}`}var on=()=>(0,n.jsx)(`svg`,{viewBox:`0 0 16 16`,fill:`currentColor`,"aria-hidden":`true`,children:(0,n.jsx)(`path`,{d:`M5.5 3.4a.6.6 0 0 1 .92-.51l6.1 4.1a.6.6 0 0 1 0 1l-6.1 4.1a.6.6 0 0 1-.92-.5Z`})}),sn=()=>(0,n.jsxs)(`svg`,{viewBox:`0 0 16 16`,fill:`currentColor`,"aria-hidden":`true`,children:[(0,n.jsx)(`rect`,{x:`4`,y:`3`,width:`3`,height:`10`,rx:`1`}),(0,n.jsx)(`rect`,{x:`9`,y:`3`,width:`3`,height:`10`,rx:`1`})]}),cn=()=>(0,n.jsxs)(`svg`,{viewBox:`0 0 16 16`,fill:`currentColor`,"aria-hidden":`true`,children:[(0,n.jsx)(`rect`,{x:`3`,y:`3.5`,width:`1.6`,height:`9`,rx:`0.8`}),(0,n.jsx)(`path`,{d:`M12.5 3.9a.6.6 0 0 0-.92-.5L6 7.5a.6.6 0 0 0 0 1l5.58 4.1a.6.6 0 0 0 .92-.5Z`})]}),ln=()=>(0,n.jsxs)(`svg`,{viewBox:`0 0 16 16`,fill:`currentColor`,"aria-hidden":`true`,children:[(0,n.jsx)(`rect`,{x:`11.4`,y:`3.5`,width:`1.6`,height:`9`,rx:`0.8`}),(0,n.jsx)(`path`,{d:`M3.5 3.9a.6.6 0 0 1 .92-.5L10 7.5a.6.6 0 0 1 0 1l-5.58 4.1a.6.6 0 0 1-.92-.5Z`})]}),un=()=>(0,n.jsxs)(`svg`,{viewBox:`0 0 16 16`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,children:[(0,n.jsx)(`path`,{d:`M2.5 6h2l3-2.5v9L4.5 10h-2Z`,fill:`currentColor`}),(0,n.jsx)(`path`,{d:`M10.5 5.5a3.5 3.5 0 0 1 0 5`}),(0,n.jsx)(`path`,{d:`M12.5 3.5a6.3 6.3 0 0 1 0 9`})]}),dn=()=>(0,n.jsxs)(`svg`,{viewBox:`0 0 16 16`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,children:[(0,n.jsx)(`path`,{d:`M2.5 6h2l3-2.5v9L4.5 10h-2Z`,fill:`currentColor`}),(0,n.jsx)(`path`,{d:`m10.5 6 4 4M14.5 6l-4 4`})]}),fn={play:`Play`,pause:`Pause`,previous:`Previous track`,next:`Next track`,seek:`Seek`,mute:`Mute`,unmute:`Unmute`,volume:`Volume`,error:`This audio couldn't be loaded.`};function K(e,t){return n=>{e?.(n),t(n)}}function pn({src:e,title:t,subtitle:i,hideVolume:a=!1,defaultVolume:o=1,labels:s,onPrevious:c,onNext:l,actions:u,className:d,ref:f,onPlay:p,onPause:m,onEnded:h,onTimeUpdate:g,onLoadedMetadata:_,onDurationChange:v,onVolumeChange:y,onError:b,...x}){let S={...fn,...s},C=(0,r.useRef)(null),[w,T]=(0,r.useState)(!1),[E,D]=(0,r.useState)(0),[O,k]=(0,r.useState)(NaN),[A,j]=(0,r.useState)(o),[M,N]=(0,r.useState)(!!x.muted),[P,F]=(0,r.useState)(!1),[I,L]=(0,r.useState)(e);e!==I&&(L(e),T(!1),D(0),k(NaN),F(!1));let R=(0,r.useCallback)(e=>{if(C.current=e,e&&(e.volume=o),typeof f==`function`)return f(e);f&&(f.current=e)},[f]),z=Number.isFinite(O)&&O>0,B=()=>{let e=C.current;e&&(e.paused?e.play()?.catch(()=>{}):e.pause())},V=e=>{let t=C.current;t&&(t.currentTime=e,D(e))},ee=e=>{let t=C.current;if(!t)return;let n=e/100;t.volume=n,n>0&&t.muted&&(t.muted=!1),j(n),N(t.muted)},te=()=>{let e=C.current;e&&(e.muted=!e.muted,N(e.muted))},H=e=>{k(e.currentTarget.duration),F(!1)},ne=[`sh-audio`,w&&`sh-audio--playing`,P&&`sh-audio--error`,d].filter(Boolean).join(` `),re=Math.round((M?0:A)*100);return(0,n.jsxs)(`div`,{className:ne,role:`group`,"aria-label":typeof t==`string`?t:`Audio player`,children:[(0,n.jsx)(`audio`,{...x,ref:R,src:e,className:`sh-audio__media`,onPlay:K(p,()=>T(!0)),onPause:K(m,()=>T(!1)),onEnded:K(h,()=>T(!1)),onTimeUpdate:K(g,e=>D(e.currentTarget.currentTime)),onLoadedMetadata:K(_,H),onDurationChange:K(v,H),onVolumeChange:K(y,e=>{j(e.currentTarget.volume),N(e.currentTarget.muted)}),onError:K(b,()=>{F(!0),T(!1)})}),(0,n.jsxs)(`div`,{className:`sh-audio__transport`,children:[c&&(0,n.jsx)(`button`,{type:`button`,className:`sh-audio__skip`,"aria-label":S.previous,onClick:c,children:(0,n.jsx)(cn,{})}),(0,n.jsx)(`button`,{type:`button`,className:`sh-audio__play`,"aria-label":w?S.pause:S.play,onClick:B,disabled:P,children:w?(0,n.jsx)(sn,{}):(0,n.jsx)(on,{})}),l&&(0,n.jsx)(`button`,{type:`button`,className:`sh-audio__skip`,"aria-label":S.next,onClick:l,children:(0,n.jsx)(ln,{})})]}),(0,n.jsxs)(`div`,{className:`sh-audio__body`,children:[(t||i)&&(0,n.jsxs)(`div`,{className:`sh-audio__meta`,children:[t&&(0,n.jsx)(`span`,{className:`sh-audio__title`,children:t}),i&&(0,n.jsx)(`span`,{className:`sh-audio__subtitle`,children:i})]}),P?(0,n.jsx)(`span`,{className:`sh-audio__error`,role:`alert`,children:S.error}):(0,n.jsxs)(`div`,{className:`sh-audio__controls`,children:[(0,n.jsx)(`span`,{className:`sh-audio__time`,children:G(E)}),(0,n.jsx)($t,{"aria-label":S.seek,className:`sh-audio__seek`,min:0,max:z?O:0,step:.1,value:z?Math.min(E,O):0,onChange:V,disabled:!z,formatValue:e=>`${G(e)} of ${G(O)}`}),(0,n.jsx)(`span`,{className:`sh-audio__time`,children:G(O)}),u,!a&&(0,n.jsxs)(`div`,{className:`sh-audio__volume`,children:[(0,n.jsx)(`button`,{type:`button`,className:`sh-audio__mute`,"aria-label":M?S.unmute:S.mute,"aria-pressed":M,onClick:te,children:M||A===0?(0,n.jsx)(dn,{}):(0,n.jsx)(un,{})}),(0,n.jsx)($t,{"aria-label":S.volume,className:`sh-audio__volume-slider`,min:0,max:100,step:5,value:re,onChange:ee,formatValue:e=>`${e}%`})]})]})]})]})}var q=[`sequential`,`repeat-all`,`repeat-one`,`shuffle`];function mn(e,t,n=Math.random){let r=Array.from({length:e},(e,t)=>t).filter(e=>e!==t);for(let e=r.length-1;e>0;e--){let t=Math.floor(n()*(e+1));[r[e],r[t]]=[r[t],r[e]]}return e>0?[t,...r]:[]}function hn({index:e,count:t,order:n,random:r}){return n&&n.length===t&&n.includes(e)?[...n]:mn(t,e,r)}function J(e,t){let{index:n,count:r,mode:i,random:a}=e;if(r===0)return{index:null,order:[]};if(i===`shuffle`){let t=hn(e),i=t.indexOf(n);if(i<t.length-1)return{index:t[i+1],order:t};let o=Math.floor((a??Math.random)()*(r-1)),s=mn(r,r>1?(n+1+o)%r:n,a);return{index:s[0],order:s}}let o=e.order?[...e.order]:[];if(t===`ended`){if(i===`repeat-one`)return{index:n,order:o};if(i===`sequential`&&n>=r-1)return{index:null,order:o}}return{index:(n+1)%r,order:o}}function gn(e){let{index:t,count:n,mode:r}=e;if(n===0)return{index:null,order:[]};if(r===`shuffle`){let n=hn(e),r=n.indexOf(t);return{index:n[Math.max(r-1,0)],order:n}}return{index:(t-1+n)%n,order:e.order?[...e.order]:[]}}var Y={viewBox:`0 0 16 16`,fill:`none`,stroke:`currentColor`,strokeWidth:1.5,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":!0},_n={sequential:(0,n.jsx)(`svg`,{...Y,children:(0,n.jsx)(`path`,{d:`M2.5 4.5h8M2.5 8h8M2.5 11.5h5M11 10l2 1.5-2 1.5`})}),"repeat-all":(0,n.jsx)(`svg`,{...Y,children:(0,n.jsx)(`path`,{d:`M3 7V6a2 2 0 0 1 2-2h7.5M10.5 2l2 2-2 2M13 9v1a2 2 0 0 1-2 2H3.5M5.5 14l-2-2 2-2`})}),"repeat-one":(0,n.jsxs)(`svg`,{...Y,children:[(0,n.jsx)(`path`,{d:`M3 7V6a2 2 0 0 1 2-2h7.5M10.5 2l2 2-2 2M13 9v1a2 2 0 0 1-2 2H3.5M5.5 14l-2-2 2-2`}),(0,n.jsx)(`path`,{d:`M7.5 7.5 8.5 7v3`,strokeWidth:`1.3`})]}),shuffle:(0,n.jsx)(`svg`,{...Y,children:(0,n.jsx)(`path`,{d:`M2.5 4.5h2c3 0 4 7 7 7h2M2.5 11.5h2c1.2 0 2-1 2.6-2.2M9 6.7c.6-1.2 1.4-2.2 2.5-2.2h2M12 3l1.5 1.5L12 6M12 10l1.5 1.5L12 13`})})},vn=()=>(0,n.jsxs)(`span`,{className:`sh-playlist__equalizer`,"aria-hidden":`true`,children:[(0,n.jsx)(`span`,{}),(0,n.jsx)(`span`,{}),(0,n.jsx)(`span`,{})]}),yn={sequential:`In order`,"repeat-all":`Repeat all`,"repeat-one":`Repeat one`,shuffle:`Shuffle`},bn=3;function xn({tracks:e,label:t=`Playlist`,trackIndex:i,defaultTrackIndex:a=0,onTrackChange:o,playMode:s,defaultPlayMode:c=`sequential`,onPlayModeChange:l,hideTrackList:u=!1,hideVolume:d,defaultVolume:f,labels:p,className:m,ref:h}){let g={...yn,...p?.modes},_=p?.playMode??`Play mode`,v=p?.tracks??`Tracks`,[y,b]=(0,r.useState)(a),[x,S]=(0,r.useState)(c),C=e.length,w=Math.min(Math.max(i??y,0),Math.max(C-1,0)),T=s??x,E=(0,r.useRef)(null),D=(0,r.useRef)([]),O=(0,r.useRef)(!1),[k,A]=(0,r.useState)(!1),[j,M]=(0,r.useState)(w);w!==j&&(M(w),A(!1));let N=(0,r.useCallback)(e=>{if(E.current=e,typeof h==`function`)return h(e);h&&(h.current=e)},[h]);if((0,r.useEffect)(()=>{O.current&&(O.current=!1,E.current?.play()?.catch(()=>{}))},[w]),C===0)return null;let P=e[w],F=()=>E.current?.paused??!0,I=(e,t)=>{let n=E.current;if(e===w){n&&(n.currentTime=0),t&&n?.play()?.catch(()=>{});return}O.current=t,i===void 0&&b(e),o?.(e)},L=({index:e,order:t},n)=>{D.current=t,e!==null&&I(e,n)},R=()=>({index:w,count:C,mode:T,order:D.current}),z=()=>L(J(R(),`next`),!F()),B=()=>{let e=E.current;if(e&&e.currentTime>bn){e.currentTime=0;return}L(gn(R()),!F())},V=()=>L(J(R(),`ended`),!0),ee=()=>{let e=q[(q.indexOf(T)+1)%q.length];s===void 0&&S(e),l?.(e)},te=e=>{let t=E.current;if(e!==w)return I(e,!0);t?.paused?t.play()?.catch(()=>{}):t?.pause()},H=(0,n.jsx)(`button`,{type:`button`,className:[`sh-playlist__mode`,T!==`sequential`&&`sh-playlist__mode--active`].filter(Boolean).join(` `),"aria-label":`${_}: ${g[T]}`,onClick:ee,children:_n[T]});return(0,n.jsxs)(`div`,{className:[`sh-playlist`,m].filter(Boolean).join(` `),role:`group`,"aria-label":t,children:[(0,n.jsx)(pn,{ref:N,src:P.src,title:P.title,subtitle:P.subtitle,hideVolume:d,defaultVolume:f,labels:p,loop:T===`repeat-one`,onPrevious:B,onNext:z,onEnded:V,onPlay:()=>A(!0),onPause:()=>A(!1),actions:H}),!u&&(0,n.jsx)(`ol`,{className:`sh-playlist__tracks`,"aria-label":v,children:e.map((e,t)=>{let r=t===w;return(0,n.jsx)(`li`,{children:(0,n.jsxs)(`button`,{type:`button`,className:`sh-playlist__track`,"aria-current":r||void 0,onClick:()=>te(t),children:[(0,n.jsx)(`span`,{className:`sh-playlist__marker`,children:r&&k?(0,n.jsx)(vn,{}):t+1}),(0,n.jsxs)(`span`,{className:`sh-playlist__text`,children:[(0,n.jsx)(`span`,{className:`sh-playlist__title`,children:e.title}),e.subtitle&&(0,n.jsx)(`span`,{className:`sh-playlist__subtitle`,children:e.subtitle})]}),e.duration!==void 0&&(0,n.jsx)(`span`,{className:`sh-playlist__duration`,children:G(e.duration)})]})},e.id??`${t}-${e.src}`)})})]})}var Sn=t({accent:()=>X,accentFill:()=>$,colorVar:()=>En,danger:()=>Q,neutral:()=>Z,palette:()=>Cn,paletteVar:()=>Dn,semanticColors:()=>Tn}),X={50:`#f6f0ff`,100:`#ece0ff`,200:`#d9c2ff`,300:`#c19dff`,400:`#a672ff`,500:`#8b47fa`,600:`#7429e0`,700:`#5d1fb8`,800:`#461890`,900:`#331269`,950:`#1f0b40`},Z={0:`#ffffff`,50:`#f8f7fa`,100:`#efedf3`,200:`#e2dfe8`,300:`#cac6d3`,400:`#a29cae`,500:`#79728a`,600:`#5a5468`,700:`#423d4d`,800:`#2c2836`,900:`#1a1720`,950:`#0d0b12`},Q={50:`#fef3f2`,100:`#fee4e2`,200:`#fecdca`,300:`#fda29b`,400:`#f97066`,500:`#f04438`,600:`#d92d20`,700:`#b42318`,800:`#912018`,900:`#7a271a`,950:`#55160c`},Cn={accent:X,neutral:Z,danger:Q},$={bg:X[700],text:X[100]},wn={"accent-fill-bg":$.bg,"accent-fill-text":$.text},Tn={light:{"bg-canvas":Z[0],"bg-surface":Z[50],"bg-subtle":Z[100],text:Z[900],"text-subtle":Z[600],"text-inverse":Z[0],border:Z[200],"border-strong":Z[300],accent:X[600],"accent-hover":X[700],"accent-subtle-bg":X[50],"accent-subtle-text":X[700],...wn,danger:Q[700],"danger-border":Q[500],scrim:`rgb(0 0 0 / 0.45)`,"accent-tint-1":X[50],"accent-tint-2":X[100],"accent-tint-3":X[200],"accent-tint-4":X[300],"accent-on-tint":X[900]},dark:{"bg-canvas":Z[950],"bg-surface":Z[900],"bg-subtle":Z[800],text:Z[50],"text-subtle":Z[400],"text-inverse":Z[950],border:Z[700],"border-strong":Z[600],accent:X[400],"accent-hover":X[300],"accent-subtle-bg":X[900],"accent-subtle-text":X[200],...wn,danger:Q[300],"danger-border":Q[400],scrim:`rgb(0 0 0 / 0.65)`,"accent-tint-1":X[950],"accent-tint-2":X[900],"accent-tint-3":X[800],"accent-tint-4":X[700],"accent-on-tint":X[100]}};function En(e){return`var(--color-${e})`}function Dn(e,t){return`var(--color-${e}-${String(t)})`}exports.Accordion=He,exports.AccordionItem=We,exports.Alert=Kt,exports.AudioPlayer=pn,exports.AudioPlaylist=xn,exports.Avatar=E,exports.AvatarGroup=D,exports.Breadcrumb=et,exports.BreadcrumbItem=tt,exports.Button=d,exports.Carousel=Ct,exports.CarouselDots=jt,exports.CarouselNext=At,exports.CarouselPlayPause=Pt,exports.CarouselPrevious=kt,exports.CarouselSlide=Et,exports.CarouselSlides=Tt,exports.Checkbox=De,exports.CheckboxGroup=Oe,exports.Chip=b,exports.CodeBlock=ne,exports.Dialog=ce,exports.Drawer=fe,exports.Dropdown=I,exports.DropdownItem=z,exports.DropdownMenu=R,exports.DropdownSeparator=B,exports.DropdownTrigger=L,exports.EmptyState=h,exports.FileDrop=Qt,exports.Input=k,exports.InputOtp=N,exports.MinMaxSlider=en,exports.Pagination=Le,exports.ProgressBar=Vt,exports.Radio=Ae,exports.RadioGroup=je,exports.RangeSlider=$t,exports.SegmentedControl=an,exports.Select=we,exports.Skeleton=It,exports.Spinner=zt,exports.Step=Xe,exports.Stepper=qe,exports.Switch=nn,exports.SwitchGroup=rn,exports.Tab=lt,exports.TabList=ct,exports.TabPanel=ut,exports.Tabs=ot,exports.Tag=g,exports.Text=l,exports.Textarea=Te,exports.Tooltip=xe,exports.accentFill=$,exports.alertVariants=qt,exports.avatarSizes=O,exports.buttonClassNames=u,exports.buttonSizes=p,exports.buttonVariants=f,exports.chipActions=S,exports.chipVariants=x,Object.defineProperty(exports,"colorTokens",{enumerable:!0,get:function(){return Sn}}),exports.colorVar=En,exports.createShuffleOrder=mn,exports.dedentCode=V,exports.dialogRoles=ue,exports.dialogSizes=le,exports.drawerSides=pe,exports.drawerSizes=me,exports.formatAudioTime=G,exports.formatFileSize=Yt,exports.getNextTrack=J,exports.getPaginationRange=Ne,exports.getPreviousTrack=gn,exports.isFileAccepted=Jt,exports.otpTypes=A,exports.palette=Cn,exports.paletteVar=Dn,exports.playModes=q,exports.progressBarSizes=Ht,exports.resolveTooltipPlacement=ve,exports.sanitizeOtpValue=M,exports.semanticColors=Tn,exports.skeletonAnimations=Rt,exports.skeletonVariants=Lt,exports.spinnerSizes=Bt,exports.tagVariants=_,exports.textColors=o,exports.textVariants=a,exports.textWeights=s;
7
7
  //# sourceMappingURL=sonahang-ui.cjs.map