@eloquentai/chat-sdk 0.30.12-dev → 0.30.13-dev

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.
@@ -1,21 +1,21 @@
1
1
  import { jsx as D, jsxs as De, Fragment as kn } from "react/jsx-runtime";
2
2
  import * as P from "react";
3
- import od, { useState as Fe, useEffect as Ye, createContext as Go, useContext as Yo, forwardRef as ad, createElement as ms, useRef as rt, useMemo as er, useCallback as ct } from "react";
3
+ import od, { useState as ze, useEffect as He, createContext as Go, useContext as Yo, forwardRef as ad, createElement as ms, useRef as rt, useMemo as er, useCallback as ct } from "react";
4
4
  import * as Vg from "react-dom";
5
5
  import Wg, { createPortal as gs } from "react-dom";
6
6
  import qg from "react-dom/client";
7
7
  try {
8
8
  let e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {}, t = new e.Error().stack;
9
- t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "c0d1f1a6-01b8-4a48-9e4b-898411fd3b58", e._sentryDebugIdIdentifier = "sentry-dbid-c0d1f1a6-01b8-4a48-9e4b-898411fd3b58");
9
+ t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "5a449305-7d34-4e88-8023-0f87f99e8c11", e._sentryDebugIdIdentifier = "sentry-dbid-5a449305-7d34-4e88-8023-0f87f99e8c11");
10
10
  } catch {
11
11
  }
12
12
  {
13
13
  let e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {};
14
- e.SENTRY_RELEASE = { id: "0bc9f0c819ad31fe078faa2fa40a8d6fe520f62b" };
14
+ e.SENTRY_RELEASE = { id: "9fa0458472db1aa4912f18f54b72213424e31c2f" };
15
15
  }
