@elevenlabs/convai-widget-core 0.0.7 → 0.0.9

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/dist/index.js CHANGED
@@ -1,18 +1,18 @@
1
- var $o = Object.defineProperty;
2
- var Uo = (e, t, n) => t in e ? $o(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
- var J = (e, t, n) => Uo(e, typeof t != "symbol" ? t + "" : t, n);
4
- import Ho from "preact-custom-element";
5
- import { jsx as h, jsxs as I, Fragment as wt } from "preact/jsx-runtime";
1
+ var Ho = Object.defineProperty;
2
+ var jo = (e, t, n) => t in e ? Ho(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
+ var J = (e, t, n) => jo(e, typeof t != "symbol" ? t + "" : t, n);
4
+ import Yo from "preact-custom-element";
5
+ import { jsx as h, jsxs as P, Fragment as wt } from "preact/jsx-runtime";
6
6
  import * as u from "preact/compat";
7
- import Ne, { memo as ir, useContext as jo, createContext as pe, useMemo as Re, useRef as we, useEffect as Oe, useState as be, useCallback as Te, forwardRef as Yo, useLayoutEffect as Xo } from "preact/compat";
8
- import { signal as le, computed as xe, useComputed as X, useSignal as ue, useSignalEffect as ze } from "@preact/signals";
9
- import { Conversation as Ko } from "@elevenlabs/client";
7
+ import _e, { useContext as Xo, createContext as pe, useMemo as Re, useRef as we, useEffect as Oe, memo as sr, useState as be, useCallback as Te, forwardRef as Ko, useLayoutEffect as Go } from "preact/compat";
8
+ import { signal as le, computed as xe, useSignal as ue, useComputed as Y, useSignalEffect as ze } from "@preact/signals";
9
+ import { Conversation as Zo } from "@elevenlabs/client";
10
10
  import { clsx as j } from "clsx";
11
- import { jsx as k, jsxs as It, Fragment as gn } from "preact/compat/jsx-runtime";
11
+ import { jsx as k, jsxs as _t, Fragment as mn } from "preact/compat/jsx-runtime";
12
12
  function Qe(e) {
13
13
  return e ? e === "true" ? !0 : e === "false" ? !1 : null : null;
14
14
  }
15
- const nn = [
15
+ const rn = [
16
16
  "variant",
17
17
  "placement",
18
18
  "override-config",
@@ -35,37 +35,133 @@ const nn = [
35
35
  "transcript",
36
36
  "text-input",
37
37
  "text-contents"
38
- ], Go = '@import"https://fonts.googleapis.com/css2?family=Inter:wght@400,500&display=swap";*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:currentColor}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.pointer-events-auto{pointer-events:auto}.\\!visible{visibility:visible!important}.visible{visibility:visible}.collapse{visibility:collapse}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{top:0;right:0;bottom:0;left:0}.-bottom-3{bottom:-12px}.bottom-0{bottom:0}.bottom-20{bottom:80px}.left-0{left:0}.left-1\\/2{left:50%}.left-4{left:16px}.right-0{right:0}.top-0{top:0}.top-1\\/2{top:50%}.top-20{top:80px}.top-4{top:16px}.z-1{z-index:1}.z-10{z-index:10}.m-1{margin:4px}.-mx-0\\.5{margin-left:-2px;margin-right:-2px}.mx-1{margin-left:4px;margin-right:4px}.-mr-1\\.5{margin-right:-6px}.ml-auto{margin-left:auto}.mt-2{margin-top:8px}.block{display:block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.hidden{display:none}.h-11{height:44px}.h-16{height:64px}.h-4{height:16px}.h-48{height:192px}.h-5{height:20px}.h-6{height:24px}.h-9{height:36px}.h-\\[calc\\(100\\%-80px\\)\\]{height:calc(100% - 80px)}.h-full{height:100%}.h-screen{height:100vh}.max-h-\\[550px\\]{max-height:550px}.max-h-\\[8lh\\]{max-height:8lh}.max-h-\\[min\\(384px\\,var\\(--radix-select-content-available-height\\)\\)\\]{max-height:min(384px,var(--radix-select-content-available-height))}.min-h-min{min-height:-moz-min-content;min-height:min-content}.w-16{width:64px}.w-4{width:16px}.w-48{width:192px}.w-5{width:20px}.w-6{width:24px}.w-64{width:256px}.w-9{width:36px}.w-full{width:100%}.w-screen{width:100vw}.\\!min-w-60{min-width:240px!important}.min-w-0{min-width:0px}.min-w-60{min-width:240px}.min-w-9{min-width:36px}.min-w-\\[var\\(--radix-select-trigger-width\\)\\]{min-width:var(--radix-select-trigger-width)}.min-w-max{min-width:-moz-max-content;min-width:max-content}.min-w-min{min-width:-moz-min-content;min-width:min-content}.max-w-64{max-width:256px}.max-w-\\[400px\\]{max-width:400px}.shrink-0{flex-shrink:0}.grow{flex-grow:1}.origin-bottom{transform-origin:bottom}.origin-bottom-left{transform-origin:bottom left}.origin-bottom-right{transform-origin:bottom right}.origin-top{transform-origin:top}.origin-top-left{transform-origin:top left}.origin-top-right{transform-origin:top right}.-translate-x-1\\/2{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-\\[calc\\(var\\(--el-overlay-padding\\)\\)\\]{--tw-translate-y: calc(calc(var(--el-overlay-padding)) * -1);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-1\\/2{--tw-translate-y: 50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-\\[calc\\(var\\(--el-overlay-padding\\)\\)\\]{--tw-translate-y: calc(var(--el-overlay-padding));transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-full{--tw-translate-y: 100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-rotate-180{--tw-rotate: -180deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-100{--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-150{--tw-scale-x: 1.5;--tw-scale-y: 1.5;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-75{--tw-scale-x: .75;--tw-scale-y: .75;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-90{--tw-scale-x: .9;--tw-scale-y: .9;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-\\[0\\.333\\]{--tw-scale-x: .333;--tw-scale-y: .333;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize-none{resize:none}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.gap-1{gap:4px}.gap-2{gap:8px}.gap-2\\.5{gap:10px}.gap-3{gap:12px}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.overflow-x-hidden{overflow-x:hidden}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-nowrap{white-space:nowrap}.break-all{word-break:break-all}.rounded-\\[calc\\(var\\(--el-button-radius\\)\\+4px\\)\\]{border-radius:calc(var(--el-button-radius) + 4px)}.rounded-bubble{border-radius:var(--el-bubble-radius)}.rounded-button{border-radius:var(--el-button-radius)}.rounded-compact-sheet{border-radius:var(--el-compact-sheet-radius)}.rounded-dropdown-sheet{border-radius:var(--el-dropdown-sheet-radius)}.rounded-full{border-radius:9999px}.rounded-input{border-radius:var(--el-input-radius)}.rounded-sheet{border-radius:var(--el-sheet-radius)}.rounded-bl-\\[calc\\(var\\(--el-bubble-radius\\)\\/3\\)\\]{border-bottom-left-radius:calc(var(--el-bubble-radius) / 3)}.border{border-width:1px}.border-accent{border-color:var(--el-accent)}.border-base-border{border-color:var(--el-base-border)}.bg-accent{background-color:var(--el-accent)}.bg-base{background-color:var(--el-base)}.bg-base-active{background-color:var(--el-base-active)}.bg-base-border{background-color:var(--el-base-border)}.bg-base-hover{background-color:var(--el-base-hover)}.bg-cover{background-size:cover}.object-cover{-o-object-fit:cover;object-fit:cover}.p-1{padding:4px}.p-1\\.5{padding:6px}.p-2{padding:8px}.p-3{padding:12px}.p-4{padding:16px}.px-1{padding-left:4px;padding-right:4px}.px-1\\.5{padding-left:6px;padding-right:6px}.px-2{padding-left:8px;padding-right:8px}.px-2\\.5{padding-left:10px;padding-right:10px}.px-3{padding-left:12px;padding-right:12px}.px-4{padding-left:16px;padding-right:16px}.px-8{padding-left:32px;padding-right:32px}.py-1\\.5{padding-top:6px;padding-bottom:6px}.py-2\\.5{padding-top:10px;padding-bottom:10px}.py-\\[calc\\(theme\\(spacing\\.2\\)-1px\\)\\]{padding-top:7px;padding-bottom:7px}.pb-1{padding-bottom:4px}.pb-3{padding-bottom:12px}.pl-16{padding-left:64px}.pr-16{padding-right:64px}.pr-3{padding-right:12px}.pt-1{padding-top:4px}.text-center{text-align:center}.text-\\[10px\\]{font-size:10px}.text-lg{font-size:18px;line-height:26px}.text-md{font-size:16px;line-height:24px}.text-sm{font-size:14px;line-height:20px}.text-xs{font-size:12px;line-height:16px}.font-medium{font-weight:500}.text-accent-primary{color:var(--el-accent-primary)}.text-base-error{color:var(--el-base-error)}.text-base-primary{color:var(--el-base-primary)}.text-base-subtle{color:var(--el-base-subtle)}.underline{text-decoration-line:underline}.opacity-0{opacity:0}.opacity-30{opacity:.3}.shadow-lg{--tw-shadow: 0 2px 40px 1px rgba(0, 0, 0, .12);--tw-shadow-colored: 0 2px 40px 1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 2px 24px 1px rgba(0, 0, 0, .16);--tw-shadow-colored: 0 2px 24px 1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\\[border-radius\\]{transition-property:border-radius;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\\[margin\\]{transition-property:margin;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\\[opacity\\,transform\\]{transition-property:opacity,transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\\[opacity\\,width\\,height\\,transform\\,flex-grow\\]{transition-property:opacity,width,height,transform,flex-grow;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\\[transform\\,left\\,top\\]{transition-property:transform,left,top;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\\[transform\\,opacity\\]{transition-property:transform,opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-200{transition-duration:.2s}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.overlay{position:absolute;inset:var(--el-overlay-padding);right:calc(var(--el-overlay-padding) + var(--removed-body-scroll-bar-size, 0px))}.focus-ring{--tw-ring-color: var(--el-accent);--tw-ring-offset-width: 2px;--tw-ring-offset-color: var(--el-base)}.focus-ring:focus-visible{outline:2px solid transparent;outline-offset:2px;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.animate-text{background-image:linear-gradient(75deg,var(--el-base-primary),var(--el-base-subtle),var(--el-base-primary),var(--el-base-subtle));background-size:300% 100%;-webkit-background-clip:text;background-clip:text;color:transparent;animation:TextAnimation 2s linear infinite}@keyframes TextAnimation{0%{background-position:0 0}to{background-position:100% 0}}.\\!terms h6,.terms h6{font-size:12px;line-height:16px;font-weight:500;color:var(--el-base-primary)}.\\!terms h5,.terms h5{font-size:14px;line-height:20px;font-weight:500;color:var(--el-base-primary)}.\\!terms h4,.terms h4{font-size:16px;line-height:24px;font-weight:500;color:var(--el-base-primary)}.\\!terms h3,.terms h3{font-size:18px;line-height:26px;font-weight:500;color:var(--el-base-primary)}.\\!terms h2,.terms h2{font-size:20px;line-height:28px;font-weight:500;color:var(--el-base-primary)}.\\!terms h2,.terms h2{font-size:24px;line-height:30px;font-weight:500;color:var(--el-base-primary)}.\\[field-sizing\\:content\\]{field-sizing:content}.\\[line-height\\:var\\(--el-overlay-padding\\)\\]{line-height:var(--el-overlay-padding)}.\\[overflow-wrap\\:break-word\\]{overflow-wrap:break-word}:host,:root{--el-base: #ffffff;--el-base-hover: #f9fafb;--el-base-active: #f3f4f6;--el-base-border: #e5e7eb;--el-base-subtle: #6b7280;--el-base-primary: #000000;--el-base-error: #ef4444;--el-accent: #000000;--el-accent-hover: #1f2937;--el-accent-active: #374151;--el-accent-border: #4b5563;--el-accent-subtle: #6b7280;--el-accent-primary: #ffffff;--el-overlay-padding: 32px;--el-button-radius: 18px;--el-input-radius: 10px;--el-bubble-radius: 15px;--el-sheet-radius: calc(var(--el-button-radius) + 6px);--el-compact-sheet-radius: calc(var(--el-button-radius) + 12px);--el-dropdown-sheet-radius: calc(var(--el-input-radius) + 6px)}.dev-host,:host{pointer-events:none;position:fixed;top:0;right:0;bottom:0;left:0;z-index:1000;font-size:16px;line-height:24px;color:var(--el-base-primary);font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;scrollbar-color:#e5e7eb transparent}.placeholder\\:text-base-subtle::-moz-placeholder{color:var(--el-base-subtle)}.placeholder\\:text-base-subtle::placeholder{color:var(--el-base-subtle)}.hover\\:border-accent-hover:hover{border-color:var(--el-accent-hover)}.hover\\:bg-accent-hover:hover{background-color:var(--el-accent-hover)}.hover\\:bg-base-hover:hover{background-color:var(--el-base-hover)}.hover\\:opacity-50:hover{opacity:.5}.focus-visible\\:underline-offset-2:focus-visible{text-underline-offset:2px}.focus-visible\\:opacity-100:focus-visible{opacity:1}.focus-visible\\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.active\\:border-accent-active:active{border-color:var(--el-accent-active)}.active\\:bg-accent-active:active{background-color:var(--el-accent-active)}.active\\:bg-base-active:active{background-color:var(--el-base-active)}.data-hidden\\:-translate-y-4[data-shown=false]{--tw-translate-y: -16px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-hidden\\:translate-y-2[data-shown=false]{--tw-translate-y: 8px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-hidden\\:scale-100[data-shown=false]{--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-hidden\\:scale-75[data-shown=false]{--tw-scale-x: .75;--tw-scale-y: .75;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-hidden\\:scale-90[data-shown=false]{--tw-scale-x: .9;--tw-scale-y: .9;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-hidden\\:opacity-0[data-shown=false]{opacity:0}.data-\\[highlighted\\]\\:bg-base-active[data-highlighted]{background-color:var(--el-base-active)}', Zo = ir(function() {
39
- return /* @__PURE__ */ h("style", { children: Go });
40
- });
38
+ ], qo = '@import"https://fonts.googleapis.com/css2?family=Inter:wght@400,500&display=swap";*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:currentColor}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.pointer-events-auto{pointer-events:auto}.\\!visible{visibility:visible!important}.visible{visibility:visible}.collapse{visibility:collapse}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{top:0;right:0;bottom:0;left:0}.-bottom-3{bottom:-12px}.bottom-0{bottom:0}.bottom-20{bottom:80px}.left-0{left:0}.left-1\\/2{left:50%}.left-4{left:16px}.right-0{right:0}.top-0{top:0}.top-1\\/2{top:50%}.top-20{top:80px}.top-4{top:16px}.z-1{z-index:1}.z-10{z-index:10}.m-1{margin:4px}.-mx-0\\.5{margin-left:-2px;margin-right:-2px}.mx-1{margin-left:4px;margin-right:4px}.-mr-1\\.5{margin-right:-6px}.ml-auto{margin-left:auto}.mt-2{margin-top:8px}.block{display:block}.inline{display:inline}.\\!flex{display:flex!important}.flex{display:flex}.inline-flex{display:inline-flex}.contents{display:contents}.hidden{display:none}.h-11{height:44px}.h-16{height:64px}.h-4{height:16px}.h-48{height:192px}.h-5{height:20px}.h-6{height:24px}.h-9{height:36px}.h-\\[calc\\(100\\%-80px\\)\\]{height:calc(100% - 80px)}.h-full{height:100%}.h-screen{height:100vh}.max-h-\\[550px\\]{max-height:550px}.max-h-\\[8lh\\]{max-height:8lh}.max-h-\\[min\\(384px\\,var\\(--radix-select-content-available-height\\)\\)\\]{max-height:min(384px,var(--radix-select-content-available-height))}.min-h-min{min-height:-moz-min-content;min-height:min-content}.w-16{width:64px}.w-4{width:16px}.w-48{width:192px}.w-5{width:20px}.w-6{width:24px}.w-64{width:256px}.w-9{width:36px}.w-full{width:100%}.w-screen{width:100vw}.\\!min-w-60{min-width:240px!important}.min-w-0{min-width:0px}.min-w-60{min-width:240px}.min-w-9{min-width:36px}.min-w-\\[var\\(--radix-select-trigger-width\\)\\]{min-width:var(--radix-select-trigger-width)}.min-w-max{min-width:-moz-max-content;min-width:max-content}.min-w-min{min-width:-moz-min-content;min-width:min-content}.max-w-64{max-width:256px}.max-w-\\[400px\\]{max-width:400px}.shrink-0{flex-shrink:0}.grow{flex-grow:1}.origin-bottom{transform-origin:bottom}.origin-bottom-left{transform-origin:bottom left}.origin-bottom-right{transform-origin:bottom right}.origin-top{transform-origin:top}.origin-top-left{transform-origin:top left}.origin-top-right{transform-origin:top right}.-translate-x-1\\/2{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-\\[calc\\(var\\(--el-overlay-padding\\)\\)\\]{--tw-translate-y: calc(calc(var(--el-overlay-padding)) * -1);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-1\\/2{--tw-translate-y: 50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-\\[calc\\(var\\(--el-overlay-padding\\)\\)\\]{--tw-translate-y: calc(var(--el-overlay-padding));transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-full{--tw-translate-y: 100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-rotate-180{--tw-rotate: -180deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-100{--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-150{--tw-scale-x: 1.5;--tw-scale-y: 1.5;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-75{--tw-scale-x: .75;--tw-scale-y: .75;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-90{--tw-scale-x: .9;--tw-scale-y: .9;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-\\[0\\.333\\]{--tw-scale-x: .333;--tw-scale-y: .333;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize-none{resize:none}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.gap-1{gap:4px}.gap-2{gap:8px}.gap-2\\.5{gap:10px}.gap-3{gap:12px}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.overflow-x-hidden{overflow-x:hidden}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-nowrap{white-space:nowrap}.break-all{word-break:break-all}.rounded-\\[calc\\(var\\(--el-button-radius\\)\\+4px\\)\\]{border-radius:calc(var(--el-button-radius) + 4px)}.rounded-bubble{border-radius:var(--el-bubble-radius)}.rounded-button{border-radius:var(--el-button-radius)}.rounded-compact-sheet{border-radius:var(--el-compact-sheet-radius)}.rounded-dropdown-sheet{border-radius:var(--el-dropdown-sheet-radius)}.rounded-full{border-radius:9999px}.rounded-input{border-radius:var(--el-input-radius)}.rounded-sheet{border-radius:var(--el-sheet-radius)}.rounded-bl-\\[calc\\(var\\(--el-bubble-radius\\)\\/3\\)\\]{border-bottom-left-radius:calc(var(--el-bubble-radius) / 3)}.border{border-width:1px}.border-accent{border-color:var(--el-accent)}.border-base-border{border-color:var(--el-base-border)}.bg-accent{background-color:var(--el-accent)}.bg-base{background-color:var(--el-base)}.bg-base-active{background-color:var(--el-base-active)}.bg-base-border{background-color:var(--el-base-border)}.bg-base-hover{background-color:var(--el-base-hover)}.bg-cover{background-size:cover}.object-cover{-o-object-fit:cover;object-fit:cover}.p-1{padding:4px}.p-1\\.5{padding:6px}.p-2{padding:8px}.p-3{padding:12px}.p-4{padding:16px}.px-1{padding-left:4px;padding-right:4px}.px-1\\.5{padding-left:6px;padding-right:6px}.px-2{padding-left:8px;padding-right:8px}.px-2\\.5{padding-left:10px;padding-right:10px}.px-3{padding-left:12px;padding-right:12px}.px-4{padding-left:16px;padding-right:16px}.px-8{padding-left:32px;padding-right:32px}.py-1\\.5{padding-top:6px;padding-bottom:6px}.py-2\\.5{padding-top:10px;padding-bottom:10px}.py-\\[calc\\(theme\\(spacing\\.2\\)-1px\\)\\]{padding-top:7px;padding-bottom:7px}.pb-1{padding-bottom:4px}.pb-3{padding-bottom:12px}.pl-16{padding-left:64px}.pr-16{padding-right:64px}.pr-3{padding-right:12px}.pt-1{padding-top:4px}.text-center{text-align:center}.text-\\[10px\\]{font-size:10px}.text-lg{font-size:18px;line-height:26px}.text-md{font-size:16px;line-height:24px}.text-sm{font-size:14px;line-height:20px}.text-xs{font-size:12px;line-height:16px}.font-medium{font-weight:500}.text-accent-primary{color:var(--el-accent-primary)}.text-base-error{color:var(--el-base-error)}.text-base-primary{color:var(--el-base-primary)}.text-base-subtle{color:var(--el-base-subtle)}.underline{text-decoration-line:underline}.opacity-0{opacity:0}.opacity-30{opacity:.3}.shadow-lg{--tw-shadow: 0 2px 40px 1px rgba(0, 0, 0, .12);--tw-shadow-colored: 0 2px 40px 1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 2px 24px 1px rgba(0, 0, 0, .16);--tw-shadow-colored: 0 2px 24px 1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\\[border-radius\\]{transition-property:border-radius;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\\[margin\\]{transition-property:margin;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\\[opacity\\,transform\\]{transition-property:opacity,transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\\[opacity\\,width\\,height\\,transform\\,flex-grow\\]{transition-property:opacity,width,height,transform,flex-grow;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\\[transform\\,left\\,top\\]{transition-property:transform,left,top;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\\[transform\\,opacity\\]{transition-property:transform,opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-200{transition-duration:.2s}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.overlay{position:absolute;inset:var(--el-overlay-padding);right:calc(var(--el-overlay-padding) + var(--removed-body-scroll-bar-size, 0px))}.focus-ring{--tw-ring-color: var(--el-accent);--tw-ring-offset-width: 2px;--tw-ring-offset-color: var(--el-base)}.focus-ring:focus-visible{outline:2px solid transparent;outline-offset:2px;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.animate-text{background-image:linear-gradient(75deg,var(--el-base-primary),var(--el-base-subtle),var(--el-base-primary),var(--el-base-subtle));background-size:300% 100%;-webkit-background-clip:text;background-clip:text;color:transparent;animation:TextAnimation 2s linear infinite}@keyframes TextAnimation{0%{background-position:0 0}to{background-position:100% 0}}.\\!terms h6,.terms h6{font-size:12px;line-height:16px;font-weight:500;color:var(--el-base-primary)}.\\!terms h5,.terms h5{font-size:14px;line-height:20px;font-weight:500;color:var(--el-base-primary)}.\\!terms h4,.terms h4{font-size:16px;line-height:24px;font-weight:500;color:var(--el-base-primary)}.\\!terms h3,.terms h3{font-size:18px;line-height:26px;font-weight:500;color:var(--el-base-primary)}.\\!terms h2,.terms h2{font-size:20px;line-height:28px;font-weight:500;color:var(--el-base-primary)}.\\!terms h2,.terms h2{font-size:24px;line-height:30px;font-weight:500;color:var(--el-base-primary)}.\\[field-sizing\\:content\\]{field-sizing:content}.\\[line-height\\:var\\(--el-overlay-padding\\)\\]{line-height:var(--el-overlay-padding)}.\\[overflow-wrap\\:break-word\\]{overflow-wrap:break-word}.dev-host,:host{pointer-events:none;position:fixed;top:0;right:0;bottom:0;left:0;z-index:1000;font-size:16px;line-height:24px;color:var(--el-base-primary);font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;scrollbar-color:#e5e7eb transparent}.placeholder\\:text-base-subtle::-moz-placeholder{color:var(--el-base-subtle)}.placeholder\\:text-base-subtle::placeholder{color:var(--el-base-subtle)}.hover\\:border-accent-hover:hover{border-color:var(--el-accent-hover)}.hover\\:bg-accent-hover:hover{background-color:var(--el-accent-hover)}.hover\\:bg-base-hover:hover{background-color:var(--el-base-hover)}.hover\\:opacity-50:hover{opacity:.5}.focus-visible\\:underline-offset-2:focus-visible{text-underline-offset:2px}.focus-visible\\:opacity-100:focus-visible{opacity:1}.focus-visible\\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.active\\:border-accent-active:active{border-color:var(--el-accent-active)}.active\\:bg-accent-active:active{background-color:var(--el-accent-active)}.active\\:bg-base-active:active{background-color:var(--el-base-active)}.data-hidden\\:-translate-y-4[data-shown=false]{--tw-translate-y: -16px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-hidden\\:translate-y-2[data-shown=false]{--tw-translate-y: 8px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-hidden\\:scale-100[data-shown=false]{--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-hidden\\:scale-75[data-shown=false]{--tw-scale-x: .75;--tw-scale-y: .75;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-hidden\\:scale-90[data-shown=false]{--tw-scale-x: .9;--tw-scale-y: .9;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-hidden\\:opacity-0[data-shown=false]{opacity:0}.data-\\[highlighted\\]\\:bg-base-active[data-highlighted]{background-color:var(--el-base-active)}', Dn = ["tiny", "compact", "full"];
39
+ function Qo(e) {
40
+ return Dn.includes(e) ? e : Dn[0];
41
+ }
42
+ const Jo = [
43
+ "top-left",
44
+ "top",
45
+ "top-right",
46
+ "bottom-left",
47
+ "bottom",
48
+ "bottom-right"
49
+ ];
50
+ function ea(e) {
51
+ return Jo.includes(e) ? e : "bottom-right";
52
+ }
53
+ const lr = {
54
+ main_label: "Need help?",
55
+ start_call: "Start a call",
56
+ start_chat: "Start a chat",
57
+ new_call: "New call",
58
+ end_call: "End",
59
+ mute_microphone: "Mute microphone",
60
+ change_language: "Change language",
61
+ collapse: "Collapse",
62
+ expand: "Expand",
63
+ copied: "Copied!",
64
+ accept_terms: "Accept",
65
+ dismiss_terms: "Cancel",
66
+ listening_status: "Listening",
67
+ speaking_status: "Talk to interrupt",
68
+ connecting_status: "Connecting",
69
+ chatting_status: "Chatting with AI Agent",
70
+ input_label: "Text message input",
71
+ input_placeholder: "Send a message",
72
+ input_placeholder_text_only: "Send a message",
73
+ input_placeholder_new_conversation: "Start a new conversation",
74
+ user_ended_conversation: "You ended the conversation",
75
+ agent_ended_conversation: "The agent ended the conversation",
76
+ conversation_id: "ID",
77
+ error_occurred: "An error occurred",
78
+ copy_id: "Copy ID"
79
+ }, ta = Object.keys(
80
+ lr
81
+ ), cr = {
82
+ base: "#ffffff",
83
+ base_hover: "#f9fafb",
84
+ base_active: "#f3f4f6",
85
+ base_border: "#e5e7eb",
86
+ base_subtle: "#6b7280",
87
+ base_primary: "#000000",
88
+ base_error: "#ef4444",
89
+ accent: "#000000",
90
+ accent_hover: "#1f2937",
91
+ accent_active: "#374151",
92
+ accent_border: "#4b5563",
93
+ accent_subtle: "#6b7280",
94
+ accent_primary: "#ffffff",
95
+ overlay_padding: 32,
96
+ button_radius: 18,
97
+ input_radius: 10,
98
+ bubble_radius: 15,
99
+ sheet_radius: "calc(var(--el-button-radius) + 6px)",
100
+ compact_sheet_radius: "calc(var(--el-button-radius) + 12px)",
101
+ dropdown_sheet_radius: "calc(var(--el-input-radius) + 6px)"
102
+ }, na = Object.keys(
103
+ cr
104
+ );
41
105
  function he(e) {
42
- const t = jo(e);
106
+ const t = Xo(e);
43
107
  if (t == null)
44
108
  throw new Error(
45
109
  `${e.displayName} cannot be used outside of provider`
46
110
  );
47
111
  return t;
48
112
  }
49
- const sr = pe(null);
50
- function qo({
113
+ const ur = pe(null);
114
+ function ra({
51
115
  value: e,
52
116
  children: t
53
117
  }) {
54
118
  const n = Re(
55
119
  () => Object.fromEntries(
56
- nn.map((r) => [r, le(e[r])])
120
+ rn.map((r) => [r, le(e[r])])
57
121
  ),
58
122
  []
59
123
  );
60
- return nn.forEach((r) => {
124
+ return rn.forEach((r) => {
61
125
  n[r].value = e[r];
62
- }), /* @__PURE__ */ h(sr.Provider, { value: n, children: t });
126
+ }), /* @__PURE__ */ h(ur.Provider, { value: n, children: t });
63
127
  }
64
- function Qo() {
65
- return he(sr);
128
+ function oa() {
129
+ return he(ur);
66
130
  }
67
131
  function H(e) {
68
- return Qo()[e];
132
+ return oa()[e];
133
+ }
134
+ const dr = pe(null);
135
+ function aa({
136
+ children: e
137
+ }) {
138
+ const t = H("server-location"), n = Re(() => {
139
+ const r = xe(() => ia(t.value));
140
+ return {
141
+ location: r,
142
+ serverUrl: xe(
143
+ () => r.value === "us" ? "https://api.us.elevenlabs.io" : "https://api.elevenlabs.io"
144
+ ),
145
+ webSocketUrl: xe(
146
+ () => r.value === "us" ? "wss://api.us.elevenlabs.io" : "wss://api.elevenlabs.io"
147
+ )
148
+ };
149
+ }, []);
150
+ return /* @__PURE__ */ h(dr.Provider, { value: n, children: e });
151
+ }
152
+ function fr() {
153
+ return he(dr);
154
+ }
155
+ function ia(e = "us") {
156
+ switch (e) {
157
+ case "us":
158
+ case "global":
159
+ return e;
160
+ default:
161
+ return console.warn(
162
+ `[ConversationalAI] Invalid server-location: ${e}. Defaulting to "us"`
163
+ ), "us";
164
+ }
69
165
  }
70
166
  const pt = {
71
167
  en: { name: "English", flagCode: "us", languageCode: "en" },
@@ -105,87 +201,42 @@ const pt = {
105
201
  no: { name: "Norsk", flagCode: "no", languageCode: "no" },
106
202
  vi: { name: "Tiếng Việt", flagCode: "vn", languageCode: "vi" }
107
203
  };
108
- function jt(e) {
204
+ function Yt(e) {
109
205
  return Object.keys(pt).includes(e ?? "");
110
206
  }
111
- const Ln = ["tiny", "compact", "full"];
112
- function Jo(e) {
113
- return Ln.includes(e) ? e : Ln[0];
114
- }
115
- const ea = [
116
- "top-left",
117
- "top",
118
- "top-right",
119
- "bottom-left",
120
- "bottom",
121
- "bottom-right"
122
- ];
123
- function ta(e) {
124
- return ea.includes(e) ? e : "bottom-right";
125
- }
126
- const lr = {
127
- main_label: "Need help?",
128
- start_call: "Start a call",
129
- start_chat: "Start a chat",
130
- new_call: "New call",
131
- end_call: "End",
132
- mute_microphone: "Mute microphone",
133
- change_language: "Change language",
134
- collapse: "Collapse",
135
- expand: "Expand",
136
- copied: "Copied!",
137
- accept_terms: "Accept",
138
- dismiss_terms: "Cancel",
139
- listening_status: "Listening",
140
- speaking_status: "Talk to interrupt",
141
- connecting_status: "Connecting",
142
- chatting_status: "Chatting with AI Agent",
143
- input_label: "Text message input",
144
- input_placeholder: "Send a message",
145
- input_placeholder_text_only: "Send a message",
146
- input_placeholder_new_conversation: "Start a new conversation",
147
- user_ended_conversation: "You ended the conversation",
148
- agent_ended_conversation: "The agent ended the conversation",
149
- conversation_id: "ID",
150
- error_occurred: "An error occurred",
151
- copy_id: "Copy ID"
152
- }, na = Object.keys(
153
- lr
154
- ), cr = pe(null);
155
- function ra({
207
+ const pr = pe(null);
208
+ function sa({
156
209
  children: e
157
210
  }) {
158
- const t = H("server-location"), n = Re(() => {
159
- const r = xe(() => oa(t.value));
160
- return {
161
- location: r,
162
- serverUrl: xe(
163
- () => r.value === "us" ? "https://api.us.elevenlabs.io" : "https://api.elevenlabs.io"
211
+ const t = q(), n = H("language"), r = H("override-language"), o = ue(
212
+ n.peek() ?? t.peek().language
213
+ ), a = Y(
214
+ () => (t.value.supported_language_overrides ?? []).filter(
215
+ Yt
216
+ )
217
+ ), i = Y(
218
+ () => a.value.map((l) => pt[l]).sort((l, c) => l.name.localeCompare(c.name))
219
+ ), s = Re(
220
+ () => ({
221
+ language: xe(
222
+ () => Yt(r.value) ? pt[r.value] : Yt(o.value) && a.value.includes(o.value) ? pt[o.value] : pt[t.value.language]
164
223
  ),
165
- webSocketUrl: xe(
166
- () => r.value === "us" ? "wss://api.us.elevenlabs.io" : "wss://api.elevenlabs.io"
167
- )
168
- };
169
- }, []);
170
- return /* @__PURE__ */ h(cr.Provider, { value: n, children: e });
171
- }
172
- function ur() {
173
- return he(cr);
224
+ setLanguage: (l) => {
225
+ o.value = l;
226
+ },
227
+ options: i,
228
+ showPicker: xe(() => i.value.length > 0)
229
+ }),
230
+ []
231
+ );
232
+ return /* @__PURE__ */ h(pr.Provider, { value: s, children: e });
174
233
  }
175
- function oa(e = "us") {
176
- switch (e) {
177
- case "us":
178
- case "global":
179
- return e;
180
- default:
181
- return console.warn(
182
- `[ConversationalAI] Invalid server-location: ${e}. Defaulting to "us"`
183
- ), "us";
184
- }
234
+ function rt() {
235
+ return he(pr);
185
236
  }
186
- const dr = pe(null);
187
- function aa({ children: e }) {
188
- const t = Q(), n = X(
237
+ const hr = pe(null);
238
+ function la({ children: e }) {
239
+ const t = q(), n = Y(
189
240
  () => t.value.mic_muting_enabled ?? !1
190
241
  ), r = ue(!1), o = Re(
191
242
  () => ({
@@ -203,16 +254,16 @@ function aa({ children: e }) {
203
254
  }),
204
255
  []
205
256
  );
206
- return /* @__PURE__ */ h(dr.Provider, { value: o, children: e });
257
+ return /* @__PURE__ */ h(hr.Provider, { value: o, children: e });
207
258
  }
208
- function fr() {
209
- return he(dr);
259
+ function vr() {
260
+ return he(hr);
210
261
  }
211
- const pr = pe(null);
212
- function ia({
262
+ const gr = pe(null);
263
+ function ca({
213
264
  children: e
214
265
  }) {
215
- const { language: t } = rt(), n = H("override-prompt"), r = H("override-first-message"), o = H("override-voice-id"), a = H("override-text-only"), i = X(() => ({
266
+ const { language: t } = rt(), n = H("override-prompt"), r = H("override-first-message"), o = H("override-voice-id"), a = H("override-text-only"), i = Y(() => ({
216
267
  agent: {
217
268
  prompt: {
218
269
  prompt: n.value
@@ -226,7 +277,7 @@ function ia({
226
277
  conversation: {
227
278
  textOnly: Qe(a.value) ?? void 0
228
279
  }
229
- })), s = H("dynamic-variables"), l = X(() => {
280
+ })), s = H("dynamic-variables"), l = Y(() => {
230
281
  if (s.value)
231
282
  try {
232
283
  return JSON.parse(s.value);
@@ -235,7 +286,7 @@ function ia({
235
286
  `[ConversationalAI] Cannot parse dynamic-variables: ${m == null ? void 0 : m.message}`
236
287
  );
237
288
  }
238
- }), { webSocketUrl: c } = ur(), d = H("agent-id"), p = H("signed-url"), g = mn(), v = X(() => {
289
+ }), { webSocketUrl: c } = fr(), d = H("agent-id"), p = H("signed-url"), g = wn(), v = Y(() => {
239
290
  const m = {
240
291
  dynamicVariables: l.value,
241
292
  overrides: i.value,
@@ -254,19 +305,19 @@ function ia({
254
305
  ), null);
255
306
  });
256
307
  return v.value ? /* @__PURE__ */ h(
257
- pr.Provider,
308
+ gr.Provider,
258
309
  {
259
310
  value: v,
260
311
  children: e
261
312
  }
262
313
  ) : null;
263
314
  }
264
- function sa() {
265
- return he(pr);
315
+ function ua() {
316
+ return he(gr);
266
317
  }
267
- const hr = pe(null);
268
- function la({ children: e }) {
269
- const t = Q(), n = Re(() => {
318
+ const mr = pe(null);
319
+ function da({ children: e }) {
320
+ const t = q(), n = Re(() => {
270
321
  const r = t.peek().terms_key, o = r ? !!localStorage.getItem(r) : !1, a = le(!1), i = le(o), s = xe(
271
322
  () => !t.value.terms_html || i.value
272
323
  );
@@ -289,14 +340,14 @@ function la({ children: e }) {
289
340
  }
290
341
  };
291
342
  }, []);
292
- return /* @__PURE__ */ h(hr.Provider, { value: n, children: e });
343
+ return /* @__PURE__ */ h(mr.Provider, { value: n, children: e });
293
344
  }
294
- function Dt() {
295
- return he(hr);
345
+ function Bt() {
346
+ return he(mr);
296
347
  }
297
- const vr = pe(null);
298
- function ca({ children: e }) {
299
- const t = ua();
348
+ const wr = pe(null);
349
+ function fa({ children: e }) {
350
+ const t = pa();
300
351
  return ze(() => {
301
352
  if (t.conversationTextOnly.value === !0) {
302
353
  t.transcript.value;
@@ -311,16 +362,17 @@ function ca({ children: e }) {
311
362
  clearTimeout(n);
312
363
  };
313
364
  }
314
- }), /* @__PURE__ */ h(vr.Provider, { value: t, children: e });
365
+ }), /* @__PURE__ */ h(wr.Provider, { value: t, children: e });
315
366
  }
316
367
  function ne() {
317
- return he(vr);
368
+ return he(wr);
318
369
  }
319
- function ua() {
320
- const e = we(null), t = we(null), n = Q(), r = mr(), o = Dt(), a = sa(), { isMuted: i } = fr();
370
+ function pa() {
371
+ const e = we(null), t = we(null), n = q(), r = xr(), o = Bt(), a = ua(), { isMuted: i } = vr();
321
372
  return ze(() => {
322
- var s;
323
- i.value && ((s = e == null ? void 0 : e.current) == null || s.setMicMuted(i.value));
373
+ var l;
374
+ const s = i.value;
375
+ (l = e == null ? void 0 : e.current) == null || l.setMicMuted(s);
324
376
  }), Oe(() => () => {
325
377
  var s;
326
378
  (s = e.current) == null || s.endSession();
@@ -346,7 +398,7 @@ function ua() {
346
398
  let y = structuredClone(a.peek());
347
399
  x && n.value.supports_text_only && (y.textOnly = !0, n.value.text_only || (y.overrides ?? (y.overrides = {}), (E = y.overrides).conversation ?? (E.conversation = {}), y.overrides.conversation.textOnly = !0));
348
400
  try {
349
- y = da(b, y);
401
+ y = ha(b, y);
350
402
  } catch (T) {
351
403
  console.error(
352
404
  "[ConversationalAI] Error triggering call event:",
@@ -363,7 +415,7 @@ function ua() {
363
415
  }
364
416
  ] : [];
365
417
  try {
366
- if (t.current = Ko.startSession({
418
+ if (t.current = Zo.startSession({
367
419
  ...y,
368
420
  onModeChange: (C) => {
369
421
  c.value = C.mode;
@@ -374,13 +426,13 @@ function ua() {
374
426
  onCanSendFeedbackChange: (C) => {
375
427
  v.value = C.canSendFeedback;
376
428
  },
377
- onMessage: ({ source: C, message: P }) => {
378
- w.peek() === !0 && C === "ai" && P === r.peek() || (m.value = [
429
+ onMessage: ({ source: C, message: R }) => {
430
+ w.peek() === !0 && C === "ai" && R === r.peek() || (m.value = [
379
431
  ...m.value,
380
432
  {
381
433
  type: "message",
382
434
  role: C,
383
- message: P,
435
+ message: R,
384
436
  isText: !1,
385
437
  conversationIndex: f.peek()
386
438
  }
@@ -403,7 +455,7 @@ function ua() {
403
455
  C.message
404
456
  ));
405
457
  }
406
- }), e.current = await t.current, i.peek() !== void 0 && e.current.setMicMuted(i.peek()), x) {
458
+ }), e.current = await t.current, e.current.setMicMuted(i.peek()), x) {
407
459
  const C = e.current;
408
460
  setTimeout(() => C.sendUserMessage(x), 100);
409
461
  }
@@ -459,7 +511,7 @@ function ua() {
459
511
  };
460
512
  }, [a, i]);
461
513
  }
462
- function da(e, t) {
514
+ function ha(e, t) {
463
515
  try {
464
516
  const n = new CustomEvent("elevenlabs-convai:call", {
465
517
  bubbles: !0,
@@ -471,11 +523,11 @@ function da(e, t) {
471
523
  return console.error("[ConversationalAI] Could not trigger call event:", n), t;
472
524
  }
473
525
  }
474
- const gr = pe(
526
+ const br = pe(
475
527
  null
476
528
  );
477
- function fa({ children: e }) {
478
- const { serverUrl: t } = ur(), n = H("agent-id"), r = H("override-config"), o = ue(null);
529
+ function va({ children: e }) {
530
+ const { serverUrl: t } = fr(), n = H("agent-id"), r = H("override-config"), o = ue(null);
479
531
  ze(() => {
480
532
  if (r.value)
481
533
  try {
@@ -494,7 +546,7 @@ function fa({ children: e }) {
494
546
  return;
495
547
  }
496
548
  const v = new AbortController();
497
- return pa(n.value, t.value, v.signal).then((m) => {
549
+ return ga(n.value, t.value, v.signal).then((m) => {
498
550
  v.signal.aborted || (o.value = m);
499
551
  }).catch((m) => {
500
552
  console.error(
@@ -504,45 +556,45 @@ function fa({ children: e }) {
504
556
  v.abort();
505
557
  };
506
558
  });
507
- const a = H("variant"), i = H("placement"), s = H("terms-key"), l = H("mic-muting"), c = H("transcript"), d = H("text-input"), p = H("override-text-only"), g = X(() => {
559
+ const a = H("variant"), i = H("placement"), s = H("terms-key"), l = H("mic-muting"), c = H("transcript"), d = H("text-input"), p = H("override-text-only"), g = Y(() => {
508
560
  if (!o.value)
509
561
  return null;
510
562
  const v = a.value ?? o.value.variant, m = i.value ?? o.value.placement, f = s.value ?? o.value.terms_key, w = Qe(p.value) ?? o.value.text_only ?? !1, b = Qe(l.value) ?? o.value.mic_muting_enabled, x = Qe(c.value) ?? o.value.transcript_enabled, y = Qe(d.value) ?? o.value.text_input_enabled;
511
563
  return {
512
564
  ...o.value,
513
- variant: Jo(v),
514
- placement: ta(m),
565
+ variant: Qo(v),
566
+ placement: ea(m),
515
567
  terms_key: f,
516
568
  mic_muting_enabled: !w && b,
517
569
  transcript_enabled: w || x,
518
570
  text_input_enabled: w || y
519
571
  };
520
572
  });
521
- return g.value ? /* @__PURE__ */ h(gr.Provider, { value: g, children: e }) : null;
573
+ return g.value ? /* @__PURE__ */ h(br.Provider, { value: g, children: e }) : null;
522
574
  }
523
- function Q() {
524
- return he(gr);
575
+ function q() {
576
+ return he(br);
525
577
  }
526
- function mn() {
527
- const e = H("override-text-only"), t = Q();
528
- return X(
578
+ function wn() {
579
+ const e = H("override-text-only"), t = q();
580
+ return Y(
529
581
  () => Qe(e.value) ?? t.value.text_only ?? !1
530
582
  );
531
583
  }
532
- function Bt() {
533
- const e = mn(), { conversationTextOnly: t } = ne();
534
- return X(() => t.value ?? e.value);
584
+ function zt() {
585
+ const e = wn(), { conversationTextOnly: t } = ne();
586
+ return Y(() => t.value ?? e.value);
535
587
  }
536
- function mr() {
537
- const e = H("override-first-message"), t = Q(), { language: n } = rt();
538
- return X(
588
+ function xr() {
589
+ const e = H("override-first-message"), t = q(), { language: n } = rt();
590
+ return Y(
539
591
  () => {
540
592
  var r, o;
541
593
  return e.value ?? ((o = (r = t.value.language_presets) == null ? void 0 : r[n.value.languageCode]) == null ? void 0 : o.first_message) ?? t.value.first_message ?? null;
542
594
  }
543
595
  );
544
596
  }
545
- async function pa(e, t, n) {
597
+ async function ga(e, t, n) {
546
598
  const o = await (await fetch(
547
599
  `${t}/v1/convai/agents/${e}/widget`,
548
600
  {
@@ -553,39 +605,30 @@ async function pa(e, t, n) {
553
605
  throw new Error("Response does not contain widget_config");
554
606
  return o.widget_config;
555
607
  }
556
- const wr = pe(null);
557
- function ha({
558
- children: e
559
- }) {
560
- const t = Q(), n = H("language"), r = H("override-language"), o = ue(
561
- n.peek() ?? t.peek().language
562
- ), a = X(
563
- () => (t.value.supported_language_overrides ?? []).filter(
564
- jt
565
- )
566
- ), i = X(
567
- () => a.value.map((l) => pt[l]).sort((l, c) => l.name.localeCompare(c.name))
568
- ), s = Re(
569
- () => ({
570
- language: xe(
571
- () => jt(r.value) ? pt[r.value] : jt(o.value) && a.value.includes(o.value) ? pt[o.value] : pt[t.value.language]
572
- ),
573
- setLanguage: (l) => {
574
- o.value = l;
575
- },
576
- options: i,
577
- showPicker: xe(() => i.value.length > 0)
578
- }),
579
- []
580
- );
581
- return /* @__PURE__ */ h(wr.Provider, { value: s, children: e });
608
+ const ma = sr(function() {
609
+ const t = q(), n = Y(() => {
610
+ const r = t.value.styles;
611
+ return `:host, :root {
612
+ ${na.map(
613
+ (o) => `${wa(o)}: ${ba((r == null ? void 0 : r[o]) ?? cr[o])};`
614
+ ).join(`
615
+ `)}
616
+ }`;
617
+ });
618
+ return /* @__PURE__ */ P("style", { children: [
619
+ n,
620
+ qo
621
+ ] });
622
+ });
623
+ function wa(e) {
624
+ return `--el-${e.replace(/_/g, "-")}`;
582
625
  }
583
- function rt() {
584
- return he(wr);
626
+ function ba(e) {
627
+ return typeof e == "number" ? `${e}px` : e;
585
628
  }
586
- const br = pe(null);
587
- function va({ children: e }) {
588
- const t = Q(), { language: n } = rt(), r = H("text-contents"), o = X(() => {
629
+ const yr = pe(null);
630
+ function xa({ children: e }) {
631
+ const t = q(), { language: n } = rt(), r = H("text-contents"), o = Y(() => {
589
632
  try {
590
633
  if (r.value) {
591
634
  const i = JSON.parse(r.value);
@@ -597,7 +640,7 @@ function va({ children: e }) {
597
640
  }
598
641
  return {};
599
642
  }), a = Re(() => Object.fromEntries(
600
- na.map((i) => [
643
+ ta.map((i) => [
601
644
  i,
602
645
  xe(
603
646
  () => {
@@ -607,21 +650,21 @@ function va({ children: e }) {
607
650
  )
608
651
  ])
609
652
  ), []);
610
- return /* @__PURE__ */ h(br.Provider, { value: a, children: e });
653
+ return /* @__PURE__ */ h(yr.Provider, { value: a, children: e });
611
654
  }
612
655
  function re() {
613
- return he(br);
656
+ return he(yr);
614
657
  }
615
- const xr = pe(null);
616
- function ga({ children: e }) {
617
- const t = Q(), n = H("avatar-image-url"), r = H("avatar-orb-color-1"), o = H("avatar-orb-color-2"), a = ue(""), i = X(() => n.value ? {
658
+ const Cr = pe(null);
659
+ function ya({ children: e }) {
660
+ const t = q(), n = H("avatar-image-url"), r = H("avatar-orb-color-1"), o = H("avatar-orb-color-2"), a = ue(""), i = Y(() => n.value ? {
618
661
  type: "image",
619
662
  url: n.value
620
663
  } : r.value && o.value ? {
621
664
  type: "orb",
622
665
  color_1: r.value,
623
666
  color_2: o.value
624
- } : t.value.avatar), s = X(() => {
667
+ } : t.value.avatar), s = Y(() => {
625
668
  switch (i.value.type) {
626
669
  case "url":
627
670
  return i.value.custom_url;
@@ -631,60 +674,60 @@ function ga({ children: e }) {
631
674
  return i.value.url;
632
675
  }
633
676
  }), l = Re(() => ({ config: i, previewUrl: s, canvasUrl: a }), []);
634
- return /* @__PURE__ */ h(xr.Provider, { value: l, children: e });
677
+ return /* @__PURE__ */ h(Cr.Provider, { value: l, children: e });
635
678
  }
636
- function wn() {
637
- return he(xr);
679
+ function bn() {
680
+ return he(Cr);
638
681
  }
639
- const yr = pe(null);
682
+ const Sr = pe(null);
640
683
  function yt({ children: e, ...t }) {
641
684
  const [n, r] = be(null);
642
- return /* @__PURE__ */ h("div", { ref: r, ...t, children: n && /* @__PURE__ */ h(yr.Provider, { value: n, children: e }) });
685
+ return /* @__PURE__ */ h("div", { ref: r, ...t, children: n && /* @__PURE__ */ h(Sr.Provider, { value: n, children: e }) });
643
686
  }
644
- function ma() {
645
- return he(yr);
687
+ function Ca() {
688
+ return he(Sr);
646
689
  }
647
- function bn(e) {
690
+ function xn(e) {
648
691
  return e && typeof e == "object" && "peek" in e;
649
692
  }
650
- function wa(e) {
651
- const t = bn(e), n = ue(t ? e.peek() : e);
693
+ function Sa(e) {
694
+ const t = xn(e), n = ue(t ? e.peek() : e);
652
695
  return t ? e : (n.value = e, n);
653
696
  }
654
- function Cr(e) {
655
- return bn(e) ? e.value : e;
697
+ function Er(e) {
698
+ return xn(e) ? e.value : e;
656
699
  }
657
- function ba(e) {
658
- return bn(e) ? e.peek() : e;
700
+ function Ea(e) {
701
+ return xn(e) ? e.peek() : e;
659
702
  }
660
- function Dn(e, t) {
703
+ function Bn(e, t) {
661
704
  if (typeof e == "function")
662
705
  return e(t);
663
706
  e != null && (e.current = t);
664
707
  }
665
- function Sr(...e) {
708
+ function kr(...e) {
666
709
  return (t) => {
667
710
  let n = !1;
668
711
  const r = e.map((o) => {
669
- const a = Dn(o, t);
712
+ const a = Bn(o, t);
670
713
  return !n && typeof a == "function" && (n = !0), a;
671
714
  });
672
715
  if (n)
673
716
  return () => {
674
717
  for (let o = 0; o < r.length; o++) {
675
718
  const a = r[o];
676
- typeof a == "function" ? a() : Dn(e[o], null);
719
+ typeof a == "function" ? a() : Bn(e[o], null);
677
720
  }
678
721
  };
679
722
  };
680
723
  }
681
724
  function Z(...e) {
682
- return u.useCallback(Sr(...e), e);
725
+ return u.useCallback(kr(...e), e);
683
726
  }
684
727
  // @__NO_SIDE_EFFECTS__
685
728
  function vt(e) {
686
- const t = /* @__PURE__ */ xa(e), n = u.forwardRef((r, o) => {
687
- const { children: a, ...i } = r, s = u.Children.toArray(a), l = s.find(Ca);
729
+ const t = /* @__PURE__ */ ka(e), n = u.forwardRef((r, o) => {
730
+ const { children: a, ...i } = r, s = u.Children.toArray(a), l = s.find(Aa);
688
731
  if (l) {
689
732
  const c = l.props.children, d = s.map((p) => p === l ? u.Children.count(c) > 1 ? u.Children.only(null) : u.isValidElement(c) ? c.props.children : null : p);
690
733
  return /* @__PURE__ */ k(t, { ...i, ref: o, children: u.isValidElement(c) ? u.cloneElement(c, void 0, d) : null });
@@ -693,24 +736,24 @@ function vt(e) {
693
736
  });
694
737
  return n.displayName = `${e}.Slot`, n;
695
738
  }
696
- var Er = /* @__PURE__ */ vt("Slot");
739
+ var Tr = /* @__PURE__ */ vt("Slot");
697
740
  // @__NO_SIDE_EFFECTS__
698
- function xa(e) {
741
+ function ka(e) {
699
742
  const t = u.forwardRef((n, r) => {
700
743
  const { children: o, ...a } = n;
701
744
  if (u.isValidElement(o)) {
702
- const i = Ea(o), s = Sa(a, o.props);
703
- return o.type !== u.Fragment && (s.ref = r ? Sr(r, i) : i), u.cloneElement(o, s);
745
+ const i = Ra(o), s = Pa(a, o.props);
746
+ return o.type !== u.Fragment && (s.ref = r ? kr(r, i) : i), u.cloneElement(o, s);
704
747
  }
705
748
  return u.Children.count(o) > 1 ? u.Children.only(null) : null;
706
749
  });
707
750
  return t.displayName = `${e}.SlotClone`, t;
708
751
  }
709
- var ya = Symbol("radix.slottable");
710
- function Ca(e) {
711
- return u.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === ya;
752
+ var Ta = Symbol("radix.slottable");
753
+ function Aa(e) {
754
+ return u.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === Ta;
712
755
  }
713
- function Sa(e, t) {
756
+ function Pa(e, t) {
714
757
  const n = { ...t };
715
758
  for (const r in t) {
716
759
  const o = e[r], a = t[r];
@@ -720,22 +763,22 @@ function Sa(e, t) {
720
763
  }
721
764
  return { ...e, ...n };
722
765
  }
723
- function Ea(e) {
766
+ function Ra(e) {
724
767
  var r, o;
725
768
  let t = (r = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : r.get, n = t && "isReactWarning" in t && t.isReactWarning;
726
769
  return n ? e.ref : (t = (o = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : o.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
727
770
  }
728
- const Yt = window.matchMedia("(prefers-reduced-motion: reduce)");
729
- function kr() {
730
- const e = ue(Yt.matches);
771
+ const Xt = window.matchMedia("(prefers-reduced-motion: reduce)");
772
+ function Ar() {
773
+ const e = ue(Xt.matches);
731
774
  return Oe(() => {
732
775
  const t = (n) => {
733
776
  e.value = n.matches;
734
777
  };
735
- return Yt.addEventListener("change", t), () => Yt.removeEventListener("change", t);
778
+ return Xt.addEventListener("change", t), () => Xt.removeEventListener("change", t);
736
779
  }, []), e;
737
780
  }
738
- function Tr({ onStart: e, onEnd: t }) {
781
+ function Pr({ onStart: e, onEnd: t }) {
739
782
  const n = we();
740
783
  n.current ?? (n.current = /* @__PURE__ */ new Set());
741
784
  const r = we(e);
@@ -761,29 +804,29 @@ function Tr({ onStart: e, onEnd: t }) {
761
804
  };
762
805
  }
763
806
  function ce(e) {
764
- const t = kr().value ? ka : Ta;
807
+ const t = Ar().value ? Ia : _a;
765
808
  return /* @__PURE__ */ h(t, { ...e });
766
809
  }
767
- function ka({ active: e, ...t }) {
768
- return Cr(e) ? /* @__PURE__ */ h(Er, { "data-shown": !0, ...t }) : null;
810
+ function Ia({ active: e, ...t }) {
811
+ return Er(e) ? /* @__PURE__ */ h(Tr, { "data-shown": !0, ...t }) : null;
769
812
  }
770
- function Ta({
813
+ function _a({
771
814
  active: e,
772
815
  initial: t = e,
773
816
  ...n
774
817
  }) {
775
- const r = wa(e), o = ue(ba(t));
818
+ const r = Sa(e), o = ue(Ea(t));
776
819
  ze(() => {
777
820
  r.value && (o.value = r.value);
778
821
  });
779
- const { handlers: a } = Tr({
822
+ const { handlers: a } = Pr({
780
823
  onEnd: () => {
781
824
  o.value = r.value;
782
825
  }
783
826
  });
784
- return !r.value && !o.value ? null : /* @__PURE__ */ h(Er, { "data-shown": r.value && o.value, ...a, ...n });
827
+ return !r.value && !o.value ? null : /* @__PURE__ */ h(Tr, { "data-shown": r.value && o.value, ...a, ...n });
785
828
  }
786
- const Aa = `#version 300 es
829
+ const Na = `#version 300 es
787
830
  precision highp float;
788
831
 
789
832
  uniform float uTime;
@@ -947,7 +990,7 @@ void main() {
947
990
 
948
991
  outColor = color;
949
992
  }
950
- `, Pa = `#version 300 es
993
+ `, Oa = `#version 300 es
951
994
  precision highp float;
952
995
 
953
996
  in vec2 position;
@@ -958,7 +1001,7 @@ void main() {
958
1001
  vUv = position * 0.5 + 0.5;
959
1002
  gl_Position = vec4(position, 0, 1);
960
1003
  }
961
- `, Bn = 0, Ra = new Float32Array([
1004
+ `, zn = 0, Ma = new Float32Array([
962
1005
  -1,
963
1006
  1,
964
1007
  -1,
@@ -967,7 +1010,7 @@ void main() {
967
1010
  1,
968
1011
  1,
969
1012
  -1
970
- ]), Ia = "https://storage.googleapis.com/eleven-public-cdn/images/perlin-noise.png", ge = class ge {
1013
+ ]), La = "https://storage.googleapis.com/eleven-public-cdn/images/perlin-noise.png", ge = class ge {
971
1014
  constructor(t) {
972
1015
  J(this, "gl");
973
1016
  J(this, "program");
@@ -1002,7 +1045,7 @@ void main() {
1002
1045
  depth: !1,
1003
1046
  stencil: !1
1004
1047
  });
1005
- this.gl = n, this.program = this.setupProgram(Aa, Pa);
1048
+ this.gl = n, this.program = this.setupProgram(Na, Oa);
1006
1049
  const r = n.createTexture();
1007
1050
  n.bindTexture(n.TEXTURE_2D, r), n.texImage2D(
1008
1051
  n.TEXTURE_2D,
@@ -1014,9 +1057,9 @@ void main() {
1014
1057
  n.RGBA,
1015
1058
  n.UNSIGNED_BYTE,
1016
1059
  new Uint8Array([128, 128, 128, 255])
1017
- ), ge.noiseImage || (ge.noiseImage = new Image(), ge.noiseImage.crossOrigin = "anonymous", ge.noiseImage.src = Ia), ge.noiseImage.complete ? this.copyNoiseImage() : ge.noiseImage.addEventListener("load", this.copyNoiseImage);
1060
+ ), ge.noiseImage || (ge.noiseImage = new Image(), ge.noiseImage.crossOrigin = "anonymous", ge.noiseImage.src = La), ge.noiseImage.complete ? this.copyNoiseImage() : ge.noiseImage.addEventListener("load", this.copyNoiseImage);
1018
1061
  const o = n.createBuffer();
1019
- n.bindBuffer(n.ARRAY_BUFFER, o), n.bufferData(n.ARRAY_BUFFER, Ra, n.STATIC_DRAW), n.vertexAttribPointer(Bn, 2, n.FLOAT, !1, 0, 0), n.enableVertexAttribArray(Bn), this.updateColors("#2792DC", "#9CE6E6"), this.resizeObserver = new ResizeObserver((i) => {
1062
+ n.bindBuffer(n.ARRAY_BUFFER, o), n.bufferData(n.ARRAY_BUFFER, Ma, n.STATIC_DRAW), n.vertexAttribPointer(zn, 2, n.FLOAT, !1, 0, 0), n.enableVertexAttribArray(zn), this.updateColors("#2792DC", "#9CE6E6"), this.resizeObserver = new ResizeObserver((i) => {
1020
1063
  const s = i[0], l = s.devicePixelContentBoxSize ? s.devicePixelContentBoxSize[0] : s.contentBoxSize[0];
1021
1064
  t.width = Math.min(512, l.inlineSize), t.height = Math.min(512, l.blockSize), this.updateViewport();
1022
1065
  });
@@ -1084,13 +1127,13 @@ void main() {
1084
1127
  }
1085
1128
  };
1086
1129
  J(ge, "noiseImage");
1087
- let rn = ge;
1088
- const Na = {
1130
+ let on = ge;
1131
+ const Da = {
1089
1132
  sm: "w-9 h-9",
1090
1133
  lg: "w-48 h-48"
1091
1134
  };
1092
1135
  function ot({ size: e = "sm", className: t }) {
1093
- const { getInputVolume: n, getOutputVolume: r, isSpeaking: o, isDisconnected: a } = ne(), { config: i } = wn(), s = we(null), l = we(null);
1136
+ const { getInputVolume: n, getOutputVolume: r, isSpeaking: o, isDisconnected: a } = ne(), { config: i } = bn(), s = we(null), l = we(null);
1094
1137
  ze(() => {
1095
1138
  if (a.value) {
1096
1139
  s.current.style.transform = "", l.current.style.transform = "";
@@ -1105,10 +1148,10 @@ function ot({ size: e = "sm", className: t }) {
1105
1148
  cancelAnimationFrame(d);
1106
1149
  };
1107
1150
  });
1108
- const c = X(() => ({
1151
+ const c = Y(() => ({
1109
1152
  backgroundImage: i.value.type === "image" ? `url(${i.value.url})` : i.value.type === "url" ? `url(${i.value.custom_url})` : void 0
1110
1153
  }));
1111
- return /* @__PURE__ */ I("div", { className: j("relative shrink-0", Na[e], t), children: [
1154
+ return /* @__PURE__ */ P("div", { className: j("relative shrink-0", Da[e], t), children: [
1112
1155
  /* @__PURE__ */ h(
1113
1156
  "div",
1114
1157
  {
@@ -1123,7 +1166,7 @@ function ot({ size: e = "sm", className: t }) {
1123
1166
  style: c,
1124
1167
  className: "absolute inset-0 rounded-full overflow-hidden bg-base bg-cover",
1125
1168
  children: i.value.type === "orb" && /* @__PURE__ */ h(
1126
- _a,
1169
+ Ba,
1127
1170
  {
1128
1171
  color1: i.value.color_1,
1129
1172
  color2: i.value.color_2
@@ -1133,15 +1176,15 @@ function ot({ size: e = "sm", className: t }) {
1133
1176
  )
1134
1177
  ] });
1135
1178
  }
1136
- function _a({ color1: e, color2: t }) {
1137
- const { canvasUrl: n } = wn(), [r, o] = be(null);
1179
+ function Ba({ color1: e, color2: t }) {
1180
+ const { canvasUrl: n } = bn(), [r, o] = be(null);
1138
1181
  Oe(() => {
1139
1182
  r && (r.updateColors(e, t), r.render(), n.value = r.toDataURL());
1140
1183
  }, [r, e, t]);
1141
1184
  const a = Te(
1142
1185
  (i) => {
1143
1186
  if (i) {
1144
- const s = new rn(i);
1187
+ const s = new on(i);
1145
1188
  return o(s), () => s.dispose();
1146
1189
  } else
1147
1190
  o(null);
@@ -1150,32 +1193,32 @@ function _a({ color1: e, color2: t }) {
1150
1193
  );
1151
1194
  return /* @__PURE__ */ h("canvas", { className: "w-full h-full", ref: a });
1152
1195
  }
1153
- const Oa = {
1154
- phone: La,
1155
- "phone-off": Da,
1156
- chat: Ba,
1157
- mic: za,
1158
- "mic-off": Fa,
1159
- check: $a,
1160
- "chevron-down": Va,
1161
- "chevron-up": Wa
1162
- }, Ma = {
1196
+ const za = {
1197
+ phone: Va,
1198
+ "phone-off": $a,
1199
+ chat: Wa,
1200
+ mic: Ua,
1201
+ "mic-off": Ha,
1202
+ check: Xa,
1203
+ "chevron-down": ja,
1204
+ "chevron-up": Ya
1205
+ }, Fa = {
1163
1206
  sm: "text-xs",
1164
1207
  md: "text-lg"
1165
1208
  };
1166
1209
  function Je({ name: e, size: t = "md", className: n }) {
1167
- const r = Oa[e];
1210
+ const r = za[e];
1168
1211
  return /* @__PURE__ */ h(
1169
1212
  "slot",
1170
1213
  {
1171
1214
  name: `icon-${e}`,
1172
- className: j("flex", Ma[t], n),
1215
+ className: j("flex", Fa[t], n),
1173
1216
  "aria-hidden": !0,
1174
1217
  children: /* @__PURE__ */ h(r, {})
1175
1218
  }
1176
1219
  );
1177
1220
  }
1178
- function La(e) {
1221
+ function Va(e) {
1179
1222
  return /* @__PURE__ */ h(
1180
1223
  "svg",
1181
1224
  {
@@ -1189,8 +1232,8 @@ function La(e) {
1189
1232
  }
1190
1233
  );
1191
1234
  }
1192
- function Da(e) {
1193
- return /* @__PURE__ */ I(
1235
+ function $a(e) {
1236
+ return /* @__PURE__ */ P(
1194
1237
  "svg",
1195
1238
  {
1196
1239
  height: "1em",
@@ -1206,7 +1249,7 @@ function Da(e) {
1206
1249
  }
1207
1250
  );
1208
1251
  }
1209
- function Ba(e) {
1252
+ function Wa(e) {
1210
1253
  return /* @__PURE__ */ h(
1211
1254
  "svg",
1212
1255
  {
@@ -1227,8 +1270,8 @@ function Ba(e) {
1227
1270
  }
1228
1271
  );
1229
1272
  }
1230
- function za(e) {
1231
- return /* @__PURE__ */ I(
1273
+ function Ua(e) {
1274
+ return /* @__PURE__ */ P(
1232
1275
  "svg",
1233
1276
  {
1234
1277
  height: "1em",
@@ -1244,8 +1287,8 @@ function za(e) {
1244
1287
  }
1245
1288
  );
1246
1289
  }
1247
- function Fa(e) {
1248
- return /* @__PURE__ */ I(
1290
+ function Ha(e) {
1291
+ return /* @__PURE__ */ P(
1249
1292
  "svg",
1250
1293
  {
1251
1294
  height: "1em",
@@ -1261,7 +1304,7 @@ function Fa(e) {
1261
1304
  }
1262
1305
  );
1263
1306
  }
1264
- function Va(e) {
1307
+ function ja(e) {
1265
1308
  return /* @__PURE__ */ h(
1266
1309
  "svg",
1267
1310
  {
@@ -1279,7 +1322,7 @@ function Va(e) {
1279
1322
  }
1280
1323
  );
1281
1324
  }
1282
- function Wa(e) {
1325
+ function Ya(e) {
1283
1326
  return /* @__PURE__ */ h(
1284
1327
  "svg",
1285
1328
  {
@@ -1297,7 +1340,7 @@ function Wa(e) {
1297
1340
  }
1298
1341
  );
1299
1342
  }
1300
- function $a(e) {
1343
+ function Xa(e) {
1301
1344
  return /* @__PURE__ */ h(
1302
1345
  "svg",
1303
1346
  {
@@ -1316,10 +1359,10 @@ function $a(e) {
1316
1359
  );
1317
1360
  }
1318
1361
  function ke(e) {
1319
- const t = kr().value ? Ua : Ha;
1362
+ const t = Ar().value ? Ka : Ga;
1320
1363
  return /* @__PURE__ */ h(t, { ...e });
1321
1364
  }
1322
- function Ua({
1365
+ function Ka({
1323
1366
  visible: e,
1324
1367
  className: t,
1325
1368
  grow: n,
@@ -1328,7 +1371,7 @@ function Ua({
1328
1371
  }) {
1329
1372
  return e ? /* @__PURE__ */ h("div", { className: j(n && "grow", t), ...o }) : null;
1330
1373
  }
1331
- function Ha({
1374
+ function Ga({
1332
1375
  visible: e,
1333
1376
  children: t,
1334
1377
  className: n,
@@ -1364,7 +1407,7 @@ function Ha({
1364
1407
  o
1365
1408
  // node's content changed
1366
1409
  ]);
1367
- const { transitioning: m, handlers: f } = Tr({
1410
+ const { transitioning: m, handlers: f } = Pr({
1368
1411
  onEnd: () => {
1369
1412
  e ? (l.style.width = "", l.style.height = "") : s(!1);
1370
1413
  }
@@ -1396,10 +1439,10 @@ function Ha({
1396
1439
  }
1397
1440
  );
1398
1441
  }
1399
- const ja = {
1442
+ const Za = {
1400
1443
  primary: "text-accent-primary border border-accent bg-accent hover:border-accent-hover hover:bg-accent-hover active:border-accent-active active:bg-accent-active",
1401
1444
  secondary: "text-base-primary border border-base-border bg-base hover:bg-base-hover active:bg-base-active"
1402
- }, Me = Yo(
1445
+ }, Me = Ko(
1403
1446
  function({
1404
1447
  variant: t = "secondary",
1405
1448
  children: n,
@@ -1410,13 +1453,13 @@ const ja = {
1410
1453
  ...s
1411
1454
  }, l) {
1412
1455
  const c = !!r && !n;
1413
- return /* @__PURE__ */ I(
1456
+ return /* @__PURE__ */ P(
1414
1457
  "button",
1415
1458
  {
1416
1459
  ref: l,
1417
1460
  className: j(
1418
1461
  "h-9 flex px-2.5 text-sm items-center transition-colors justify-center rounded-button duration-200 focus-ring overflow-hidden select-none",
1419
- ja[t],
1462
+ Za[t],
1420
1463
  c && "min-w-9",
1421
1464
  o
1422
1465
  ),
@@ -1440,11 +1483,11 @@ const ja = {
1440
1483
  );
1441
1484
  }
1442
1485
  );
1443
- function on({
1486
+ function an({
1444
1487
  className: e,
1445
1488
  ...t
1446
1489
  }) {
1447
- const { status: n, isSpeaking: r } = ne(), o = Bt(), a = re(), i = X(
1490
+ const { status: n, isSpeaking: r } = ne(), o = zt(), a = re(), i = Y(
1448
1491
  () => n.value !== "connected" ? a.connecting_status.value : o.value ? a.chatting_status.value : r.value ? a.speaking_status.value : a.listening_status.value
1449
1492
  ), [s, l] = be(i.peek());
1450
1493
  return ze(() => {
@@ -1469,7 +1512,7 @@ function on({
1469
1512
  }
1470
1513
  );
1471
1514
  }
1472
- function zn(e, [t, n]) {
1515
+ function Fn(e, [t, n]) {
1473
1516
  return Math.min(n, Math.max(t, e));
1474
1517
  }
1475
1518
  function G(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
@@ -1478,7 +1521,7 @@ function G(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
1478
1521
  return t == null ? void 0 : t(o);
1479
1522
  };
1480
1523
  }
1481
- function xn(e, t = []) {
1524
+ function yn(e, t = []) {
1482
1525
  let n = [];
1483
1526
  function r(a, i) {
1484
1527
  const s = u.createContext(i), l = n.length;
@@ -1508,9 +1551,9 @@ function xn(e, t = []) {
1508
1551
  );
1509
1552
  };
1510
1553
  };
1511
- return o.scopeName = e, [r, Ya(o, ...t)];
1554
+ return o.scopeName = e, [r, qa(o, ...t)];
1512
1555
  }
1513
- function Ya(...e) {
1556
+ function qa(...e) {
1514
1557
  const t = e[0];
1515
1558
  if (e.length === 1) return t;
1516
1559
  const n = () => {
@@ -1528,32 +1571,32 @@ function Ya(...e) {
1528
1571
  };
1529
1572
  return n.scopeName = t.scopeName, n;
1530
1573
  }
1531
- function Xa(e) {
1532
- const t = e + "CollectionProvider", [n, r] = xn(t), [o, a] = n(
1574
+ function Qa(e) {
1575
+ const t = e + "CollectionProvider", [n, r] = yn(t), [o, a] = n(
1533
1576
  t,
1534
1577
  { collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
1535
1578
  ), i = (f) => {
1536
- const { scope: w, children: b } = f, x = Ne.useRef(null), y = Ne.useRef(/* @__PURE__ */ new Map()).current;
1579
+ const { scope: w, children: b } = f, x = _e.useRef(null), y = _e.useRef(/* @__PURE__ */ new Map()).current;
1537
1580
  return /* @__PURE__ */ k(o, { scope: w, itemMap: y, collectionRef: x, children: b });
1538
1581
  };
1539
1582
  i.displayName = t;
1540
- const s = e + "CollectionSlot", l = /* @__PURE__ */ vt(s), c = Ne.forwardRef(
1583
+ const s = e + "CollectionSlot", l = /* @__PURE__ */ vt(s), c = _e.forwardRef(
1541
1584
  (f, w) => {
1542
1585
  const { scope: b, children: x } = f, y = a(s, b), S = Z(w, y.collectionRef);
1543
1586
  return /* @__PURE__ */ k(l, { ref: S, children: x });
1544
1587
  }
1545
1588
  );
1546
1589
  c.displayName = s;
1547
- const d = e + "CollectionItemSlot", p = "data-radix-collection-item", g = /* @__PURE__ */ vt(d), v = Ne.forwardRef(
1590
+ const d = e + "CollectionItemSlot", p = "data-radix-collection-item", g = /* @__PURE__ */ vt(d), v = _e.forwardRef(
1548
1591
  (f, w) => {
1549
- const { scope: b, children: x, ...y } = f, S = Ne.useRef(null), E = Z(w, S), T = a(d, b);
1550
- return Ne.useEffect(() => (T.itemMap.set(S, { ref: S, ...y }), () => void T.itemMap.delete(S))), /* @__PURE__ */ k(g, { [p]: "", ref: E, children: x });
1592
+ const { scope: b, children: x, ...y } = f, S = _e.useRef(null), E = Z(w, S), T = a(d, b);
1593
+ return _e.useEffect(() => (T.itemMap.set(S, { ref: S, ...y }), () => void T.itemMap.delete(S))), /* @__PURE__ */ k(g, { [p]: "", ref: E, children: x });
1551
1594
  }
1552
1595
  );
1553
1596
  v.displayName = d;
1554
1597
  function m(f) {
1555
1598
  const w = a(e + "CollectionConsumer", f);
1556
- return Ne.useCallback(() => {
1599
+ return _e.useCallback(() => {
1557
1600
  const x = w.collectionRef.current;
1558
1601
  if (!x) return [];
1559
1602
  const y = Array.from(x.querySelectorAll(`[${p}]`));
@@ -1568,12 +1611,12 @@ function Xa(e) {
1568
1611
  r
1569
1612
  ];
1570
1613
  }
1571
- var Ka = u.createContext(void 0);
1572
- function Ga(e) {
1573
- const t = u.useContext(Ka);
1614
+ var Ja = u.createContext(void 0);
1615
+ function ei(e) {
1616
+ const t = u.useContext(Ja);
1574
1617
  return e || t || "ltr";
1575
1618
  }
1576
- var Za = [
1619
+ var ti = [
1577
1620
  "a",
1578
1621
  "button",
1579
1622
  "div",
@@ -1591,17 +1634,17 @@ var Za = [
1591
1634
  "span",
1592
1635
  "svg",
1593
1636
  "ul"
1594
- ], K = Za.reduce((e, t) => {
1637
+ ], K = ti.reduce((e, t) => {
1595
1638
  const n = /* @__PURE__ */ vt(`Primitive.${t}`), r = u.forwardRef((o, a) => {
1596
1639
  const { asChild: i, ...s } = o, l = i ? n : t;
1597
1640
  return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ k(l, { ...s, ref: a });
1598
1641
  });
1599
1642
  return r.displayName = `Primitive.${t}`, { ...e, [t]: r };
1600
1643
  }, {});
1601
- function qa(e, t) {
1644
+ function ni(e, t) {
1602
1645
  e && u.flushSync(() => e.dispatchEvent(t));
1603
1646
  }
1604
- function $e(e) {
1647
+ function We(e) {
1605
1648
  const t = u.useRef(e);
1606
1649
  return u.useEffect(() => {
1607
1650
  t.current = e;
@@ -1610,8 +1653,8 @@ function $e(e) {
1610
1653
  return (r = t.current) == null ? void 0 : r.call(t, ...n);
1611
1654
  }, []);
1612
1655
  }
1613
- function Qa(e, t = globalThis == null ? void 0 : globalThis.document) {
1614
- const n = $e(e);
1656
+ function ri(e, t = globalThis == null ? void 0 : globalThis.document) {
1657
+ const n = We(e);
1615
1658
  u.useEffect(() => {
1616
1659
  const r = (o) => {
1617
1660
  o.key === "Escape" && n(o);
@@ -1619,11 +1662,11 @@ function Qa(e, t = globalThis == null ? void 0 : globalThis.document) {
1619
1662
  return t.addEventListener("keydown", r, { capture: !0 }), () => t.removeEventListener("keydown", r, { capture: !0 });
1620
1663
  }, [n, t]);
1621
1664
  }
1622
- var Ja = "DismissableLayer", an = "dismissableLayer.update", ei = "dismissableLayer.pointerDownOutside", ti = "dismissableLayer.focusOutside", Fn, Ar = u.createContext({
1665
+ var oi = "DismissableLayer", sn = "dismissableLayer.update", ai = "dismissableLayer.pointerDownOutside", ii = "dismissableLayer.focusOutside", Vn, Rr = u.createContext({
1623
1666
  layers: /* @__PURE__ */ new Set(),
1624
1667
  layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
1625
1668
  branches: /* @__PURE__ */ new Set()
1626
- }), Pr = u.forwardRef(
1669
+ }), Ir = u.forwardRef(
1627
1670
  (e, t) => {
1628
1671
  const {
1629
1672
  disableOutsidePointerEvents: n = !1,
@@ -1633,25 +1676,25 @@ var Ja = "DismissableLayer", an = "dismissableLayer.update", ei = "dismissableLa
1633
1676
  onInteractOutside: i,
1634
1677
  onDismiss: s,
1635
1678
  ...l
1636
- } = e, c = u.useContext(Ar), [d, p] = u.useState(null), g = (d == null ? void 0 : d.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, v] = u.useState({}), m = Z(t, (C) => p(C)), f = Array.from(c.layers), [w] = [...c.layersWithOutsidePointerEventsDisabled].slice(-1), b = f.indexOf(w), x = d ? f.indexOf(d) : -1, y = c.layersWithOutsidePointerEventsDisabled.size > 0, S = x >= b, E = oi((C) => {
1637
- const P = C.target, O = [...c.branches].some((M) => M.contains(P));
1679
+ } = e, c = u.useContext(Rr), [d, p] = u.useState(null), g = (d == null ? void 0 : d.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, v] = u.useState({}), m = Z(t, (C) => p(C)), f = Array.from(c.layers), [w] = [...c.layersWithOutsidePointerEventsDisabled].slice(-1), b = f.indexOf(w), x = d ? f.indexOf(d) : -1, y = c.layersWithOutsidePointerEventsDisabled.size > 0, S = x >= b, E = ci((C) => {
1680
+ const R = C.target, O = [...c.branches].some((M) => M.contains(R));
1638
1681
  !S || O || (o == null || o(C), i == null || i(C), C.defaultPrevented || s == null || s());
1639
- }, g), T = ai((C) => {
1640
- const P = C.target;
1641
- [...c.branches].some((M) => M.contains(P)) || (a == null || a(C), i == null || i(C), C.defaultPrevented || s == null || s());
1682
+ }, g), T = ui((C) => {
1683
+ const R = C.target;
1684
+ [...c.branches].some((M) => M.contains(R)) || (a == null || a(C), i == null || i(C), C.defaultPrevented || s == null || s());
1642
1685
  }, g);
1643
- return Qa((C) => {
1686
+ return ri((C) => {
1644
1687
  x === c.layers.size - 1 && (r == null || r(C), !C.defaultPrevented && s && (C.preventDefault(), s()));
1645
1688
  }, g), u.useEffect(() => {
1646
1689
  if (d)
1647
- return n && (c.layersWithOutsidePointerEventsDisabled.size === 0 && (Fn = g.body.style.pointerEvents, g.body.style.pointerEvents = "none"), c.layersWithOutsidePointerEventsDisabled.add(d)), c.layers.add(d), Vn(), () => {
1648
- n && c.layersWithOutsidePointerEventsDisabled.size === 1 && (g.body.style.pointerEvents = Fn);
1690
+ return n && (c.layersWithOutsidePointerEventsDisabled.size === 0 && (Vn = g.body.style.pointerEvents, g.body.style.pointerEvents = "none"), c.layersWithOutsidePointerEventsDisabled.add(d)), c.layers.add(d), $n(), () => {
1691
+ n && c.layersWithOutsidePointerEventsDisabled.size === 1 && (g.body.style.pointerEvents = Vn);
1649
1692
  };
1650
1693
  }, [d, g, n, c]), u.useEffect(() => () => {
1651
- d && (c.layers.delete(d), c.layersWithOutsidePointerEventsDisabled.delete(d), Vn());
1694
+ d && (c.layers.delete(d), c.layersWithOutsidePointerEventsDisabled.delete(d), $n());
1652
1695
  }, [d, c]), u.useEffect(() => {
1653
1696
  const C = () => v({});
1654
- return document.addEventListener(an, C), () => document.removeEventListener(an, C);
1697
+ return document.addEventListener(sn, C), () => document.removeEventListener(sn, C);
1655
1698
  }, []), /* @__PURE__ */ k(
1656
1699
  K.div,
1657
1700
  {
@@ -1671,9 +1714,9 @@ var Ja = "DismissableLayer", an = "dismissableLayer.update", ei = "dismissableLa
1671
1714
  );
1672
1715
  }
1673
1716
  );
1674
- Pr.displayName = Ja;
1675
- var ni = "DismissableLayerBranch", ri = u.forwardRef((e, t) => {
1676
- const n = u.useContext(Ar), r = u.useRef(null), o = Z(t, r);
1717
+ Ir.displayName = oi;
1718
+ var si = "DismissableLayerBranch", li = u.forwardRef((e, t) => {
1719
+ const n = u.useContext(Rr), r = u.useRef(null), o = Z(t, r);
1677
1720
  return u.useEffect(() => {
1678
1721
  const a = r.current;
1679
1722
  if (a)
@@ -1682,16 +1725,16 @@ var ni = "DismissableLayerBranch", ri = u.forwardRef((e, t) => {
1682
1725
  };
1683
1726
  }, [n.branches]), /* @__PURE__ */ k(K.div, { ...e, ref: o });
1684
1727
  });
1685
- ri.displayName = ni;
1686
- function oi(e, t = globalThis == null ? void 0 : globalThis.document) {
1687
- const n = $e(e), r = u.useRef(!1), o = u.useRef(() => {
1728
+ li.displayName = si;
1729
+ function ci(e, t = globalThis == null ? void 0 : globalThis.document) {
1730
+ const n = We(e), r = u.useRef(!1), o = u.useRef(() => {
1688
1731
  });
1689
1732
  return u.useEffect(() => {
1690
1733
  const a = (s) => {
1691
1734
  if (s.target && !r.current) {
1692
1735
  let l = function() {
1693
- Rr(
1694
- ei,
1736
+ _r(
1737
+ ai,
1695
1738
  n,
1696
1739
  c,
1697
1740
  { discrete: !0 }
@@ -1713,11 +1756,11 @@ function oi(e, t = globalThis == null ? void 0 : globalThis.document) {
1713
1756
  onPointerDownCapture: () => r.current = !0
1714
1757
  };
1715
1758
  }
1716
- function ai(e, t = globalThis == null ? void 0 : globalThis.document) {
1717
- const n = $e(e), r = u.useRef(!1);
1759
+ function ui(e, t = globalThis == null ? void 0 : globalThis.document) {
1760
+ const n = We(e), r = u.useRef(!1);
1718
1761
  return u.useEffect(() => {
1719
1762
  const o = (a) => {
1720
- a.target && !r.current && Rr(ti, n, { originalEvent: a }, {
1763
+ a.target && !r.current && _r(ii, n, { originalEvent: a }, {
1721
1764
  discrete: !1
1722
1765
  });
1723
1766
  };
@@ -1727,20 +1770,20 @@ function ai(e, t = globalThis == null ? void 0 : globalThis.document) {
1727
1770
  onBlurCapture: () => r.current = !1
1728
1771
  };
1729
1772
  }
1730
- function Vn() {
1731
- const e = new CustomEvent(an);
1773
+ function $n() {
1774
+ const e = new CustomEvent(sn);
1732
1775
  document.dispatchEvent(e);
1733
1776
  }
1734
- function Rr(e, t, n, { discrete: r }) {
1777
+ function _r(e, t, n, { discrete: r }) {
1735
1778
  const o = n.originalEvent.target, a = new CustomEvent(e, { bubbles: !1, cancelable: !0, detail: n });
1736
- t && o.addEventListener(e, t, { once: !0 }), r ? qa(o, a) : o.dispatchEvent(a);
1779
+ t && o.addEventListener(e, t, { once: !0 }), r ? ni(o, a) : o.dispatchEvent(a);
1737
1780
  }
1738
- var Xt = 0;
1739
- function ii() {
1781
+ var Kt = 0;
1782
+ function di() {
1740
1783
  u.useEffect(() => {
1741
1784
  const e = document.querySelectorAll("[data-radix-focus-guard]");
1742
- return document.body.insertAdjacentElement("afterbegin", e[0] ?? Wn()), document.body.insertAdjacentElement("beforeend", e[1] ?? Wn()), Xt++, () => {
1743
- Xt === 1 && document.querySelectorAll("[data-radix-focus-guard]").forEach((t) => t.remove()), Xt--;
1785
+ return document.body.insertAdjacentElement("afterbegin", e[0] ?? Wn()), document.body.insertAdjacentElement("beforeend", e[1] ?? Wn()), Kt++, () => {
1786
+ Kt === 1 && document.querySelectorAll("[data-radix-focus-guard]").forEach((t) => t.remove()), Kt--;
1744
1787
  };
1745
1788
  }, []);
1746
1789
  }
@@ -1748,14 +1791,14 @@ function Wn() {
1748
1791
  const e = document.createElement("span");
1749
1792
  return e.setAttribute("data-radix-focus-guard", ""), e.tabIndex = 0, e.style.outline = "none", e.style.opacity = "0", e.style.position = "fixed", e.style.pointerEvents = "none", e;
1750
1793
  }
1751
- var Kt = "focusScope.autoFocusOnMount", Gt = "focusScope.autoFocusOnUnmount", $n = { bubbles: !1, cancelable: !0 }, si = "FocusScope", Ir = u.forwardRef((e, t) => {
1794
+ var Gt = "focusScope.autoFocusOnMount", Zt = "focusScope.autoFocusOnUnmount", Un = { bubbles: !1, cancelable: !0 }, fi = "FocusScope", Nr = u.forwardRef((e, t) => {
1752
1795
  const {
1753
1796
  loop: n = !1,
1754
1797
  trapped: r = !1,
1755
1798
  onMountAutoFocus: o,
1756
1799
  onUnmountAutoFocus: a,
1757
1800
  ...i
1758
- } = e, [s, l] = u.useState(null), c = $e(o), d = $e(a), p = u.useRef(null), g = Z(t, (f) => l(f)), v = u.useRef({
1801
+ } = e, [s, l] = u.useState(null), c = We(o), d = We(a), p = u.useRef(null), g = Z(t, (f) => l(f)), v = u.useRef({
1759
1802
  paused: !1,
1760
1803
  pause() {
1761
1804
  this.paused = !0;
@@ -1769,15 +1812,15 @@ var Kt = "focusScope.autoFocusOnMount", Gt = "focusScope.autoFocusOnUnmount", $n
1769
1812
  let f = function(y) {
1770
1813
  if (v.paused || !s) return;
1771
1814
  const S = y.target;
1772
- s.contains(S) ? p.current = S : _e(p.current, { select: !0 });
1815
+ s.contains(S) ? p.current = S : Ne(p.current, { select: !0 });
1773
1816
  }, w = function(y) {
1774
1817
  if (v.paused || !s) return;
1775
1818
  const S = y.relatedTarget;
1776
- S !== null && (s.contains(S) || _e(p.current, { select: !0 }));
1819
+ S !== null && (s.contains(S) || Ne(p.current, { select: !0 }));
1777
1820
  }, b = function(y) {
1778
1821
  if (document.activeElement === document.body)
1779
1822
  for (const E of y)
1780
- E.removedNodes.length > 0 && _e(s);
1823
+ E.removedNodes.length > 0 && Ne(s);
1781
1824
  };
1782
1825
  document.addEventListener("focusin", f), document.addEventListener("focusout", w);
1783
1826
  const x = new MutationObserver(b);
@@ -1787,16 +1830,16 @@ var Kt = "focusScope.autoFocusOnMount", Gt = "focusScope.autoFocusOnUnmount", $n
1787
1830
  }
1788
1831
  }, [r, s, v.paused]), u.useEffect(() => {
1789
1832
  if (s) {
1790
- Hn.add(v);
1833
+ jn.add(v);
1791
1834
  const f = document.activeElement;
1792
1835
  if (!s.contains(f)) {
1793
- const b = new CustomEvent(Kt, $n);
1794
- s.addEventListener(Kt, c), s.dispatchEvent(b), b.defaultPrevented || (li(pi(Nr(s)), { select: !0 }), document.activeElement === f && _e(s));
1836
+ const b = new CustomEvent(Gt, Un);
1837
+ s.addEventListener(Gt, c), s.dispatchEvent(b), b.defaultPrevented || (pi(wi(Or(s)), { select: !0 }), document.activeElement === f && Ne(s));
1795
1838
  }
1796
1839
  return () => {
1797
- s.removeEventListener(Kt, c), setTimeout(() => {
1798
- const b = new CustomEvent(Gt, $n);
1799
- s.addEventListener(Gt, d), s.dispatchEvent(b), b.defaultPrevented || _e(f ?? document.body, { select: !0 }), s.removeEventListener(Gt, d), Hn.remove(v);
1840
+ s.removeEventListener(Gt, c), setTimeout(() => {
1841
+ const b = new CustomEvent(Zt, Un);
1842
+ s.addEventListener(Zt, d), s.dispatchEvent(b), b.defaultPrevented || Ne(f ?? document.body, { select: !0 }), s.removeEventListener(Zt, d), jn.remove(v);
1800
1843
  }, 0);
1801
1844
  };
1802
1845
  }
@@ -1806,25 +1849,25 @@ var Kt = "focusScope.autoFocusOnMount", Gt = "focusScope.autoFocusOnUnmount", $n
1806
1849
  if (!n && !r || v.paused) return;
1807
1850
  const w = f.key === "Tab" && !f.altKey && !f.ctrlKey && !f.metaKey, b = document.activeElement;
1808
1851
  if (w && b) {
1809
- const x = f.currentTarget, [y, S] = ci(x);
1810
- y && S ? !f.shiftKey && b === S ? (f.preventDefault(), n && _e(y, { select: !0 })) : f.shiftKey && b === y && (f.preventDefault(), n && _e(S, { select: !0 })) : b === x && f.preventDefault();
1852
+ const x = f.currentTarget, [y, S] = hi(x);
1853
+ y && S ? !f.shiftKey && b === S ? (f.preventDefault(), n && Ne(y, { select: !0 })) : f.shiftKey && b === y && (f.preventDefault(), n && Ne(S, { select: !0 })) : b === x && f.preventDefault();
1811
1854
  }
1812
1855
  },
1813
1856
  [n, r, v.paused]
1814
1857
  );
1815
1858
  return /* @__PURE__ */ k(K.div, { tabIndex: -1, ...i, ref: g, onKeyDown: m });
1816
1859
  });
1817
- Ir.displayName = si;
1818
- function li(e, { select: t = !1 } = {}) {
1860
+ Nr.displayName = fi;
1861
+ function pi(e, { select: t = !1 } = {}) {
1819
1862
  const n = document.activeElement;
1820
1863
  for (const r of e)
1821
- if (_e(r, { select: t }), document.activeElement !== n) return;
1864
+ if (Ne(r, { select: t }), document.activeElement !== n) return;
1822
1865
  }
1823
- function ci(e) {
1824
- const t = Nr(e), n = Un(t, e), r = Un(t.reverse(), e);
1866
+ function hi(e) {
1867
+ const t = Or(e), n = Hn(t, e), r = Hn(t.reverse(), e);
1825
1868
  return [n, r];
1826
1869
  }
1827
- function Nr(e) {
1870
+ function Or(e) {
1828
1871
  const t = [], n = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, {
1829
1872
  acceptNode: (r) => {
1830
1873
  const o = r.tagName === "INPUT" && r.type === "hidden";
@@ -1834,11 +1877,11 @@ function Nr(e) {
1834
1877
  for (; n.nextNode(); ) t.push(n.currentNode);
1835
1878
  return t;
1836
1879
  }
1837
- function Un(e, t) {
1880
+ function Hn(e, t) {
1838
1881
  for (const n of e)
1839
- if (!ui(n, { upTo: t })) return n;
1882
+ if (!vi(n, { upTo: t })) return n;
1840
1883
  }
1841
- function ui(e, { upTo: t }) {
1884
+ function vi(e, { upTo: t }) {
1842
1885
  if (getComputedStyle(e).visibility === "hidden") return !0;
1843
1886
  for (; e; ) {
1844
1887
  if (t !== void 0 && e === t) return !1;
@@ -1847,58 +1890,58 @@ function ui(e, { upTo: t }) {
1847
1890
  }
1848
1891
  return !1;
1849
1892
  }
1850
- function di(e) {
1893
+ function gi(e) {
1851
1894
  return e instanceof HTMLInputElement && "select" in e;
1852
1895
  }
1853
- function _e(e, { select: t = !1 } = {}) {
1896
+ function Ne(e, { select: t = !1 } = {}) {
1854
1897
  if (e && e.focus) {
1855
1898
  const n = document.activeElement;
1856
- e.focus({ preventScroll: !0 }), e !== n && di(e) && t && e.select();
1899
+ e.focus({ preventScroll: !0 }), e !== n && gi(e) && t && e.select();
1857
1900
  }
1858
1901
  }
1859
- var Hn = fi();
1860
- function fi() {
1902
+ var jn = mi();
1903
+ function mi() {
1861
1904
  let e = [];
1862
1905
  return {
1863
1906
  add(t) {
1864
1907
  const n = e[0];
1865
- t !== n && (n == null || n.pause()), e = jn(e, t), e.unshift(t);
1908
+ t !== n && (n == null || n.pause()), e = Yn(e, t), e.unshift(t);
1866
1909
  },
1867
1910
  remove(t) {
1868
1911
  var n;
1869
- e = jn(e, t), (n = e[0]) == null || n.resume();
1912
+ e = Yn(e, t), (n = e[0]) == null || n.resume();
1870
1913
  }
1871
1914
  };
1872
1915
  }
1873
- function jn(e, t) {
1916
+ function Yn(e, t) {
1874
1917
  const n = [...e], r = n.indexOf(t);
1875
1918
  return r !== -1 && n.splice(r, 1), n;
1876
1919
  }
1877
- function pi(e) {
1920
+ function wi(e) {
1878
1921
  return e.filter((t) => t.tagName !== "A");
1879
1922
  }
1880
1923
  var te = globalThis != null && globalThis.document ? u.useLayoutEffect : () => {
1881
- }, hi = u[" useId ".trim().toString()] || (() => {
1882
- }), vi = 0;
1883
- function yn(e) {
1884
- const [t, n] = u.useState(hi());
1924
+ }, bi = u[" useId ".trim().toString()] || (() => {
1925
+ }), xi = 0;
1926
+ function Cn(e) {
1927
+ const [t, n] = u.useState(bi());
1885
1928
  return te(() => {
1886
- n((r) => r ?? String(vi++));
1929
+ n((r) => r ?? String(xi++));
1887
1930
  }, [e]), e || (t ? `radix-${t}` : "");
1888
1931
  }
1889
- const gi = ["top", "right", "bottom", "left"], Le = Math.min, ae = Math.max, Nt = Math.round, Ct = Math.floor, ye = (e) => ({
1932
+ const yi = ["top", "right", "bottom", "left"], Le = Math.min, ae = Math.max, Nt = Math.round, Ct = Math.floor, ye = (e) => ({
1890
1933
  x: e,
1891
1934
  y: e
1892
- }), mi = {
1935
+ }), Ci = {
1893
1936
  left: "right",
1894
1937
  right: "left",
1895
1938
  bottom: "top",
1896
1939
  top: "bottom"
1897
- }, wi = {
1940
+ }, Si = {
1898
1941
  start: "end",
1899
1942
  end: "start"
1900
1943
  };
1901
- function sn(e, t, n) {
1944
+ function ln(e, t, n) {
1902
1945
  return ae(e, Le(t, n));
1903
1946
  }
1904
1947
  function Ae(e, t) {
@@ -1910,32 +1953,32 @@ function Pe(e) {
1910
1953
  function at(e) {
1911
1954
  return e.split("-")[1];
1912
1955
  }
1913
- function Cn(e) {
1956
+ function Sn(e) {
1914
1957
  return e === "x" ? "y" : "x";
1915
1958
  }
1916
- function Sn(e) {
1959
+ function En(e) {
1917
1960
  return e === "y" ? "height" : "width";
1918
1961
  }
1919
1962
  function De(e) {
1920
1963
  return ["top", "bottom"].includes(Pe(e)) ? "y" : "x";
1921
1964
  }
1922
- function En(e) {
1923
- return Cn(De(e));
1965
+ function kn(e) {
1966
+ return Sn(De(e));
1924
1967
  }
1925
- function bi(e, t, n) {
1968
+ function Ei(e, t, n) {
1926
1969
  n === void 0 && (n = !1);
1927
- const r = at(e), o = En(e), a = Sn(o);
1970
+ const r = at(e), o = kn(e), a = En(o);
1928
1971
  let i = o === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
1929
- return t.reference[a] > t.floating[a] && (i = _t(i)), [i, _t(i)];
1972
+ return t.reference[a] > t.floating[a] && (i = Ot(i)), [i, Ot(i)];
1930
1973
  }
1931
- function xi(e) {
1932
- const t = _t(e);
1933
- return [ln(e), t, ln(t)];
1974
+ function ki(e) {
1975
+ const t = Ot(e);
1976
+ return [cn(e), t, cn(t)];
1934
1977
  }
1935
- function ln(e) {
1936
- return e.replace(/start|end/g, (t) => wi[t]);
1978
+ function cn(e) {
1979
+ return e.replace(/start|end/g, (t) => Si[t]);
1937
1980
  }
1938
- function yi(e, t, n) {
1981
+ function Ti(e, t, n) {
1939
1982
  const r = ["left", "right"], o = ["right", "left"], a = ["top", "bottom"], i = ["bottom", "top"];
1940
1983
  switch (e) {
1941
1984
  case "top":
@@ -1948,15 +1991,15 @@ function yi(e, t, n) {
1948
1991
  return [];
1949
1992
  }
1950
1993
  }
1951
- function Ci(e, t, n, r) {
1994
+ function Ai(e, t, n, r) {
1952
1995
  const o = at(e);
1953
- let a = yi(Pe(e), n === "start", r);
1954
- return o && (a = a.map((i) => i + "-" + o), t && (a = a.concat(a.map(ln)))), a;
1996
+ let a = Ti(Pe(e), n === "start", r);
1997
+ return o && (a = a.map((i) => i + "-" + o), t && (a = a.concat(a.map(cn)))), a;
1955
1998
  }
1956
- function _t(e) {
1957
- return e.replace(/left|right|bottom|top/g, (t) => mi[t]);
1999
+ function Ot(e) {
2000
+ return e.replace(/left|right|bottom|top/g, (t) => Ci[t]);
1958
2001
  }
1959
- function Si(e) {
2002
+ function Pi(e) {
1960
2003
  return {
1961
2004
  top: 0,
1962
2005
  right: 0,
@@ -1965,15 +2008,15 @@ function Si(e) {
1965
2008
  ...e
1966
2009
  };
1967
2010
  }
1968
- function _r(e) {
1969
- return typeof e != "number" ? Si(e) : {
2011
+ function Mr(e) {
2012
+ return typeof e != "number" ? Pi(e) : {
1970
2013
  top: e,
1971
2014
  right: e,
1972
2015
  bottom: e,
1973
2016
  left: e
1974
2017
  };
1975
2018
  }
1976
- function Ot(e) {
2019
+ function Mt(e) {
1977
2020
  const {
1978
2021
  x: t,
1979
2022
  y: n,
@@ -1991,12 +2034,12 @@ function Ot(e) {
1991
2034
  y: n
1992
2035
  };
1993
2036
  }
1994
- function Yn(e, t, n) {
2037
+ function Xn(e, t, n) {
1995
2038
  let {
1996
2039
  reference: r,
1997
2040
  floating: o
1998
2041
  } = e;
1999
- const a = De(t), i = En(t), s = Sn(i), l = Pe(t), c = a === "y", d = r.x + r.width / 2 - o.width / 2, p = r.y + r.height / 2 - o.height / 2, g = r[s] / 2 - o[s] / 2;
2042
+ const a = De(t), i = kn(t), s = En(i), l = Pe(t), c = a === "y", d = r.x + r.width / 2 - o.width / 2, p = r.y + r.height / 2 - o.height / 2, g = r[s] / 2 - o[s] / 2;
2000
2043
  let v;
2001
2044
  switch (l) {
2002
2045
  case "top":
@@ -2039,7 +2082,7 @@ function Yn(e, t, n) {
2039
2082
  }
2040
2083
  return v;
2041
2084
  }
2042
- const Ei = async (e, t, n) => {
2085
+ const Ri = async (e, t, n) => {
2043
2086
  const {
2044
2087
  placement: r = "bottom",
2045
2088
  strategy: o = "absolute",
@@ -2053,7 +2096,7 @@ const Ei = async (e, t, n) => {
2053
2096
  }), {
2054
2097
  x: d,
2055
2098
  y: p
2056
- } = Yn(c, r, l), g = r, v = {}, m = 0;
2099
+ } = Xn(c, r, l), g = r, v = {}, m = 0;
2057
2100
  for (let f = 0; f < s.length; f++) {
2058
2101
  const {
2059
2102
  name: w,
@@ -2090,7 +2133,7 @@ const Ei = async (e, t, n) => {
2090
2133
  }) : E.rects), {
2091
2134
  x: d,
2092
2135
  y: p
2093
- } = Yn(c, g, l)), f = -1);
2136
+ } = Xn(c, g, l)), f = -1);
2094
2137
  }
2095
2138
  return {
2096
2139
  x: d,
@@ -2116,7 +2159,7 @@ async function gt(e, t) {
2116
2159
  elementContext: p = "floating",
2117
2160
  altBoundary: g = !1,
2118
2161
  padding: v = 0
2119
- } = Ae(t, e), m = _r(v), w = s[g ? p === "floating" ? "reference" : "floating" : p], b = Ot(await a.getClippingRect({
2162
+ } = Ae(t, e), m = Mr(v), w = s[g ? p === "floating" ? "reference" : "floating" : p], b = Mt(await a.getClippingRect({
2120
2163
  element: (n = await (a.isElement == null ? void 0 : a.isElement(w))) == null || n ? w : w.contextElement || await (a.getDocumentElement == null ? void 0 : a.getDocumentElement(s.floating)),
2121
2164
  boundary: c,
2122
2165
  rootBoundary: d,
@@ -2132,7 +2175,7 @@ async function gt(e, t) {
2132
2175
  } : {
2133
2176
  x: 1,
2134
2177
  y: 1
2135
- }, E = Ot(a.convertOffsetParentRelativeRectToViewportRelativeRect ? await a.convertOffsetParentRelativeRectToViewportRelativeRect({
2178
+ }, E = Mt(a.convertOffsetParentRelativeRectToViewportRelativeRect ? await a.convertOffsetParentRelativeRectToViewportRelativeRect({
2136
2179
  elements: s,
2137
2180
  rect: x,
2138
2181
  offsetParent: y,
@@ -2145,7 +2188,7 @@ async function gt(e, t) {
2145
2188
  right: (E.right - b.right + m.right) / S.x
2146
2189
  };
2147
2190
  }
2148
- const ki = (e) => ({
2191
+ const Ii = (e) => ({
2149
2192
  name: "arrow",
2150
2193
  options: e,
2151
2194
  async fn(t) {
@@ -2163,26 +2206,26 @@ const ki = (e) => ({
2163
2206
  } = Ae(e, t) || {};
2164
2207
  if (c == null)
2165
2208
  return {};
2166
- const p = _r(d), g = {
2209
+ const p = Mr(d), g = {
2167
2210
  x: n,
2168
2211
  y: r
2169
- }, v = En(o), m = Sn(v), f = await i.getDimensions(c), w = v === "y", b = w ? "top" : "left", x = w ? "bottom" : "right", y = w ? "clientHeight" : "clientWidth", S = a.reference[m] + a.reference[v] - g[v] - a.floating[m], E = g[v] - a.reference[v], T = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(c));
2212
+ }, v = kn(o), m = En(v), f = await i.getDimensions(c), w = v === "y", b = w ? "top" : "left", x = w ? "bottom" : "right", y = w ? "clientHeight" : "clientWidth", S = a.reference[m] + a.reference[v] - g[v] - a.floating[m], E = g[v] - a.reference[v], T = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(c));
2170
2213
  let C = T ? T[y] : 0;
2171
2214
  (!C || !await (i.isElement == null ? void 0 : i.isElement(T))) && (C = s.floating[y] || a.floating[m]);
2172
- const P = S / 2 - E / 2, O = C / 2 - f[m] / 2 - 1, M = Le(p[b], O), V = Le(p[x], O), W = M, D = C - f[m] - V, _ = C / 2 - f[m] / 2 + P, Y = sn(W, _, D), N = !l.arrow && at(o) != null && _ !== Y && a.reference[m] / 2 - (_ < W ? M : V) - f[m] / 2 < 0, L = N ? _ < W ? _ - W : _ - D : 0;
2215
+ const R = S / 2 - E / 2, O = C / 2 - f[m] / 2 - 1, M = Le(p[b], O), V = Le(p[x], O), $ = M, D = C - f[m] - V, N = C / 2 - f[m] / 2 + R, X = ln($, N, D), _ = !l.arrow && at(o) != null && N !== X && a.reference[m] / 2 - (N < $ ? M : V) - f[m] / 2 < 0, L = _ ? N < $ ? N - $ : N - D : 0;
2173
2216
  return {
2174
2217
  [v]: g[v] + L,
2175
2218
  data: {
2176
- [v]: Y,
2177
- centerOffset: _ - Y - L,
2178
- ...N && {
2219
+ [v]: X,
2220
+ centerOffset: N - X - L,
2221
+ ..._ && {
2179
2222
  alignmentOffset: L
2180
2223
  }
2181
2224
  },
2182
- reset: N
2225
+ reset: _
2183
2226
  };
2184
2227
  }
2185
- }), Ti = function(e) {
2228
+ }), _i = function(e) {
2186
2229
  return e === void 0 && (e = {}), {
2187
2230
  name: "flip",
2188
2231
  options: e,
@@ -2206,55 +2249,55 @@ const ki = (e) => ({
2206
2249
  } = Ae(e, t);
2207
2250
  if ((n = a.arrow) != null && n.alignmentOffset)
2208
2251
  return {};
2209
- const b = Pe(o), x = De(s), y = Pe(s) === s, S = await (l.isRTL == null ? void 0 : l.isRTL(c.floating)), E = g || (y || !f ? [_t(s)] : xi(s)), T = m !== "none";
2210
- !g && T && E.push(...Ci(s, f, m, S));
2211
- const C = [s, ...E], P = await gt(t, w), O = [];
2252
+ const b = Pe(o), x = De(s), y = Pe(s) === s, S = await (l.isRTL == null ? void 0 : l.isRTL(c.floating)), E = g || (y || !f ? [Ot(s)] : ki(s)), T = m !== "none";
2253
+ !g && T && E.push(...Ai(s, f, m, S));
2254
+ const C = [s, ...E], R = await gt(t, w), O = [];
2212
2255
  let M = ((r = a.flip) == null ? void 0 : r.overflows) || [];
2213
- if (d && O.push(P[b]), p) {
2214
- const _ = bi(o, i, S);
2215
- O.push(P[_[0]], P[_[1]]);
2256
+ if (d && O.push(R[b]), p) {
2257
+ const N = Ei(o, i, S);
2258
+ O.push(R[N[0]], R[N[1]]);
2216
2259
  }
2217
2260
  if (M = [...M, {
2218
2261
  placement: o,
2219
2262
  overflows: O
2220
- }], !O.every((_) => _ <= 0)) {
2221
- var V, W;
2222
- const _ = (((V = a.flip) == null ? void 0 : V.index) || 0) + 1, Y = C[_];
2223
- if (Y)
2263
+ }], !O.every((N) => N <= 0)) {
2264
+ var V, $;
2265
+ const N = (((V = a.flip) == null ? void 0 : V.index) || 0) + 1, X = C[N];
2266
+ if (X)
2224
2267
  return {
2225
2268
  data: {
2226
- index: _,
2269
+ index: N,
2227
2270
  overflows: M
2228
2271
  },
2229
2272
  reset: {
2230
- placement: Y
2273
+ placement: X
2231
2274
  }
2232
2275
  };
2233
- let N = (W = M.filter((L) => L.overflows[0] <= 0).sort((L, R) => L.overflows[1] - R.overflows[1])[0]) == null ? void 0 : W.placement;
2234
- if (!N)
2276
+ let _ = ($ = M.filter((L) => L.overflows[0] <= 0).sort((L, I) => L.overflows[1] - I.overflows[1])[0]) == null ? void 0 : $.placement;
2277
+ if (!_)
2235
2278
  switch (v) {
2236
2279
  case "bestFit": {
2237
2280
  var D;
2238
- const L = (D = M.filter((R) => {
2281
+ const L = (D = M.filter((I) => {
2239
2282
  if (T) {
2240
- const $ = De(R.placement);
2241
- return $ === x || // Create a bias to the `y` side axis due to horizontal
2283
+ const W = De(I.placement);
2284
+ return W === x || // Create a bias to the `y` side axis due to horizontal
2242
2285
  // reading directions favoring greater width.
2243
- $ === "y";
2286
+ W === "y";
2244
2287
  }
2245
2288
  return !0;
2246
- }).map((R) => [R.placement, R.overflows.filter(($) => $ > 0).reduce(($, ee) => $ + ee, 0)]).sort((R, $) => R[1] - $[1])[0]) == null ? void 0 : D[0];
2247
- L && (N = L);
2289
+ }).map((I) => [I.placement, I.overflows.filter((W) => W > 0).reduce((W, ee) => W + ee, 0)]).sort((I, W) => I[1] - W[1])[0]) == null ? void 0 : D[0];
2290
+ L && (_ = L);
2248
2291
  break;
2249
2292
  }
2250
2293
  case "initialPlacement":
2251
- N = s;
2294
+ _ = s;
2252
2295
  break;
2253
2296
  }
2254
- if (o !== N)
2297
+ if (o !== _)
2255
2298
  return {
2256
2299
  reset: {
2257
- placement: N
2300
+ placement: _
2258
2301
  }
2259
2302
  };
2260
2303
  }
@@ -2262,7 +2305,7 @@ const ki = (e) => ({
2262
2305
  }
2263
2306
  };
2264
2307
  };
2265
- function Xn(e, t) {
2308
+ function Kn(e, t) {
2266
2309
  return {
2267
2310
  top: e.top - t.height,
2268
2311
  right: e.right - t.width,
@@ -2270,10 +2313,10 @@ function Xn(e, t) {
2270
2313
  left: e.left - t.width
2271
2314
  };
2272
2315
  }
2273
- function Kn(e) {
2274
- return gi.some((t) => e[t] >= 0);
2316
+ function Gn(e) {
2317
+ return yi.some((t) => e[t] >= 0);
2275
2318
  }
2276
- const Ai = function(e) {
2319
+ const Ni = function(e) {
2277
2320
  return e === void 0 && (e = {}), {
2278
2321
  name: "hide",
2279
2322
  options: e,
@@ -2289,11 +2332,11 @@ const Ai = function(e) {
2289
2332
  const a = await gt(t, {
2290
2333
  ...o,
2291
2334
  elementContext: "reference"
2292
- }), i = Xn(a, n.reference);
2335
+ }), i = Kn(a, n.reference);
2293
2336
  return {
2294
2337
  data: {
2295
2338
  referenceHiddenOffsets: i,
2296
- referenceHidden: Kn(i)
2339
+ referenceHidden: Gn(i)
2297
2340
  }
2298
2341
  };
2299
2342
  }
@@ -2301,11 +2344,11 @@ const Ai = function(e) {
2301
2344
  const a = await gt(t, {
2302
2345
  ...o,
2303
2346
  altBoundary: !0
2304
- }), i = Xn(a, n.floating);
2347
+ }), i = Kn(a, n.floating);
2305
2348
  return {
2306
2349
  data: {
2307
2350
  escapedOffsets: i,
2308
- escaped: Kn(i)
2351
+ escaped: Gn(i)
2309
2352
  }
2310
2353
  };
2311
2354
  }
@@ -2315,7 +2358,7 @@ const Ai = function(e) {
2315
2358
  }
2316
2359
  };
2317
2360
  };
2318
- async function Pi(e, t) {
2361
+ async function Oi(e, t) {
2319
2362
  const {
2320
2363
  placement: n,
2321
2364
  platform: r,
@@ -2342,7 +2385,7 @@ async function Pi(e, t) {
2342
2385
  y: v * d
2343
2386
  };
2344
2387
  }
2345
- const Ri = function(e) {
2388
+ const Mi = function(e) {
2346
2389
  return e === void 0 && (e = 0), {
2347
2390
  name: "offset",
2348
2391
  options: e,
@@ -2353,7 +2396,7 @@ const Ri = function(e) {
2353
2396
  y: a,
2354
2397
  placement: i,
2355
2398
  middlewareData: s
2356
- } = t, l = await Pi(t, e);
2399
+ } = t, l = await Oi(t, e);
2357
2400
  return i === ((n = s.offset) == null ? void 0 : n.placement) && (r = s.arrow) != null && r.alignmentOffset ? {} : {
2358
2401
  x: o + l.x,
2359
2402
  y: a + l.y,
@@ -2364,7 +2407,7 @@ const Ri = function(e) {
2364
2407
  };
2365
2408
  }
2366
2409
  };
2367
- }, Ii = function(e) {
2410
+ }, Li = function(e) {
2368
2411
  return e === void 0 && (e = {}), {
2369
2412
  name: "shift",
2370
2413
  options: e,
@@ -2392,15 +2435,15 @@ const Ri = function(e) {
2392
2435
  } = Ae(e, t), c = {
2393
2436
  x: n,
2394
2437
  y: r
2395
- }, d = await gt(t, l), p = De(Pe(o)), g = Cn(p);
2438
+ }, d = await gt(t, l), p = De(Pe(o)), g = Sn(p);
2396
2439
  let v = c[g], m = c[p];
2397
2440
  if (a) {
2398
2441
  const w = g === "y" ? "top" : "left", b = g === "y" ? "bottom" : "right", x = v + d[w], y = v - d[b];
2399
- v = sn(x, v, y);
2442
+ v = ln(x, v, y);
2400
2443
  }
2401
2444
  if (i) {
2402
2445
  const w = p === "y" ? "top" : "left", b = p === "y" ? "bottom" : "right", x = m + d[w], y = m - d[b];
2403
- m = sn(x, m, y);
2446
+ m = ln(x, m, y);
2404
2447
  }
2405
2448
  const f = s.fn({
2406
2449
  ...t,
@@ -2420,7 +2463,7 @@ const Ri = function(e) {
2420
2463
  };
2421
2464
  }
2422
2465
  };
2423
- }, Ni = function(e) {
2466
+ }, Di = function(e) {
2424
2467
  return e === void 0 && (e = {}), {
2425
2468
  options: e,
2426
2469
  fn(t) {
@@ -2437,7 +2480,7 @@ const Ri = function(e) {
2437
2480
  } = Ae(e, t), d = {
2438
2481
  x: n,
2439
2482
  y: r
2440
- }, p = De(o), g = Cn(p);
2483
+ }, p = De(o), g = Sn(p);
2441
2484
  let v = d[g], m = d[p];
2442
2485
  const f = Ae(s, t), w = typeof f == "number" ? {
2443
2486
  mainAxis: f,
@@ -2462,7 +2505,7 @@ const Ri = function(e) {
2462
2505
  };
2463
2506
  }
2464
2507
  };
2465
- }, _i = function(e) {
2508
+ }, Bi = function(e) {
2466
2509
  return e === void 0 && (e = {}), {
2467
2510
  name: "size",
2468
2511
  options: e,
@@ -2484,14 +2527,14 @@ const Ri = function(e) {
2484
2527
  let w, b;
2485
2528
  p === "top" || p === "bottom" ? (w = p, b = g === (await (i.isRTL == null ? void 0 : i.isRTL(s.floating)) ? "start" : "end") ? "left" : "right") : (b = p, w = g === "end" ? "top" : "bottom");
2486
2529
  const x = f - d.top - d.bottom, y = m - d.left - d.right, S = Le(f - d[w], x), E = Le(m - d[b], y), T = !t.middlewareData.shift;
2487
- let C = S, P = E;
2488
- if ((n = t.middlewareData.shift) != null && n.enabled.x && (P = y), (r = t.middlewareData.shift) != null && r.enabled.y && (C = x), T && !g) {
2489
- const M = ae(d.left, 0), V = ae(d.right, 0), W = ae(d.top, 0), D = ae(d.bottom, 0);
2490
- v ? P = m - 2 * (M !== 0 || V !== 0 ? M + V : ae(d.left, d.right)) : C = f - 2 * (W !== 0 || D !== 0 ? W + D : ae(d.top, d.bottom));
2530
+ let C = S, R = E;
2531
+ if ((n = t.middlewareData.shift) != null && n.enabled.x && (R = y), (r = t.middlewareData.shift) != null && r.enabled.y && (C = x), T && !g) {
2532
+ const M = ae(d.left, 0), V = ae(d.right, 0), $ = ae(d.top, 0), D = ae(d.bottom, 0);
2533
+ v ? R = m - 2 * (M !== 0 || V !== 0 ? M + V : ae(d.left, d.right)) : C = f - 2 * ($ !== 0 || D !== 0 ? $ + D : ae(d.top, d.bottom));
2491
2534
  }
2492
2535
  await l({
2493
2536
  ...t,
2494
- availableWidth: P,
2537
+ availableWidth: R,
2495
2538
  availableHeight: C
2496
2539
  });
2497
2540
  const O = await i.getDimensions(s.floating);
@@ -2503,11 +2546,11 @@ const Ri = function(e) {
2503
2546
  }
2504
2547
  };
2505
2548
  };
2506
- function zt() {
2549
+ function Ft() {
2507
2550
  return typeof window < "u";
2508
2551
  }
2509
2552
  function it(e) {
2510
- return Or(e) ? (e.nodeName || "").toLowerCase() : "#document";
2553
+ return Lr(e) ? (e.nodeName || "").toLowerCase() : "#document";
2511
2554
  }
2512
2555
  function ie(e) {
2513
2556
  var t;
@@ -2515,19 +2558,19 @@ function ie(e) {
2515
2558
  }
2516
2559
  function Se(e) {
2517
2560
  var t;
2518
- return (t = (Or(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
2561
+ return (t = (Lr(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
2519
2562
  }
2520
- function Or(e) {
2521
- return zt() ? e instanceof Node || e instanceof ie(e).Node : !1;
2563
+ function Lr(e) {
2564
+ return Ft() ? e instanceof Node || e instanceof ie(e).Node : !1;
2522
2565
  }
2523
2566
  function de(e) {
2524
- return zt() ? e instanceof Element || e instanceof ie(e).Element : !1;
2567
+ return Ft() ? e instanceof Element || e instanceof ie(e).Element : !1;
2525
2568
  }
2526
2569
  function Ce(e) {
2527
- return zt() ? e instanceof HTMLElement || e instanceof ie(e).HTMLElement : !1;
2570
+ return Ft() ? e instanceof HTMLElement || e instanceof ie(e).HTMLElement : !1;
2528
2571
  }
2529
- function Gn(e) {
2530
- return !zt() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof ie(e).ShadowRoot;
2572
+ function Zn(e) {
2573
+ return !Ft() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof ie(e).ShadowRoot;
2531
2574
  }
2532
2575
  function bt(e) {
2533
2576
  const {
@@ -2538,10 +2581,10 @@ function bt(e) {
2538
2581
  } = fe(e);
2539
2582
  return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && !["inline", "contents"].includes(o);
2540
2583
  }
2541
- function Oi(e) {
2584
+ function zi(e) {
2542
2585
  return ["table", "td", "th"].includes(it(e));
2543
2586
  }
2544
- function Ft(e) {
2587
+ function Vt(e) {
2545
2588
  return [":popover-open", ":modal"].some((t) => {
2546
2589
  try {
2547
2590
  return e.matches(t);
@@ -2550,22 +2593,22 @@ function Ft(e) {
2550
2593
  }
2551
2594
  });
2552
2595
  }
2553
- function kn(e) {
2554
- const t = Tn(), n = de(e) ? fe(e) : e;
2596
+ function Tn(e) {
2597
+ const t = An(), n = de(e) ? fe(e) : e;
2555
2598
  return ["transform", "translate", "scale", "rotate", "perspective"].some((r) => n[r] ? n[r] !== "none" : !1) || (n.containerType ? n.containerType !== "normal" : !1) || !t && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !t && (n.filter ? n.filter !== "none" : !1) || ["transform", "translate", "scale", "rotate", "perspective", "filter"].some((r) => (n.willChange || "").includes(r)) || ["paint", "layout", "strict", "content"].some((r) => (n.contain || "").includes(r));
2556
2599
  }
2557
- function Mi(e) {
2600
+ function Fi(e) {
2558
2601
  let t = Be(e);
2559
2602
  for (; Ce(t) && !nt(t); ) {
2560
- if (kn(t))
2603
+ if (Tn(t))
2561
2604
  return t;
2562
- if (Ft(t))
2605
+ if (Vt(t))
2563
2606
  return null;
2564
2607
  t = Be(t);
2565
2608
  }
2566
2609
  return null;
2567
2610
  }
2568
- function Tn() {
2611
+ function An() {
2569
2612
  return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
2570
2613
  }
2571
2614
  function nt(e) {
@@ -2574,7 +2617,7 @@ function nt(e) {
2574
2617
  function fe(e) {
2575
2618
  return ie(e).getComputedStyle(e);
2576
2619
  }
2577
- function Vt(e) {
2620
+ function $t(e) {
2578
2621
  return de(e) ? {
2579
2622
  scrollLeft: e.scrollLeft,
2580
2623
  scrollTop: e.scrollTop
@@ -2590,29 +2633,29 @@ function Be(e) {
2590
2633
  // Step into the shadow DOM of the parent of a slotted node.
2591
2634
  e.assignedSlot || // DOM Element detected.
2592
2635
  e.parentNode || // ShadowRoot detected.
2593
- Gn(e) && e.host || // Fallback.
2636
+ Zn(e) && e.host || // Fallback.
2594
2637
  Se(e)
2595
2638
  );
2596
- return Gn(t) ? t.host : t;
2639
+ return Zn(t) ? t.host : t;
2597
2640
  }
2598
- function Mr(e) {
2641
+ function Dr(e) {
2599
2642
  const t = Be(e);
2600
- return nt(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : Ce(t) && bt(t) ? t : Mr(t);
2643
+ return nt(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : Ce(t) && bt(t) ? t : Dr(t);
2601
2644
  }
2602
2645
  function mt(e, t, n) {
2603
2646
  var r;
2604
2647
  t === void 0 && (t = []), n === void 0 && (n = !0);
2605
- const o = Mr(e), a = o === ((r = e.ownerDocument) == null ? void 0 : r.body), i = ie(o);
2648
+ const o = Dr(e), a = o === ((r = e.ownerDocument) == null ? void 0 : r.body), i = ie(o);
2606
2649
  if (a) {
2607
- const s = cn(i);
2650
+ const s = un(i);
2608
2651
  return t.concat(i, i.visualViewport || [], bt(o) ? o : [], s && n ? mt(s) : []);
2609
2652
  }
2610
2653
  return t.concat(o, mt(o, [], n));
2611
2654
  }
2612
- function cn(e) {
2655
+ function un(e) {
2613
2656
  return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
2614
2657
  }
2615
- function Lr(e) {
2658
+ function Br(e) {
2616
2659
  const t = fe(e);
2617
2660
  let n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0;
2618
2661
  const o = Ce(e), a = o ? e.offsetWidth : n, i = o ? e.offsetHeight : r, s = Nt(n) !== a || Nt(r) !== i;
@@ -2622,80 +2665,80 @@ function Lr(e) {
2622
2665
  $: s
2623
2666
  };
2624
2667
  }
2625
- function An(e) {
2668
+ function Pn(e) {
2626
2669
  return de(e) ? e : e.contextElement;
2627
2670
  }
2628
2671
  function et(e) {
2629
- const t = An(e);
2672
+ const t = Pn(e);
2630
2673
  if (!Ce(t))
2631
2674
  return ye(1);
2632
2675
  const n = t.getBoundingClientRect(), {
2633
2676
  width: r,
2634
2677
  height: o,
2635
2678
  $: a
2636
- } = Lr(t);
2679
+ } = Br(t);
2637
2680
  let i = (a ? Nt(n.width) : n.width) / r, s = (a ? Nt(n.height) : n.height) / o;
2638
2681
  return (!i || !Number.isFinite(i)) && (i = 1), (!s || !Number.isFinite(s)) && (s = 1), {
2639
2682
  x: i,
2640
2683
  y: s
2641
2684
  };
2642
2685
  }
2643
- const Li = /* @__PURE__ */ ye(0);
2644
- function Dr(e) {
2686
+ const Vi = /* @__PURE__ */ ye(0);
2687
+ function zr(e) {
2645
2688
  const t = ie(e);
2646
- return !Tn() || !t.visualViewport ? Li : {
2689
+ return !An() || !t.visualViewport ? Vi : {
2647
2690
  x: t.visualViewport.offsetLeft,
2648
2691
  y: t.visualViewport.offsetTop
2649
2692
  };
2650
2693
  }
2651
- function Di(e, t, n) {
2694
+ function $i(e, t, n) {
2652
2695
  return t === void 0 && (t = !1), !n || t && n !== ie(e) ? !1 : t;
2653
2696
  }
2654
2697
  function Ue(e, t, n, r) {
2655
2698
  t === void 0 && (t = !1), n === void 0 && (n = !1);
2656
- const o = e.getBoundingClientRect(), a = An(e);
2699
+ const o = e.getBoundingClientRect(), a = Pn(e);
2657
2700
  let i = ye(1);
2658
2701
  t && (r ? de(r) && (i = et(r)) : i = et(e));
2659
- const s = Di(a, n, r) ? Dr(a) : ye(0);
2702
+ const s = $i(a, n, r) ? zr(a) : ye(0);
2660
2703
  let l = (o.left + s.x) / i.x, c = (o.top + s.y) / i.y, d = o.width / i.x, p = o.height / i.y;
2661
2704
  if (a) {
2662
2705
  const g = ie(a), v = r && de(r) ? ie(r) : r;
2663
- let m = g, f = cn(m);
2706
+ let m = g, f = un(m);
2664
2707
  for (; f && r && v !== m; ) {
2665
2708
  const w = et(f), b = f.getBoundingClientRect(), x = fe(f), y = b.left + (f.clientLeft + parseFloat(x.paddingLeft)) * w.x, S = b.top + (f.clientTop + parseFloat(x.paddingTop)) * w.y;
2666
- l *= w.x, c *= w.y, d *= w.x, p *= w.y, l += y, c += S, m = ie(f), f = cn(m);
2709
+ l *= w.x, c *= w.y, d *= w.x, p *= w.y, l += y, c += S, m = ie(f), f = un(m);
2667
2710
  }
2668
2711
  }
2669
- return Ot({
2712
+ return Mt({
2670
2713
  width: d,
2671
2714
  height: p,
2672
2715
  x: l,
2673
2716
  y: c
2674
2717
  });
2675
2718
  }
2676
- function Pn(e, t) {
2677
- const n = Vt(e).scrollLeft;
2719
+ function Rn(e, t) {
2720
+ const n = $t(e).scrollLeft;
2678
2721
  return t ? t.left + n : Ue(Se(e)).left + n;
2679
2722
  }
2680
- function Br(e, t, n) {
2723
+ function Fr(e, t, n) {
2681
2724
  n === void 0 && (n = !1);
2682
2725
  const r = e.getBoundingClientRect(), o = r.left + t.scrollLeft - (n ? 0 : (
2683
2726
  // RTL <body> scrollbar.
2684
- Pn(e, r)
2727
+ Rn(e, r)
2685
2728
  )), a = r.top + t.scrollTop;
2686
2729
  return {
2687
2730
  x: o,
2688
2731
  y: a
2689
2732
  };
2690
2733
  }
2691
- function Bi(e) {
2734
+ function Wi(e) {
2692
2735
  let {
2693
2736
  elements: t,
2694
2737
  rect: n,
2695
2738
  offsetParent: r,
2696
2739
  strategy: o
2697
2740
  } = e;
2698
- const a = o === "fixed", i = Se(r), s = t ? Ft(t.floating) : !1;
2741
+ const a = o === "fixed", i = Se(r), s = t ? Vt(t.floating) : !1;
2699
2742
  if (r === i || s && a)
2700
2743
  return n;
2701
2744
  let l = {
@@ -2703,11 +2746,11 @@ function Bi(e) {
2703
2746
  scrollTop: 0
2704
2747
  }, c = ye(1);
2705
2748
  const d = ye(0), p = Ce(r);
2706
- if ((p || !p && !a) && ((it(r) !== "body" || bt(i)) && (l = Vt(r)), Ce(r))) {
2749
+ if ((p || !p && !a) && ((it(r) !== "body" || bt(i)) && (l = $t(r)), Ce(r))) {
2707
2750
  const v = Ue(r);
2708
2751
  c = et(r), d.x = v.x + r.clientLeft, d.y = v.y + r.clientTop;
2709
2752
  }
2710
- const g = i && !p && !a ? Br(i, l, !0) : ye(0);
2753
+ const g = i && !p && !a ? Fr(i, l, !0) : ye(0);
2711
2754
  return {
2712
2755
  width: n.width * c.x,
2713
2756
  height: n.height * c.y,
@@ -2715,12 +2758,12 @@ function Bi(e) {
2715
2758
  y: n.y * c.y - l.scrollTop * c.y + d.y + g.y
2716
2759
  };
2717
2760
  }
2718
- function zi(e) {
2761
+ function Ui(e) {
2719
2762
  return Array.from(e.getClientRects());
2720
2763
  }
2721
- function Fi(e) {
2722
- const t = Se(e), n = Vt(e), r = e.ownerDocument.body, o = ae(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), a = ae(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight);
2723
- let i = -n.scrollLeft + Pn(e);
2764
+ function Hi(e) {
2765
+ const t = Se(e), n = $t(e), r = e.ownerDocument.body, o = ae(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), a = ae(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight);
2766
+ let i = -n.scrollLeft + Rn(e);
2724
2767
  const s = -n.scrollTop;
2725
2768
  return fe(r).direction === "rtl" && (i += ae(t.clientWidth, r.clientWidth) - o), {
2726
2769
  width: o,
@@ -2729,12 +2772,12 @@ function Fi(e) {
2729
2772
  y: s
2730
2773
  };
2731
2774
  }
2732
- function Vi(e, t) {
2775
+ function ji(e, t) {
2733
2776
  const n = ie(e), r = Se(e), o = n.visualViewport;
2734
2777
  let a = r.clientWidth, i = r.clientHeight, s = 0, l = 0;
2735
2778
  if (o) {
2736
2779
  a = o.width, i = o.height;
2737
- const c = Tn();
2780
+ const c = An();
2738
2781
  (!c || c && t === "fixed") && (s = o.offsetLeft, l = o.offsetTop);
2739
2782
  }
2740
2783
  return {
@@ -2744,7 +2787,7 @@ function Vi(e, t) {
2744
2787
  y: l
2745
2788
  };
2746
2789
  }
2747
- function Wi(e, t) {
2790
+ function Yi(e, t) {
2748
2791
  const n = Ue(e, !0, t === "fixed"), r = n.top + e.clientTop, o = n.left + e.clientLeft, a = Ce(e) ? et(e) : ye(1), i = e.clientWidth * a.x, s = e.clientHeight * a.y, l = o * a.x, c = r * a.y;
2749
2792
  return {
2750
2793
  width: i,
@@ -2753,16 +2796,16 @@ function Wi(e, t) {
2753
2796
  y: c
2754
2797
  };
2755
2798
  }
2756
- function Zn(e, t, n) {
2799
+ function qn(e, t, n) {
2757
2800
  let r;
2758
2801
  if (t === "viewport")
2759
- r = Vi(e, n);
2802
+ r = ji(e, n);
2760
2803
  else if (t === "document")
2761
- r = Fi(Se(e));
2804
+ r = Hi(Se(e));
2762
2805
  else if (de(t))
2763
- r = Wi(t, n);
2806
+ r = Yi(t, n);
2764
2807
  else {
2765
- const o = Dr(e);
2808
+ const o = zr(e);
2766
2809
  r = {
2767
2810
  x: t.x - o.x,
2768
2811
  y: t.y - o.y,
@@ -2770,13 +2813,13 @@ function Zn(e, t, n) {
2770
2813
  height: t.height
2771
2814
  };
2772
2815
  }
2773
- return Ot(r);
2816
+ return Mt(r);
2774
2817
  }
2775
- function zr(e, t) {
2818
+ function Vr(e, t) {
2776
2819
  const n = Be(e);
2777
- return n === t || !de(n) || nt(n) ? !1 : fe(n).position === "fixed" || zr(n, t);
2820
+ return n === t || !de(n) || nt(n) ? !1 : fe(n).position === "fixed" || Vr(n, t);
2778
2821
  }
2779
- function $i(e, t) {
2822
+ function Xi(e, t) {
2780
2823
  const n = t.get(e);
2781
2824
  if (n)
2782
2825
  return n;
@@ -2784,22 +2827,22 @@ function $i(e, t) {
2784
2827
  const a = fe(e).position === "fixed";
2785
2828
  let i = a ? Be(e) : e;
2786
2829
  for (; de(i) && !nt(i); ) {
2787
- const s = fe(i), l = kn(i);
2788
- !l && s.position === "fixed" && (o = null), (a ? !l && !o : !l && s.position === "static" && !!o && ["absolute", "fixed"].includes(o.position) || bt(i) && !l && zr(e, i)) ? r = r.filter((d) => d !== i) : o = s, i = Be(i);
2830
+ const s = fe(i), l = Tn(i);
2831
+ !l && s.position === "fixed" && (o = null), (a ? !l && !o : !l && s.position === "static" && !!o && ["absolute", "fixed"].includes(o.position) || bt(i) && !l && Vr(e, i)) ? r = r.filter((d) => d !== i) : o = s, i = Be(i);
2789
2832
  }
2790
2833
  return t.set(e, r), r;
2791
2834
  }
2792
- function Ui(e) {
2835
+ function Ki(e) {
2793
2836
  let {
2794
2837
  element: t,
2795
2838
  boundary: n,
2796
2839
  rootBoundary: r,
2797
2840
  strategy: o
2798
2841
  } = e;
2799
- const i = [...n === "clippingAncestors" ? Ft(t) ? [] : $i(t, this._c) : [].concat(n), r], s = i[0], l = i.reduce((c, d) => {
2800
- const p = Zn(t, d, o);
2842
+ const i = [...n === "clippingAncestors" ? Vt(t) ? [] : Xi(t, this._c) : [].concat(n), r], s = i[0], l = i.reduce((c, d) => {
2843
+ const p = qn(t, d, o);
2801
2844
  return c.top = ae(p.top, c.top), c.right = Le(p.right, c.right), c.bottom = Le(p.bottom, c.bottom), c.left = ae(p.left, c.left), c;
2802
- }, Zn(t, s, o));
2845
+ }, qn(t, s, o));
2803
2846
  return {
2804
2847
  width: l.right - l.left,
2805
2848
  height: l.bottom - l.top,
@@ -2807,17 +2850,17 @@ function Ui(e) {
2807
2850
  y: l.top
2808
2851
  };
2809
2852
  }
2810
- function Hi(e) {
2853
+ function Gi(e) {
2811
2854
  const {
2812
2855
  width: t,
2813
2856
  height: n
2814
- } = Lr(e);
2857
+ } = Br(e);
2815
2858
  return {
2816
2859
  width: t,
2817
2860
  height: n
2818
2861
  };
2819
2862
  }
2820
- function ji(e, t, n) {
2863
+ function Zi(e, t, n) {
2821
2864
  const r = Ce(t), o = Se(t), a = n === "fixed", i = Ue(e, !0, a, t);
2822
2865
  let s = {
2823
2866
  scrollLeft: 0,
@@ -2825,11 +2868,11 @@ function ji(e, t, n) {
2825
2868
  };
2826
2869
  const l = ye(0);
2827
2870
  if (r || !r && !a)
2828
- if ((it(t) !== "body" || bt(o)) && (s = Vt(t)), r) {
2871
+ if ((it(t) !== "body" || bt(o)) && (s = $t(t)), r) {
2829
2872
  const g = Ue(t, !0, a, t);
2830
2873
  l.x = g.x + t.clientLeft, l.y = g.y + t.clientTop;
2831
- } else o && (l.x = Pn(o));
2832
- const c = o && !r && !a ? Br(o, s) : ye(0), d = i.left + s.scrollLeft - l.x - c.x, p = i.top + s.scrollTop - l.y - c.y;
2874
+ } else o && (l.x = Rn(o));
2875
+ const c = o && !r && !a ? Fr(o, s) : ye(0), d = i.left + s.scrollLeft - l.x - c.x, p = i.top + s.scrollTop - l.y - c.y;
2833
2876
  return {
2834
2877
  x: d,
2835
2878
  y: p,
@@ -2837,10 +2880,10 @@ function ji(e, t, n) {
2837
2880
  height: i.height
2838
2881
  };
2839
2882
  }
2840
- function Zt(e) {
2883
+ function qt(e) {
2841
2884
  return fe(e).position === "static";
2842
2885
  }
2843
- function qn(e, t) {
2886
+ function Qn(e, t) {
2844
2887
  if (!Ce(e) || fe(e).position === "fixed")
2845
2888
  return null;
2846
2889
  if (t)
@@ -2848,28 +2891,28 @@ function qn(e, t) {
2848
2891
  let n = e.offsetParent;
2849
2892
  return Se(e) === n && (n = n.ownerDocument.body), n;
2850
2893
  }
2851
- function Fr(e, t) {
2894
+ function $r(e, t) {
2852
2895
  const n = ie(e);
2853
- if (Ft(e))
2896
+ if (Vt(e))
2854
2897
  return n;
2855
2898
  if (!Ce(e)) {
2856
2899
  let o = Be(e);
2857
2900
  for (; o && !nt(o); ) {
2858
- if (de(o) && !Zt(o))
2901
+ if (de(o) && !qt(o))
2859
2902
  return o;
2860
2903
  o = Be(o);
2861
2904
  }
2862
2905
  return n;
2863
2906
  }
2864
- let r = qn(e, t);
2865
- for (; r && Oi(r) && Zt(r); )
2866
- r = qn(r, t);
2867
- return r && nt(r) && Zt(r) && !kn(r) ? n : r || Mi(e) || n;
2907
+ let r = Qn(e, t);
2908
+ for (; r && zi(r) && qt(r); )
2909
+ r = Qn(r, t);
2910
+ return r && nt(r) && qt(r) && !Tn(r) ? n : r || Fi(e) || n;
2868
2911
  }
2869
- const Yi = async function(e) {
2870
- const t = this.getOffsetParent || Fr, n = this.getDimensions, r = await n(e.floating);
2912
+ const qi = async function(e) {
2913
+ const t = this.getOffsetParent || $r, n = this.getDimensions, r = await n(e.floating);
2871
2914
  return {
2872
- reference: ji(e.reference, await t(e.floating), e.strategy),
2915
+ reference: Zi(e.reference, await t(e.floating), e.strategy),
2873
2916
  floating: {
2874
2917
  x: 0,
2875
2918
  y: 0,
@@ -2878,25 +2921,25 @@ const Yi = async function(e) {
2878
2921
  }
2879
2922
  };
2880
2923
  };
2881
- function Xi(e) {
2924
+ function Qi(e) {
2882
2925
  return fe(e).direction === "rtl";
2883
2926
  }
2884
- const Ki = {
2885
- convertOffsetParentRelativeRectToViewportRelativeRect: Bi,
2927
+ const Ji = {
2928
+ convertOffsetParentRelativeRectToViewportRelativeRect: Wi,
2886
2929
  getDocumentElement: Se,
2887
- getClippingRect: Ui,
2888
- getOffsetParent: Fr,
2889
- getElementRects: Yi,
2890
- getClientRects: zi,
2891
- getDimensions: Hi,
2930
+ getClippingRect: Ki,
2931
+ getOffsetParent: $r,
2932
+ getElementRects: qi,
2933
+ getClientRects: Ui,
2934
+ getDimensions: Gi,
2892
2935
  getScale: et,
2893
2936
  isElement: de,
2894
- isRTL: Xi
2937
+ isRTL: Qi
2895
2938
  };
2896
- function Vr(e, t) {
2939
+ function Wr(e, t) {
2897
2940
  return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
2898
2941
  }
2899
- function Gi(e, t) {
2942
+ function es(e, t) {
2900
2943
  let n = null, r;
2901
2944
  const o = Se(e);
2902
2945
  function a() {
@@ -2927,7 +2970,7 @@ function Gi(e, t) {
2927
2970
  i(!1, 1e-7);
2928
2971
  }, 1e3);
2929
2972
  }
2930
- C === 1 && !Vr(c, e.getBoundingClientRect()) && i(), S = !1;
2973
+ C === 1 && !Wr(c, e.getBoundingClientRect()) && i(), S = !1;
2931
2974
  }
2932
2975
  try {
2933
2976
  n = new IntersectionObserver(E, {
@@ -2942,7 +2985,7 @@ function Gi(e, t) {
2942
2985
  }
2943
2986
  return i(!0), a;
2944
2987
  }
2945
- function Zi(e, t, n, r) {
2988
+ function ts(e, t, n, r) {
2946
2989
  r === void 0 && (r = {});
2947
2990
  const {
2948
2991
  ancestorScroll: o = !0,
@@ -2950,13 +2993,13 @@ function Zi(e, t, n, r) {
2950
2993
  elementResize: i = typeof ResizeObserver == "function",
2951
2994
  layoutShift: s = typeof IntersectionObserver == "function",
2952
2995
  animationFrame: l = !1
2953
- } = r, c = An(e), d = o || a ? [...c ? mt(c) : [], ...mt(t)] : [];
2996
+ } = r, c = Pn(e), d = o || a ? [...c ? mt(c) : [], ...mt(t)] : [];
2954
2997
  d.forEach((b) => {
2955
2998
  o && b.addEventListener("scroll", n, {
2956
2999
  passive: !0
2957
3000
  }), a && b.addEventListener("resize", n);
2958
3001
  });
2959
- const p = c && s ? Gi(c, n) : null;
3002
+ const p = c && s ? es(c, n) : null;
2960
3003
  let g = -1, v = null;
2961
3004
  i && (v = new ResizeObserver((b) => {
2962
3005
  let [x] = b;
@@ -2969,7 +3012,7 @@ function Zi(e, t, n, r) {
2969
3012
  l && w();
2970
3013
  function w() {
2971
3014
  const b = Ue(e);
2972
- f && !Vr(f, b) && n(), f = b, m = requestAnimationFrame(w);
3015
+ f && !Wr(f, b) && n(), f = b, m = requestAnimationFrame(w);
2973
3016
  }
2974
3017
  return n(), () => {
2975
3018
  var b;
@@ -2978,21 +3021,21 @@ function Zi(e, t, n, r) {
2978
3021
  }), p == null || p(), (b = v) == null || b.disconnect(), v = null, l && cancelAnimationFrame(m);
2979
3022
  };
2980
3023
  }
2981
- const qi = Ri, Qi = Ii, Ji = Ti, es = _i, ts = Ai, Qn = ki, ns = Ni, rs = (e, t, n) => {
3024
+ const ns = Mi, rs = Li, os = _i, as = Bi, is = Ni, Jn = Ii, ss = Di, ls = (e, t, n) => {
2982
3025
  const r = /* @__PURE__ */ new Map(), o = {
2983
- platform: Ki,
3026
+ platform: Ji,
2984
3027
  ...n
2985
3028
  }, a = {
2986
3029
  ...o.platform,
2987
3030
  _c: r
2988
3031
  };
2989
- return Ei(e, t, {
3032
+ return Ri(e, t, {
2990
3033
  ...o,
2991
3034
  platform: a
2992
3035
  });
2993
3036
  };
2994
- var At = typeof document < "u" ? Xo : Oe;
2995
- function Mt(e, t) {
3037
+ var Pt = typeof document < "u" ? Go : Oe;
3038
+ function Lt(e, t) {
2996
3039
  if (e === t)
2997
3040
  return !0;
2998
3041
  if (typeof e != typeof t)
@@ -3004,7 +3047,7 @@ function Mt(e, t) {
3004
3047
  if (Array.isArray(e)) {
3005
3048
  if (n = e.length, n !== t.length) return !1;
3006
3049
  for (r = n; r-- !== 0; )
3007
- if (!Mt(e[r], t[r]))
3050
+ if (!Lt(e[r], t[r]))
3008
3051
  return !1;
3009
3052
  return !0;
3010
3053
  }
@@ -3015,27 +3058,27 @@ function Mt(e, t) {
3015
3058
  return !1;
3016
3059
  for (r = n; r-- !== 0; ) {
3017
3060
  const a = o[r];
3018
- if (!(a === "_owner" && e.$$typeof) && !Mt(e[a], t[a]))
3061
+ if (!(a === "_owner" && e.$$typeof) && !Lt(e[a], t[a]))
3019
3062
  return !1;
3020
3063
  }
3021
3064
  return !0;
3022
3065
  }
3023
3066
  return e !== e && t !== t;
3024
3067
  }
3025
- function Wr(e) {
3068
+ function Ur(e) {
3026
3069
  return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
3027
3070
  }
3028
- function Jn(e, t) {
3029
- const n = Wr(e);
3071
+ function er(e, t) {
3072
+ const n = Ur(e);
3030
3073
  return Math.round(t * n) / n;
3031
3074
  }
3032
- function qt(e) {
3075
+ function Qt(e) {
3033
3076
  const t = u.useRef(e);
3034
- return At(() => {
3077
+ return Pt(() => {
3035
3078
  t.current = e;
3036
3079
  }), t;
3037
3080
  }
3038
- function os(e) {
3081
+ function cs(e) {
3039
3082
  e === void 0 && (e = {});
3040
3083
  const {
3041
3084
  placement: t = "bottom",
@@ -3057,87 +3100,87 @@ function os(e) {
3057
3100
  middlewareData: {},
3058
3101
  isPositioned: !1
3059
3102
  }), [g, v] = u.useState(r);
3060
- Mt(g, r) || v(r);
3061
- const [m, f] = u.useState(null), [w, b] = u.useState(null), x = u.useCallback((R) => {
3062
- R !== T.current && (T.current = R, f(R));
3063
- }, []), y = u.useCallback((R) => {
3064
- R !== C.current && (C.current = R, b(R));
3065
- }, []), S = a || m, E = i || w, T = u.useRef(null), C = u.useRef(null), P = u.useRef(d), O = l != null, M = qt(l), V = qt(o), W = qt(c), D = u.useCallback(() => {
3103
+ Lt(g, r) || v(r);
3104
+ const [m, f] = u.useState(null), [w, b] = u.useState(null), x = u.useCallback((I) => {
3105
+ I !== T.current && (T.current = I, f(I));
3106
+ }, []), y = u.useCallback((I) => {
3107
+ I !== C.current && (C.current = I, b(I));
3108
+ }, []), S = a || m, E = i || w, T = u.useRef(null), C = u.useRef(null), R = u.useRef(d), O = l != null, M = Qt(l), V = Qt(o), $ = Qt(c), D = u.useCallback(() => {
3066
3109
  if (!T.current || !C.current)
3067
3110
  return;
3068
- const R = {
3111
+ const I = {
3069
3112
  placement: t,
3070
3113
  strategy: n,
3071
3114
  middleware: g
3072
3115
  };
3073
- V.current && (R.platform = V.current), rs(T.current, C.current, R).then(($) => {
3116
+ V.current && (I.platform = V.current), ls(T.current, C.current, I).then((W) => {
3074
3117
  const ee = {
3075
- ...$,
3118
+ ...W,
3076
3119
  // The floating element's position may be recomputed while it's closed
3077
3120
  // but still mounted (such as when transitioning out). To ensure
3078
3121
  // `isPositioned` will be `false` initially on the next open, avoid
3079
3122
  // setting it to `true` when `open === false` (must be specified).
3080
- isPositioned: W.current !== !1
3123
+ isPositioned: $.current !== !1
3081
3124
  };
3082
- _.current && !Mt(P.current, ee) && (P.current = ee, u.flushSync(() => {
3125
+ N.current && !Lt(R.current, ee) && (R.current = ee, u.flushSync(() => {
3083
3126
  p(ee);
3084
3127
  }));
3085
3128
  });
3086
- }, [g, t, n, V, W]);
3087
- At(() => {
3088
- c === !1 && P.current.isPositioned && (P.current.isPositioned = !1, p((R) => ({
3089
- ...R,
3129
+ }, [g, t, n, V, $]);
3130
+ Pt(() => {
3131
+ c === !1 && R.current.isPositioned && (R.current.isPositioned = !1, p((I) => ({
3132
+ ...I,
3090
3133
  isPositioned: !1
3091
3134
  })));
3092
3135
  }, [c]);
3093
- const _ = u.useRef(!1);
3094
- At(() => (_.current = !0, () => {
3095
- _.current = !1;
3096
- }), []), At(() => {
3136
+ const N = u.useRef(!1);
3137
+ Pt(() => (N.current = !0, () => {
3138
+ N.current = !1;
3139
+ }), []), Pt(() => {
3097
3140
  if (S && (T.current = S), E && (C.current = E), S && E) {
3098
3141
  if (M.current)
3099
3142
  return M.current(S, E, D);
3100
3143
  D();
3101
3144
  }
3102
3145
  }, [S, E, D, M, O]);
3103
- const Y = u.useMemo(() => ({
3146
+ const X = u.useMemo(() => ({
3104
3147
  reference: T,
3105
3148
  floating: C,
3106
3149
  setReference: x,
3107
3150
  setFloating: y
3108
- }), [x, y]), N = u.useMemo(() => ({
3151
+ }), [x, y]), _ = u.useMemo(() => ({
3109
3152
  reference: S,
3110
3153
  floating: E
3111
3154
  }), [S, E]), L = u.useMemo(() => {
3112
- const R = {
3155
+ const I = {
3113
3156
  position: n,
3114
3157
  left: 0,
3115
3158
  top: 0
3116
3159
  };
3117
- if (!N.floating)
3118
- return R;
3119
- const $ = Jn(N.floating, d.x), ee = Jn(N.floating, d.y);
3160
+ if (!_.floating)
3161
+ return I;
3162
+ const W = er(_.floating, d.x), ee = er(_.floating, d.y);
3120
3163
  return s ? {
3121
- ...R,
3122
- transform: "translate(" + $ + "px, " + ee + "px)",
3123
- ...Wr(N.floating) >= 1.5 && {
3164
+ ...I,
3165
+ transform: "translate(" + W + "px, " + ee + "px)",
3166
+ ...Ur(_.floating) >= 1.5 && {
3124
3167
  willChange: "transform"
3125
3168
  }
3126
3169
  } : {
3127
3170
  position: n,
3128
- left: $,
3171
+ left: W,
3129
3172
  top: ee
3130
3173
  };
3131
- }, [n, s, N.floating, d.x, d.y]);
3174
+ }, [n, s, _.floating, d.x, d.y]);
3132
3175
  return u.useMemo(() => ({
3133
3176
  ...d,
3134
3177
  update: D,
3135
- refs: Y,
3136
- elements: N,
3178
+ refs: X,
3179
+ elements: _,
3137
3180
  floatingStyles: L
3138
- }), [d, D, Y, N, L]);
3181
+ }), [d, D, X, _, L]);
3139
3182
  }
3140
- const as = (e) => {
3183
+ const us = (e) => {
3141
3184
  function t(n) {
3142
3185
  return {}.hasOwnProperty.call(n, "current");
3143
3186
  }
@@ -3149,38 +3192,38 @@ const as = (e) => {
3149
3192
  element: r,
3150
3193
  padding: o
3151
3194
  } = typeof e == "function" ? e(n) : e;
3152
- return r && t(r) ? r.current != null ? Qn({
3195
+ return r && t(r) ? r.current != null ? Jn({
3153
3196
  element: r.current,
3154
3197
  padding: o
3155
- }).fn(n) : {} : r ? Qn({
3198
+ }).fn(n) : {} : r ? Jn({
3156
3199
  element: r,
3157
3200
  padding: o
3158
3201
  }).fn(n) : {};
3159
3202
  }
3160
3203
  };
3161
- }, is = (e, t) => ({
3162
- ...qi(e),
3163
- options: [e, t]
3164
- }), ss = (e, t) => ({
3165
- ...Qi(e),
3166
- options: [e, t]
3167
- }), ls = (e, t) => ({
3204
+ }, ds = (e, t) => ({
3168
3205
  ...ns(e),
3169
3206
  options: [e, t]
3170
- }), cs = (e, t) => ({
3171
- ...Ji(e),
3207
+ }), fs = (e, t) => ({
3208
+ ...rs(e),
3172
3209
  options: [e, t]
3173
- }), us = (e, t) => ({
3174
- ...es(e),
3210
+ }), ps = (e, t) => ({
3211
+ ...ss(e),
3175
3212
  options: [e, t]
3176
- }), ds = (e, t) => ({
3177
- ...ts(e),
3213
+ }), hs = (e, t) => ({
3214
+ ...os(e),
3178
3215
  options: [e, t]
3179
- }), fs = (e, t) => ({
3216
+ }), vs = (e, t) => ({
3180
3217
  ...as(e),
3181
3218
  options: [e, t]
3219
+ }), gs = (e, t) => ({
3220
+ ...is(e),
3221
+ options: [e, t]
3222
+ }), ms = (e, t) => ({
3223
+ ...us(e),
3224
+ options: [e, t]
3182
3225
  });
3183
- var ps = "Arrow", $r = u.forwardRef((e, t) => {
3226
+ var ws = "Arrow", Hr = u.forwardRef((e, t) => {
3184
3227
  const { children: n, width: r = 10, height: o = 5, ...a } = e;
3185
3228
  return /* @__PURE__ */ k(
3186
3229
  K.svg,
@@ -3195,9 +3238,9 @@ var ps = "Arrow", $r = u.forwardRef((e, t) => {
3195
3238
  }
3196
3239
  );
3197
3240
  });
3198
- $r.displayName = ps;
3199
- var hs = $r;
3200
- function vs(e) {
3241
+ Hr.displayName = ws;
3242
+ var bs = Hr;
3243
+ function xs(e) {
3201
3244
  const [t, n] = u.useState(void 0);
3202
3245
  return te(() => {
3203
3246
  if (e) {
@@ -3219,23 +3262,23 @@ function vs(e) {
3219
3262
  n(void 0);
3220
3263
  }, [e]), t;
3221
3264
  }
3222
- var Rn = "Popper", [Ur, Hr] = xn(Rn), [gs, jr] = Ur(Rn), Yr = (e) => {
3265
+ var In = "Popper", [jr, Yr] = yn(In), [ys, Xr] = jr(In), Kr = (e) => {
3223
3266
  const { __scopePopper: t, children: n } = e, [r, o] = u.useState(null);
3224
- return /* @__PURE__ */ k(gs, { scope: t, anchor: r, onAnchorChange: o, children: n });
3267
+ return /* @__PURE__ */ k(ys, { scope: t, anchor: r, onAnchorChange: o, children: n });
3225
3268
  };
3226
- Yr.displayName = Rn;
3227
- var Xr = "PopperAnchor", Kr = u.forwardRef(
3269
+ Kr.displayName = In;
3270
+ var Gr = "PopperAnchor", Zr = u.forwardRef(
3228
3271
  (e, t) => {
3229
- const { __scopePopper: n, virtualRef: r, ...o } = e, a = jr(Xr, n), i = u.useRef(null), s = Z(t, i);
3272
+ const { __scopePopper: n, virtualRef: r, ...o } = e, a = Xr(Gr, n), i = u.useRef(null), s = Z(t, i);
3230
3273
  return u.useEffect(() => {
3231
3274
  a.onAnchorChange((r == null ? void 0 : r.current) || i.current);
3232
3275
  }), r ? null : /* @__PURE__ */ k(K.div, { ...o, ref: s });
3233
3276
  }
3234
3277
  );
3235
- Kr.displayName = Xr;
3236
- var In = "PopperContent", [ms, ws] = Ur(In), Gr = u.forwardRef(
3278
+ Zr.displayName = Gr;
3279
+ var _n = "PopperContent", [Cs, Ss] = jr(_n), qr = u.forwardRef(
3237
3280
  (e, t) => {
3238
- var A, U, q, F, B, z;
3281
+ var A, U, Q, F, B, z;
3239
3282
  const {
3240
3283
  __scopePopper: n,
3241
3284
  side: r = "bottom",
@@ -3251,77 +3294,77 @@ var In = "PopperContent", [ms, ws] = Ur(In), Gr = u.forwardRef(
3251
3294
  updatePositionStrategy: v = "optimized",
3252
3295
  onPlaced: m,
3253
3296
  ...f
3254
- } = e, w = jr(In, n), [b, x] = u.useState(null), y = Z(t, (oe) => x(oe)), [S, E] = u.useState(null), T = vs(S), C = (T == null ? void 0 : T.width) ?? 0, P = (T == null ? void 0 : T.height) ?? 0, O = r + (a !== "center" ? "-" + a : ""), M = typeof d == "number" ? d : { top: 0, right: 0, bottom: 0, left: 0, ...d }, V = Array.isArray(c) ? c : [c], W = V.length > 0, D = {
3297
+ } = e, w = Xr(_n, n), [b, x] = u.useState(null), y = Z(t, (oe) => x(oe)), [S, E] = u.useState(null), T = xs(S), C = (T == null ? void 0 : T.width) ?? 0, R = (T == null ? void 0 : T.height) ?? 0, O = r + (a !== "center" ? "-" + a : ""), M = typeof d == "number" ? d : { top: 0, right: 0, bottom: 0, left: 0, ...d }, V = Array.isArray(c) ? c : [c], $ = V.length > 0, D = {
3255
3298
  padding: M,
3256
- boundary: V.filter(xs),
3299
+ boundary: V.filter(ks),
3257
3300
  // with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
3258
- altBoundary: W
3259
- }, { refs: _, floatingStyles: Y, placement: N, isPositioned: L, middlewareData: R } = os({
3301
+ altBoundary: $
3302
+ }, { refs: N, floatingStyles: X, placement: _, isPositioned: L, middlewareData: I } = cs({
3260
3303
  // default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
3261
3304
  strategy: "fixed",
3262
3305
  placement: O,
3263
- whileElementsMounted: (...oe) => Zi(...oe, {
3306
+ whileElementsMounted: (...oe) => ts(...oe, {
3264
3307
  animationFrame: v === "always"
3265
3308
  }),
3266
3309
  elements: {
3267
3310
  reference: w.anchor
3268
3311
  },
3269
3312
  middleware: [
3270
- is({ mainAxis: o + P, alignmentAxis: i }),
3271
- l && ss({
3313
+ ds({ mainAxis: o + R, alignmentAxis: i }),
3314
+ l && fs({
3272
3315
  mainAxis: !0,
3273
3316
  crossAxis: !1,
3274
- limiter: p === "partial" ? ls() : void 0,
3317
+ limiter: p === "partial" ? ps() : void 0,
3275
3318
  ...D
3276
3319
  }),
3277
- l && cs({ ...D }),
3278
- us({
3320
+ l && hs({ ...D }),
3321
+ vs({
3279
3322
  ...D,
3280
3323
  apply: ({ elements: oe, rects: ve, availableWidth: ut, availableHeight: dt }) => {
3281
- const { width: ft, height: Wo } = ve.reference, xt = oe.floating.style;
3282
- xt.setProperty("--radix-popper-available-width", `${ut}px`), xt.setProperty("--radix-popper-available-height", `${dt}px`), xt.setProperty("--radix-popper-anchor-width", `${ft}px`), xt.setProperty("--radix-popper-anchor-height", `${Wo}px`);
3324
+ const { width: ft, height: Uo } = ve.reference, xt = oe.floating.style;
3325
+ xt.setProperty("--radix-popper-available-width", `${ut}px`), xt.setProperty("--radix-popper-available-height", `${dt}px`), xt.setProperty("--radix-popper-anchor-width", `${ft}px`), xt.setProperty("--radix-popper-anchor-height", `${Uo}px`);
3283
3326
  }
3284
3327
  }),
3285
- S && fs({ element: S, padding: s }),
3286
- ys({ arrowWidth: C, arrowHeight: P }),
3287
- g && ds({ strategy: "referenceHidden", ...D })
3328
+ S && ms({ element: S, padding: s }),
3329
+ Ts({ arrowWidth: C, arrowHeight: R }),
3330
+ g && gs({ strategy: "referenceHidden", ...D })
3288
3331
  ]
3289
- }), [$, ee] = Qr(N), Ee = $e(m);
3332
+ }), [W, ee] = eo(_), Ee = We(m);
3290
3333
  te(() => {
3291
3334
  L && (Ee == null || Ee());
3292
3335
  }, [L, Ee]);
3293
- const lt = (A = R.arrow) == null ? void 0 : A.x, ct = (U = R.arrow) == null ? void 0 : U.y, Ie = ((q = R.arrow) == null ? void 0 : q.centerOffset) !== 0, [Ye, We] = u.useState();
3336
+ const lt = (A = I.arrow) == null ? void 0 : A.x, ct = (U = I.arrow) == null ? void 0 : U.y, Ie = ((Q = I.arrow) == null ? void 0 : Q.centerOffset) !== 0, [Ye, $e] = u.useState();
3294
3337
  return te(() => {
3295
- b && We(window.getComputedStyle(b).zIndex);
3338
+ b && $e(window.getComputedStyle(b).zIndex);
3296
3339
  }, [b]), /* @__PURE__ */ k(
3297
3340
  "div",
3298
3341
  {
3299
- ref: _.setFloating,
3342
+ ref: N.setFloating,
3300
3343
  "data-radix-popper-content-wrapper": "",
3301
3344
  style: {
3302
- ...Y,
3303
- transform: L ? Y.transform : "translate(0, -200%)",
3345
+ ...X,
3346
+ transform: L ? X.transform : "translate(0, -200%)",
3304
3347
  // keep off the page when measuring
3305
3348
  minWidth: "max-content",
3306
3349
  zIndex: Ye,
3307
3350
  "--radix-popper-transform-origin": [
3308
- (F = R.transformOrigin) == null ? void 0 : F.x,
3309
- (B = R.transformOrigin) == null ? void 0 : B.y
3351
+ (F = I.transformOrigin) == null ? void 0 : F.x,
3352
+ (B = I.transformOrigin) == null ? void 0 : B.y
3310
3353
  ].join(" "),
3311
3354
  // hide the content if using the hide middleware and should be hidden
3312
3355
  // set visibility to hidden and disable pointer events so the UI behaves
3313
3356
  // as if the PopperContent isn't there at all
3314
- ...((z = R.hide) == null ? void 0 : z.referenceHidden) && {
3357
+ ...((z = I.hide) == null ? void 0 : z.referenceHidden) && {
3315
3358
  visibility: "hidden",
3316
3359
  pointerEvents: "none"
3317
3360
  }
3318
3361
  },
3319
3362
  dir: e.dir,
3320
3363
  children: /* @__PURE__ */ k(
3321
- ms,
3364
+ Cs,
3322
3365
  {
3323
3366
  scope: n,
3324
- placedSide: $,
3367
+ placedSide: W,
3325
3368
  onArrowChange: E,
3326
3369
  arrowX: lt,
3327
3370
  arrowY: ct,
@@ -3329,7 +3372,7 @@ var In = "PopperContent", [ms, ws] = Ur(In), Gr = u.forwardRef(
3329
3372
  children: /* @__PURE__ */ k(
3330
3373
  K.div,
3331
3374
  {
3332
- "data-side": $,
3375
+ "data-side": W,
3333
3376
  "data-align": ee,
3334
3377
  ...f,
3335
3378
  ref: y,
@@ -3347,14 +3390,14 @@ var In = "PopperContent", [ms, ws] = Ur(In), Gr = u.forwardRef(
3347
3390
  );
3348
3391
  }
3349
3392
  );
3350
- Gr.displayName = In;
3351
- var Zr = "PopperArrow", bs = {
3393
+ qr.displayName = _n;
3394
+ var Qr = "PopperArrow", Es = {
3352
3395
  top: "bottom",
3353
3396
  right: "left",
3354
3397
  bottom: "top",
3355
3398
  left: "right"
3356
- }, qr = u.forwardRef(function(t, n) {
3357
- const { __scopePopper: r, ...o } = t, a = ws(Zr, r), i = bs[a.placedSide];
3399
+ }, Jr = u.forwardRef(function(t, n) {
3400
+ const { __scopePopper: r, ...o } = t, a = Ss(Qr, r), i = Es[a.placedSide];
3358
3401
  return (
3359
3402
  // we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
3360
3403
  // doesn't report size as we'd expect on SVG elements.
@@ -3383,7 +3426,7 @@ var Zr = "PopperArrow", bs = {
3383
3426
  visibility: a.shouldHideArrow ? "hidden" : void 0
3384
3427
  },
3385
3428
  children: /* @__PURE__ */ k(
3386
- hs,
3429
+ bs,
3387
3430
  {
3388
3431
  ...o,
3389
3432
  ref: n,
@@ -3398,41 +3441,41 @@ var Zr = "PopperArrow", bs = {
3398
3441
  )
3399
3442
  );
3400
3443
  });
3401
- qr.displayName = Zr;
3402
- function xs(e) {
3444
+ Jr.displayName = Qr;
3445
+ function ks(e) {
3403
3446
  return e !== null;
3404
3447
  }
3405
- var ys = (e) => ({
3448
+ var Ts = (e) => ({
3406
3449
  name: "transformOrigin",
3407
3450
  options: e,
3408
3451
  fn(t) {
3409
3452
  var w, b, x;
3410
- const { placement: n, rects: r, middlewareData: o } = t, i = ((w = o.arrow) == null ? void 0 : w.centerOffset) !== 0, s = i ? 0 : e.arrowWidth, l = i ? 0 : e.arrowHeight, [c, d] = Qr(n), p = { start: "0%", center: "50%", end: "100%" }[d], g = (((b = o.arrow) == null ? void 0 : b.x) ?? 0) + s / 2, v = (((x = o.arrow) == null ? void 0 : x.y) ?? 0) + l / 2;
3453
+ const { placement: n, rects: r, middlewareData: o } = t, i = ((w = o.arrow) == null ? void 0 : w.centerOffset) !== 0, s = i ? 0 : e.arrowWidth, l = i ? 0 : e.arrowHeight, [c, d] = eo(n), p = { start: "0%", center: "50%", end: "100%" }[d], g = (((b = o.arrow) == null ? void 0 : b.x) ?? 0) + s / 2, v = (((x = o.arrow) == null ? void 0 : x.y) ?? 0) + l / 2;
3411
3454
  let m = "", f = "";
3412
3455
  return c === "bottom" ? (m = i ? p : `${g}px`, f = `${-l}px`) : c === "top" ? (m = i ? p : `${g}px`, f = `${r.floating.height + l}px`) : c === "right" ? (m = `${-l}px`, f = i ? p : `${v}px`) : c === "left" && (m = `${r.floating.width + l}px`, f = i ? p : `${v}px`), { data: { x: m, y: f } };
3413
3456
  }
3414
3457
  });
3415
- function Qr(e) {
3458
+ function eo(e) {
3416
3459
  const [t, n = "center"] = e.split("-");
3417
3460
  return [t, n];
3418
3461
  }
3419
- var Cs = Yr, Ss = Kr, Es = Gr, ks = qr, Ts = "Portal", Jr = u.forwardRef((e, t) => {
3462
+ var As = Kr, Ps = Zr, Rs = qr, Is = Jr, _s = "Portal", to = u.forwardRef((e, t) => {
3420
3463
  var s;
3421
3464
  const { container: n, ...r } = e, [o, a] = u.useState(!1);
3422
3465
  te(() => a(!0), []);
3423
3466
  const i = n || o && ((s = globalThis == null ? void 0 : globalThis.document) == null ? void 0 : s.body);
3424
- return i ? Ne.createPortal(/* @__PURE__ */ k(K.div, { ...r, ref: t }), i) : null;
3467
+ return i ? _e.createPortal(/* @__PURE__ */ k(K.div, { ...r, ref: t }), i) : null;
3425
3468
  });
3426
- Jr.displayName = Ts;
3427
- var As = u[" useInsertionEffect ".trim().toString()] || te;
3428
- function er({
3469
+ to.displayName = _s;
3470
+ var Ns = u[" useInsertionEffect ".trim().toString()] || te;
3471
+ function tr({
3429
3472
  prop: e,
3430
3473
  defaultProp: t,
3431
3474
  onChange: n = () => {
3432
3475
  },
3433
3476
  caller: r
3434
3477
  }) {
3435
- const [o, a, i] = Ps({
3478
+ const [o, a, i] = Os({
3436
3479
  defaultProp: t,
3437
3480
  onChange: n
3438
3481
  }), s = e !== void 0, l = s ? e : o;
@@ -3449,7 +3492,7 @@ function er({
3449
3492
  (d) => {
3450
3493
  var p;
3451
3494
  if (s) {
3452
- const g = Rs(d) ? d(e) : d;
3495
+ const g = Ms(d) ? d(e) : d;
3453
3496
  g !== e && ((p = i.current) == null || p.call(i, g));
3454
3497
  } else
3455
3498
  a(d);
@@ -3458,26 +3501,26 @@ function er({
3458
3501
  );
3459
3502
  return [l, c];
3460
3503
  }
3461
- function Ps({
3504
+ function Os({
3462
3505
  defaultProp: e,
3463
3506
  onChange: t
3464
3507
  }) {
3465
3508
  const [n, r] = u.useState(e), o = u.useRef(n), a = u.useRef(t);
3466
- return As(() => {
3509
+ return Ns(() => {
3467
3510
  a.current = t;
3468
3511
  }, [t]), u.useEffect(() => {
3469
3512
  var i;
3470
3513
  o.current !== n && ((i = a.current) == null || i.call(a, n), o.current = n);
3471
3514
  }, [n, o]), [n, r, a];
3472
3515
  }
3473
- function Rs(e) {
3516
+ function Ms(e) {
3474
3517
  return typeof e == "function";
3475
3518
  }
3476
- function Is(e) {
3519
+ function Ls(e) {
3477
3520
  const t = u.useRef({ value: e, previous: e });
3478
3521
  return u.useMemo(() => (t.current.value !== e && (t.current.previous = t.current.value, t.current.value = e), t.current.previous), [e]);
3479
3522
  }
3480
- var eo = Object.freeze({
3523
+ var no = Object.freeze({
3481
3524
  // See: https://github.com/twbs/bootstrap/blob/main/scss/mixins/_visually-hidden.scss
3482
3525
  position: "absolute",
3483
3526
  border: 0,
@@ -3489,35 +3532,35 @@ var eo = Object.freeze({
3489
3532
  clip: "rect(0, 0, 0, 0)",
3490
3533
  whiteSpace: "nowrap",
3491
3534
  wordWrap: "normal"
3492
- }), Ns = "VisuallyHidden", _s = u.forwardRef(
3535
+ }), Ds = "VisuallyHidden", Bs = u.forwardRef(
3493
3536
  (e, t) => /* @__PURE__ */ k(
3494
3537
  K.span,
3495
3538
  {
3496
3539
  ...e,
3497
3540
  ref: t,
3498
- style: { ...eo, ...e.style }
3541
+ style: { ...no, ...e.style }
3499
3542
  }
3500
3543
  )
3501
3544
  );
3502
- _s.displayName = Ns;
3503
- var Os = function(e) {
3545
+ Bs.displayName = Ds;
3546
+ var zs = function(e) {
3504
3547
  if (typeof document > "u")
3505
3548
  return null;
3506
3549
  var t = Array.isArray(e) ? e[0] : e;
3507
3550
  return t.ownerDocument.body;
3508
- }, Xe = /* @__PURE__ */ new WeakMap(), St = /* @__PURE__ */ new WeakMap(), Et = {}, Qt = 0, to = function(e) {
3509
- return e && (e.host || to(e.parentNode));
3510
- }, Ms = function(e, t) {
3551
+ }, Xe = /* @__PURE__ */ new WeakMap(), St = /* @__PURE__ */ new WeakMap(), Et = {}, Jt = 0, ro = function(e) {
3552
+ return e && (e.host || ro(e.parentNode));
3553
+ }, Fs = function(e, t) {
3511
3554
  return t.map(function(n) {
3512
3555
  if (e.contains(n))
3513
3556
  return n;
3514
- var r = to(n);
3557
+ var r = ro(n);
3515
3558
  return r && e.contains(r) ? r : (console.error("aria-hidden", n, "in not contained inside", e, ". Doing nothing"), null);
3516
3559
  }).filter(function(n) {
3517
3560
  return !!n;
3518
3561
  });
3519
- }, Ls = function(e, t, n, r) {
3520
- var o = Ms(t, Array.isArray(e) ? e : [e]);
3562
+ }, Vs = function(e, t, n, r) {
3563
+ var o = Fs(t, Array.isArray(e) ? e : [e]);
3521
3564
  Et[n] || (Et[n] = /* @__PURE__ */ new WeakMap());
3522
3565
  var a = Et[n], i = [], s = /* @__PURE__ */ new Set(), l = new Set(o), c = function(p) {
3523
3566
  !p || s.has(p) || (s.add(p), c(p.parentNode));
@@ -3536,16 +3579,16 @@ var Os = function(e) {
3536
3579
  }
3537
3580
  });
3538
3581
  };
3539
- return d(t), s.clear(), Qt++, function() {
3582
+ return d(t), s.clear(), Jt++, function() {
3540
3583
  i.forEach(function(p) {
3541
3584
  var g = Xe.get(p) - 1, v = a.get(p) - 1;
3542
3585
  Xe.set(p, g), a.set(p, v), g || (St.has(p) || p.removeAttribute(r), St.delete(p)), v || p.removeAttribute(n);
3543
- }), Qt--, Qt || (Xe = /* @__PURE__ */ new WeakMap(), Xe = /* @__PURE__ */ new WeakMap(), St = /* @__PURE__ */ new WeakMap(), Et = {});
3586
+ }), Jt--, Jt || (Xe = /* @__PURE__ */ new WeakMap(), Xe = /* @__PURE__ */ new WeakMap(), St = /* @__PURE__ */ new WeakMap(), Et = {});
3544
3587
  };
3545
- }, Ds = function(e, t, n) {
3588
+ }, $s = function(e, t, n) {
3546
3589
  n === void 0 && (n = "data-aria-hidden");
3547
- var r = Array.from(Array.isArray(e) ? e : [e]), o = Os(e);
3548
- return o ? (r.push.apply(r, Array.from(o.querySelectorAll("[aria-live]"))), Ls(r, o, n, "aria-hidden")) : function() {
3590
+ var r = Array.from(Array.isArray(e) ? e : [e]), o = zs(e);
3591
+ return o ? (r.push.apply(r, Array.from(o.querySelectorAll("[aria-live]"))), Vs(r, o, n, "aria-hidden")) : function() {
3549
3592
  return null;
3550
3593
  };
3551
3594
  }, me = function() {
@@ -3557,7 +3600,7 @@ var Os = function(e) {
3557
3600
  return t;
3558
3601
  }, me.apply(this, arguments);
3559
3602
  };
3560
- function no(e, t) {
3603
+ function oo(e, t) {
3561
3604
  var n = {};
3562
3605
  for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
3563
3606
  if (e != null && typeof Object.getOwnPropertySymbols == "function")
@@ -3565,16 +3608,16 @@ function no(e, t) {
3565
3608
  t.indexOf(r[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[o]) && (n[r[o]] = e[r[o]]);
3566
3609
  return n;
3567
3610
  }
3568
- function Bs(e, t, n) {
3611
+ function Ws(e, t, n) {
3569
3612
  if (n || arguments.length === 2) for (var r = 0, o = t.length, a; r < o; r++)
3570
3613
  (a || !(r in t)) && (a || (a = Array.prototype.slice.call(t, 0, r)), a[r] = t[r]);
3571
3614
  return e.concat(a || Array.prototype.slice.call(t));
3572
3615
  }
3573
- var Pt = "right-scroll-bar-position", Rt = "width-before-scroll-bar", zs = "with-scroll-bars-hidden", Fs = "--removed-body-scroll-bar-size";
3574
- function Jt(e, t) {
3616
+ var Rt = "right-scroll-bar-position", It = "width-before-scroll-bar", Us = "with-scroll-bars-hidden", Hs = "--removed-body-scroll-bar-size";
3617
+ function en(e, t) {
3575
3618
  return typeof e == "function" ? e(t) : e && (e.current = t), e;
3576
3619
  }
3577
- function Vs(e, t) {
3620
+ function js(e, t) {
3578
3621
  var n = be(function() {
3579
3622
  return {
3580
3623
  // value
@@ -3595,31 +3638,31 @@ function Vs(e, t) {
3595
3638
  })[0];
3596
3639
  return n.callback = t, n.facade;
3597
3640
  }
3598
- var Ws = typeof window < "u" ? u.useLayoutEffect : u.useEffect, tr = /* @__PURE__ */ new WeakMap();
3599
- function $s(e, t) {
3600
- var n = Vs(null, function(r) {
3641
+ var Ys = typeof window < "u" ? u.useLayoutEffect : u.useEffect, nr = /* @__PURE__ */ new WeakMap();
3642
+ function Xs(e, t) {
3643
+ var n = js(null, function(r) {
3601
3644
  return e.forEach(function(o) {
3602
- return Jt(o, r);
3645
+ return en(o, r);
3603
3646
  });
3604
3647
  });
3605
- return Ws(function() {
3606
- var r = tr.get(n);
3648
+ return Ys(function() {
3649
+ var r = nr.get(n);
3607
3650
  if (r) {
3608
3651
  var o = new Set(r), a = new Set(e), i = n.current;
3609
3652
  o.forEach(function(s) {
3610
- a.has(s) || Jt(s, null);
3653
+ a.has(s) || en(s, null);
3611
3654
  }), a.forEach(function(s) {
3612
- o.has(s) || Jt(s, i);
3655
+ o.has(s) || en(s, i);
3613
3656
  });
3614
3657
  }
3615
- tr.set(n, e);
3658
+ nr.set(n, e);
3616
3659
  }, [e]), n;
3617
3660
  }
3618
- function Us(e) {
3661
+ function Ks(e) {
3619
3662
  return e;
3620
3663
  }
3621
- function Hs(e, t) {
3622
- t === void 0 && (t = Us);
3664
+ function Gs(e, t) {
3665
+ t === void 0 && (t = Ks);
3623
3666
  var n = [], r = !1, o = {
3624
3667
  read: function() {
3625
3668
  if (r)
@@ -3673,13 +3716,13 @@ function Hs(e, t) {
3673
3716
  };
3674
3717
  return o;
3675
3718
  }
3676
- function js(e) {
3719
+ function Zs(e) {
3677
3720
  e === void 0 && (e = {});
3678
- var t = Hs(null);
3721
+ var t = Gs(null);
3679
3722
  return t.options = me({ async: !0, ssr: !1 }, e), t;
3680
3723
  }
3681
- var ro = function(e) {
3682
- var t = e.sideCar, n = no(e, ["sideCar"]);
3724
+ var ao = function(e) {
3725
+ var t = e.sideCar, n = oo(e, ["sideCar"]);
3683
3726
  if (!t)
3684
3727
  throw new Error("Sidecar: please provide `sideCar` property to import the right car");
3685
3728
  var r = t.read();
@@ -3687,21 +3730,21 @@ var ro = function(e) {
3687
3730
  throw new Error("Sidecar medium not found");
3688
3731
  return u.createElement(r, me({}, n));
3689
3732
  };
3690
- ro.isSideCarExport = !0;
3691
- function Ys(e, t) {
3692
- return e.useMedium(t), ro;
3733
+ ao.isSideCarExport = !0;
3734
+ function qs(e, t) {
3735
+ return e.useMedium(t), ao;
3693
3736
  }
3694
- var oo = js(), en = function() {
3737
+ var io = Zs(), tn = function() {
3695
3738
  }, Wt = u.forwardRef(function(e, t) {
3696
3739
  var n = u.useRef(null), r = u.useState({
3697
- onScrollCapture: en,
3698
- onWheelCapture: en,
3699
- onTouchMoveCapture: en
3700
- }), o = r[0], a = r[1], i = e.forwardProps, s = e.children, l = e.className, c = e.removeScrollBar, d = e.enabled, p = e.shards, g = e.sideCar, v = e.noIsolation, m = e.inert, f = e.allowPinchZoom, w = e.as, b = w === void 0 ? "div" : w, x = e.gapMode, y = no(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), S = g, E = $s([n, t]), T = me(me({}, y), o);
3740
+ onScrollCapture: tn,
3741
+ onWheelCapture: tn,
3742
+ onTouchMoveCapture: tn
3743
+ }), o = r[0], a = r[1], i = e.forwardProps, s = e.children, l = e.className, c = e.removeScrollBar, d = e.enabled, p = e.shards, g = e.sideCar, v = e.noIsolation, m = e.inert, f = e.allowPinchZoom, w = e.as, b = w === void 0 ? "div" : w, x = e.gapMode, y = oo(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), S = g, E = Xs([n, t]), T = me(me({}, y), o);
3701
3744
  return u.createElement(
3702
3745
  u.Fragment,
3703
3746
  null,
3704
- d && u.createElement(S, { sideCar: oo, removeScrollBar: c, shards: p, noIsolation: v, inert: m, setCallbacks: a, allowPinchZoom: !!f, lockRef: n, gapMode: x }),
3747
+ d && u.createElement(S, { sideCar: io, removeScrollBar: c, shards: p, noIsolation: v, inert: m, setCallbacks: a, allowPinchZoom: !!f, lockRef: n, gapMode: x }),
3705
3748
  i ? u.cloneElement(u.Children.only(s), me(me({}, T), { ref: E })) : u.createElement(b, me({}, T, { className: l, ref: E }), s)
3706
3749
  );
3707
3750
  });
@@ -3711,40 +3754,40 @@ Wt.defaultProps = {
3711
3754
  inert: !1
3712
3755
  };
3713
3756
  Wt.classNames = {
3714
- fullWidth: Rt,
3715
- zeroRight: Pt
3757
+ fullWidth: It,
3758
+ zeroRight: Rt
3716
3759
  };
3717
- var Xs = function() {
3760
+ var Qs = function() {
3718
3761
  if (typeof __webpack_nonce__ < "u")
3719
3762
  return __webpack_nonce__;
3720
3763
  };
3721
- function Ks() {
3764
+ function Js() {
3722
3765
  if (!document)
3723
3766
  return null;
3724
3767
  var e = document.createElement("style");
3725
3768
  e.type = "text/css";
3726
- var t = Xs();
3769
+ var t = Qs();
3727
3770
  return t && e.setAttribute("nonce", t), e;
3728
3771
  }
3729
- function Gs(e, t) {
3772
+ function el(e, t) {
3730
3773
  e.styleSheet ? e.styleSheet.cssText = t : e.appendChild(document.createTextNode(t));
3731
3774
  }
3732
- function Zs(e) {
3775
+ function tl(e) {
3733
3776
  var t = document.head || document.getElementsByTagName("head")[0];
3734
3777
  t.appendChild(e);
3735
3778
  }
3736
- var qs = function() {
3779
+ var nl = function() {
3737
3780
  var e = 0, t = null;
3738
3781
  return {
3739
3782
  add: function(n) {
3740
- e == 0 && (t = Ks()) && (Gs(t, n), Zs(t)), e++;
3783
+ e == 0 && (t = Js()) && (el(t, n), tl(t)), e++;
3741
3784
  },
3742
3785
  remove: function() {
3743
3786
  e--, !e && t && (t.parentNode && t.parentNode.removeChild(t), t = null);
3744
3787
  }
3745
3788
  };
3746
- }, Qs = function() {
3747
- var e = qs();
3789
+ }, rl = function() {
3790
+ var e = nl();
3748
3791
  return function(t, n) {
3749
3792
  u.useEffect(function() {
3750
3793
  return e.add(t), function() {
@@ -3752,36 +3795,36 @@ var qs = function() {
3752
3795
  };
3753
3796
  }, [t && n]);
3754
3797
  };
3755
- }, ao = function() {
3756
- var e = Qs(), t = function(n) {
3798
+ }, so = function() {
3799
+ var e = rl(), t = function(n) {
3757
3800
  var r = n.styles, o = n.dynamic;
3758
3801
  return e(r, o), null;
3759
3802
  };
3760
3803
  return t;
3761
- }, Js = {
3804
+ }, ol = {
3762
3805
  left: 0,
3763
3806
  top: 0,
3764
3807
  right: 0,
3765
3808
  gap: 0
3766
- }, tn = function(e) {
3809
+ }, nn = function(e) {
3767
3810
  return parseInt(e || "", 10) || 0;
3768
- }, el = function(e) {
3811
+ }, al = function(e) {
3769
3812
  var t = window.getComputedStyle(document.body), n = t[e === "padding" ? "paddingLeft" : "marginLeft"], r = t[e === "padding" ? "paddingTop" : "marginTop"], o = t[e === "padding" ? "paddingRight" : "marginRight"];
3770
- return [tn(n), tn(r), tn(o)];
3771
- }, tl = function(e) {
3813
+ return [nn(n), nn(r), nn(o)];
3814
+ }, il = function(e) {
3772
3815
  if (e === void 0 && (e = "margin"), typeof window > "u")
3773
- return Js;
3774
- var t = el(e), n = document.documentElement.clientWidth, r = window.innerWidth;
3816
+ return ol;
3817
+ var t = al(e), n = document.documentElement.clientWidth, r = window.innerWidth;
3775
3818
  return {
3776
3819
  left: t[0],
3777
3820
  top: t[1],
3778
3821
  right: t[2],
3779
3822
  gap: Math.max(0, r - n + t[2] - t[0])
3780
3823
  };
3781
- }, nl = ao(), tt = "data-scroll-locked", rl = function(e, t, n, r) {
3824
+ }, sl = so(), tt = "data-scroll-locked", ll = function(e, t, n, r) {
3782
3825
  var o = e.left, a = e.top, i = e.right, s = e.gap;
3783
3826
  return n === void 0 && (n = "margin"), `
3784
- .`.concat(zs, ` {
3827
+ .`.concat(Us, ` {
3785
3828
  overflow: hidden `).concat(r, `;
3786
3829
  padding-right: `).concat(s, "px ").concat(r, `;
3787
3830
  }
@@ -3802,108 +3845,108 @@ var qs = function() {
3802
3845
  ].filter(Boolean).join(""), `
3803
3846
  }
3804
3847
 
3805
- .`).concat(Pt, ` {
3848
+ .`).concat(Rt, ` {
3806
3849
  right: `).concat(s, "px ").concat(r, `;
3807
3850
  }
3808
3851
 
3809
- .`).concat(Rt, ` {
3852
+ .`).concat(It, ` {
3810
3853
  margin-right: `).concat(s, "px ").concat(r, `;
3811
3854
  }
3812
3855
 
3813
- .`).concat(Pt, " .").concat(Pt, ` {
3856
+ .`).concat(Rt, " .").concat(Rt, ` {
3814
3857
  right: 0 `).concat(r, `;
3815
3858
  }
3816
3859
 
3817
- .`).concat(Rt, " .").concat(Rt, ` {
3860
+ .`).concat(It, " .").concat(It, ` {
3818
3861
  margin-right: 0 `).concat(r, `;
3819
3862
  }
3820
3863
 
3821
3864
  body[`).concat(tt, `] {
3822
- `).concat(Fs, ": ").concat(s, `px;
3865
+ `).concat(Hs, ": ").concat(s, `px;
3823
3866
  }
3824
3867
  `);
3825
- }, nr = function() {
3868
+ }, rr = function() {
3826
3869
  var e = parseInt(document.body.getAttribute(tt) || "0", 10);
3827
3870
  return isFinite(e) ? e : 0;
3828
- }, ol = function() {
3871
+ }, cl = function() {
3829
3872
  u.useEffect(function() {
3830
- return document.body.setAttribute(tt, (nr() + 1).toString()), function() {
3831
- var e = nr() - 1;
3873
+ return document.body.setAttribute(tt, (rr() + 1).toString()), function() {
3874
+ var e = rr() - 1;
3832
3875
  e <= 0 ? document.body.removeAttribute(tt) : document.body.setAttribute(tt, e.toString());
3833
3876
  };
3834
3877
  }, []);
3835
- }, al = function(e) {
3878
+ }, ul = function(e) {
3836
3879
  var t = e.noRelative, n = e.noImportant, r = e.gapMode, o = r === void 0 ? "margin" : r;
3837
- ol();
3880
+ cl();
3838
3881
  var a = u.useMemo(function() {
3839
- return tl(o);
3882
+ return il(o);
3840
3883
  }, [o]);
3841
- return u.createElement(nl, { styles: rl(a, !t, o, n ? "" : "!important") });
3842
- }, un = !1;
3884
+ return u.createElement(sl, { styles: ll(a, !t, o, n ? "" : "!important") });
3885
+ }, dn = !1;
3843
3886
  if (typeof window < "u")
3844
3887
  try {
3845
3888
  var kt = Object.defineProperty({}, "passive", {
3846
3889
  get: function() {
3847
- return un = !0, !0;
3890
+ return dn = !0, !0;
3848
3891
  }
3849
3892
  });
3850
3893
  window.addEventListener("test", kt, kt), window.removeEventListener("test", kt, kt);
3851
3894
  } catch {
3852
- un = !1;
3895
+ dn = !1;
3853
3896
  }
3854
- var Ke = un ? { passive: !1 } : !1, il = function(e) {
3897
+ var Ke = dn ? { passive: !1 } : !1, dl = function(e) {
3855
3898
  return e.tagName === "TEXTAREA";
3856
- }, io = function(e, t) {
3899
+ }, lo = function(e, t) {
3857
3900
  if (!(e instanceof Element))
3858
3901
  return !1;
3859
3902
  var n = window.getComputedStyle(e);
3860
3903
  return (
3861
3904
  // not-not-scrollable
3862
3905
  n[t] !== "hidden" && // contains scroll inside self
3863
- !(n.overflowY === n.overflowX && !il(e) && n[t] === "visible")
3906
+ !(n.overflowY === n.overflowX && !dl(e) && n[t] === "visible")
3864
3907
  );
3865
- }, sl = function(e) {
3866
- return io(e, "overflowY");
3867
- }, ll = function(e) {
3868
- return io(e, "overflowX");
3869
- }, rr = function(e, t) {
3908
+ }, fl = function(e) {
3909
+ return lo(e, "overflowY");
3910
+ }, pl = function(e) {
3911
+ return lo(e, "overflowX");
3912
+ }, or = function(e, t) {
3870
3913
  var n = t.ownerDocument, r = t;
3871
3914
  do {
3872
3915
  typeof ShadowRoot < "u" && r instanceof ShadowRoot && (r = r.host);
3873
- var o = so(e, r);
3916
+ var o = co(e, r);
3874
3917
  if (o) {
3875
- var a = lo(e, r), i = a[1], s = a[2];
3918
+ var a = uo(e, r), i = a[1], s = a[2];
3876
3919
  if (i > s)
3877
3920
  return !0;
3878
3921
  }
3879
3922
  r = r.parentNode;
3880
3923
  } while (r && r !== n.body);
3881
3924
  return !1;
3882
- }, cl = function(e) {
3925
+ }, hl = function(e) {
3883
3926
  var t = e.scrollTop, n = e.scrollHeight, r = e.clientHeight;
3884
3927
  return [
3885
3928
  t,
3886
3929
  n,
3887
3930
  r
3888
3931
  ];
3889
- }, ul = function(e) {
3932
+ }, vl = function(e) {
3890
3933
  var t = e.scrollLeft, n = e.scrollWidth, r = e.clientWidth;
3891
3934
  return [
3892
3935
  t,
3893
3936
  n,
3894
3937
  r
3895
3938
  ];
3896
- }, so = function(e, t) {
3897
- return e === "v" ? sl(t) : ll(t);
3898
- }, lo = function(e, t) {
3899
- return e === "v" ? cl(t) : ul(t);
3900
- }, dl = function(e, t) {
3939
+ }, co = function(e, t) {
3940
+ return e === "v" ? fl(t) : pl(t);
3941
+ }, uo = function(e, t) {
3942
+ return e === "v" ? hl(t) : vl(t);
3943
+ }, gl = function(e, t) {
3901
3944
  return e === "h" && t === "rtl" ? -1 : 1;
3902
- }, fl = function(e, t, n, r, o) {
3903
- var a = dl(e, window.getComputedStyle(t).direction), i = a * r, s = n.target, l = t.contains(s), c = !1, d = i > 0, p = 0, g = 0;
3945
+ }, ml = function(e, t, n, r, o) {
3946
+ var a = gl(e, window.getComputedStyle(t).direction), i = a * r, s = n.target, l = t.contains(s), c = !1, d = i > 0, p = 0, g = 0;
3904
3947
  do {
3905
- var v = lo(e, s), m = v[0], f = v[1], w = v[2], b = f - w - a * m;
3906
- (m || b) && so(e, s) && (p += b, g += m), s instanceof ShadowRoot ? s = s.host : s = s.parentNode;
3948
+ var v = uo(e, s), m = v[0], f = v[1], w = v[2], b = f - w - a * m;
3949
+ (m || b) && co(e, s) && (p += b, g += m), s instanceof ShadowRoot ? s = s.host : s = s.parentNode;
3907
3950
  } while (
3908
3951
  // portaled content
3909
3952
  !l && s !== document.body || // self content
@@ -3912,26 +3955,26 @@ var Ke = un ? { passive: !1 } : !1, il = function(e) {
3912
3955
  return (d && Math.abs(p) < 1 || !d && Math.abs(g) < 1) && (c = !0), c;
3913
3956
  }, Tt = function(e) {
3914
3957
  return "changedTouches" in e ? [e.changedTouches[0].clientX, e.changedTouches[0].clientY] : [0, 0];
3915
- }, or = function(e) {
3916
- return [e.deltaX, e.deltaY];
3917
3958
  }, ar = function(e) {
3959
+ return [e.deltaX, e.deltaY];
3960
+ }, ir = function(e) {
3918
3961
  return e && "current" in e ? e.current : e;
3919
- }, pl = function(e, t) {
3962
+ }, wl = function(e, t) {
3920
3963
  return e[0] === t[0] && e[1] === t[1];
3921
- }, hl = function(e) {
3964
+ }, bl = function(e) {
3922
3965
  return `
3923
3966
  .block-interactivity-`.concat(e, ` {pointer-events: none;}
3924
3967
  .allow-interactivity-`).concat(e, ` {pointer-events: all;}
3925
3968
  `);
3926
- }, vl = 0, Ge = [];
3927
- function gl(e) {
3928
- var t = u.useRef([]), n = u.useRef([0, 0]), r = u.useRef(), o = u.useState(vl++)[0], a = u.useState(ao)[0], i = u.useRef(e);
3969
+ }, xl = 0, Ge = [];
3970
+ function yl(e) {
3971
+ var t = u.useRef([]), n = u.useRef([0, 0]), r = u.useRef(), o = u.useState(xl++)[0], a = u.useState(so)[0], i = u.useRef(e);
3929
3972
  u.useEffect(function() {
3930
3973
  i.current = e;
3931
3974
  }, [e]), u.useEffect(function() {
3932
3975
  if (e.inert) {
3933
3976
  document.body.classList.add("block-interactivity-".concat(o));
3934
- var f = Bs([e.lockRef.current], (e.shards || []).map(ar), !0).filter(Boolean);
3977
+ var f = Ws([e.lockRef.current], (e.shards || []).map(ir), !0).filter(Boolean);
3935
3978
  return f.forEach(function(w) {
3936
3979
  return w.classList.add("allow-interactivity-".concat(o));
3937
3980
  }), function() {
@@ -3947,34 +3990,34 @@ function gl(e) {
3947
3990
  var b = Tt(f), x = n.current, y = "deltaX" in f ? f.deltaX : x[0] - b[0], S = "deltaY" in f ? f.deltaY : x[1] - b[1], E, T = f.target, C = Math.abs(y) > Math.abs(S) ? "h" : "v";
3948
3991
  if ("touches" in f && C === "h" && T.type === "range")
3949
3992
  return !1;
3950
- var P = rr(C, T);
3951
- if (!P)
3993
+ var R = or(C, T);
3994
+ if (!R)
3952
3995
  return !0;
3953
- if (P ? E = C : (E = C === "v" ? "h" : "v", P = rr(C, T)), !P)
3996
+ if (R ? E = C : (E = C === "v" ? "h" : "v", R = or(C, T)), !R)
3954
3997
  return !1;
3955
3998
  if (!r.current && "changedTouches" in f && (y || S) && (r.current = E), !E)
3956
3999
  return !0;
3957
4000
  var O = r.current || E;
3958
- return fl(O, w, f, O === "h" ? y : S);
4001
+ return ml(O, w, f, O === "h" ? y : S);
3959
4002
  }, []), l = u.useCallback(function(f) {
3960
4003
  var w = f;
3961
4004
  if (!(!Ge.length || Ge[Ge.length - 1] !== a)) {
3962
- var b = "deltaY" in w ? or(w) : Tt(w), x = t.current.filter(function(E) {
3963
- return E.name === w.type && (E.target === w.target || w.target === E.shadowParent) && pl(E.delta, b);
4005
+ var b = "deltaY" in w ? ar(w) : Tt(w), x = t.current.filter(function(E) {
4006
+ return E.name === w.type && (E.target === w.target || w.target === E.shadowParent) && wl(E.delta, b);
3964
4007
  })[0];
3965
4008
  if (x && x.should) {
3966
4009
  w.cancelable && w.preventDefault();
3967
4010
  return;
3968
4011
  }
3969
4012
  if (!x) {
3970
- var y = (i.current.shards || []).map(ar).filter(Boolean).filter(function(E) {
4013
+ var y = (i.current.shards || []).map(ir).filter(Boolean).filter(function(E) {
3971
4014
  return E.contains(w.target);
3972
4015
  }), S = y.length > 0 ? s(w, y[0]) : !i.current.noIsolation;
3973
4016
  S && w.cancelable && w.preventDefault();
3974
4017
  }
3975
4018
  }
3976
4019
  }, []), c = u.useCallback(function(f, w, b, x) {
3977
- var y = { name: f, delta: w, target: b, should: x, shadowParent: ml(b) };
4020
+ var y = { name: f, delta: w, target: b, should: x, shadowParent: Cl(b) };
3978
4021
  t.current.push(y), setTimeout(function() {
3979
4022
  t.current = t.current.filter(function(S) {
3980
4023
  return S !== y;
@@ -3983,7 +4026,7 @@ function gl(e) {
3983
4026
  }, []), d = u.useCallback(function(f) {
3984
4027
  n.current = Tt(f), r.current = void 0;
3985
4028
  }, []), p = u.useCallback(function(f) {
3986
- c(f.type, or(f), f.target, s(f, e.lockRef.current));
4029
+ c(f.type, ar(f), f.target, s(f, e.lockRef.current));
3987
4030
  }, []), g = u.useCallback(function(f) {
3988
4031
  c(f.type, Tt(f), f.target, s(f, e.lockRef.current));
3989
4032
  }, []);
@@ -4002,24 +4045,24 @@ function gl(e) {
4002
4045
  return u.createElement(
4003
4046
  u.Fragment,
4004
4047
  null,
4005
- m ? u.createElement(a, { styles: hl(o) }) : null,
4006
- v ? u.createElement(al, { gapMode: e.gapMode }) : null
4048
+ m ? u.createElement(a, { styles: bl(o) }) : null,
4049
+ v ? u.createElement(ul, { gapMode: e.gapMode }) : null
4007
4050
  );
4008
4051
  }
4009
- function ml(e) {
4052
+ function Cl(e) {
4010
4053
  for (var t = null; e !== null; )
4011
4054
  e instanceof ShadowRoot && (t = e.host, e = e.host), e = e.parentNode;
4012
4055
  return t;
4013
4056
  }
4014
- const wl = Ys(oo, gl);
4015
- var co = u.forwardRef(function(e, t) {
4016
- return u.createElement(Wt, me({}, e, { ref: t, sideCar: wl }));
4057
+ const Sl = qs(io, yl);
4058
+ var fo = u.forwardRef(function(e, t) {
4059
+ return u.createElement(Wt, me({}, e, { ref: t, sideCar: Sl }));
4017
4060
  });
4018
- co.classNames = Wt.classNames;
4019
- var bl = [" ", "Enter", "ArrowUp", "ArrowDown"], xl = [" ", "Enter"], He = "Select", [$t, Ut, yl] = Xa(He), [st, Pc] = xn(He, [
4020
- yl,
4021
- Hr
4022
- ]), Ht = Hr(), [Cl, Fe] = st(He), [Sl, El] = st(He), uo = (e) => {
4061
+ fo.classNames = Wt.classNames;
4062
+ var El = [" ", "Enter", "ArrowUp", "ArrowDown"], kl = [" ", "Enter"], He = "Select", [Ut, Ht, Tl] = Qa(He), [st, Oc] = yn(He, [
4063
+ Tl,
4064
+ Yr
4065
+ ]), jt = Yr(), [Al, Fe] = st(He), [Pl, Rl] = st(He), po = (e) => {
4023
4066
  const {
4024
4067
  __scopeSelect: t,
4025
4068
  children: n,
@@ -4035,19 +4078,19 @@ var bl = [" ", "Enter", "ArrowUp", "ArrowDown"], xl = [" ", "Enter"], He = "Sele
4035
4078
  disabled: g,
4036
4079
  required: v,
4037
4080
  form: m
4038
- } = e, f = Ht(t), [w, b] = u.useState(null), [x, y] = u.useState(null), [S, E] = u.useState(!1), T = Ga(c), [C, P] = er({
4081
+ } = e, f = jt(t), [w, b] = u.useState(null), [x, y] = u.useState(null), [S, E] = u.useState(!1), T = ei(c), [C, R] = tr({
4039
4082
  prop: r,
4040
4083
  defaultProp: o ?? !1,
4041
4084
  onChange: a,
4042
4085
  caller: He
4043
- }), [O, M] = er({
4086
+ }), [O, M] = tr({
4044
4087
  prop: i,
4045
4088
  defaultProp: s,
4046
4089
  onChange: l,
4047
4090
  caller: He
4048
- }), V = u.useRef(null), W = w ? m || !!w.closest("form") : !0, [D, _] = u.useState(/* @__PURE__ */ new Set()), Y = Array.from(D).map((N) => N.props.value).join(";");
4049
- return /* @__PURE__ */ k(Cs, { ...f, children: /* @__PURE__ */ It(
4050
- Cl,
4091
+ }), V = u.useRef(null), $ = w ? m || !!w.closest("form") : !0, [D, N] = u.useState(/* @__PURE__ */ new Set()), X = Array.from(D).map((_) => _.props.value).join(";");
4092
+ return /* @__PURE__ */ k(As, { ...f, children: /* @__PURE__ */ _t(
4093
+ Al,
4051
4094
  {
4052
4095
  required: v,
4053
4096
  scope: t,
@@ -4057,33 +4100,33 @@ var bl = [" ", "Enter", "ArrowUp", "ArrowDown"], xl = [" ", "Enter"], He = "Sele
4057
4100
  onValueNodeChange: y,
4058
4101
  valueNodeHasChildren: S,
4059
4102
  onValueNodeHasChildrenChange: E,
4060
- contentId: yn(),
4103
+ contentId: Cn(),
4061
4104
  value: O,
4062
4105
  onValueChange: M,
4063
4106
  open: C,
4064
- onOpenChange: P,
4107
+ onOpenChange: R,
4065
4108
  dir: T,
4066
4109
  triggerPointerDownPosRef: V,
4067
4110
  disabled: g,
4068
4111
  children: [
4069
- /* @__PURE__ */ k($t.Provider, { scope: t, children: /* @__PURE__ */ k(
4070
- Sl,
4112
+ /* @__PURE__ */ k(Ut.Provider, { scope: t, children: /* @__PURE__ */ k(
4113
+ Pl,
4071
4114
  {
4072
4115
  scope: e.__scopeSelect,
4073
- onNativeOptionAdd: u.useCallback((N) => {
4074
- _((L) => new Set(L).add(N));
4116
+ onNativeOptionAdd: u.useCallback((_) => {
4117
+ N((L) => new Set(L).add(_));
4075
4118
  }, []),
4076
- onNativeOptionRemove: u.useCallback((N) => {
4077
- _((L) => {
4078
- const R = new Set(L);
4079
- return R.delete(N), R;
4119
+ onNativeOptionRemove: u.useCallback((_) => {
4120
+ N((L) => {
4121
+ const I = new Set(L);
4122
+ return I.delete(_), I;
4080
4123
  });
4081
4124
  }, []),
4082
4125
  children: n
4083
4126
  }
4084
4127
  ) }),
4085
- W ? /* @__PURE__ */ It(
4086
- _o,
4128
+ $ ? /* @__PURE__ */ _t(
4129
+ Mo,
4087
4130
  {
4088
4131
  "aria-hidden": !0,
4089
4132
  required: v,
@@ -4091,7 +4134,7 @@ var bl = [" ", "Enter", "ArrowUp", "ArrowDown"], xl = [" ", "Enter"], He = "Sele
4091
4134
  name: d,
4092
4135
  autoComplete: p,
4093
4136
  value: O,
4094
- onChange: (N) => M(N.target.value),
4137
+ onChange: (_) => M(_.target.value),
4095
4138
  disabled: g,
4096
4139
  form: m,
4097
4140
  children: [
@@ -4099,17 +4142,17 @@ var bl = [" ", "Enter", "ArrowUp", "ArrowDown"], xl = [" ", "Enter"], He = "Sele
4099
4142
  Array.from(D)
4100
4143
  ]
4101
4144
  },
4102
- Y
4145
+ X
4103
4146
  ) : null
4104
4147
  ]
4105
4148
  }
4106
4149
  ) });
4107
4150
  };
4108
- uo.displayName = He;
4109
- var fo = "SelectTrigger", po = u.forwardRef(
4151
+ po.displayName = He;
4152
+ var ho = "SelectTrigger", vo = u.forwardRef(
4110
4153
  (e, t) => {
4111
- const { __scopeSelect: n, disabled: r = !1, ...o } = e, a = Ht(n), i = Fe(fo, n), s = i.disabled || r, l = Z(t, i.onTriggerChange), c = Ut(n), d = u.useRef("touch"), [p, g, v] = Mo((f) => {
4112
- const w = c().filter((y) => !y.disabled), b = w.find((y) => y.value === i.value), x = Lo(w, f, b);
4154
+ const { __scopeSelect: n, disabled: r = !1, ...o } = e, a = jt(n), i = Fe(ho, n), s = i.disabled || r, l = Z(t, i.onTriggerChange), c = Ht(n), d = u.useRef("touch"), [p, g, v] = Do((f) => {
4155
+ const w = c().filter((y) => !y.disabled), b = w.find((y) => y.value === i.value), x = Bo(w, f, b);
4113
4156
  x !== void 0 && i.onValueChange(x.value);
4114
4157
  }), m = (f) => {
4115
4158
  s || (i.onOpenChange(!0), v()), f && (i.triggerPointerDownPosRef.current = {
@@ -4117,7 +4160,7 @@ var fo = "SelectTrigger", po = u.forwardRef(
4117
4160
  y: Math.round(f.pageY)
4118
4161
  });
4119
4162
  };
4120
- return /* @__PURE__ */ k(Ss, { asChild: !0, ...a, children: /* @__PURE__ */ k(
4163
+ return /* @__PURE__ */ k(Ps, { asChild: !0, ...a, children: /* @__PURE__ */ k(
4121
4164
  K.button,
4122
4165
  {
4123
4166
  type: "button",
@@ -4130,7 +4173,7 @@ var fo = "SelectTrigger", po = u.forwardRef(
4130
4173
  "data-state": i.open ? "open" : "closed",
4131
4174
  disabled: s,
4132
4175
  "data-disabled": s ? "" : void 0,
4133
- "data-placeholder": Oo(i.value) ? "" : void 0,
4176
+ "data-placeholder": Lo(i.value) ? "" : void 0,
4134
4177
  ...o,
4135
4178
  ref: l,
4136
4179
  onClick: G(o.onClick, (f) => {
@@ -4143,16 +4186,16 @@ var fo = "SelectTrigger", po = u.forwardRef(
4143
4186
  }),
4144
4187
  onKeyDown: G(o.onKeyDown, (f) => {
4145
4188
  const w = p.current !== "";
4146
- !(f.ctrlKey || f.altKey || f.metaKey) && f.key.length === 1 && g(f.key), !(w && f.key === " ") && bl.includes(f.key) && (m(), f.preventDefault());
4189
+ !(f.ctrlKey || f.altKey || f.metaKey) && f.key.length === 1 && g(f.key), !(w && f.key === " ") && El.includes(f.key) && (m(), f.preventDefault());
4147
4190
  })
4148
4191
  }
4149
4192
  ) });
4150
4193
  }
4151
4194
  );
4152
- po.displayName = fo;
4153
- var ho = "SelectValue", kl = u.forwardRef(
4195
+ vo.displayName = ho;
4196
+ var go = "SelectValue", Il = u.forwardRef(
4154
4197
  (e, t) => {
4155
- const { __scopeSelect: n, className: r, style: o, children: a, placeholder: i = "", ...s } = e, l = Fe(ho, n), { onValueNodeHasChildrenChange: c } = l, d = a !== void 0, p = Z(t, l.onValueNodeChange);
4198
+ const { __scopeSelect: n, className: r, style: o, children: a, placeholder: i = "", ...s } = e, l = Fe(go, n), { onValueNodeHasChildrenChange: c } = l, d = a !== void 0, p = Z(t, l.onValueNodeChange);
4156
4199
  return te(() => {
4157
4200
  c(d);
4158
4201
  }, [c, d]), /* @__PURE__ */ k(
@@ -4161,22 +4204,22 @@ var ho = "SelectValue", kl = u.forwardRef(
4161
4204
  ...s,
4162
4205
  ref: p,
4163
4206
  style: { pointerEvents: "none" },
4164
- children: Oo(l.value) ? /* @__PURE__ */ k(gn, { children: i }) : a
4207
+ children: Lo(l.value) ? /* @__PURE__ */ k(mn, { children: i }) : a
4165
4208
  }
4166
4209
  );
4167
4210
  }
4168
4211
  );
4169
- kl.displayName = ho;
4170
- var Tl = "SelectIcon", vo = u.forwardRef(
4212
+ Il.displayName = go;
4213
+ var _l = "SelectIcon", mo = u.forwardRef(
4171
4214
  (e, t) => {
4172
4215
  const { __scopeSelect: n, children: r, ...o } = e;
4173
4216
  return /* @__PURE__ */ k(K.span, { "aria-hidden": !0, ...o, ref: t, children: r || "▼" });
4174
4217
  }
4175
4218
  );
4176
- vo.displayName = Tl;
4177
- var Al = "SelectPortal", go = (e) => /* @__PURE__ */ k(Jr, { asChild: !0, ...e });
4178
- go.displayName = Al;
4179
- var je = "SelectContent", mo = u.forwardRef(
4219
+ mo.displayName = _l;
4220
+ var Nl = "SelectPortal", wo = (e) => /* @__PURE__ */ k(to, { asChild: !0, ...e });
4221
+ wo.displayName = Nl;
4222
+ var je = "SelectContent", bo = u.forwardRef(
4180
4223
  (e, t) => {
4181
4224
  const n = Fe(je, e.__scopeSelect), [r, o] = u.useState();
4182
4225
  if (te(() => {
@@ -4184,15 +4227,15 @@ var je = "SelectContent", mo = u.forwardRef(
4184
4227
  }, []), !n.open) {
4185
4228
  const a = r;
4186
4229
  return a ? u.createPortal(
4187
- /* @__PURE__ */ k(wo, { scope: e.__scopeSelect, children: /* @__PURE__ */ k($t.Slot, { scope: e.__scopeSelect, children: /* @__PURE__ */ k("div", { children: e.children }) }) }),
4230
+ /* @__PURE__ */ k(xo, { scope: e.__scopeSelect, children: /* @__PURE__ */ k(Ut.Slot, { scope: e.__scopeSelect, children: /* @__PURE__ */ k("div", { children: e.children }) }) }),
4188
4231
  a
4189
4232
  ) : null;
4190
4233
  }
4191
- return /* @__PURE__ */ k(bo, { ...e, ref: t });
4234
+ return /* @__PURE__ */ k(yo, { ...e, ref: t });
4192
4235
  }
4193
4236
  );
4194
- mo.displayName = je;
4195
- var se = 10, [wo, Ve] = st(je), Pl = "SelectContentImpl", Rl = /* @__PURE__ */ vt("SelectContent.RemoveScroll"), bo = u.forwardRef(
4237
+ bo.displayName = je;
4238
+ var se = 10, [xo, Ve] = st(je), Ol = "SelectContentImpl", Ml = /* @__PURE__ */ vt("SelectContent.RemoveScroll"), yo = u.forwardRef(
4196
4239
  (e, t) => {
4197
4240
  const {
4198
4241
  __scopeSelect: n,
@@ -4214,65 +4257,65 @@ var se = 10, [wo, Ve] = st(je), Pl = "SelectContentImpl", Rl = /* @__PURE__ */ v
4214
4257
  avoidCollisions: w,
4215
4258
  //
4216
4259
  ...b
4217
- } = e, x = Fe(je, n), [y, S] = u.useState(null), [E, T] = u.useState(null), C = Z(t, (A) => S(A)), [P, O] = u.useState(null), [M, V] = u.useState(
4260
+ } = e, x = Fe(je, n), [y, S] = u.useState(null), [E, T] = u.useState(null), C = Z(t, (A) => S(A)), [R, O] = u.useState(null), [M, V] = u.useState(
4218
4261
  null
4219
- ), W = Ut(n), [D, _] = u.useState(!1), Y = u.useRef(!1);
4262
+ ), $ = Ht(n), [D, N] = u.useState(!1), X = u.useRef(!1);
4220
4263
  u.useEffect(() => {
4221
- if (y) return Ds(y);
4222
- }, [y]), ii();
4223
- const N = u.useCallback(
4264
+ if (y) return $s(y);
4265
+ }, [y]), di();
4266
+ const _ = u.useCallback(
4224
4267
  (A) => {
4225
- const [U, ...q] = W().map((z) => z.ref.current), [F] = q.slice(-1), B = document.activeElement;
4268
+ const [U, ...Q] = $().map((z) => z.ref.current), [F] = Q.slice(-1), B = document.activeElement;
4226
4269
  for (const z of A)
4227
4270
  if (z === B || (z == null || z.scrollIntoView({ block: "nearest" }), z === U && E && (E.scrollTop = 0), z === F && E && (E.scrollTop = E.scrollHeight), z == null || z.focus(), document.activeElement !== B)) return;
4228
4271
  },
4229
- [W, E]
4272
+ [$, E]
4230
4273
  ), L = u.useCallback(
4231
- () => N([P, y]),
4232
- [N, P, y]
4274
+ () => _([R, y]),
4275
+ [_, R, y]
4233
4276
  );
4234
4277
  u.useEffect(() => {
4235
4278
  D && L();
4236
4279
  }, [D, L]);
4237
- const { onOpenChange: R, triggerPointerDownPosRef: $ } = x;
4280
+ const { onOpenChange: I, triggerPointerDownPosRef: W } = x;
4238
4281
  u.useEffect(() => {
4239
4282
  if (y) {
4240
4283
  let A = { x: 0, y: 0 };
4241
4284
  const U = (F) => {
4242
4285
  var B, z;
4243
4286
  A = {
4244
- x: Math.abs(Math.round(F.pageX) - (((B = $.current) == null ? void 0 : B.x) ?? 0)),
4245
- y: Math.abs(Math.round(F.pageY) - (((z = $.current) == null ? void 0 : z.y) ?? 0))
4287
+ x: Math.abs(Math.round(F.pageX) - (((B = W.current) == null ? void 0 : B.x) ?? 0)),
4288
+ y: Math.abs(Math.round(F.pageY) - (((z = W.current) == null ? void 0 : z.y) ?? 0))
4246
4289
  };
4247
- }, q = (F) => {
4248
- A.x <= 10 && A.y <= 10 ? F.preventDefault() : y.contains(F.target) || R(!1), document.removeEventListener("pointermove", U), $.current = null;
4290
+ }, Q = (F) => {
4291
+ A.x <= 10 && A.y <= 10 ? F.preventDefault() : y.contains(F.target) || I(!1), document.removeEventListener("pointermove", U), W.current = null;
4249
4292
  };
4250
- return $.current !== null && (document.addEventListener("pointermove", U), document.addEventListener("pointerup", q, { capture: !0, once: !0 })), () => {
4251
- document.removeEventListener("pointermove", U), document.removeEventListener("pointerup", q, { capture: !0 });
4293
+ return W.current !== null && (document.addEventListener("pointermove", U), document.addEventListener("pointerup", Q, { capture: !0, once: !0 })), () => {
4294
+ document.removeEventListener("pointermove", U), document.removeEventListener("pointerup", Q, { capture: !0 });
4252
4295
  };
4253
4296
  }
4254
- }, [y, R, $]), u.useEffect(() => {
4255
- const A = () => R(!1);
4297
+ }, [y, I, W]), u.useEffect(() => {
4298
+ const A = () => I(!1);
4256
4299
  return window.addEventListener("blur", A), window.addEventListener("resize", A), () => {
4257
4300
  window.removeEventListener("blur", A), window.removeEventListener("resize", A);
4258
4301
  };
4259
- }, [R]);
4260
- const [ee, Ee] = Mo((A) => {
4261
- const U = W().filter((B) => !B.disabled), q = U.find((B) => B.ref.current === document.activeElement), F = Lo(U, A, q);
4302
+ }, [I]);
4303
+ const [ee, Ee] = Do((A) => {
4304
+ const U = $().filter((B) => !B.disabled), Q = U.find((B) => B.ref.current === document.activeElement), F = Bo(U, A, Q);
4262
4305
  F && setTimeout(() => F.ref.current.focus());
4263
4306
  }), lt = u.useCallback(
4264
- (A, U, q) => {
4265
- const F = !Y.current && !q;
4266
- (x.value !== void 0 && x.value === U || F) && (O(A), F && (Y.current = !0));
4307
+ (A, U, Q) => {
4308
+ const F = !X.current && !Q;
4309
+ (x.value !== void 0 && x.value === U || F) && (O(A), F && (X.current = !0));
4267
4310
  },
4268
4311
  [x.value]
4269
4312
  ), ct = u.useCallback(() => y == null ? void 0 : y.focus(), [y]), Ie = u.useCallback(
4270
- (A, U, q) => {
4271
- const F = !Y.current && !q;
4313
+ (A, U, Q) => {
4314
+ const F = !X.current && !Q;
4272
4315
  (x.value !== void 0 && x.value === U || F) && V(A);
4273
4316
  },
4274
4317
  [x.value]
4275
- ), Ye = r === "popper" ? dn : xo, We = Ye === dn ? {
4318
+ ), Ye = r === "popper" ? fn : Co, $e = Ye === fn ? {
4276
4319
  side: s,
4277
4320
  sideOffset: l,
4278
4321
  align: c,
@@ -4285,14 +4328,14 @@ var se = 10, [wo, Ve] = st(je), Pl = "SelectContentImpl", Rl = /* @__PURE__ */ v
4285
4328
  avoidCollisions: w
4286
4329
  } : {};
4287
4330
  return /* @__PURE__ */ k(
4288
- wo,
4331
+ xo,
4289
4332
  {
4290
4333
  scope: n,
4291
4334
  content: y,
4292
4335
  viewport: E,
4293
4336
  onViewportChange: T,
4294
4337
  itemRefCallback: lt,
4295
- selectedItem: P,
4338
+ selectedItem: R,
4296
4339
  onItemLeave: ct,
4297
4340
  itemTextRefCallback: Ie,
4298
4341
  focusSelectedItem: L,
@@ -4300,8 +4343,8 @@ var se = 10, [wo, Ve] = st(je), Pl = "SelectContentImpl", Rl = /* @__PURE__ */ v
4300
4343
  position: r,
4301
4344
  isPositioned: D,
4302
4345
  searchRef: ee,
4303
- children: /* @__PURE__ */ k(co, { as: Rl, allowPinchZoom: !0, children: /* @__PURE__ */ k(
4304
- Ir,
4346
+ children: /* @__PURE__ */ k(fo, { as: Ml, allowPinchZoom: !0, children: /* @__PURE__ */ k(
4347
+ Nr,
4305
4348
  {
4306
4349
  asChild: !0,
4307
4350
  trapped: x.open,
@@ -4313,7 +4356,7 @@ var se = 10, [wo, Ve] = st(je), Pl = "SelectContentImpl", Rl = /* @__PURE__ */ v
4313
4356
  (U = x.trigger) == null || U.focus({ preventScroll: !0 }), A.preventDefault();
4314
4357
  }),
4315
4358
  children: /* @__PURE__ */ k(
4316
- Pr,
4359
+ Ir,
4317
4360
  {
4318
4361
  asChild: !0,
4319
4362
  disableOutsidePointerEvents: !0,
@@ -4330,8 +4373,8 @@ var se = 10, [wo, Ve] = st(je), Pl = "SelectContentImpl", Rl = /* @__PURE__ */ v
4330
4373
  dir: x.dir,
4331
4374
  onContextMenu: (A) => A.preventDefault(),
4332
4375
  ...b,
4333
- ...We,
4334
- onPlaced: () => _(!0),
4376
+ ...$e,
4377
+ onPlaced: () => N(!0),
4335
4378
  ref: C,
4336
4379
  style: {
4337
4380
  // flex layout so we can place the scroll buttons properly
@@ -4344,12 +4387,12 @@ var se = 10, [wo, Ve] = st(je), Pl = "SelectContentImpl", Rl = /* @__PURE__ */ v
4344
4387
  onKeyDown: G(b.onKeyDown, (A) => {
4345
4388
  const U = A.ctrlKey || A.altKey || A.metaKey;
4346
4389
  if (A.key === "Tab" && A.preventDefault(), !U && A.key.length === 1 && Ee(A.key), ["ArrowUp", "ArrowDown", "Home", "End"].includes(A.key)) {
4347
- let F = W().filter((B) => !B.disabled).map((B) => B.ref.current);
4390
+ let F = $().filter((B) => !B.disabled).map((B) => B.ref.current);
4348
4391
  if (["ArrowUp", "End"].includes(A.key) && (F = F.slice().reverse()), ["ArrowUp", "ArrowDown"].includes(A.key)) {
4349
4392
  const B = A.target, z = F.indexOf(B);
4350
4393
  F = F.slice(z + 1);
4351
4394
  }
4352
- setTimeout(() => N(F)), A.preventDefault();
4395
+ setTimeout(() => _(F)), A.preventDefault();
4353
4396
  }
4354
4397
  })
4355
4398
  }
@@ -4362,13 +4405,13 @@ var se = 10, [wo, Ve] = st(je), Pl = "SelectContentImpl", Rl = /* @__PURE__ */ v
4362
4405
  );
4363
4406
  }
4364
4407
  );
4365
- bo.displayName = Pl;
4366
- var Il = "SelectItemAlignedPosition", xo = u.forwardRef((e, t) => {
4367
- const { __scopeSelect: n, onPlaced: r, ...o } = e, a = Fe(je, n), i = Ve(je, n), [s, l] = u.useState(null), [c, d] = u.useState(null), p = Z(t, (C) => d(C)), g = Ut(n), v = u.useRef(!1), m = u.useRef(!0), { viewport: f, selectedItem: w, selectedItemText: b, focusSelectedItem: x } = i, y = u.useCallback(() => {
4408
+ yo.displayName = Ol;
4409
+ var Ll = "SelectItemAlignedPosition", Co = u.forwardRef((e, t) => {
4410
+ const { __scopeSelect: n, onPlaced: r, ...o } = e, a = Fe(je, n), i = Ve(je, n), [s, l] = u.useState(null), [c, d] = u.useState(null), p = Z(t, (C) => d(C)), g = Ht(n), v = u.useRef(!1), m = u.useRef(!0), { viewport: f, selectedItem: w, selectedItemText: b, focusSelectedItem: x } = i, y = u.useCallback(() => {
4368
4411
  if (a.trigger && a.valueNode && s && c && f && w && b) {
4369
- const C = a.trigger.getBoundingClientRect(), P = c.getBoundingClientRect(), O = a.valueNode.getBoundingClientRect(), M = b.getBoundingClientRect();
4412
+ const C = a.trigger.getBoundingClientRect(), R = c.getBoundingClientRect(), O = a.valueNode.getBoundingClientRect(), M = b.getBoundingClientRect();
4370
4413
  if (a.dir !== "rtl") {
4371
- const B = M.left - P.left, z = O.left - B, oe = C.left - z, ve = C.width + oe, ut = Math.max(ve, P.width), dt = window.innerWidth - se, ft = zn(z, [
4414
+ const B = M.left - R.left, z = O.left - B, oe = C.left - z, ve = C.width + oe, ut = Math.max(ve, R.width), dt = window.innerWidth - se, ft = Fn(z, [
4372
4415
  se,
4373
4416
  // Prevents the content from going off the starting edge of the
4374
4417
  // viewport. It may still go off the ending edge, but this can be
@@ -4379,19 +4422,19 @@ var Il = "SelectItemAlignedPosition", xo = u.forwardRef((e, t) => {
4379
4422
  ]);
4380
4423
  s.style.minWidth = ve + "px", s.style.left = ft + "px";
4381
4424
  } else {
4382
- const B = P.right - M.right, z = window.innerWidth - O.right - B, oe = window.innerWidth - C.right - z, ve = C.width + oe, ut = Math.max(ve, P.width), dt = window.innerWidth - se, ft = zn(z, [
4425
+ const B = R.right - M.right, z = window.innerWidth - O.right - B, oe = window.innerWidth - C.right - z, ve = C.width + oe, ut = Math.max(ve, R.width), dt = window.innerWidth - se, ft = Fn(z, [
4383
4426
  se,
4384
4427
  Math.max(se, dt - ut)
4385
4428
  ]);
4386
4429
  s.style.minWidth = ve + "px", s.style.right = ft + "px";
4387
4430
  }
4388
- const V = g(), W = window.innerHeight - se * 2, D = f.scrollHeight, _ = window.getComputedStyle(c), Y = parseInt(_.borderTopWidth, 10), N = parseInt(_.paddingTop, 10), L = parseInt(_.borderBottomWidth, 10), R = parseInt(_.paddingBottom, 10), $ = Y + N + D + R + L, ee = Math.min(w.offsetHeight * 5, $), Ee = window.getComputedStyle(f), lt = parseInt(Ee.paddingTop, 10), ct = parseInt(Ee.paddingBottom, 10), Ie = C.top + C.height / 2 - se, Ye = W - Ie, We = w.offsetHeight / 2, A = w.offsetTop + We, U = Y + N + A, q = $ - U;
4431
+ const V = g(), $ = window.innerHeight - se * 2, D = f.scrollHeight, N = window.getComputedStyle(c), X = parseInt(N.borderTopWidth, 10), _ = parseInt(N.paddingTop, 10), L = parseInt(N.borderBottomWidth, 10), I = parseInt(N.paddingBottom, 10), W = X + _ + D + I + L, ee = Math.min(w.offsetHeight * 5, W), Ee = window.getComputedStyle(f), lt = parseInt(Ee.paddingTop, 10), ct = parseInt(Ee.paddingBottom, 10), Ie = C.top + C.height / 2 - se, Ye = $ - Ie, $e = w.offsetHeight / 2, A = w.offsetTop + $e, U = X + _ + A, Q = W - U;
4389
4432
  if (U <= Ie) {
4390
4433
  const B = V.length > 0 && w === V[V.length - 1].ref.current;
4391
4434
  s.style.bottom = "0px";
4392
4435
  const z = c.clientHeight - f.offsetTop - f.offsetHeight, oe = Math.max(
4393
4436
  Ye,
4394
- We + // viewport might have padding bottom, include it to avoid a scrollable viewport
4437
+ $e + // viewport might have padding bottom, include it to avoid a scrollable viewport
4395
4438
  (B ? ct : 0) + z + L
4396
4439
  ), ve = U + oe;
4397
4440
  s.style.height = ve + "px";
@@ -4400,12 +4443,12 @@ var Il = "SelectItemAlignedPosition", xo = u.forwardRef((e, t) => {
4400
4443
  s.style.top = "0px";
4401
4444
  const oe = Math.max(
4402
4445
  Ie,
4403
- Y + f.offsetTop + // viewport might have padding top, include it to avoid a scrollable viewport
4404
- (B ? lt : 0) + We
4405
- ) + q;
4446
+ X + f.offsetTop + // viewport might have padding top, include it to avoid a scrollable viewport
4447
+ (B ? lt : 0) + $e
4448
+ ) + Q;
4406
4449
  s.style.height = oe + "px", f.scrollTop = U - Ie + f.offsetTop;
4407
4450
  }
4408
- s.style.margin = `${se}px 0`, s.style.minHeight = ee + "px", s.style.maxHeight = W + "px", r == null || r(), requestAnimationFrame(() => v.current = !0);
4451
+ s.style.margin = `${se}px 0`, s.style.minHeight = ee + "px", s.style.maxHeight = $ + "px", r == null || r(), requestAnimationFrame(() => v.current = !0);
4409
4452
  }
4410
4453
  }, [
4411
4454
  g,
@@ -4431,7 +4474,7 @@ var Il = "SelectItemAlignedPosition", xo = u.forwardRef((e, t) => {
4431
4474
  [y, x]
4432
4475
  );
4433
4476
  return /* @__PURE__ */ k(
4434
- _l,
4477
+ Bl,
4435
4478
  {
4436
4479
  scope: n,
4437
4480
  contentWrapper: s,
@@ -4467,16 +4510,16 @@ var Il = "SelectItemAlignedPosition", xo = u.forwardRef((e, t) => {
4467
4510
  }
4468
4511
  );
4469
4512
  });
4470
- xo.displayName = Il;
4471
- var Nl = "SelectPopperPosition", dn = u.forwardRef((e, t) => {
4513
+ Co.displayName = Ll;
4514
+ var Dl = "SelectPopperPosition", fn = u.forwardRef((e, t) => {
4472
4515
  const {
4473
4516
  __scopeSelect: n,
4474
4517
  align: r = "start",
4475
4518
  collisionPadding: o = se,
4476
4519
  ...a
4477
- } = e, i = Ht(n);
4520
+ } = e, i = jt(n);
4478
4521
  return /* @__PURE__ */ k(
4479
- Es,
4522
+ Rs,
4480
4523
  {
4481
4524
  ...i,
4482
4525
  ...a,
@@ -4496,11 +4539,11 @@ var Nl = "SelectPopperPosition", dn = u.forwardRef((e, t) => {
4496
4539
  }
4497
4540
  );
4498
4541
  });
4499
- dn.displayName = Nl;
4500
- var [_l, Nn] = st(je, {}), fn = "SelectViewport", yo = u.forwardRef(
4542
+ fn.displayName = Dl;
4543
+ var [Bl, Nn] = st(je, {}), pn = "SelectViewport", So = u.forwardRef(
4501
4544
  (e, t) => {
4502
- const { __scopeSelect: n, nonce: r, ...o } = e, a = Ve(fn, n), i = Nn(fn, n), s = Z(t, a.onViewportChange), l = u.useRef(0);
4503
- return /* @__PURE__ */ It(gn, { children: [
4545
+ const { __scopeSelect: n, nonce: r, ...o } = e, a = Ve(pn, n), i = Nn(pn, n), s = Z(t, a.onViewportChange), l = u.useRef(0);
4546
+ return /* @__PURE__ */ _t(mn, { children: [
4504
4547
  /* @__PURE__ */ k(
4505
4548
  "style",
4506
4549
  {
@@ -4510,7 +4553,7 @@ var [_l, Nn] = st(je, {}), fn = "SelectViewport", yo = u.forwardRef(
4510
4553
  nonce: r
4511
4554
  }
4512
4555
  ),
4513
- /* @__PURE__ */ k($t.Slot, { scope: n, children: /* @__PURE__ */ k(
4556
+ /* @__PURE__ */ k(Ut.Slot, { scope: n, children: /* @__PURE__ */ k(
4514
4557
  K.div,
4515
4558
  {
4516
4559
  "data-radix-select-viewport": "",
@@ -4549,22 +4592,22 @@ var [_l, Nn] = st(je, {}), fn = "SelectViewport", yo = u.forwardRef(
4549
4592
  ] });
4550
4593
  }
4551
4594
  );
4552
- yo.displayName = fn;
4553
- var Co = "SelectGroup", [Ol, Ml] = st(Co), Ll = u.forwardRef(
4595
+ So.displayName = pn;
4596
+ var Eo = "SelectGroup", [zl, Fl] = st(Eo), Vl = u.forwardRef(
4554
4597
  (e, t) => {
4555
- const { __scopeSelect: n, ...r } = e, o = yn();
4556
- return /* @__PURE__ */ k(Ol, { scope: n, id: o, children: /* @__PURE__ */ k(K.div, { role: "group", "aria-labelledby": o, ...r, ref: t }) });
4598
+ const { __scopeSelect: n, ...r } = e, o = Cn();
4599
+ return /* @__PURE__ */ k(zl, { scope: n, id: o, children: /* @__PURE__ */ k(K.div, { role: "group", "aria-labelledby": o, ...r, ref: t }) });
4557
4600
  }
4558
4601
  );
4559
- Ll.displayName = Co;
4560
- var So = "SelectLabel", Dl = u.forwardRef(
4602
+ Vl.displayName = Eo;
4603
+ var ko = "SelectLabel", $l = u.forwardRef(
4561
4604
  (e, t) => {
4562
- const { __scopeSelect: n, ...r } = e, o = Ml(So, n);
4605
+ const { __scopeSelect: n, ...r } = e, o = Fl(ko, n);
4563
4606
  return /* @__PURE__ */ k(K.div, { id: o.id, ...r, ref: t });
4564
4607
  }
4565
4608
  );
4566
- Dl.displayName = So;
4567
- var Lt = "SelectItem", [Bl, Eo] = st(Lt), ko = u.forwardRef(
4609
+ $l.displayName = ko;
4610
+ var Dt = "SelectItem", [Wl, To] = st(Dt), Ao = u.forwardRef(
4568
4611
  (e, t) => {
4569
4612
  const {
4570
4613
  __scopeSelect: n,
@@ -4572,13 +4615,13 @@ var Lt = "SelectItem", [Bl, Eo] = st(Lt), ko = u.forwardRef(
4572
4615
  disabled: o = !1,
4573
4616
  textValue: a,
4574
4617
  ...i
4575
- } = e, s = Fe(Lt, n), l = Ve(Lt, n), c = s.value === r, [d, p] = u.useState(a ?? ""), [g, v] = u.useState(!1), m = Z(
4618
+ } = e, s = Fe(Dt, n), l = Ve(Dt, n), c = s.value === r, [d, p] = u.useState(a ?? ""), [g, v] = u.useState(!1), m = Z(
4576
4619
  t,
4577
4620
  (x) => {
4578
4621
  var y;
4579
4622
  return (y = l.itemRefCallback) == null ? void 0 : y.call(l, x, r, o);
4580
4623
  }
4581
- ), f = yn(), w = u.useRef("touch"), b = () => {
4624
+ ), f = Cn(), w = u.useRef("touch"), b = () => {
4582
4625
  o || (s.onValueChange(r), s.onOpenChange(!1));
4583
4626
  };
4584
4627
  if (r === "")
@@ -4586,7 +4629,7 @@ var Lt = "SelectItem", [Bl, Eo] = st(Lt), ko = u.forwardRef(
4586
4629
  "A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder."
4587
4630
  );
4588
4631
  return /* @__PURE__ */ k(
4589
- Bl,
4632
+ Wl,
4590
4633
  {
4591
4634
  scope: n,
4592
4635
  value: r,
@@ -4597,7 +4640,7 @@ var Lt = "SelectItem", [Bl, Eo] = st(Lt), ko = u.forwardRef(
4597
4640
  p((y) => y || ((x == null ? void 0 : x.textContent) ?? "").trim());
4598
4641
  }, []),
4599
4642
  children: /* @__PURE__ */ k(
4600
- $t.ItemSlot,
4643
+ Ut.ItemSlot,
4601
4644
  {
4602
4645
  scope: n,
4603
4646
  value: r,
@@ -4637,7 +4680,7 @@ var Lt = "SelectItem", [Bl, Eo] = st(Lt), ko = u.forwardRef(
4637
4680
  }),
4638
4681
  onKeyDown: G(i.onKeyDown, (x) => {
4639
4682
  var S;
4640
- ((S = l.searchRef) == null ? void 0 : S.current) !== "" && x.key === " " || (xl.includes(x.key) && b(), x.key === " " && x.preventDefault());
4683
+ ((S = l.searchRef) == null ? void 0 : S.current) !== "" && x.key === " " || (kl.includes(x.key) && b(), x.key === " " && x.preventDefault());
4641
4684
  })
4642
4685
  }
4643
4686
  )
@@ -4647,10 +4690,10 @@ var Lt = "SelectItem", [Bl, Eo] = st(Lt), ko = u.forwardRef(
4647
4690
  );
4648
4691
  }
4649
4692
  );
4650
- ko.displayName = Lt;
4651
- var ht = "SelectItemText", To = u.forwardRef(
4693
+ Ao.displayName = Dt;
4694
+ var ht = "SelectItemText", Po = u.forwardRef(
4652
4695
  (e, t) => {
4653
- const { __scopeSelect: n, className: r, style: o, ...a } = e, i = Fe(ht, n), s = Ve(ht, n), l = Eo(ht, n), c = El(ht, n), [d, p] = u.useState(null), g = Z(
4696
+ const { __scopeSelect: n, className: r, style: o, ...a } = e, i = Fe(ht, n), s = Ve(ht, n), l = To(ht, n), c = Rl(ht, n), [d, p] = u.useState(null), g = Z(
4654
4697
  t,
4655
4698
  (b) => p(b),
4656
4699
  l.onItemTextChange,
@@ -4662,22 +4705,22 @@ var ht = "SelectItemText", To = u.forwardRef(
4662
4705
  () => /* @__PURE__ */ k("option", { value: l.value, disabled: l.disabled, children: v }, l.value),
4663
4706
  [l.disabled, l.value, v]
4664
4707
  ), { onNativeOptionAdd: f, onNativeOptionRemove: w } = c;
4665
- return te(() => (f(m), () => w(m)), [f, w, m]), /* @__PURE__ */ It(gn, { children: [
4708
+ return te(() => (f(m), () => w(m)), [f, w, m]), /* @__PURE__ */ _t(mn, { children: [
4666
4709
  /* @__PURE__ */ k(K.span, { id: l.textId, ...a, ref: g }),
4667
4710
  l.isSelected && i.valueNode && !i.valueNodeHasChildren ? u.createPortal(a.children, i.valueNode) : null
4668
4711
  ] });
4669
4712
  }
4670
4713
  );
4671
- To.displayName = ht;
4672
- var Ao = "SelectItemIndicator", Po = u.forwardRef(
4714
+ Po.displayName = ht;
4715
+ var Ro = "SelectItemIndicator", Io = u.forwardRef(
4673
4716
  (e, t) => {
4674
4717
  const { __scopeSelect: n, ...r } = e;
4675
- return Eo(Ao, n).isSelected ? /* @__PURE__ */ k(K.span, { "aria-hidden": !0, ...r, ref: t }) : null;
4718
+ return To(Ro, n).isSelected ? /* @__PURE__ */ k(K.span, { "aria-hidden": !0, ...r, ref: t }) : null;
4676
4719
  }
4677
4720
  );
4678
- Po.displayName = Ao;
4679
- var pn = "SelectScrollUpButton", Ro = u.forwardRef((e, t) => {
4680
- const n = Ve(pn, e.__scopeSelect), r = Nn(pn, e.__scopeSelect), [o, a] = u.useState(!1), i = Z(t, r.onScrollButtonChange);
4721
+ Io.displayName = Ro;
4722
+ var hn = "SelectScrollUpButton", _o = u.forwardRef((e, t) => {
4723
+ const n = Ve(hn, e.__scopeSelect), r = Nn(hn, e.__scopeSelect), [o, a] = u.useState(!1), i = Z(t, r.onScrollButtonChange);
4681
4724
  return te(() => {
4682
4725
  if (n.viewport && n.isPositioned) {
4683
4726
  let s = function() {
@@ -4688,7 +4731,7 @@ var pn = "SelectScrollUpButton", Ro = u.forwardRef((e, t) => {
4688
4731
  return s(), l.addEventListener("scroll", s), () => l.removeEventListener("scroll", s);
4689
4732
  }
4690
4733
  }, [n.viewport, n.isPositioned]), o ? /* @__PURE__ */ k(
4691
- No,
4734
+ Oo,
4692
4735
  {
4693
4736
  ...e,
4694
4737
  ref: i,
@@ -4699,9 +4742,9 @@ var pn = "SelectScrollUpButton", Ro = u.forwardRef((e, t) => {
4699
4742
  }
4700
4743
  ) : null;
4701
4744
  });
4702
- Ro.displayName = pn;
4703
- var hn = "SelectScrollDownButton", Io = u.forwardRef((e, t) => {
4704
- const n = Ve(hn, e.__scopeSelect), r = Nn(hn, e.__scopeSelect), [o, a] = u.useState(!1), i = Z(t, r.onScrollButtonChange);
4745
+ _o.displayName = hn;
4746
+ var vn = "SelectScrollDownButton", No = u.forwardRef((e, t) => {
4747
+ const n = Ve(vn, e.__scopeSelect), r = Nn(vn, e.__scopeSelect), [o, a] = u.useState(!1), i = Z(t, r.onScrollButtonChange);
4705
4748
  return te(() => {
4706
4749
  if (n.viewport && n.isPositioned) {
4707
4750
  let s = function() {
@@ -4712,7 +4755,7 @@ var hn = "SelectScrollDownButton", Io = u.forwardRef((e, t) => {
4712
4755
  return s(), l.addEventListener("scroll", s), () => l.removeEventListener("scroll", s);
4713
4756
  }
4714
4757
  }, [n.viewport, n.isPositioned]), o ? /* @__PURE__ */ k(
4715
- No,
4758
+ Oo,
4716
4759
  {
4717
4760
  ...e,
4718
4761
  ref: i,
@@ -4723,9 +4766,9 @@ var hn = "SelectScrollDownButton", Io = u.forwardRef((e, t) => {
4723
4766
  }
4724
4767
  ) : null;
4725
4768
  });
4726
- Io.displayName = hn;
4727
- var No = u.forwardRef((e, t) => {
4728
- const { __scopeSelect: n, onAutoScroll: r, ...o } = e, a = Ve("SelectScrollButton", n), i = u.useRef(null), s = Ut(n), l = u.useCallback(() => {
4769
+ No.displayName = vn;
4770
+ var Oo = u.forwardRef((e, t) => {
4771
+ const { __scopeSelect: n, onAutoScroll: r, ...o } = e, a = Ve("SelectScrollButton", n), i = u.useRef(null), s = Ht(n), l = u.useCallback(() => {
4729
4772
  i.current !== null && (window.clearInterval(i.current), i.current = null);
4730
4773
  }, []);
4731
4774
  return u.useEffect(() => () => l(), [l]), te(() => {
@@ -4751,23 +4794,23 @@ var No = u.forwardRef((e, t) => {
4751
4794
  })
4752
4795
  }
4753
4796
  );
4754
- }), zl = "SelectSeparator", Fl = u.forwardRef(
4797
+ }), Ul = "SelectSeparator", Hl = u.forwardRef(
4755
4798
  (e, t) => {
4756
4799
  const { __scopeSelect: n, ...r } = e;
4757
4800
  return /* @__PURE__ */ k(K.div, { "aria-hidden": !0, ...r, ref: t });
4758
4801
  }
4759
4802
  );
4760
- Fl.displayName = zl;
4761
- var vn = "SelectArrow", Vl = u.forwardRef(
4803
+ Hl.displayName = Ul;
4804
+ var gn = "SelectArrow", jl = u.forwardRef(
4762
4805
  (e, t) => {
4763
- const { __scopeSelect: n, ...r } = e, o = Ht(n), a = Fe(vn, n), i = Ve(vn, n);
4764
- return a.open && i.position === "popper" ? /* @__PURE__ */ k(ks, { ...o, ...r, ref: t }) : null;
4806
+ const { __scopeSelect: n, ...r } = e, o = jt(n), a = Fe(gn, n), i = Ve(gn, n);
4807
+ return a.open && i.position === "popper" ? /* @__PURE__ */ k(Is, { ...o, ...r, ref: t }) : null;
4765
4808
  }
4766
4809
  );
4767
- Vl.displayName = vn;
4768
- var Wl = "SelectBubbleInput", _o = u.forwardRef(
4810
+ jl.displayName = gn;
4811
+ var Yl = "SelectBubbleInput", Mo = u.forwardRef(
4769
4812
  ({ __scopeSelect: e, value: t, ...n }, r) => {
4770
- const o = u.useRef(null), a = Z(r, o), i = Is(t);
4813
+ const o = u.useRef(null), a = Z(r, o), i = Ls(t);
4771
4814
  return u.useEffect(() => {
4772
4815
  const s = o.current;
4773
4816
  if (!s) return;
@@ -4783,19 +4826,19 @@ var Wl = "SelectBubbleInput", _o = u.forwardRef(
4783
4826
  K.select,
4784
4827
  {
4785
4828
  ...n,
4786
- style: { ...eo, ...n.style },
4829
+ style: { ...no, ...n.style },
4787
4830
  ref: a,
4788
4831
  defaultValue: t
4789
4832
  }
4790
4833
  );
4791
4834
  }
4792
4835
  );
4793
- _o.displayName = Wl;
4794
- function Oo(e) {
4836
+ Mo.displayName = Yl;
4837
+ function Lo(e) {
4795
4838
  return e === "" || e === void 0;
4796
4839
  }
4797
- function Mo(e) {
4798
- const t = $e(e), n = u.useRef(""), r = u.useRef(0), o = u.useCallback(
4840
+ function Do(e) {
4841
+ const t = We(e), n = u.useRef(""), r = u.useRef(0), o = u.useCallback(
4799
4842
  (i) => {
4800
4843
  const s = n.current + i;
4801
4844
  t(s), function l(c) {
@@ -4808,24 +4851,24 @@ function Mo(e) {
4808
4851
  }, []);
4809
4852
  return u.useEffect(() => () => window.clearTimeout(r.current), []), [n, o, a];
4810
4853
  }
4811
- function Lo(e, t, n) {
4854
+ function Bo(e, t, n) {
4812
4855
  const o = t.length > 1 && Array.from(t).every((c) => c === t[0]) ? t[0] : t, a = n ? e.indexOf(n) : -1;
4813
- let i = $l(e, Math.max(a, 0));
4856
+ let i = Xl(e, Math.max(a, 0));
4814
4857
  o.length === 1 && (i = i.filter((c) => c !== n));
4815
4858
  const l = i.find(
4816
4859
  (c) => c.textValue.toLowerCase().startsWith(o.toLowerCase())
4817
4860
  );
4818
4861
  return l !== n ? l : void 0;
4819
4862
  }
4820
- function $l(e, t) {
4863
+ function Xl(e, t) {
4821
4864
  return e.map((n, r) => e[(t + r) % e.length]);
4822
4865
  }
4823
- var Ul = uo, Do = po, Bo = vo, Hl = go, jl = mo, Yl = yo, Xl = ko, Kl = To, Gl = Po, Zl = Ro, ql = Io;
4824
- const Ql = {
4866
+ var Kl = po, zo = vo, Fo = mo, Gl = wo, Zl = bo, ql = So, Ql = Ao, Jl = Po, ec = Io, tc = _o, nc = No;
4867
+ const rc = {
4825
4868
  sm: "w-4 h-4",
4826
4869
  md: "w-6 h-6"
4827
4870
  };
4828
- function _n({
4871
+ function On({
4829
4872
  size: e = "md",
4830
4873
  flagCode: t,
4831
4874
  className: n,
@@ -4836,7 +4879,7 @@ function _n({
4836
4879
  {
4837
4880
  className: j(
4838
4881
  "rounded-full object-cover",
4839
- Ql[e],
4882
+ rc[e],
4840
4883
  n
4841
4884
  ),
4842
4885
  src: `https://storage.googleapis.com/eleven-public-cdn/images/flags/circle-flags/${t}.svg`,
@@ -4845,10 +4888,10 @@ function _n({
4845
4888
  }
4846
4889
  );
4847
4890
  }
4848
- function zo({ children: e, ...t }) {
4849
- const [n, r] = be(!1), { language: o, setLanguage: a, options: i } = rt(), s = ma();
4850
- return /* @__PURE__ */ I(
4851
- Ul,
4891
+ function Vo({ children: e, ...t }) {
4892
+ const [n, r] = be(!1), { language: o, setLanguage: a, options: i } = rt(), s = Ca();
4893
+ return /* @__PURE__ */ P(
4894
+ Kl,
4852
4895
  {
4853
4896
  open: n,
4854
4897
  value: o.value.languageCode,
@@ -4860,8 +4903,8 @@ function zo({ children: e, ...t }) {
4860
4903
  },
4861
4904
  children: [
4862
4905
  e,
4863
- /* @__PURE__ */ h(Hl, { container: s, children: /* @__PURE__ */ I(
4864
- jl,
4906
+ /* @__PURE__ */ h(Gl, { container: s, children: /* @__PURE__ */ P(
4907
+ Zl,
4865
4908
  {
4866
4909
  className: "overflow-hidden bg-base border border-base-border rounded-dropdown-sheet max-h-[min(384px,var(--radix-select-content-available-height))] min-w-[var(--radix-select-trigger-width)] z-10",
4867
4910
  position: "popper",
@@ -4873,21 +4916,21 @@ function zo({ children: e, ...t }) {
4873
4916
  onEscapeKeyDown: () => r(!1),
4874
4917
  ...t,
4875
4918
  children: [
4876
- /* @__PURE__ */ h(Zl, { className: "flex items-center justify-center h-6 bg-base text-base-subtle cursor-default", children: /* @__PURE__ */ h(Je, { size: "sm", name: "chevron-up" }) }),
4877
- /* @__PURE__ */ h(Yl, { className: "p-1.5", children: i.value.map((l) => /* @__PURE__ */ I(
4878
- Xl,
4919
+ /* @__PURE__ */ h(tc, { className: "flex items-center justify-center h-6 bg-base text-base-subtle cursor-default", children: /* @__PURE__ */ h(Je, { size: "sm", name: "chevron-up" }) }),
4920
+ /* @__PURE__ */ h(ql, { className: "p-1.5", children: i.value.map((l) => /* @__PURE__ */ P(
4921
+ Ql,
4879
4922
  {
4880
4923
  value: l.languageCode,
4881
4924
  className: "flex select-none items-center p-1.5 pr-3 gap-2 cursor-pointer rounded-input relative focus-visible:outline-none data-[highlighted]:bg-base-active text-sm",
4882
4925
  children: [
4883
- /* @__PURE__ */ h(_n, { flagCode: l.flagCode }),
4884
- /* @__PURE__ */ h(Kl, { children: l.name }),
4885
- /* @__PURE__ */ h(Gl, { className: "text-base-primary p-1.5 -mr-1.5 ml-auto", children: /* @__PURE__ */ h(Je, { size: "sm", name: "check" }) })
4926
+ /* @__PURE__ */ h(On, { flagCode: l.flagCode }),
4927
+ /* @__PURE__ */ h(Jl, { children: l.name }),
4928
+ /* @__PURE__ */ h(ec, { className: "text-base-primary p-1.5 -mr-1.5 ml-auto", children: /* @__PURE__ */ h(Je, { size: "sm", name: "check" }) })
4886
4929
  ]
4887
4930
  },
4888
4931
  l.languageCode
4889
4932
  )) }),
4890
- /* @__PURE__ */ h(ql, { className: "flex items-center justify-center h-6 bg-base text-base-subtle cursor-default", children: /* @__PURE__ */ h(Je, { size: "sm", name: "chevron-down" }) })
4933
+ /* @__PURE__ */ h(nc, { className: "flex items-center justify-center h-6 bg-base text-base-subtle cursor-default", children: /* @__PURE__ */ h(Je, { size: "sm", name: "chevron-down" }) })
4891
4934
  ]
4892
4935
  }
4893
4936
  ) })
@@ -4895,13 +4938,13 @@ function zo({ children: e, ...t }) {
4895
4938
  }
4896
4939
  );
4897
4940
  }
4898
- function Jl({
4941
+ function oc({
4899
4942
  className: e,
4900
4943
  ...t
4901
4944
  }) {
4902
4945
  const n = re(), { language: r, showPicker: o } = rt();
4903
- return o.value ? /* @__PURE__ */ h(zo, { align: "center", children: /* @__PURE__ */ I(
4904
- Do,
4946
+ return o.value ? /* @__PURE__ */ h(Vo, { align: "center", children: /* @__PURE__ */ P(
4947
+ zo,
4905
4948
  {
4906
4949
  className: j(
4907
4950
  "h-9 min-w-max rounded-button focus-ring px-2 flex gap-2 items-center text-base-primary bg-base hover:bg-base-hover active:bg-base-active font-medium",
@@ -4910,14 +4953,14 @@ function Jl({
4910
4953
  "aria-label": n.change_language,
4911
4954
  ...t,
4912
4955
  children: [
4913
- /* @__PURE__ */ h(_n, { size: "sm", flagCode: r.value.flagCode }),
4956
+ /* @__PURE__ */ h(On, { size: "sm", flagCode: r.value.flagCode }),
4914
4957
  r.value.name,
4915
- /* @__PURE__ */ h(Bo, { className: "text-base-subtle", asChild: !0, children: /* @__PURE__ */ h(Je, { size: "sm", name: "chevron-down" }) })
4958
+ /* @__PURE__ */ h(Fo, { className: "text-base-subtle", asChild: !0, children: /* @__PURE__ */ h(Je, { size: "sm", name: "chevron-down" }) })
4916
4959
  ]
4917
4960
  }
4918
4961
  ) }) : null;
4919
4962
  }
4920
- function ec({
4963
+ function ac({
4921
4964
  className: e,
4922
4965
  ...t
4923
4966
  }) {
@@ -4932,11 +4975,11 @@ function ec({
4932
4975
  }
4933
4976
  );
4934
4977
  }
4935
- function On({
4978
+ function Mn({
4936
4979
  visible: e,
4937
4980
  ...t
4938
4981
  }) {
4939
- const n = re(), { isMuted: r, isMutingEnabled: o, setIsMuted: a } = fr(), i = Te(() => {
4982
+ const n = re(), { isMuted: r, isMutingEnabled: o, setIsMuted: a } = vr(), i = Te(() => {
4940
4983
  a(!r.peek());
4941
4984
  }, [a]);
4942
4985
  return o.value ? /* @__PURE__ */ h(ke, { visible: e, className: "p-1", children: /* @__PURE__ */ h(
@@ -4950,7 +4993,7 @@ function On({
4950
4993
  }
4951
4994
  ) }) : null;
4952
4995
  }
4953
- function Mn({
4996
+ function Ln({
4954
4997
  iconOnly: e,
4955
4998
  isDisconnected: t,
4956
4999
  children: n,
@@ -4969,11 +5012,11 @@ function Mn({
4969
5012
  }
4970
5013
  );
4971
5014
  }
4972
- function tc({
5015
+ function ic({
4973
5016
  showTranscript: e,
4974
5017
  scrollPinned: t
4975
5018
  }) {
4976
- const [n, r] = be(""), o = Bt(), { text_input_enabled: a } = Q().value, i = re(), {
5019
+ const [n, r] = be(""), o = zt(), { text_input_enabled: a } = q().value, i = re(), {
4977
5020
  isDisconnected: s,
4978
5021
  status: l,
4979
5022
  startSession: c,
@@ -4981,9 +5024,9 @@ function tc({
4981
5024
  sendUserActivity: p,
4982
5025
  conversationIndex: g
4983
5026
  } = ne();
4984
- return /* @__PURE__ */ I("div", { className: "shrink-0 overflow-hidden flex p-3 items-end justify-end", children: [
5027
+ return /* @__PURE__ */ P("div", { className: "shrink-0 overflow-hidden flex p-3 items-end justify-end", children: [
4985
5028
  a && /* @__PURE__ */ h(
4986
- ec,
5029
+ ac,
4987
5030
  {
4988
5031
  rows: 1,
4989
5032
  "aria-label": i.input_label,
@@ -4997,15 +5040,15 @@ function tc({
4997
5040
  placeholder: o.value ? s.value && g.value > 0 ? i.input_placeholder_new_conversation : i.input_placeholder_text_only : i.input_placeholder
4998
5041
  }
4999
5042
  ),
5000
- /* @__PURE__ */ I("div", { className: "flex h-11 items-center", children: [
5001
- /* @__PURE__ */ h(On, { visible: !o.value && !s.value }),
5043
+ /* @__PURE__ */ P("div", { className: "flex h-11 items-center", children: [
5044
+ /* @__PURE__ */ h(Mn, { visible: !o.value && !s.value }),
5002
5045
  /* @__PURE__ */ h(
5003
5046
  ke,
5004
5047
  {
5005
5048
  visible: !o.value && (!s.value || e),
5006
5049
  className: "p-1",
5007
5050
  children: /* @__PURE__ */ h(
5008
- Mn,
5051
+ Ln,
5009
5052
  {
5010
5053
  iconOnly: !s.value,
5011
5054
  isDisconnected: s.value,
@@ -5018,12 +5061,12 @@ function tc({
5018
5061
  ] })
5019
5062
  ] });
5020
5063
  }
5021
- function nc({
5064
+ function sc({
5022
5065
  entry: e,
5023
5066
  animateIn: t
5024
5067
  }) {
5025
- const n = re(), { previewUrl: r } = wn(), { lastId: o } = ne();
5026
- return /* @__PURE__ */ h(ce, { initial: !t, active: !0, children: e.type === "message" ? /* @__PURE__ */ I(
5068
+ const n = re(), { previewUrl: r } = bn(), { lastId: o } = ne();
5069
+ return /* @__PURE__ */ h(ce, { initial: !t, active: !0, children: e.type === "message" ? /* @__PURE__ */ P(
5027
5070
  "div",
5028
5071
  {
5029
5072
  className: j(
@@ -5052,21 +5095,21 @@ function nc({
5052
5095
  )
5053
5096
  ]
5054
5097
  }
5055
- ) : e.type === "disconnection" ? /* @__PURE__ */ I("div", { className: "mt-2 px-8 text-xs text-base-subtle text-center transition-opacity duration-200 data-hidden:opacity-0", children: [
5098
+ ) : e.type === "disconnection" ? /* @__PURE__ */ P("div", { className: "mt-2 px-8 text-xs text-base-subtle text-center transition-opacity duration-200 data-hidden:opacity-0", children: [
5056
5099
  e.role === "user" ? n.user_ended_conversation : n.agent_ended_conversation,
5057
5100
  /* @__PURE__ */ h("br", {}),
5058
- o.value && /* @__PURE__ */ I("span", { className: "break-all", children: [
5101
+ o.value && /* @__PURE__ */ P("span", { className: "break-all", children: [
5059
5102
  n.conversation_id,
5060
5103
  ": ",
5061
5104
  o.value
5062
5105
  ] })
5063
- ] }) : /* @__PURE__ */ I("div", { className: "mt-2 px-8 text-xs text-base-error text-center transition-opacity duration-200 data-hidden:opacity-0", children: [
5106
+ ] }) : /* @__PURE__ */ P("div", { className: "mt-2 px-8 text-xs text-base-error text-center transition-opacity duration-200 data-hidden:opacity-0", children: [
5064
5107
  n.error_occurred,
5065
5108
  /* @__PURE__ */ h("br", {}),
5066
5109
  e.message,
5067
- o.value && /* @__PURE__ */ I(wt, { children: [
5110
+ o.value && /* @__PURE__ */ P(wt, { children: [
5068
5111
  /* @__PURE__ */ h("br", {}),
5069
- /* @__PURE__ */ I("span", { className: "text-base-subtle break-all", children: [
5112
+ /* @__PURE__ */ P("span", { className: "text-base-subtle break-all", children: [
5070
5113
  n.conversation_id,
5071
5114
  ": ",
5072
5115
  o.value
@@ -5074,8 +5117,8 @@ function nc({
5074
5117
  ] })
5075
5118
  ] }) });
5076
5119
  }
5077
- const rc = 16;
5078
- function oc({ scrollPinned: e, transcript: t }) {
5120
+ const lc = 16;
5121
+ function cc({ scrollPinned: e, transcript: t }) {
5079
5122
  const n = we(null), r = (a) => {
5080
5123
  var i;
5081
5124
  (i = n.current) == null || i.scrollTo({
@@ -5092,11 +5135,11 @@ function oc({ scrollPinned: e, transcript: t }) {
5092
5135
  {
5093
5136
  ref: n,
5094
5137
  onScroll: (a) => {
5095
- e.value = a.currentTarget.scrollTop >= a.currentTarget.scrollHeight - a.currentTarget.clientHeight - rc;
5138
+ e.value = a.currentTarget.scrollTop >= a.currentTarget.scrollHeight - a.currentTarget.clientHeight - lc;
5096
5139
  },
5097
5140
  className: "px-4 pb-3 grow flex flex-col gap-3 overflow-x-hidden overflow-y-auto",
5098
5141
  children: t.value.map((a, i) => /* @__PURE__ */ h(
5099
- nc,
5142
+ sc,
5100
5143
  {
5101
5144
  entry: a,
5102
5145
  animateIn: !o.current
@@ -5106,7 +5149,7 @@ function oc({ scrollPinned: e, transcript: t }) {
5106
5149
  }
5107
5150
  );
5108
5151
  }
5109
- const ac = {
5152
+ const uc = {
5110
5153
  "top-left": "origin-top-left",
5111
5154
  top: "origin-top",
5112
5155
  "top-right": "origin-top-right",
@@ -5114,8 +5157,8 @@ const ac = {
5114
5157
  "bottom-right": "origin-bottom-right",
5115
5158
  bottom: "origin-bottom"
5116
5159
  };
5117
- function ic({ open: e }) {
5118
- const t = re(), n = mn(), r = Bt(), o = Q(), a = o.value.placement, { isDisconnected: i, startSession: s, transcript: l, conversationIndex: c } = ne(), d = mr(), p = X(() => {
5160
+ function dc({ open: e }) {
5161
+ const t = re(), n = wn(), r = zt(), o = q(), a = o.value.placement, { isDisconnected: i, startSession: s, transcript: l, conversationIndex: c } = ne(), d = xr(), p = Y(() => {
5119
5162
  var m;
5120
5163
  return n.value || r.value ? !d.value || !n.value ? l.value : [
5121
5164
  {
@@ -5130,36 +5173,36 @@ function ic({ open: e }) {
5130
5173
  (f) => f.type !== "message" || f.isText
5131
5174
  );
5132
5175
  }), g = p.value.length > 0 || !i.value && o.value.transcript_enabled, v = ue(!0);
5133
- return /* @__PURE__ */ h(ce, { initial: !1, active: e, children: /* @__PURE__ */ I(
5176
+ return /* @__PURE__ */ h(ce, { initial: !1, active: e, children: /* @__PURE__ */ P(
5134
5177
  "div",
5135
5178
  {
5136
5179
  className: j(
5137
5180
  "flex flex-col overflow-hidden absolute bg-base shadow-lg pointer-events-auto rounded-sheet w-full max-w-[400px] h-[calc(100%-80px)] max-h-[550px]",
5138
5181
  "transition-[transform,opacity] duration-200 data-hidden:scale-90 data-hidden:opacity-0",
5139
- ac[a],
5182
+ uc[a],
5140
5183
  a.startsWith("top") ? "top-20" : "bottom-20"
5141
5184
  ),
5142
5185
  children: [
5143
- /* @__PURE__ */ I("div", { className: "bg-base shrink-0 flex gap-2 p-4 items-start", children: [
5186
+ /* @__PURE__ */ P("div", { className: "bg-base shrink-0 flex gap-2 p-4 items-start", children: [
5144
5187
  /* @__PURE__ */ h("div", { className: "relative w-16 h-16" }),
5145
- /* @__PURE__ */ h(ce, { active: g && !i.value, children: /* @__PURE__ */ h(on, { className: "rounded-bl-[calc(var(--el-bubble-radius)/3)] transition-opacity data-hidden:opacity-0" }) })
5188
+ /* @__PURE__ */ h(ce, { active: g && !i.value, children: /* @__PURE__ */ h(an, { className: "rounded-bl-[calc(var(--el-bubble-radius)/3)] transition-opacity data-hidden:opacity-0" }) })
5146
5189
  ] }),
5147
5190
  /* @__PURE__ */ h(
5148
- oc,
5191
+ cc,
5149
5192
  {
5150
5193
  transcript: p,
5151
5194
  scrollPinned: v
5152
5195
  }
5153
5196
  ),
5154
5197
  /* @__PURE__ */ h(
5155
- tc,
5198
+ ic,
5156
5199
  {
5157
5200
  scrollPinned: v,
5158
5201
  showTranscript: g
5159
5202
  }
5160
5203
  ),
5161
- /* @__PURE__ */ h(ce, { active: !g || i.value, children: /* @__PURE__ */ h("div", { className: "absolute top-0 left-0 right-0 p-4 flex justify-center transition-[opacity,transform] duration-200 data-hidden:opacity-0 data-hidden:-translate-y-4", children: /* @__PURE__ */ h(Jl, {}) }) }),
5162
- /* @__PURE__ */ I(
5204
+ /* @__PURE__ */ h(ce, { active: !g || i.value, children: /* @__PURE__ */ h("div", { className: "absolute top-0 left-0 right-0 p-4 flex justify-center transition-[opacity,transform] duration-200 data-hidden:opacity-0 data-hidden:-translate-y-4", children: /* @__PURE__ */ h(oc, {}) }) }),
5205
+ /* @__PURE__ */ P(
5163
5206
  "div",
5164
5207
  {
5165
5208
  className: j(
@@ -5183,7 +5226,7 @@ function ic({ open: e }) {
5183
5226
  ) })
5184
5227
  }
5185
5228
  ),
5186
- /* @__PURE__ */ h(ce, { active: !g && !i.value, children: /* @__PURE__ */ h("div", { className: "absolute -bottom-3 left-1/2 -translate-x-1/2 translate-y-full transition-[opacity,transform] data-hidden:opacity-0 data-hidden:scale-75", children: /* @__PURE__ */ h(on, {}) }) })
5229
+ /* @__PURE__ */ h(ce, { active: !g && !i.value, children: /* @__PURE__ */ h("div", { className: "absolute -bottom-3 left-1/2 -translate-x-1/2 translate-y-full transition-[opacity,transform] data-hidden:opacity-0 data-hidden:scale-75", children: /* @__PURE__ */ h(an, {}) }) })
5187
5230
  ]
5188
5231
  }
5189
5232
  )
@@ -5191,11 +5234,11 @@ function ic({ open: e }) {
5191
5234
  }
5192
5235
  ) });
5193
5236
  }
5194
- function Fo({ expanded: e }) {
5195
- const t = Bt(), n = Q().value.variant, { isDisconnected: r } = ne(), o = re(), a = Te(() => {
5237
+ function $o({ expanded: e }) {
5238
+ const t = zt(), n = q().value.variant, { isDisconnected: r } = ne(), o = re(), a = Te(() => {
5196
5239
  e.value = !e.value;
5197
5240
  }, [e]);
5198
- return /* @__PURE__ */ I(wt, { children: [
5241
+ return /* @__PURE__ */ P(wt, { children: [
5199
5242
  n === "full" && /* @__PURE__ */ h(
5200
5243
  ke,
5201
5244
  {
@@ -5210,11 +5253,11 @@ function Fo({ expanded: e }) {
5210
5253
  grow: n !== "tiny",
5211
5254
  visible: !t.value && !e.value && !r.value,
5212
5255
  className: "p-1",
5213
- children: /* @__PURE__ */ h(Mn, { iconOnly: !0, isDisconnected: !1 })
5256
+ children: /* @__PURE__ */ h(Ln, { iconOnly: !0, isDisconnected: !1 })
5214
5257
  }
5215
5258
  ),
5216
5259
  /* @__PURE__ */ h(
5217
- On,
5260
+ Mn,
5218
5261
  {
5219
5262
  visible: !t.value && !e.value && !r.value
5220
5263
  }
@@ -5236,13 +5279,13 @@ function Fo({ expanded: e }) {
5236
5279
  ) })
5237
5280
  ] });
5238
5281
  }
5239
- function sc({
5282
+ function fc({
5240
5283
  expanded: e,
5241
5284
  className: t,
5242
5285
  ...n
5243
5286
  }) {
5244
5287
  const { isDisconnected: r } = ne(), o = re();
5245
- return /* @__PURE__ */ I(
5288
+ return /* @__PURE__ */ P(
5246
5289
  "div",
5247
5290
  {
5248
5291
  className: j(
@@ -5257,38 +5300,38 @@ function sc({
5257
5300
  {
5258
5301
  visible: !e.value && r.value,
5259
5302
  className: "p-1 !min-w-60",
5260
- children: /* @__PURE__ */ I("div", { className: "flex items-center gap-2", children: [
5303
+ children: /* @__PURE__ */ P("div", { className: "flex items-center gap-2", children: [
5261
5304
  /* @__PURE__ */ h(ot, {}),
5262
5305
  /* @__PURE__ */ h("div", { className: "text-sm max-w-64", children: o.main_label })
5263
5306
  ] })
5264
5307
  }
5265
5308
  ),
5266
- /* @__PURE__ */ h("div", { className: "flex items-center", children: /* @__PURE__ */ h(Fo, { expanded: e }) })
5309
+ /* @__PURE__ */ h("div", { className: "flex items-center", children: /* @__PURE__ */ h($o, { expanded: e }) })
5267
5310
  ]
5268
5311
  }
5269
5312
  );
5270
5313
  }
5271
- function lc({
5314
+ function pc({
5272
5315
  expanded: e,
5273
5316
  className: t,
5274
5317
  ...n
5275
5318
  }) {
5276
- return /* @__PURE__ */ I(
5319
+ return /* @__PURE__ */ P(
5277
5320
  "div",
5278
5321
  {
5279
5322
  className: j("rounded-compact-sheet flex items-center p-2", t),
5280
5323
  ...n,
5281
5324
  children: [
5282
5325
  /* @__PURE__ */ h(ke, { visible: !e.value, className: "p-1", children: /* @__PURE__ */ h(ot, {}) }),
5283
- /* @__PURE__ */ h(Fo, { expanded: e })
5326
+ /* @__PURE__ */ h($o, { expanded: e })
5284
5327
  ]
5285
5328
  }
5286
5329
  );
5287
5330
  }
5288
- function cc({ visible: e, className: t, ...n }) {
5331
+ function hc({ visible: e, className: t, ...n }) {
5289
5332
  const r = re(), { language: o, showPicker: a } = rt();
5290
- return a.value ? /* @__PURE__ */ h(ke, { visible: e, className: "p-1", children: /* @__PURE__ */ h(zo, { children: /* @__PURE__ */ I(
5291
- Do,
5333
+ return a.value ? /* @__PURE__ */ h(ke, { visible: e, className: "p-1", children: /* @__PURE__ */ h(Vo, { children: /* @__PURE__ */ P(
5334
+ zo,
5292
5335
  {
5293
5336
  className: j(
5294
5337
  "h-9 min-w-max border border-base-border rounded-button focus-ring px-1.5 flex gap-1 items-center transition-colors duration-200 hover:bg-base-hover active:bg-base-active",
@@ -5297,17 +5340,17 @@ function cc({ visible: e, className: t, ...n }) {
5297
5340
  "aria-label": r.change_language,
5298
5341
  ...n,
5299
5342
  children: [
5300
- /* @__PURE__ */ h(_n, { flagCode: o.value.flagCode }),
5301
- /* @__PURE__ */ h(Bo, { className: "px-1 text-base-subtle", asChild: !0, children: /* @__PURE__ */ h(Je, { size: "sm", name: "chevron-down" }) })
5343
+ /* @__PURE__ */ h(On, { flagCode: o.value.flagCode }),
5344
+ /* @__PURE__ */ h(Fo, { className: "px-1 text-base-subtle", asChild: !0, children: /* @__PURE__ */ h(Je, { size: "sm", name: "chevron-down" }) })
5302
5345
  ]
5303
5346
  }
5304
5347
  ) }) }) : null;
5305
5348
  }
5306
- function Vo() {
5307
- const e = Q().value.variant, { isDisconnected: t, status: n } = ne();
5308
- return /* @__PURE__ */ I(wt, { children: [
5349
+ function Wo() {
5350
+ const e = q().value.variant, { isDisconnected: t, status: n } = ne();
5351
+ return /* @__PURE__ */ P(wt, { children: [
5309
5352
  /* @__PURE__ */ h(
5310
- Mn,
5353
+ Ln,
5311
5354
  {
5312
5355
  isDisconnected: t.value,
5313
5356
  iconOnly: e === "tiny",
@@ -5315,19 +5358,19 @@ function Vo() {
5315
5358
  disabled: n.value === "disconnecting" || n.value === "connecting"
5316
5359
  }
5317
5360
  ),
5318
- /* @__PURE__ */ h(cc, { visible: t.value }),
5319
- /* @__PURE__ */ h(On, { visible: !t.value })
5361
+ /* @__PURE__ */ h(hc, { visible: t.value }),
5362
+ /* @__PURE__ */ h(Mn, { visible: !t.value })
5320
5363
  ] });
5321
5364
  }
5322
- function uc({
5365
+ function vc({
5323
5366
  className: e,
5324
5367
  ...t
5325
5368
  }) {
5326
5369
  const { isDisconnected: n } = ne(), r = re();
5327
- return /* @__PURE__ */ I("div", { className: j("flex flex-col p-2 rounded-sheet", e), ...t, children: [
5328
- /* @__PURE__ */ I("div", { className: "flex items-center p-1 gap-2 min-w-60", children: [
5370
+ return /* @__PURE__ */ P("div", { className: j("flex flex-col p-2 rounded-sheet", e), ...t, children: [
5371
+ /* @__PURE__ */ P("div", { className: "flex items-center p-1 gap-2 min-w-60", children: [
5329
5372
  /* @__PURE__ */ h(ot, {}),
5330
- /* @__PURE__ */ I("div", { className: "relative text-sm max-w-64", children: [
5373
+ /* @__PURE__ */ P("div", { className: "relative text-sm max-w-64", children: [
5331
5374
  /* @__PURE__ */ h(
5332
5375
  "span",
5333
5376
  {
@@ -5338,34 +5381,34 @@ function uc({
5338
5381
  children: r.main_label
5339
5382
  }
5340
5383
  ),
5341
- /* @__PURE__ */ h(ce, { active: !n.value, children: /* @__PURE__ */ h(on, { className: "absolute top-1/2 -translate-y-1/2 transition-[transform,opacity] duration-200 data-hidden:opacity-0 data-hidden:scale-90" }) })
5384
+ /* @__PURE__ */ h(ce, { active: !n.value, children: /* @__PURE__ */ h(an, { className: "absolute top-1/2 -translate-y-1/2 transition-[transform,opacity] duration-200 data-hidden:opacity-0 data-hidden:scale-90" }) })
5342
5385
  ] })
5343
5386
  ] }),
5344
- /* @__PURE__ */ h("div", { className: "flex items-center", children: /* @__PURE__ */ h(Vo, {}) })
5387
+ /* @__PURE__ */ h("div", { className: "flex items-center", children: /* @__PURE__ */ h(Wo, {}) })
5345
5388
  ] });
5346
5389
  }
5347
- function dc({
5390
+ function gc({
5348
5391
  className: e,
5349
5392
  ...t
5350
5393
  }) {
5351
- return /* @__PURE__ */ I(
5394
+ return /* @__PURE__ */ P(
5352
5395
  "div",
5353
5396
  {
5354
5397
  className: j("rounded-compact-sheet flex items-center p-2", e),
5355
5398
  ...t,
5356
5399
  children: [
5357
5400
  /* @__PURE__ */ h(ot, { className: "mx-1" }),
5358
- /* @__PURE__ */ h(Vo, {})
5401
+ /* @__PURE__ */ h(Wo, {})
5359
5402
  ]
5360
5403
  }
5361
5404
  );
5362
5405
  }
5363
- function fc({ expandable: e, expanded: t }) {
5364
- const n = Q().value.variant, r = Dt(), { isDisconnected: o } = ne(), a = Te(async () => {
5406
+ function mc({ expandable: e, expanded: t }) {
5407
+ const n = q().value.variant, r = Bt(), { isDisconnected: o } = ne(), a = Te(async () => {
5365
5408
  await r.requestTerms(), t.value = !t.peek();
5366
5409
  }, [t]), i = n === "full";
5367
5410
  return e ? /* @__PURE__ */ h(
5368
- i ? sc : lc,
5411
+ i ? fc : pc,
5369
5412
  {
5370
5413
  expanded: t,
5371
5414
  className: j(
@@ -5374,11 +5417,11 @@ function fc({ expandable: e, expanded: t }) {
5374
5417
  ),
5375
5418
  onClick: o.value || t.value ? a : void 0
5376
5419
  }
5377
- ) : /* @__PURE__ */ h(i ? uc : dc, { className: "bg-base shadow-md pointer-events-auto overflow-hidden" });
5420
+ ) : /* @__PURE__ */ h(i ? vc : gc, { className: "bg-base shadow-md pointer-events-auto overflow-hidden" });
5378
5421
  }
5379
- function pc() {
5380
- const e = re(), t = Q(), { dismissTerms: n, acceptTerms: r } = Dt();
5381
- return /* @__PURE__ */ I("div", { className: "max-w-[400px] flex flex-col gap-2 bg-base shadow-md pointer-events-auto rounded-sheet p-3 text-sm", children: [
5422
+ function wc() {
5423
+ const e = re(), t = q(), { dismissTerms: n, acceptTerms: r } = Bt();
5424
+ return /* @__PURE__ */ P("div", { className: "max-w-[400px] flex flex-col gap-2 bg-base shadow-md pointer-events-auto rounded-sheet p-3 text-sm", children: [
5382
5425
  /* @__PURE__ */ h(
5383
5426
  "div",
5384
5427
  {
@@ -5386,13 +5429,13 @@ function pc() {
5386
5429
  dangerouslySetInnerHTML: { __html: t.value.terms_html ?? "" }
5387
5430
  }
5388
5431
  ),
5389
- /* @__PURE__ */ I("div", { className: "flex justify-end gap-2", children: [
5432
+ /* @__PURE__ */ P("div", { className: "flex justify-end gap-2", children: [
5390
5433
  /* @__PURE__ */ h(Me, { onClick: n, children: e.dismiss_terms }),
5391
5434
  /* @__PURE__ */ h(Me, { onClick: r, variant: "primary", children: e.accept_terms })
5392
5435
  ] })
5393
5436
  ] });
5394
5437
  }
5395
- function hc({ copyText: e, children: t }) {
5438
+ function bc({ copyText: e, children: t }) {
5396
5439
  const n = re(), [r, o] = be(!1);
5397
5440
  Oe(() => {
5398
5441
  if (r) {
@@ -5405,37 +5448,37 @@ function hc({ copyText: e, children: t }) {
5405
5448
  }
5406
5449
  }, [r]);
5407
5450
  const a = Te(() => {
5408
- const i = Cr(e);
5451
+ const i = Er(e);
5409
5452
  i && (navigator.clipboard.writeText(i), o(!0));
5410
5453
  }, []);
5411
5454
  return /* @__PURE__ */ h(Me, { onClick: a, children: r ? n.copied : t });
5412
5455
  }
5413
- function vc({ sawError: e }) {
5456
+ function xc({ sawError: e }) {
5414
5457
  const t = re(), { error: n, lastId: r } = ne(), o = Te(() => {
5415
5458
  e.value = !0;
5416
5459
  }, []);
5417
- return /* @__PURE__ */ I("div", { className: "max-w-[400px] flex flex-col gap-2 bg-base shadow-md pointer-events-auto rounded-sheet p-3 text-sm", children: [
5418
- /* @__PURE__ */ I("div", { className: "p-2 pt-1", children: [
5460
+ return /* @__PURE__ */ P("div", { className: "max-w-[400px] flex flex-col gap-2 bg-base shadow-md pointer-events-auto rounded-sheet p-3 text-sm", children: [
5461
+ /* @__PURE__ */ P("div", { className: "p-2 pt-1", children: [
5419
5462
  /* @__PURE__ */ h("h1", { className: "text-md font-medium pb-1", children: t.error_occurred }),
5420
5463
  n.value,
5421
- r.value && /* @__PURE__ */ I(wt, { children: [
5464
+ r.value && /* @__PURE__ */ P(wt, { children: [
5422
5465
  /* @__PURE__ */ h("br", {}),
5423
- /* @__PURE__ */ I("span", { className: "text-base-subtle", children: [
5466
+ /* @__PURE__ */ P("span", { className: "text-base-subtle", children: [
5424
5467
  t.conversation_id,
5425
5468
  ": ",
5426
5469
  r.value
5427
5470
  ] })
5428
5471
  ] })
5429
5472
  ] }),
5430
- /* @__PURE__ */ I("div", { className: "flex justify-end gap-2", children: [
5431
- /* @__PURE__ */ h(hc, { copyText: r, children: t.copy_id }),
5473
+ /* @__PURE__ */ P("div", { className: "flex justify-end gap-2", children: [
5474
+ /* @__PURE__ */ h(bc, { copyText: r, children: t.copy_id }),
5432
5475
  /* @__PURE__ */ h(Me, { variant: "primary", onClick: o, children: "Close" })
5433
5476
  ] })
5434
5477
  ] });
5435
5478
  }
5436
- function gc() {
5437
- const e = Q();
5438
- return e.value.disable_banner ? null : /* @__PURE__ */ I(
5479
+ function yc() {
5480
+ const e = q();
5481
+ return e.value.disable_banner ? null : /* @__PURE__ */ P(
5439
5482
  "p",
5440
5483
  {
5441
5484
  className: j(
@@ -5465,47 +5508,49 @@ const Ze = {
5465
5508
  }, qe = {
5466
5509
  top: "flex-col-reverse justify-end",
5467
5510
  bottom: "flex-col justify-end"
5468
- }, mc = {
5511
+ }, Cc = {
5469
5512
  "top-left": `${qe.top} ${Ze.left}`,
5470
5513
  top: `${qe.top} ${Ze.center}`,
5471
5514
  "top-right": `${qe.top} ${Ze.right}`,
5472
5515
  "bottom-left": `${qe.bottom} ${Ze.left}`,
5473
5516
  bottom: `${qe.bottom} ${Ze.center}`,
5474
5517
  "bottom-right": `${qe.bottom} ${Ze.right}`
5475
- }, wc = ir(function() {
5476
- const t = ue(!1), n = Q(), r = ue(!1), { error: o } = ne(), a = Dt(), i = X(
5518
+ }, At = {
5519
+ display: "none"
5520
+ }, Sc = sr(function() {
5521
+ const t = ue(!1), n = q(), r = ue(!1), { error: o } = ne(), a = Bt(), i = Y(
5477
5522
  () => n.value.transcript_enabled || n.value.text_input_enabled
5478
- ), s = X(
5523
+ ), s = Y(
5479
5524
  () => j(
5480
- "overlay flex transition-opacity duration-200 data-hidden:opacity-0",
5481
- mc[n.value.placement]
5525
+ "overlay !flex transition-opacity duration-200 data-hidden:opacity-0",
5526
+ Cc[n.value.placement]
5482
5527
  )
5483
5528
  );
5484
5529
  ze(() => {
5485
5530
  o.value && (i.value ? (r.value = !0, t.value = !0) : r.value = !1);
5486
5531
  });
5487
- const l = X(() => !i.value && o.value && !r.value ? "error" : !a.termsAccepted.value && a.termsShown.value ? "terms" : "conversation"), c = X(() => l.value === "error"), d = X(() => l.value === "terms"), p = X(() => l.value === "conversation");
5488
- return /* @__PURE__ */ I(wt, { children: [
5489
- /* @__PURE__ */ h(ce, { initial: !1, active: p, children: /* @__PURE__ */ I(yt, { className: s, children: [
5490
- i.value && /* @__PURE__ */ h(ic, { open: t }),
5491
- /* @__PURE__ */ h(fc, { expandable: i.value, expanded: t })
5532
+ const l = Y(() => !i.value && o.value && !r.value ? "error" : !a.termsAccepted.value && a.termsShown.value ? "terms" : "conversation"), c = Y(() => l.value === "error"), d = Y(() => l.value === "terms"), p = Y(() => l.value === "conversation");
5533
+ return /* @__PURE__ */ P(wt, { children: [
5534
+ /* @__PURE__ */ h(ce, { initial: !1, active: p, children: /* @__PURE__ */ P(yt, { className: s, style: At, children: [
5535
+ i.value && /* @__PURE__ */ h(dc, { open: t }),
5536
+ /* @__PURE__ */ h(mc, { expandable: i.value, expanded: t })
5492
5537
  ] }) }),
5493
- /* @__PURE__ */ h(ce, { initial: !1, active: d, children: /* @__PURE__ */ h(yt, { className: s, children: /* @__PURE__ */ h(pc, {}) }) }),
5494
- /* @__PURE__ */ h(ce, { initial: !1, active: c, children: /* @__PURE__ */ h(yt, { className: s, children: /* @__PURE__ */ h(vc, { sawError: r }) }) }),
5495
- /* @__PURE__ */ h(yt, { className: s, children: /* @__PURE__ */ h(gc, {}) })
5538
+ /* @__PURE__ */ h(ce, { initial: !1, active: d, children: /* @__PURE__ */ h(yt, { className: s, style: At, children: /* @__PURE__ */ h(wc, {}) }) }),
5539
+ /* @__PURE__ */ h(ce, { initial: !1, active: c, children: /* @__PURE__ */ h(yt, { className: s, style: At, children: /* @__PURE__ */ h(xc, { sawError: r }) }) }),
5540
+ /* @__PURE__ */ h(yt, { className: s, style: At, children: /* @__PURE__ */ h(yc, {}) })
5496
5541
  ] });
5497
5542
  });
5498
- function bc(e) {
5499
- return /* @__PURE__ */ h(qo, { value: e, children: /* @__PURE__ */ h(ra, { children: /* @__PURE__ */ h(fa, { children: /* @__PURE__ */ h(la, { children: /* @__PURE__ */ h(ha, { children: /* @__PURE__ */ h(aa, { children: /* @__PURE__ */ h(ia, { children: /* @__PURE__ */ h(ca, { children: /* @__PURE__ */ h(va, { children: /* @__PURE__ */ I(ga, { children: [
5500
- /* @__PURE__ */ h(Zo, {}),
5501
- /* @__PURE__ */ h(wc, {})
5543
+ function Ec(e) {
5544
+ return /* @__PURE__ */ h(ra, { value: e, children: /* @__PURE__ */ h(aa, { children: /* @__PURE__ */ h(va, { children: /* @__PURE__ */ h(da, { children: /* @__PURE__ */ h(sa, { children: /* @__PURE__ */ h(la, { children: /* @__PURE__ */ h(ca, { children: /* @__PURE__ */ h(fa, { children: /* @__PURE__ */ h(xa, { children: /* @__PURE__ */ P(ya, { children: [
5545
+ /* @__PURE__ */ h(ma, {}),
5546
+ /* @__PURE__ */ h(Sc, {})
5502
5547
  ] }) }) }) }) }) }) }) }) }) });
5503
5548
  }
5504
- function Rc(e = "elevenlabs-convai") {
5505
- Ho(bc, e, [...nn], {
5549
+ function Mc(e = "elevenlabs-convai") {
5550
+ Yo(Ec, e, [...rn], {
5506
5551
  shadow: !0
5507
5552
  });
5508
5553
  }
5509
5554
  export {
5510
- Rc as registerWidget
5555
+ Mc as registerWidget
5511
5556
  };