16
16
  if (typeof window < "u") {
17
17
  const e = "development";
18
- import("./index-D5p4GnZ2.js").then((t) => {
18
+ import("./index-CiWiemZf.js").then((t) => {
19
19
  t.init({
20
20
  dsn: void 0,
21
21
  environment: e,
@@ -41,7 +41,7 @@ if (typeof window < "u") {
41
41
  });
42
42
  });
43
43
  }
44
- const Na = `*,: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:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:system-ui,Segoe UI,Roboto,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol;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]){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::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}*{scrollbar-color:initial;scrollbar-width:initial}:root{--background: 0 0% 100%;--foreground: 0 0% 3.9%;--card: 0 0% 100%;--card-foreground: 0 0% 3.9%;--popover: 0 0% 100%;--popover-foreground: 0 0% 3.9%;--primary: 267 56% 46%;--primary-foreground: 0 0% 98%;--secondary: 0 0% 96.1%;--secondary-foreground: 0 0% 9%;--muted: 0 0% 96.1%;--muted-foreground: 0 0% 45.1%;--accent: 0 0% 96.1%;--accent-foreground: 0 0% 9%;--destructive: 0 84.2% 60.2%;--destructive-foreground: 0 0% 98%;--border: 0 0% 89.8%;--input: 0 0% 89.8%;--ring: 0 0% 3.9%;--chart-1: 12 76% 61%;--chart-2: 173 58% 39%;--chart-3: 197 37% 24%;--chart-4: 43 74% 66%;--chart-5: 27 87% 67%;--radius: .5rem}.dark{--background: 262 50% 10%;--foreground: 262 5% 90%;--card: 262 50% 10%;--card-foreground: 262 5% 90%;--popover: 262 50% 5%;--popover-foreground: 262 5% 90%;--primary: 262 62% 70%;--primary-foreground: 0 0% 100%;--primary-dark: 262 62% 60%;--secondary: 262 30% 30%;--secondary-foreground: 0 0% 100%;--secondary-dark: 262 30% 20%;--secondary-light: 262 30% 40%;--tertiary: 267 56% 46%;--tertiary-foreground: 0 0% 100%;--tertiary-dark: 267 38% 25%;--tertiary-light: 263 100% 85%;--muted: 224 30% 25%;--muted-foreground: 262 5% 90%;--accent: 224 30% 25%;--accent-foreground: 262 5% 100%;--accent-dark: 224 30% 15%;--destructive: 0 100% 30%;--destructive-foreground: 262 5% 90%;--border: 0 0% 30%;--input: 262 30% 25%;--ring: 262 62% 71%;--radius: .5rem;--sidebar-background: var(--background);--sidebar-foreground: var(--foreground);--sidebar-primary: var(--primary);--sidebar-primary-foreground: var(--primary-foreground);--sidebar-accent: var(--accent);--sidebar-accent-foreground: var(--accent-foreground);--sidebar-border: var(--border);--sidebar-ring: var(--ring)}*{border-color:hsl(var(--border))}body{background-color:hsl(var(--background));color:hsl(var(--foreground))}.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}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.visible{visibility:visible}.invisible{visibility:hidden}.collapse{visibility:collapse}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{inset:0}.bottom-0{bottom:0}.bottom-1{bottom:.25rem}.bottom-10{bottom:2.5rem}.bottom-2{bottom:.5rem}.left-\\[50\\%\\]{left:50%}.left-\\[calc\\(50\\%-0\\.75rem\\)\\]{left:calc(50% - .75rem)}.right-0{right:0}.right-16{right:4rem}.right-2{right:.5rem}.right-4{right:1rem}.right-\\[-9px\\]{right:-9px}.top-0{top:0}.top-4{top:1rem}.top-\\[50\\%\\]{top:50%}.z-10{z-index:10}.z-20{z-index:20}.z-50{z-index:50}.m-0{margin:0}.m-auto{margin:auto}.mx-1{margin-left:.25rem;margin-right:.25rem}.mx-auto{margin-left:auto;margin-right:auto}.my-2{margin-top:.5rem;margin-bottom:.5rem}.my-4{margin-top:1rem;margin-bottom:1rem}.-mt-20{margin-top:-5rem}.-mt-6{margin-top:-1.5rem}.mb-10{margin-bottom:2.5rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.ml-0{margin-left:0}.ml-1{margin-left:.25rem}.ml-5{margin-left:1.25rem}.mr-1{margin-right:.25rem}.mt-1{margin-top:.25rem}.mt-10{margin-top:2.5rem}.mt-2{margin-top:.5rem}.block{display:block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.hidden{display:none}.aspect-square{aspect-ratio:1 / 1}.h-10{height:2.5rem}.h-12{height:3rem}.h-14{height:3.5rem}.h-2\\.5{height:.625rem}.h-3{height:.75rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-8{height:2rem}.h-\\[5px\\]{height:5px}.h-\\[7px\\]{height:7px}.h-full{height:100%}.max-h-\\[132px\\]{max-height:132px}.min-h-\\[48px\\]{min-height:48px}.min-h-\\[80px\\]{min-height:80px}.w-10{width:2.5rem}.w-12{width:3rem}.w-14{width:3.5rem}.w-2\\.5{width:.625rem}.w-2\\/3{width:66.666667%}.w-24{width:6rem}.w-3{width:.75rem}.w-32{width:8rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-72{width:18rem}.w-8{width:2rem}.w-\\[5px\\]{width:5px}.w-\\[70\\%\\]{width:70%}.w-\\[7px\\]{width:7px}.w-full{width:100%}.min-w-0{min-width:0px}.min-w-min{min-width:min-content}.max-w-\\[75\\%\\]{max-width:75%}.max-w-\\[88\\%\\]{max-width:88%}.max-w-\\[90vw\\]{max-width:90vw}.max-w-full{max-width:100%}.max-w-lg{max-width:32rem}.max-w-xs{max-width:20rem}.flex-1{flex:1 1 0%}.flex-shrink-0,.shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}.origin-bottom-right{transform-origin:bottom right}.translate-x-0{--tw-translate-x: 0px;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-x-8{--tw-translate-x: 2rem;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-x-\\[-50\\%\\]{--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-\\[-50\\%\\]{--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))}.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-95{--tw-scale-x: .95;--tw-scale-y: .95;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\\.08\\]{--tw-scale-x: .08;--tw-scale-y: .08;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-x-100{--tw-scale-x: -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))}.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))}@keyframes bounce{0%,to{transform:translateY(-25%);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{transform:none;animation-timing-function:cubic-bezier(0,0,.2,1)}}.animate-bounce{animation:bounce 1s infinite}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}.cursor-default{cursor:default}.cursor-grab{cursor:grab}.cursor-pointer{cursor:pointer}.touch-none{touch-action:none}.select-none{user-select:none}.resize-none{resize:none}.list-decimal{list-style-type:decimal}.list-disc{list-style-type:disc}.flex-row{flex-direction:row}.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-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-1\\.5{gap:.375rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-\\[3px\\]{gap:3px}.space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.25rem * var(--tw-space-x-reverse));margin-left:calc(.25rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-3>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.75rem * var(--tw-space-x-reverse));margin-left:calc(.75rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-0>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(0px * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(0px * var(--tw-space-y-reverse))}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.space-y-1\\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.375rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.375rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.self-end{align-self:flex-end}.self-stretch{align-self:stretch}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.whitespace-nowrap{white-space:nowrap}.rounded-2xl{border-radius:1rem}.rounded-3xl{border-radius:1.5rem}.rounded-\\[inherit\\]{border-radius:inherit}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:var(--radius)}.rounded-md{border-radius:calc(var(--radius) - 2px)}.rounded-none{border-radius:0}.rounded-sm{border-radius:calc(var(--radius) - 4px)}.rounded-t-2xl{border-top-left-radius:1rem;border-top-right-radius:1rem}.border{border-width:1px}.border-0{border-width:0px}.border-x{border-left-width:1px;border-right-width:1px}.border-l{border-left-width:1px}.border-l-4{border-left-width:4px}.border-t{border-top-width:1px}.border-amber-400{--tw-border-opacity: 1;border-color:rgb(251 191 36 / var(--tw-border-opacity, 1))}.border-blue-500{--tw-border-opacity: 1;border-color:rgb(59 130 246 / var(--tw-border-opacity, 1))}.border-border{border-color:hsl(var(--border))}.border-green-500{--tw-border-opacity: 1;border-color:rgb(34 197 94 / var(--tw-border-opacity, 1))}.border-input{border-color:hsl(var(--input))}.border-red-500{--tw-border-opacity: 1;border-color:rgb(239 68 68 / var(--tw-border-opacity, 1))}.border-l-transparent{border-left-color:transparent}.border-t-transparent{border-top-color:transparent}.bg-\\[\\#000\\]{--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity, 1))}.bg-\\[\\#FAF9F7\\]{--tw-bg-opacity: 1;background-color:rgb(250 249 247 / var(--tw-bg-opacity, 1))}.bg-amber-50{--tw-bg-opacity: 1;background-color:rgb(255 251 235 / var(--tw-bg-opacity, 1))}.bg-background{background-color:hsl(var(--background))}.bg-black\\/80{background-color:#000c}.bg-blue-50{--tw-bg-opacity: 1;background-color:rgb(239 246 255 / var(--tw-bg-opacity, 1))}.bg-border{background-color:hsl(var(--border))}.bg-card{background-color:hsl(var(--card))}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity, 1))}.bg-gray-300{--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity, 1))}.bg-gray-400{--tw-bg-opacity: 1;background-color:rgb(156 163 175 / var(--tw-bg-opacity, 1))}.bg-green-50{--tw-bg-opacity: 1;background-color:rgb(240 253 244 / var(--tw-bg-opacity, 1))}.bg-muted{background-color:hsl(var(--muted))}.bg-muted-foreground{background-color:hsl(var(--muted-foreground))}.bg-popover{background-color:hsl(var(--popover))}.bg-red-50{--tw-bg-opacity: 1;background-color:rgb(254 242 242 / var(--tw-bg-opacity, 1))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.bg-white\\/20{background-color:#fff3}.bg-white\\/90{background-color:#ffffffe6}.fill-none{fill:none}.fill-yellow-400{fill:#facc15}.object-contain{object-fit:contain}.p-0{padding:0}.p-0\\.5{padding:.125rem}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.p-\\[1px\\]{padding:1px}.px-0{padding-left:0;padding-right:0}.px-1{padding-left:.25rem;padding-right:.25rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-\\[12px\\]{padding-left:12px;padding-right:12px}.px-\\[16px\\]{padding-left:16px;padding-right:16px}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\\.5{padding-top:.375rem;padding-bottom:.375rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-3\\.5{padding-top:.875rem;padding-bottom:.875rem}.py-\\[10px\\]{padding-top:10px;padding-bottom:10px}.py-\\[12px\\]{padding-top:12px;padding-bottom:12px}.pb-10{padding-bottom:2.5rem}.pb-14{padding-bottom:3.5rem}.pb-2{padding-bottom:.5rem}.pb-4{padding-bottom:1rem}.pl-3{padding-left:.75rem}.pl-4{padding-left:1rem}.pr-12{padding-right:3rem}.pr-2{padding-right:.5rem}.pr-4{padding-right:1rem}.pt-0{padding-top:0}.pt-10{padding-top:2.5rem}.pt-2{padding-top:.5rem}.pt-4{padding-top:1rem}.pt-5{padding-top:1.25rem}.text-left{text-align:left}.text-center{text-align:center}.text-2xl{font-size:1.5rem;line-height:2rem}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-medium{font-weight:500}.font-semibold{font-weight:600}.italic{font-style:italic}.leading-5{line-height:1.25rem}.leading-none{line-height:1}.leading-relaxed{line-height:1.625}.tracking-tight{letter-spacing:-.025em}.text-\\[\\#fff\\]{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.text-amber-500{--tw-text-opacity: 1;color:rgb(245 158 11 / var(--tw-text-opacity, 1))}.text-amber-800{--tw-text-opacity: 1;color:rgb(146 64 14 / var(--tw-text-opacity, 1))}.text-blue-500{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity, 1))}.text-blue-800{--tw-text-opacity: 1;color:rgb(30 64 175 / var(--tw-text-opacity, 1))}.text-card-foreground{color:hsl(var(--card-foreground))}.text-destructive{color:hsl(var(--destructive))}.text-foreground{color:hsl(var(--foreground))}.text-gray-300{--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity, 1))}.text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.text-gray-600{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity, 1))}.text-gray-800{--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity, 1))}.text-green-500{--tw-text-opacity: 1;color:rgb(34 197 94 / var(--tw-text-opacity, 1))}.text-green-800{--tw-text-opacity: 1;color:rgb(22 101 52 / var(--tw-text-opacity, 1))}.text-muted{color:hsl(var(--muted))}.text-muted-foreground{color:hsl(var(--muted-foreground))}.text-popover-foreground{color:hsl(var(--popover-foreground))}.text-primary{color:hsl(var(--primary))}.text-primary-foreground{color:hsl(var(--primary-foreground))}.text-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity, 1))}.text-red-800{--tw-text-opacity: 1;color:rgb(153 27 27 / var(--tw-text-opacity, 1))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.text-yellow-400{--tw-text-opacity: 1;color:rgb(250 204 21 / var(--tw-text-opacity, 1))}.underline{text-decoration-line:underline}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-70{opacity:.7}.shadow-\\[0_-8px_24px_rgba\\(0\\,0\\,0\\,0\\.08\\)\\]{--tw-shadow: 0 -8px 24px rgba(0,0,0,.08);--tw-shadow-colored: 0 -8px 24px 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-\\[0_0_4px_0_rgba\\(0\\,0\\,0\\,0\\.20\\)\\]{--tw-shadow: 0 0 4px 0 rgba(0,0,0,.2);--tw-shadow-colored: 0 0 4px 0 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-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px 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 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px 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-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.ring-offset-background{--tw-ring-offset-color: hsl(var(--background))}.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,backdrop-filter;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-all{transition-property:all;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}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.duration-500{transition-duration:.5s}.ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.scrollbar-thin::-webkit-scrollbar-track{background-color:var(--scrollbar-track);border-radius:var(--scrollbar-track-radius)}.scrollbar-thin::-webkit-scrollbar-track:hover{background-color:var(--scrollbar-track-hover, var(--scrollbar-track))}.scrollbar-thin::-webkit-scrollbar-track:active{background-color:var(--scrollbar-track-active, var(--scrollbar-track-hover, var(--scrollbar-track)))}.scrollbar-thin::-webkit-scrollbar-thumb{background-color:var(--scrollbar-thumb);border-radius:var(--scrollbar-thumb-radius)}.scrollbar-thin::-webkit-scrollbar-thumb:hover{background-color:var(--scrollbar-thumb-hover, var(--scrollbar-thumb))}.scrollbar-thin::-webkit-scrollbar-thumb:active{background-color:var(--scrollbar-thumb-active, var(--scrollbar-thumb-hover, var(--scrollbar-thumb)))}.scrollbar-thin::-webkit-scrollbar-corner{background-color:var(--scrollbar-corner);border-radius:var(--scrollbar-corner-radius)}.scrollbar-thin::-webkit-scrollbar-corner:hover{background-color:var(--scrollbar-corner-hover, var(--scrollbar-corner))}.scrollbar-thin::-webkit-scrollbar-corner:active{background-color:var(--scrollbar-corner-active, var(--scrollbar-corner-hover, var(--scrollbar-corner)))}.scrollbar-thin{scrollbar-width:thin;scrollbar-color:var(--scrollbar-thumb, initial) var(--scrollbar-track, initial)}.scrollbar-thin::-webkit-scrollbar{display:block;width:8px;height:8px}.scrollbar-track-transparent{--scrollbar-track: transparent !important}.scrollbar-thumb-border{--scrollbar-thumb: hsl(var(--border)) !important}@keyframes enter{0%{opacity:var(--tw-enter-opacity, 1);transform:translate3d(var(--tw-enter-translate-x, 0),var(--tw-enter-translate-y, 0),0) scale3d(var(--tw-enter-scale, 1),var(--tw-enter-scale, 1),var(--tw-enter-scale, 1)) rotate(var(--tw-enter-rotate, 0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity, 1);transform:translate3d(var(--tw-exit-translate-x, 0),var(--tw-exit-translate-y, 0),0) scale3d(var(--tw-exit-scale, 1),var(--tw-exit-scale, 1),var(--tw-exit-scale, 1)) rotate(var(--tw-exit-rotate, 0))}}.animate-in{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}.fade-in{--tw-enter-opacity: 0}.slide-in-from-bottom-2{--tw-enter-translate-y: .5rem}.slide-in-from-bottom-full{--tw-enter-translate-y: 100%}.duration-200{animation-duration:.2s}.duration-300{animation-duration:.3s}.duration-500{animation-duration:.5s}.ease-in{animation-timing-function:cubic-bezier(.4,0,1,1)}.ease-out{animation-timing-function:cubic-bezier(0,0,.2,1)}.no-scrollbar::-webkit-scrollbar{display:none}.no-scrollbar{-ms-overflow-style:none;scrollbar-width:none}.\\[box-shadow\\:0_3px_4px_-2px_rgba\\(0\\,0\\,0\\,0\\.04\\)\\]{box-shadow:0 3px 4px -2px #0000000a}body{background-color:transparent}.eloquent-chat{font-family:system-ui,Segoe UI,Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol}.wrap-anywhere{overflow-wrap:anywhere}.file\\:border-0::file-selector-button{border-width:0px}.file\\:bg-transparent::file-selector-button{background-color:transparent}.file\\:text-sm::file-selector-button{font-size:.875rem;line-height:1.25rem}.file\\:font-medium::file-selector-button{font-weight:500}.file\\:text-foreground::file-selector-button{color:hsl(var(--foreground))}.placeholder\\:text-muted-foreground::placeholder{color:hsl(var(--muted-foreground))}.before\\:absolute:before{content:var(--tw-content);position:absolute}.before\\:-right-2:before{content:var(--tw-content);right:-.5rem}.before\\:bottom-2:before{content:var(--tw-content);bottom:.5rem}.before\\:h-0:before{content:var(--tw-content);height:0px}.before\\:w-0:before{content:var(--tw-content);width:0px}.before\\:content-\\[\\'\\'\\]:before{--tw-content: "";content:var(--tw-content)}.last\\:mb-0:last-child{margin-bottom:0}.data-\\[state\\=open\\]\\:bg-accent[data-state=open]{background-color:hsl(var(--accent))}.data-\\[state\\=open\\]\\:text-muted-foreground[data-state=open]{color:hsl(var(--muted-foreground))}.data-\\[state\\=open\\]\\:animate-in[data-state=open]{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}.data-\\[state\\=closed\\]\\:animate-out[data-state=closed]{animation-name:exit;animation-duration:.15s;--tw-exit-opacity: initial;--tw-exit-scale: initial;--tw-exit-rotate: initial;--tw-exit-translate-x: initial;--tw-exit-translate-y: initial}.data-\\[state\\=closed\\]\\:fade-out-0[data-state=closed]{--tw-exit-opacity: 0}.data-\\[state\\=open\\]\\:fade-in-0[data-state=open]{--tw-enter-opacity: 0}.data-\\[state\\=closed\\]\\:zoom-out-95[data-state=closed]{--tw-exit-scale: .95}.data-\\[state\\=open\\]\\:zoom-in-95[data-state=open]{--tw-enter-scale: .95}.data-\\[side\\=bottom\\]\\:slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y: -.5rem}.data-\\[side\\=left\\]\\:slide-in-from-right-2[data-side=left]{--tw-enter-translate-x: .5rem}.data-\\[side\\=right\\]\\:slide-in-from-left-2[data-side=right]{--tw-enter-translate-x: -.5rem}.data-\\[side\\=top\\]\\:slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y: .5rem}.data-\\[state\\=closed\\]\\:slide-out-to-left-1\\/2[data-state=closed]{--tw-exit-translate-x: -50%}.data-\\[state\\=closed\\]\\:slide-out-to-top-\\[48\\%\\][data-state=closed]{--tw-exit-translate-y: -48%}.data-\\[state\\=open\\]\\:slide-in-from-left-1\\/2[data-state=open]{--tw-enter-translate-x: -50%}.data-\\[state\\=open\\]\\:slide-in-from-top-\\[48\\%\\][data-state=open]{--tw-enter-translate-y: -48%}.hover\\:bg-gray-100:hover{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity, 1))}.hover\\:bg-muted:hover{background-color:hsl(var(--muted))}.hover\\:text-gray-600:hover{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity, 1))}.hover\\:text-primary:hover{color:hsl(var(--primary))}.hover\\:opacity-100:hover{opacity:1}.hover\\:opacity-80:hover{opacity:.8}.hover\\:opacity-90:hover{opacity:.9}.hover\\:shadow-xl:hover{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.hover\\:scrollbar-thumb-border{--scrollbar-thumb-hover: hsl(var(--border)) !important}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:ring-2:focus{--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)}.focus\\:ring-ring:focus{--tw-ring-color: hsl(var(--ring))}.focus\\:ring-offset-2:focus{--tw-ring-offset-width: 2px}.focus-visible\\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\\:ring-1:focus-visible{--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(1px + 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)}.focus-visible\\:ring-2:focus-visible{--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)}.focus-visible\\:ring-muted:focus-visible{--tw-ring-color: hsl(var(--muted))}.focus-visible\\:ring-primary:focus-visible{--tw-ring-color: hsl(var(--primary))}.focus-visible\\:ring-ring:focus-visible{--tw-ring-color: hsl(var(--ring))}.focus-visible\\:ring-offset-2:focus-visible{--tw-ring-offset-width: 2px}.disabled\\:pointer-events-none:disabled{pointer-events:none}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:opacity-50:disabled{opacity:.5}.dark\\:border-border:is(.dark *){border-color:hsl(var(--border))}.dark\\:bg-background:is(.dark *){background-color:hsl(var(--background))}.dark\\:bg-card:is(.dark *){background-color:hsl(var(--card))}@media(min-width:640px){.sm\\:flex-row{flex-direction:row}.sm\\:justify-end{justify-content:flex-end}.sm\\:space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.sm\\:rounded-lg{border-radius:var(--radius)}.sm\\:text-left{text-align:left}.sm\\:text-sm{font-size:.875rem;line-height:1.25rem}}@media(min-width:768px){.md\\:text-sm{font-size:.875rem;line-height:1.25rem}}.\\[\\&\\>\\[data-radix-scroll-area-viewport\\]\\]\\:scroll-smooth>[data-radix-scroll-area-viewport]{scroll-behavior:smooth}`, Hg = ".eloquentai-chat-launcher{transition:transform .2s ease-in-out}.eloquentai-chat-launcher:hover{transform:scale(1.1)}";
44
+ const Na = `*,: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:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:system-ui,Segoe UI,Roboto,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol;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]){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::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}*{scrollbar-color:initial;scrollbar-width:initial}:root{--background: 0 0% 100%;--foreground: 0 0% 3.9%;--card: 0 0% 100%;--card-foreground: 0 0% 3.9%;--popover: 0 0% 100%;--popover-foreground: 0 0% 3.9%;--primary: 267 56% 46%;--primary-foreground: 0 0% 98%;--secondary: 0 0% 96.1%;--secondary-foreground: 0 0% 9%;--muted: 0 0% 96.1%;--muted-foreground: 0 0% 45.1%;--accent: 0 0% 96.1%;--accent-foreground: 0 0% 9%;--destructive: 0 84.2% 60.2%;--destructive-foreground: 0 0% 98%;--border: 0 0% 89.8%;--input: 0 0% 89.8%;--ring: 0 0% 3.9%;--chart-1: 12 76% 61%;--chart-2: 173 58% 39%;--chart-3: 197 37% 24%;--chart-4: 43 74% 66%;--chart-5: 27 87% 67%;--radius: .5rem}.dark{--background: 262 50% 10%;--foreground: 262 5% 90%;--card: 262 50% 10%;--card-foreground: 262 5% 90%;--popover: 262 50% 5%;--popover-foreground: 262 5% 90%;--primary: 262 62% 70%;--primary-foreground: 0 0% 100%;--primary-dark: 262 62% 60%;--secondary: 262 30% 30%;--secondary-foreground: 0 0% 100%;--secondary-dark: 262 30% 20%;--secondary-light: 262 30% 40%;--tertiary: 267 56% 46%;--tertiary-foreground: 0 0% 100%;--tertiary-dark: 267 38% 25%;--tertiary-light: 263 100% 85%;--muted: 224 30% 25%;--muted-foreground: 262 5% 90%;--accent: 224 30% 25%;--accent-foreground: 262 5% 100%;--accent-dark: 224 30% 15%;--destructive: 0 100% 30%;--destructive-foreground: 262 5% 90%;--border: 0 0% 30%;--input: 262 30% 25%;--ring: 262 62% 71%;--radius: .5rem;--sidebar-background: var(--background);--sidebar-foreground: var(--foreground);--sidebar-primary: var(--primary);--sidebar-primary-foreground: var(--primary-foreground);--sidebar-accent: var(--accent);--sidebar-accent-foreground: var(--accent-foreground);--sidebar-border: var(--border);--sidebar-ring: var(--ring)}*{border-color:hsl(var(--border))}body{background-color:hsl(var(--background));color:hsl(var(--foreground))}.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}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.visible{visibility:visible}.invisible{visibility:hidden}.collapse{visibility:collapse}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{inset:0}.bottom-0{bottom:0}.bottom-1{bottom:.25rem}.bottom-10{bottom:2.5rem}.bottom-2{bottom:.5rem}.left-\\[50\\%\\]{left:50%}.left-\\[calc\\(50\\%-0\\.75rem\\)\\]{left:calc(50% - .75rem)}.right-0{right:0}.right-16{right:4rem}.right-2{right:.5rem}.right-4{right:1rem}.right-\\[-9px\\]{right:-9px}.top-0{top:0}.top-4{top:1rem}.top-\\[50\\%\\]{top:50%}.z-10{z-index:10}.z-20{z-index:20}.z-50{z-index:50}.m-0{margin:0}.m-auto{margin:auto}.mx-1{margin-left:.25rem;margin-right:.25rem}.mx-auto{margin-left:auto;margin-right:auto}.my-2{margin-top:.5rem;margin-bottom:.5rem}.my-4{margin-top:1rem;margin-bottom:1rem}.-mt-20{margin-top:-5rem}.-mt-6{margin-top:-1.5rem}.mb-10{margin-bottom:2.5rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.ml-0{margin-left:0}.ml-1{margin-left:.25rem}.ml-5{margin-left:1.25rem}.mr-1{margin-right:.25rem}.mt-1{margin-top:.25rem}.mt-10{margin-top:2.5rem}.mt-2{margin-top:.5rem}.block{display:block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.hidden{display:none}.aspect-square{aspect-ratio:1 / 1}.h-10{height:2.5rem}.h-12{height:3rem}.h-14{height:3.5rem}.h-2\\.5{height:.625rem}.h-3{height:.75rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-8{height:2rem}.h-\\[5px\\]{height:5px}.h-\\[7px\\]{height:7px}.h-full{height:100%}.max-h-\\[132px\\]{max-height:132px}.min-h-\\[48px\\]{min-height:48px}.min-h-\\[80px\\]{min-height:80px}.w-10{width:2.5rem}.w-12{width:3rem}.w-14{width:3.5rem}.w-2\\.5{width:.625rem}.w-2\\/3{width:66.666667%}.w-24{width:6rem}.w-3{width:.75rem}.w-32{width:8rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-72{width:18rem}.w-8{width:2rem}.w-\\[5px\\]{width:5px}.w-\\[70\\%\\]{width:70%}.w-\\[7px\\]{width:7px}.w-full{width:100%}.min-w-0{min-width:0px}.min-w-min{min-width:min-content}.max-w-\\[75\\%\\]{max-width:75%}.max-w-\\[88\\%\\]{max-width:88%}.max-w-\\[90vw\\]{max-width:90vw}.max-w-full{max-width:100%}.max-w-lg{max-width:32rem}.max-w-xs{max-width:20rem}.flex-1{flex:1 1 0%}.flex-shrink-0,.shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}.origin-bottom-right{transform-origin:bottom right}.translate-x-0{--tw-translate-x: 0px;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-x-8{--tw-translate-x: 2rem;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-x-\\[-50\\%\\]{--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-\\[-50\\%\\]{--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))}.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-95{--tw-scale-x: .95;--tw-scale-y: .95;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\\.08\\]{--tw-scale-x: .08;--tw-scale-y: .08;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-x-100{--tw-scale-x: -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))}.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))}@keyframes bounce{0%,to{transform:translateY(-25%);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{transform:none;animation-timing-function:cubic-bezier(0,0,.2,1)}}.animate-bounce{animation:bounce 1s infinite}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}.cursor-default{cursor:default}.cursor-grab{cursor:grab}.cursor-pointer{cursor:pointer}.touch-none{touch-action:none}.select-none{user-select:none}.resize-none{resize:none}.resize{resize:both}.list-decimal{list-style-type:decimal}.list-disc{list-style-type:disc}.flex-row{flex-direction:row}.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-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-1\\.5{gap:.375rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-\\[3px\\]{gap:3px}.space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.25rem * var(--tw-space-x-reverse));margin-left:calc(.25rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-3>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.75rem * var(--tw-space-x-reverse));margin-left:calc(.75rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-0>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(0px * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(0px * var(--tw-space-y-reverse))}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.space-y-1\\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.375rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.375rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.self-end{align-self:flex-end}.self-stretch{align-self:stretch}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.whitespace-nowrap{white-space:nowrap}.rounded-2xl{border-radius:1rem}.rounded-3xl{border-radius:1.5rem}.rounded-\\[inherit\\]{border-radius:inherit}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:var(--radius)}.rounded-md{border-radius:calc(var(--radius) - 2px)}.rounded-none{border-radius:0}.rounded-sm{border-radius:calc(var(--radius) - 4px)}.rounded-t-2xl{border-top-left-radius:1rem;border-top-right-radius:1rem}.border{border-width:1px}.border-0{border-width:0px}.border-x{border-left-width:1px;border-right-width:1px}.border-l{border-left-width:1px}.border-l-4{border-left-width:4px}.border-t{border-top-width:1px}.border-amber-400{--tw-border-opacity: 1;border-color:rgb(251 191 36 / var(--tw-border-opacity, 1))}.border-blue-500{--tw-border-opacity: 1;border-color:rgb(59 130 246 / var(--tw-border-opacity, 1))}.border-border{border-color:hsl(var(--border))}.border-green-500{--tw-border-opacity: 1;border-color:rgb(34 197 94 / var(--tw-border-opacity, 1))}.border-input{border-color:hsl(var(--input))}.border-red-500{--tw-border-opacity: 1;border-color:rgb(239 68 68 / var(--tw-border-opacity, 1))}.border-l-transparent{border-left-color:transparent}.border-t-transparent{border-top-color:transparent}.bg-\\[\\#000\\]{--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity, 1))}.bg-\\[\\#FAF9F7\\]{--tw-bg-opacity: 1;background-color:rgb(250 249 247 / var(--tw-bg-opacity, 1))}.bg-amber-50{--tw-bg-opacity: 1;background-color:rgb(255 251 235 / var(--tw-bg-opacity, 1))}.bg-background{background-color:hsl(var(--background))}.bg-black\\/80{background-color:#000c}.bg-blue-50{--tw-bg-opacity: 1;background-color:rgb(239 246 255 / var(--tw-bg-opacity, 1))}.bg-border{background-color:hsl(var(--border))}.bg-card{background-color:hsl(var(--card))}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity, 1))}.bg-gray-300{--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity, 1))}.bg-gray-400{--tw-bg-opacity: 1;background-color:rgb(156 163 175 / var(--tw-bg-opacity, 1))}.bg-green-50{--tw-bg-opacity: 1;background-color:rgb(240 253 244 / var(--tw-bg-opacity, 1))}.bg-muted{background-color:hsl(var(--muted))}.bg-muted-foreground{background-color:hsl(var(--muted-foreground))}.bg-popover{background-color:hsl(var(--popover))}.bg-red-50{--tw-bg-opacity: 1;background-color:rgb(254 242 242 / var(--tw-bg-opacity, 1))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.bg-white\\/20{background-color:#fff3}.bg-white\\/90{background-color:#ffffffe6}.fill-none{fill:none}.fill-yellow-400{fill:#facc15}.object-contain{object-fit:contain}.p-0{padding:0}.p-0\\.5{padding:.125rem}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.p-\\[1px\\]{padding:1px}.px-0{padding-left:0;padding-right:0}.px-1{padding-left:.25rem;padding-right:.25rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-\\[12px\\]{padding-left:12px;padding-right:12px}.px-\\[16px\\]{padding-left:16px;padding-right:16px}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\\.5{padding-top:.375rem;padding-bottom:.375rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-3\\.5{padding-top:.875rem;padding-bottom:.875rem}.py-\\[10px\\]{padding-top:10px;padding-bottom:10px}.py-\\[12px\\]{padding-top:12px;padding-bottom:12px}.pb-10{padding-bottom:2.5rem}.pb-14{padding-bottom:3.5rem}.pb-2{padding-bottom:.5rem}.pb-4{padding-bottom:1rem}.pl-3{padding-left:.75rem}.pl-4{padding-left:1rem}.pr-12{padding-right:3rem}.pr-2{padding-right:.5rem}.pr-4{padding-right:1rem}.pt-0{padding-top:0}.pt-10{padding-top:2.5rem}.pt-2{padding-top:.5rem}.pt-4{padding-top:1rem}.pt-5{padding-top:1.25rem}.text-left{text-align:left}.text-center{text-align:center}.text-2xl{font-size:1.5rem;line-height:2rem}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-medium{font-weight:500}.font-semibold{font-weight:600}.italic{font-style:italic}.leading-5{line-height:1.25rem}.leading-none{line-height:1}.leading-relaxed{line-height:1.625}.tracking-tight{letter-spacing:-.025em}.text-\\[\\#fff\\]{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.text-amber-500{--tw-text-opacity: 1;color:rgb(245 158 11 / var(--tw-text-opacity, 1))}.text-amber-800{--tw-text-opacity: 1;color:rgb(146 64 14 / var(--tw-text-opacity, 1))}.text-blue-500{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity, 1))}.text-blue-800{--tw-text-opacity: 1;color:rgb(30 64 175 / var(--tw-text-opacity, 1))}.text-card-foreground{color:hsl(var(--card-foreground))}.text-destructive{color:hsl(var(--destructive))}.text-foreground{color:hsl(var(--foreground))}.text-gray-300{--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity, 1))}.text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.text-gray-600{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity, 1))}.text-gray-800{--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity, 1))}.text-green-500{--tw-text-opacity: 1;color:rgb(34 197 94 / var(--tw-text-opacity, 1))}.text-green-800{--tw-text-opacity: 1;color:rgb(22 101 52 / var(--tw-text-opacity, 1))}.text-muted{color:hsl(var(--muted))}.text-muted-foreground{color:hsl(var(--muted-foreground))}.text-popover-foreground{color:hsl(var(--popover-foreground))}.text-primary{color:hsl(var(--primary))}.text-primary-foreground{color:hsl(var(--primary-foreground))}.text-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity, 1))}.text-red-800{--tw-text-opacity: 1;color:rgb(153 27 27 / var(--tw-text-opacity, 1))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.text-yellow-400{--tw-text-opacity: 1;color:rgb(250 204 21 / var(--tw-text-opacity, 1))}.underline{text-decoration-line:underline}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-70{opacity:.7}.shadow-\\[0_-8px_24px_rgba\\(0\\,0\\,0\\,0\\.08\\)\\]{--tw-shadow: 0 -8px 24px rgba(0,0,0,.08);--tw-shadow-colored: 0 -8px 24px 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-\\[0_0_4px_0_rgba\\(0\\,0\\,0\\,0\\.20\\)\\]{--tw-shadow: 0 0 4px 0 rgba(0,0,0,.2);--tw-shadow-colored: 0 0 4px 0 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-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px 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 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px 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-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.ring-offset-background{--tw-ring-offset-color: hsl(var(--background))}.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,backdrop-filter;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-all{transition-property:all;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}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.duration-500{transition-duration:.5s}.ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.scrollbar-thin::-webkit-scrollbar-track{background-color:var(--scrollbar-track);border-radius:var(--scrollbar-track-radius)}.scrollbar-thin::-webkit-scrollbar-track:hover{background-color:var(--scrollbar-track-hover, var(--scrollbar-track))}.scrollbar-thin::-webkit-scrollbar-track:active{background-color:var(--scrollbar-track-active, var(--scrollbar-track-hover, var(--scrollbar-track)))}.scrollbar-thin::-webkit-scrollbar-thumb{background-color:var(--scrollbar-thumb);border-radius:var(--scrollbar-thumb-radius)}.scrollbar-thin::-webkit-scrollbar-thumb:hover{background-color:var(--scrollbar-thumb-hover, var(--scrollbar-thumb))}.scrollbar-thin::-webkit-scrollbar-thumb:active{background-color:var(--scrollbar-thumb-active, var(--scrollbar-thumb-hover, var(--scrollbar-thumb)))}.scrollbar-thin::-webkit-scrollbar-corner{background-color:var(--scrollbar-corner);border-radius:var(--scrollbar-corner-radius)}.scrollbar-thin::-webkit-scrollbar-corner:hover{background-color:var(--scrollbar-corner-hover, var(--scrollbar-corner))}.scrollbar-thin::-webkit-scrollbar-corner:active{background-color:var(--scrollbar-corner-active, var(--scrollbar-corner-hover, var(--scrollbar-corner)))}.scrollbar-thin{scrollbar-width:thin;scrollbar-color:var(--scrollbar-thumb, initial) var(--scrollbar-track, initial)}.scrollbar-thin::-webkit-scrollbar{display:block;width:8px;height:8px}.scrollbar-track-transparent{--scrollbar-track: transparent !important}.scrollbar-thumb-border{--scrollbar-thumb: hsl(var(--border)) !important}@keyframes enter{0%{opacity:var(--tw-enter-opacity, 1);transform:translate3d(var(--tw-enter-translate-x, 0),var(--tw-enter-translate-y, 0),0) scale3d(var(--tw-enter-scale, 1),var(--tw-enter-scale, 1),var(--tw-enter-scale, 1)) rotate(var(--tw-enter-rotate, 0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity, 1);transform:translate3d(var(--tw-exit-translate-x, 0),var(--tw-exit-translate-y, 0),0) scale3d(var(--tw-exit-scale, 1),var(--tw-exit-scale, 1),var(--tw-exit-scale, 1)) rotate(var(--tw-exit-rotate, 0))}}.animate-in{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}.fade-in{--tw-enter-opacity: 0}.slide-in-from-bottom-2{--tw-enter-translate-y: .5rem}.slide-in-from-bottom-full{--tw-enter-translate-y: 100%}.duration-200{animation-duration:.2s}.duration-300{animation-duration:.3s}.duration-500{animation-duration:.5s}.ease-in{animation-timing-function:cubic-bezier(.4,0,1,1)}.ease-out{animation-timing-function:cubic-bezier(0,0,.2,1)}.no-scrollbar::-webkit-scrollbar{display:none}.no-scrollbar{-ms-overflow-style:none;scrollbar-width:none}.\\[box-shadow\\:0_3px_4px_-2px_rgba\\(0\\,0\\,0\\,0\\.04\\)\\]{box-shadow:0 3px 4px -2px #0000000a}body{background-color:transparent}.eloquent-chat{font-family:system-ui,Segoe UI,Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol}.wrap-anywhere{overflow-wrap:anywhere}.file\\:border-0::file-selector-button{border-width:0px}.file\\:bg-transparent::file-selector-button{background-color:transparent}.file\\:text-sm::file-selector-button{font-size:.875rem;line-height:1.25rem}.file\\:font-medium::file-selector-button{font-weight:500}.file\\:text-foreground::file-selector-button{color:hsl(var(--foreground))}.placeholder\\:text-muted-foreground::placeholder{color:hsl(var(--muted-foreground))}.before\\:absolute:before{content:var(--tw-content);position:absolute}.before\\:-right-2:before{content:var(--tw-content);right:-.5rem}.before\\:bottom-2:before{content:var(--tw-content);bottom:.5rem}.before\\:h-0:before{content:var(--tw-content);height:0px}.before\\:w-0:before{content:var(--tw-content);width:0px}.before\\:content-\\[\\'\\'\\]:before{--tw-content: "";content:var(--tw-content)}.last\\:mb-0:last-child{margin-bottom:0}.data-\\[state\\=open\\]\\:bg-accent[data-state=open]{background-color:hsl(var(--accent))}.data-\\[state\\=open\\]\\:text-muted-foreground[data-state=open]{color:hsl(var(--muted-foreground))}.data-\\[state\\=open\\]\\:animate-in[data-state=open]{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}.data-\\[state\\=closed\\]\\:animate-out[data-state=closed]{animation-name:exit;animation-duration:.15s;--tw-exit-opacity: initial;--tw-exit-scale: initial;--tw-exit-rotate: initial;--tw-exit-translate-x: initial;--tw-exit-translate-y: initial}.data-\\[state\\=closed\\]\\:fade-out-0[data-state=closed]{--tw-exit-opacity: 0}.data-\\[state\\=open\\]\\:fade-in-0[data-state=open]{--tw-enter-opacity: 0}.data-\\[state\\=closed\\]\\:zoom-out-95[data-state=closed]{--tw-exit-scale: .95}.data-\\[state\\=open\\]\\:zoom-in-95[data-state=open]{--tw-enter-scale: .95}.data-\\[side\\=bottom\\]\\:slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y: -.5rem}.data-\\[side\\=left\\]\\:slide-in-from-right-2[data-side=left]{--tw-enter-translate-x: .5rem}.data-\\[side\\=right\\]\\:slide-in-from-left-2[data-side=right]{--tw-enter-translate-x: -.5rem}.data-\\[side\\=top\\]\\:slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y: .5rem}.data-\\[state\\=closed\\]\\:slide-out-to-left-1\\/2[data-state=closed]{--tw-exit-translate-x: -50%}.data-\\[state\\=closed\\]\\:slide-out-to-top-\\[48\\%\\][data-state=closed]{--tw-exit-translate-y: -48%}.data-\\[state\\=open\\]\\:slide-in-from-left-1\\/2[data-state=open]{--tw-enter-translate-x: -50%}.data-\\[state\\=open\\]\\:slide-in-from-top-\\[48\\%\\][data-state=open]{--tw-enter-translate-y: -48%}.hover\\:bg-gray-100:hover{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity, 1))}.hover\\:bg-muted:hover{background-color:hsl(var(--muted))}.hover\\:text-gray-600:hover{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity, 1))}.hover\\:text-primary:hover{color:hsl(var(--primary))}.hover\\:opacity-100:hover{opacity:1}.hover\\:opacity-80:hover{opacity:.8}.hover\\:opacity-90:hover{opacity:.9}.hover\\:shadow-xl:hover{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.hover\\:scrollbar-thumb-border{--scrollbar-thumb-hover: hsl(var(--border)) !important}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:ring-2:focus{--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)}.focus\\:ring-ring:focus{--tw-ring-color: hsl(var(--ring))}.focus\\:ring-offset-2:focus{--tw-ring-offset-width: 2px}.focus-visible\\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\\:ring-1:focus-visible{--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(1px + 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)}.focus-visible\\:ring-2:focus-visible{--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)}.focus-visible\\:ring-muted:focus-visible{--tw-ring-color: hsl(var(--muted))}.focus-visible\\:ring-primary:focus-visible{--tw-ring-color: hsl(var(--primary))}.focus-visible\\:ring-ring:focus-visible{--tw-ring-color: hsl(var(--ring))}.focus-visible\\:ring-offset-2:focus-visible{--tw-ring-offset-width: 2px}.disabled\\:pointer-events-none:disabled{pointer-events:none}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:opacity-50:disabled{opacity:.5}.dark\\:border-border:is(.dark *){border-color:hsl(var(--border))}.dark\\:bg-background:is(.dark *){background-color:hsl(var(--background))}.dark\\:bg-card:is(.dark *){background-color:hsl(var(--card))}@media(min-width:640px){.sm\\:flex-row{flex-direction:row}.sm\\:justify-end{justify-content:flex-end}.sm\\:space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.sm\\:rounded-lg{border-radius:var(--radius)}.sm\\:text-left{text-align:left}.sm\\:text-sm{font-size:.875rem;line-height:1.25rem}}@media(min-width:768px){.md\\:text-sm{font-size:.875rem;line-height:1.25rem}}.\\[\\&\\>\\[data-radix-scroll-area-viewport\\]\\]\\:scroll-smooth>[data-radix-scroll-area-viewport]{scroll-behavior:smooth}`, Hg = ".eloquentai-chat-launcher{transition:transform .2s ease-in-out}.eloquentai-chat-launcher:hover{transform:scale(1.1)}";
45
45
  function sd(e) {
46
46
  var t, n, r = "";
47
47
  if (typeof e == "string" || typeof e == "number") r += e;
@@ -201,15 +201,15 @@ const Gg = (e, t) => {
201
201
  const o = [];
202
202
  let a = 0, s = 0, l = 0, u;
203
203
  const h = i.length;
204
- for (let C = 0; C < h; C++) {
205
- const N = i[C];
204
+ for (let S = 0; S < h; S++) {
205
+ const N = i[S];
206
206
  if (a === 0 && s === 0) {
207
207
  if (N === Mc) {
208
- o.push(i.slice(l, C)), l = C + 1;
208
+ o.push(i.slice(l, S)), l = S + 1;
209
209
  continue;
210
210
  }
211
211
  if (N === "/") {
212
- u = C;
212
+ u = S;
213
213
  continue;
214
214
  }
215
215
  }
@@ -271,13 +271,13 @@ const Gg = (e, t) => {
271
271
  modifiers: v,
272
272
  hasImportantModifier: m,
273
273
  baseClassName: y,
274
- maybePostfixModifierPosition: C
274
+ maybePostfixModifierPosition: S
275
275
  } = n(h);
276
276
  if (p) {
277
277
  l = h + (l.length > 0 ? " " + l : l);
278
278
  continue;
279
279
  }
280
- let N = !!C, R = r(N ? y.substring(0, C) : y);
280
+ let N = !!S, R = r(N ? y.substring(0, S) : y);
281
281
  if (!R) {
282
282
  if (!N) {
283
283
  l = h + (l.length > 0 ? " " + l : l);
@@ -341,7 +341,7 @@ const Gg = (e, t) => {
341
341
  const r = hd.exec(e);
342
342
  return r ? r[1] ? t(r[1]) : n : !1;
343
343
  }, md = (e) => e === "position" || e === "percentage", gd = (e) => e === "image" || e === "url", bd = (e) => e === "length" || e === "size" || e === "bg-size", vd = (e) => e === "length", Lb = (e) => e === "number", yd = (e) => e === "family-name", wd = (e) => e === "number" || e === "weight", xd = (e) => e === "shadow", Db = () => {
344
- const e = Nt("color"), t = Nt("font"), n = Nt("text"), r = Nt("font-weight"), i = Nt("tracking"), o = Nt("leading"), a = Nt("breakpoint"), s = Nt("container"), l = Nt("spacing"), u = Nt("radius"), h = Nt("shadow"), p = Nt("inset-shadow"), v = Nt("text-shadow"), m = Nt("drop-shadow"), y = Nt("blur"), C = Nt("perspective"), N = Nt("aspect"), R = Nt("ease"), B = Nt("animate"), F = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], G = () => [
344
+ const e = Nt("color"), t = Nt("font"), n = Nt("text"), r = Nt("font-weight"), i = Nt("tracking"), o = Nt("leading"), a = Nt("breakpoint"), s = Nt("container"), l = Nt("spacing"), u = Nt("radius"), h = Nt("shadow"), p = Nt("inset-shadow"), v = Nt("text-shadow"), m = Nt("drop-shadow"), y = Nt("blur"), S = Nt("perspective"), N = Nt("aspect"), R = Nt("ease"), B = Nt("animate"), F = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], G = () => [
345
345
  "center",
346
346
  "top",
347
347
  "bottom",
@@ -375,7 +375,7 @@ const Gg = (e, t) => {
375
375
  u,
376
376
  Se,
377
377
  xe
378
- ], we = () => ["", qe, ui, hr], $e = () => ["solid", "dashed", "dotted", "double"], Ke = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], ve = () => [qe, La, jc, $c], ze = () => [
378
+ ], we = () => ["", qe, ui, hr], $e = () => ["solid", "dashed", "dotted", "double"], Ke = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], ve = () => [qe, La, jc, $c], Fe = () => [
379
379
  // Deprecated since Tailwind CSS v4.0.0
380
380
  "",
381
381
  "none",
@@ -2193,7 +2193,7 @@ const Gg = (e, t) => {
2193
2193
  * @see https://tailwindcss.com/docs/blur
2194
2194
  */
2195
2195
  blur: [{
2196
- blur: ze()
2196
+ blur: Fe()
2197
2197
  }],
2198
2198
  /**
2199
2199
  * Brightness
@@ -2283,7 +2283,7 @@ const Gg = (e, t) => {
2283
2283
  * @see https://tailwindcss.com/docs/backdrop-blur
2284
2284
  */
2285
2285
  "backdrop-blur": [{
2286
- "backdrop-blur": ze()
2286
+ "backdrop-blur": Fe()
2287
2287
  }],
2288
2288
  /**
2289
2289
  * Backdrop Brightness
@@ -2446,7 +2446,7 @@ const Gg = (e, t) => {
2446
2446
  * @see https://tailwindcss.com/docs/perspective
2447
2447
  */
2448
2448
  perspective: [{
2449
- perspective: [C, Se, xe]
2449
+ perspective: [S, Se, xe]
2450
2450
  }],
2451
2451
  /**
2452
2452
  * Perspective Origin
@@ -2981,8 +2981,8 @@ async function Uc(e) {
2981
2981
  }
2982
2982
  }
2983
2983
  function Xo(e) {
2984
- const { className: t, bgColor: n, fgColor: r, src: i, ...o } = e, [a, s] = Fe(!1);
2985
- Ye(() => {
2984
+ const { className: t, bgColor: n, fgColor: r, src: i, ...o } = e, [a, s] = ze(!1);
2985
+ He(() => {
2986
2986
  s(!1);
2987
2987
  }, [i]);
2988
2988
  const l = !i || a;
@@ -3564,8 +3564,8 @@ function Av(e) {
3564
3564
  if (t) {
3565
3565
  let u;
3566
3566
  const h = t.ownerDocument.defaultView ?? window, p = (m) => {
3567
- const C = so(r.current).includes(CSS.escape(m.animationName));
3568
- if (m.target === t && C && (l("ANIMATION_END"), !i.current)) {
3567
+ const S = so(r.current).includes(CSS.escape(m.animationName));
3568
+ if (m.target === t && S && (l("ANIMATION_END"), !i.current)) {
3569
3569
  const N = t.style.animationFillMode;
3570
3570
  t.style.animationFillMode = "forwards", u = h.setTimeout(() => {
3571
3571
  t.style.animationFillMode === "forwards" && (t.style.animationFillMode = N);
@@ -3599,8 +3599,8 @@ function Rv(e, t = []) {
3599
3599
  const s = P.createContext(a), l = n.length;
3600
3600
  n = [...n, a];
3601
3601
  const u = (p) => {
3602
- const { scope: v, children: m, ...y } = p, C = v?.[e]?.[l] || s, N = P.useMemo(() => y, Object.values(y));
3603
- return /* @__PURE__ */ D(C.Provider, { value: N, children: m });
3602
+ const { scope: v, children: m, ...y } = p, S = v?.[e]?.[l] || s, N = P.useMemo(() => y, Object.values(y));
3603
+ return /* @__PURE__ */ D(S.Provider, { value: N, children: m });
3604
3604
  };
3605
3605
  u.displayName = o + "Provider";
3606
3606
  function h(p, v) {
@@ -3672,7 +3672,7 @@ var Qs = "ScrollArea", [Cd] = Rv(Qs), [Dv, vn] = Cd(Qs), el = P.forwardRef(
3672
3672
  dir: i,
3673
3673
  scrollHideDelay: o = 600,
3674
3674
  ...a
3675
- } = e, [s, l] = P.useState(null), [u, h] = P.useState(null), [p, v] = P.useState(null), [m, y] = P.useState(null), [C, N] = P.useState(null), [R, B] = P.useState(0), [F, G] = P.useState(0), [X, $] = P.useState(!1), [ae, ne] = P.useState(!1), q = cn(t, (A) => l(A)), O = Ov(i);
3675
+ } = e, [s, l] = P.useState(null), [u, h] = P.useState(null), [p, v] = P.useState(null), [m, y] = P.useState(null), [S, N] = P.useState(null), [R, B] = P.useState(0), [F, G] = P.useState(0), [X, $] = P.useState(!1), [ae, ne] = P.useState(!1), q = cn(t, (A) => l(A)), O = Ov(i);
3676
3676
  return /* @__PURE__ */ D(
3677
3677
  Dv,
3678
3678
  {
@@ -3689,7 +3689,7 @@ var Qs = "ScrollArea", [Cd] = Rv(Qs), [Dv, vn] = Cd(Qs), el = P.forwardRef(
3689
3689
  onScrollbarXChange: y,
3690
3690
  scrollbarXEnabled: X,
3691
3691
  onScrollbarXEnabledChange: $,
3692
- scrollbarY: C,
3692
+ scrollbarY: S,
3693
3693
  onScrollbarYChange: N,
3694
3694
  scrollbarYEnabled: ae,
3695
3695
  onScrollbarYEnabledChange: ne,
@@ -3994,7 +3994,7 @@ var Mv = P.forwardRef((e, t) => {
3994
3994
  onWheelScroll: h,
3995
3995
  onResize: p,
3996
3996
  ...v
3997
- } = e, m = vn(Nn, n), [y, C] = P.useState(null), N = cn(t, (q) => C(q)), R = P.useRef(null), B = P.useRef(""), F = m.viewport, G = r.content - r.viewport, X = an(h), $ = an(l), ae = Jo(p, 10);
3997
+ } = e, m = vn(Nn, n), [y, S] = P.useState(null), N = cn(t, (q) => S(q)), R = P.useRef(null), B = P.useRef(""), F = m.viewport, G = r.content - r.viewport, X = an(h), $ = an(l), ae = Jo(p, 10);
3998
3998
  function ne(q) {
3999
3999
  if (R.current) {
4000
4000
  const O = q.clientX - R.current.left, A = q.clientY - R.current.top;
@@ -4071,8 +4071,8 @@ var Mv = P.forwardRef((e, t) => {
4071
4071
  ...r
4072
4072
  },
4073
4073
  onPointerDownCapture: Gt(e.onPointerDownCapture, (p) => {
4074
- const m = p.target.getBoundingClientRect(), y = p.clientX - m.left, C = p.clientY - m.top;
4075
- a.onThumbPointerDown({ x: y, y: C });
4074
+ const m = p.target.getBoundingClientRect(), y = p.clientX - m.left, S = p.clientY - m.top;
4075
+ a.onThumbPointerDown({ x: y, y: S });
4076
4076
  }),
4077
4077
  onPointerUp: Gt(e.onPointerUp, a.onThumbPointerUp)
4078
4078
  }
@@ -4227,8 +4227,8 @@ function Gv(e, t = []) {
4227
4227
  const s = P.createContext(a), l = n.length;
4228
4228
  n = [...n, a];
4229
4229
  const u = (p) => {
4230
- const { scope: v, children: m, ...y } = p, C = v?.[e]?.[l] || s, N = P.useMemo(() => y, Object.values(y));
4231
- return /* @__PURE__ */ D(C.Provider, { value: N, children: m });
4230
+ const { scope: v, children: m, ...y } = p, S = v?.[e]?.[l] || s, N = P.useMemo(() => y, Object.values(y));
4231
+ return /* @__PURE__ */ D(S.Provider, { value: N, children: m });
4232
4232
  };
4233
4233
  u.displayName = o + "Provider";
4234
4234
  function h(p, v) {
@@ -4375,7 +4375,7 @@ var oy = "DismissableLayer", vs = "dismissableLayer.update", ay = "dismissableLa
4375
4375
  onInteractOutside: a,
4376
4376
  onDismiss: s,
4377
4377
  ...l
4378
- } = e, u = P.useContext(jd), [h, p] = P.useState(null), v = h?.ownerDocument ?? globalThis?.document, [, m] = P.useState({}), y = cn(t, (ae) => p(ae)), C = Array.from(u.layers), [N] = [...u.layersWithOutsidePointerEventsDisabled].slice(-1), R = C.indexOf(N), B = h ? C.indexOf(h) : -1, F = u.layersWithOutsidePointerEventsDisabled.size > 0, G = B >= R, X = uy((ae) => {
4378
+ } = e, u = P.useContext(jd), [h, p] = P.useState(null), v = h?.ownerDocument ?? globalThis?.document, [, m] = P.useState({}), y = cn(t, (ae) => p(ae)), S = Array.from(u.layers), [N] = [...u.layersWithOutsidePointerEventsDisabled].slice(-1), R = S.indexOf(N), B = h ? S.indexOf(h) : -1, F = u.layersWithOutsidePointerEventsDisabled.size > 0, G = B >= R, X = uy((ae) => {
4379
4379
  const ne = ae.target, q = [...u.branches].some((O) => O.contains(ne));
4380
4380
  !G || q || (i?.(ae), a?.(ae), ae.defaultPrevented || s?.());
4381
4381
  }, v), $ = fy((ae) => {
@@ -4508,7 +4508,7 @@ var dy = [
4508
4508
  onMountAutoFocus: i,
4509
4509
  onUnmountAutoFocus: o,
4510
4510
  ...a
4511
- } = e, [s, l] = P.useState(null), u = an(i), h = an(o), p = P.useRef(null), v = cn(t, (C) => l(C)), m = P.useRef({
4511
+ } = e, [s, l] = P.useState(null), u = an(i), h = an(o), p = P.useRef(null), v = cn(t, (S) => l(S)), m = P.useRef({
4512
4512
  paused: !1,
4513
4513
  pause() {
4514
4514
  this.paused = !0;
@@ -4519,7 +4519,7 @@ var dy = [
4519
4519
  }).current;
4520
4520
  P.useEffect(() => {
4521
4521
  if (r) {
4522
- let C = function(F) {
4522
+ let S = function(F) {
4523
4523
  if (m.paused || !s) return;
4524
4524
  const G = F.target;
4525
4525
  s.contains(G) ? p.current = G : Jn(p.current, { select: !0 });
@@ -4532,35 +4532,35 @@ var dy = [
4532
4532
  for (const X of F)
4533
4533
  X.removedNodes.length > 0 && Jn(s);
4534
4534
  };
4535
- document.addEventListener("focusin", C), document.addEventListener("focusout", N);
4535
+ document.addEventListener("focusin", S), document.addEventListener("focusout", N);
4536
4536
  const B = new MutationObserver(R);
4537
4537
  return s && B.observe(s, { childList: !0, subtree: !0 }), () => {
4538
- document.removeEventListener("focusin", C), document.removeEventListener("focusout", N), B.disconnect();
4538
+ document.removeEventListener("focusin", S), document.removeEventListener("focusout", N), B.disconnect();
4539
4539
  };
4540
4540
  }
4541
4541
  }, [r, s, m.paused]), P.useEffect(() => {
4542
4542
  if (s) {
4543
4543
  Yc.add(m);
4544
- const C = document.activeElement;
4545
- if (!s.contains(C)) {
4544
+ const S = document.activeElement;
4545
+ if (!s.contains(S)) {
4546
4546
  const R = new CustomEvent(Ma, Zc);
4547
- s.addEventListener(Ma, u), s.dispatchEvent(R), R.defaultPrevented || (my(wy(Wd(s)), { select: !0 }), document.activeElement === C && Jn(s));
4547
+ s.addEventListener(Ma, u), s.dispatchEvent(R), R.defaultPrevented || (my(wy(Wd(s)), { select: !0 }), document.activeElement === S && Jn(s));
4548
4548
  }
4549
4549
  return () => {
4550
4550
  s.removeEventListener(Ma, u), setTimeout(() => {
4551
4551
  const R = new CustomEvent(za, Zc);
4552
- s.addEventListener(za, h), s.dispatchEvent(R), R.defaultPrevented || Jn(C ?? document.body, { select: !0 }), s.removeEventListener(za, h), Yc.remove(m);
4552
+ s.addEventListener(za, h), s.dispatchEvent(R), R.defaultPrevented || Jn(S ?? document.body, { select: !0 }), s.removeEventListener(za, h), Yc.remove(m);
4553
4553
  }, 0);
4554
4554
  };
4555
4555
  }
4556
4556
  }, [s, u, h, m]);
4557
4557
  const y = P.useCallback(
4558
- (C) => {
4558
+ (S) => {
4559
4559
  if (!n && !r || m.paused) return;
4560
- const N = C.key === "Tab" && !C.altKey && !C.ctrlKey && !C.metaKey, R = document.activeElement;
4560
+ const N = S.key === "Tab" && !S.altKey && !S.ctrlKey && !S.metaKey, R = document.activeElement;
4561
4561
  if (N && R) {
4562
- const B = C.currentTarget, [F, G] = gy(B);
4563
- F && G ? !C.shiftKey && R === G ? (C.preventDefault(), n && Jn(F, { select: !0 })) : C.shiftKey && R === F && (C.preventDefault(), n && Jn(G, { select: !0 })) : R === B && C.preventDefault();
4562
+ const B = S.currentTarget, [F, G] = gy(B);
4563
+ F && G ? !S.shiftKey && R === G ? (S.preventDefault(), n && Jn(F, { select: !0 })) : S.shiftKey && R === F && (S.preventDefault(), n && Jn(G, { select: !0 })) : R === B && S.preventDefault();
4564
4564
  }
4565
4565
  },
4566
4566
  [n, r, m.paused]
@@ -4864,17 +4864,17 @@ function Ey(e, t, n) {
4864
4864
  };
4865
4865
  }
4866
4866
  function s(m, y) {
4867
- r[m] && (i[m] = function(C) {
4867
+ r[m] && (i[m] = function(S) {
4868
4868
  return new Promise(function(N, R) {
4869
- o.push([m, C, N, R]) > 1 || l(m, C);
4869
+ o.push([m, S, N, R]) > 1 || l(m, S);
4870
4870
  });
4871
4871
  }, y && (i[m] = y(i[m])));
4872
4872
  }
4873
4873
  function l(m, y) {
4874
4874
  try {
4875
4875
  u(r[m](y));
4876
- } catch (C) {
4877
- v(o[0][3], C);
4876
+ } catch (S) {
4877
+ v(o[0][3], S);
4878
4878
  }
4879
4879
  }
4880
4880
  function u(m) {
@@ -4914,7 +4914,7 @@ function $a(e, t) {
4914
4914
  return typeof e == "function" ? e(t) : e && (e.current = t), e;
4915
4915
  }
4916
4916
  function Ty(e, t) {
4917
- var n = Fe(function() {
4917
+ var n = ze(function() {
4918
4918
  return {
4919
4919
  // value
4920
4920
  value: e,
@@ -5036,11 +5036,11 @@ var Yd = Dy(), ja = function() {
5036
5036
  onScrollCapture: ja,
5037
5037
  onWheelCapture: ja,
5038
5038
  onTouchMoveCapture: ja
5039
- }), i = r[0], o = r[1], a = e.forwardProps, s = e.children, l = e.className, u = e.removeScrollBar, h = e.enabled, p = e.shards, v = e.sideCar, m = e.noRelative, y = e.noIsolation, C = e.inert, N = e.allowPinchZoom, R = e.as, B = R === void 0 ? "div" : R, F = e.gapMode, G = Hd(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), X = v, $ = Oy([n, t]), ae = On(On({}, G), i);
5039
+ }), i = r[0], o = r[1], a = e.forwardProps, s = e.children, l = e.className, u = e.removeScrollBar, h = e.enabled, p = e.shards, v = e.sideCar, m = e.noRelative, y = e.noIsolation, S = e.inert, N = e.allowPinchZoom, R = e.as, B = R === void 0 ? "div" : R, F = e.gapMode, G = Hd(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), X = v, $ = Oy([n, t]), ae = On(On({}, G), i);
5040
5040
  return P.createElement(
5041
5041
  P.Fragment,
5042
5042
  null,
5043
- h && P.createElement(X, { sideCar: Yd, removeScrollBar: u, shards: p, noRelative: m, noIsolation: y, inert: C, setCallbacks: o, allowPinchZoom: !!N, lockRef: n, gapMode: F }),
5043
+ h && P.createElement(X, { sideCar: Yd, removeScrollBar: u, shards: p, noRelative: m, noIsolation: y, inert: S, setCallbacks: o, allowPinchZoom: !!N, lockRef: n, gapMode: F }),
5044
5044
  a ? P.cloneElement(P.Children.only(s), On(On({}, ae), { ref: $ })) : P.createElement(B, On({}, ae, { className: l, ref: $ }), s)
5045
5045
  );
5046
5046
  });
@@ -5243,7 +5243,7 @@ var Rr = xs ? { passive: !1 } : !1, Xy = function(e) {
5243
5243
  do {
5244
5244
  if (!s)
5245
5245
  break;
5246
- var m = Qd(e, s), y = m[0], C = m[1], N = m[2], R = C - N - o * y;
5246
+ var m = Qd(e, s), y = m[0], S = m[1], N = m[2], R = S - N - o * y;
5247
5247
  (y || R) && Jd(e, s) && (p += R, v += y);
5248
5248
  var B = s.parentNode;
5249
5249
  s = B && B.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? B.host : B;
@@ -5274,21 +5274,21 @@ function aw(e) {
5274
5274
  }, [e]), P.useEffect(function() {
5275
5275
  if (e.inert) {
5276
5276
  document.body.classList.add("block-interactivity-".concat(i));
5277
- var C = Fo([e.lockRef.current], (e.shards || []).map(nu), !0).filter(Boolean);
5278
- return C.forEach(function(N) {
5277
+ var S = Fo([e.lockRef.current], (e.shards || []).map(nu), !0).filter(Boolean);
5278
+ return S.forEach(function(N) {
5279
5279
  return N.classList.add("allow-interactivity-".concat(i));
5280
5280
  }), function() {
5281
- document.body.classList.remove("block-interactivity-".concat(i)), C.forEach(function(N) {
5281
+ document.body.classList.remove("block-interactivity-".concat(i)), S.forEach(function(N) {
5282
5282
  return N.classList.remove("allow-interactivity-".concat(i));
5283
5283
  });
5284
5284
  };
5285
5285
  }
5286
5286
  }, [e.inert, e.lockRef.current, e.shards]);
5287
- var s = P.useCallback(function(C, N) {
5288
- if ("touches" in C && C.touches.length === 2 || C.type === "wheel" && C.ctrlKey)
5287
+ var s = P.useCallback(function(S, N) {
5288
+ if ("touches" in S && S.touches.length === 2 || S.type === "wheel" && S.ctrlKey)
5289
5289
  return !a.current.allowPinchZoom;
5290
- var R = co(C), B = n.current, F = "deltaX" in C ? C.deltaX : B[0] - R[0], G = "deltaY" in C ? C.deltaY : B[1] - R[1], X, $ = C.target, ae = Math.abs(F) > Math.abs(G) ? "h" : "v";
5291
- if ("touches" in C && ae === "h" && $.type === "range")
5290
+ var R = co(S), B = n.current, F = "deltaX" in S ? S.deltaX : B[0] - R[0], G = "deltaY" in S ? S.deltaY : B[1] - R[1], X, $ = S.target, ae = Math.abs(F) > Math.abs(G) ? "h" : "v";
5291
+ if ("touches" in S && ae === "h" && $.type === "range")
5292
5292
  return !1;
5293
5293
  var ne = window.getSelection(), q = ne && ne.anchorNode, O = q ? q === $ || q.contains($) : !1;
5294
5294
  if (O)
@@ -5298,12 +5298,12 @@ function aw(e) {
5298
5298
  return !0;
5299
5299
  if (A ? X = ae : (X = ae === "v" ? "h" : "v", A = eu(ae, $)), !A)
5300
5300
  return !1;
5301
- if (!r.current && "changedTouches" in C && (F || G) && (r.current = X), !X)
5301
+ if (!r.current && "changedTouches" in S && (F || G) && (r.current = X), !X)
5302
5302
  return !0;
5303
5303
  var M = r.current || X;
5304
- return nw(M, N, C, M === "h" ? F : G);
5305
- }, []), l = P.useCallback(function(C) {
5306
- var N = C;
5304
+ return nw(M, N, S, M === "h" ? F : G);
5305
+ }, []), l = P.useCallback(function(S) {
5306
+ var N = S;
5307
5307
  if (!(!Tr.length || Tr[Tr.length - 1] !== o)) {
5308
5308
  var R = "deltaY" in N ? tu(N) : co(N), B = t.current.filter(function(X) {
5309
5309
  return X.name === N.type && (X.target === N.target || N.target === X.shadowParent) && rw(X.delta, R);
@@ -5319,19 +5319,19 @@ function aw(e) {
5319
5319
  G && N.cancelable && N.preventDefault();
5320
5320
  }
5321
5321
  }
5322
- }, []), u = P.useCallback(function(C, N, R, B) {
5323
- var F = { name: C, delta: N, target: R, should: B, shadowParent: sw(R) };
5322
+ }, []), u = P.useCallback(function(S, N, R, B) {
5323
+ var F = { name: S, delta: N, target: R, should: B, shadowParent: sw(R) };
5324
5324
  t.current.push(F), setTimeout(function() {
5325
5325
  t.current = t.current.filter(function(G) {
5326
5326
  return G !== F;
5327
5327
  });
5328
5328
  }, 1);
5329
- }, []), h = P.useCallback(function(C) {
5330
- n.current = co(C), r.current = void 0;
5331
- }, []), p = P.useCallback(function(C) {
5332
- u(C.type, tu(C), C.target, s(C, e.lockRef.current));
5333
- }, []), v = P.useCallback(function(C) {
5334
- u(C.type, co(C), C.target, s(C, e.lockRef.current));
5329
+ }, []), h = P.useCallback(function(S) {
5330
+ n.current = co(S), r.current = void 0;
5331
+ }, []), p = P.useCallback(function(S) {
5332
+ u(S.type, tu(S), S.target, s(S, e.lockRef.current));
5333
+ }, []), v = P.useCallback(function(S) {
5334
+ u(S.type, co(S), S.target, s(S, e.lockRef.current));
5335
5335
  }, []);
5336
5336
  P.useEffect(function() {
5337
5337
  return Tr.push(o), e.setCallbacks({
@@ -5339,8 +5339,8 @@ function aw(e) {
5339
5339
  onWheelCapture: p,
5340
5340
  onTouchMoveCapture: v
5341
5341
  }), document.addEventListener("wheel", l, Rr), document.addEventListener("touchmove", l, Rr), document.addEventListener("touchstart", h, Rr), function() {
5342
- Tr = Tr.filter(function(C) {
5343
- return C !== o;
5342
+ Tr = Tr.filter(function(S) {
5343
+ return S !== o;
5344
5344
  }), document.removeEventListener("wheel", l, Rr), document.removeEventListener("touchmove", l, Rr), document.removeEventListener("touchstart", h, Rr);
5345
5345
  };
5346
5346
  }, []);
@@ -5391,8 +5391,8 @@ var cw = function(e) {
5391
5391
  h(v);
5392
5392
  else
5393
5393
  try {
5394
- var m = v.getAttribute(r), y = m !== null && m !== "false", C = (Pr.get(v) || 0) + 1, N = (o.get(v) || 0) + 1;
5395
- Pr.set(v, C), o.set(v, N), a.push(v), C === 1 && y && uo.set(v, !0), N === 1 && v.setAttribute(n, "true"), y || v.setAttribute(r, "true");
5394
+ var m = v.getAttribute(r), y = m !== null && m !== "false", S = (Pr.get(v) || 0) + 1, N = (o.get(v) || 0) + 1;
5395
+ Pr.set(v, S), o.set(v, N), a.push(v), S === 1 && y && uo.set(v, !0), N === 1 && v.setAttribute(n, "true"), y || v.setAttribute(r, "true");
5396
5396
  } catch (R) {
5397
5397
  console.error("aria-hidden: cannot operate on ", v, R);
5398
5398
  }
@@ -5612,7 +5612,7 @@ ph.displayName = hh;
5612
5612
  function ll(e) {
5613
5613
  return e ? "open" : "closed";
5614
5614
  }
5615
- var mh = "DialogTitleWarning", [MN, gh] = Zv(mh, {
5615
+ var mh = "DialogTitleWarning", [FN, gh] = Zv(mh, {
5616
5616
  contentName: vr,
5617
5617
  titleName: sl,
5618
5618
  docsSlug: "dialog"
@@ -5726,8 +5726,8 @@ function Tw() {
5726
5726
  var u = (() => {
5727
5727
  var p = typeof document < "u" ? document.currentScript?.src : void 0;
5728
5728
  return (function(v = {}) {
5729
- var m, y = v, C, N, R = new Promise((c, f) => {
5730
- C = c, N = f;
5729
+ var m, y = v, S, N, R = new Promise((c, f) => {
5730
+ S = c, N = f;
5731
5731
  }), B = typeof window == "object", F = typeof importScripts == "function";
5732
5732
  function G() {
5733
5733
  function c(z) {
@@ -5976,19 +5976,19 @@ function Tw() {
5976
5976
  this.__parent.__construct.call(this), this.U = new Path2D();
5977
5977
  }, rewind: function() {
5978
5978
  this.U = new Path2D();
5979
- }, addPath: function(le, ge, Qe, Ze, lt, et, Ge) {
5979
+ }, addPath: function(le, ge, Qe, Ge, lt, et, Ye) {
5980
5980
  var ut = this.U, Rn = ut.addPath;
5981
5981
  le = le.U;
5982
5982
  const At = new DOMMatrix();
5983
- At.a = ge, At.b = Qe, At.c = Ze, At.d = lt, At.e = et, At.f = Ge, Rn.call(ut, le, At);
5983
+ At.a = ge, At.b = Qe, At.c = Ge, At.d = lt, At.e = et, At.f = Ye, Rn.call(ut, le, At);
5984
5984
  }, fillRule: function(le) {
5985
5985
  this.Va = le;
5986
5986
  }, moveTo: function(le, ge) {
5987
5987
  this.U.moveTo(le, ge);
5988
5988
  }, lineTo: function(le, ge) {
5989
5989
  this.U.lineTo(le, ge);
5990
- }, cubicTo: function(le, ge, Qe, Ze, lt, et) {
5991
- this.U.bezierCurveTo(le, ge, Qe, Ze, lt, et);
5990
+ }, cubicTo: function(le, ge, Qe, Ge, lt, et) {
5991
+ this.U.bezierCurveTo(le, ge, Qe, Ge, lt, et);
5992
5992
  }, close: function() {
5993
5993
  this.U.closePath();
5994
5994
  } }), Ve = E.extend("CanvasRenderPaint", { color: function(le) {
@@ -6023,24 +6023,24 @@ function Tw() {
6023
6023
  this.Cb = c(le);
6024
6024
  }, clearGradient: function() {
6025
6025
  this.ja = null;
6026
- }, linearGradient: function(le, ge, Qe, Ze) {
6027
- this.ja = { xb: le, yb: ge, cb: Qe, eb: Ze, Qa: [] };
6028
- }, radialGradient: function(le, ge, Qe, Ze) {
6029
- this.ja = { xb: le, yb: ge, cb: Qe, eb: Ze, Qa: [], ac: !0 };
6026
+ }, linearGradient: function(le, ge, Qe, Ge) {
6027
+ this.ja = { xb: le, yb: ge, cb: Qe, eb: Ge, Qa: [] };
6028
+ }, radialGradient: function(le, ge, Qe, Ge) {
6029
+ this.ja = { xb: le, yb: ge, cb: Qe, eb: Ge, Qa: [], ac: !0 };
6030
6030
  }, addStop: function(le, ge) {
6031
6031
  this.ja.Qa.push({ color: le, stop: ge });
6032
6032
  }, completeGradient: function() {
6033
- }, draw: function(le, ge, Qe, Ze) {
6033
+ }, draw: function(le, ge, Qe, Ge) {
6034
6034
  let lt = this.Fb;
6035
- var et = this.Xa, Ge = this.ja;
6035
+ var et = this.Xa, Ye = this.ja;
6036
6036
  const ut = le.globalCompositeOperation, Rn = le.globalAlpha;
6037
- if (le.globalCompositeOperation = this.Cb, le.globalAlpha = Ze, Ge != null) {
6038
- et = Ge.xb;
6039
- const nn = Ge.yb, Ot = Ge.cb;
6040
- var At = Ge.eb;
6041
- Ze = Ge.Qa, Ge.ac ? (Ge = Ot - et, At -= nn, et = le.createRadialGradient(et, nn, 0, et, nn, Math.sqrt(Ge * Ge + At * At))) : et = le.createLinearGradient(et, nn, Ot, At);
6042
- for (let Ar = 0, io = Ze.length; Ar < io; Ar++)
6043
- Ge = Ze[Ar], et.addColorStop(Ge.stop, f(Ge.color));
6037
+ if (le.globalCompositeOperation = this.Cb, le.globalAlpha = Ge, Ye != null) {
6038
+ et = Ye.xb;
6039
+ const nn = Ye.yb, Ot = Ye.cb;
6040
+ var At = Ye.eb;
6041
+ Ge = Ye.Qa, Ye.ac ? (Ye = Ot - et, At -= nn, et = le.createRadialGradient(et, nn, 0, et, nn, Math.sqrt(Ye * Ye + At * At))) : et = le.createLinearGradient(et, nn, Ot, At);
6042
+ for (let Ar = 0, io = Ge.length; Ar < io; Ar++)
6043
+ Ye = Ge[Ar], et.addColorStop(Ye.stop, f(Ye.color));
6044
6044
  this.Xa = et, this.ja = null;
6045
6045
  }
6046
6046
  switch (lt) {
@@ -6063,9 +6063,9 @@ function Tw() {
6063
6063
  if (6 > le)
6064
6064
  throw "restore() called without matching save().";
6065
6065
  this.T.splice(le), this.G.pop(), this.I.push(this.B.restore.bind(this.B));
6066
- }, transform: function(le, ge, Qe, Ze, lt, et) {
6067
- const Ge = this.T, ut = Ge.length - 6;
6068
- Ge.splice(ut, 6, Ge[ut] * le + Ge[ut + 2] * ge, Ge[ut + 1] * le + Ge[ut + 3] * ge, Ge[ut] * Qe + Ge[ut + 2] * Ze, Ge[ut + 1] * Qe + Ge[ut + 3] * Ze, Ge[ut] * lt + Ge[ut + 2] * et + Ge[ut + 4], Ge[ut + 1] * lt + Ge[ut + 3] * et + Ge[ut + 5]), this.I.push(this.B.transform.bind(this.B, le, ge, Qe, Ze, lt, et));
6066
+ }, transform: function(le, ge, Qe, Ge, lt, et) {
6067
+ const Ye = this.T, ut = Ye.length - 6;
6068
+ Ye.splice(ut, 6, Ye[ut] * le + Ye[ut + 2] * ge, Ye[ut + 1] * le + Ye[ut + 3] * ge, Ye[ut] * Qe + Ye[ut + 2] * Ge, Ye[ut + 1] * Qe + Ye[ut + 3] * Ge, Ye[ut] * lt + Ye[ut + 2] * et + Ye[ut + 4], Ye[ut + 1] * lt + Ye[ut + 3] * et + Ye[ut + 5]), this.I.push(this.B.transform.bind(this.B, le, ge, Qe, Ge, lt, et));
6069
6069
  }, rotate: function(le) {
6070
6070
  const ge = Math.sin(le);
6071
6071
  le = Math.cos(le), this.transform(le, ge, -ge, le, 0, 0);
@@ -6073,19 +6073,19 @@ function Tw() {
6073
6073
  this.G[this.G.length - 1] *= le;
6074
6074
  }, _drawPath: function(le, ge) {
6075
6075
  this.I.push(ge.draw.bind(ge, this.B, le.U, le.Va === ke ? "evenodd" : "nonzero", Math.max(0, this.G[this.G.length - 1])));
6076
- }, _drawRiveImage: function(le, ge, Qe, Ze) {
6076
+ }, _drawRiveImage: function(le, ge, Qe, Ge) {
6077
6077
  var lt = le.Db;
6078
6078
  if (lt) {
6079
- var et = this.B, Ge = c(Qe), ut = Math.max(0, Ze * this.G[this.G.length - 1]);
6079
+ var et = this.B, Ye = c(Qe), ut = Math.max(0, Ge * this.G[this.G.length - 1]);
6080
6080
  this.I.push(function() {
6081
- et.globalCompositeOperation = Ge, et.globalAlpha = ut, et.drawImage(lt, 0, 0), et.globalAlpha = 1;
6081
+ et.globalCompositeOperation = Ye, et.globalAlpha = ut, et.drawImage(lt, 0, 0), et.globalAlpha = 1;
6082
6082
  });
6083
6083
  }
6084
6084
  }, _getMatrix: function(le) {
6085
6085
  const ge = this.T, Qe = ge.length - 6;
6086
- for (let Ze = 0; 6 > Ze; ++Ze)
6087
- le[Ze] = ge[Qe + Ze];
6088
- }, _drawImageMesh: function(le, ge, Qe, Ze, lt, et, Ge, ut, Rn, At, nn) {
6086
+ for (let Ge = 0; 6 > Ge; ++Ge)
6087
+ le[Ge] = ge[Qe + Ge];
6088
+ }, _drawImageMesh: function(le, ge, Qe, Ge, lt, et, Ye, ut, Rn, At, nn) {
6089
6089
  ge = this.B.canvas.width;
6090
6090
  var Ot = this.B.canvas.height;
6091
6091
  const Ar = At - ut, io = nn - Rn;
@@ -6096,8 +6096,8 @@ function Tw() {
6096
6096
  var fr = Math.ceil(li * nn), dr = Math.ceil(ci * ge);
6097
6097
  Ot = ne.bc(), fr > Ot && (nn *= Ot / fr, fr = Ot), dr > Ot && (ge *= Ot / dr, dr = Ot), be || (be = new y.DynamicRectanizer(Ot), be.reset(512, 512)), Ot = be.addRect(fr, dr), 0 > Ot && (b(), Je.add(this), Ot = be.addRect(fr, dr), console.assert(0 <= Ot));
6098
6098
  var Oc = Ot & 65535, Nc = Ot >> 16;
6099
- dt.push({ ha: this.T.slice(this.T.length - 6), image: le, Za: Oc, $a: Nc, cc: ut, dc: Rn, uc: fr, jb: dr, Aa: nn, Ba: ge, Ta: new Float32Array(lt), Bb: new Float32Array(et), indices: new Uint16Array(Ge), hc: At, vb: le.Ja << 1 | (At ? 1 : 0) }), Dt += lt.length, tn += Ge.length;
6100
- var Ir = this.B, Ug = c(Qe), Bg = Math.max(0, Ze * this.G[this.G.length - 1]);
6099
+ dt.push({ ha: this.T.slice(this.T.length - 6), image: le, Za: Oc, $a: Nc, cc: ut, dc: Rn, uc: fr, jb: dr, Aa: nn, Ba: ge, Ta: new Float32Array(lt), Bb: new Float32Array(et), indices: new Uint16Array(Ye), hc: At, vb: le.Ja << 1 | (At ? 1 : 0) }), Dt += lt.length, tn += Ye.length;
6100
+ var Ir = this.B, Ug = c(Qe), Bg = Math.max(0, Ge * this.G[this.G.length - 1]);
6101
6101
  this.I.push(function() {
6102
6102
  Ir.save(), Ir.resetTransform(), Ir.globalCompositeOperation = Ug, Ir.globalAlpha = Bg;
6103
6103
  const Lc = ne.canvas();
@@ -6114,10 +6114,10 @@ function Tw() {
6114
6114
  } });
6115
6115
  y.makeRenderer = function(le) {
6116
6116
  const ge = new ur(le), Qe = ge.B;
6117
- return new Proxy(ge, { get(Ze, lt) {
6118
- if (typeof Ze[lt] == "function")
6117
+ return new Proxy(ge, { get(Ge, lt) {
6118
+ if (typeof Ge[lt] == "function")
6119
6119
  return function(...et) {
6120
- return Ze[lt].apply(Ze, et);
6120
+ return Ge[lt].apply(Ge, et);
6121
6121
  };
6122
6122
  if (typeof Qe[lt] == "function") {
6123
6123
  if (-1 < ae.indexOf(lt))
@@ -6126,8 +6126,8 @@ function Tw() {
6126
6126
  ge.I.push(Qe[lt].bind(Qe, ...et));
6127
6127
  };
6128
6128
  }
6129
- return Ze[lt];
6130
- }, set(Ze, lt, et) {
6129
+ return Ge[lt];
6130
+ }, set(Ge, lt, et) {
6131
6131
  if (lt in Qe)
6132
6132
  return ge.I.push(() => {
6133
6133
  Qe[lt] = et;
@@ -6152,17 +6152,17 @@ function Tw() {
6152
6152
  } };
6153
6153
  let nt = y.load, In = null;
6154
6154
  y.load = function(le, ge, Qe = !0) {
6155
- const Ze = new y.FallbackFileAssetLoader();
6156
- return ge !== void 0 && Ze.addLoader(ge), Qe && (ge = new y.CDNFileAssetLoader(), Ze.addLoader(ge)), new Promise(function(lt) {
6155
+ const Ge = new y.FallbackFileAssetLoader();
6156
+ return ge !== void 0 && Ge.addLoader(ge), Qe && (ge = new y.CDNFileAssetLoader(), Ge.addLoader(ge)), new Promise(function(lt) {
6157
6157
  let et = null;
6158
6158
  In = { total: 0, loaded: 0, ready: function() {
6159
6159
  lt(et);
6160
- } }, et = nt(le, Ze), In.total == 0 && lt(et);
6160
+ } }, et = nt(le, Ge), In.total == 0 && lt(et);
6161
6161
  });
6162
6162
  };
6163
6163
  let jg = y.RendererWrapper.prototype.align;
6164
- y.RendererWrapper.prototype.align = function(le, ge, Qe, Ze, lt = 1) {
6165
- jg.call(this, le, ge, Qe, Ze, lt);
6164
+ y.RendererWrapper.prototype.align = function(le, ge, Qe, Ge, lt = 1) {
6165
+ jg.call(this, le, ge, Qe, Ge, lt);
6166
6166
  }, x = new G(), y.requestAnimationFrame = x.requestAnimationFrame.bind(x), y.cancelAnimationFrame = x.cancelAnimationFrame.bind(x), y.enableFPSCounter = x.Ob.bind(x), y.disableFPSCounter = x.Lb, x.ob = b, y.resolveAnimationFrame = b, y.cleanup = function() {
6167
6167
  be && be.delete();
6168
6168
  };
@@ -6189,7 +6189,7 @@ function Tw() {
6189
6189
  var c = re.buffer;
6190
6190
  y.HEAP8 = _ = new Int8Array(c), y.HEAP16 = me = new Int16Array(c), y.HEAPU8 = te = new Uint8Array(c), y.HEAPU16 = T = new Uint16Array(c), y.HEAP32 = oe = new Int32Array(c), y.HEAPU32 = ue = new Uint32Array(c), y.HEAPF32 = we = new Float32Array(c), y.HEAPF64 = $e = new Float64Array(c);
6191
6191
  }
6192
- var ve = [], ze = [], Me = [];
6192
+ var ve = [], Fe = [], Me = [];
6193
6193
  function Ee() {
6194
6194
  var c = y.preRun.shift();
6195
6195
  ve.unshift(c);
@@ -6328,7 +6328,7 @@ function Tw() {
6328
6328
  }, g = (c) => {
6329
6329
  var f = c.charAt(0) === "/", b = c.substr(-1) === "/";
6330
6330
  return (c = d(c.split("/").filter((x) => !!x), !f).join("/")) || f || (c = "."), c && b && (c += "/"), (f ? "/" : "") + c;
6331
- }, S = (c) => {
6331
+ }, C = (c) => {
6332
6332
  var f = /^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(c).slice(1);
6333
6333
  return c = f[0], f = f[1], !c && !f ? "." : (f &&= f.substr(0, f.length - 1), c + f);
6334
6334
  }, j = (c) => {
@@ -6370,7 +6370,7 @@ function Tw() {
6370
6370
  x += String.fromCharCode(k);
6371
6371
  }
6372
6372
  return x;
6373
- }, Pe = [], He = (c) => {
6373
+ }, Pe = [], Ze = (c) => {
6374
6374
  for (var f = 0, b = 0; b < c.length; ++b) {
6375
6375
  var x = c.charCodeAt(b);
6376
6376
  127 >= x ? f++ : 2047 >= x ? f += 2 : 55296 <= x && 57343 >= x ? (f += 4, ++b) : f += 3;
@@ -6414,7 +6414,7 @@ function Tw() {
6414
6414
  return f[b] = 0, b - k;
6415
6415
  };
6416
6416
  function yt(c, f) {
6417
- var b = Array(He(c) + 1);
6417
+ var b = Array(Ze(c) + 1);
6418
6418
  return c = kt(c, b, 0, b.length), f && (b.length = c), b;
6419
6419
  }
6420
6420
  var wn = [];
@@ -6638,7 +6638,7 @@ function Tw() {
6638
6638
  break;
6639
6639
  if (b = Bi(b, c[k]), x = g(x + "/" + c[k]), b.va && (!E || E && f.hb) && (b = b.va.root), !E || f.gb) {
6640
6640
  for (E = 0; (b.mode & 61440) === 40960; )
6641
- if (b = dg(x), x = _e(S(x), b), b = sr(x, { Pa: f.Pa + 1 }).node, 40 < E++)
6641
+ if (b = dg(x), x = _e(C(x), b), b = sr(x, { Pa: f.Pa + 1 }).node, 40 < E++)
6642
6642
  throw new Ce(32);
6643
6643
  }
6644
6644
  }
@@ -7771,7 +7771,7 @@ function Tw() {
7771
7771
  var E = typeof k == "string";
7772
7772
  if (!(E || k instanceof Uint8Array || k instanceof Uint8ClampedArray || k instanceof Int8Array))
7773
7773
  throw new Oe("Cannot pass non-string to std::string");
7774
- var z = b && E ? He(k) : k.length, U = Oa(4 + z + 1), J = U + 4;
7774
+ var z = b && E ? Ze(k) : k.length, U = Oa(4 + z + 1), J = U + 4;
7775
7775
  if (ue[U >> 2] = z, b && E)
7776
7776
  kt(k, te, J, z + 1);
7777
7777
  else if (E)
@@ -8007,7 +8007,7 @@ function Tw() {
8007
8007
  return -1 < navigator.platform.indexOf("Win");
8008
8008
  }, strftime: xc, strftime_l: (c, f, b, x) => xc(c, f, b, x) }, gt = (function() {
8009
8009
  function c(b) {
8010
- return gt = b.exports, re = gt.memory, Ke(), hc = gt.__indirect_function_table, ze.unshift(gt.__wasm_call_ctors), Ne--, y.monitorRunDependencies?.(Ne), Ne == 0 && ot && (b = ot, ot = null, b()), gt;
8010
+ return gt = b.exports, re = gt.memory, Ke(), hc = gt.__indirect_function_table, Fe.unshift(gt.__wasm_call_ctors), Ne--, y.monitorRunDependencies?.(Ne), Ne == 0 && ot && (b = ot, ot = null, b()), gt;
8011
8011
  }
8012
8012
  var f = { env: kc, wasi_snapshot_preview1: kc };
8013
8013
  if (Ne++, y.monitorRunDependencies?.(Ne), y.instantiateWasm)
@@ -8040,7 +8040,7 @@ function Tw() {
8040
8040
  function Pc() {
8041
8041
  function c() {
8042
8042
  if (!ro && (ro = !0, y.calledRun = !0, !K)) {
8043
- if (y.noFSInit || ic || (ic = !0, y.stdin = y.stdin, y.stdout = y.stdout, y.stderr = y.stderr, y.stdin ? Qr("stdin", y.stdin) : pa("/dev/tty", "/dev/stdin"), y.stdout ? Qr("stdout", null, y.stdout) : pa("/dev/tty", "/dev/stdout"), y.stderr ? Qr("stderr", null, y.stderr) : pa("/dev/tty1", "/dev/stderr"), qi("/dev/stdin", 0), qi("/dev/stdout", 1), qi("/dev/stderr", 1)), Yl = !1, Q(ze), C(y), y.onRuntimeInitialized && y.onRuntimeInitialized(), y.postRun)
8043
+ if (y.noFSInit || ic || (ic = !0, y.stdin = y.stdin, y.stdout = y.stdout, y.stderr = y.stderr, y.stdin ? Qr("stdin", y.stdin) : pa("/dev/tty", "/dev/stdin"), y.stdout ? Qr("stdout", null, y.stdout) : pa("/dev/tty", "/dev/stdout"), y.stderr ? Qr("stderr", null, y.stderr) : pa("/dev/tty1", "/dev/stderr"), qi("/dev/stdin", 0), qi("/dev/stdout", 1), qi("/dev/stderr", 1)), Yl = !1, Q(Fe), S(y), y.onRuntimeInitialized && y.onRuntimeInitialized(), y.postRun)
8044
8044
  for (typeof y.postRun == "function" && (y.postRun = [y.postRun]); y.postRun.length; ) {
8045
8045
  var f = y.postRun.shift();
8046
8046
  Me.unshift(f);
@@ -8245,8 +8245,8 @@ function Tw() {
8245
8245
  /* harmony export */
8246
8246
  });
8247
8247
  var u = void 0, h = function(v, m, y) {
8248
- var C, N, R = [];
8249
- if (["touchstart", "touchmove"].indexOf(v.type) > -1 && (!((C = v.changedTouches) === null || C === void 0) && C.length)) {
8248
+ var S, N, R = [];
8249
+ if (["touchstart", "touchmove"].indexOf(v.type) > -1 && (!((S = v.changedTouches) === null || S === void 0) && S.length)) {
8250
8250
  m || v.preventDefault();
8251
8251
  for (var B = 0, F = y ? v.changedTouches.length : 1; B < F; ) {
8252
8252
  var G = v.changedTouches[B];
@@ -8273,7 +8273,7 @@ function Tw() {
8273
8273
  });
8274
8274
  return R;
8275
8275
  }, p = function(v) {
8276
- var m = v.canvas, y = v.artboard, C = v.stateMachines, N = C === void 0 ? [] : C, R = v.renderer, B = v.rive, F = v.fit, G = v.alignment, X = v.isTouchScrollEnabled, $ = X === void 0 ? !1 : X, ae = v.dispatchPointerExit, ne = ae === void 0 ? !0 : ae, q = v.enableMultiTouch, O = q === void 0 ? !1 : q, A = v.layoutScaleFactor, M = A === void 0 ? 1 : A;
8276
+ var m = v.canvas, y = v.artboard, S = v.stateMachines, N = S === void 0 ? [] : S, R = v.renderer, B = v.rive, F = v.fit, G = v.alignment, X = v.isTouchScrollEnabled, $ = X === void 0 ? !1 : X, ae = v.dispatchPointerExit, ne = ae === void 0 ? !0 : ae, q = v.enableMultiTouch, O = q === void 0 ? !1 : q, A = v.layoutScaleFactor, M = A === void 0 ? 1 : A;
8277
8277
  if (!m || !N.length || !R || !B || !y || typeof window > "u")
8278
8278
  return null;
8279
8279
  var W = null, I = !1, L = function(ee) {
@@ -8337,8 +8337,8 @@ function Tw() {
8337
8337
  K.forEach(function(Ie) {
8338
8338
  Be.pointerDown(Ie.transformedX, Ie.transformedY, Ie.identifier);
8339
8339
  });
8340
- }, ze = 0, Me = N; ze < Me.length; ze++) {
8341
- var ue = Me[ze];
8340
+ }, Fe = 0, Me = N; Fe < Me.length; Fe++) {
8341
+ var ue = Me[Fe];
8342
8342
  ve(ue);
8343
8343
  }
8344
8344
  break;
@@ -8384,7 +8384,7 @@ function Tw() {
8384
8384
  /* harmony export */
8385
8385
  BLANK_URL: () => (
8386
8386
  /* binding */
8387
- C
8387
+ S
8388
8388
  ),
8389
8389
  /* harmony export */
8390
8390
  sanitizeUrl: () => (
@@ -8393,7 +8393,7 @@ function Tw() {
8393
8393
  )
8394
8394
  /* harmony export */
8395
8395
  });
8396
- var u = /^([^\w]*)(javascript|data|vbscript)/im, h = /&#(\w+)(^\w|;)?/g, p = /&(newline|tab);/gi, v = /[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim, m = /^.+(:|&colon;)/gim, y = [".", "/"], C = "about:blank";
8396
+ var u = /^([^\w]*)(javascript|data|vbscript)/im, h = /&#(\w+)(^\w|;)?/g, p = /&(newline|tab);/gi, v = /[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim, m = /^.+(:|&colon;)/gim, y = [".", "/"], S = "about:blank";
8397
8397
  function N(F) {
8398
8398
  return y.indexOf(F[0]) > -1;
8399
8399
  }
@@ -8405,17 +8405,17 @@ function Tw() {
8405
8405
  }
8406
8406
  function B(F) {
8407
8407
  if (!F)
8408
- return C;
8408
+ return S;
8409
8409
  var G = R(F).replace(p, "").replace(v, "").trim();
8410
8410
  if (!G)
8411
- return C;
8411
+ return S;
8412
8412
  if (N(G))
8413
8413
  return G;
8414
8414
  var X = G.match(m);
8415
8415
  if (!X)
8416
8416
  return G;
8417
8417
  var $ = X[0];
8418
- return u.test($) ? C : G;
8418
+ return u.test($) ? S : G;
8419
8419
  }
8420
8420
  }),
8421
8421
  /* 8 */
@@ -8455,7 +8455,7 @@ function Tw() {
8455
8455
  /* harmony export */
8456
8456
  FontWrapper: () => (
8457
8457
  /* binding */
8458
- C
8458
+ S
8459
8459
  ),
8460
8460
  /* harmony export */
8461
8461
  ImageAssetWrapper: () => (
@@ -8561,7 +8561,7 @@ function Tw() {
8561
8561
  this.selfUnref && this._nativeAudio.unref();
8562
8562
  }, O;
8563
8563
  })(v)
8564
- ), C = (
8564
+ ), S = (
8565
8565
  /** @class */
8566
8566
  (function(q) {
8567
8567
  u(O, q);
@@ -8804,7 +8804,7 @@ function Tw() {
8804
8804
  /* harmony export */
8805
8805
  ViewModelInstance: () => (
8806
8806
  /* binding */
8807
- ze
8807
+ Fe
8808
8808
  ),
8809
8809
  /* harmony export */
8810
8810
  ViewModelInstanceArtboard: () => (
@@ -8875,30 +8875,30 @@ function Tw() {
8875
8875
  });
8876
8876
  var a = i(1), s = i(2), l = i(3), u = i(5), h = /* @__PURE__ */ (function() {
8877
8877
  var w = function(d, g) {
8878
- return w = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(S, j) {
8879
- S.__proto__ = j;
8880
- } || function(S, j) {
8881
- for (var Z in j) Object.prototype.hasOwnProperty.call(j, Z) && (S[Z] = j[Z]);
8878
+ return w = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(C, j) {
8879
+ C.__proto__ = j;
8880
+ } || function(C, j) {
8881
+ for (var Z in j) Object.prototype.hasOwnProperty.call(j, Z) && (C[Z] = j[Z]);
8882
8882
  }, w(d, g);
8883
8883
  };
8884
8884
  return function(d, g) {
8885
8885
  if (typeof g != "function" && g !== null)
8886
8886
  throw new TypeError("Class extends value " + String(g) + " is not a constructor or null");
8887
8887
  w(d, g);
8888
- function S() {
8888
+ function C() {
8889
8889
  this.constructor = d;
8890
8890
  }
8891
- d.prototype = g === null ? Object.create(g) : (S.prototype = g.prototype, new S());
8891
+ d.prototype = g === null ? Object.create(g) : (C.prototype = g.prototype, new C());
8892
8892
  };
8893
8893
  })(), p = function() {
8894
8894
  return p = Object.assign || function(w) {
8895
- for (var d, g = 1, S = arguments.length; g < S; g++) {
8895
+ for (var d, g = 1, C = arguments.length; g < C; g++) {
8896
8896
  d = arguments[g];
8897
8897
  for (var j in d) Object.prototype.hasOwnProperty.call(d, j) && (w[j] = d[j]);
8898
8898
  }
8899
8899
  return w;
8900
8900
  }, p.apply(this, arguments);
8901
- }, v = function(w, d, g, S) {
8901
+ }, v = function(w, d, g, C) {
8902
8902
  function j(Z) {
8903
8903
  return Z instanceof g ? Z : new g(function(ie) {
8904
8904
  ie(Z);
@@ -8907,28 +8907,28 @@ function Tw() {
8907
8907
  return new (g || (g = Promise))(function(Z, ie) {
8908
8908
  function _e(Pe) {
8909
8909
  try {
8910
- pe(S.next(Pe));
8911
- } catch (He) {
8912
- ie(He);
8910
+ pe(C.next(Pe));
8911
+ } catch (Ze) {
8912
+ ie(Ze);
8913
8913
  }
8914
8914
  }
8915
8915
  function Re(Pe) {
8916
8916
  try {
8917
- pe(S.throw(Pe));
8918
- } catch (He) {
8919
- ie(He);
8917
+ pe(C.throw(Pe));
8918
+ } catch (Ze) {
8919
+ ie(Ze);
8920
8920
  }
8921
8921
  }
8922
8922
  function pe(Pe) {
8923
8923
  Pe.done ? Z(Pe.value) : j(Pe.value).then(_e, Re);
8924
8924
  }
8925
- pe((S = S.apply(w, d || [])).next());
8925
+ pe((C = C.apply(w, d || [])).next());
8926
8926
  });
8927
8927
  }, m = function(w, d) {
8928
8928
  var g = { label: 0, sent: function() {
8929
8929
  if (Z[0] & 1) throw Z[1];
8930
8930
  return Z[1];
8931
- }, trys: [], ops: [] }, S, j, Z, ie = Object.create((typeof Iterator == "function" ? Iterator : Object).prototype);
8931
+ }, trys: [], ops: [] }, C, j, Z, ie = Object.create((typeof Iterator == "function" ? Iterator : Object).prototype);
8932
8932
  return ie.next = _e(0), ie.throw = _e(1), ie.return = _e(2), typeof Symbol == "function" && (ie[Symbol.iterator] = function() {
8933
8933
  return this;
8934
8934
  }), ie;
@@ -8938,9 +8938,9 @@ function Tw() {
8938
8938
  };
8939
8939
  }
8940
8940
  function Re(pe) {
8941
- if (S) throw new TypeError("Generator is already executing.");
8941
+ if (C) throw new TypeError("Generator is already executing.");
8942
8942
  for (; ie && (ie = 0, pe[0] && (g = 0)), g; ) try {
8943
- if (S = 1, j && (Z = pe[0] & 2 ? j.return : pe[0] ? j.throw || ((Z = j.return) && Z.call(j), 0) : j.next) && !(Z = Z.call(j, pe[1])).done) return Z;
8943
+ if (C = 1, j && (Z = pe[0] & 2 ? j.return : pe[0] ? j.throw || ((Z = j.return) && Z.call(j), 0) : j.next) && !(Z = Z.call(j, pe[1])).done) return Z;
8944
8944
  switch (j = 0, Z && (pe = [pe[0] & 2, Z.value]), pe[0]) {
8945
8945
  case 0:
8946
8946
  case 1:
@@ -8978,16 +8978,16 @@ function Tw() {
8978
8978
  } catch (Pe) {
8979
8979
  pe = [6, Pe], j = 0;
8980
8980
  } finally {
8981
- S = Z = 0;
8981
+ C = Z = 0;
8982
8982
  }
8983
8983
  if (pe[0] & 5) throw pe[1];
8984
8984
  return { value: pe[0] ? pe[1] : void 0, done: !0 };
8985
8985
  }
8986
8986
  }, y = function(w, d, g) {
8987
- if (g || arguments.length === 2) for (var S = 0, j = d.length, Z; S < j; S++)
8988
- (Z || !(S in d)) && (Z || (Z = Array.prototype.slice.call(d, 0, S)), Z[S] = d[S]);
8987
+ if (g || arguments.length === 2) for (var C = 0, j = d.length, Z; C < j; C++)
8988
+ (Z || !(C in d)) && (Z || (Z = Array.prototype.slice.call(d, 0, C)), Z[C] = d[C]);
8989
8989
  return w.concat(Z || Array.prototype.slice.call(d));
8990
- }, C = (
8990
+ }, S = (
8991
8991
  /** @class */
8992
8992
  (function(w) {
8993
8993
  h(d, w);
@@ -9015,17 +9015,17 @@ function Tw() {
9015
9015
  /** @class */
9016
9016
  (function() {
9017
9017
  function w(d) {
9018
- var g, S, j, Z, ie, _e, Re;
9019
- this.fit = (g = d?.fit) !== null && g !== void 0 ? g : R.Contain, this.alignment = (S = d?.alignment) !== null && S !== void 0 ? S : B.Center, this.layoutScaleFactor = (j = d?.layoutScaleFactor) !== null && j !== void 0 ? j : 1, this.minX = (Z = d?.minX) !== null && Z !== void 0 ? Z : 0, this.minY = (ie = d?.minY) !== null && ie !== void 0 ? ie : 0, this.maxX = (_e = d?.maxX) !== null && _e !== void 0 ? _e : 0, this.maxY = (Re = d?.maxY) !== null && Re !== void 0 ? Re : 0;
9018
+ var g, C, j, Z, ie, _e, Re;
9019
+ this.fit = (g = d?.fit) !== null && g !== void 0 ? g : R.Contain, this.alignment = (C = d?.alignment) !== null && C !== void 0 ? C : B.Center, this.layoutScaleFactor = (j = d?.layoutScaleFactor) !== null && j !== void 0 ? j : 1, this.minX = (Z = d?.minX) !== null && Z !== void 0 ? Z : 0, this.minY = (ie = d?.minY) !== null && ie !== void 0 ? ie : 0, this.maxX = (_e = d?.maxX) !== null && _e !== void 0 ? _e : 0, this.maxY = (Re = d?.maxY) !== null && Re !== void 0 ? Re : 0;
9020
9020
  }
9021
9021
  return w.new = function(d) {
9022
- var g = d.fit, S = d.alignment, j = d.minX, Z = d.minY, ie = d.maxX, _e = d.maxY;
9023
- return console.warn("This function is deprecated: please use `new Layout({})` instead"), new w({ fit: g, alignment: S, minX: j, minY: Z, maxX: ie, maxY: _e });
9022
+ var g = d.fit, C = d.alignment, j = d.minX, Z = d.minY, ie = d.maxX, _e = d.maxY;
9023
+ return console.warn("This function is deprecated: please use `new Layout({})` instead"), new w({ fit: g, alignment: C, minX: j, minY: Z, maxX: ie, maxY: _e });
9024
9024
  }, w.prototype.copyWith = function(d) {
9025
- var g = d.fit, S = d.alignment, j = d.layoutScaleFactor, Z = d.minX, ie = d.minY, _e = d.maxX, Re = d.maxY;
9025
+ var g = d.fit, C = d.alignment, j = d.layoutScaleFactor, Z = d.minX, ie = d.minY, _e = d.maxX, Re = d.maxY;
9026
9026
  return new w({
9027
9027
  fit: g ?? this.fit,
9028
- alignment: S ?? this.alignment,
9028
+ alignment: C ?? this.alignment,
9029
9029
  layoutScaleFactor: j ?? this.layoutScaleFactor,
9030
9030
  minX: Z ?? this.minX,
9031
9031
  minY: ie ?? this.minY,
@@ -9068,12 +9068,12 @@ function Tw() {
9068
9068
  originalError: d
9069
9069
  };
9070
9070
  console.debug("Rive WASM load error details:", g);
9071
- var S = "https://cdn.jsdelivr.net/npm/".concat(s.name, "@").concat(s.version, "/rive_fallback.wasm");
9072
- if (w.wasmURL.toLowerCase() !== S)
9073
- console.warn("Failed to load WASM from ".concat(w.wasmURL, " (").concat(g.message, "), trying jsdelivr as a backup")), w.setWasmUrl(S), w.loadRuntime();
9071
+ var C = "https://cdn.jsdelivr.net/npm/".concat(s.name, "@").concat(s.version, "/rive_fallback.wasm");
9072
+ if (w.wasmURL.toLowerCase() !== C)
9073
+ console.warn("Failed to load WASM from ".concat(w.wasmURL, " (").concat(g.message, "), trying jsdelivr as a backup")), w.setWasmUrl(C), w.loadRuntime();
9074
9074
  else {
9075
9075
  var j = [
9076
- "Could not load Rive WASM file from ".concat(w.wasmURL, " or ").concat(S, "."),
9076
+ "Could not load Rive WASM file from ".concat(w.wasmURL, " or ").concat(C, "."),
9077
9077
  "Possible reasons:",
9078
9078
  "- Network connection is down",
9079
9079
  "- WebAssembly is not supported in this environment",
@@ -9163,9 +9163,9 @@ To resolve, you may need to:`,
9163
9163
  /** @class */
9164
9164
  (function(w) {
9165
9165
  h(d, w);
9166
- function d(g, S) {
9166
+ function d(g, C) {
9167
9167
  var j = w.call(this, !1) || this;
9168
- return j.nativeArtboard = g, j.file = S, j;
9168
+ return j.nativeArtboard = g, j.file = C, j;
9169
9169
  }
9170
9170
  return d;
9171
9171
  })(q)
@@ -9174,8 +9174,8 @@ To resolve, you may need to:`,
9174
9174
  (function(w) {
9175
9175
  h(d, w);
9176
9176
  function d(g) {
9177
- var S = w.call(this, !0) || this;
9178
- return S.selfUnref = !1, S.nativeArtboard = g, S;
9177
+ var C = w.call(this, !0) || this;
9178
+ return C.selfUnref = !1, C.nativeArtboard = g, C;
9179
9179
  }
9180
9180
  return Object.defineProperty(d.prototype, "viewModel", {
9181
9181
  set: function(g) {
@@ -9191,8 +9191,8 @@ To resolve, you may need to:`,
9191
9191
  ), M = (
9192
9192
  /** @class */
9193
9193
  (function() {
9194
- function w(d, g, S, j) {
9195
- this.stateMachine = d, this.playing = S, this.artboard = j, this.inputs = [], this.instance = new g.StateMachineInstance(d, j), this.initInputs(g);
9194
+ function w(d, g, C, j) {
9195
+ this.stateMachine = d, this.playing = C, this.artboard = j, this.inputs = [], this.instance = new g.StateMachineInstance(d, j), this.initInputs(g);
9196
9196
  }
9197
9197
  return Object.defineProperty(w.prototype, "name", {
9198
9198
  get: function() {
@@ -9221,8 +9221,8 @@ To resolve, you may need to:`,
9221
9221
  return this.instance.reportedEventAt(d);
9222
9222
  }, w.prototype.initInputs = function(d) {
9223
9223
  for (var g = 0; g < this.instance.inputCount(); g++) {
9224
- var S = this.instance.input(g);
9225
- this.inputs.push(this.mapRuntimeInput(S, d));
9224
+ var C = this.instance.input(g);
9225
+ this.inputs.push(this.mapRuntimeInput(C, d));
9226
9226
  }
9227
9227
  }, w.prototype.mapRuntimeInput = function(d, g) {
9228
9228
  if (d.type === g.SMIInput.bool)
@@ -9242,11 +9242,11 @@ To resolve, you may need to:`,
9242
9242
  ), W = (
9243
9243
  /** @class */
9244
9244
  (function() {
9245
- function w(d, g, S, j, Z) {
9246
- j === void 0 && (j = []), Z === void 0 && (Z = []), this.runtime = d, this.artboard = g, this.eventManager = S, this.animations = j, this.stateMachines = Z;
9245
+ function w(d, g, C, j, Z) {
9246
+ j === void 0 && (j = []), Z === void 0 && (Z = []), this.runtime = d, this.artboard = g, this.eventManager = C, this.animations = j, this.stateMachines = Z;
9247
9247
  }
9248
- return w.prototype.add = function(d, g, S) {
9249
- if (S === void 0 && (S = !0), d = st(d), d.length === 0)
9248
+ return w.prototype.add = function(d, g, C) {
9249
+ if (C === void 0 && (C = !0), d = st(d), d.length === 0)
9250
9250
  this.animations.forEach(function(yt) {
9251
9251
  return yt.playing = g;
9252
9252
  }), this.stateMachines.forEach(function(yt) {
@@ -9267,15 +9267,15 @@ To resolve, you may need to:`,
9267
9267
  var Pe = new l.Animation(pe, this.artboard, this.runtime, g);
9268
9268
  Pe.advance(0), Pe.apply(1), this.animations.push(Pe);
9269
9269
  } else {
9270
- var He = this.artboard.stateMachineByName(d[ie]);
9271
- if (He) {
9272
- var kt = new M(He, this.runtime, g, this.artboard);
9270
+ var Ze = this.artboard.stateMachineByName(d[ie]);
9271
+ if (Ze) {
9272
+ var kt = new M(Ze, this.runtime, g, this.artboard);
9273
9273
  this.stateMachines.push(kt);
9274
9274
  }
9275
9275
  }
9276
9276
  }
9277
9277
  }
9278
- return S && (g ? this.eventManager.fire({
9278
+ return C && (g ? this.eventManager.fire({
9279
9279
  type: I.Play,
9280
9280
  data: this.playing
9281
9281
  }) : this.eventManager.fire({
@@ -9283,10 +9283,10 @@ To resolve, you may need to:`,
9283
9283
  data: this.paused
9284
9284
  })), g ? this.playing : this.paused;
9285
9285
  }, w.prototype.initLinearAnimations = function(d, g) {
9286
- for (var S = this.animations.map(function(Re) {
9286
+ for (var C = this.animations.map(function(Re) {
9287
9287
  return Re.name;
9288
9288
  }), j = 0; j < d.length; j++) {
9289
- var Z = S.indexOf(d[j]);
9289
+ var Z = C.indexOf(d[j]);
9290
9290
  if (Z >= 0)
9291
9291
  this.animations[Z].playing = g;
9292
9292
  else {
@@ -9299,10 +9299,10 @@ To resolve, you may need to:`,
9299
9299
  }
9300
9300
  }
9301
9301
  }, w.prototype.initStateMachines = function(d, g) {
9302
- for (var S = this.stateMachines.map(function(Re) {
9302
+ for (var C = this.stateMachines.map(function(Re) {
9303
9303
  return Re.name;
9304
9304
  }), j = 0; j < d.length; j++) {
9305
- var Z = S.indexOf(d[j]);
9305
+ var Z = C.indexOf(d[j]);
9306
9306
  if (Z >= 0)
9307
9307
  this.stateMachines[Z].playing = g;
9308
9308
  else {
@@ -9323,12 +9323,12 @@ To resolve, you may need to:`,
9323
9323
  }, w.prototype.pause = function(d) {
9324
9324
  return this.add(d, !1);
9325
9325
  }, w.prototype.scrub = function(d, g) {
9326
- var S = this.animations.filter(function(j) {
9326
+ var C = this.animations.filter(function(j) {
9327
9327
  return d.includes(j.name);
9328
9328
  });
9329
- return S.forEach(function(j) {
9329
+ return C.forEach(function(j) {
9330
9330
  return j.scrubTo = g;
9331
- }), S.map(function(j) {
9331
+ }), C.map(function(j) {
9332
9332
  return j.name;
9333
9333
  });
9334
9334
  }, Object.defineProperty(w.prototype, "playing", {
@@ -9370,9 +9370,9 @@ To resolve, you may need to:`,
9370
9370
  }), w.prototype.stop = function(d) {
9371
9371
  var g = this;
9372
9372
  d = st(d);
9373
- var S = [];
9373
+ var C = [];
9374
9374
  if (d.length === 0)
9375
- S = this.animations.map(function(ie) {
9375
+ C = this.animations.map(function(ie) {
9376
9376
  return ie.name;
9377
9377
  }).concat(this.stateMachines.map(function(ie) {
9378
9378
  return ie.name;
@@ -9393,7 +9393,7 @@ To resolve, you may need to:`,
9393
9393
  });
9394
9394
  Z.forEach(function(ie) {
9395
9395
  ie.cleanup(), g.stateMachines.splice(g.stateMachines.indexOf(ie), 1);
9396
- }), S = j.map(function(ie) {
9396
+ }), C = j.map(function(ie) {
9397
9397
  return ie.name;
9398
9398
  }).concat(Z.map(function(ie) {
9399
9399
  return ie.name;
@@ -9401,8 +9401,8 @@ To resolve, you may need to:`,
9401
9401
  }
9402
9402
  return this.eventManager.fire({
9403
9403
  type: I.Stop,
9404
- data: S
9405
- }), S;
9404
+ data: C
9405
+ }), C;
9406
9406
  }, Object.defineProperty(w.prototype, "isPlaying", {
9407
9407
  /**
9408
9408
  * Returns true if at least one animation is active
@@ -9436,26 +9436,26 @@ To resolve, you may need to:`,
9436
9436
  configurable: !0
9437
9437
  }), w.prototype.atLeastOne = function(d, g) {
9438
9438
  g === void 0 && (g = !0);
9439
- var S;
9440
- return this.animations.length === 0 && this.stateMachines.length === 0 && (this.artboard.animationCount() > 0 ? this.add([S = this.artboard.animationByIndex(0).name], d, g) : this.artboard.stateMachineCount() > 0 && this.add([S = this.artboard.stateMachineByIndex(0).name], d, g)), S;
9439
+ var C;
9440
+ return this.animations.length === 0 && this.stateMachines.length === 0 && (this.artboard.animationCount() > 0 ? this.add([C = this.artboard.animationByIndex(0).name], d, g) : this.artboard.stateMachineCount() > 0 && this.add([C = this.artboard.stateMachineByIndex(0).name], d, g)), C;
9441
9441
  }, w.prototype.handleLooping = function() {
9442
9442
  for (var d = 0, g = this.animations.filter(function(j) {
9443
9443
  return j.playing;
9444
9444
  }); d < g.length; d++) {
9445
- var S = g[d];
9446
- S.loopValue === 0 && S.loopCount ? (S.loopCount = 0, this.stop(S.name)) : S.loopValue === 1 && S.loopCount ? (this.eventManager.fire({
9445
+ var C = g[d];
9446
+ C.loopValue === 0 && C.loopCount ? (C.loopCount = 0, this.stop(C.name)) : C.loopValue === 1 && C.loopCount ? (this.eventManager.fire({
9447
9447
  type: I.Loop,
9448
- data: { animation: S.name, type: L.Loop }
9449
- }), S.loopCount = 0) : S.loopValue === 2 && S.loopCount > 1 && (this.eventManager.fire({
9448
+ data: { animation: C.name, type: L.Loop }
9449
+ }), C.loopCount = 0) : C.loopValue === 2 && C.loopCount > 1 && (this.eventManager.fire({
9450
9450
  type: I.Loop,
9451
- data: { animation: S.name, type: L.PingPong }
9452
- }), S.loopCount = 0);
9451
+ data: { animation: C.name, type: L.PingPong }
9452
+ }), C.loopCount = 0);
9453
9453
  }
9454
9454
  }, w.prototype.handleStateChanges = function() {
9455
- for (var d = [], g = 0, S = this.stateMachines.filter(function(Z) {
9455
+ for (var d = [], g = 0, C = this.stateMachines.filter(function(Z) {
9456
9456
  return Z.playing;
9457
- }); g < S.length; g++) {
9458
- var j = S[g];
9457
+ }); g < C.length; g++) {
9458
+ var j = C[g];
9459
9459
  d.push.apply(d, j.statesChanged);
9460
9460
  }
9461
9461
  d.length > 0 && this.eventManager.fire({
@@ -9491,23 +9491,23 @@ To resolve, you may need to:`,
9491
9491
  this.listeners.includes(d) || this.listeners.push(d);
9492
9492
  }, w.prototype.remove = function(d) {
9493
9493
  for (var g = 0; g < this.listeners.length; g++) {
9494
- var S = this.listeners[g];
9495
- if (S.type === d.type && S.callback === d.callback) {
9494
+ var C = this.listeners[g];
9495
+ if (C.type === d.type && C.callback === d.callback) {
9496
9496
  this.listeners.splice(g, 1);
9497
9497
  break;
9498
9498
  }
9499
9499
  }
9500
9500
  }, w.prototype.removeAll = function(d) {
9501
9501
  var g = this;
9502
- d ? this.listeners.filter(function(S) {
9503
- return S.type === d;
9504
- }).forEach(function(S) {
9505
- return g.remove(S);
9502
+ d ? this.listeners.filter(function(C) {
9503
+ return C.type === d;
9504
+ }).forEach(function(C) {
9505
+ return g.remove(C);
9506
9506
  }) : this.listeners.splice(0, this.listeners.length);
9507
9507
  }, w.prototype.fire = function(d) {
9508
9508
  var g = this.getListeners(d.type);
9509
- g.forEach(function(S) {
9510
- return S.callback(d);
9509
+ g.forEach(function(C) {
9510
+ return C.callback(d);
9511
9511
  });
9512
9512
  }, w;
9513
9513
  })()
@@ -9540,7 +9540,7 @@ To resolve, you may need to:`,
9540
9540
  }
9541
9541
  return d.prototype.delay = function(g) {
9542
9542
  return v(this, void 0, void 0, function() {
9543
- return m(this, function(S) {
9543
+ return m(this, function(C) {
9544
9544
  return [2, new Promise(function(j) {
9545
9545
  return setTimeout(j, g);
9546
9546
  })];
@@ -9549,7 +9549,7 @@ To resolve, you may need to:`,
9549
9549
  }, d.prototype.timeout = function() {
9550
9550
  return v(this, void 0, void 0, function() {
9551
9551
  return m(this, function(g) {
9552
- return [2, new Promise(function(S, j) {
9552
+ return [2, new Promise(function(C, j) {
9553
9553
  return setTimeout(j, 50);
9554
9554
  })];
9555
9555
  });
@@ -9609,7 +9609,7 @@ To resolve, you may need to:`,
9609
9609
  });
9610
9610
  });
9611
9611
  }, d.prototype.listenForUserAction = function() {
9612
- var g = this, S = function() {
9612
+ var g = this, C = function() {
9613
9613
  return v(g, void 0, void 0, function() {
9614
9614
  return m(this, function(j) {
9615
9615
  return this.enableAudio(), [
@@ -9619,7 +9619,7 @@ To resolve, you may need to:`,
9619
9619
  });
9620
9620
  });
9621
9621
  };
9622
- document.addEventListener("pointerdown", S, {
9622
+ document.addEventListener("pointerdown", C, {
9623
9623
  once: !0
9624
9624
  });
9625
9625
  }, d.prototype.establishAudio = function() {
@@ -9661,18 +9661,18 @@ To resolve, you may need to:`,
9661
9661
  function w() {
9662
9662
  var d = this;
9663
9663
  this._elementsMap = /* @__PURE__ */ new Map(), this._onObservedEntry = function(g) {
9664
- var S = d._elementsMap.get(g.target);
9665
- S !== null ? S.onResize(g.target.clientWidth == 0 || g.target.clientHeight == 0) : d._resizeObserver.unobserve(g.target);
9664
+ var C = d._elementsMap.get(g.target);
9665
+ C !== null ? C.onResize(g.target.clientWidth == 0 || g.target.clientHeight == 0) : d._resizeObserver.unobserve(g.target);
9666
9666
  }, this._onObserved = function(g) {
9667
9667
  g.forEach(d._onObservedEntry);
9668
9668
  }, this._resizeObserver = new me(this._onObserved);
9669
9669
  }
9670
9670
  return w.prototype.add = function(d, g) {
9671
- var S = {
9671
+ var C = {
9672
9672
  onResize: g,
9673
9673
  element: d
9674
9674
  };
9675
- return this._elementsMap.set(d, S), this._resizeObserver.observe(d), S;
9675
+ return this._elementsMap.set(d, C), this._resizeObserver.observe(d), C;
9676
9676
  }, w.prototype.remove = function(d) {
9677
9677
  this._resizeObserver.unobserve(d.element), this._elementsMap.delete(d.element);
9678
9678
  }, w;
@@ -9692,7 +9692,7 @@ To resolve, you may need to:`,
9692
9692
  });
9693
9693
  }, w.prototype.initData = function() {
9694
9694
  return v(this, void 0, void 0, function() {
9695
- var d, g, S, j, Z;
9695
+ var d, g, C, j, Z;
9696
9696
  return m(this, function(ie) {
9697
9697
  switch (ie.label) {
9698
9698
  case 0:
@@ -9703,7 +9703,7 @@ To resolve, you may need to:`,
9703
9703
  return this.destroyed ? [
9704
9704
  2
9705
9705
  /*return*/
9706
- ] : (this.assetLoader && (S = new u.CustomFileAssetLoaderWrapper(this.runtime, this.assetLoader), g = S.assetLoader), j = this, [4, this.runtime.load(new Uint8Array(this.buffer), g, this.enableRiveAssetCDN)]);
9706
+ ] : (this.assetLoader && (C = new u.CustomFileAssetLoaderWrapper(this.runtime, this.assetLoader), g = C.assetLoader), j = this, [4, this.runtime.load(new Uint8Array(this.buffer), g, this.enableRiveAssetCDN)]);
9707
9707
  case 3:
9708
9708
  return j.file = ie.sent(), Z = new u.FileFinalizer(this.file), u.finalizationRegistry.register(this, Z), this.destroyed ? (this.releaseFile(), [
9709
9709
  2
@@ -9721,26 +9721,26 @@ To resolve, you may need to:`,
9721
9721
  }, w.prototype.init = function() {
9722
9722
  return v(this, void 0, void 0, function() {
9723
9723
  var d, g;
9724
- return m(this, function(S) {
9725
- switch (S.label) {
9724
+ return m(this, function(C) {
9725
+ switch (C.label) {
9726
9726
  case 0:
9727
9727
  if (!this.src && !this.buffer)
9728
9728
  return this.fireLoadError(w.missingErrorMessage), [
9729
9729
  2
9730
9730
  /*return*/
9731
9731
  ];
9732
- S.label = 1;
9732
+ C.label = 1;
9733
9733
  case 1:
9734
- return S.trys.push([1, 4, , 5]), d = this, [4, X.awaitInstance()];
9734
+ return C.trys.push([1, 4, , 5]), d = this, [4, X.awaitInstance()];
9735
9735
  case 2:
9736
- return d.runtime = S.sent(), this.destroyed ? [
9736
+ return d.runtime = C.sent(), this.destroyed ? [
9737
9737
  2
9738
9738
  /*return*/
9739
9739
  ] : [4, this.initData()];
9740
9740
  case 3:
9741
- return S.sent(), [3, 5];
9741
+ return C.sent(), [3, 5];
9742
9742
  case 4:
9743
- return g = S.sent(), this.fireLoadError(g instanceof Error ? g.message : w.fileLoadErrorMessage), [3, 5];
9743
+ return g = C.sent(), this.fireLoadError(g instanceof Error ? g.message : w.fileLoadErrorMessage), [3, 5];
9744
9744
  case 5:
9745
9745
  return [
9746
9746
  2
@@ -9801,11 +9801,11 @@ To resolve, you may need to:`,
9801
9801
  /** @class */
9802
9802
  (function() {
9803
9803
  function w(d) {
9804
- var g = this, S, j;
9804
+ var g = this, C, j;
9805
9805
  this.loaded = !1, this.destroyed = !1, this._observed = null, this.readyForPlaying = !1, this.artboard = null, this.eventCleanup = null, this.shouldDisableRiveListeners = !1, this.automaticallyHandleEvents = !1, this.dispatchPointerExit = !0, this.enableMultiTouch = !1, this.enableRiveAssetCDN = !0, this._volume = 1, this._artboardWidth = void 0, this._artboardHeight = void 0, this._devicePixelRatioUsed = 1, this._hasZeroSize = !1, this._needsRedraw = !1, this._currentCanvasWidth = 0, this._currentCanvasHeight = 0, this._audioEventListener = null, this._boundDraw = null, this._viewModelInstance = null, this._dataEnums = null, this.drawOptimization = F.DrawOnChanged, this.durations = [], this.frameTimes = [], this.frameCount = 0, this.isTouchScrollEnabled = !1, this.onCanvasResize = function(Z) {
9806
9806
  var ie = g._hasZeroSize !== Z;
9807
9807
  g._hasZeroSize = Z, Z ? (!g._layout.maxX || !g._layout.maxY) && g.resizeToCanvas() : ie && g.resizeDrawingSurfaceToCanvas();
9808
- }, this.renderSecondTimer = 0, this._boundDraw = this.draw.bind(this), this.canvas = d.canvas, d.canvas.constructor === HTMLCanvasElement && (this._observed = oe.add(this.canvas, this.onCanvasResize)), this._currentCanvasWidth = this.canvas.width, this._currentCanvasHeight = this.canvas.height, this.src = d.src, this.buffer = d.buffer, this.riveFile = d.riveFile, this.layout = (S = d.layout) !== null && S !== void 0 ? S : new G(), this.shouldDisableRiveListeners = !!d.shouldDisableRiveListeners, this.isTouchScrollEnabled = !!d.isTouchScrollEnabled, this.automaticallyHandleEvents = !!d.automaticallyHandleEvents, this.dispatchPointerExit = d.dispatchPointerExit === !1 ? d.dispatchPointerExit : this.dispatchPointerExit, this.enableMultiTouch = !!d.enableMultiTouch, this.drawOptimization = (j = d.drawingOptions) !== null && j !== void 0 ? j : this.drawOptimization, this.enableRiveAssetCDN = d.enableRiveAssetCDN === void 0 ? !0 : d.enableRiveAssetCDN, this.eventManager = new H(), d.onLoad && this.on(I.Load, d.onLoad), d.onLoadError && this.on(I.LoadError, d.onLoadError), d.onPlay && this.on(I.Play, d.onPlay), d.onPause && this.on(I.Pause, d.onPause), d.onStop && this.on(I.Stop, d.onStop), d.onLoop && this.on(I.Loop, d.onLoop), d.onStateChange && this.on(I.StateChange, d.onStateChange), d.onAdvance && this.on(I.Advance, d.onAdvance), d.onload && !d.onLoad && this.on(I.Load, d.onload), d.onloaderror && !d.onLoadError && this.on(I.LoadError, d.onloaderror), d.onplay && !d.onPlay && this.on(I.Play, d.onplay), d.onpause && !d.onPause && this.on(I.Pause, d.onpause), d.onstop && !d.onStop && this.on(I.Stop, d.onstop), d.onloop && !d.onLoop && this.on(I.Loop, d.onloop), d.onstatechange && !d.onStateChange && this.on(I.StateChange, d.onstatechange), d.assetLoader && (this.assetLoader = d.assetLoader), this.taskQueue = new ee(this.eventManager), this.init({
9808
+ }, this.renderSecondTimer = 0, this._boundDraw = this.draw.bind(this), this.canvas = d.canvas, d.canvas.constructor === HTMLCanvasElement && (this._observed = oe.add(this.canvas, this.onCanvasResize)), this._currentCanvasWidth = this.canvas.width, this._currentCanvasHeight = this.canvas.height, this.src = d.src, this.buffer = d.buffer, this.riveFile = d.riveFile, this.layout = (C = d.layout) !== null && C !== void 0 ? C : new G(), this.shouldDisableRiveListeners = !!d.shouldDisableRiveListeners, this.isTouchScrollEnabled = !!d.isTouchScrollEnabled, this.automaticallyHandleEvents = !!d.automaticallyHandleEvents, this.dispatchPointerExit = d.dispatchPointerExit === !1 ? d.dispatchPointerExit : this.dispatchPointerExit, this.enableMultiTouch = !!d.enableMultiTouch, this.drawOptimization = (j = d.drawingOptions) !== null && j !== void 0 ? j : this.drawOptimization, this.enableRiveAssetCDN = d.enableRiveAssetCDN === void 0 ? !0 : d.enableRiveAssetCDN, this.eventManager = new H(), d.onLoad && this.on(I.Load, d.onLoad), d.onLoadError && this.on(I.LoadError, d.onLoadError), d.onPlay && this.on(I.Play, d.onPlay), d.onPause && this.on(I.Pause, d.onPause), d.onStop && this.on(I.Stop, d.onStop), d.onLoop && this.on(I.Loop, d.onLoop), d.onStateChange && this.on(I.StateChange, d.onStateChange), d.onAdvance && this.on(I.Advance, d.onAdvance), d.onload && !d.onLoad && this.on(I.Load, d.onload), d.onloaderror && !d.onLoadError && this.on(I.LoadError, d.onloaderror), d.onplay && !d.onPlay && this.on(I.Play, d.onplay), d.onpause && !d.onPause && this.on(I.Pause, d.onpause), d.onstop && !d.onStop && this.on(I.Stop, d.onstop), d.onloop && !d.onLoop && this.on(I.Loop, d.onloop), d.onstatechange && !d.onStateChange && this.on(I.StateChange, d.onstatechange), d.assetLoader && (this.assetLoader = d.assetLoader), this.taskQueue = new ee(this.eventManager), this.init({
9809
9809
  src: this.src,
9810
9810
  buffer: this.buffer,
9811
9811
  riveFile: this.riveFile,
@@ -9828,10 +9828,10 @@ To resolve, you may need to:`,
9828
9828
  }, w.prototype.onSystemAudioChanged = function() {
9829
9829
  this.volume = this._volume;
9830
9830
  }, w.prototype.init = function(d) {
9831
- var g = this, S = d.src, j = d.buffer, Z = d.riveFile, ie = d.animations, _e = d.stateMachines, Re = d.artboard, pe = d.autoplay, Pe = pe === void 0 ? !1 : pe, He = d.useOffscreenRenderer, kt = He === void 0 ? !1 : He, yt = d.autoBind, wn = yt === void 0 ? !1 : yt;
9831
+ var g = this, C = d.src, j = d.buffer, Z = d.riveFile, ie = d.animations, _e = d.stateMachines, Re = d.artboard, pe = d.autoplay, Pe = pe === void 0 ? !1 : pe, Ze = d.useOffscreenRenderer, kt = Ze === void 0 ? !1 : Ze, yt = d.autoBind, wn = yt === void 0 ? !1 : yt;
9832
9832
  if (!this.destroyed) {
9833
- if (this.src = S, this.buffer = j, this.riveFile = Z, !this.src && !this.buffer && !this.riveFile)
9834
- throw new C(w.missingErrorMessage);
9833
+ if (this.src = C, this.buffer = j, this.riveFile = Z, !this.src && !this.buffer && !this.riveFile)
9834
+ throw new S(w.missingErrorMessage);
9835
9835
  var un = st(ie), Jt = st(_e);
9836
9836
  this.loaded = !1, this.readyForPlaying = !1, X.awaitInstance().then(function(Qt) {
9837
9837
  g.destroyed || (g.runtime = Qt, g.removeRiveListeners(), g.deleteRiveRenderer(), g.renderer = g.runtime.makeRenderer(g.canvas, kt), g.canvas.width || g.canvas.height || g.resizeDrawingSurfaceToCanvas(), g.initData(Re, un, Jt, Pe, wn).then(function(fn) {
@@ -9847,7 +9847,7 @@ To resolve, you may need to:`,
9847
9847
  }, w.prototype.setupRiveListeners = function(d) {
9848
9848
  var g = this;
9849
9849
  if (this.eventCleanup && this.eventCleanup(), !this.shouldDisableRiveListeners) {
9850
- var S = (this.animator.stateMachines || []).filter(function(_e) {
9850
+ var C = (this.animator.stateMachines || []).filter(function(_e) {
9851
9851
  return _e.playing && g.runtime.hasListeners(_e.instance);
9852
9852
  }).map(function(_e) {
9853
9853
  return _e.instance;
@@ -9855,7 +9855,7 @@ To resolve, you may need to:`,
9855
9855
  d && "isTouchScrollEnabled" in d && (j = d.isTouchScrollEnabled), this.eventCleanup = (0, u.registerTouchInteractions)({
9856
9856
  canvas: this.canvas,
9857
9857
  artboard: this.artboard,
9858
- stateMachines: S,
9858
+ stateMachines: C,
9859
9859
  renderer: this.renderer,
9860
9860
  rive: this.runtime,
9861
9861
  fit: this._layout.runtimeFit(this.runtime),
@@ -9878,7 +9878,7 @@ To resolve, you may need to:`,
9878
9878
  }, _.add(this._audioEventListener), _.establishAudio());
9879
9879
  }, w.prototype.initArtboardSize = function() {
9880
9880
  this.artboard && (this._artboardWidth = this.artboard.width = this._artboardWidth || this.artboard.width, this._artboardHeight = this.artboard.height = this._artboardHeight || this.artboard.height);
9881
- }, w.prototype.initData = function(d, g, S, j, Z) {
9881
+ }, w.prototype.initData = function(d, g, C, j, Z) {
9882
9882
  return v(this, void 0, void 0, function() {
9883
9883
  var ie, _e, Re, pe;
9884
9884
  return m(this, function(Pe) {
@@ -9895,7 +9895,7 @@ To resolve, you may need to:`,
9895
9895
  return ie.destroyIfUnused(), [2, !1];
9896
9896
  Pe.label = 2;
9897
9897
  case 2:
9898
- return this.file = this.riveFile.getInstance(), this.initArtboard(d, g, S, j, Z), this.initArtboardSize(), this.initializeAudio(), this.loaded = !0, this.eventManager.fire({
9898
+ return this.file = this.riveFile.getInstance(), this.initArtboard(d, g, C, j, Z), this.initArtboardSize(), this.initializeAudio(), this.loaded = !0, this.eventManager.fire({
9899
9899
  type: I.Load,
9900
9900
  data: (pe = this.src) !== null && pe !== void 0 ? pe : "buffer"
9901
9901
  }), this.animator.advanceIfPaused(), this.readyForPlaying = !0, this.taskQueue.process(), this.drawFrame(), [2, !0];
@@ -9909,7 +9909,7 @@ To resolve, you may need to:`,
9909
9909
  }
9910
9910
  });
9911
9911
  });
9912
- }, w.prototype.initArtboard = function(d, g, S, j, Z) {
9912
+ }, w.prototype.initArtboard = function(d, g, C, j, Z) {
9913
9913
  if (this.file) {
9914
9914
  var ie = d ? this.file.artboardByName(d) : this.file.defaultArtboard();
9915
9915
  if (!ie) {
@@ -9919,7 +9919,7 @@ To resolve, you may need to:`,
9919
9919
  }
9920
9920
  this.artboard = ie, ie.volume = this._volume * _.systemVolume, this.animator = new W(this.runtime, this.artboard, this.eventManager);
9921
9921
  var Re;
9922
- if (g.length > 0 || S.length > 0 ? (Re = g.concat(S), this.animator.initLinearAnimations(g, j), this.animator.initStateMachines(S, j)) : Re = [this.animator.atLeastOne(j, !1)], this.taskQueue.add({
9922
+ if (g.length > 0 || C.length > 0 ? (Re = g.concat(C), this.animator.initLinearAnimations(g, j), this.animator.initStateMachines(C, j)) : Re = [this.animator.atLeastOne(j, !1)], this.taskQueue.add({
9923
9923
  event: {
9924
9924
  type: j ? I.Play : I.Pause,
9925
9925
  data: Re
@@ -9929,8 +9929,8 @@ To resolve, you may need to:`,
9929
9929
  if (pe !== null) {
9930
9930
  var Pe = pe.defaultInstance();
9931
9931
  if (Pe !== null) {
9932
- var He = new ze(Pe, null);
9933
- (0, u.createFinalization)(He, He.runtimeInstance), this.bindViewModelInstance(He);
9932
+ var Ze = new Fe(Pe, null);
9933
+ (0, u.createFinalization)(Ze, Ze.runtimeInstance), this.bindViewModelInstance(Ze);
9934
9934
  }
9935
9935
  }
9936
9936
  }
@@ -9942,7 +9942,7 @@ To resolve, you may need to:`,
9942
9942
  var d = !1;
9943
9943
  return this.canvas && (this.canvas.width !== this._currentCanvasWidth && (this._currentCanvasWidth = this.canvas.width, d = !0), this.canvas.height !== this._currentCanvasHeight && (this._currentCanvasHeight = this.canvas.height, d = !0)), d;
9944
9944
  }, w.prototype.draw = function(d, g) {
9945
- var S;
9945
+ var C;
9946
9946
  this.frameRequestId = null;
9947
9947
  var j = performance.now();
9948
9948
  this.lastRenderTime || (this.lastRenderTime = d), this.renderSecondTimer += d - this.lastRenderTime, this.renderSecondTimer > 5e3 && (this.renderSecondTimer = 0, g?.());
@@ -9958,8 +9958,8 @@ To resolve, you may need to:`,
9958
9958
  }
9959
9959
  for (var Pe = this.animator.stateMachines.filter(function(hn) {
9960
9960
  return hn.playing;
9961
- }), He = 0, kt = Pe; He < kt.length; He++) {
9962
- var yt = kt[He], wn = yt.reportedEventCount();
9961
+ }), Ze = 0, kt = Pe; Ze < kt.length; Ze++) {
9962
+ var yt = kt[Ze], wn = yt.reportedEventCount();
9963
9963
  if (wn)
9964
9964
  for (var un = 0; un < wn; un++) {
9965
9965
  var Jt = yt.reportedEventAt(un);
@@ -9986,10 +9986,10 @@ To resolve, you may need to:`,
9986
9986
  var tt = performance.now();
9987
9987
  for (this.frameTimes.push(tt), this.durations.push(tt - j); this.frameTimes[0] <= tt - 1e3; )
9988
9988
  this.frameTimes.shift(), this.durations.shift();
9989
- (S = this._viewModelInstance) === null || S === void 0 || S.handleCallbacks(), this.animator.isPlaying ? this.scheduleRendering() : this.animator.isPaused ? this.lastRenderTime = 0 : this.animator.isStopped && (this.lastRenderTime = 0);
9989
+ (C = this._viewModelInstance) === null || C === void 0 || C.handleCallbacks(), this.animator.isPlaying ? this.scheduleRendering() : this.animator.isPaused ? this.lastRenderTime = 0 : this.animator.isStopped && (this.lastRenderTime = 0);
9990
9990
  }, w.prototype.alignRenderer = function() {
9991
- var d = this, g = d.renderer, S = d.runtime, j = d._layout, Z = d.artboard;
9992
- g.align(j.runtimeFit(S), j.runtimeAlignment(S), {
9991
+ var d = this, g = d.renderer, C = d.runtime, j = d._layout, Z = d.artboard;
9992
+ g.align(j.runtimeFit(C), j.runtimeAlignment(C), {
9993
9993
  minX: j.minX,
9994
9994
  minY: j.minY,
9995
9995
  maxX: j.maxX,
@@ -10027,24 +10027,24 @@ To resolve, you may need to:`,
10027
10027
  console.warn("Tried to access text run, but the Artboard is null");
10028
10028
  return;
10029
10029
  }
10030
- var S = this.artboard.textRun(d);
10031
- if (!S) {
10030
+ var C = this.artboard.textRun(d);
10031
+ if (!C) {
10032
10032
  console.warn("Could not access a text run with name '".concat(d, "' in the '").concat((g = this.artboard) === null || g === void 0 ? void 0 : g.name, "' Artboard. Note that you must rename a text run node in the Rive editor to make it queryable at runtime."));
10033
10033
  return;
10034
10034
  }
10035
- return S;
10035
+ return C;
10036
10036
  }, w.prototype.getTextRunValue = function(d) {
10037
10037
  var g = this.retrieveTextRun(d);
10038
10038
  return g ? g.text : void 0;
10039
10039
  }, w.prototype.setTextRunValue = function(d, g) {
10040
- var S = this.retrieveTextRun(d);
10041
- S && (S.text = g);
10040
+ var C = this.retrieveTextRun(d);
10041
+ C && (C.text = g);
10042
10042
  }, w.prototype.play = function(d, g) {
10043
- var S = this;
10043
+ var C = this;
10044
10044
  if (d = st(d), !this.readyForPlaying) {
10045
10045
  this.taskQueue.add({
10046
10046
  action: function() {
10047
- return S.play(d, g);
10047
+ return C.play(d, g);
10048
10048
  }
10049
10049
  });
10050
10050
  return;
@@ -10062,11 +10062,11 @@ To resolve, you may need to:`,
10062
10062
  }
10063
10063
  this.eventCleanup && this.eventCleanup(), this.animator.pause(d);
10064
10064
  }, w.prototype.scrub = function(d, g) {
10065
- var S = this;
10065
+ var C = this;
10066
10066
  if (d = st(d), !this.readyForPlaying) {
10067
10067
  this.taskQueue.add({
10068
10068
  action: function() {
10069
- return S.scrub(d, g);
10069
+ return C.scrub(d, g);
10070
10070
  }
10071
10071
  });
10072
10072
  return;
@@ -10084,7 +10084,7 @@ To resolve, you may need to:`,
10084
10084
  }
10085
10085
  this.animator && this.animator.stop(d), this.eventCleanup && this.eventCleanup();
10086
10086
  }, w.prototype.reset = function(d) {
10087
- var g, S, j = d?.artboard, Z = st(d?.animations), ie = st(d?.stateMachines), _e = (g = d?.autoplay) !== null && g !== void 0 ? g : !1, Re = (S = d?.autoBind) !== null && S !== void 0 ? S : !1;
10087
+ var g, C, j = d?.artboard, Z = st(d?.animations), ie = st(d?.stateMachines), _e = (g = d?.autoplay) !== null && g !== void 0 ? g : !1, Re = (C = d?.autoBind) !== null && C !== void 0 ? C : !1;
10088
10088
  this.cleanupInstances(), this.initArtboard(j, Z, ie, _e, Re), this.taskQueue.process();
10089
10089
  }, w.prototype.load = function(d) {
10090
10090
  this.file = null, this.stop(), this.init(d);
@@ -10112,10 +10112,10 @@ To resolve, you may need to:`,
10112
10112
  });
10113
10113
  }, w.prototype.resizeDrawingSurfaceToCanvas = function(d) {
10114
10114
  if (this.canvas instanceof HTMLCanvasElement && window) {
10115
- var g = this.canvas.getBoundingClientRect(), S = g.width, j = g.height, Z = d || window.devicePixelRatio || 1;
10116
- if (this.devicePixelRatioUsed = Z, this.canvas.width = Z * S, this.canvas.height = Z * j, this._needsRedraw = !0, this.resizeToCanvas(), this.drawFrame(), this.layout.fit === R.Layout) {
10115
+ var g = this.canvas.getBoundingClientRect(), C = g.width, j = g.height, Z = d || window.devicePixelRatio || 1;
10116
+ if (this.devicePixelRatioUsed = Z, this.canvas.width = Z * C, this.canvas.height = Z * j, this._needsRedraw = !0, this.resizeToCanvas(), this.drawFrame(), this.layout.fit === R.Layout) {
10117
10117
  var ie = this._layout.layoutScaleFactor;
10118
- this.artboard.width = S / ie, this.artboard.height = j / ie;
10118
+ this.artboard.width = C / ie, this.artboard.height = j / ie;
10119
10119
  }
10120
10120
  }
10121
10121
  }, Object.defineProperty(w.prototype, "source", {
@@ -10160,8 +10160,8 @@ To resolve, you may need to:`,
10160
10160
  configurable: !0
10161
10161
  }), w.prototype.stateMachineInputs = function(d) {
10162
10162
  if (this.loaded) {
10163
- var g = this.animator.stateMachines.find(function(S) {
10164
- return S.name === d;
10163
+ var g = this.animator.stateMachines.find(function(C) {
10164
+ return C.name === d;
10165
10165
  });
10166
10166
  return g?.inputs;
10167
10167
  }
@@ -10174,21 +10174,21 @@ To resolve, you may need to:`,
10174
10174
  console.warn("Tried to access input: '".concat(d, "', at path: '").concat(g, "', but the Artboard is null"));
10175
10175
  return;
10176
10176
  }
10177
- var S = this.artboard.inputByPath(d, g);
10178
- if (!S) {
10177
+ var C = this.artboard.inputByPath(d, g);
10178
+ if (!C) {
10179
10179
  console.warn("Could not access an input with name: '".concat(d, "', at path:'").concat(g, "'"));
10180
10180
  return;
10181
10181
  }
10182
- return S;
10183
- }, w.prototype.setBooleanStateAtPath = function(d, g, S) {
10184
- var j = this.retrieveInputAtPath(d, S);
10185
- j && (j.type === $.Boolean ? j.asBool().value = g : console.warn("Input with name: '".concat(d, "', at path:'").concat(S, "' is not a boolean")));
10186
- }, w.prototype.setNumberStateAtPath = function(d, g, S) {
10187
- var j = this.retrieveInputAtPath(d, S);
10188
- j && (j.type === $.Number ? j.asNumber().value = g : console.warn("Input with name: '".concat(d, "', at path:'").concat(S, "' is not a number")));
10182
+ return C;
10183
+ }, w.prototype.setBooleanStateAtPath = function(d, g, C) {
10184
+ var j = this.retrieveInputAtPath(d, C);
10185
+ j && (j.type === $.Boolean ? j.asBool().value = g : console.warn("Input with name: '".concat(d, "', at path:'").concat(C, "' is not a boolean")));
10186
+ }, w.prototype.setNumberStateAtPath = function(d, g, C) {
10187
+ var j = this.retrieveInputAtPath(d, C);
10188
+ j && (j.type === $.Number ? j.asNumber().value = g : console.warn("Input with name: '".concat(d, "', at path:'").concat(C, "' is not a number")));
10189
10189
  }, w.prototype.fireStateAtPath = function(d, g) {
10190
- var S = this.retrieveInputAtPath(d, g);
10191
- S && (S.type === $.Trigger ? S.asTrigger().fire() : console.warn("Input with name: '".concat(d, "', at path:'").concat(g, "' is not a trigger")));
10190
+ var C = this.retrieveInputAtPath(d, g);
10191
+ C && (C.type === $.Trigger ? C.asTrigger().fire() : console.warn("Input with name: '".concat(d, "', at path:'").concat(g, "' is not a trigger")));
10192
10192
  }, w.prototype.retrieveTextAtPath = function(d, g) {
10193
10193
  if (!d) {
10194
10194
  console.warn("No text name provided for path '".concat(g, "'"));
@@ -10202,23 +10202,23 @@ To resolve, you may need to:`,
10202
10202
  console.warn("Tried to access text: '".concat(d, "', at path: '").concat(g, "', but the Artboard is null"));
10203
10203
  return;
10204
10204
  }
10205
- var S = this.artboard.textByPath(d, g);
10206
- if (!S) {
10205
+ var C = this.artboard.textByPath(d, g);
10206
+ if (!C) {
10207
10207
  console.warn("Could not access text with name: '".concat(d, "', at path:'").concat(g, "'"));
10208
10208
  return;
10209
10209
  }
10210
- return S;
10210
+ return C;
10211
10211
  }, w.prototype.getTextRunValueAtPath = function(d, g) {
10212
- var S = this.retrieveTextAtPath(d, g);
10213
- if (!S) {
10212
+ var C = this.retrieveTextAtPath(d, g);
10213
+ if (!C) {
10214
10214
  console.warn("Could not get text with name: '".concat(d, "', at path:'").concat(g, "'"));
10215
10215
  return;
10216
10216
  }
10217
- return S.text;
10218
- }, w.prototype.setTextRunValueAtPath = function(d, g, S) {
10219
- var j = this.retrieveTextAtPath(d, S);
10217
+ return C.text;
10218
+ }, w.prototype.setTextRunValueAtPath = function(d, g, C) {
10219
+ var j = this.retrieveTextAtPath(d, C);
10220
10220
  if (!j) {
10221
- console.warn("Could not set text with name: '".concat(d, "', at path:'").concat(S, "'"));
10221
+ console.warn("Could not set text with name: '".concat(d, "', at path:'").concat(C, "'"));
10222
10222
  return;
10223
10223
  }
10224
10224
  j.text = g;
@@ -10342,22 +10342,22 @@ To resolve, you may need to:`,
10342
10342
  for (var d = {
10343
10343
  artboards: []
10344
10344
  }, g = 0; g < this.file.artboardCount(); g++) {
10345
- for (var S = this.file.artboardByIndex(g), j = {
10346
- name: S.name,
10345
+ for (var C = this.file.artboardByIndex(g), j = {
10346
+ name: C.name,
10347
10347
  animations: [],
10348
10348
  stateMachines: []
10349
- }, Z = 0; Z < S.animationCount(); Z++) {
10350
- var ie = S.animationByIndex(Z);
10349
+ }, Z = 0; Z < C.animationCount(); Z++) {
10350
+ var ie = C.animationByIndex(Z);
10351
10351
  j.animations.push(ie.name);
10352
10352
  }
10353
- for (var _e = 0; _e < S.stateMachineCount(); _e++) {
10354
- for (var Re = S.stateMachineByIndex(_e), pe = Re.name, Pe = new this.runtime.StateMachineInstance(Re, S), He = [], kt = 0; kt < Pe.inputCount(); kt++) {
10353
+ for (var _e = 0; _e < C.stateMachineCount(); _e++) {
10354
+ for (var Re = C.stateMachineByIndex(_e), pe = Re.name, Pe = new this.runtime.StateMachineInstance(Re, C), Ze = [], kt = 0; kt < Pe.inputCount(); kt++) {
10355
10355
  var yt = Pe.input(kt);
10356
- He.push({ name: yt.name, type: yt.type });
10356
+ Ze.push({ name: yt.name, type: yt.type });
10357
10357
  }
10358
10358
  j.stateMachines.push({
10359
10359
  name: pe,
10360
- inputs: He
10360
+ inputs: Ze
10361
10361
  });
10362
10362
  }
10363
10363
  d.artboards.push(j);
@@ -10438,8 +10438,8 @@ To resolve, you may need to:`,
10438
10438
  configurable: !0
10439
10439
  }), w.prototype.bindViewModelInstance = function(d) {
10440
10440
  var g;
10441
- this.artboard && !this.destroyed && d && d.runtimeInstance && (d.internalIncrementReferenceCount(), (g = this._viewModelInstance) === null || g === void 0 || g.cleanup(), this._viewModelInstance = d, this.animator.stateMachines.length > 0 ? this.animator.stateMachines.forEach(function(S) {
10442
- return S.bindViewModelInstance(d);
10441
+ this.artboard && !this.destroyed && d && d.runtimeInstance && (d.internalIncrementReferenceCount(), (g = this._viewModelInstance) === null || g === void 0 || g.cleanup(), this._viewModelInstance = d, this.animator.stateMachines.length > 0 ? this.animator.stateMachines.forEach(function(C) {
10442
+ return C.bindViewModelInstance(d);
10443
10443
  }) : this.artboard.bindViewModelInstance(d.runtimeInstance));
10444
10444
  }, Object.defineProperty(w.prototype, "viewModelInstance", {
10445
10445
  get: function() {
@@ -10469,11 +10469,11 @@ To resolve, you may need to:`,
10469
10469
  }
10470
10470
  return null;
10471
10471
  }, w.prototype.getArtboard = function(d) {
10472
- var g, S;
10473
- return (S = (g = this.riveFile) === null || g === void 0 ? void 0 : g.getArtboard(d)) !== null && S !== void 0 ? S : null;
10472
+ var g, C;
10473
+ return (C = (g = this.riveFile) === null || g === void 0 ? void 0 : g.getArtboard(d)) !== null && C !== void 0 ? C : null;
10474
10474
  }, w.prototype.getBindableArtboard = function(d) {
10475
- var g, S;
10476
- return (S = (g = this.riveFile) === null || g === void 0 ? void 0 : g.getBindableArtboard(d)) !== null && S !== void 0 ? S : null;
10475
+ var g, C;
10476
+ return (C = (g = this.riveFile) === null || g === void 0 ? void 0 : g.getBindableArtboard(d)) !== null && C !== void 0 ? C : null;
10477
10477
  }, w.prototype.getDefaultBindableArtboard = function() {
10478
10478
  var d, g;
10479
10479
  return (g = (d = this.riveFile) === null || d === void 0 ? void 0 : d.getDefaultBindableArtboard()) !== null && g !== void 0 ? g : null;
@@ -10500,28 +10500,28 @@ To resolve, you may need to:`,
10500
10500
  }), w.prototype.instanceByIndex = function(d) {
10501
10501
  var g = this._viewModel.instanceByIndex(d);
10502
10502
  if (g !== null) {
10503
- var S = new ze(g, null);
10504
- return (0, u.createFinalization)(S, g), S;
10503
+ var C = new Fe(g, null);
10504
+ return (0, u.createFinalization)(C, g), C;
10505
10505
  }
10506
10506
  return null;
10507
10507
  }, w.prototype.instanceByName = function(d) {
10508
10508
  var g = this._viewModel.instanceByName(d);
10509
10509
  if (g !== null) {
10510
- var S = new ze(g, null);
10511
- return (0, u.createFinalization)(S, g), S;
10510
+ var C = new Fe(g, null);
10511
+ return (0, u.createFinalization)(C, g), C;
10512
10512
  }
10513
10513
  return null;
10514
10514
  }, w.prototype.defaultInstance = function() {
10515
10515
  var d = this._viewModel.defaultInstance();
10516
10516
  if (d !== null) {
10517
- var g = new ze(d, null);
10517
+ var g = new Fe(d, null);
10518
10518
  return (0, u.createFinalization)(g, d), g;
10519
10519
  }
10520
10520
  return null;
10521
10521
  }, w.prototype.instance = function() {
10522
10522
  var d = this._viewModel.instance();
10523
10523
  if (d !== null) {
10524
- var g = new ze(d, null);
10524
+ var g = new Fe(d, null);
10525
10525
  return (0, u.createFinalization)(g, d), g;
10526
10526
  }
10527
10527
  return null;
@@ -10563,7 +10563,7 @@ To resolve, you may need to:`,
10563
10563
  (function(w) {
10564
10564
  w.Number = "number", w.String = "string", w.Boolean = "boolean", w.Color = "color", w.Trigger = "trigger", w.Enum = "enum", w.List = "list", w.Image = "image", w.Artboard = "artboard";
10565
10565
  })(ve || (ve = {}));
10566
- var ze = (
10566
+ var Fe = (
10567
10567
  /** @class */
10568
10568
  (function() {
10569
10569
  function w(d, g) {
@@ -10594,51 +10594,51 @@ To resolve, you may need to:`,
10594
10594
  }, w.prototype.removeParent = function(d) {
10595
10595
  var g = this._parents.indexOf(d);
10596
10596
  if (g !== -1) {
10597
- var S = this._parents[g];
10598
- S.removeFromViewModelCallbacks(this), this._parents.splice(g, 1);
10597
+ var C = this._parents[g];
10598
+ C.removeFromViewModelCallbacks(this), this._parents.splice(g, 1);
10599
10599
  }
10600
10600
  }, w.prototype.addToPropertyCallbacks = function(d) {
10601
10601
  var g = this;
10602
- this._propertiesWithCallbacks.includes(d) || (this._propertiesWithCallbacks.push(d), this._propertiesWithCallbacks.length > 0 && this._parents.forEach(function(S) {
10603
- S.addToViewModelCallbacks(g);
10602
+ this._propertiesWithCallbacks.includes(d) || (this._propertiesWithCallbacks.push(d), this._propertiesWithCallbacks.length > 0 && this._parents.forEach(function(C) {
10603
+ C.addToViewModelCallbacks(g);
10604
10604
  }));
10605
10605
  }, w.prototype.removeFromPropertyCallbacks = function(d) {
10606
10606
  var g = this;
10607
- this._propertiesWithCallbacks.includes(d) && (this._propertiesWithCallbacks = this._propertiesWithCallbacks.filter(function(S) {
10608
- return S !== d;
10609
- }), this._children.length === 0 && this._propertiesWithCallbacks.length === 0 && this._parents.forEach(function(S) {
10610
- S.removeFromViewModelCallbacks(g);
10607
+ this._propertiesWithCallbacks.includes(d) && (this._propertiesWithCallbacks = this._propertiesWithCallbacks.filter(function(C) {
10608
+ return C !== d;
10609
+ }), this._children.length === 0 && this._propertiesWithCallbacks.length === 0 && this._parents.forEach(function(C) {
10610
+ C.removeFromViewModelCallbacks(g);
10611
10611
  }));
10612
10612
  }, w.prototype.addToViewModelCallbacks = function(d) {
10613
10613
  var g = this;
10614
- this._children.includes(d) || (this._children.push(d), this._parents.forEach(function(S) {
10615
- S.addToViewModelCallbacks(g);
10614
+ this._children.includes(d) || (this._children.push(d), this._parents.forEach(function(C) {
10615
+ C.addToViewModelCallbacks(g);
10616
10616
  }));
10617
10617
  }, w.prototype.removeFromViewModelCallbacks = function(d) {
10618
10618
  var g = this;
10619
- this._children.includes(d) && (this._children = this._children.filter(function(S) {
10620
- return S !== d;
10621
- }), this._children.length === 0 && this._propertiesWithCallbacks.length === 0 && this._parents.forEach(function(S) {
10622
- S.removeFromViewModelCallbacks(g);
10619
+ this._children.includes(d) && (this._children = this._children.filter(function(C) {
10620
+ return C !== d;
10621
+ }), this._children.length === 0 && this._propertiesWithCallbacks.length === 0 && this._parents.forEach(function(C) {
10622
+ C.removeFromViewModelCallbacks(g);
10623
10623
  }));
10624
10624
  }, w.prototype.clearCallbacks = function() {
10625
10625
  this._propertiesWithCallbacks.forEach(function(d) {
10626
10626
  d.clearCallbacks();
10627
10627
  });
10628
10628
  }, w.prototype.propertyFromPath = function(d, g) {
10629
- var S = d.split("/");
10630
- return this.propertyFromPathSegments(S, 0, g);
10629
+ var C = d.split("/");
10630
+ return this.propertyFromPathSegments(C, 0, g);
10631
10631
  }, w.prototype.viewModelFromPathSegments = function(d, g) {
10632
- var S = this.internalViewModelInstance(d[g]);
10633
- return S !== null ? g == d.length - 1 ? S : S.viewModelFromPathSegments(d, g++) : null;
10634
- }, w.prototype.propertyFromPathSegments = function(d, g, S) {
10635
- var j, Z, ie, _e, Re, pe, Pe, He, kt, yt, wn, un, Jt, Qt, fn, zn, Le, Fn;
10632
+ var C = this.internalViewModelInstance(d[g]);
10633
+ return C !== null ? g == d.length - 1 ? C : C.viewModelFromPathSegments(d, g++) : null;
10634
+ }, w.prototype.propertyFromPathSegments = function(d, g, C) {
10635
+ var j, Z, ie, _e, Re, pe, Pe, Ze, kt, yt, wn, un, Jt, Qt, fn, zn, Le, Fn;
10636
10636
  if (g < d.length - 1) {
10637
10637
  var dn = this.internalViewModelInstance(d[g]);
10638
- return dn !== null ? dn.propertyFromPathSegments(d, g + 1, S) : null;
10638
+ return dn !== null ? dn.propertyFromPathSegments(d, g + 1, C) : null;
10639
10639
  }
10640
10640
  var tt = null;
10641
- switch (S) {
10641
+ switch (C) {
10642
10642
  case ve.Number:
10643
10643
  if (tt = (Z = (j = this._runtimeInstance) === null || j === void 0 ? void 0 : j.number(d[g])) !== null && Z !== void 0 ? Z : null, tt !== null)
10644
10644
  return new Ne(tt, this);
@@ -10652,7 +10652,7 @@ To resolve, you may need to:`,
10652
10652
  return new ot(tt, this);
10653
10653
  break;
10654
10654
  case ve.Color:
10655
- if (tt = (He = (Pe = this._runtimeInstance) === null || Pe === void 0 ? void 0 : Pe.color(d[g])) !== null && He !== void 0 ? He : null, tt !== null)
10655
+ if (tt = (Ze = (Pe = this._runtimeInstance) === null || Pe === void 0 ? void 0 : Pe.color(d[g])) !== null && Ze !== void 0 ? Ze : null, tt !== null)
10656
10656
  return new Be(tt, this);
10657
10657
  break;
10658
10658
  case ve.Trigger:
@@ -10681,10 +10681,10 @@ To resolve, you may need to:`,
10681
10681
  var g;
10682
10682
  if (this._viewModelInstances.has(d))
10683
10683
  return this._viewModelInstances.get(d);
10684
- var S = (g = this._runtimeInstance) === null || g === void 0 ? void 0 : g.viewModel(d);
10685
- if (S !== null) {
10686
- var j = new w(S, this);
10687
- return (0, u.createFinalization)(j, S), j.internalIncrementReferenceCount(), this._viewModelInstances.set(d, j), j;
10684
+ var C = (g = this._runtimeInstance) === null || g === void 0 ? void 0 : g.viewModel(d);
10685
+ if (C !== null) {
10686
+ var j = new w(C, this);
10687
+ return (0, u.createFinalization)(j, C), j.internalIncrementReferenceCount(), this._viewModelInstances.set(d, j), j;
10688
10688
  }
10689
10689
  return null;
10690
10690
  }, w.prototype.number = function(d) {
@@ -10715,12 +10715,12 @@ To resolve, you may need to:`,
10715
10715
  var g = this.propertyFromPath(d, ve.Artboard);
10716
10716
  return g;
10717
10717
  }, w.prototype.viewModel = function(d) {
10718
- var g = d.split("/"), S = g.length > 1 ? this.viewModelFromPathSegments(g.slice(0, g.length - 1), 0) : this;
10719
- return S != null ? S.internalViewModelInstance(g[g.length - 1]) : null;
10718
+ var g = d.split("/"), C = g.length > 1 ? this.viewModelFromPathSegments(g.slice(0, g.length - 1), 0) : this;
10719
+ return C != null ? C.internalViewModelInstance(g[g.length - 1]) : null;
10720
10720
  }, w.prototype.internalReplaceViewModel = function(d, g) {
10721
- var S;
10721
+ var C;
10722
10722
  if (g.runtimeInstance !== null) {
10723
- var j = ((S = this._runtimeInstance) === null || S === void 0 ? void 0 : S.replaceViewModel(d, g.runtimeInstance)) || !1;
10723
+ var j = ((C = this._runtimeInstance) === null || C === void 0 ? void 0 : C.replaceViewModel(d, g.runtimeInstance)) || !1;
10724
10724
  if (j) {
10725
10725
  g.internalIncrementReferenceCount();
10726
10726
  var Z = this.internalViewModelInstance(d);
@@ -10732,8 +10732,8 @@ To resolve, you may need to:`,
10732
10732
  }
10733
10733
  return !1;
10734
10734
  }, w.prototype.replaceViewModel = function(d, g) {
10735
- var S, j = d.split("/"), Z = j.length > 1 ? this.viewModelFromPathSegments(j.slice(0, j.length - 1), 0) : this;
10736
- return (S = Z?.internalReplaceViewModel(j[j.length - 1], g)) !== null && S !== void 0 ? S : !1;
10735
+ var C, j = d.split("/"), Z = j.length > 1 ? this.viewModelFromPathSegments(j.slice(0, j.length - 1), 0) : this;
10736
+ return (C = Z?.internalReplaceViewModel(j[j.length - 1], g)) !== null && C !== void 0 ? C : !1;
10737
10737
  }, w.prototype.incrementReferenceCount = function() {
10738
10738
  var d;
10739
10739
  this._referenceCount++, (d = this._runtimeInstance) === null || d === void 0 || d.incrementReferenceCount();
@@ -10757,10 +10757,10 @@ To resolve, you may need to:`,
10757
10757
  this.selfUnref && ((g = this._runtimeInstance) === null || g === void 0 || g.unref()), this._runtimeInstance = null, this.clearCallbacks(), this._propertiesWithCallbacks = [], this._viewModelInstances.forEach(function(Z) {
10758
10758
  Z.cleanup();
10759
10759
  }), this._viewModelInstances.clear();
10760
- var S = y([], this._children, !0);
10760
+ var C = y([], this._children, !0);
10761
10761
  this._children.length = 0;
10762
10762
  var j = y([], this._parents, !0);
10763
- this._parents.length = 0, S.forEach(function(Z) {
10763
+ this._parents.length = 0, C.forEach(function(Z) {
10764
10764
  Z.removeParent(d);
10765
10765
  }), j.forEach(function(Z) {
10766
10766
  Z.removeFromViewModelCallbacks(d);
@@ -10802,8 +10802,8 @@ To resolve, you may need to:`,
10802
10802
  /** @class */
10803
10803
  (function(w) {
10804
10804
  h(d, w);
10805
- function d(g, S) {
10806
- return w.call(this, g, S) || this;
10805
+ function d(g, C) {
10806
+ return w.call(this, g, C) || this;
10807
10807
  }
10808
10808
  return Object.defineProperty(d.prototype, "value", {
10809
10809
  get: function() {
@@ -10822,8 +10822,8 @@ To resolve, you may need to:`,
10822
10822
  /** @class */
10823
10823
  (function(w) {
10824
10824
  h(d, w);
10825
- function d(g, S) {
10826
- return w.call(this, g, S) || this;
10825
+ function d(g, C) {
10826
+ return w.call(this, g, C) || this;
10827
10827
  }
10828
10828
  return Object.defineProperty(d.prototype, "value", {
10829
10829
  get: function() {
@@ -10842,8 +10842,8 @@ To resolve, you may need to:`,
10842
10842
  /** @class */
10843
10843
  (function(w) {
10844
10844
  h(d, w);
10845
- function d(g, S) {
10846
- return w.call(this, g, S) || this;
10845
+ function d(g, C) {
10846
+ return w.call(this, g, C) || this;
10847
10847
  }
10848
10848
  return Object.defineProperty(d.prototype, "value", {
10849
10849
  get: function() {
@@ -10862,8 +10862,8 @@ To resolve, you may need to:`,
10862
10862
  /** @class */
10863
10863
  (function(w) {
10864
10864
  h(d, w);
10865
- function d(g, S) {
10866
- return w.call(this, g, S) || this;
10865
+ function d(g, C) {
10866
+ return w.call(this, g, C) || this;
10867
10867
  }
10868
10868
  return d.prototype.trigger = function() {
10869
10869
  return this._viewModelInstanceValue.trigger();
@@ -10875,8 +10875,8 @@ To resolve, you may need to:`,
10875
10875
  /** @class */
10876
10876
  (function(w) {
10877
10877
  h(d, w);
10878
- function d(g, S) {
10879
- return w.call(this, g, S) || this;
10878
+ function d(g, C) {
10879
+ return w.call(this, g, C) || this;
10880
10880
  }
10881
10881
  return Object.defineProperty(d.prototype, "value", {
10882
10882
  get: function() {
@@ -10910,8 +10910,8 @@ To resolve, you may need to:`,
10910
10910
  /** @class */
10911
10911
  (function(w) {
10912
10912
  h(d, w);
10913
- function d(g, S) {
10914
- return w.call(this, g, S) || this;
10913
+ function d(g, C) {
10914
+ return w.call(this, g, C) || this;
10915
10915
  }
10916
10916
  return Object.defineProperty(d.prototype, "length", {
10917
10917
  get: function() {
@@ -10921,21 +10921,21 @@ To resolve, you may need to:`,
10921
10921
  configurable: !0
10922
10922
  }), d.prototype.addInstance = function(g) {
10923
10923
  g.runtimeInstance != null && (this._viewModelInstanceValue.addInstance(g.runtimeInstance), g.addParent(this._parentViewModel));
10924
- }, d.prototype.addInstanceAt = function(g, S) {
10925
- return g.runtimeInstance != null && this._viewModelInstanceValue.addInstanceAt(g.runtimeInstance, S) ? (g.addParent(this._parentViewModel), !0) : !1;
10924
+ }, d.prototype.addInstanceAt = function(g, C) {
10925
+ return g.runtimeInstance != null && this._viewModelInstanceValue.addInstanceAt(g.runtimeInstance, C) ? (g.addParent(this._parentViewModel), !0) : !1;
10926
10926
  }, d.prototype.removeInstance = function(g) {
10927
10927
  g.runtimeInstance != null && (this._viewModelInstanceValue.removeInstance(g.runtimeInstance), g.removeParent(this._parentViewModel));
10928
10928
  }, d.prototype.removeInstanceAt = function(g) {
10929
10929
  this._viewModelInstanceValue.removeInstanceAt(g);
10930
10930
  }, d.prototype.instanceAt = function(g) {
10931
- var S = this._viewModelInstanceValue.instanceAt(g);
10932
- if (S != null) {
10933
- var j = new ze(S, this._parentViewModel);
10934
- return (0, u.createFinalization)(j, S), j;
10931
+ var C = this._viewModelInstanceValue.instanceAt(g);
10932
+ if (C != null) {
10933
+ var j = new Fe(C, this._parentViewModel);
10934
+ return (0, u.createFinalization)(j, C), j;
10935
10935
  }
10936
10936
  return null;
10937
- }, d.prototype.swap = function(g, S) {
10938
- this._viewModelInstanceValue.swap(g, S);
10937
+ }, d.prototype.swap = function(g, C) {
10938
+ this._viewModelInstanceValue.swap(g, C);
10939
10939
  }, d.prototype.internalHandleCallback = function(g) {
10940
10940
  g();
10941
10941
  }, d;
@@ -10944,8 +10944,8 @@ To resolve, you may need to:`,
10944
10944
  /** @class */
10945
10945
  (function(w) {
10946
10946
  h(d, w);
10947
- function d(g, S) {
10948
- return w.call(this, g, S) || this;
10947
+ function d(g, C) {
10948
+ return w.call(this, g, C) || this;
10949
10949
  }
10950
10950
  return Object.defineProperty(d.prototype, "value", {
10951
10951
  get: function() {
@@ -10956,12 +10956,12 @@ To resolve, you may need to:`,
10956
10956
  },
10957
10957
  enumerable: !1,
10958
10958
  configurable: !0
10959
- }), d.prototype.rgb = function(g, S, j) {
10960
- this._viewModelInstanceValue.rgb(g, S, j);
10961
- }, d.prototype.rgba = function(g, S, j, Z) {
10962
- this._viewModelInstanceValue.argb(Z, g, S, j);
10963
- }, d.prototype.argb = function(g, S, j, Z) {
10964
- this._viewModelInstanceValue.argb(g, S, j, Z);
10959
+ }), d.prototype.rgb = function(g, C, j) {
10960
+ this._viewModelInstanceValue.rgb(g, C, j);
10961
+ }, d.prototype.rgba = function(g, C, j, Z) {
10962
+ this._viewModelInstanceValue.argb(Z, g, C, j);
10963
+ }, d.prototype.argb = function(g, C, j, Z) {
10964
+ this._viewModelInstanceValue.argb(g, C, j, Z);
10965
10965
  }, d.prototype.alpha = function(g) {
10966
10966
  this._viewModelInstanceValue.alpha(g);
10967
10967
  }, d.prototype.opacity = function(g) {
@@ -10974,13 +10974,13 @@ To resolve, you may need to:`,
10974
10974
  /** @class */
10975
10975
  (function(w) {
10976
10976
  h(d, w);
10977
- function d(g, S) {
10978
- return w.call(this, g, S) || this;
10977
+ function d(g, C) {
10978
+ return w.call(this, g, C) || this;
10979
10979
  }
10980
10980
  return Object.defineProperty(d.prototype, "value", {
10981
10981
  set: function(g) {
10982
- var S;
10983
- this._viewModelInstanceValue.value((S = g?.nativeImage) !== null && S !== void 0 ? S : null);
10982
+ var C;
10983
+ this._viewModelInstanceValue.value((C = g?.nativeImage) !== null && C !== void 0 ? C : null);
10984
10984
  },
10985
10985
  enumerable: !1,
10986
10986
  configurable: !0
@@ -10992,13 +10992,13 @@ To resolve, you may need to:`,
10992
10992
  /** @class */
10993
10993
  (function(w) {
10994
10994
  h(d, w);
10995
- function d(g, S) {
10996
- return w.call(this, g, S) || this;
10995
+ function d(g, C) {
10996
+ return w.call(this, g, C) || this;
10997
10997
  }
10998
10998
  return Object.defineProperty(d.prototype, "value", {
10999
10999
  set: function(g) {
11000
- var S, j, Z;
11001
- g.isBindableArtboard ? Z = g : Z = g.file.internalBindableArtboardFromArtboard(g.nativeArtboard), this._viewModelInstanceValue.value((S = Z?.nativeArtboard) !== null && S !== void 0 ? S : null), Z?.nativeViewModel && this._viewModelInstanceValue.viewModelInstance((j = Z?.nativeViewModel) !== null && j !== void 0 ? j : null);
11000
+ var C, j, Z;
11001
+ g.isBindableArtboard ? Z = g : Z = g.file.internalBindableArtboardFromArtboard(g.nativeArtboard), this._viewModelInstanceValue.value((C = Z?.nativeArtboard) !== null && C !== void 0 ? C : null), Z?.nativeViewModel && this._viewModelInstanceValue.viewModelInstance((j = Z?.nativeViewModel) !== null && j !== void 0 ? j : null);
11002
11002
  },
11003
11003
  enumerable: !1,
11004
11004
  configurable: !0
@@ -11008,7 +11008,7 @@ To resolve, you may need to:`,
11008
11008
  })(Me)
11009
11009
  ), Tt = function(w) {
11010
11010
  return v(void 0, void 0, void 0, function() {
11011
- var d, g, S;
11011
+ var d, g, C;
11012
11012
  return m(this, function(j) {
11013
11013
  switch (j.label) {
11014
11014
  case 0:
@@ -11016,7 +11016,7 @@ To resolve, you may need to:`,
11016
11016
  case 1:
11017
11017
  return g = j.sent(), [4, g.arrayBuffer()];
11018
11018
  case 2:
11019
- return S = j.sent(), [2, S];
11019
+ return C = j.sent(), [2, C];
11020
11020
  }
11021
11021
  });
11022
11022
  });
@@ -11027,7 +11027,7 @@ To resolve, you may need to:`,
11027
11027
  TaskQueueManager: ee
11028
11028
  }, Lt = function(w) {
11029
11029
  return v(void 0, void 0, void 0, function() {
11030
- var d, g, S;
11030
+ var d, g, C;
11031
11031
  return m(this, function(j) {
11032
11032
  switch (j.label) {
11033
11033
  case 0:
@@ -11037,13 +11037,13 @@ To resolve, you may need to:`,
11037
11037
  });
11038
11038
  }), [4, d];
11039
11039
  case 1:
11040
- return g = j.sent(), S = new u.AudioWrapper(g), u.finalizationRegistry.register(S, g), [2, S];
11040
+ return g = j.sent(), C = new u.AudioWrapper(g), u.finalizationRegistry.register(C, g), [2, C];
11041
11041
  }
11042
11042
  });
11043
11043
  });
11044
11044
  }, Pt = function(w) {
11045
11045
  return v(void 0, void 0, void 0, function() {
11046
- var d, g, S;
11046
+ var d, g, C;
11047
11047
  return m(this, function(j) {
11048
11048
  switch (j.label) {
11049
11049
  case 0:
@@ -11053,13 +11053,13 @@ To resolve, you may need to:`,
11053
11053
  });
11054
11054
  }), [4, d];
11055
11055
  case 1:
11056
- return g = j.sent(), S = new u.ImageWrapper(g), u.finalizationRegistry.register(S, g), [2, S];
11056
+ return g = j.sent(), C = new u.ImageWrapper(g), u.finalizationRegistry.register(C, g), [2, C];
11057
11057
  }
11058
11058
  });
11059
11059
  });
11060
11060
  }, Q = function(w) {
11061
11061
  return v(void 0, void 0, void 0, function() {
11062
- var d, g, S;
11062
+ var d, g, C;
11063
11063
  return m(this, function(j) {
11064
11064
  switch (j.label) {
11065
11065
  case 0:
@@ -11069,7 +11069,7 @@ To resolve, you may need to:`,
11069
11069
  });
11070
11070
  }), [4, d];
11071
11071
  case 1:
11072
- return g = j.sent(), S = new u.FontWrapper(g), u.finalizationRegistry.register(S, g), [2, S];
11072
+ return g = j.sent(), C = new u.FontWrapper(g), u.finalizationRegistry.register(C, g), [2, C];
11073
11073
  }
11074
11074
  });
11075
11075
  });
@@ -11212,7 +11212,7 @@ function Pw() {
11212
11212
  }, A.prototype.disconnect = function() {
11213
11213
  }, A;
11214
11214
  })(), v = globalThis.ResizeObserver || p, m = globalThis.ResizeObserver !== void 0, y = !m;
11215
- function C(A, M) {
11215
+ function S(A, M) {
11216
11216
  M === void 0 && (M = !0);
11217
11217
  var W = t.useState({ width: 0, height: 0 }), I = W[0], L = W[1];
11218
11218
  t.useEffect(function() {
@@ -11249,7 +11249,7 @@ function Pw() {
11249
11249
  return Object.assign({}, N, A);
11250
11250
  }
11251
11251
  function B(A) {
11252
- var M = A.riveLoaded, W = M !== void 0 && M, I = A.canvasElem, L = A.containerRef, H = A.options, ee = H === void 0 ? {} : H, re = A.onCanvasHasResized, K = A.artboardBounds, _ = R(ee), te = t.useState({ height: 0, width: 0 }), me = te[0], T = me.height, oe = me.width, ue = te[1], we = t.useState({ height: 0, width: 0 }), $e = we[0], Ke = $e.height, ve = $e.width, ze = we[1], Me = t.useState(!0), Ee = Me[0], Ne = Me[1], ot = _.fitCanvasToArtboardHeight, at = _.shouldResizeCanvasToContainer, Ue = _.useDevicePixelRatio, bt = _.customDevicePixelRatio, Be = C(L, at), Ie = u(bt), zt = K ?? {}, Tt = zt.maxX, st = zt.maxY, vt = t.useCallback(function() {
11252
+ var M = A.riveLoaded, W = M !== void 0 && M, I = A.canvasElem, L = A.containerRef, H = A.options, ee = H === void 0 ? {} : H, re = A.onCanvasHasResized, K = A.artboardBounds, _ = R(ee), te = t.useState({ height: 0, width: 0 }), me = te[0], T = me.height, oe = me.width, ue = te[1], we = t.useState({ height: 0, width: 0 }), $e = we[0], Ke = $e.height, ve = $e.width, Fe = we[1], Me = t.useState(!0), Ee = Me[0], Ne = Me[1], ot = _.fitCanvasToArtboardHeight, at = _.shouldResizeCanvasToContainer, Ue = _.useDevicePixelRatio, bt = _.customDevicePixelRatio, Be = S(L, at), Ie = u(bt), zt = K ?? {}, Tt = zt.maxX, st = zt.maxY, vt = t.useCallback(function() {
11253
11253
  var Lt, Pt, Q, w, d = (Pt = (Lt = L.current) === null || Lt === void 0 ? void 0 : Lt.clientWidth) !== null && Pt !== void 0 ? Pt : 0, g = (w = (Q = L.current) === null || Q === void 0 ? void 0 : Q.clientHeight) !== null && w !== void 0 ? w : 0;
11254
11254
  return ot && K ? { width: d, height: d * (K.maxY / K.maxX) } : { width: d, height: g };
11255
11255
  }, [L, ot, Tt, st]);
@@ -11260,16 +11260,16 @@ function Pw() {
11260
11260
  var d = Pt !== oe || Q !== T;
11261
11261
  if (_.fitCanvasToArtboardHeight && d && (L.current.style.height = Q + "px", w = !0), _.useDevicePixelRatio) {
11262
11262
  if (d || Pt * Ie !== ve || Q * Ie !== Ke) {
11263
- var g = Ie * Pt, S = Ie * Q;
11264
- I.width = g, I.height = S, I.style.width = Pt + "px", I.style.height = Q + "px", ze({ width: g, height: S }), w = !0;
11263
+ var g = Ie * Pt, C = Ie * Q;
11264
+ I.width = g, I.height = C, I.style.width = Pt + "px", I.style.height = Q + "px", Fe({ width: g, height: C }), w = !0;
11265
11265
  }
11266
- } else d && (I.width = Pt, I.height = Q, ze({ width: Pt, height: Q }), w = !0);
11266
+ } else d && (I.width = Pt, I.height = Q, Fe({ width: Pt, height: Q }), w = !0);
11267
11267
  ue({ width: Pt, height: Q });
11268
11268
  }
11269
11269
  re && (Ee || w) && re && re(), Ee && Ne(!1);
11270
11270
  }
11271
11271
  }, [I, L, Be, Ie, vt, Ee, Ne, Ke, ve, T, oe, re, at, ot, Ue, W]), t.useEffect(function() {
11272
- ze({ width: 0, height: 0 });
11272
+ Fe({ width: 0, height: 0 });
11273
11273
  }, [I]);
11274
11274
  }
11275
11275
  var F, G = (function() {
@@ -11358,10 +11358,10 @@ function Pw() {
11358
11358
  ee.current != null && ee.current.cleanup();
11359
11359
  };
11360
11360
  }, []);
11361
- var ze = A?.animations;
11361
+ var Fe = A?.animations;
11362
11362
  t.useEffect(function() {
11363
- K && ze && (K.isPlaying ? (K.stop(K.animationNames), K.play(ze)) : K.isPaused && (K.stop(K.animationNames), K.pause(ze)));
11364
- }, [ze, K]);
11363
+ K && Fe && (K.isPlaying ? (K.stop(K.animationNames), K.play(Fe)) : K.isPaused && (K.stop(K.animationNames), K.pause(Fe)));
11364
+ }, [Fe, K]);
11365
11365
  var Me = t.useCallback(function(Ee) {
11366
11366
  return i.default.createElement(ne, o({ setContainerRef: we, setCanvasRef: ue }, Ee));
11367
11367
  }, [ue, we]);
@@ -11373,10 +11373,10 @@ function Pw() {
11373
11373
  ue.current = W;
11374
11374
  }, [W]);
11375
11375
  var we = t.useCallback(function() {
11376
- var ze = T.current, Me = oe.current, Ee = ue.current;
11377
- if (!ze || !Me) return H(null), K(Ee.defaultValue), me(null), function() {
11376
+ var Fe = T.current, Me = oe.current, Ee = ue.current;
11377
+ if (!Fe || !Me) return H(null), K(Ee.defaultValue), me(null), function() {
11378
11378
  };
11379
- var Ne = Ee.getProperty(ze, Me);
11379
+ var Ne = Ee.getProperty(Fe, Me);
11380
11380
  if (Ne) {
11381
11381
  H(Ne), K(Ee.getValue(Ne)), Ee.getExtendedData && me(Ee.getExtendedData(Ne));
11382
11382
  var ot = function() {
@@ -11392,14 +11392,14 @@ function Pw() {
11392
11392
  t.useEffect(function() {
11393
11393
  return T.current = M, oe.current = A, we();
11394
11394
  }, [M, A, we]);
11395
- var $e = t.useCallback(function(ze) {
11395
+ var $e = t.useCallback(function(Fe) {
11396
11396
  if (L && T.current === M) try {
11397
- return ze(L), void (ue.current.getExtendedData && me(ue.current.getExtendedData(L)));
11397
+ return Fe(L), void (ue.current.getExtendedData && me(ue.current.getExtendedData(L)));
11398
11398
  } catch {
11399
11399
  }
11400
11400
  if (T.current) try {
11401
11401
  var Me = ue.current.getProperty(T.current, oe.current);
11402
- Me && (H(Me), ze(Me), ue.current.getExtendedData && me(ue.current.getExtendedData(Me)));
11402
+ Me && (H(Me), Fe(Me), ue.current.getExtendedData && me(ue.current.getExtendedData(Me)));
11403
11403
  } catch {
11404
11404
  }
11405
11405
  }, [L, M]), Ke = t.useMemo(function() {
@@ -11669,13 +11669,13 @@ function Ah({ isWaiting: e = !1, ...t }) {
11669
11669
  alignment: fi.Alignment.TopCenter
11670
11670
  })
11671
11671
  }), s = fi.useStateMachineInput(a, "State Machine 1", "waiting");
11672
- return Ye(() => {
11672
+ return He(() => {
11673
11673
  if (s)
11674
11674
  try {
11675
11675
  s.value = e;
11676
11676
  } catch {
11677
11677
  }
11678
- }, [a, s, e]), Ye(() => {
11678
+ }, [a, s, e]), He(() => {
11679
11679
  a && r?.();
11680
11680
  }, [a]), /* @__PURE__ */ D(
11681
11681
  "div",
@@ -11690,8 +11690,8 @@ function Ah({ isWaiting: e = !1, ...t }) {
11690
11690
  );
11691
11691
  }
11692
11692
  function Uw(e, t = !0) {
11693
- const [n, r] = Fe(t ? "" : e), i = rt(t ? "" : e);
11694
- return Ye(() => {
11693
+ const [n, r] = ze(t ? "" : e), i = rt(t ? "" : e);
11694
+ return He(() => {
11695
11695
  if (!t) {
11696
11696
  r(e), i.current = e;
11697
11697
  return;
@@ -12952,8 +12952,8 @@ function o0() {
12952
12952
  if (A(), !ne(i)) return ae("property missing ':'");
12953
12953
  var H = ne(o), ee = I({
12954
12954
  type: m,
12955
- property: C(L[0].replace(e, p)),
12956
- value: H ? C(H[0].replace(e, p)) : p
12955
+ property: S(L[0].replace(e, p)),
12956
+ value: H ? S(H[0].replace(e, p)) : p
12957
12957
  });
12958
12958
  return ne(a), ee;
12959
12959
  }
@@ -12967,7 +12967,7 @@ function o0() {
12967
12967
  }
12968
12968
  return q(), W();
12969
12969
  }
12970
- function C(N) {
12970
+ function S(N) {
12971
12971
  return N ? N.replace(s, p) : p;
12972
12972
  }
12973
12973
  return qa = y, qa;
@@ -15824,14 +15824,14 @@ function B0(e) {
15824
15824
  _tokenizer: i,
15825
15825
  contentType: "flow",
15826
15826
  previous: o
15827
- }), C(F);
15827
+ }), S(F);
15828
15828
  }
15829
- function C(F) {
15829
+ function S(F) {
15830
15830
  if (F === null) {
15831
15831
  N(e.exit("chunkFlow"), !0), R(0), e.consume(F);
15832
15832
  return;
15833
15833
  }
15834
- return Ae(F) ? (e.consume(F), N(e.exit("chunkFlow")), r = 0, t.interrupt = void 0, s) : (e.consume(F), C);
15834
+ return Ae(F) ? (e.consume(F), N(e.exit("chunkFlow")), r = 0, t.interrupt = void 0, s) : (e.consume(F), S);
15835
15835
  }
15836
15836
  function N(F, G) {
15837
15837
  const X = t.sliceStream(F);
@@ -16122,7 +16122,7 @@ function ex(e, t, n) {
16122
16122
  return $ === s ? (a++, e.consume($), h) : a < 3 ? n($) : (e.exit("codeFencedFenceSequence"), Xe($) ? it(e, p, "whitespace")($) : p($));
16123
16123
  }
16124
16124
  function p($) {
16125
- return $ === null || Ae($) ? (e.exit("codeFencedFence"), r.interrupt ? t($) : e.check(wu, C, G)($)) : (e.enter("codeFencedFenceInfo"), e.enter("chunkString", {
16125
+ return $ === null || Ae($) ? (e.exit("codeFencedFence"), r.interrupt ? t($) : e.check(wu, S, G)($)) : (e.enter("codeFencedFenceInfo"), e.enter("chunkString", {
16126
16126
  contentType: "string"
16127
16127
  }), v($));
16128
16128
  }
@@ -16137,7 +16137,7 @@ function ex(e, t, n) {
16137
16137
  function y($) {
16138
16138
  return $ === null || Ae($) ? (e.exit("chunkString"), e.exit("codeFencedFenceMeta"), p($)) : $ === 96 && $ === s ? n($) : (e.consume($), y);
16139
16139
  }
16140
- function C($) {
16140
+ function S($) {
16141
16141
  return e.attempt(i, G, N)($);
16142
16142
  }
16143
16143
  function N($) {
@@ -16147,7 +16147,7 @@ function ex(e, t, n) {
16147
16147
  return o > 0 && Xe($) ? it(e, B, "linePrefix", o + 1)($) : B($);
16148
16148
  }
16149
16149
  function B($) {
16150
- return $ === null || Ae($) ? e.check(wu, C, G)($) : (e.enter("codeFlowValue"), F($));
16150
+ return $ === null || Ae($) ? e.check(wu, S, G)($) : (e.enter("codeFlowValue"), F($));
16151
16151
  }
16152
16152
  function F($) {
16153
16153
  return $ === null || Ae($) ? (e.exit("codeFlowValue"), B($)) : (e.consume($), F);
@@ -16467,8 +16467,8 @@ function ux(e, t) {
16467
16467
  let a = n._tokenizer;
16468
16468
  a || (a = r.parser[n.contentType](n.start), n._contentTypeTextTrailing && (a._contentTypeTextTrailing = !0));
16469
16469
  const s = a.events, l = [], u = {};
16470
- let h, p, v = -1, m = n, y = 0, C = 0;
16471
- const N = [C];
16470
+ let h, p, v = -1, m = n, y = 0, S = 0;
16471
+ const N = [S];
16472
16472
  for (; m; ) {
16473
16473
  for (; e.get(++i)[1] !== m; )
16474
16474
  ;
@@ -16476,7 +16476,7 @@ function ux(e, t) {
16476
16476
  }
16477
16477
  for (m = n; ++v < s.length; )
16478
16478
  // Find a void token that includes a break.
16479
- s[v][0] === "exit" && s[v - 1][0] === "enter" && s[v][1].type === s[v - 1][1].type && s[v][1].start.line !== s[v][1].end.line && (C = v + 1, N.push(C), m._tokenizer = void 0, m.previous = void 0, m = m.next);
16479
+ s[v][0] === "exit" && s[v - 1][0] === "enter" && s[v][1].type === s[v - 1][1].type && s[v][1].start.line !== s[v][1].end.line && (S = v + 1, N.push(S), m._tokenizer = void 0, m.previous = void 0, m = m.next);
16480
16480
  for (a.events = [], m ? (m._tokenizer = void 0, m.previous = void 0) : N.pop(), v = N.length; v--; ) {
16481
16481
  const R = s.slice(N[v], N[v + 1]), B = o.pop();
16482
16482
  l.push([B, B + R.length - 1]), e.splice(B, 2, R);
@@ -16536,7 +16536,7 @@ function Yh(e, t, n, r, i, o, a, s, l) {
16536
16536
  function p(R) {
16537
16537
  return R === 60 ? (e.enter(r), e.enter(i), e.enter(o), e.consume(R), e.exit(o), v) : R === null || R === 32 || R === 41 || jo(R) ? n(R) : (e.enter(r), e.enter(a), e.enter(s), e.enter("chunkString", {
16538
16538
  contentType: "string"
16539
- }), C(R));
16539
+ }), S(R));
16540
16540
  }
16541
16541
  function v(R) {
16542
16542
  return R === 62 ? (e.enter(o), e.consume(R), e.exit(o), e.exit(i), e.exit(r), t) : (e.enter(s), e.enter("chunkString", {
@@ -16549,11 +16549,11 @@ function Yh(e, t, n, r, i, o, a, s, l) {
16549
16549
  function y(R) {
16550
16550
  return R === 60 || R === 62 || R === 92 ? (e.consume(R), m) : m(R);
16551
16551
  }
16552
- function C(R) {
16553
- return !h && (R === null || R === 41 || pt(R)) ? (e.exit("chunkString"), e.exit(s), e.exit(a), e.exit(r), t(R)) : h < u && R === 40 ? (e.consume(R), h++, C) : R === 41 ? (e.consume(R), h--, C) : R === null || R === 32 || R === 40 || jo(R) ? n(R) : (e.consume(R), R === 92 ? N : C);
16552
+ function S(R) {
16553
+ return !h && (R === null || R === 41 || pt(R)) ? (e.exit("chunkString"), e.exit(s), e.exit(a), e.exit(r), t(R)) : h < u && R === 40 ? (e.consume(R), h++, S) : R === 41 ? (e.consume(R), h--, S) : R === null || R === 32 || R === 40 || jo(R) ? n(R) : (e.consume(R), R === 92 ? N : S);
16554
16554
  }
16555
16555
  function N(R) {
16556
- return R === 40 || R === 41 || R === 92 ? (e.consume(R), C) : C(R);
16556
+ return R === 40 || R === 41 || R === 92 ? (e.consume(R), S) : S(R);
16557
16557
  }
16558
16558
  }
16559
16559
  function Xh(e, t, n, r, i, o) {
@@ -16823,7 +16823,7 @@ function Tx(e, t, n) {
16823
16823
  return e.enter("htmlFlow"), e.enter("htmlFlowData"), e.consume(T), p;
16824
16824
  }
16825
16825
  function p(T) {
16826
- return T === 33 ? (e.consume(T), v) : T === 47 ? (e.consume(T), o = !0, C) : T === 63 ? (e.consume(T), i = 3, r.interrupt ? t : _) : Zt(T) ? (e.consume(T), a = String.fromCharCode(T), N) : n(T);
16826
+ return T === 33 ? (e.consume(T), v) : T === 47 ? (e.consume(T), o = !0, S) : T === 63 ? (e.consume(T), i = 3, r.interrupt ? t : _) : Zt(T) ? (e.consume(T), a = String.fromCharCode(T), N) : n(T);
16827
16827
  }
16828
16828
  function v(T) {
16829
16829
  return T === 45 ? (e.consume(T), i = 2, m) : T === 91 ? (e.consume(T), i = 5, s = 0, y) : Zt(T) ? (e.consume(T), i = 4, r.interrupt ? t : _) : n(T);
@@ -16835,7 +16835,7 @@ function Tx(e, t, n) {
16835
16835
  const oe = "CDATA[";
16836
16836
  return T === oe.charCodeAt(s++) ? (e.consume(T), s === oe.length ? r.interrupt ? t : M : y) : n(T);
16837
16837
  }
16838
- function C(T) {
16838
+ function S(T) {
16839
16839
  return Zt(T) ? (e.consume(T), a = String.fromCharCode(T), N) : n(T);
16840
16840
  }
16841
16841
  function N(T) {
@@ -16963,16 +16963,16 @@ function Lx(e, t, n) {
16963
16963
  }
16964
16964
  function y(_) {
16965
16965
  const te = "CDATA[";
16966
- return _ === te.charCodeAt(o++) ? (e.consume(_), o === te.length ? C : y) : n(_);
16966
+ return _ === te.charCodeAt(o++) ? (e.consume(_), o === te.length ? S : y) : n(_);
16967
16967
  }
16968
- function C(_) {
16969
- return _ === null ? n(_) : _ === 93 ? (e.consume(_), N) : Ae(_) ? (a = C, ee(_)) : (e.consume(_), C);
16968
+ function S(_) {
16969
+ return _ === null ? n(_) : _ === 93 ? (e.consume(_), N) : Ae(_) ? (a = S, ee(_)) : (e.consume(_), S);
16970
16970
  }
16971
16971
  function N(_) {
16972
- return _ === 93 ? (e.consume(_), R) : C(_);
16972
+ return _ === 93 ? (e.consume(_), R) : S(_);
16973
16973
  }
16974
16974
  function R(_) {
16975
- return _ === 62 ? H(_) : _ === 93 ? (e.consume(_), R) : C(_);
16975
+ return _ === 62 ? H(_) : _ === 93 ? (e.consume(_), R) : S(_);
16976
16976
  }
16977
16977
  function B(_) {
16978
16978
  return _ === null || _ === 62 ? H(_) : Ae(_) ? (a = B, ee(_)) : (e.consume(_), B);
@@ -17571,7 +17571,7 @@ function x1(e, t, n) {
17571
17571
  }, u = {
17572
17572
  code: null,
17573
17573
  containerState: {},
17574
- defineSkip: C,
17574
+ defineSkip: S,
17575
17575
  events: [],
17576
17576
  now: y,
17577
17577
  parser: e,
@@ -17607,7 +17607,7 @@ function x1(e, t, n) {
17607
17607
  offset: L
17608
17608
  };
17609
17609
  }
17610
- function C(A) {
17610
+ function S(A) {
17611
17611
  i[A.line] = A.column, O();
17612
17612
  }
17613
17613
  function N() {
@@ -17661,11 +17661,11 @@ function x1(e, t, n) {
17661
17661
  function te(we) {
17662
17662
  return $e;
17663
17663
  function $e(Ke) {
17664
- const ve = Ke !== null && we[Ke], ze = Ke !== null && we.null, Me = [
17664
+ const ve = Ke !== null && we[Ke], Fe = Ke !== null && we.null, Me = [
17665
17665
  // To do: add more extension tests.
17666
17666
  /* c8 ignore next 2 */
17667
17667
  ...Array.isArray(ve) ? ve : ve ? [ve] : [],
17668
- ...Array.isArray(ze) ? ze : ze ? [ze] : []
17668
+ ...Array.isArray(Fe) ? Fe : Fe ? [Fe] : []
17669
17669
  ];
17670
17670
  return me(Me)(Ke);
17671
17671
  }
@@ -17855,7 +17855,7 @@ function P1(e) {
17855
17855
  autolinkProtocol: q,
17856
17856
  autolinkEmail: q,
17857
17857
  atxHeading: o(at),
17858
- blockQuote: o(ze),
17858
+ blockQuote: o(Fe),
17859
17859
  characterEscape: q,
17860
17860
  characterReference: q,
17861
17861
  codeFenced: o(Me),
@@ -17906,7 +17906,7 @@ function P1(e) {
17906
17906
  characterReferenceValue: we,
17907
17907
  characterReference: $e,
17908
17908
  codeFenced: l(N),
17909
- codeFencedFence: C,
17909
+ codeFencedFence: S,
17910
17910
  codeFencedFenceInfo: m,
17911
17911
  codeFencedFenceMeta: y,
17912
17912
  codeFlowValue: O,
@@ -17963,20 +17963,20 @@ function P1(e) {
17963
17963
  resume: h,
17964
17964
  data: n
17965
17965
  }, g = [];
17966
- let S = -1;
17967
- for (; ++S < Q.length; )
17968
- if (Q[S][1].type === "listOrdered" || Q[S][1].type === "listUnordered")
17969
- if (Q[S][0] === "enter")
17970
- g.push(S);
17966
+ let C = -1;
17967
+ for (; ++C < Q.length; )
17968
+ if (Q[C][1].type === "listOrdered" || Q[C][1].type === "listUnordered")
17969
+ if (Q[C][0] === "enter")
17970
+ g.push(C);
17971
17971
  else {
17972
17972
  const j = g.pop();
17973
- S = i(Q, j, S);
17973
+ C = i(Q, j, C);
17974
17974
  }
17975
- for (S = -1; ++S < Q.length; ) {
17976
- const j = t[Q[S][0]];
17977
- ep.call(j, Q[S][1].type) && j[Q[S][1].type].call(Object.assign({
17978
- sliceSerialize: Q[S][2].sliceSerialize
17979
- }, d), Q[S][1]);
17975
+ for (C = -1; ++C < Q.length; ) {
17976
+ const j = t[Q[C][0]];
17977
+ ep.call(j, Q[C][1].type) && j[Q[C][1].type].call(Object.assign({
17978
+ sliceSerialize: Q[C][2].sliceSerialize
17979
+ }, d), Q[C][1]);
17980
17980
  }
17981
17981
  if (d.tokenStack.length > 0) {
17982
17982
  const j = d.tokenStack[d.tokenStack.length - 1];
@@ -17993,23 +17993,23 @@ function P1(e) {
17993
17993
  column: 1,
17994
17994
  offset: 0
17995
17995
  })
17996
- }, S = -1; ++S < t.transforms.length; )
17997
- w = t.transforms[S](w) || w;
17996
+ }, C = -1; ++C < t.transforms.length; )
17997
+ w = t.transforms[C](w) || w;
17998
17998
  return w;
17999
17999
  }
18000
18000
  function i(Q, w, d) {
18001
- let g = w - 1, S = -1, j = !1, Z, ie, _e, Re;
18001
+ let g = w - 1, C = -1, j = !1, Z, ie, _e, Re;
18002
18002
  for (; ++g <= d; ) {
18003
18003
  const pe = Q[g];
18004
18004
  switch (pe[1].type) {
18005
18005
  case "listUnordered":
18006
18006
  case "listOrdered":
18007
18007
  case "blockQuote": {
18008
- pe[0] === "enter" ? S++ : S--, Re = void 0;
18008
+ pe[0] === "enter" ? C++ : C--, Re = void 0;
18009
18009
  break;
18010
18010
  }
18011
18011
  case "lineEndingBlank": {
18012
- pe[0] === "enter" && (Z && !Re && !S && !_e && (_e = g), Re = void 0);
18012
+ pe[0] === "enter" && (Z && !Re && !C && !_e && (_e = g), Re = void 0);
18013
18013
  break;
18014
18014
  }
18015
18015
  case "linePrefix":
@@ -18021,15 +18021,15 @@ function P1(e) {
18021
18021
  default:
18022
18022
  Re = void 0;
18023
18023
  }
18024
- if (!S && pe[0] === "enter" && pe[1].type === "listItemPrefix" || S === -1 && pe[0] === "exit" && (pe[1].type === "listUnordered" || pe[1].type === "listOrdered")) {
18024
+ if (!C && pe[0] === "enter" && pe[1].type === "listItemPrefix" || C === -1 && pe[0] === "exit" && (pe[1].type === "listUnordered" || pe[1].type === "listOrdered")) {
18025
18025
  if (Z) {
18026
18026
  let Pe = g;
18027
18027
  for (ie = void 0; Pe--; ) {
18028
- const He = Q[Pe];
18029
- if (He[1].type === "lineEnding" || He[1].type === "lineEndingBlank") {
18030
- if (He[0] === "exit") continue;
18031
- ie && (Q[ie][1].type = "lineEndingBlank", j = !0), He[1].type = "lineEnding", ie = Pe;
18032
- } else if (!(He[1].type === "linePrefix" || He[1].type === "blockQuotePrefix" || He[1].type === "blockQuotePrefixWhitespace" || He[1].type === "blockQuoteMarker" || He[1].type === "listItemIndent")) break;
18028
+ const Ze = Q[Pe];
18029
+ if (Ze[1].type === "lineEnding" || Ze[1].type === "lineEndingBlank") {
18030
+ if (Ze[0] === "exit") continue;
18031
+ ie && (Q[ie][1].type = "lineEndingBlank", j = !0), Ze[1].type = "lineEnding", ie = Pe;
18032
+ } else if (!(Ze[1].type === "linePrefix" || Ze[1].type === "blockQuotePrefix" || Ze[1].type === "blockQuotePrefixWhitespace" || Ze[1].type === "blockQuoteMarker" || Ze[1].type === "listItemIndent")) break;
18033
18033
  }
18034
18034
  _e && (!ie || _e < ie) && (Z._spread = !0), Z.end = Object.assign({}, ie ? Q[ie][1].start : pe[1].end), Q.splice(ie || g, 0, ["exit", Z, pe[2]]), g++, d++;
18035
18035
  }
@@ -18102,7 +18102,7 @@ function P1(e) {
18102
18102
  const Q = this.resume(), w = this.stack[this.stack.length - 1];
18103
18103
  w.meta = Q;
18104
18104
  }
18105
- function C() {
18105
+ function S() {
18106
18106
  this.data.flowCodeInside || (this.buffer(), this.data.flowCodeInside = !0);
18107
18107
  }
18108
18108
  function N() {
@@ -18234,8 +18234,8 @@ function P1(e) {
18234
18234
  const w = this.sliceSerialize(Q), d = this.data.characterReferenceType;
18235
18235
  let g;
18236
18236
  d ? (g = Wh(w, d === "characterReferenceMarkerNumeric" ? 10 : 16), this.data.characterReferenceType = void 0) : g = bl(w);
18237
- const S = this.stack[this.stack.length - 1];
18238
- S.value += g;
18237
+ const C = this.stack[this.stack.length - 1];
18238
+ C.value += g;
18239
18239
  }
18240
18240
  function $e(Q) {
18241
18241
  const w = this.stack.pop();
@@ -18251,7 +18251,7 @@ function P1(e) {
18251
18251
  const w = this.stack[this.stack.length - 1];
18252
18252
  w.url = "mailto:" + this.sliceSerialize(Q);
18253
18253
  }
18254
- function ze() {
18254
+ function Fe() {
18255
18255
  return {
18256
18256
  type: "blockquote",
18257
18257
  children: []
@@ -18963,8 +18963,8 @@ function d_(e) {
18963
18963
  continue;
18964
18964
  const h = e.all(u), p = String(u.identifier).toUpperCase(), v = Yr(p.toLowerCase());
18965
18965
  let m = 0;
18966
- const y = [], C = e.footnoteCounts.get(p);
18967
- for (; C !== void 0 && ++m <= C; ) {
18966
+ const y = [], S = e.footnoteCounts.get(p);
18967
+ for (; S !== void 0 && ++m <= S; ) {
18968
18968
  y.length > 0 && y.push({ type: "text", value: " " });
18969
18969
  let B = typeof n == "string" ? n : n(l, m);
18970
18970
  typeof B == "string" && (B = { type: "text", value: B }), y.push({
@@ -19134,7 +19134,7 @@ function lp(e, t, n, r) {
19134
19134
  }
19135
19135
  return v;
19136
19136
  function v() {
19137
- let m = sp, y, C, N;
19137
+ let m = sp, y, S, N;
19138
19138
  if ((!t || o(l, u, h[h.length - 1] || void 0)) && (m = w_(n(l, h)), m[0] === Is))
19139
19139
  return m;
19140
19140
  if ("children" in l && l.children) {
@@ -19143,11 +19143,11 @@ function lp(e, t, n, r) {
19143
19143
  l
19144
19144
  );
19145
19145
  if (R.children && m[0] !== y_)
19146
- for (C = (r ? R.children.length : -1) + a, N = h.concat(R); C > -1 && C < R.children.length; ) {
19147
- const B = R.children[C];
19148
- if (y = s(B, C, N)(), y[0] === Is)
19146
+ for (S = (r ? R.children.length : -1) + a, N = h.concat(R); S > -1 && S < R.children.length; ) {
19147
+ const B = R.children[S];
19148
+ if (y = s(B, S, N)(), y[0] === Is)
19149
19149
  return y;
19150
- C = typeof y[1] == "number" ? y[1] : C + a;
19150
+ S = typeof y[1] == "number" ? y[1] : S + a;
19151
19151
  }
19152
19152
  }
19153
19153
  return m;
@@ -19192,7 +19192,7 @@ function __(e, t) {
19192
19192
  return m(s, h, p);
19193
19193
  if (s.options.passThrough && s.options.passThrough.includes(v)) {
19194
19194
  if ("children" in h) {
19195
- const { children: C, ...N } = h, R = Ii(N);
19195
+ const { children: S, ...N } = h, R = Ii(N);
19196
19196
  return R.children = s.all(h), R;
19197
19197
  }
19198
19198
  return Ii(h);
@@ -19208,8 +19208,8 @@ function __(e, t) {
19208
19208
  const y = s.one(v[m], h);
19209
19209
  if (y) {
19210
19210
  if (m && v[m - 1].type === "break" && (!Array.isArray(y) && y.type === "text" && (y.value = Ou(y.value)), !Array.isArray(y) && y.type === "element")) {
19211
- const C = y.children[0];
19212
- C && C.type === "text" && (C.value = Ou(C.value));
19211
+ const S = y.children[0];
19212
+ S && S.type === "text" && (S.value = Ou(S.value));
19213
19213
  }
19214
19214
  Array.isArray(y) ? p.push(...y) : p.push(y);
19215
19215
  }
@@ -19316,12 +19316,12 @@ function I_() {
19316
19316
  return u[h];
19317
19317
  };
19318
19318
  return Ya = function l() {
19319
- var u, h, p, v, m, y, C = arguments[0], N = 1, R = arguments.length, B = !1;
19320
- for (typeof C == "boolean" && (B = C, C = arguments[1] || {}, N = 2), (C == null || typeof C != "object" && typeof C != "function") && (C = {}); N < R; ++N)
19319
+ var u, h, p, v, m, y, S = arguments[0], N = 1, R = arguments.length, B = !1;
19320
+ for (typeof S == "boolean" && (B = S, S = arguments[1] || {}, N = 2), (S == null || typeof S != "object" && typeof S != "function") && (S = {}); N < R; ++N)
19321
19321
  if (u = arguments[N], u != null)
19322
19322
  for (h in u)
19323
- p = s(C, h), v = s(u, h), C !== v && (B && v && (o(v) || (m = i(v))) ? (m ? (m = !1, y = p && i(p) ? p : []) : y = p && o(p) ? p : {}, a(C, { name: h, newValue: l(B, y, v) })) : typeof v < "u" && a(C, { name: h, newValue: v }));
19324
- return C;
19323
+ p = s(S, h), v = s(u, h), S !== v && (B && v && (o(v) || (m = i(v))) ? (m ? (m = !1, y = p && i(p) ? p : []) : y = p && o(p) ? p : {}, a(S, { name: h, newValue: l(B, y, v) })) : typeof v < "u" && a(S, { name: h, newValue: v }));
19324
+ return S;
19325
19325
  }, Ya;
19326
19326
  }
19327
19327
  var R_ = I_();
@@ -20436,8 +20436,8 @@ class Sl extends V_ {
20436
20436
  r.push([u, ...h]);
20437
20437
  else if (h.length > 0) {
20438
20438
  let [m, ...y] = h;
20439
- const C = r[v][1];
20440
- Ts(C) && Ts(m) && (m = Xa(!0, C, m)), r[v] = [u, m, ...y];
20439
+ const S = r[v][1];
20440
+ Ts(S) && Ts(m) && (m = Xa(!0, S, m)), r[v] = [u, m, ...y];
20441
20441
  }
20442
20442
  }
20443
20443
  }
@@ -20545,8 +20545,8 @@ function tk(e, t) {
20545
20545
  let m;
20546
20546
  for (m in Ha)
20547
20547
  if (Object.hasOwn(Ha, m) && Object.hasOwn(h.properties, m)) {
20548
- const y = h.properties[m], C = Ha[m];
20549
- (C === null || C.includes(h.tagName)) && (h.properties[m] = l(String(y || ""), m, h));
20548
+ const y = h.properties[m], S = Ha[m];
20549
+ (S === null || S.includes(h.tagName)) && (h.properties[m] = l(String(y || ""), m, h));
20550
20550
  }
20551
20551
  }
20552
20552
  if (h.type === "element") {
@@ -21304,7 +21304,7 @@ function Kk(e, t) {
21304
21304
  const n = t || {}, r = (n.align || []).concat(), i = n.stringLength || Xk, o = [], a = [], s = [], l = [];
21305
21305
  let u = 0, h = -1;
21306
21306
  for (; ++h < e.length; ) {
21307
- const C = [], N = [];
21307
+ const S = [], N = [];
21308
21308
  let R = -1;
21309
21309
  for (e[h].length > u && (u = e[h].length); ++R < e[h].length; ) {
21310
21310
  const B = Jk(e[h][R]);
@@ -21312,25 +21312,25 @@ function Kk(e, t) {
21312
21312
  const F = i(B);
21313
21313
  N[R] = F, (l[R] === void 0 || F > l[R]) && (l[R] = F);
21314
21314
  }
21315
- C.push(B);
21315
+ S.push(B);
21316
21316
  }
21317
- a[h] = C, s[h] = N;
21317
+ a[h] = S, s[h] = N;
21318
21318
  }
21319
21319
  let p = -1;
21320
21320
  if (typeof r == "object" && "length" in r)
21321
21321
  for (; ++p < u; )
21322
21322
  o[p] = qu(r[p]);
21323
21323
  else {
21324
- const C = qu(r);
21324
+ const S = qu(r);
21325
21325
  for (; ++p < u; )
21326
- o[p] = C;
21326
+ o[p] = S;
21327
21327
  }
21328
21328
  p = -1;
21329
21329
  const v = [], m = [];
21330
21330
  for (; ++p < u; ) {
21331
- const C = o[p];
21331
+ const S = o[p];
21332
21332
  let N = "", R = "";
21333
- C === 99 ? (N = ":", R = ":") : C === 108 ? N = ":" : C === 114 && (R = ":");
21333
+ S === 99 ? (N = ":", R = ":") : S === 108 ? N = ":" : S === 114 && (R = ":");
21334
21334
  let B = n.alignDelimiters === !1 ? 1 : Math.max(
21335
21335
  1,
21336
21336
  l[p] - N.length - R.length
@@ -21341,11 +21341,11 @@ function Kk(e, t) {
21341
21341
  a.splice(1, 0, v), s.splice(1, 0, m), h = -1;
21342
21342
  const y = [];
21343
21343
  for (; ++h < a.length; ) {
21344
- const C = a[h], N = s[h];
21344
+ const S = a[h], N = s[h];
21345
21345
  p = -1;
21346
21346
  const R = [];
21347
21347
  for (; ++p < u; ) {
21348
- const B = C[p] || "";
21348
+ const B = S[p] || "";
21349
21349
  let F = "", G = "";
21350
21350
  if (n.alignDelimiters !== !1) {
21351
21351
  const X = l[p] - (N[p] || 0), $ = o[p];
@@ -22045,16 +22045,16 @@ function zS(e) {
22045
22045
  tableRow: s
22046
22046
  }
22047
22047
  };
22048
- function a(m, y, C, N) {
22049
- return u(h(m, C, N), m.align);
22048
+ function a(m, y, S, N) {
22049
+ return u(h(m, S, N), m.align);
22050
22050
  }
22051
- function s(m, y, C, N) {
22052
- const R = p(m, C, N), B = u([R]);
22051
+ function s(m, y, S, N) {
22052
+ const R = p(m, S, N), B = u([R]);
22053
22053
  return B.slice(0, B.indexOf(`
22054
22054
  `));
22055
22055
  }
22056
- function l(m, y, C, N) {
22057
- const R = C.enter("tableCell"), B = C.enter("phrasing"), F = C.containerPhrasing(m, {
22056
+ function l(m, y, S, N) {
22057
+ const R = S.enter("tableCell"), B = S.enter("phrasing"), F = S.containerPhrasing(m, {
22058
22058
  ...N,
22059
22059
  before: o,
22060
22060
  after: o
@@ -22072,25 +22072,25 @@ function zS(e) {
22072
22072
  stringLength: i
22073
22073
  });
22074
22074
  }
22075
- function h(m, y, C) {
22075
+ function h(m, y, S) {
22076
22076
  const N = m.children;
22077
22077
  let R = -1;
22078
22078
  const B = [], F = y.enter("table");
22079
22079
  for (; ++R < N.length; )
22080
- B[R] = p(N[R], y, C);
22080
+ B[R] = p(N[R], y, S);
22081
22081
  return F(), B;
22082
22082
  }
22083
- function p(m, y, C) {
22083
+ function p(m, y, S) {
22084
22084
  const N = m.children;
22085
22085
  let R = -1;
22086
22086
  const B = [], F = y.enter("tableRow");
22087
22087
  for (; ++R < N.length; )
22088
- B[R] = l(N[R], m, y, C);
22088
+ B[R] = l(N[R], m, y, S);
22089
22089
  return F(), B;
22090
22090
  }
22091
- function v(m, y, C) {
22092
- let N = Ip.inlineCode(m, y, C);
22093
- return C.stack.includes("tableCell") && (N = N.replace(/\|/g, "\\$&")), N;
22091
+ function v(m, y, S) {
22092
+ let N = Ip.inlineCode(m, y, S);
22093
+ return S.stack.includes("tableCell") && (N = N.replace(/\|/g, "\\$&")), N;
22094
22094
  }
22095
22095
  }
22096
22096
  function FS() {
@@ -22510,8 +22510,8 @@ function aC(e, t, n) {
22510
22510
  return n(y);
22511
22511
  if (y === 93) {
22512
22512
  e.exit("chunkString");
22513
- const C = e.exit("gfmFootnoteDefinitionLabelString");
22514
- return o = _n(r.sliceSerialize(C)), e.enter("gfmFootnoteDefinitionLabelMarker"), e.consume(y), e.exit("gfmFootnoteDefinitionLabelMarker"), e.exit("gfmFootnoteDefinitionLabel"), v;
22513
+ const S = e.exit("gfmFootnoteDefinitionLabelString");
22514
+ return o = _n(r.sliceSerialize(S)), e.enter("gfmFootnoteDefinitionLabelMarker"), e.consume(y), e.exit("gfmFootnoteDefinitionLabelMarker"), e.exit("gfmFootnoteDefinitionLabel"), v;
22515
22515
  }
22516
22516
  return pt(y) || (s = !0), a++, e.consume(y), y === 92 ? p : h;
22517
22517
  }
@@ -22591,12 +22591,12 @@ function uC(e) {
22591
22591
  return u === 126 && h[h.length - 1][1].type !== "characterEscape" ? l(y) : (a.enter("strikethroughSequenceTemporary"), m(y));
22592
22592
  }
22593
22593
  function m(y) {
22594
- const C = Br(u);
22594
+ const S = Br(u);
22595
22595
  if (y === 126)
22596
22596
  return p > 1 ? l(y) : (a.consume(y), p++, m);
22597
22597
  if (p < 2 && !n) return l(y);
22598
22598
  const N = a.exit("strikethroughSequenceTemporary"), R = Br(y);
22599
- return N._open = !R || R === 2 && !!C, N._close = !C || C === 2 && !!R, s(y);
22599
+ return N._open = !R || R === 2 && !!S, N._close = !S || S === 2 && !!R, s(y);
22600
22600
  }
22601
22601
  }
22602
22602
  }
@@ -22733,9 +22733,9 @@ function mC(e, t, n) {
22733
22733
  return r.interrupt = !1, r.parser.lazy[r.now().line] ? n(O) : (e.enter("tableDelimiterRow"), a = !1, Xe(O) ? it(e, y, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(O) : y(O));
22734
22734
  }
22735
22735
  function y(O) {
22736
- return O === 45 || O === 58 ? N(O) : O === 124 ? (a = !0, e.enter("tableCellDivider"), e.consume(O), e.exit("tableCellDivider"), C) : X(O);
22736
+ return O === 45 || O === 58 ? N(O) : O === 124 ? (a = !0, e.enter("tableCellDivider"), e.consume(O), e.exit("tableCellDivider"), S) : X(O);
22737
22737
  }
22738
- function C(O) {
22738
+ function S(O) {
22739
22739
  return Xe(O) ? it(e, N, "whitespace")(O) : N(O);
22740
22740
  }
22741
22741
  function N(O) {
@@ -22810,8 +22810,8 @@ function go(e, t, n, r, i, o) {
22810
22810
  if (e.add(n[2], 0, [["enter", p, t]]), r !== 2) {
22811
22811
  const v = t.events[n[2]], m = t.events[n[3]];
22812
22812
  if (v[1].end = Object.assign({}, m[1].end), v[1].type = "chunkText", v[1].contentType = "text", n[3] > n[2] + 1) {
22813
- const y = n[2] + 1, C = n[3] - n[2] - 1;
22814
- e.add(y, C, []);
22813
+ const y = n[2] + 1, S = n[3] - n[2] - 1;
22814
+ e.add(y, S, []);
22815
22815
  }
22816
22816
  }
22817
22817
  e.add(n[3] + 1, 0, [["exit", p, t]]);
@@ -22912,9 +22912,9 @@ const SC = ({ text: e }) => {
22912
22912
  );
22913
22913
  };
22914
22914
  function CC({ messageData: e }) {
22915
- const [t, n] = Fe(
22915
+ const [t, n] = ze(
22916
22916
  null
22917
- ), [r, i] = Fe(!1), [o, a] = Fe(!1), { collectUserFeedback: s, onMessageClick: l, hideCopyButton: u } = Zr(), h = !e.isWelcomeMessage && typeof l == "function", p = We(
22917
+ ), [r, i] = ze(!1), [o, a] = ze(!1), { collectUserFeedback: s, onMessageClick: l, hideCopyButton: u } = Zr(), h = !e.isWelcomeMessage && typeof l == "function", p = We(
22918
22918
  "text-gray-400 hover:text-primary transition-colors"
22919
22919
  );
22920
22920
  return /* @__PURE__ */ De("div", { className: "inline-flex shrink-0 gap-2", children: [
@@ -22974,7 +22974,7 @@ function Ju({
22974
22974
  isBot: n,
22975
22975
  isSibling: r
22976
22976
  }) {
22977
- const i = !t, [o, a] = Fe(!1), s = Xs(), { onMessageClick: l } = Zr(), u = Uw(
22977
+ const i = !t, [o, a] = ze(!1), s = Xs(), { onMessageClick: l } = Zr(), u = Uw(
22978
22978
  e.content,
22979
22979
  n && i && !e.isThinking
22980
22980
  ), h = We({
@@ -23084,7 +23084,7 @@ function IC({
23084
23084
  if (!o) return null;
23085
23085
  const m = Array.isArray(t) ? t[t.length - 1] : t, y = !Array.isArray(t) && t.isThinking;
23086
23086
  if (y) return null;
23087
- const C = !u, N = "w-4 h-4 flex-shrink-0", R = new Date(m.timestamp).toLocaleString(
23087
+ const S = !u, N = "w-4 h-4 flex-shrink-0", R = new Date(m.timestamp).toLocaleString(
23088
23088
  void 0,
23089
23089
  {
23090
23090
  month: "short",
@@ -23098,9 +23098,9 @@ function IC({
23098
23098
  "div",
23099
23099
  {
23100
23100
  className: "flex items-center justify-between w-full max-w-[88%] mt-1 ml-1 gap-2 cursor-default",
23101
- title: C && !y ? R : void 0,
23101
+ title: S && !y ? R : void 0,
23102
23102
  children: [
23103
- /* @__PURE__ */ D("div", { className: "flex items-center space-x-1 min-w-0", children: C && /* @__PURE__ */ De(kn, { children: [
23103
+ /* @__PURE__ */ D("div", { className: "flex items-center space-x-1 min-w-0", children: S && /* @__PURE__ */ De(kn, { children: [
23104
23104
  r ? /* @__PURE__ */ D(
23105
23105
  Xo,
23106
23106
  {
@@ -23167,7 +23167,7 @@ function RC({
23167
23167
  onChange: t,
23168
23168
  disabled: n = !1
23169
23169
  }) {
23170
- const [r, i] = Fe(0), o = r || e;
23170
+ const [r, i] = ze(0), o = r || e;
23171
23171
  return /* @__PURE__ */ D("div", { className: "inline-flex gap-1", onMouseLeave: () => i(0), children: [1, 2, 3, 4, 5].map((a) => /* @__PURE__ */ D(
23172
23172
  "button",
23173
23173
  {
@@ -23194,7 +23194,7 @@ function RC({
23194
23194
  )) });
23195
23195
  }
23196
23196
  function TC({ onRate: e }) {
23197
- const [t, n] = Fe(0), [r, i] = Fe(!1);
23197
+ const [t, n] = ze(0), [r, i] = ze(!1);
23198
23198
  return /* @__PURE__ */ D("div", { className: "flex justify-center pt-2 pb-2", children: /* @__PURE__ */ De("div", { className: "rounded-2xl bg-muted px-4 py-3 flex flex-col items-center gap-1.5", children: [
23199
23199
  /* @__PURE__ */ D("p", { className: "text-sm font-medium text-foreground", children: r ? "Thanks for your feedback!" : "How was your experience" }),
23200
23200
  /* @__PURE__ */ D(RC, { value: t, onChange: (a) => {
@@ -23217,7 +23217,7 @@ function Fp() {
23217
23217
  ), PC);
23218
23218
  }
23219
23219
  function OC() {
23220
- const e = Zr(), t = Fp(), n = rt(null), r = rt(!0), i = rt(0), [o, a] = Fe(!1), [s, l] = Fe(!1), u = (m) => m.scrollHeight - m.scrollTop <= m.clientHeight + 60, h = (m) => {
23220
+ const e = Zr(), t = Fp(), n = rt(null), r = rt(!0), i = rt(0), [o, a] = ze(!1), [s, l] = ze(!1), u = (m) => m.scrollHeight - m.scrollTop <= m.clientHeight + 60, h = (m) => {
23221
23221
  const y = m.target;
23222
23222
  u(y) ? (a(!1), l(!1)) : (a(!0), l(!0));
23223
23223
  }, p = (m = "smooth") => {
@@ -23229,16 +23229,16 @@ function OC() {
23229
23229
  });
23230
23230
  }
23231
23231
  };
23232
- Ye(() => {
23232
+ He(() => {
23233
23233
  const m = e.messages?.length ?? 0, y = m < i.current;
23234
23234
  i.current = m, r.current ? (p("instant"), r.current = !1) : y ? (a(!1), l(!1), p("instant")) : s || p();
23235
- }, [e.messages, s]), Ye(() => {
23235
+ }, [e.messages, s]), He(() => {
23236
23236
  if (!e.isChatClosed) return;
23237
23237
  const m = setTimeout(() => {
23238
23238
  p("smooth");
23239
23239
  }, 500);
23240
23240
  return () => clearTimeout(m);
23241
- }, [e.isChatClosed]), Ye(() => {
23241
+ }, [e.isChatClosed]), He(() => {
23242
23242
  const m = n.current?.querySelector(
23243
23243
  "div.chat-interface-body"
23244
23244
  );
@@ -23268,7 +23268,7 @@ function OC() {
23268
23268
  ref: n,
23269
23269
  className: "h-full pr-4 [&>[data-radix-scroll-area-viewport]]:scroll-smooth",
23270
23270
  onViewportScroll: h,
23271
- children: /* @__PURE__ */ D("div", { className: "chat-interface-body flex flex-col space-y-4 mb-10", children: v.map((m, y, C) => {
23271
+ children: /* @__PURE__ */ D("div", { className: "chat-interface-body flex flex-col space-y-4 mb-10", children: v.map((m, y, S) => {
23272
23272
  const N = Array.isArray(m) ? m.map((R) => R.id).join("-") : m.id;
23273
23273
  return !Array.isArray(m) && m.isRatingRequest ? /* @__PURE__ */ D(
23274
23274
  TC,
@@ -23280,11 +23280,11 @@ function OC() {
23280
23280
  IC,
23281
23281
  {
23282
23282
  message: m,
23283
- nextMessage: C[y + 1],
23283
+ nextMessage: S[y + 1],
23284
23284
  className: We({
23285
23285
  "pt-4": y === 0,
23286
- "pb-2": y >= C.length - 1,
23287
- "pb-14": e.suggestedMessages && y >= C.length - 1
23286
+ "pb-2": y >= S.length - 1,
23287
+ "pb-14": e.suggestedMessages && y >= S.length - 1
23288
23288
  }),
23289
23289
  assistantLogo: e.assistantLogo
23290
23290
  },
@@ -23404,7 +23404,7 @@ const Qu = {
23404
23404
  );
23405
23405
  };
23406
23406
  function MC() {
23407
- const { error: e } = Ui(), t = !!e, n = Zr(), r = rt(null), [i, o] = Fe(""), a = NC(), s = Xs(), l = !!n.messages?.some((m) => m.isRatingRequest), u = () => i.trim() && !t && !l ? { backgroundColor: s.userBubbleColor } : {}, h = () => n.suggestedMessages ? /* @__PURE__ */ D(
23407
+ const { error: e } = Ui(), t = !!e, n = Zr(), r = rt(null), [i, o] = ze(""), a = NC(), s = Xs(), l = !!n.messages?.some((y) => y.isRatingRequest), u = n.keyboardInset ?? 0, h = () => i.trim() && !t && !l ? { backgroundColor: s.userBubbleColor } : {}, p = () => n.suggestedMessages ? /* @__PURE__ */ D(
23408
23408
  "div",
23409
23409
  {
23410
23410
  className: "w-full px-4 pb-10 -mt-20 overflow-x-auto no-scrollbar z-10 cursor-grab",
@@ -23412,36 +23412,36 @@ function MC() {
23412
23412
  children: /* @__PURE__ */ D("div", { className: "flex gap-2 min-w-min", children: [
23413
23413
  "Tell me more about Product X.",
23414
23414
  "Do you offer delivery in Palo Alto?"
23415
- ].map((y) => /* @__PURE__ */ D(
23415
+ ].map((S) => /* @__PURE__ */ D(
23416
23416
  "button",
23417
23417
  {
23418
23418
  onClick: () => {
23419
- o(y), r.current && r.current.focus();
23419
+ o(S), r.current && r.current.focus();
23420
23420
  },
23421
23421
  className: "whitespace-nowrap px-3 py-1.5 text-sm rounded-full bg-muted hover:bg-muted cursor-grab",
23422
- children: y
23422
+ children: S
23423
23423
  },
23424
- y
23424
+ S
23425
23425
  )) })
23426
23426
  }
23427
- ) : null, p = async (m) => {
23428
- m.preventDefault();
23429
- const y = i.trim();
23430
- if (!(!y || t || l))
23427
+ ) : null, v = async (y) => {
23428
+ y.preventDefault();
23429
+ const S = i.trim();
23430
+ if (!(!S || t || l))
23431
23431
  try {
23432
23432
  if (o(""), await n.onSendMessage?.({
23433
23433
  id: crypto.randomUUID(),
23434
- content: y,
23434
+ content: S,
23435
23435
  sender: "user",
23436
23436
  timestamp: (/* @__PURE__ */ new Date()).toISOString()
23437
23437
  }), r.current) {
23438
- const C = r.current;
23439
- C.style.height = "auto";
23440
- const N = Math.min(C.scrollHeight, 48);
23441
- C.style.height = `${N}px`;
23438
+ const N = r.current;
23439
+ N.style.height = "auto";
23440
+ const R = Math.min(N.scrollHeight, 48);
23441
+ N.style.height = `${R}px`;
23442
23442
  }
23443
23443
  } catch {
23444
- o(y);
23444
+ o(S);
23445
23445
  }
23446
23446
  };
23447
23447
  return /* @__PURE__ */ De(Ys, { className: "flex flex-col bg-background p-0", children: [
@@ -23469,60 +23469,67 @@ function MC() {
23469
23469
  ]
23470
23470
  }
23471
23471
  ) }) : /* @__PURE__ */ De(kn, { children: [
23472
- h(),
23473
- /* @__PURE__ */ De("div", { className: "flex flex-col w-full items-center px-4 mx-1 pb-4 -mt-6 z-20", children: [
23474
- t && /* @__PURE__ */ D(DC, { message: e.message, type: "error" }),
23475
- /* @__PURE__ */ De(
23476
- "form",
23477
- {
23478
- className: "relative flex items-center w-full m-0",
23479
- onSubmit: p,
23480
- children: [
23481
- /* @__PURE__ */ D("div", { className: "flex-1 bg-card rounded-3xl shadow-[0_0_4px_0_rgba(0,0,0,0.20)]", children: /* @__PURE__ */ D(
23482
- $p,
23483
- {
23484
- ref: r,
23485
- name: "message",
23486
- placeholder: "Type a message...",
23487
- className: "flex-1 min-h-[48px] max-h-[132px] text-base sm:text-sm resize-none border-0 pl-4 pr-12 py-3.5 scrollbar-thin scrollbar-thumb-border scrollbar-track-transparent hover:scrollbar-thumb-border leading-5 bg-card rounded-3xl",
23488
- rows: 1,
23489
- value: i,
23490
- disabled: t || l,
23491
- onChange: (m) => o(m.target.value),
23492
- onKeyDown: (m) => {
23493
- if (m.key === "Enter" && !m.shiftKey) {
23494
- m.preventDefault();
23495
- const y = m.currentTarget.form;
23496
- y && y.dispatchEvent(
23497
- new Event("submit", { bubbles: !0 })
23498
- );
23472
+ p(),
23473
+ /* @__PURE__ */ De(
23474
+ "div",
23475
+ {
23476
+ className: "flex flex-col w-full items-center px-4 mx-1 pb-4 -mt-6 z-20",
23477
+ style: u ? { transform: `translateY(-${u}px)` } : void 0,
23478
+ children: [
23479
+ t && /* @__PURE__ */ D(DC, { message: e.message, type: "error" }),
23480
+ /* @__PURE__ */ De(
23481
+ "form",
23482
+ {
23483
+ className: "relative flex items-center w-full m-0",
23484
+ onSubmit: v,
23485
+ children: [
23486
+ /* @__PURE__ */ D("div", { className: "flex-1 bg-card rounded-3xl shadow-[0_0_4px_0_rgba(0,0,0,0.20)]", children: /* @__PURE__ */ D(
23487
+ $p,
23488
+ {
23489
+ ref: r,
23490
+ name: "message",
23491
+ placeholder: "Type a message...",
23492
+ className: "flex-1 min-h-[48px] max-h-[132px] text-base sm:text-sm resize-none border-0 pl-4 pr-12 py-3.5 scrollbar-thin scrollbar-thumb-border scrollbar-track-transparent hover:scrollbar-thumb-border leading-5 bg-card rounded-3xl",
23493
+ rows: 1,
23494
+ value: i,
23495
+ disabled: t || l,
23496
+ onChange: (y) => o(y.target.value),
23497
+ onKeyDown: (y) => {
23498
+ if (y.key === "Enter" && !y.shiftKey) {
23499
+ y.preventDefault();
23500
+ const S = y.currentTarget.form;
23501
+ S && S.dispatchEvent(
23502
+ new Event("submit", { bubbles: !0 })
23503
+ );
23504
+ }
23505
+ },
23506
+ onInput: (y) => {
23507
+ const S = y.currentTarget;
23508
+ S.style.height = "auto";
23509
+ const N = Math.min(S.scrollHeight, 132);
23510
+ S.style.height = `${N}px`, o(S.value);
23511
+ }
23499
23512
  }
23500
- },
23501
- onInput: (m) => {
23502
- const y = m.currentTarget;
23503
- y.style.height = "auto";
23504
- const C = Math.min(y.scrollHeight, 132);
23505
- y.style.height = `${C}px`, o(y.value);
23506
- }
23507
- }
23508
- ) }),
23509
- /* @__PURE__ */ D(
23510
- "button",
23511
- {
23512
- type: "submit",
23513
- disabled: !i.trim() || t || l,
23514
- className: We(
23515
- "absolute top-0 bottom-2 right-2 self-end p-2 text-muted rounded-full transition-colors",
23516
- i.trim() && !t ? "text-primary-foreground" : "bg-muted-foreground"
23517
- ),
23518
- style: u(),
23519
- children: /* @__PURE__ */ D(Hb, { className: "h-4 w-4" })
23520
- }
23521
- )
23522
- ]
23523
- }
23524
- )
23525
- ] })
23513
+ ) }),
23514
+ /* @__PURE__ */ D(
23515
+ "button",
23516
+ {
23517
+ type: "submit",
23518
+ disabled: !i.trim() || t || l,
23519
+ className: We(
23520
+ "absolute top-0 bottom-2 right-2 self-end p-2 text-muted rounded-full transition-colors",
23521
+ i.trim() && !t ? "text-primary-foreground" : "bg-muted-foreground"
23522
+ ),
23523
+ style: h(),
23524
+ children: /* @__PURE__ */ D(Hb, { className: "h-4 w-4" })
23525
+ }
23526
+ )
23527
+ ]
23528
+ }
23529
+ )
23530
+ ]
23531
+ }
23532
+ )
23526
23533
  ] }),
23527
23534
  /* @__PURE__ */ De("div", { className: "w-full flex flex-col items-center justify-center space-x-2 p-1 pt-0 px-0 bg-[#FAF9F7] dark:bg-background", children: [
23528
23535
  /* @__PURE__ */ De("div", { className: "w-full flex items-center justify-center space-x-2 py-1 bg-[#FAF9F7] dark:bg-card", children: [
@@ -23547,8 +23554,8 @@ function zC(e, t = []) {
23547
23554
  const l = n.length;
23548
23555
  n = [...n, a];
23549
23556
  const u = (p) => {
23550
- const { scope: v, children: m, ...y } = p, C = v?.[e]?.[l] || s, N = P.useMemo(() => y, Object.values(y));
23551
- return /* @__PURE__ */ D(C.Provider, { value: N, children: m });
23557
+ const { scope: v, children: m, ...y } = p, S = v?.[e]?.[l] || s, N = P.useMemo(() => y, Object.values(y));
23558
+ return /* @__PURE__ */ D(S.Provider, { value: N, children: m });
23552
23559
  };
23553
23560
  u.displayName = o + "Provider";
23554
23561
  function h(p, v) {
@@ -23685,16 +23692,16 @@ function GC() {
23685
23692
  }
23686
23693
  var n = typeof Object.is == "function" ? Object.is : t, r = e.useState, i = e.useEffect, o = e.useLayoutEffect, a = e.useDebugValue;
23687
23694
  function s(p, v) {
23688
- var m = v(), y = r({ inst: { value: m, getSnapshot: v } }), C = y[0].inst, N = y[1];
23695
+ var m = v(), y = r({ inst: { value: m, getSnapshot: v } }), S = y[0].inst, N = y[1];
23689
23696
  return o(
23690
23697
  function() {
23691
- C.value = m, C.getSnapshot = v, l(C) && N({ inst: C });
23698
+ S.value = m, S.getSnapshot = v, l(S) && N({ inst: S });
23692
23699
  },
23693
23700
  [p, m, v]
23694
23701
  ), i(
23695
23702
  function() {
23696
- return l(C) && N({ inst: C }), p(function() {
23697
- l(C) && N({ inst: C });
23703
+ return l(S) && N({ inst: S }), p(function() {
23704
+ l(S) && N({ inst: S });
23698
23705
  });
23699
23706
  },
23700
23707
  [p]
@@ -23919,7 +23926,7 @@ function em({
23919
23926
  ] }, "chat-interface-sekelton");
23920
23927
  }
23921
23928
  function oE(e) {
23922
- const { isOpen: t = !1, isMobile: n, onCleanChat: r, onClose: i, theme: o } = e, a = qs(t, 50), [s, l] = Fe(!1), u = Qp({
23929
+ const { isOpen: t = !1, isMobile: n, onCleanChat: r, onClose: i, theme: o } = e, a = qs(t, 50), [s, l] = ze(!1), u = Qp({
23923
23930
  isOpen: a,
23924
23931
  isMobile: n
23925
23932
  }), h = () => s ? /* @__PURE__ */ De(Hs, { className: u, children: [
@@ -23956,7 +23963,7 @@ function oE(e) {
23956
23963
  ) }) });
23957
23964
  }
23958
23965
  function cs({ children: e, head: t, ...n }) {
23959
- const [r, i] = Fe(null), o = r?.contentWindow?.document?.head, a = r?.contentWindow?.document?.body;
23966
+ const [r, i] = ze(null), o = r?.contentWindow?.document?.head, a = r?.contentWindow?.document?.body;
23960
23967
  return /* @__PURE__ */ De("iframe", { ...n, ref: i, children: [
23961
23968
  o && gs(t, o),
23962
23969
  a && gs(e, a)
@@ -23972,8 +23979,8 @@ function sE({
23972
23979
  onMessageClick: r,
23973
23980
  autoHideDelay: i
23974
23981
  }) {
23975
- const [o, a] = Fe(!1), [s, l] = Fe("entering"), u = Xs();
23976
- return Ye(() => {
23982
+ const [o, a] = ze(!1), [s, l] = ze("entering"), u = Xs();
23983
+ return He(() => {
23977
23984
  if (t) {
23978
23985
  a(!0), l("entering");
23979
23986
  const h = setTimeout(() => {
@@ -24538,7 +24545,7 @@ const nm = (e) => {
24538
24545
  message: "Invalid config parameter.",
24539
24546
  recoverySuggestion: "Ensure passing the config object imported from `amplifyconfiguration.json`."
24540
24547
  });
24541
- const { aws_appsync_apiKey: t, aws_appsync_authenticationType: n, aws_appsync_graphqlEndpoint: r, aws_appsync_region: i, aws_bots_config: o, aws_cognito_identity_pool_id: a, aws_cognito_sign_up_verification_method: s, aws_cognito_mfa_configuration: l, aws_cognito_mfa_types: u, aws_cognito_password_protection_settings: h, aws_cognito_verification_mechanisms: p, aws_cognito_signup_attributes: v, aws_cognito_social_providers: m, aws_cognito_username_attributes: y, aws_mandatory_sign_in: C, aws_mobile_analytics_app_id: N, aws_mobile_analytics_app_region: R, aws_user_files_s3_bucket: B, aws_user_files_s3_bucket_region: F, aws_user_files_s3_dangerously_connect_to_http_endpoint_for_testing: G, aws_user_pools_id: X, aws_user_pools_web_client_id: $, geo: ae, oauth: ne, predictions: q, aws_cloud_logic_custom: O, Notifications: A, modelIntrospection: M } = e, W = {};
24548
+ const { aws_appsync_apiKey: t, aws_appsync_authenticationType: n, aws_appsync_graphqlEndpoint: r, aws_appsync_region: i, aws_bots_config: o, aws_cognito_identity_pool_id: a, aws_cognito_sign_up_verification_method: s, aws_cognito_mfa_configuration: l, aws_cognito_mfa_types: u, aws_cognito_password_protection_settings: h, aws_cognito_verification_mechanisms: p, aws_cognito_signup_attributes: v, aws_cognito_social_providers: m, aws_cognito_username_attributes: y, aws_mandatory_sign_in: S, aws_mobile_analytics_app_id: N, aws_mobile_analytics_app_region: R, aws_user_files_s3_bucket: B, aws_user_files_s3_bucket_region: F, aws_user_files_s3_dangerously_connect_to_http_endpoint_for_testing: G, aws_user_pools_id: X, aws_user_pools_web_client_id: $, geo: ae, oauth: ne, predictions: q, aws_cloud_logic_custom: O, Notifications: A, modelIntrospection: M } = e, W = {};
24542
24549
  N && (W.Analytics = {
24543
24550
  Pinpoint: {
24544
24551
  appId: N,
@@ -24605,7 +24612,7 @@ const nm = (e) => {
24605
24612
  (a || X) && (W.Auth = {
24606
24613
  Cognito: {
24607
24614
  identityPoolId: a,
24608
- allowGuestAccess: C !== "enable",
24615
+ allowGuestAccess: S !== "enable",
24609
24616
  signUpVerificationMethod: s,
24610
24617
  userAttributes: K,
24611
24618
  userPoolClientId: $,
@@ -24762,7 +24769,7 @@ function OE(e) {
24762
24769
  phone: u.includes("phone_number"),
24763
24770
  // Signing in with a username is not currently supported in Gen2, this should always evaluate to false
24764
24771
  username: u.includes("username")
24765
- }), h && (m.Cognito.userAttributes = h.reduce((y, C) => ({ ...y, [C]: { required: !0 } }), {})), v && (m.Cognito.passwordless = {
24772
+ }), h && (m.Cognito.userAttributes = h.reduce((y, S) => ({ ...y, [S]: { required: !0 } }), {})), v && (m.Cognito.passwordless = {
24766
24773
  emailOtpEnabled: v.email_otp_enabled,
24767
24774
  smsOtpEnabled: v.sms_otp_enabled,
24768
24775
  webAuthn: v.web_authn ? {
@@ -24996,8 +25003,8 @@ var pn = 64, WE = 32, qE = new Uint32Array([
24996
25003
  else {
24997
25004
  var m = this.temp[v - 2], y = (m >>> 17 | m << 15) ^ (m >>> 19 | m << 13) ^ m >>> 10;
24998
25005
  m = this.temp[v - 15];
24999
- var C = (m >>> 7 | m << 25) ^ (m >>> 18 | m << 14) ^ m >>> 3;
25000
- this.temp[v] = (y + this.temp[v - 7] | 0) + (C + this.temp[v - 16] | 0);
25006
+ var S = (m >>> 7 | m << 25) ^ (m >>> 18 | m << 14) ^ m >>> 3;
25007
+ this.temp[v] = (y + this.temp[v - 7] | 0) + (S + this.temp[v - 16] | 0);
25001
25008
  }
25002
25009
  var N = (((l >>> 6 | l << 26) ^ (l >>> 11 | l << 21) ^ (l >>> 25 | l << 7)) + (l & u ^ ~l & h) | 0) + (p + (qE[v] + this.temp[v] | 0) | 0) | 0, R = ((i >>> 2 | i << 30) ^ (i >>> 13 | i << 19) ^ (i >>> 22 | i << 10)) + (i & o ^ i & a ^ o & a) | 0;
25003
25010
  p = h, h = u, u = l, l = s + N | 0, s = a, a = o, o = i, i = N + R | 0;
@@ -25276,8 +25283,8 @@ var Dl = (function() {
25276
25283
  var u = l.value;
25277
25284
  u.remove(this);
25278
25285
  }
25279
- } catch (C) {
25280
- t = { error: C };
25286
+ } catch (S) {
25287
+ t = { error: S };
25281
25288
  } finally {
25282
25289
  try {
25283
25290
  l && !l.done && (n = s.return) && n.call(s);
@@ -25291,8 +25298,8 @@ var Dl = (function() {
25291
25298
  if ($t(h))
25292
25299
  try {
25293
25300
  h();
25294
- } catch (C) {
25295
- o = C instanceof fs ? C.errors : [C];
25301
+ } catch (S) {
25302
+ o = S instanceof fs ? S.errors : [S];
25296
25303
  }
25297
25304
  var p = this._finalizers;
25298
25305
  if (p) {
@@ -25302,12 +25309,12 @@ var Dl = (function() {
25302
25309
  var y = m.value;
25303
25310
  try {
25304
25311
  kf(y);
25305
- } catch (C) {
25306
- o = o ?? [], C instanceof fs ? o = Fo(Fo([], ws(o)), ws(C.errors)) : o.push(C);
25312
+ } catch (S) {
25313
+ o = o ?? [], S instanceof fs ? o = Fo(Fo([], ws(o)), ws(S.errors)) : o.push(S);
25307
25314
  }
25308
25315
  }
25309
- } catch (C) {
25310
- r = { error: C };
25316
+ } catch (S) {
25317
+ r = { error: S };
25311
25318
  } finally {
25312
25319
  try {
25313
25320
  m && !m.done && (i = v.return) && i.call(v);
@@ -26098,8 +26105,8 @@ function Tm(e, t) {
26098
26105
  var n = e.locationOffset.column - 1, r = Po(n) + e.body, i = t.line - 1, o = e.locationOffset.line - 1, a = t.line + o, s = t.line === 1 ? n : 0, l = t.column + s, u = "".concat(e.name, ":").concat(a, ":").concat(l, `
26099
26106
  `), h = r.split(/\r\n|[\n\r]/g), p = h[i];
26100
26107
  if (p.length > 120) {
26101
- for (var v = Math.floor(l / 80), m = l % 80, y = [], C = 0; C < p.length; C += 80)
26102
- y.push(p.slice(C, C + 80));
26108
+ for (var v = Math.floor(l / 80), m = l % 80, y = [], S = 0; S < p.length; S += 80)
26109
+ y.push(p.slice(S, S + 80));
26103
26110
  return u + Rf([["".concat(a), y[0]]].concat(y.slice(1, v + 1).map(function(N) {
26104
26111
  return ["", N];
26105
26112
  }), [[" ", Po(m - 1) + "^"], ["", y[v + 1]]]));
@@ -26256,8 +26263,8 @@ var ds = /* @__PURE__ */ (function(e) {
26256
26263
  function n(r, i, o, a, s, l, u) {
26257
26264
  var h, p, v, m;
26258
26265
  zI(this, n), m = t.call(this, r), m.name = "GraphQLError", m.originalError = l ?? void 0, m.nodes = Pf(Array.isArray(i) ? i : i ? [i] : void 0);
26259
- for (var y = [], C = 0, N = (R = m.nodes) !== null && R !== void 0 ? R : []; C < N.length; C++) {
26260
- var R, B = N[C], F = B.loc;
26266
+ for (var y = [], S = 0, N = (R = m.nodes) !== null && R !== void 0 ? R : []; S < N.length; S++) {
26267
+ var R, B = N[S], F = B.loc;
26261
26268
  F != null && y.push(F);
26262
26269
  }
26263
26270
  y = Pf(y), m.source = o ?? ((h = y) === null || h === void 0 ? void 0 : h[0].source), m.positions = a ?? ((p = y) === null || p === void 0 ? void 0 : p.map(function(X) {
@@ -26697,8 +26704,8 @@ class gR {
26697
26704
  const u = (m) => {
26698
26705
  const y = JSON.parse(m.data);
26699
26706
  if (y.id === r && y.type === "publish_success" && (this.awsRealTimeSocket && this.awsRealTimeSocket.removeEventListener("message", u), v(), s()), y.errors && y.errors.length > 0) {
26700
- const C = y.errors.map((N) => N.errorType);
26701
- v(), l(new Error(`Publish errors: ${C.join(", ")}`));
26707
+ const S = y.errors.map((N) => N.errorType);
26708
+ v(), l(new Error(`Publish errors: ${S.join(", ")}`));
26702
26709
  }
26703
26710
  }, h = (m) => {
26704
26711
  v(), l(new Error(`WebSocket error: ${m}`));
@@ -26897,7 +26904,7 @@ class gR {
26897
26904
  subscriptionFailedCallback: v,
26898
26905
  subscriptionState: m
26899
26906
  });
26900
- let y = JSON.stringify(a ?? r), C = !1;
26907
+ let y = JSON.stringify(a ?? r), S = !1;
26901
26908
  const N = [
26902
26909
  "UnauthorizedException",
26903
26910
  "Unauthorized",
@@ -26907,16 +26914,16 @@ class gR {
26907
26914
  const { errors: R } = JSON.parse(String(t.data));
26908
26915
  if (Array.isArray(R) && R.length > 0) {
26909
26916
  const B = R[0];
26910
- y = `${B.errorType}: ${B.message}`, C = N.includes(B.errorType) || B.message?.includes("Token expired");
26917
+ y = `${B.errorType}: ${B.message}`, S = N.includes(B.errorType) || B.message?.includes("Token expired");
26911
26918
  }
26912
26919
  } else if (i === Bt.GQL_ERROR && a && typeof a == "object") {
26913
26920
  const { errors: R } = a;
26914
26921
  if (Array.isArray(R) && R.length > 0) {
26915
26922
  const B = R[0];
26916
- C = N.includes(B.errorType) || B.message?.includes("Token expired");
26923
+ S = N.includes(B.errorType) || B.message?.includes("Token expired");
26917
26924
  }
26918
26925
  }
26919
- this.logger.debug(`${xn.CONNECTION_FAILED}: ${y}`), C && this.awsRealTimeSocket && (this.logger.warn("Subscription failed due to auth error, closing WebSocket to trigger reconnection with fresh tokens"), this.awsRealTimeSocket.close(1e3, "Auth error - reconnecting")), s.error({
26926
+ this.logger.debug(`${xn.CONNECTION_FAILED}: ${y}`), S && this.awsRealTimeSocket && (this.logger.warn("Subscription failed due to auth error, closing WebSocket to trigger reconnection with fresh tokens"), this.awsRealTimeSocket.close(1e3, "Auth error - reconnecting")), s.error({
26920
26927
  errors: [
26921
26928
  {
26922
26929
  ...new ds(`${xn.CONNECTION_FAILED}: ${y}`)
@@ -26964,8 +26971,8 @@ class gR {
26964
26971
  urlSafe: !0,
26965
26972
  skipPadding: !0
26966
26973
  })}`, m = dR(o), y = hR(t, m);
26967
- await this._establishRetryableConnection(y, v), this.promiseArray.forEach(({ res: C }) => {
26968
- this.logger.debug("Notifying connection successful"), C();
26974
+ await this._establishRetryableConnection(y, v), this.promiseArray.forEach(({ res: S }) => {
26975
+ this.logger.debug("Notifying connection successful"), S();
26969
26976
  }), this.socketStatus = Ht.READY, this.promiseArray = [];
26970
26977
  } catch (l) {
26971
26978
  this.logger.debug("Connection exited with", l), this.promiseArray.forEach(({ rej: u }) => {
@@ -27093,7 +27100,7 @@ class wR extends gR {
27093
27100
  const { appSyncGraphqlEndpoint: s, authenticationType: l, query: u, apiKey: h, region: p, variables: v } = t, m = {
27094
27101
  channel: u,
27095
27102
  events: v !== void 0 ? ps(v) : void 0
27096
- }, y = JSON.stringify(m), C = {
27103
+ }, y = JSON.stringify(m), S = {
27097
27104
  ...await Lm({
27098
27105
  apiKey: h,
27099
27106
  appSyncGraphqlEndpoint: s,
@@ -27111,14 +27118,14 @@ class wR extends gR {
27111
27118
  channel: u,
27112
27119
  events: v !== void 0 ? ps(v) : void 0,
27113
27120
  authorization: {
27114
- ...C
27121
+ ...S
27115
27122
  },
27116
27123
  payload: {
27117
27124
  events: v !== void 0 ? ps(v) : void 0,
27118
27125
  channel: u,
27119
27126
  extensions: {
27120
27127
  authorization: {
27121
- ...C
27128
+ ...S
27122
27129
  }
27123
27130
  }
27124
27131
  },
@@ -28204,15 +28211,15 @@ const n2 = /* @__PURE__ */ se("$ZodObject", (e, t) => {
28204
28211
  s.value = {};
28205
28212
  const h = [], p = a.shape;
28206
28213
  for (const v of a.keys) {
28207
- const m = p[v], y = m._zod.optout === "optional", C = m._zod.run({ value: u[v], issues: [] }, l);
28208
- C instanceof Promise ? h.push(C.then((N) => qo(N, s, v, u, y))) : qo(C, s, v, u, y);
28214
+ const m = p[v], y = m._zod.optout === "optional", S = m._zod.run({ value: u[v], issues: [] }, l);
28215
+ S instanceof Promise ? h.push(S.then((N) => qo(N, s, v, u, y))) : qo(S, s, v, u, y);
28209
28216
  }
28210
28217
  return o ? Gm(h, u, s, l, r.value, e) : h.length ? Promise.all(h).then(() => s) : s;
28211
28218
  };
28212
28219
  }), r2 = /* @__PURE__ */ se("$ZodObjectJIT", (e, t) => {
28213
28220
  n2.init(e, t);
28214
28221
  const n = e._zod.parse, r = Bl(() => Zm(t)), i = (v) => {
28215
- const m = new CT(["shape", "payload", "ctx"]), y = r.value, C = (F) => {
28222
+ const m = new CT(["shape", "payload", "ctx"]), y = r.value, S = (F) => {
28216
28223
  const G = Bf(F);
28217
28224
  return `shape[${G}]._zod.run({ value: input[${G}], issues: [] }, ctx)`;
28218
28225
  };
@@ -28224,7 +28231,7 @@ const n2 = /* @__PURE__ */ se("$ZodObject", (e, t) => {
28224
28231
  m.write("const newResult = {};");
28225
28232
  for (const F of y.keys) {
28226
28233
  const G = N[F], X = Bf(F), ae = v[F]?._zod?.optout === "optional";
28227
- m.write(`const ${G} = ${C(F)};`), ae ? m.write(`
28234
+ m.write(`const ${G} = ${S(F)};`), ae ? m.write(`
28228
28235
  if (${G}.issues.length) {
28229
28236
  if (${X} in input) {
28230
28237
  payload.issues = payload.issues.concat(${G}.issues.map(iss => ({
@@ -29142,11 +29149,11 @@ function eg(e, t) {
29142
29149
  r(h);
29143
29150
  const v = e.seen.get(h), m = v.schema;
29144
29151
  if (m.$ref && (e.target === "draft-07" || e.target === "draft-04" || e.target === "openapi-3.0") ? (l.allOf = l.allOf ?? [], l.allOf.push(m)) : Object.assign(l, m), Object.assign(l, u), a._zod.parent === h)
29145
- for (const C in l)
29146
- C === "$ref" || C === "allOf" || C in u || delete l[C];
29152
+ for (const S in l)
29153
+ S === "$ref" || S === "allOf" || S in u || delete l[S];
29147
29154
  if (m.$ref && v.def)
29148
- for (const C in l)
29149
- C === "$ref" || C === "allOf" || C in v.def && JSON.stringify(l[C]) === JSON.stringify(v.def[C]) && delete l[C];
29155
+ for (const S in l)
29156
+ S === "$ref" || S === "allOf" || S in v.def && JSON.stringify(l[S]) === JSON.stringify(v.def[S]) && delete l[S];
29150
29157
  }
29151
29158
  const p = a._zod.parent;
29152
29159
  if (p && p !== h) {
@@ -29844,37 +29851,37 @@ function bN({
29844
29851
  fetchHistory: m,
29845
29852
  backupPollingInterval: y = gN
29846
29853
  }) {
29847
- const [C, N] = Fe(!1), R = rt(/* @__PURE__ */ new Set());
29848
- Ye(() => {
29854
+ const [S, N] = ze(!1), R = rt(/* @__PURE__ */ new Set());
29855
+ He(() => {
29849
29856
  for (const Ue of n)
29850
29857
  Ue.id && R.current.add(Ue.id);
29851
29858
  }, [n]);
29852
29859
  const B = rt(null), F = rt(null), G = rt(0), X = rt(null), $ = rt(null), ae = rt(!1), ne = rt(!1), q = rt(r), O = rt(i), A = rt(o), M = rt(a), W = rt(s), I = rt(l), L = rt(u), H = rt(h), ee = rt(p), re = rt(v), K = rt(m);
29853
- Ye(() => {
29860
+ He(() => {
29854
29861
  q.current = r;
29855
- }, [r]), Ye(() => {
29862
+ }, [r]), He(() => {
29856
29863
  O.current = i;
29857
- }, [i]), Ye(() => {
29864
+ }, [i]), He(() => {
29858
29865
  A.current = o;
29859
- }, [o]), Ye(() => {
29866
+ }, [o]), He(() => {
29860
29867
  M.current = a;
29861
- }, [a]), Ye(() => {
29868
+ }, [a]), He(() => {
29862
29869
  W.current = s;
29863
- }, [s]), Ye(() => {
29870
+ }, [s]), He(() => {
29864
29871
  I.current = l;
29865
- }, [l]), Ye(() => {
29872
+ }, [l]), He(() => {
29866
29873
  L.current = u;
29867
- }, [u]), Ye(() => {
29874
+ }, [u]), He(() => {
29868
29875
  H.current = h;
29869
- }, [h]), Ye(() => {
29876
+ }, [h]), He(() => {
29870
29877
  ee.current = p;
29871
- }, [p]), Ye(() => {
29878
+ }, [p]), He(() => {
29872
29879
  re.current = v;
29873
- }, [v]), Ye(() => {
29880
+ }, [v]), He(() => {
29874
29881
  K.current = m;
29875
29882
  }, [m]);
29876
29883
  const { publishError: _ } = Ui(), te = e?.app_sync_url, me = e?.app_sync_region, T = e?.app_sync_api_key, oe = e?.app_sync_token;
29877
- Ye(() => {
29884
+ He(() => {
29878
29885
  te && me && T && (jl.configure(
29879
29886
  jw(te, T, me)
29880
29887
  ), N(!0));
@@ -29987,7 +29994,7 @@ function bN({
29987
29994
  } catch (bt) {
29988
29995
  console.warn("Backup poll failed:", bt);
29989
29996
  }
29990
- }, []), ze = ct(
29997
+ }, []), Fe = ct(
29991
29998
  (Ue) => {
29992
29999
  we(), $.current = setInterval(
29993
30000
  () => ve(Ue),
@@ -30014,26 +30021,26 @@ function bN({
30014
30021
  }
30015
30022
  }, bt);
30016
30023
  }, [Ke, ve]);
30017
- Ye(() => {
30024
+ He(() => {
30018
30025
  Me.current = Ee;
30019
30026
  }, [Ee]);
30020
30027
  const Ne = ct(
30021
30028
  async (Ue) => {
30022
- if (!C || !Ue)
30029
+ if (!S || !Ue)
30023
30030
  throw new Error("Cannot connect: Amplify not ready or missing chatId");
30024
- $e(), ae.current = !0, F.current = Ue, G.current = 0, await Ke(Ue), ze(Ue);
30031
+ $e(), ae.current = !0, F.current = Ue, G.current = 0, await Ke(Ue), Fe(Ue);
30025
30032
  },
30026
- [C, $e, Ke, ze]
30033
+ [S, $e, Ke, Fe]
30027
30034
  ), ot = ct(() => {
30028
30035
  ae.current = !1, F.current = null, G.current = 0, $e(), we(), ue();
30029
30036
  }, [$e, we, ue]), at = ct(() => {
30030
30037
  R.current.clear();
30031
30038
  }, []);
30032
- return Ye(() => {
30033
- !t || !C || F.current === t || Ne(t).catch((Ue) => {
30039
+ return He(() => {
30040
+ !t || !S || F.current === t || Ne(t).catch((Ue) => {
30034
30041
  console.error("Failed to eagerly connect:", Ue), F.current = t, ae.current = !0, Me.current();
30035
30042
  });
30036
- }, [t, C, Ne]), Ye(() => {
30043
+ }, [t, S, Ne]), He(() => {
30037
30044
  const Ue = Nl.listen(
30038
30045
  "api",
30039
30046
  (bt) => {
@@ -30043,7 +30050,7 @@ function bN({
30043
30050
  }
30044
30051
  );
30045
30052
  return () => Ue();
30046
- }, []), Ye(() => () => {
30053
+ }, []), He(() => () => {
30047
30054
  ot();
30048
30055
  }, [ot]), { connect: Ne, disconnect: ot, clearProcessedIds: at };
30049
30056
  }
@@ -30063,10 +30070,10 @@ function vN({
30063
30070
  onChatClosed: v,
30064
30071
  isChatClosed: m
30065
30072
  }) {
30066
- const { saveChatData: y, clearChatData: C, updateLastActivity: N, markChatClosed: R } = Pl({
30073
+ const { saveChatData: y, clearChatData: S, updateLastActivity: N, markChatClosed: R } = Pl({
30067
30074
  appId: e
30068
30075
  }), { publishApiError: B, publishNetworkError: F } = Ui(), { showCognition: G, hideCognition: X } = Fp(), $ = rt(a);
30069
- Ye(() => {
30076
+ He(() => {
30070
30077
  $.current = a;
30071
30078
  }, [a]);
30072
30079
  const ae = ct(
@@ -30101,7 +30108,7 @@ function vN({
30101
30108
  }
30102
30109
  ]);
30103
30110
  }, [u]);
30104
- Ye(() => {
30111
+ He(() => {
30105
30112
  }, [q]);
30106
30113
  const O = ct((re) => $.current ? $.current.getChatHistory(re) : Promise.resolve([]), []), A = ct(() => {
30107
30114
  R(), v?.();
@@ -30120,12 +30127,12 @@ function vN({
30120
30127
  }), L = ct(() => {
30121
30128
  X(), W(), I(), u(
30122
30129
  (re) => re.filter((K) => Array.isArray(K) ? !1 : K.isWelcomeMessage)
30123
- ), C(), p(null);
30130
+ ), S(), p(null);
30124
30131
  }, [
30125
30132
  X,
30126
30133
  W,
30127
30134
  I,
30128
- C,
30135
+ S,
30129
30136
  u,
30130
30137
  p
30131
30138
  ]), H = ct(
@@ -30176,7 +30183,7 @@ function vN({
30176
30183
  )
30177
30184
  );
30178
30185
  } catch (te) {
30179
- throw X(), u((me) => me.filter((T) => !T.isThinking)), te instanceof Tl || te instanceof gr && te.status === 403 ? (F(), te) : (B(te), te instanceof gr && te.status >= 500 ? (p(null), C(), u((me) => me.slice(0, -1)), a.reset()) : u(
30186
+ throw X(), u((me) => me.filter((T) => !T.isThinking)), te instanceof Tl || te instanceof gr && te.status === 403 ? (F(), te) : (B(te), te instanceof gr && te.status >= 500 ? (p(null), S(), u((me) => me.slice(0, -1)), a.reset()) : u(
30180
30187
  (me) => me.map(
30181
30188
  (T) => T.id === K.id ? { ...T, isFailed: !0 } : T
30182
30189
  )
@@ -30199,7 +30206,7 @@ function vN({
30199
30206
  X,
30200
30207
  B,
30201
30208
  F,
30202
- C,
30209
+ S,
30203
30210
  n,
30204
30211
  r
30205
30212
  ]
@@ -30298,9 +30305,9 @@ class yN {
30298
30305
  }
30299
30306
  const ko = /* @__PURE__ */ new Map(), So = /* @__PURE__ */ new Map();
30300
30307
  function wN(e, t, n) {
30301
- const r = n?.dedupe !== !1, [i, o] = Fe(
30308
+ const r = n?.dedupe !== !1, [i, o] = ze(
30302
30309
  () => ko.get(e)
30303
- ), { publishApiError: a, publishNetworkError: s } = Ui(), [l, u] = Fe(void 0), [h, p] = Fe(!1), v = rt(!0);
30310
+ ), { publishApiError: a, publishNetworkError: s } = Ui(), [l, u] = ze(void 0), [h, p] = ze(!1), v = rt(!0);
30304
30311
  rt(() => (v.current = !0, () => {
30305
30312
  v.current = !1;
30306
30313
  }));
@@ -30315,8 +30322,8 @@ function wN(e, t, n) {
30315
30322
  return await So.get(e);
30316
30323
  const y = t();
30317
30324
  r && So.set(e, y);
30318
- const C = await y;
30319
- return ko.set(e, C), v.current && o(C), C;
30325
+ const S = await y;
30326
+ return ko.set(e, S), v.current && o(S), S;
30320
30327
  } catch (y) {
30321
30328
  throw y instanceof Tl || y instanceof gr && y.status === 403 ? s() : a(y), v.current && u(y), y;
30322
30329
  } finally {
@@ -30326,8 +30333,8 @@ function wN(e, t, n) {
30326
30333
  return { data: i, error: l, isLoading: h, fetch: m };
30327
30334
  }
30328
30335
  function xN(e) {
30329
- const { appId: t, initialUserId: n } = e, { getSavedChatData: r } = Pl({ appId: t }), [i, o] = Fe(!1), [a, s] = Fe(""), [l, u] = Fe(""), [h, p] = Fe(null);
30330
- return Ye(() => {
30336
+ const { appId: t, initialUserId: n } = e, { getSavedChatData: r } = Pl({ appId: t }), [i, o] = ze(!1), [a, s] = ze(""), [l, u] = ze(""), [h, p] = ze(null);
30337
+ return He(() => {
30331
30338
  const v = r();
30332
30339
  v?.userId ? v?.externalId !== n ? (s(v.userId), p(n)) : (s(v?.userId), p(v.externalId)) : n ? (s(n), p(n)) : s(crypto.randomUUID()), u(v?.deviceId || crypto.randomUUID()), o(!0);
30333
30340
  }, [r, n]), {
@@ -30351,13 +30358,13 @@ function _N({
30351
30358
  isReady: l
30352
30359
  } = xN({ appId: t, initialUserId: n }), { isChatExpired: u, clearChatData: h, getSavedChatData: p } = Pl({
30353
30360
  appId: t
30354
- }), { current: v } = rt(e || Fw()), [m] = Fe(
30361
+ }), { current: v } = rt(e || Fw()), [m] = ze(
30355
30362
  new yN({
30356
30363
  baseURL: v,
30357
30364
  appId: t
30358
30365
  })
30359
- ), [y, C] = Fe(null), [N, R] = Fe(null), [B, F] = Fe([]), [G, X] = Fe(!1), [$, ae] = Fe(!1), q = wN(`sdk-boot-${t}`, () => m.boot()).fetch;
30360
- return Ye(() => {
30366
+ ), [y, S] = ze(null), [N, R] = ze(null), [B, F] = ze([]), [G, X] = ze(!1), [$, ae] = ze(!1), q = wN(`sdk-boot-${t}`, () => m.boot()).fetch;
30367
+ return He(() => {
30361
30368
  if (u())
30362
30369
  h();
30363
30370
  else {
@@ -30371,7 +30378,7 @@ function _N({
30371
30378
  id: O
30372
30379
  }), M && M.length > 0 && F(M), W && ae(!0));
30373
30380
  }
30374
- }, [p, u, h]), Ye(() => {
30381
+ }, [p, u, h]), He(() => {
30375
30382
  if (!l) return;
30376
30383
  (async () => {
30377
30384
  const [A, M] = await Uc(
@@ -30388,7 +30395,7 @@ function _N({
30388
30395
  return;
30389
30396
  }
30390
30397
  const L = W.chat_settings.welcome_message;
30391
- C(W.chat_settings), L && F((H) => H.length > 0 || H.some((ee) => ee.isWelcomeMessage) ? H : [
30398
+ S(W.chat_settings), L && F((H) => H.length > 0 || H.some((ee) => ee.isWelcomeMessage) ? H : [
30392
30399
  {
30393
30400
  id: crypto.randomUUID(),
30394
30401
  content: L,
@@ -30417,16 +30424,16 @@ function kN() {
30417
30424
  return typeof window > "u" ? !1 : window.matchMedia(ag).matches;
30418
30425
  }
30419
30426
  function SN(e) {
30420
- const [t, n] = Fe(kN), [r, i] = Fe(
30427
+ const [t, n] = ze(kN), [r, i] = ze(
30421
30428
  null
30422
30429
  ), o = e ?? t, a = typeof window > "u";
30423
- return Ye(() => {
30430
+ return He(() => {
30424
30431
  if (a) return;
30425
30432
  const s = window.matchMedia(ag), l = (u) => {
30426
30433
  n(u.matches);
30427
30434
  };
30428
30435
  return l(s), s.addEventListener("change", l), () => s.removeEventListener("change", l);
30429
- }, [a]), Ye(() => {
30436
+ }, [a]), He(() => {
30430
30437
  if (a) return;
30431
30438
  const s = document.createElement("div");
30432
30439
  return s.className = "eloquent-ai-chat-portal", s.style.position = "relative", s.style.zIndex = "30", document.body.appendChild(s), i(s), () => {
@@ -30454,7 +30461,7 @@ function CN({
30454
30461
  userId: v,
30455
30462
  externalId: m,
30456
30463
  deviceId: y,
30457
- apiClient: C,
30464
+ apiClient: S,
30458
30465
  chatSettings: N,
30459
30466
  currentChat: R,
30460
30467
  messages: B,
@@ -30466,17 +30473,17 @@ function CN({
30466
30473
  initialUserId: r,
30467
30474
  userName: i,
30468
30475
  userData: o
30469
- }), X = lE({ chatProps: a, chatSettings: N }), [$, ae] = Fe(
30476
+ }), X = lE({ chatProps: a, chatSettings: N }), [$, ae] = ze(
30470
30477
  h ? !1 : l ?? h
30471
- ), ne = qs($, 400), [q, O] = Fe(
30478
+ ), ne = qs($, 400), [q, O] = ze(
30472
30479
  a?.messages ?? []
30473
- ), [A, M] = Fe(R), [W, I] = Fe(!1);
30474
- Ye(() => {
30480
+ ), [A, M] = ze(R), [W, I] = ze(!1);
30481
+ He(() => {
30475
30482
  G && I(!0);
30476
30483
  }, [G]);
30477
30484
  const L = ct(() => {
30478
30485
  I(!0);
30479
- }, []), [H, ee] = Fe({
30486
+ }, []), [H, ee] = ze({
30480
30487
  text: "",
30481
30488
  isVisible: !1,
30482
30489
  autoHideDelay: u
@@ -30487,7 +30494,7 @@ function CN({
30487
30494
  userData: o,
30488
30495
  externalId: m,
30489
30496
  deviceId: y,
30490
- apiClient: C,
30497
+ apiClient: S,
30491
30498
  chatSettings: N,
30492
30499
  setMessages: O,
30493
30500
  messages: q,
@@ -30496,12 +30503,12 @@ function CN({
30496
30503
  onChatClosed: L,
30497
30504
  isChatClosed: W
30498
30505
  });
30499
- Ye(() => {
30506
+ He(() => {
30500
30507
  B.length > 0 && O(B);
30501
- }, [B]), Ye(() => {
30508
+ }, [B]), He(() => {
30502
30509
  R && M(R);
30503
- }, [R]), Ye(() => {
30504
- A && m && C?.identifyUser({
30510
+ }, [R]), He(() => {
30511
+ A && m && S?.identifyUser({
30505
30512
  userId: v,
30506
30513
  userName: i,
30507
30514
  userData: o,
@@ -30516,7 +30523,7 @@ function CN({
30516
30523
  o,
30517
30524
  y,
30518
30525
  A,
30519
- C
30526
+ S
30520
30527
  ]);
30521
30528
  const te = ct(() => {
30522
30529
  K(), I(!1);
@@ -30526,7 +30533,7 @@ function CN({
30526
30533
  isVisible: !1
30527
30534
  }));
30528
30535
  }, []);
30529
- return Ye(() => {
30536
+ return He(() => {
30530
30537
  N?.auto_display_welcome_message && N?.welcome_message && F && ee((T) => ({
30531
30538
  ...T,
30532
30539
  text: N.welcome_message || T.text,
@@ -30554,8 +30561,40 @@ function CN({
30554
30561
  onRateChat: _
30555
30562
  };
30556
30563
  }
30557
- function EN() {
30558
- const [e, t] = Fe(!1), [n, r] = Fe(null), i = rt(null), o = rt(null), a = ct((l = "...") => {
30564
+ function EN(e) {
30565
+ const [t, n] = ze(0);
30566
+ return He(() => {
30567
+ const r = window.visualViewport;
30568
+ if (!e || !r) {
30569
+ n(0);
30570
+ return;
30571
+ }
30572
+ const i = () => {
30573
+ const o = window.innerHeight - r.height - r.offsetTop;
30574
+ n(Math.max(0, Math.round(o)));
30575
+ };
30576
+ return i(), r.addEventListener("resize", i), r.addEventListener("scroll", i), () => {
30577
+ r.removeEventListener("resize", i), r.removeEventListener("scroll", i), n(0);
30578
+ };
30579
+ }, [e]), t;
30580
+ }
30581
+ function AN(e) {
30582
+ He(() => {
30583
+ if (!e) return;
30584
+ const { body: t } = document, n = window.scrollY, r = {
30585
+ position: t.style.position,
30586
+ top: t.style.top,
30587
+ left: t.style.left,
30588
+ right: t.style.right,
30589
+ overflow: t.style.overflow
30590
+ };
30591
+ return t.style.position = "fixed", t.style.top = `-${n}px`, t.style.left = "0", t.style.right = "0", t.style.overflow = "hidden", () => {
30592
+ t.style.position = r.position, t.style.top = r.top, t.style.left = r.left, t.style.right = r.right, t.style.overflow = r.overflow, window.scrollTo(0, n);
30593
+ };
30594
+ }, [e]);
30595
+ }
30596
+ function IN() {
30597
+ const [e, t] = ze(!1), [n, r] = ze(null), i = rt(null), o = rt(null), a = ct((l = "...") => {
30559
30598
  const u = () => {
30560
30599
  r(l), t(!0), o.current = null, i.current && clearTimeout(i.current), i.current = setTimeout(() => {
30561
30600
  i.current = null, o.current && u();
@@ -30572,16 +30611,16 @@ function EN() {
30572
30611
  hideCognition: s
30573
30612
  };
30574
30613
  }
30575
- function AN({
30614
+ function RN({
30576
30615
  children: e
30577
30616
  }) {
30578
- const t = EN();
30617
+ const t = IN();
30579
30618
  return /* @__PURE__ */ D(zp.Provider, { value: t, children: e });
30580
30619
  }
30581
- const IN = ({
30620
+ const TN = ({
30582
30621
  children: e
30583
30622
  }) => {
30584
- const [t, n] = Fe(null), [r, i] = Fe(!1), o = LC(n), u = {
30623
+ const [t, n] = ze(null), [r, i] = ze(!1), o = LC(n), u = {
30585
30624
  error: t,
30586
30625
  hideSdk: r,
30587
30626
  publishApiError: o,
@@ -30590,8 +30629,8 @@ const IN = ({
30590
30629
  clearError: () => n(null)
30591
30630
  };
30592
30631
  return /* @__PURE__ */ D(Up.Provider, { value: u, children: e });
30593
- }, RN = 100;
30594
- function TN({
30632
+ }, PN = 100;
30633
+ function ON({
30595
30634
  appId: e,
30596
30635
  userId: t,
30597
30636
  userName: n,
@@ -30607,7 +30646,7 @@ function TN({
30607
30646
  INTERNAL_ONLY_BLOCK_STYLE: v = !1,
30608
30647
  INTERNAL_ONLY_FEATURE_MESSAGE_CLICK: m = void 0,
30609
30648
  INTERNAL_ONLY_FEATURE_CLEAR_CHAT_CLICK: y = void 0,
30610
- INTERNAL_ONLY_FEATURE_HIDE_COPY_BUTTON: C = !0,
30649
+ INTERNAL_ONLY_FEATURE_HIDE_COPY_BUTTON: S = !0,
30611
30650
  INTERNAL_ONLY_ENVIRONMENT: N = "live",
30612
30651
  INTERNAL_ONLY_API_URL: R
30613
30652
  }) {
@@ -30637,9 +30676,9 @@ function TN({
30637
30676
  isMobile: a,
30638
30677
  initialOpen: u,
30639
30678
  proactiveMessageHideDelay: o
30640
- });
30641
- if (B) return null;
30642
- const ee = () => /* @__PURE__ */ De(
30679
+ }), ee = EN(G && X);
30680
+ if (AN(G && X), B) return null;
30681
+ const re = () => /* @__PURE__ */ De(
30643
30682
  "div",
30644
30683
  {
30645
30684
  style: {
@@ -30678,7 +30717,7 @@ function TN({
30678
30717
  // 100dvh accounts for mobile browser chrome (e.g. address bar); 100vh fallback for older browsers
30679
30718
  "--chat-mobile-viewport-height": "100dvh",
30680
30719
  height: G ? "var(--chat-mobile-viewport-height, 100vh)" : "700px",
30681
- maxHeight: G ? "var(--chat-mobile-viewport-height, 100vh)" : `calc(100% - ${RN}px)`,
30720
+ maxHeight: G ? "var(--chat-mobile-viewport-height, 100vh)" : `calc(100% - ${PN}px)`,
30682
30721
  border: "none",
30683
30722
  zIndex: 2147483e3,
30684
30723
  position: "fixed",
@@ -30703,13 +30742,14 @@ function TN({
30703
30742
  {
30704
30743
  ...$,
30705
30744
  isOpen: X,
30745
+ keyboardInset: ee,
30706
30746
  messages: ne,
30707
30747
  onSendMessage: O,
30708
30748
  onMessageClick: m,
30709
30749
  isMobile: G,
30710
30750
  closeButton: s,
30711
30751
  cleanChatButton: l,
30712
- hideCopyButton: C,
30752
+ hideCopyButton: S,
30713
30753
  isChatClosed: I,
30714
30754
  onStartNewChat: L,
30715
30755
  onRateChat: H,
@@ -30743,7 +30783,7 @@ function TN({
30743
30783
  zb,
30744
30784
  {
30745
30785
  isOpen: X,
30746
- toggleBubble: () => A((K) => !K)
30786
+ toggleBubble: () => A((_) => !_)
30747
30787
  }
30748
30788
  )
30749
30789
  }
@@ -30775,22 +30815,22 @@ function TN({
30775
30815
  ]
30776
30816
  }
30777
30817
  );
30778
- return /* @__PURE__ */ D(kn, { children: v ? ee() : q ? /* @__PURE__ */ D(aE, { container: q, children: ee() }) : null });
30818
+ return /* @__PURE__ */ D(kn, { children: v ? re() : q ? /* @__PURE__ */ D(aE, { container: q, children: re() }) : null });
30779
30819
  }
30780
- function PN(e) {
30781
- return /* @__PURE__ */ D(IN, { children: /* @__PURE__ */ D(AN, { children: /* @__PURE__ */ D(TN, { ...e }) }) });
30820
+ function NN(e) {
30821
+ return /* @__PURE__ */ D(TN, { children: /* @__PURE__ */ D(RN, { children: /* @__PURE__ */ D(ON, { ...e }) }) });
30782
30822
  }
30783
- function zN(e, t) {
30823
+ function $N(e, t) {
30784
30824
  return ((r, i, o) => {
30785
30825
  const a = qg.createRoot(i);
30786
30826
  return a.render(/* @__PURE__ */ D(r, { ...o })), a.unmount;
30787
- })(PN, e, t);
30827
+ })(NN, e, t);
30788
30828
  }
30789
30829
  export {
30790
- PN as C,
30830
+ NN as C,
30791
30831
  oE as a,
30792
30832
  Eh as g,
30793
- zN as r,
30833
+ $N as r,
30794
30834
  bN as u
30795
30835
  };
30796
- //# sourceMappingURL=index-BVamj76p.js.map
30836
+ //# sourceMappingURL=index-BhNxVoj7.js.map