youverify-liveness-web 1.0.3 → 1.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  (function(){"use strict";try{if(typeof document<"u"){var t=document.createElement("style");t.appendChild(document.createTextNode('@import"https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap";*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }.yvlw-absolute{position:absolute}.yvlw-m-0{margin:0}.yvlw-mx-auto{margin-left:auto;margin-right:auto}.yvlw-mb-12{margin-bottom:3rem}.yvlw-mt-12{margin-top:3rem}.yvlw-mt-3{margin-top:.75rem}.yvlw-flex{display:flex}.yvlw-hidden{display:none}.yvlw-h-10{height:2.5rem}.yvlw-h-20{height:5rem}.yvlw-h-4{height:1rem}.yvlw-h-5{height:1.25rem}.yvlw-h-6{height:1.5rem}.yvlw-h-7{height:1.75rem}.yvlw-h-full{height:100%}.yvlw-w-10{width:2.5rem}.yvlw-w-4{width:1rem}.yvlw-w-5{width:1.25rem}.yvlw-w-7{width:1.75rem}.yvlw-w-full{width:100%}.yvlw-flex-1{flex:1 1 0%}.yvlw--translate-x-full{--tw-translate-x: -100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.yvlw--translate-y-full{--tw-translate-y: -100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.yvlw-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))}.yvlw-translate-x-full{--tw-translate-x: 100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.yvlw-translate-y-0{--tw-translate-y: 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))}.yvlw-translate-y-full{--tw-translate-y: 100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.yvlw-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))}.yvlw-scale-125{--tw-scale-x: 1.25;--tw-scale-y: 1.25;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))}.yvlw-scale-75{--tw-scale-x: .75;--tw-scale-y: .75;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.yvlw-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))}.yvlw-flex-col{flex-direction:column}.yvlw-items-center{align-items:center}.yvlw-justify-center{justify-content:center}.yvlw-gap-1{gap:.25rem}.yvlw-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)))}.yvlw-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)))}.yvlw-rounded{border-radius:.25rem}.yvlw-border{border-width:1px}.yvlw-border-t{border-top-width:1px}.yvlw-border-gray-200{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity))}.yvlw-border-gray-300{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity))}.yvlw-bg-black\\/20{background-color:#0003}.yvlw-p-0{padding:0}.yvlw-px-3{padding-left:.75rem;padding-right:.75rem}.yvlw-px-4{padding-left:1rem;padding-right:1rem}.yvlw-py-2{padding-top:.5rem;padding-bottom:.5rem}.yvlw-pb-6{padding-bottom:1.5rem}.yvlw-pt-4{padding-top:1rem}.yvlw-text-center{text-align:center}.yvlw-text-sm{font-size:.875rem;line-height:1.25rem}.yvlw-text-xs{font-size:.75rem;line-height:1rem}.yvlw-text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.yvlw-opacity-0{opacity:0}.yvlw-opacity-100{opacity:1}.yvlw-transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.yvlw-duration-200{transition-duration:.2s}.yvlw-duration-300{transition-duration:.3s}.yvlw-ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}.subtext{--tw-text-opacity: 1;color:rgb(100 116 139 / var(--tw-text-opacity))}.subtext:where([liveness-web-sdk-color-scheme=dark],[liveness-web-sdk-color-scheme=dark] *){--tw-text-opacity: 1;color:rgb(148 163 184 / var(--tw-text-opacity))}.divider{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity))}.divider:where([liveness-web-sdk-color-scheme=dark],[liveness-web-sdk-color-scheme=dark] *){--tw-border-opacity: 1;border-color:rgb(31 41 55 / var(--tw-border-opacity))}.dark\\:yvlw-block:where([liveness-web-sdk-color-scheme=dark],[liveness-web-sdk-color-scheme=dark] *){display:block}.dark\\:yvlw-hidden:where([liveness-web-sdk-color-scheme=dark],[liveness-web-sdk-color-scheme=dark] *){display:none}.dark\\:yvlw-border-gray-700:where([liveness-web-sdk-color-scheme=dark],[liveness-web-sdk-color-scheme=dark] *){--tw-border-opacity: 1;border-color:rgb(55 65 81 / var(--tw-border-opacity))}.dark\\:yvlw-border-gray-800:where([liveness-web-sdk-color-scheme=dark],[liveness-web-sdk-color-scheme=dark] *){--tw-border-opacity: 1;border-color:rgb(31 41 55 / var(--tw-border-opacity))}._root_1duny_1{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:DM Sans,sans-serif;position:fixed;top:0;right:0;bottom:0;left:0;z-index:50;display:flex;min-height:100vh;min-height:-webkit-fill-available;align-items:center;justify-content:center;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.3s;transition-timing-function:cubic-bezier(0,0,.2,1)}._root_1duny_1[data-closed]{opacity:0}._root_1duny_1._modal_1duny_10{background-color:#0000004d}@media (min-width: 768px){._root_1duny_1._modal_1duny_10{padding:1rem}._root_1duny_1._modal_1duny_10 ._container_1duny_13{border-radius:.75rem}}._root_1duny_1._modal_1duny_10 ._container_1duny_13{max-width:1500px;max-height:700px}@media (min-width: 768px){._root_1duny_1._page_1duny_18{padding:0}}._root_1duny_1 ._close_1duny_21{position:absolute;top:.5rem;left:.5rem;display:flex;align-items:center;justify-content:center;z-index:20;height:1.5rem;width:1.5rem;border-radius:9999px;background-color:#00000080}._root_1duny_1 ._close_1duny_21 svg{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}._root_1duny_1 ._close_1duny_21 svg:hover{--tw-rotate: 90deg;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))}._root_1duny_1 ._container_1duny_13{height:100%;width:100%;--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}._root_1duny_1 ._container_1duny_13:where([liveness-web-sdk-color-scheme=dark],[liveness-web-sdk-color-scheme=dark] *){--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}._root_1h6qm_1 *,._root_1h6qm_1 :before,._root_1h6qm_1 :after{box-sizing:border-box;border-width:0;border-style:solid}._root_1h6qm_1 :before,._root_1h6qm_1 :after{--tw-content: ""}._root_1h6qm_1 html,._root_1h6qm_1 :host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";-webkit-tap-highlight-color:transparent}._root_1h6qm_1 body{margin:0;line-height:inherit}._root_1h6qm_1 hr{height:0;color:inherit;border-top-width:1px}._root_1h6qm_1 abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}._root_1h6qm_1 h1,._root_1h6qm_1 h2,._root_1h6qm_1 h3,._root_1h6qm_1 h4,._root_1h6qm_1 h5,._root_1h6qm_1 h6{font-size:inherit;font-weight:inherit}._root_1h6qm_1 a{color:inherit;text-decoration:inherit}._root_1h6qm_1 b,._root_1h6qm_1 strong{font-weight:bolder}._root_1h6qm_1 code,._root_1h6qm_1 kbd,._root_1h6qm_1 samp,._root_1h6qm_1 pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}._root_1h6qm_1 small{font-size:80%}._root_1h6qm_1 sub,._root_1h6qm_1 sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}._root_1h6qm_1 sub{bottom:-.25em}._root_1h6qm_1 sup{top:-.5em}._root_1h6qm_1 table{text-indent:0;border-color:inherit;border-collapse:collapse}._root_1h6qm_1 button,._root_1h6qm_1 input,._root_1h6qm_1 optgroup,._root_1h6qm_1 select,._root_1h6qm_1 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}._root_1h6qm_1 button,._root_1h6qm_1 select{text-transform:none}._root_1h6qm_1 button,._root_1h6qm_1 input:where([type=button]),._root_1h6qm_1 input:where([type=reset]),._root_1h6qm_1 input:where([type=submit]){-moz-appearance:button;appearance:button;-webkit-appearance:button;background-color:transparent;background-image:none}._root_1h6qm_1 :-moz-focusring{outline:auto}._root_1h6qm_1 :-moz-ui-invalid{box-shadow:none}._root_1h6qm_1 progress{vertical-align:baseline}._root_1h6qm_1 ::-webkit-inner-spin-button,._root_1h6qm_1 ::-webkit-outer-spin-button{height:auto}._root_1h6qm_1 [type=search]{-moz-appearance:textfield;appearance:textfield;-webkit-appearance:textfield;outline-offset:-2px}._root_1h6qm_1 ::-webkit-search-decoration{-webkit-appearance:none}._root_1h6qm_1 ::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}._root_1h6qm_1 summary{display:list-item}._root_1h6qm_1 blockquote,._root_1h6qm_1 dl,._root_1h6qm_1 dd,._root_1h6qm_1 h1,._root_1h6qm_1 h2,._root_1h6qm_1 h3,._root_1h6qm_1 h4,._root_1h6qm_1 h5,._root_1h6qm_1 h6,._root_1h6qm_1 hr,._root_1h6qm_1 figure,._root_1h6qm_1 p,._root_1h6qm_1 pre{margin:0}._root_1h6qm_1 fieldset{margin:0;padding:0}._root_1h6qm_1 legend{padding:0}._root_1h6qm_1 ol,._root_1h6qm_1 ul,._root_1h6qm_1 menu{list-style:none;margin:0;padding:0}._root_1h6qm_1 dialog{padding:0}._root_1h6qm_1 textarea{resize:vertical}._root_1h6qm_1 input::-moz-placeholder,._root_1h6qm_1 textarea::-moz-placeholder{opacity:1;color:#9ca3af}._root_1h6qm_1 input::placeholder,._root_1h6qm_1 textarea::placeholder{opacity:1;color:#9ca3af}._root_1h6qm_1 button,._root_1h6qm_1 [role=button]{cursor:pointer}._root_1h6qm_1 :disabled{cursor:default}._root_1h6qm_1 img,._root_1h6qm_1 svg,._root_1h6qm_1 video,._root_1h6qm_1 canvas,._root_1h6qm_1 audio,._root_1h6qm_1 iframe,._root_1h6qm_1 embed,._root_1h6qm_1 object{display:block}._root_1h6qm_1 [hidden]{display:none}._root_vqy7d_1{height:100%}._root_vqy7d_1 ._container_vqy7d_4{display:flex;height:100%}._root_vqy7d_1 ._container_vqy7d_4 ._lhs_vqy7d_7{display:none;width:20%;flex-direction:column;justify-content:space-between}@media (min-width: 1280px){._root_vqy7d_1 ._container_vqy7d_4 ._lhs_vqy7d_7{display:flex}}._root_vqy7d_1 ._container_vqy7d_4 ._lhs_vqy7d_7{padding-top:.75rem;padding-bottom:.75rem}._root_vqy7d_1 ._container_vqy7d_4 ._lhs_vqy7d_7 ._info_vqy7d_11>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(2rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(2rem * var(--tw-space-y-reverse))}._root_vqy7d_1 ._container_vqy7d_4 ._lhs_vqy7d_7 ._info_vqy7d_11{padding-left:1.5rem;padding-right:1.5rem}._root_vqy7d_1 ._container_vqy7d_4 ._lhs_vqy7d_7 ._info_vqy7d_11 ol{position:relative;margin:0;list-style-type:none;padding:0}._root_vqy7d_1 ._container_vqy7d_4 ._lhs_vqy7d_7 ._info_vqy7d_11 ol li{counter-increment:item;margin-bottom:24px;position:relative;font-size:.875rem;line-height:1.25rem;display:flex;align-items:center}._root_vqy7d_1 ._container_vqy7d_4 ._lhs_vqy7d_7 ._info_vqy7d_11 ol li:before{width:28px;height:28px;border-radius:9999px;border-width:2px;--tw-border-opacity: 1;border-color:rgb(107 114 128 / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:rgb(75 85 99 / var(--tw-bg-opacity))}._root_vqy7d_1 ._container_vqy7d_4 ._lhs_vqy7d_7 ._info_vqy7d_11 ol li:where([liveness-web-sdk-color-scheme=dark],[liveness-web-sdk-color-scheme=dark] *):before{--tw-border-opacity: 1;border-color:rgb(55 65 81 / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}._root_vqy7d_1 ._container_vqy7d_4 ._lhs_vqy7d_7 ._info_vqy7d_11 ol li:before{margin-right:1rem;display:flex;align-items:center;justify-content:center;font-size:.75rem;line-height:1rem;--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity))}._root_vqy7d_1 ._container_vqy7d_4 ._lhs_vqy7d_7 ._info_vqy7d_11 ol li:where([liveness-web-sdk-color-scheme=dark],[liveness-web-sdk-color-scheme=dark] *):before{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}._root_vqy7d_1 ._container_vqy7d_4 ._lhs_vqy7d_7 ._info_vqy7d_11 ol li:before{content:counter(item);flex-shrink:0}._root_vqy7d_1 ._container_vqy7d_4 ._lhs_vqy7d_7 ._info_vqy7d_11 ol li._active_vqy7d_32{font-weight:500}._root_vqy7d_1 ._container_vqy7d_4 ._lhs_vqy7d_7 ._info_vqy7d_11 ol li._active_vqy7d_32:where([liveness-web-sdk-color-scheme=dark],[liveness-web-sdk-color-scheme=dark] *){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}._root_vqy7d_1 ._container_vqy7d_4 ._lhs_vqy7d_7 ._info_vqy7d_11 ol li._active_vqy7d_32:before{background-color:var(--branding-color);border-style:none;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}._root_vqy7d_1 ._container_vqy7d_4 ._lhs_vqy7d_7 ._info_vqy7d_11 ol li._completed_vqy7d_39{font-weight:500;text-decoration-line:line-through}._root_vqy7d_1 ._container_vqy7d_4 ._lhs_vqy7d_7 ._info_vqy7d_11 ol li._completed_vqy7d_39:where([liveness-web-sdk-color-scheme=dark],[liveness-web-sdk-color-scheme=dark] *){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}._root_vqy7d_1 ._container_vqy7d_4 ._lhs_vqy7d_7 ._info_vqy7d_11 ol li._completed_vqy7d_39:before{background-color:var(--branding-color);border-style:none;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}._root_vqy7d_1 ._container_vqy7d_4 ._lhs_vqy7d_7 ._info_vqy7d_11 ol li:after{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity))}._root_vqy7d_1 ._container_vqy7d_4 ._lhs_vqy7d_7 ._info_vqy7d_11 ol li:where([liveness-web-sdk-color-scheme=dark],[liveness-web-sdk-color-scheme=dark] *):after{--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}._root_vqy7d_1 ._container_vqy7d_4 ._lhs_vqy7d_7 ._info_vqy7d_11 ol li:after{top:28px;bottom:-24px;left:14px;content:"";position:absolute;width:1px}._root_vqy7d_1 ._container_vqy7d_4 ._lhs_vqy7d_7 ._info_vqy7d_11 ol li:last-child:after{content:none}._root_vqy7d_1 ._container_vqy7d_4 ._lhs_vqy7d_7 footer{display:flex;align-items:center;justify-content:space-between;padding:.75rem 1.5rem}._root_vqy7d_1 ._container_vqy7d_4 ._rhs_vqy7d_62{display:none;width:20%}._root_vqy7d_1 ._container_vqy7d_4 ._rhs_vqy7d_62>: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))}._root_vqy7d_1 ._container_vqy7d_4 ._rhs_vqy7d_62{padding-top:.75rem;padding-bottom:.75rem}@media (min-width: 1280px){._root_vqy7d_1 ._container_vqy7d_4 ._rhs_vqy7d_62{display:block}}._root_vqy7d_1 ._container_vqy7d_4 ._rhs_vqy7d_62 ._profile_vqy7d_65{display:flex;align-items:center;gap:.5rem;padding:1rem 1.5rem}._root_vqy7d_1 ._container_vqy7d_4 ._rhs_vqy7d_62 ._profile_vqy7d_65 ._avatar_vqy7d_68{height:2.5rem;width:2.5rem;border-radius:9999px;--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity))}._root_vqy7d_1 ._container_vqy7d_4 ._rhs_vqy7d_62 ._profile_vqy7d_65 ._avatar_vqy7d_68:where([liveness-web-sdk-color-scheme=dark],[liveness-web-sdk-color-scheme=dark] *){--tw-bg-opacity: 1;background-color:rgb(107 114 128 / var(--tw-bg-opacity))}._root_vqy7d_1 ._container_vqy7d_4 ._rhs_vqy7d_62 ._profile_vqy7d_65 ._avatar_vqy7d_68{display:flex;align-items:center;justify-content:center;font-size:1.125rem;line-height:1.75rem;font-weight:500}._root_vqy7d_1 ._container_vqy7d_4 ._rhs_vqy7d_62 ._profile_vqy7d_65 h4{margin-bottom:-.25rem;text-overflow:ellipsis;font-weight:600;--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}._root_vqy7d_1 ._container_vqy7d_4 ._rhs_vqy7d_62 ._profile_vqy7d_65 h4:where([liveness-web-sdk-color-scheme=dark],[liveness-web-sdk-color-scheme=dark] *){--tw-text-opacity: 1;color:rgb(243 244 246 / var(--tw-text-opacity))}._root_vqy7d_1 ._container_vqy7d_4 ._rhs_vqy7d_62 ._profile_vqy7d_65 p{margin-top:0;margin-bottom:0;font-size:.75rem;line-height:1rem}._root_vqy7d_1 ._container_vqy7d_4 ._rhs_vqy7d_62 footer>: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))}._root_vqy7d_1 ._container_vqy7d_4 ._rhs_vqy7d_62 footer{padding-left:1.5rem;padding-right:1.5rem;font-size:.75rem;line-height:1rem;--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}._root_vqy7d_1 ._container_vqy7d_4 ._main_vqy7d_81{flex:1 1 0%}@media (min-width: 768px){._root_vqy7d_1 ._container_vqy7d_4 ._main_vqy7d_81{padding-top:1rem;padding-bottom:1rem}}._root_vqy7d_1 ._container_vqy7d_4 ._main_vqy7d_81 ._content_vqy7d_84{margin-left:auto;margin-right:auto;height:100%;width:100%;overflow:hidden;border-radius:1rem;border-width:1px;--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity))}._root_vqy7d_1 ._container_vqy7d_4 ._main_vqy7d_81 ._content_vqy7d_84:where([liveness-web-sdk-color-scheme=dark],[liveness-web-sdk-color-scheme=dark] *){--tw-border-opacity: 1;border-color:rgb(31 41 55 / var(--tw-border-opacity))}._root_vqy7d_1 ._container_vqy7d_4 ._main_vqy7d_81 ._content_vqy7d_84{max-width:500px}._root_vqy7d_1 ._container_vqy7d_4 ._main_vqy7d_81 ._completed_vqy7d_39{display:flex;height:100%;width:100%;align-items:center;justify-content:center}._root_lryhb_1 ._container_lryhb_1{display:flex;align-items:center;justify-content:space-between}._root_lryhb_1 ._container_lryhb_1 ._brand_lryhb_6{display:flex;align-items:center;gap:7px;font-weight:600}._root_bcsvc_1{position:relative;height:100%;width:100%}._root_bcsvc_1 video{height:100%;width:100%;-o-object-fit:cover;object-fit:cover;transform:scaleX(-1)}._container_mcmsr_1{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;background-image:radial-gradient(circle at 50% 50%,transparent 1400px,rgba(255,255,255,0) 100%)}._container_mcmsr_1:where([liveness-web-sdk-color-scheme=dark],[liveness-web-sdk-color-scheme=dark] *){background-image:radial-gradient(circle at 50% 50%,transparent 1400px,rgba(0,0,0,0) 100%)}._container_mcmsr_1{z-index:1}._container_mcmsr_1:before{content:"";position:absolute;top:0;right:0;bottom:0;left:0;opacity:0;background-image:radial-gradient(circle at 50% 50%,transparent 140px,rgba(255,255,255,.5) 101px)}._container_mcmsr_1:where([liveness-web-sdk-color-scheme=dark],[liveness-web-sdk-color-scheme=dark] *):before{background-image:radial-gradient(circle at 50% 50%,transparent 140px,rgba(0,0,0,.8) 101px)}._container_mcmsr_1:before{transition:opacity .3s linear}._container_mcmsr_1._focused_mcmsr_12:before{opacity:1}._container_mcmsr_1 ._progress_mcmsr_15{position:relative;height:280px;width:280px;border-radius:50%;display:flex;align-items:center;justify-content:center;border:1px solid gray}._container_mcmsr_1 ._progress_mcmsr_15 div{position:absolute;height:3px;transform-origin:50%;border-radius:2px;width:5px;background-color:gray;transition-property:background-color,transform,width;transition-duration:.3s;transition-timing-function:ease-in-out}._container_mcmsr_1 ._progress_mcmsr_15 div._completed_mcmsr_36{width:20px;background-color:#07da63}._container_mcmsr_1 ._marker_mcmsr_40{position:relative;width:280px;height:280px}._container_mcmsr_1 ._marker_mcmsr_40>div{position:absolute;height:1.75rem;width:1.75rem;border-width:2px;--tw-border-opacity: 1;border-color:rgb(255 255 255 / var(--tw-border-opacity))}._container_mcmsr_1 ._marker_mcmsr_40>div:first-child{top:-.25rem;left:-.25rem;border-top-left-radius:50%;border-bottom-width:0px;border-right-width:0px}._container_mcmsr_1 ._marker_mcmsr_40>div:nth-child(2){top:-.25rem;right:-.25rem;border-top-right-radius:50%;border-bottom-width:0px;border-left-width:0px}._container_mcmsr_1 ._marker_mcmsr_40>div:nth-child(3){bottom:-.25rem;left:-.25rem;border-bottom-left-radius:50%;border-top-width:0px;border-right-width:0px}._container_mcmsr_1 ._marker_mcmsr_40>div:last-child{bottom:-.25rem;right:-.25rem;border-bottom-right-radius:50%;border-top-width:0px;border-left-width:0px}._root_5hgaj_1{height:100%;text-align:center}._root_5hgaj_1 ._container_5hgaj_4{position:relative;height:100%}._root_5hgaj_1 ._container_5hgaj_4 ._progress_5hgaj_7{background-color:var(--branding-color);position:absolute;top:0;left:0;height:4px;border-radius:.5rem;z-index:2}._root_5hgaj_1 ._container_5hgaj_4 ._intro_5hgaj_12{display:flex;height:100%;flex-direction:column;align-items:center;justify-content:center;padding:1.5rem 1rem}._root_5hgaj_1 ._container_5hgaj_4 ._content_5hgaj_15{height:70%;width:100%}._root_5hgaj_1 ._container_5hgaj_4 ._branding_5hgaj_18{position:absolute;left:0;right:0;bottom:1.5rem;text-align:center;font-size:.75rem;line-height:1rem;font-weight:500;display:flex;align-items:center;justify-content:center}._root_5hgaj_1 ._container_5hgaj_4 ._branding_5hgaj_18>: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)))}._root_5hgaj_1 ._container_5hgaj_4 ._instructionsContainer_5hgaj_22{border-top-width:1px;--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity))}._root_5hgaj_1 ._container_5hgaj_4 ._instructionsContainer_5hgaj_22:where([liveness-web-sdk-color-scheme=dark],[liveness-web-sdk-color-scheme=dark] *){--tw-border-opacity: 1;border-color:rgb(31 41 55 / var(--tw-border-opacity))}._root_5hgaj_1 ._container_5hgaj_4 ._instructions_5hgaj_22{margin-left:auto;margin-right:auto;padding:1rem 1rem 1.5rem;text-align:center;max-width:400px}._root_5hgaj_1 ._container_5hgaj_4 h2{margin-top:.5rem;margin-bottom:.5rem;font-size:1.5rem;line-height:2rem;font-weight:900}._root_5hgaj_1 ._container_5hgaj_4 h2:where([liveness-web-sdk-color-scheme=dark],[liveness-web-sdk-color-scheme=dark] *){--tw-text-opacity: 1;color:rgb(248 250 252 / var(--tw-text-opacity))}._root_5hgaj_1 ._container_5hgaj_4 p{font-size:.875rem;line-height:1.25rem;font-weight:300;max-width:400px}._root_5hgaj_1 ._container_5hgaj_4 button{color:var(--branding-color);border-color:var(--branding-color);border-radius:9999px;border-width:2px;padding:.5rem 2rem;font-weight:500}._root_5hgaj_1 ._container_5hgaj_4 button:hover{background-color:var(--branding-color);--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}._root_h5elg_1{text-align:center;display:flex;height:100%;flex-direction:column;align-items:center;justify-content:center;padding:1.5rem .75rem}._root_h5elg_1 h2{margin-top:.5rem;margin-bottom:.5rem;font-size:1.5rem;line-height:2rem;font-weight:900}._root_h5elg_1 h2:where([liveness-web-sdk-color-scheme=dark],[liveness-web-sdk-color-scheme=dark] *){--tw-text-opacity: 1;color:rgb(248 250 252 / var(--tw-text-opacity))}._root_h5elg_1 p{font-size:.875rem;line-height:1.25rem;font-weight:300;max-width:400px}._root_h5elg_1 button{color:var(--branding-color);border-color:var(--branding-color);border-radius:9999px;border-width:2px;padding:.5rem 2rem;font-weight:500}._root_h5elg_1 button:hover{background-color:var(--branding-color);--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}._root_h5elg_1 button:hover ._spinner_h5elg_22{--tw-border-opacity: 1;border-color:rgb(255 255 255 / var(--tw-border-opacity));border-left-color:transparent}._container_1vep2_1{height:100%;width:100%;border-radius:50%;border-width:2px;border-color:var(--branding-color);border-left-color:transparent;animation:_spin_1vep2_1 .7s linear infinite}._container_1vep2_1._md_1vep2_7{height:1rem;width:1rem}._container_1vep2_1._lg_1vep2_10{height:1.75rem;width:1.75rem}@keyframes _spin_1vep2_1{0%{transform:rotate(0)}to{transform:rotate(360deg)}}._root_thujo_1{position:absolute;top:0;right:0;bottom:0;left:0}._root_thujo_1 ._sticker_thujo_4{position:absolute}._root_thujo_1 ._sticker_thujo_4._no_thujo_7{top:2.5rem;left:1.5rem;border-width:4px;--tw-border-opacity: 1;border-color:rgb(248 113 113 / var(--tw-border-opacity));padding:.5rem 1rem;--tw-drop-shadow: drop-shadow(0 1px 1px rgb(0 0 0 / .05));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);stroke:#fff;font-size:2.25rem;line-height:2.5rem;font-weight:900;letter-spacing:.1em;--tw-text-opacity: 1;color:rgb(248 113 113 / var(--tw-text-opacity));transform:rotate(335deg)}._root_thujo_1 ._sticker_thujo_4._yes_thujo_12{top:2.5rem;right:1.5rem;border-width:4px;--tw-border-opacity: 1;border-color:rgb(74 222 128 / var(--tw-border-opacity));padding:.5rem 1rem;--tw-drop-shadow: drop-shadow(0 1px 1px rgb(0 0 0 / .05));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);stroke:#fff;font-size:2.25rem;line-height:2.5rem;font-weight:900;letter-spacing:.1em;--tw-text-opacity: 1;color:rgb(74 222 128 / var(--tw-text-opacity));transform:rotate(45deg)}._container_1ej18_1{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;background-image:radial-gradient(circle at 50% 50%,transparent 1400px,rgba(255,255,255,0) 100%)}._container_1ej18_1:where([liveness-web-sdk-color-scheme=dark],[liveness-web-sdk-color-scheme=dark] *){background-image:radial-gradient(circle at 50% 50%,transparent 1400px,rgba(0,0,0,0) 100%)}._container_1ej18_1{z-index:1}._container_1ej18_1:before{content:"";position:absolute;top:0;right:0;bottom:0;left:0;opacity:0;background-image:radial-gradient(circle at 50% 50%,transparent 140px,rgba(255,255,255,.5) 101px)}._container_1ej18_1:where([liveness-web-sdk-color-scheme=dark],[liveness-web-sdk-color-scheme=dark] *):before{background-image:radial-gradient(circle at 50% 50%,transparent 140px,rgba(0,0,0,.8) 101px)}._container_1ej18_1:before{transition:opacity .3s linear}._container_1ej18_1 ._progress_1ej18_12{position:relative;height:240px;width:240px;border-radius:50%;display:flex;align-items:center;justify-content:center;border:1px solid gray}._container_1ej18_1 ._progress_1ej18_12 div{position:absolute;height:3px;transform-origin:50%;border-radius:2px;width:5px;background-color:gray;transition-property:background-color,transform,width;transition-duration:.3s;transition-timing-function:ease-in-out}._container_1ej18_1 ._progress_1ej18_12 div._completed_1ej18_33{width:20px;background-color:#07da63}._container_1ej18_1 ._marker_1ej18_37{position:relative;width:240px;height:240px}._container_1ej18_1 ._marker_1ej18_37>div{position:absolute;height:1.75rem;width:1.75rem;border-width:4px;--tw-border-opacity: 1;border-color:rgb(255 255 255 / var(--tw-border-opacity))}._container_1ej18_1 ._marker_1ej18_37>div:first-child{top:-.25rem;left:-.25rem;border-top-left-radius:50%;border-bottom-width:0px;border-right-width:0px}._container_1ej18_1 ._marker_1ej18_37>div:nth-child(2){top:-.25rem;right:-.25rem;border-top-right-radius:50%;border-bottom-width:0px;border-left-width:0px}._container_1ej18_1 ._marker_1ej18_37>div:nth-child(3){bottom:-.25rem;left:-.25rem;border-bottom-left-radius:50%;border-top-width:0px;border-right-width:0px}._container_1ej18_1 ._marker_1ej18_37>div:last-child{bottom:-.25rem;right:-.25rem;border-bottom-right-radius:50%;border-top-width:0px;border-left-width:0px}')),document.head.appendChild(t)}}catch(r){console.error("vite-plugin-css-injected-by-js",r)}})();
2
- var ot, H, xr, xe, On, Mr, Xt, vn, Zt, Jt, Pr, rt = {}, Nr = [], Ko = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, Tt = Array.isArray;
2
+ var ot, O, xr, xe, On, Mr, Xt, vn, Zt, Jt, Pr, rt = {}, Nr = [], Ko = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, Tt = Array.isArray;
3
3
  function me(e, t) {
4
4
  for (var n in t) e[n] = t[n];
5
5
  return e;
@@ -16,12 +16,12 @@ function de(e, t, n) {
16
16
  }
17
17
  function Je(e, t, n, r, o) {
18
18
  var i = { type: e, props: t, key: n, ref: r, __k: null, __: null, __b: 0, __e: null, __d: void 0, __c: null, constructor: void 0, __v: o ?? ++xr, __i: -1, __u: 0 };
19
- return o == null && H.vnode != null && H.vnode(i), i;
19
+ return o == null && O.vnode != null && O.vnode(i), i;
20
20
  }
21
21
  function mn() {
22
22
  return { current: null };
23
23
  }
24
- function Y(e) {
24
+ function q(e) {
25
25
  return e.children;
26
26
  }
27
27
  function ue(e, t) {
@@ -43,21 +43,21 @@ function Ar(e) {
43
43
  }
44
44
  }
45
45
  function Qt(e) {
46
- (!e.__d && (e.__d = !0) && xe.push(e) && !_t.__r++ || On !== H.debounceRendering) && ((On = H.debounceRendering) || Mr)(_t);
46
+ (!e.__d && (e.__d = !0) && xe.push(e) && !_t.__r++ || On !== O.debounceRendering) && ((On = O.debounceRendering) || Mr)(_t);
47
47
  }
48
48
  function _t() {
49
49
  var e, t, n, r, o, i, s, a;
50
- for (xe.sort(Xt); e = xe.shift(); ) e.__d && (t = xe.length, r = void 0, i = (o = (n = e).__v).__e, s = [], a = [], n.__P && ((r = me({}, o)).__v = o.__v + 1, H.vnode && H.vnode(r), _n(n.__P, r, o, n.__n, n.__P.namespaceURI, 32 & o.__u ? [i] : null, s, i ?? Ae(o), !!(32 & o.__u), a), r.__v = o.__v, r.__.__k[r.__i] = r, Dr(s, r, a), r.__e != i && Ar(r)), xe.length > t && xe.sort(Xt));
50
+ for (xe.sort(Xt); e = xe.shift(); ) e.__d && (t = xe.length, r = void 0, i = (o = (n = e).__v).__e, s = [], a = [], n.__P && ((r = me({}, o)).__v = o.__v + 1, O.vnode && O.vnode(r), _n(n.__P, r, o, n.__n, n.__P.namespaceURI, 32 & o.__u ? [i] : null, s, i ?? Ae(o), !!(32 & o.__u), a), r.__v = o.__v, r.__.__k[r.__i] = r, Dr(s, r, a), r.__e != i && Ar(r)), xe.length > t && xe.sort(Xt));
51
51
  _t.__r = 0;
52
52
  }
53
- function Rr(e, t, n, r, o, i, s, a, c, u, d) {
54
- var l, f, p, _, y, m = r && r.__k || Nr, v = t.length;
55
- for (n.__d = c, Xo(n, t, m), c = n.__d, l = 0; l < v; l++) (p = n.__k[l]) != null && typeof p != "boolean" && typeof p != "function" && (f = p.__i === -1 ? rt : m[p.__i] || rt, p.__i = l, _n(e, p, f, o, i, s, a, c, u, d), _ = p.__e, p.ref && f.ref != p.ref && (f.ref && yn(f.ref, null, p), d.push(p.ref, p.__c || _, p)), y == null && _ != null && (y = _), 65536 & p.__u || f.__k === p.__k ? c = Ir(p, c, e) : typeof p.type == "function" && p.__d !== void 0 ? c = p.__d : _ && (c = _.nextSibling), p.__d = void 0, p.__u &= -196609);
56
- n.__d = c, n.__e = y;
53
+ function Rr(e, t, n, r, o, i, s, a, l, u, d) {
54
+ var c, f, p, _, y, m = r && r.__k || Nr, v = t.length;
55
+ for (n.__d = l, Xo(n, t, m), l = n.__d, c = 0; c < v; c++) (p = n.__k[c]) != null && typeof p != "boolean" && typeof p != "function" && (f = p.__i === -1 ? rt : m[p.__i] || rt, p.__i = c, _n(e, p, f, o, i, s, a, l, u, d), _ = p.__e, p.ref && f.ref != p.ref && (f.ref && yn(f.ref, null, p), d.push(p.ref, p.__c || _, p)), y == null && _ != null && (y = _), 65536 & p.__u || f.__k === p.__k ? l = Ir(p, l, e) : typeof p.type == "function" && p.__d !== void 0 ? l = p.__d : _ && (l = _.nextSibling), p.__d = void 0, p.__u &= -196609);
56
+ n.__d = l, n.__e = y;
57
57
  }
58
58
  function Xo(e, t, n) {
59
- var r, o, i, s, a, c = t.length, u = n.length, d = u, l = 0;
60
- for (e.__k = [], r = 0; r < c; r++) s = r + l, (o = e.__k[r] = (o = t[r]) == null || typeof o == "boolean" || typeof o == "function" ? null : typeof o == "string" || typeof o == "number" || typeof o == "bigint" || o.constructor == String ? Je(null, o, null, null, null) : Tt(o) ? Je(Y, { children: o }, null, null, null) : o.constructor === void 0 && o.__b > 0 ? Je(o.type, o.props, o.key, o.ref ? o.ref : null, o.__v) : o) != null ? (o.__ = e, o.__b = e.__b + 1, a = Zo(o, n, s, d), o.__i = a, i = null, a !== -1 && (d--, (i = n[a]) && (i.__u |= 131072)), i == null || i.__v === null ? (a == -1 && l--, typeof o.type != "function" && (o.__u |= 65536)) : a !== s && (a == s - 1 ? l = a - s : a == s + 1 ? l++ : a > s ? d > c - s ? l += a - s : l-- : a < s && l++, a !== r + l && (o.__u |= 65536))) : (i = n[s]) && i.key == null && i.__e && !(131072 & i.__u) && (i.__e == e.__d && (e.__d = Ae(i)), en(i, i, !1), n[s] = null, d--);
59
+ var r, o, i, s, a, l = t.length, u = n.length, d = u, c = 0;
60
+ for (e.__k = [], r = 0; r < l; r++) s = r + c, (o = e.__k[r] = (o = t[r]) == null || typeof o == "boolean" || typeof o == "function" ? null : typeof o == "string" || typeof o == "number" || typeof o == "bigint" || o.constructor == String ? Je(null, o, null, null, null) : Tt(o) ? Je(q, { children: o }, null, null, null) : o.constructor === void 0 && o.__b > 0 ? Je(o.type, o.props, o.key, o.ref ? o.ref : null, o.__v) : o) != null ? (o.__ = e, o.__b = e.__b + 1, a = Zo(o, n, s, d), o.__i = a, i = null, a !== -1 && (d--, (i = n[a]) && (i.__u |= 131072)), i == null || i.__v === null ? (a == -1 && c--, typeof o.type != "function" && (o.__u |= 65536)) : a !== s && (a == s - 1 ? c = a - s : a == s + 1 ? c++ : a > s ? d > l - s ? c += a - s : c-- : a < s && c++, a !== r + c && (o.__u |= 65536))) : (i = n[s]) && i.key == null && i.__e && !(131072 & i.__u) && (i.__e == e.__d && (e.__d = Ae(i)), en(i, i, !1), n[s] = null, d--);
61
61
  if (d) for (r = 0; r < u; r++) (i = n[r]) != null && !(131072 & i.__u) && (i.__e == e.__d && (e.__d = Ae(i)), en(i, i));
62
62
  }
63
63
  function Ir(e, t, n) {
@@ -78,15 +78,15 @@ function _e(e, t) {
78
78
  }) : t.push(e)), t;
79
79
  }
80
80
  function Zo(e, t, n, r) {
81
- var o = e.key, i = e.type, s = n - 1, a = n + 1, c = t[n];
82
- if (c === null || c && o == c.key && i === c.type && !(131072 & c.__u)) return n;
83
- if (r > (c != null && !(131072 & c.__u) ? 1 : 0)) for (; s >= 0 || a < t.length; ) {
81
+ var o = e.key, i = e.type, s = n - 1, a = n + 1, l = t[n];
82
+ if (l === null || l && o == l.key && i === l.type && !(131072 & l.__u)) return n;
83
+ if (r > (l != null && !(131072 & l.__u) ? 1 : 0)) for (; s >= 0 || a < t.length; ) {
84
84
  if (s >= 0) {
85
- if ((c = t[s]) && !(131072 & c.__u) && o == c.key && i === c.type) return s;
85
+ if ((l = t[s]) && !(131072 & l.__u) && o == l.key && i === l.type) return s;
86
86
  s--;
87
87
  }
88
88
  if (a < t.length) {
89
- if ((c = t[a]) && !(131072 & c.__u) && o == c.key && i === c.type) return a;
89
+ if ((l = t[a]) && !(131072 & l.__u) && o == l.key && i === l.type) return a;
90
90
  a++;
91
91
  }
92
92
  }
@@ -119,60 +119,60 @@ function Wn(e) {
119
119
  var n = this.l[t.type + e];
120
120
  if (t.t == null) t.t = vn++;
121
121
  else if (t.t < n.u) return;
122
- return n(H.event ? H.event(t) : t);
122
+ return n(O.event ? O.event(t) : t);
123
123
  }
124
124
  };
125
125
  }
126
- function _n(e, t, n, r, o, i, s, a, c, u) {
127
- var d, l, f, p, _, y, m, v, g, E, T, k, C, L, U, S, $ = t.type;
126
+ function _n(e, t, n, r, o, i, s, a, l, u) {
127
+ var d, c, f, p, _, y, m, v, g, $, T, S, M, A, W, F, b = t.type;
128
128
  if (t.constructor !== void 0) return null;
129
- 128 & n.__u && (c = !!(32 & n.__u), i = [a = t.__e = n.__e]), (d = H.__b) && d(t);
130
- e: if (typeof $ == "function") try {
131
- if (v = t.props, g = "prototype" in $ && $.prototype.render, E = (d = $.contextType) && r[d.__c], T = d ? E ? E.props.value : d.__ : r, n.__c ? m = (l = t.__c = n.__c).__ = l.__E : (g ? t.__c = l = new $(v, T) : (t.__c = l = new ue(v, T), l.constructor = $, l.render = Qo), E && E.sub(l), l.props = v, l.state || (l.state = {}), l.context = T, l.__n = r, f = l.__d = !0, l.__h = [], l._sb = []), g && l.__s == null && (l.__s = l.state), g && $.getDerivedStateFromProps != null && (l.__s == l.state && (l.__s = me({}, l.__s)), me(l.__s, $.getDerivedStateFromProps(v, l.__s))), p = l.props, _ = l.state, l.__v = t, f) g && $.getDerivedStateFromProps == null && l.componentWillMount != null && l.componentWillMount(), g && l.componentDidMount != null && l.__h.push(l.componentDidMount);
129
+ 128 & n.__u && (l = !!(32 & n.__u), i = [a = t.__e = n.__e]), (d = O.__b) && d(t);
130
+ e: if (typeof b == "function") try {
131
+ if (v = t.props, g = "prototype" in b && b.prototype.render, $ = (d = b.contextType) && r[d.__c], T = d ? $ ? $.props.value : d.__ : r, n.__c ? m = (c = t.__c = n.__c).__ = c.__E : (g ? t.__c = c = new b(v, T) : (t.__c = c = new ue(v, T), c.constructor = b, c.render = Qo), $ && $.sub(c), c.props = v, c.state || (c.state = {}), c.context = T, c.__n = r, f = c.__d = !0, c.__h = [], c._sb = []), g && c.__s == null && (c.__s = c.state), g && b.getDerivedStateFromProps != null && (c.__s == c.state && (c.__s = me({}, c.__s)), me(c.__s, b.getDerivedStateFromProps(v, c.__s))), p = c.props, _ = c.state, c.__v = t, f) g && b.getDerivedStateFromProps == null && c.componentWillMount != null && c.componentWillMount(), g && c.componentDidMount != null && c.__h.push(c.componentDidMount);
132
132
  else {
133
- if (g && $.getDerivedStateFromProps == null && v !== p && l.componentWillReceiveProps != null && l.componentWillReceiveProps(v, T), !l.__e && (l.shouldComponentUpdate != null && l.shouldComponentUpdate(v, l.__s, T) === !1 || t.__v === n.__v)) {
134
- for (t.__v !== n.__v && (l.props = v, l.state = l.__s, l.__d = !1), t.__e = n.__e, t.__k = n.__k, t.__k.forEach(function(A) {
135
- A && (A.__ = t);
136
- }), k = 0; k < l._sb.length; k++) l.__h.push(l._sb[k]);
137
- l._sb = [], l.__h.length && s.push(l);
133
+ if (g && b.getDerivedStateFromProps == null && v !== p && c.componentWillReceiveProps != null && c.componentWillReceiveProps(v, T), !c.__e && (c.shouldComponentUpdate != null && c.shouldComponentUpdate(v, c.__s, T) === !1 || t.__v === n.__v)) {
134
+ for (t.__v !== n.__v && (c.props = v, c.state = c.__s, c.__d = !1), t.__e = n.__e, t.__k = n.__k, t.__k.forEach(function(R) {
135
+ R && (R.__ = t);
136
+ }), S = 0; S < c._sb.length; S++) c.__h.push(c._sb[S]);
137
+ c._sb = [], c.__h.length && s.push(c);
138
138
  break e;
139
139
  }
140
- l.componentWillUpdate != null && l.componentWillUpdate(v, l.__s, T), g && l.componentDidUpdate != null && l.__h.push(function() {
141
- l.componentDidUpdate(p, _, y);
140
+ c.componentWillUpdate != null && c.componentWillUpdate(v, c.__s, T), g && c.componentDidUpdate != null && c.__h.push(function() {
141
+ c.componentDidUpdate(p, _, y);
142
142
  });
143
143
  }
144
- if (l.context = T, l.props = v, l.__P = e, l.__e = !1, C = H.__r, L = 0, g) {
145
- for (l.state = l.__s, l.__d = !1, C && C(t), d = l.render(l.props, l.state, l.context), U = 0; U < l._sb.length; U++) l.__h.push(l._sb[U]);
146
- l._sb = [];
144
+ if (c.context = T, c.props = v, c.__P = e, c.__e = !1, M = O.__r, A = 0, g) {
145
+ for (c.state = c.__s, c.__d = !1, M && M(t), d = c.render(c.props, c.state, c.context), W = 0; W < c._sb.length; W++) c.__h.push(c._sb[W]);
146
+ c._sb = [];
147
147
  } else do
148
- l.__d = !1, C && C(t), d = l.render(l.props, l.state, l.context), l.state = l.__s;
149
- while (l.__d && ++L < 25);
150
- l.state = l.__s, l.getChildContext != null && (r = me(me({}, r), l.getChildContext())), g && !f && l.getSnapshotBeforeUpdate != null && (y = l.getSnapshotBeforeUpdate(p, _)), Rr(e, Tt(S = d != null && d.type === Y && d.key == null ? d.props.children : d) ? S : [S], t, n, r, o, i, s, a, c, u), l.base = t.__e, t.__u &= -161, l.__h.length && s.push(l), m && (l.__E = l.__ = null);
151
- } catch (A) {
152
- if (t.__v = null, c || i != null) {
153
- for (t.__u |= c ? 160 : 32; a && a.nodeType === 8 && a.nextSibling; ) a = a.nextSibling;
148
+ c.__d = !1, M && M(t), d = c.render(c.props, c.state, c.context), c.state = c.__s;
149
+ while (c.__d && ++A < 25);
150
+ c.state = c.__s, c.getChildContext != null && (r = me(me({}, r), c.getChildContext())), g && !f && c.getSnapshotBeforeUpdate != null && (y = c.getSnapshotBeforeUpdate(p, _)), Rr(e, Tt(F = d != null && d.type === q && d.key == null ? d.props.children : d) ? F : [F], t, n, r, o, i, s, a, l, u), c.base = t.__e, t.__u &= -161, c.__h.length && s.push(c), m && (c.__E = c.__ = null);
151
+ } catch (R) {
152
+ if (t.__v = null, l || i != null) {
153
+ for (t.__u |= l ? 160 : 32; a && a.nodeType === 8 && a.nextSibling; ) a = a.nextSibling;
154
154
  i[i.indexOf(a)] = null, t.__e = a;
155
155
  } else t.__e = n.__e, t.__k = n.__k;
156
- H.__e(A, t, n);
156
+ O.__e(R, t, n);
157
157
  }
158
- else i == null && t.__v === n.__v ? (t.__k = n.__k, t.__e = n.__e) : t.__e = Jo(n.__e, t, n, r, o, i, s, c, u);
159
- (d = H.diffed) && d(t);
158
+ else i == null && t.__v === n.__v ? (t.__k = n.__k, t.__e = n.__e) : t.__e = Jo(n.__e, t, n, r, o, i, s, l, u);
159
+ (d = O.diffed) && d(t);
160
160
  }
161
161
  function Dr(e, t, n) {
162
162
  t.__d = void 0;
163
163
  for (var r = 0; r < n.length; r++) yn(n[r], n[++r], n[++r]);
164
- H.__c && H.__c(t, e), e.some(function(o) {
164
+ O.__c && O.__c(t, e), e.some(function(o) {
165
165
  try {
166
166
  e = o.__h, o.__h = [], e.some(function(i) {
167
167
  i.call(o);
168
168
  });
169
169
  } catch (i) {
170
- H.__e(i, o.__v);
170
+ O.__e(i, o.__v);
171
171
  }
172
172
  });
173
173
  }
174
- function Jo(e, t, n, r, o, i, s, a, c) {
175
- var u, d, l, f, p, _, y, m = n.props, v = t.props, g = t.type;
174
+ function Jo(e, t, n, r, o, i, s, a, l) {
175
+ var u, d, c, f, p, _, y, m = n.props, v = t.props, g = t.type;
176
176
  if (g === "svg" ? o = "http://www.w3.org/2000/svg" : g === "math" ? o = "http://www.w3.org/1998/Math/MathML" : o || (o = "http://www.w3.org/1999/xhtml"), i != null) {
177
177
  for (u = 0; u < i.length; u++) if ((p = i[u]) && "setAttribute" in p == !!g && (g ? p.localName === g : p.nodeType === 3)) {
178
178
  e = p, i[u] = null;
@@ -187,15 +187,15 @@ function Jo(e, t, n, r, o, i, s, a, c) {
187
187
  else {
188
188
  if (i = i && ot.call(e.childNodes), m = n.props || rt, !a && i != null) for (m = {}, u = 0; u < e.attributes.length; u++) m[(p = e.attributes[u]).name] = p.value;
189
189
  for (u in m) if (p = m[u], u != "children") {
190
- if (u == "dangerouslySetInnerHTML") l = p;
190
+ if (u == "dangerouslySetInnerHTML") c = p;
191
191
  else if (u !== "key" && !(u in v)) {
192
192
  if (u == "value" && "defaultValue" in v || u == "checked" && "defaultChecked" in v) continue;
193
193
  ft(e, u, null, p, o);
194
194
  }
195
195
  }
196
196
  for (u in v) p = v[u], u == "children" ? f = p : u == "dangerouslySetInnerHTML" ? d = p : u == "value" ? _ = p : u == "checked" ? y = p : u === "key" || a && typeof p != "function" || m[u] === p || ft(e, u, p, m[u], o);
197
- if (d) a || l && (d.__html === l.__html || d.__html === e.innerHTML) || (e.innerHTML = d.__html), t.__k = [];
198
- else if (l && (e.innerHTML = ""), Rr(e, Tt(f) ? f : [f], t, n, r, g === "foreignObject" ? "http://www.w3.org/1999/xhtml" : o, i, s, i ? i[0] : n.__k && Ae(n, 0), a, c), i != null) for (u = i.length; u--; ) i[u] != null && Lr(i[u]);
197
+ if (d) a || c && (d.__html === c.__html || d.__html === e.innerHTML) || (e.innerHTML = d.__html), t.__k = [];
198
+ else if (c && (e.innerHTML = ""), Rr(e, Tt(f) ? f : [f], t, n, r, g === "foreignObject" ? "http://www.w3.org/1999/xhtml" : o, i, s, i ? i[0] : n.__k && Ae(n, 0), a, l), i != null) for (u = i.length; u--; ) i[u] != null && Lr(i[u]);
199
199
  a || (u = "value", _ !== void 0 && (_ !== e[u] || g === "progress" && !_ || g === "option" && _ !== m[u]) && ft(e, u, _, m[u], o), u = "checked", y !== void 0 && y !== e[u] && ft(e, u, y, m[u], o));
200
200
  }
201
201
  return e;
@@ -207,16 +207,16 @@ function yn(e, t, n) {
207
207
  r && e.__u(), r && t == null || (e.__u = e(t));
208
208
  } else e.current = t;
209
209
  } catch (o) {
210
- H.__e(o, n);
210
+ O.__e(o, n);
211
211
  }
212
212
  }
213
213
  function en(e, t, n) {
214
214
  var r, o;
215
- if (H.unmount && H.unmount(e), (r = e.ref) && (r.current && r.current !== e.__e || yn(r, null, t)), (r = e.__c) != null) {
215
+ if (O.unmount && O.unmount(e), (r = e.ref) && (r.current && r.current !== e.__e || yn(r, null, t)), (r = e.__c) != null) {
216
216
  if (r.componentWillUnmount) try {
217
217
  r.componentWillUnmount();
218
218
  } catch (i) {
219
- H.__e(i, t);
219
+ O.__e(i, t);
220
220
  }
221
221
  r.base = r.__P = null;
222
222
  }
@@ -228,7 +228,7 @@ function Qo(e, t, n) {
228
228
  }
229
229
  function Ue(e, t, n) {
230
230
  var r, o, i, s;
231
- H.__ && H.__(e, t), o = (r = typeof n == "function") ? null : n && n.__k || t.__k, i = [], s = [], _n(t, e = (!r && n || t).__k = de(Y, null, [e]), o || rt, rt, t.namespaceURI, !r && n ? [n] : o ? null : t.firstChild ? ot.call(t.childNodes) : null, i, !r && n ? n : o ? o.__e : t.firstChild, r, s), Dr(i, e, s);
231
+ O.__ && O.__(e, t), o = (r = typeof n == "function") ? null : n && n.__k || t.__k, i = [], s = [], _n(t, e = (!r && n || t).__k = de(q, null, [e]), o || rt, rt, t.namespaceURI, !r && n ? [n] : o ? null : t.firstChild ? ot.call(t.childNodes) : null, i, !r && n ? n : o ? o.__e : t.firstChild, r, s), Dr(i, e, s);
232
232
  }
233
233
  function Or(e, t) {
234
234
  Ue(e, t, Or);
@@ -261,7 +261,7 @@ function ie(e, t) {
261
261
  } };
262
262
  return n.Provider.__ = n.Consumer.contextType = n;
263
263
  }
264
- ot = Nr.slice, H = { __e: function(e, t, n, r) {
264
+ ot = Nr.slice, O = { __e: function(e, t, n, r) {
265
265
  for (var o, i, s; t = t.__; ) if ((o = t.__c) && !o.__) try {
266
266
  if ((i = o.constructor) && i.getDerivedStateFromError != null && (o.setState(i.getDerivedStateFromError(e)), s = o.__d), o.componentDidCatch != null && (o.componentDidCatch(e, r || {}), s = o.__d), s) return o.__E = o;
267
267
  } catch (a) {
@@ -273,71 +273,71 @@ ot = Nr.slice, H = { __e: function(e, t, n, r) {
273
273
  n = this.__s != null && this.__s !== this.state ? this.__s : this.__s = me({}, this.state), typeof e == "function" && (e = e(me({}, n), this.props)), e && me(n, e), e != null && this.__v && (t && this._sb.push(t), Qt(this));
274
274
  }, ue.prototype.forceUpdate = function(e) {
275
275
  this.__v && (this.__e = !0, e && this.__h.push(e), Qt(this));
276
- }, ue.prototype.render = Y, xe = [], Mr = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, Xt = function(e, t) {
276
+ }, ue.prototype.render = q, xe = [], Mr = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, Xt = function(e, t) {
277
277
  return e.__v.__b - t.__v.__b;
278
278
  }, _t.__r = 0, vn = 0, Zt = Wn(!1), Jt = Wn(!0), Pr = 0;
279
279
  var ti = 0;
280
280
  function h(e, t, n, r, o, i) {
281
281
  t || (t = {});
282
- var s, a, c = t;
283
- if ("ref" in c) for (a in c = {}, t) a == "ref" ? s = t[a] : c[a] = t[a];
284
- var u = { type: e, props: c, key: n, ref: s, __k: null, __: null, __b: 0, __e: null, __d: void 0, __c: null, constructor: void 0, __v: --ti, __i: -1, __u: 0, __source: o, __self: i };
285
- if (typeof e == "function" && (s = e.defaultProps)) for (a in s) c[a] === void 0 && (c[a] = s[a]);
286
- return H.vnode && H.vnode(u), u;
282
+ var s, a, l = t;
283
+ if ("ref" in l) for (a in l = {}, t) a == "ref" ? s = t[a] : l[a] = t[a];
284
+ var u = { type: e, props: l, key: n, ref: s, __k: null, __: null, __b: 0, __e: null, __d: void 0, __c: null, constructor: void 0, __v: --ti, __i: -1, __u: 0, __source: o, __self: i };
285
+ if (typeof e == "function" && (s = e.defaultProps)) for (a in s) l[a] === void 0 && (l[a] = s[a]);
286
+ return O.vnode && O.vnode(u), u;
287
287
  }
288
- var ge, q, Ht, Un, ze = 0, Hr = [], Z = H, zn = Z.__b, Vn = Z.__r, jn = Z.diffed, Bn = Z.__c, qn = Z.unmount, Yn = Z.__;
288
+ var ge, B, Ht, Un, ze = 0, Hr = [], K = O, zn = K.__b, Vn = K.__r, jn = K.diffed, Bn = K.__c, qn = K.unmount, Yn = K.__;
289
289
  function Ie(e, t) {
290
- Z.__h && Z.__h(q, e, ze || t), ze = 0;
291
- var n = q.__H || (q.__H = { __: [], __h: [] });
290
+ K.__h && K.__h(B, e, ze || t), ze = 0;
291
+ var n = B.__H || (B.__H = { __: [], __h: [] });
292
292
  return e >= n.__.length && n.__.push({}), n.__[e];
293
293
  }
294
- function F(e) {
294
+ function x(e) {
295
295
  return ze = 1, it(Wr, e);
296
296
  }
297
297
  function it(e, t, n) {
298
298
  var r = Ie(ge++, 2);
299
299
  if (r.t = e, !r.__c && (r.__ = [n ? n(t) : Wr(void 0, t), function(a) {
300
- var c = r.__N ? r.__N[0] : r.__[0], u = r.t(c, a);
301
- c !== u && (r.__N = [u, r.__[1]], r.__c.setState({}));
302
- }], r.__c = q, !q.u)) {
303
- var o = function(a, c, u) {
300
+ var l = r.__N ? r.__N[0] : r.__[0], u = r.t(l, a);
301
+ l !== u && (r.__N = [u, r.__[1]], r.__c.setState({}));
302
+ }], r.__c = B, !B.u)) {
303
+ var o = function(a, l, u) {
304
304
  if (!r.__c.__H) return !0;
305
305
  var d = r.__c.__H.__.filter(function(f) {
306
306
  return !!f.__c;
307
307
  });
308
308
  if (d.every(function(f) {
309
309
  return !f.__N;
310
- })) return !i || i.call(this, a, c, u);
311
- var l = !1;
310
+ })) return !i || i.call(this, a, l, u);
311
+ var c = !1;
312
312
  return d.forEach(function(f) {
313
313
  if (f.__N) {
314
314
  var p = f.__[0];
315
- f.__ = f.__N, f.__N = void 0, p !== f.__[0] && (l = !0);
315
+ f.__ = f.__N, f.__N = void 0, p !== f.__[0] && (c = !0);
316
316
  }
317
- }), !(!l && r.__c.props === a) && (!i || i.call(this, a, c, u));
317
+ }), !(!c && r.__c.props === a) && (!i || i.call(this, a, l, u));
318
318
  };
319
- q.u = !0;
320
- var i = q.shouldComponentUpdate, s = q.componentWillUpdate;
321
- q.componentWillUpdate = function(a, c, u) {
319
+ B.u = !0;
320
+ var i = B.shouldComponentUpdate, s = B.componentWillUpdate;
321
+ B.componentWillUpdate = function(a, l, u) {
322
322
  if (this.__e) {
323
323
  var d = i;
324
- i = void 0, o(a, c, u), i = d;
324
+ i = void 0, o(a, l, u), i = d;
325
325
  }
326
- s && s.call(this, a, c, u);
327
- }, q.shouldComponentUpdate = o;
326
+ s && s.call(this, a, l, u);
327
+ }, B.shouldComponentUpdate = o;
328
328
  }
329
329
  return r.__N || r.__;
330
330
  }
331
- function W(e, t) {
331
+ function H(e, t) {
332
332
  var n = Ie(ge++, 3);
333
- !Z.__s && bn(n.__H, t) && (n.__ = e, n.i = t, q.__H.__h.push(n));
333
+ !K.__s && bn(n.__H, t) && (n.__ = e, n.i = t, B.__H.__h.push(n));
334
334
  }
335
335
  function De(e, t) {
336
336
  var n = Ie(ge++, 4);
337
- !Z.__s && bn(n.__H, t) && (n.__ = e, n.i = t, q.__h.push(n));
337
+ !K.__s && bn(n.__H, t) && (n.__ = e, n.i = t, B.__h.push(n));
338
338
  }
339
339
  function w(e) {
340
- return ze = 5, V(function() {
340
+ return ze = 5, z(function() {
341
341
  return { current: e };
342
342
  }, []);
343
343
  }
@@ -350,25 +350,25 @@ function gn(e, t, n) {
350
350
  }) : void 0;
351
351
  }, n == null ? n : n.concat(e));
352
352
  }
353
- function V(e, t) {
353
+ function z(e, t) {
354
354
  var n = Ie(ge++, 7);
355
355
  return bn(n.__H, t) && (n.__ = e(), n.__H = t, n.__h = e), n.__;
356
356
  }
357
- function z(e, t) {
358
- return ze = 8, V(function() {
357
+ function U(e, t) {
358
+ return ze = 8, z(function() {
359
359
  return e;
360
360
  }, t);
361
361
  }
362
362
  function te(e) {
363
- var t = q.context[e.__c], n = Ie(ge++, 9);
364
- return n.c = e, t ? (n.__ == null && (n.__ = !0, t.sub(q)), t.props.value) : e.__;
363
+ var t = B.context[e.__c], n = Ie(ge++, 9);
364
+ return n.c = e, t ? (n.__ == null && (n.__ = !0, t.sub(B)), t.props.value) : e.__;
365
365
  }
366
366
  function wn(e, t) {
367
- Z.useDebugValue && Z.useDebugValue(t ? t(e) : e);
367
+ K.useDebugValue && K.useDebugValue(t ? t(e) : e);
368
368
  }
369
369
  function ni(e) {
370
- var t = Ie(ge++, 10), n = F();
371
- return t.__ = e, q.componentDidCatch || (q.componentDidCatch = function(r, o) {
370
+ var t = Ie(ge++, 10), n = x();
371
+ return t.__ = e, B.componentDidCatch || (B.componentDidCatch = function(r, o) {
372
372
  t.__ && t.__(r, o), n[1](r);
373
373
  }), [n[0], function() {
374
374
  n[1](void 0);
@@ -377,7 +377,7 @@ function ni(e) {
377
377
  function ke() {
378
378
  var e = Ie(ge++, 11);
379
379
  if (!e.__) {
380
- for (var t = q.__v; t !== null && !t.__m && t.__ !== null; ) t = t.__;
380
+ for (var t = B.__v; t !== null && !t.__m && t.__ !== null; ) t = t.__;
381
381
  var n = t.__m || (t.__m = [0, 0]);
382
382
  e.__ = "P" + n[0] + "-" + n[1]++;
383
383
  }
@@ -387,26 +387,26 @@ function ri() {
387
387
  for (var e; e = Hr.shift(); ) if (e.__P && e.__H) try {
388
388
  e.__H.__h.forEach(vt), e.__H.__h.forEach(tn), e.__H.__h = [];
389
389
  } catch (t) {
390
- e.__H.__h = [], Z.__e(t, e.__v);
390
+ e.__H.__h = [], K.__e(t, e.__v);
391
391
  }
392
392
  }
393
- Z.__b = function(e) {
394
- q = null, zn && zn(e);
395
- }, Z.__ = function(e, t) {
393
+ K.__b = function(e) {
394
+ B = null, zn && zn(e);
395
+ }, K.__ = function(e, t) {
396
396
  e && t.__k && t.__k.__m && (e.__m = t.__k.__m), Yn && Yn(e, t);
397
- }, Z.__r = function(e) {
397
+ }, K.__r = function(e) {
398
398
  Vn && Vn(e), ge = 0;
399
- var t = (q = e.__c).__H;
400
- t && (Ht === q ? (t.__h = [], q.__h = [], t.__.forEach(function(n) {
399
+ var t = (B = e.__c).__H;
400
+ t && (Ht === B ? (t.__h = [], B.__h = [], t.__.forEach(function(n) {
401
401
  n.__N && (n.__ = n.__N), n.i = n.__N = void 0;
402
- })) : (t.__h.forEach(vt), t.__h.forEach(tn), t.__h = [], ge = 0)), Ht = q;
403
- }, Z.diffed = function(e) {
402
+ })) : (t.__h.forEach(vt), t.__h.forEach(tn), t.__h = [], ge = 0)), Ht = B;
403
+ }, K.diffed = function(e) {
404
404
  jn && jn(e);
405
405
  var t = e.__c;
406
- t && t.__H && (t.__H.__h.length && (Hr.push(t) !== 1 && Un === Z.requestAnimationFrame || ((Un = Z.requestAnimationFrame) || oi)(ri)), t.__H.__.forEach(function(n) {
406
+ t && t.__H && (t.__H.__h.length && (Hr.push(t) !== 1 && Un === K.requestAnimationFrame || ((Un = K.requestAnimationFrame) || oi)(ri)), t.__H.__.forEach(function(n) {
407
407
  n.i && (n.__H = n.i), n.i = void 0;
408
- })), Ht = q = null;
409
- }, Z.__c = function(e, t) {
408
+ })), Ht = B = null;
409
+ }, K.__c = function(e, t) {
410
410
  t.some(function(n) {
411
411
  try {
412
412
  n.__h.forEach(vt), n.__h = n.__h.filter(function(r) {
@@ -415,10 +415,10 @@ Z.__b = function(e) {
415
415
  } catch (r) {
416
416
  t.some(function(o) {
417
417
  o.__h && (o.__h = []);
418
- }), t = [], Z.__e(r, n.__v);
418
+ }), t = [], K.__e(r, n.__v);
419
419
  }
420
420
  }), Bn && Bn(e, t);
421
- }, Z.unmount = function(e) {
421
+ }, K.unmount = function(e) {
422
422
  qn && qn(e);
423
423
  var t, n = e.__c;
424
424
  n && n.__H && (n.__H.__.forEach(function(r) {
@@ -427,7 +427,7 @@ Z.__b = function(e) {
427
427
  } catch (o) {
428
428
  t = o;
429
429
  }
430
- }), n.__H = void 0, t && Z.__e(t, n.__v));
430
+ }), n.__H = void 0, t && K.__e(t, n.__v));
431
431
  };
432
432
  var Gn = typeof requestAnimationFrame == "function";
433
433
  function oi(e) {
@@ -437,12 +437,12 @@ function oi(e) {
437
437
  Gn && (t = requestAnimationFrame(n));
438
438
  }
439
439
  function vt(e) {
440
- var t = q, n = e.__c;
441
- typeof n == "function" && (e.__c = void 0, n()), q = t;
440
+ var t = B, n = e.__c;
441
+ typeof n == "function" && (e.__c = void 0, n()), B = t;
442
442
  }
443
443
  function tn(e) {
444
- var t = q;
445
- e.__c = e.__(), q = t;
444
+ var t = B;
445
+ e.__c = e.__(), B = t;
446
446
  }
447
447
  function bn(e, t) {
448
448
  return !e || e.length !== t.length || t.some(function(n, r) {
@@ -477,8 +477,8 @@ function zr(e, t) {
477
477
  (yt.prototype = new ue()).isPureReactComponent = !0, yt.prototype.shouldComponentUpdate = function(e, t) {
478
478
  return nn(this.props, e) || nn(this.state, t);
479
479
  };
480
- var Kn = H.__b;
481
- H.__b = function(e) {
480
+ var Kn = O.__b;
481
+ O.__b = function(e) {
482
482
  e.type && e.type.__f && e.ref && (e.props.ref = e.ref, e.ref = null), Kn && Kn(e);
483
483
  };
484
484
  var ii = typeof Symbol < "u" && Symbol.for && Symbol.for("react.forward_ref") || 3911;
@@ -497,14 +497,14 @@ var Xn = function(e, t) {
497
497
  var t = _e(e);
498
498
  if (t.length !== 1) throw "Children.only";
499
499
  return t[0];
500
- }, toArray: _e }, si = H.__e;
501
- H.__e = function(e, t, n, r) {
500
+ }, toArray: _e }, si = O.__e;
501
+ O.__e = function(e, t, n, r) {
502
502
  if (e.then) {
503
503
  for (var o, i = t; i = i.__; ) if ((o = i.__c) && o.__c) return t.__e == null && (t.__e = n.__e, t.__k = n.__k), o.__c(e, t);
504
504
  }
505
505
  si(e, t, n, r);
506
506
  };
507
- var Zn = H.unmount;
507
+ var Zn = O.unmount;
508
508
  function jr(e, t, n) {
509
509
  return e && (e.__c && e.__c.__H && (e.__c.__H.__.forEach(function(r) {
510
510
  typeof r.__c == "function" && r.__c();
@@ -540,7 +540,7 @@ function Yr(e) {
540
540
  function We() {
541
541
  this.u = null, this.o = null;
542
542
  }
543
- H.unmount = function(e) {
543
+ O.unmount = function(e) {
544
544
  var t = e.__c;
545
545
  t && t.__R && t.__R(), t && 32 & e.__u && (e.type = null), Zn && Zn(e);
546
546
  }, (Qe.prototype = new ue()).__c = function(e, t) {
@@ -553,8 +553,8 @@ H.unmount = function(e) {
553
553
  var a = function() {
554
554
  if (!--r.__u) {
555
555
  if (r.state.__a) {
556
- var c = r.state.__a;
557
- r.__v.__k[0] = Br(c, c.__c.__P, c.__c.__O);
556
+ var l = r.state.__a;
557
+ r.__v.__k[0] = Br(l, l.__c.__P, l.__c.__O);
558
558
  }
559
559
  var u;
560
560
  for (r.setState({ __a: r.__b = null }); u = r.t.pop(); ) u.forceUpdate();
@@ -571,8 +571,8 @@ H.unmount = function(e) {
571
571
  }
572
572
  this.__b = null;
573
573
  }
574
- var o = t.__a && de(Y, null, e.fallback);
575
- return o && (o.__u &= -33), [de(Y, null, t.__a ? null : e.children), o];
574
+ var o = t.__a && de(q, null, e.fallback);
575
+ return o && (o.__u &= -33), [de(q, null, t.__a ? null : e.children), o];
576
576
  };
577
577
  var Jn = function(e, t, n) {
578
578
  if (++n[1] === n[0] && e.o.delete(t), e.props.revealOrder && (e.props.revealOrder[0] !== "t" || !e.o.size)) for (n = e.u; n; ) {
@@ -586,7 +586,7 @@ function ai(e) {
586
586
  return e.context;
587
587
  }, e.children;
588
588
  }
589
- function ci(e) {
589
+ function li(e) {
590
590
  var t = this, n = e.i;
591
591
  t.componentWillUnmount = function() {
592
592
  Ue(null, t.l), t.l = null, t.i = null;
@@ -601,7 +601,7 @@ function ci(e) {
601
601
  } }), Ue(de(ai, { context: t.context }, e.__v), t.l);
602
602
  }
603
603
  function kt(e, t) {
604
- var n = de(ci, { __v: e, i: t });
604
+ var n = de(li, { __v: e, i: t });
605
605
  return n.containerInfo = t, n;
606
606
  }
607
607
  (We.prototype = new ue()).__a = function(e) {
@@ -624,7 +624,7 @@ function kt(e, t) {
624
624
  Jn(e, n, t);
625
625
  });
626
626
  };
627
- var Gr = typeof Symbol < "u" && Symbol.for && Symbol.for("react.element") || 60103, li = /^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/, ui = /^on(Ani|Tra|Tou|BeforeInp|Compo)/, di = /[A-Z0-9]/g, fi = typeof document < "u", pi = function(e) {
627
+ var Gr = typeof Symbol < "u" && Symbol.for && Symbol.for("react.element") || 60103, ci = /^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/, ui = /^on(Ani|Tra|Tou|BeforeInp|Compo)/, di = /[A-Z0-9]/g, fi = typeof document < "u", pi = function(e) {
628
628
  return (typeof Symbol < "u" && typeof Symbol() == "symbol" ? /fil|che|rad/ : /fil|che|ra/).test(e);
629
629
  };
630
630
  function Kr(e, t, n) {
@@ -640,7 +640,7 @@ ue.prototype.isReactComponent = {}, ["componentWillMount", "componentWillReceive
640
640
  Object.defineProperty(this, e, { configurable: !0, writable: !0, value: t });
641
641
  } });
642
642
  });
643
- var Qn = H.event;
643
+ var Qn = O.event;
644
644
  function hi() {
645
645
  }
646
646
  function vi() {
@@ -649,42 +649,42 @@ function vi() {
649
649
  function mi() {
650
650
  return this.defaultPrevented;
651
651
  }
652
- H.event = function(e) {
652
+ O.event = function(e) {
653
653
  return Qn && (e = Qn(e)), e.persist = hi, e.isPropagationStopped = vi, e.isDefaultPrevented = mi, e.nativeEvent = e;
654
654
  };
655
655
  var $n, _i = { enumerable: !1, configurable: !0, get: function() {
656
656
  return this.class;
657
- } }, er = H.vnode;
658
- H.vnode = function(e) {
657
+ } }, er = O.vnode;
658
+ O.vnode = function(e) {
659
659
  typeof e.type == "string" && function(t) {
660
660
  var n = t.props, r = t.type, o = {};
661
661
  for (var i in n) {
662
662
  var s = n[i];
663
663
  if (!(i === "value" && "defaultValue" in n && s == null || fi && i === "children" && r === "noscript" || i === "class" || i === "className")) {
664
664
  var a = i.toLowerCase();
665
- i === "defaultValue" && "value" in n && n.value == null ? i = "value" : i === "download" && s === !0 ? s = "" : a === "translate" && s === "no" ? s = !1 : a === "ondoubleclick" ? i = "ondblclick" : a !== "onchange" || r !== "input" && r !== "textarea" || pi(n.type) ? a === "onfocus" ? i = "onfocusin" : a === "onblur" ? i = "onfocusout" : ui.test(i) ? i = a : r.indexOf("-") === -1 && li.test(i) ? i = i.replace(di, "-$&").toLowerCase() : s === null && (s = void 0) : a = i = "oninput", a === "oninput" && o[i = a] && (i = "oninputCapture"), o[i] = s;
665
+ i === "defaultValue" && "value" in n && n.value == null ? i = "value" : i === "download" && s === !0 ? s = "" : a === "translate" && s === "no" ? s = !1 : a === "ondoubleclick" ? i = "ondblclick" : a !== "onchange" || r !== "input" && r !== "textarea" || pi(n.type) ? a === "onfocus" ? i = "onfocusin" : a === "onblur" ? i = "onfocusout" : ui.test(i) ? i = a : r.indexOf("-") === -1 && ci.test(i) ? i = i.replace(di, "-$&").toLowerCase() : s === null && (s = void 0) : a = i = "oninput", a === "oninput" && o[i = a] && (i = "oninputCapture"), o[i] = s;
666
666
  }
667
667
  }
668
- r == "select" && o.multiple && Array.isArray(o.value) && (o.value = _e(n.children).forEach(function(c) {
669
- c.props.selected = o.value.indexOf(c.props.value) != -1;
670
- })), r == "select" && o.defaultValue != null && (o.value = _e(n.children).forEach(function(c) {
671
- c.props.selected = o.multiple ? o.defaultValue.indexOf(c.props.value) != -1 : o.defaultValue == c.props.value;
668
+ r == "select" && o.multiple && Array.isArray(o.value) && (o.value = _e(n.children).forEach(function(l) {
669
+ l.props.selected = o.value.indexOf(l.props.value) != -1;
670
+ })), r == "select" && o.defaultValue != null && (o.value = _e(n.children).forEach(function(l) {
671
+ l.props.selected = o.multiple ? o.defaultValue.indexOf(l.props.value) != -1 : o.defaultValue == l.props.value;
672
672
  })), n.class && !n.className ? (o.class = n.class, Object.defineProperty(o, "className", _i)) : (n.className && !n.class || n.class && n.className) && (o.class = o.className = n.className), t.props = o;
673
673
  }(e), e.$$typeof = Gr, er && er(e);
674
674
  };
675
- var tr = H.__r;
676
- H.__r = function(e) {
675
+ var tr = O.__r;
676
+ O.__r = function(e) {
677
677
  tr && tr(e), $n = e.__c;
678
678
  };
679
- var nr = H.diffed;
680
- H.diffed = function(e) {
679
+ var nr = O.diffed;
680
+ O.diffed = function(e) {
681
681
  nr && nr(e);
682
682
  var t = e.props, n = e.__e;
683
683
  n != null && e.type === "textarea" && "value" in t && t.value !== n.value && (n.value = t.value == null ? "" : t.value), $n = null;
684
684
  };
685
685
  var Zr = { ReactCurrentDispatcher: { current: { readContext: function(e) {
686
686
  return $n.__n[e.__c].props.value;
687
- }, useCallback: z, useContext: te, useDebugValue: wn, useDeferredValue: Sn, useEffect: W, useId: ke, useImperativeHandle: gn, useInsertionEffect: Fn, useLayoutEffect: De, useMemo: V, useReducer: it, useRef: w, useState: F, useSyncExternalStore: St, useTransition: Cn } } }, yi = "17.0.2";
687
+ }, useCallback: U, useContext: te, useDebugValue: wn, useDeferredValue: Sn, useEffect: H, useId: ke, useImperativeHandle: gn, useInsertionEffect: Fn, useLayoutEffect: De, useMemo: z, useReducer: it, useRef: w, useState: x, useSyncExternalStore: St, useTransition: Cn } } }, yi = "17.0.2";
688
688
  function Jr(e) {
689
689
  return de.bind(null, e);
690
690
  }
@@ -692,7 +692,7 @@ function je(e) {
692
692
  return !!e && e.$$typeof === Gr;
693
693
  }
694
694
  function Qr(e) {
695
- return je(e) && e.type === Y;
695
+ return je(e) && e.type === q;
696
696
  }
697
697
  function eo(e) {
698
698
  return !!e && !!e.displayName && (typeof e.displayName == "string" || e.displayName instanceof String) && e.displayName.startsWith("Memo(");
@@ -710,7 +710,7 @@ var ro = function(e, t) {
710
710
  return e(t);
711
711
  }, oo = function(e, t) {
712
712
  return e(t);
713
- }, io = Y;
713
+ }, io = q;
714
714
  function kn(e) {
715
715
  e();
716
716
  }
@@ -722,10 +722,10 @@ function Cn() {
722
722
  }
723
723
  var Fn = De, so = je;
724
724
  function St(e, t) {
725
- var n = t(), r = F({ h: { __: n, v: t } }), o = r[0].h, i = r[1];
725
+ var n = t(), r = x({ h: { __: n, v: t } }), o = r[0].h, i = r[1];
726
726
  return De(function() {
727
727
  o.__ = n, o.v = t, Wt(o) && i({ h: o });
728
- }, [e, n, t]), W(function() {
728
+ }, [e, n, t]), H(function() {
729
729
  return Wt(o) && i({ h: o }), e(function() {
730
730
  Wt(o) && i({ h: o });
731
731
  });
@@ -740,12 +740,12 @@ function Wt(e) {
740
740
  return !0;
741
741
  }
742
742
  }
743
- var P = { useState: F, useId: ke, useReducer: it, useEffect: W, useLayoutEffect: De, useInsertionEffect: Fn, useTransition: Cn, useDeferredValue: Sn, useSyncExternalStore: St, startTransition: kn, useRef: w, useImperativeHandle: gn, useMemo: V, useCallback: z, useContext: te, useDebugValue: wn, version: "17.0.2", Children: Vr, render: Kr, hydrate: Xr, unmountComponentAtNode: to, createPortal: kt, createElement: de, createContext: ie, createFactory: Jr, cloneElement: Tn, createRef: mn, Fragment: Y, isValidElement: je, isElement: so, isFragment: Qr, isMemo: eo, findDOMNode: no, Component: ue, PureComponent: yt, memo: zr, forwardRef: En, flushSync: oo, unstable_batchedUpdates: ro, StrictMode: io, Suspense: Qe, SuspenseList: We, lazy: Yr, __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: Zr };
743
+ var L = { useState: x, useId: ke, useReducer: it, useEffect: H, useLayoutEffect: De, useInsertionEffect: Fn, useTransition: Cn, useDeferredValue: Sn, useSyncExternalStore: St, startTransition: kn, useRef: w, useImperativeHandle: gn, useMemo: z, useCallback: U, useContext: te, useDebugValue: wn, version: "17.0.2", Children: Vr, render: Kr, hydrate: Xr, unmountComponentAtNode: to, createPortal: kt, createElement: de, createContext: ie, createFactory: Jr, cloneElement: Tn, createRef: mn, Fragment: q, isValidElement: je, isElement: so, isFragment: Qr, isMemo: eo, findDOMNode: no, Component: ue, PureComponent: yt, memo: zr, forwardRef: En, flushSync: oo, unstable_batchedUpdates: ro, StrictMode: io, Suspense: Qe, SuspenseList: We, lazy: Yr, __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: Zr };
744
744
  const rr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
745
745
  __proto__: null,
746
746
  Children: Vr,
747
747
  Component: ue,
748
- Fragment: Y,
748
+ Fragment: q,
749
749
  PureComponent: yt,
750
750
  StrictMode: io,
751
751
  Suspense: Qe,
@@ -757,7 +757,7 @@ const rr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
757
757
  createFactory: Jr,
758
758
  createPortal: kt,
759
759
  createRef: mn,
760
- default: P,
760
+ default: L,
761
761
  findDOMNode: no,
762
762
  flushSync: oo,
763
763
  forwardRef: En,
@@ -772,24 +772,24 @@ const rr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
772
772
  startTransition: kn,
773
773
  unmountComponentAtNode: to,
774
774
  unstable_batchedUpdates: ro,
775
- useCallback: z,
775
+ useCallback: U,
776
776
  useContext: te,
777
777
  useDebugValue: wn,
778
778
  useDeferredValue: Sn,
779
- useEffect: W,
779
+ useEffect: H,
780
780
  useErrorBoundary: ni,
781
781
  useId: ke,
782
782
  useImperativeHandle: gn,
783
783
  useInsertionEffect: Fn,
784
784
  useLayoutEffect: De,
785
- useMemo: V,
785
+ useMemo: z,
786
786
  useReducer: it,
787
787
  useRef: w,
788
- useState: F,
788
+ useState: x,
789
789
  useSyncExternalStore: St,
790
790
  useTransition: Cn,
791
791
  version: yi
792
- }, Symbol.toStringTag, { value: "Module" })), ao = typeof document < "u" ? P.useLayoutEffect : () => {
792
+ }, Symbol.toStringTag, { value: "Module" })), ao = typeof document < "u" ? L.useLayoutEffect : () => {
793
793
  };
794
794
  function gi(e) {
795
795
  const t = w(null);
@@ -797,7 +797,7 @@ function gi(e) {
797
797
  t.current = e;
798
798
  }, [
799
799
  e
800
- ]), z((...n) => {
800
+ ]), U((...n) => {
801
801
  const r = t.current;
802
802
  return r == null ? void 0 : r(...n);
803
803
  }, []);
@@ -842,7 +842,7 @@ class ki {
842
842
  this.nativeEvent = n, this.target = n.target, this.currentTarget = n.currentTarget, this.relatedTarget = n.relatedTarget, this.bubbles = n.bubbles, this.cancelable = n.cancelable, this.defaultPrevented = n.defaultPrevented, this.eventPhase = n.eventPhase, this.isTrusted = n.isTrusted, this.timeStamp = n.timeStamp, this.type = t;
843
843
  }
844
844
  }
845
- function co(e) {
845
+ function lo(e) {
846
846
  let t = w({
847
847
  isFocused: !1,
848
848
  observer: null
@@ -856,7 +856,7 @@ function co(e) {
856
856
  let n = gi((r) => {
857
857
  e == null || e(r);
858
858
  });
859
- return z((r) => {
859
+ return U((r) => {
860
860
  if (r.target instanceof HTMLButtonElement || r.target instanceof HTMLInputElement || r.target instanceof HTMLTextAreaElement || r.target instanceof HTMLSelectElement) {
861
861
  t.current.isFocused = !0;
862
862
  let o = r.target, i = (s) => {
@@ -889,15 +889,15 @@ function co(e) {
889
889
  }
890
890
  function Si(e) {
891
891
  let { isDisabled: t, onFocus: n, onBlur: r, onFocusChange: o } = e;
892
- const i = z((c) => {
893
- if (c.target === c.currentTarget)
894
- return r && r(c), o && o(!1), !0;
892
+ const i = U((l) => {
893
+ if (l.target === l.currentTarget)
894
+ return r && r(l), o && o(!1), !0;
895
895
  }, [
896
896
  r,
897
897
  o
898
- ]), s = co(i), a = z((c) => {
899
- const u = st(c.target);
900
- c.target === c.currentTarget && u.activeElement === c.target && (n && n(c), o && o(!0), s(c));
898
+ ]), s = lo(i), a = U((l) => {
899
+ const u = st(l.target);
900
+ l.target === l.currentTarget && u.activeElement === l.target && (n && n(l), o && o(!0), s(l));
901
901
  }, [
902
902
  o,
903
903
  n,
@@ -924,10 +924,10 @@ function Fi(e) {
924
924
  function gt(e) {
925
925
  Re = !0, Fi(e) && (at = "keyboard", xn("keyboard", e));
926
926
  }
927
- function ce(e) {
927
+ function le(e) {
928
928
  at = "pointer", (e.type === "mousedown" || e.type === "pointerdown") && (Re = !0, xn("pointer", e));
929
929
  }
930
- function lo(e) {
930
+ function co(e) {
931
931
  Ti(e) && (Re = !0, at = "virtual");
932
932
  }
933
933
  function uo(e) {
@@ -942,7 +942,7 @@ function sn(e) {
942
942
  let r = t.HTMLElement.prototype.focus;
943
943
  t.HTMLElement.prototype.focus = function() {
944
944
  Re = !0, r.apply(this, arguments);
945
- }, n.addEventListener("keydown", gt, !0), n.addEventListener("keyup", gt, !0), n.addEventListener("click", lo, !0), t.addEventListener("focus", uo, !0), t.addEventListener("blur", fo, !1), typeof PointerEvent < "u" ? (n.addEventListener("pointerdown", ce, !0), n.addEventListener("pointermove", ce, !0), n.addEventListener("pointerup", ce, !0)) : (n.addEventListener("mousedown", ce, !0), n.addEventListener("mousemove", ce, !0), n.addEventListener("mouseup", ce, !0)), t.addEventListener("beforeunload", () => {
945
+ }, n.addEventListener("keydown", gt, !0), n.addEventListener("keyup", gt, !0), n.addEventListener("click", co, !0), t.addEventListener("focus", uo, !0), t.addEventListener("blur", fo, !1), typeof PointerEvent < "u" ? (n.addEventListener("pointerdown", le, !0), n.addEventListener("pointermove", le, !0), n.addEventListener("pointerup", le, !0)) : (n.addEventListener("mousedown", le, !0), n.addEventListener("mousemove", le, !0), n.addEventListener("mouseup", le, !0)), t.addEventListener("beforeunload", () => {
946
946
  po(e);
947
947
  }, {
948
948
  once: !0
@@ -952,7 +952,7 @@ function sn(e) {
952
952
  }
953
953
  const po = (e, t) => {
954
954
  const n = Pe(e), r = st(e);
955
- t && r.removeEventListener("DOMContentLoaded", t), et.has(n) && (n.HTMLElement.prototype.focus = et.get(n).focus, r.removeEventListener("keydown", gt, !0), r.removeEventListener("keyup", gt, !0), r.removeEventListener("click", lo, !0), n.removeEventListener("focus", uo, !0), n.removeEventListener("blur", fo, !1), typeof PointerEvent < "u" ? (r.removeEventListener("pointerdown", ce, !0), r.removeEventListener("pointermove", ce, !0), r.removeEventListener("pointerup", ce, !0)) : (r.removeEventListener("mousedown", ce, !0), r.removeEventListener("mousemove", ce, !0), r.removeEventListener("mouseup", ce, !0)), et.delete(n));
955
+ t && r.removeEventListener("DOMContentLoaded", t), et.has(n) && (n.HTMLElement.prototype.focus = et.get(n).focus, r.removeEventListener("keydown", gt, !0), r.removeEventListener("keyup", gt, !0), r.removeEventListener("click", co, !0), n.removeEventListener("focus", uo, !0), n.removeEventListener("blur", fo, !1), typeof PointerEvent < "u" ? (r.removeEventListener("pointerdown", le, !0), r.removeEventListener("pointermove", le, !0), r.removeEventListener("pointerup", le, !0)) : (r.removeEventListener("mousedown", le, !0), r.removeEventListener("mousemove", le, !0), r.removeEventListener("mouseup", le, !0)), et.delete(n));
956
956
  };
957
957
  function xi(e) {
958
958
  const t = st(e);
@@ -982,7 +982,7 @@ function Pi(e, t, n) {
982
982
  return e = e || (n == null ? void 0 : n.target) instanceof o && !Mi.has(n == null || (r = n.target) === null || r === void 0 ? void 0 : r.type) || (n == null ? void 0 : n.target) instanceof i || (n == null ? void 0 : n.target) instanceof s && (n == null ? void 0 : n.target.isContentEditable), !(e && t === "keyboard" && n instanceof a && !Ci[n.key]);
983
983
  }
984
984
  function Ni(e, t, n) {
985
- sn(), W(() => {
985
+ sn(), H(() => {
986
986
  let r = (o, i) => {
987
987
  Pi(!!(n != null && n.isTextInput), o, i) && e(ho());
988
988
  };
@@ -994,13 +994,13 @@ function Ni(e, t, n) {
994
994
  function Li(e) {
995
995
  let { isDisabled: t, onBlurWithin: n, onFocusWithin: r, onFocusWithinChange: o } = e, i = w({
996
996
  isFocusWithin: !1
997
- }), s = z((u) => {
997
+ }), s = U((u) => {
998
998
  i.current.isFocusWithin && !u.currentTarget.contains(u.relatedTarget) && (i.current.isFocusWithin = !1, n && n(u), o && o(!1));
999
999
  }, [
1000
1000
  n,
1001
1001
  o,
1002
1002
  i
1003
- ]), a = co(s), c = z((u) => {
1003
+ ]), a = lo(s), l = U((u) => {
1004
1004
  !i.current.isFocusWithin && document.activeElement === u.target && (r && r(u), o && o(!0), i.current.isFocusWithin = !0, a(u));
1005
1005
  }, [
1006
1006
  r,
@@ -1015,7 +1015,7 @@ function Li(e) {
1015
1015
  }
1016
1016
  } : {
1017
1017
  focusWithinProps: {
1018
- onFocus: c,
1018
+ onFocus: l,
1019
1019
  onBlur: s
1020
1020
  }
1021
1021
  };
@@ -1036,14 +1036,14 @@ function Ai() {
1036
1036
  };
1037
1037
  }
1038
1038
  function Ri(e) {
1039
- let { onHoverStart: t, onHoverChange: n, onHoverEnd: r, isDisabled: o } = e, [i, s] = F(!1), a = w({
1039
+ let { onHoverStart: t, onHoverChange: n, onHoverEnd: r, isDisabled: o } = e, [i, s] = x(!1), a = w({
1040
1040
  isHovered: !1,
1041
1041
  ignoreEmulatedMouseEvents: !1,
1042
1042
  pointerType: "",
1043
1043
  target: null
1044
1044
  }).current;
1045
- W(Ai, []);
1046
- let { hoverProps: c, triggerHoverEnd: u } = V(() => {
1045
+ H(Ai, []);
1046
+ let { hoverProps: l, triggerHoverEnd: u } = z(() => {
1047
1047
  let d = (p, _) => {
1048
1048
  if (a.pointerType = _, o || _ === "touch" || a.isHovered || !p.currentTarget.contains(p.target)) return;
1049
1049
  a.isHovered = !0;
@@ -1053,7 +1053,7 @@ function Ri(e) {
1053
1053
  target: y,
1054
1054
  pointerType: _
1055
1055
  }), n && n(!0), s(!0);
1056
- }, l = (p, _) => {
1056
+ }, c = (p, _) => {
1057
1057
  if (a.pointerType = "", a.target = null, _ === "touch" || !a.isHovered) return;
1058
1058
  a.isHovered = !1;
1059
1059
  let y = p.currentTarget;
@@ -1066,16 +1066,16 @@ function Ri(e) {
1066
1066
  return typeof PointerEvent < "u" ? (f.onPointerEnter = (p) => {
1067
1067
  wt && p.pointerType === "mouse" || d(p, p.pointerType);
1068
1068
  }, f.onPointerLeave = (p) => {
1069
- !o && p.currentTarget.contains(p.target) && l(p, p.pointerType);
1069
+ !o && p.currentTarget.contains(p.target) && c(p, p.pointerType);
1070
1070
  }) : (f.onTouchStart = () => {
1071
1071
  a.ignoreEmulatedMouseEvents = !0;
1072
1072
  }, f.onMouseEnter = (p) => {
1073
1073
  !a.ignoreEmulatedMouseEvents && !wt && d(p, "mouse"), a.ignoreEmulatedMouseEvents = !1;
1074
1074
  }, f.onMouseLeave = (p) => {
1075
- !o && p.currentTarget.contains(p.target) && l(p, "mouse");
1075
+ !o && p.currentTarget.contains(p.target) && c(p, "mouse");
1076
1076
  }), {
1077
1077
  hoverProps: f,
1078
- triggerHoverEnd: l
1078
+ triggerHoverEnd: c
1079
1079
  };
1080
1080
  }, [
1081
1081
  t,
@@ -1084,14 +1084,14 @@ function Ri(e) {
1084
1084
  o,
1085
1085
  a
1086
1086
  ]);
1087
- return W(() => {
1087
+ return H(() => {
1088
1088
  o && u({
1089
1089
  currentTarget: a.target
1090
1090
  }, a.pointerType);
1091
1091
  }, [
1092
1092
  o
1093
1093
  ]), {
1094
- hoverProps: c,
1094
+ hoverProps: l,
1095
1095
  isHovered: i
1096
1096
  };
1097
1097
  }
@@ -1099,7 +1099,7 @@ function Ii(e = {}) {
1099
1099
  let { autoFocus: t = !1, isTextInput: n, within: r } = e, o = w({
1100
1100
  isFocused: !1,
1101
1101
  isFocusVisible: t || ho()
1102
- }), [i, s] = F(!1), [a, c] = F(() => o.current.isFocused && o.current.isFocusVisible), u = z(() => c(o.current.isFocused && o.current.isFocusVisible), []), d = z((p) => {
1102
+ }), [i, s] = x(!1), [a, l] = x(() => o.current.isFocused && o.current.isFocusVisible), u = U(() => l(o.current.isFocused && o.current.isFocusVisible), []), d = U((p) => {
1103
1103
  o.current.isFocused = p, s(p), u();
1104
1104
  }, [
1105
1105
  u
@@ -1109,7 +1109,7 @@ function Ii(e = {}) {
1109
1109
  }, [], {
1110
1110
  isTextInput: n
1111
1111
  });
1112
- let { focusProps: l } = Si({
1112
+ let { focusProps: c } = Si({
1113
1113
  isDisabled: r,
1114
1114
  onFocusChange: d
1115
1115
  }), { focusWithinProps: f } = Li({
@@ -1119,7 +1119,7 @@ function Ii(e = {}) {
1119
1119
  return {
1120
1120
  isFocused: i,
1121
1121
  isFocusVisible: a,
1122
- focusProps: r ? f : l
1122
+ focusProps: r ? f : c
1123
1123
  };
1124
1124
  }
1125
1125
  var Di = Object.defineProperty, Oi = (e, t, n) => t in e ? Di(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, zt = (e, t, n) => (Oi(e, typeof t != "symbol" ? t + "" : t, n), n);
@@ -1197,11 +1197,11 @@ function Se() {
1197
1197
  return t;
1198
1198
  }
1199
1199
  function xt() {
1200
- let [e] = F(Se);
1201
- return W(() => () => e.dispose(), [e]), e;
1200
+ let [e] = x(Se);
1201
+ return H(() => () => e.dispose(), [e]), e;
1202
1202
  }
1203
1203
  let re = (e, t) => {
1204
- Le.isServer ? W(e, t) : De(e, t);
1204
+ Le.isServer ? H(e, t) : De(e, t);
1205
1205
  };
1206
1206
  function Oe(e) {
1207
1207
  let t = w(e);
@@ -1209,9 +1209,9 @@ function Oe(e) {
1209
1209
  t.current = e;
1210
1210
  }, [e]), t;
1211
1211
  }
1212
- let X = function(e) {
1212
+ let G = function(e) {
1213
1213
  let t = Oe(e);
1214
- return P.useCallback((...n) => t.current(...n), [t]);
1214
+ return L.useCallback((...n) => t.current(...n), [t]);
1215
1215
  };
1216
1216
  function Wi(e) {
1217
1217
  let t = e.width / 2, n = e.height / 2;
@@ -1221,19 +1221,19 @@ function Ui(e, t) {
1221
1221
  return !(!e || !t || e.right < t.left || e.left > t.right || e.bottom < t.top || e.top > t.bottom);
1222
1222
  }
1223
1223
  function zi({ disabled: e = !1 } = {}) {
1224
- let t = w(null), [n, r] = F(!1), o = xt(), i = X(() => {
1224
+ let t = w(null), [n, r] = x(!1), o = xt(), i = G(() => {
1225
1225
  t.current = null, r(!1), o.dispose();
1226
- }), s = X((a) => {
1226
+ }), s = G((a) => {
1227
1227
  if (o.dispose(), t.current === null) {
1228
1228
  t.current = a.currentTarget, r(!0);
1229
1229
  {
1230
- let c = Ct(a.currentTarget);
1231
- o.addEventListener(c, "pointerup", i, !1), o.addEventListener(c, "pointermove", (u) => {
1230
+ let l = Ct(a.currentTarget);
1231
+ o.addEventListener(l, "pointerup", i, !1), o.addEventListener(l, "pointermove", (u) => {
1232
1232
  if (t.current) {
1233
1233
  let d = Wi(u);
1234
1234
  r(Ui(d, t.current.getBoundingClientRect()));
1235
1235
  }
1236
- }, !1), o.addEventListener(c, "pointercancel", i, !1);
1236
+ }, !1), o.addEventListener(l, "pointercancel", i, !1);
1237
1237
  }
1238
1238
  }
1239
1239
  });
@@ -1243,7 +1243,7 @@ let Vi = ie(void 0);
1243
1243
  function vo() {
1244
1244
  return te(Vi);
1245
1245
  }
1246
- function cn(...e) {
1246
+ function ln(...e) {
1247
1247
  return Array.from(new Set(e.flatMap((t) => typeof t == "string" ? t.split(" ") : []))).filter(Boolean).join(" ");
1248
1248
  }
1249
1249
  function Te(e, t, ...n) {
@@ -1257,46 +1257,46 @@ function Te(e, t, ...n) {
1257
1257
  var bt = ((e) => (e[e.None = 0] = "None", e[e.RenderStrategy = 1] = "RenderStrategy", e[e.Static = 2] = "Static", e))(bt || {}), Ee = ((e) => (e[e.Unmount = 0] = "Unmount", e[e.Hidden = 1] = "Hidden", e))(Ee || {});
1258
1258
  function ae({ ourProps: e, theirProps: t, slot: n, defaultTag: r, features: o, visible: i = !0, name: s, mergeRefs: a }) {
1259
1259
  a = a ?? ji;
1260
- let c = mo(t, e);
1261
- if (i) return pt(c, n, r, s, a);
1260
+ let l = mo(t, e);
1261
+ if (i) return pt(l, n, r, s, a);
1262
1262
  let u = o ?? 0;
1263
1263
  if (u & 2) {
1264
- let { static: d = !1, ...l } = c;
1265
- if (d) return pt(l, n, r, s, a);
1264
+ let { static: d = !1, ...c } = l;
1265
+ if (d) return pt(c, n, r, s, a);
1266
1266
  }
1267
1267
  if (u & 1) {
1268
- let { unmount: d = !0, ...l } = c;
1268
+ let { unmount: d = !0, ...c } = l;
1269
1269
  return Te(d ? 0 : 1, { 0() {
1270
1270
  return null;
1271
1271
  }, 1() {
1272
- return pt({ ...l, hidden: !0, style: { display: "none" } }, n, r, s, a);
1272
+ return pt({ ...c, hidden: !0, style: { display: "none" } }, n, r, s, a);
1273
1273
  } });
1274
1274
  }
1275
- return pt(c, n, r, s, a);
1275
+ return pt(l, n, r, s, a);
1276
1276
  }
1277
1277
  function pt(e, t = {}, n, r, o) {
1278
- let { as: i = n, children: s, refName: a = "ref", ...c } = Vt(e, ["unmount", "static"]), u = e.ref !== void 0 ? { [a]: e.ref } : {}, d = typeof s == "function" ? s(t) : s;
1279
- "className" in c && c.className && typeof c.className == "function" && (c.className = c.className(t)), c["aria-labelledby"] && c["aria-labelledby"] === c.id && (c["aria-labelledby"] = void 0);
1280
- let l = {};
1278
+ let { as: i = n, children: s, refName: a = "ref", ...l } = Vt(e, ["unmount", "static"]), u = e.ref !== void 0 ? { [a]: e.ref } : {}, d = typeof s == "function" ? s(t) : s;
1279
+ "className" in l && l.className && typeof l.className == "function" && (l.className = l.className(t)), l["aria-labelledby"] && l["aria-labelledby"] === l.id && (l["aria-labelledby"] = void 0);
1280
+ let c = {};
1281
1281
  if (t) {
1282
1282
  let f = !1, p = [];
1283
1283
  for (let [_, y] of Object.entries(t)) typeof y == "boolean" && (f = !0), y === !0 && p.push(_.replace(/([A-Z])/g, (m) => `-${m.toLowerCase()}`));
1284
1284
  if (f) {
1285
- l["data-headlessui-state"] = p.join(" ");
1286
- for (let _ of p) l[`data-${_}`] = "";
1285
+ c["data-headlessui-state"] = p.join(" ");
1286
+ for (let _ of p) c[`data-${_}`] = "";
1287
1287
  }
1288
1288
  }
1289
- if (i === Y && (Object.keys(Fe(c)).length > 0 || Object.keys(Fe(l)).length > 0)) if (!je(d) || Array.isArray(d) && d.length > 1) {
1290
- if (Object.keys(Fe(c)).length > 0) throw new Error(['Passing props on "Fragment"!', "", `The current component <${r} /> is rendering a "Fragment".`, "However we need to passthrough the following props:", Object.keys(Fe(c)).concat(Object.keys(Fe(l))).map((f) => ` - ${f}`).join(`
1289
+ if (i === q && (Object.keys(Fe(l)).length > 0 || Object.keys(Fe(c)).length > 0)) if (!je(d) || Array.isArray(d) && d.length > 1) {
1290
+ if (Object.keys(Fe(l)).length > 0) throw new Error(['Passing props on "Fragment"!', "", `The current component <${r} /> is rendering a "Fragment".`, "However we need to passthrough the following props:", Object.keys(Fe(l)).concat(Object.keys(Fe(c))).map((f) => ` - ${f}`).join(`
1291
1291
  `), "", "You can apply a few solutions:", ['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".', "Render a single element as the child so that we can forward the props onto that element."].map((f) => ` - ${f}`).join(`
1292
1292
  `)].join(`
1293
1293
  `));
1294
1294
  } else {
1295
- let f = d.props, p = f == null ? void 0 : f.className, _ = typeof p == "function" ? (...v) => cn(p(...v), c.className) : cn(p, c.className), y = _ ? { className: _ } : {}, m = mo(d.props, Fe(Vt(c, ["ref"])));
1296
- for (let v in l) v in m && delete l[v];
1297
- return Tn(d, Object.assign({}, m, l, u, { ref: o(d.ref, u.ref) }, y));
1295
+ let f = d.props, p = f == null ? void 0 : f.className, _ = typeof p == "function" ? (...v) => ln(p(...v), l.className) : ln(p, l.className), y = _ ? { className: _ } : {}, m = mo(d.props, Fe(Vt(l, ["ref"])));
1296
+ for (let v in c) v in m && delete c[v];
1297
+ return Tn(d, Object.assign({}, m, c, u, { ref: o(d.ref, u.ref) }, y));
1298
1298
  }
1299
- return de(i, Object.assign({}, Vt(c, ["ref"]), i !== Y && u, i !== Y && l), d);
1299
+ return de(i, Object.assign({}, Vt(l, ["ref"]), i !== q && u, i !== q && c), d);
1300
1300
  }
1301
1301
  function ji(...e) {
1302
1302
  return e.every((t) => t == null) ? void 0 : (t) => {
@@ -1349,7 +1349,7 @@ function Vt(e, t = []) {
1349
1349
  let qi = "button";
1350
1350
  function Yi(e, t) {
1351
1351
  var n;
1352
- let r = vo(), { disabled: o = r || !1, autoFocus: i = !1, ...s } = e, { isFocusVisible: a, focusProps: c } = Ii({ autoFocus: i }), { isHovered: u, hoverProps: d } = Ri({ isDisabled: o }), { pressed: l, pressProps: f } = zi({ disabled: o }), p = Bi({ ref: t, type: (n = s.type) != null ? n : "button", disabled: o || void 0, autoFocus: i }, c, d, f), _ = V(() => ({ disabled: o, hover: u, focus: a, active: l, autofocus: i }), [o, u, a, l, i]);
1352
+ let r = vo(), { disabled: o = r || !1, autoFocus: i = !1, ...s } = e, { isFocusVisible: a, focusProps: l } = Ii({ autoFocus: i }), { isHovered: u, hoverProps: d } = Ri({ isDisabled: o }), { pressed: c, pressProps: f } = zi({ disabled: o }), p = Bi({ ref: t, type: (n = s.type) != null ? n : "button", disabled: o || void 0, autoFocus: i }, l, d, f), _ = z(() => ({ disabled: o, hover: u, focus: a, active: c, autofocus: i }), [o, u, a, c, i]);
1353
1353
  return ae({ ourProps: p, theirProps: s, slot: _, defaultTag: qi, name: "Button" });
1354
1354
  }
1355
1355
  let Gi = oe(Yi), Ki = "div";
@@ -1359,12 +1359,12 @@ function Xi(e, t) {
1359
1359
  let { features: r = 1, ...o } = e, i = { ref: t, "aria-hidden": (r & 2) === 2 ? !0 : (n = o["aria-hidden"]) != null ? n : void 0, hidden: (r & 4) === 4 ? !0 : void 0, style: { position: "fixed", top: 1, left: 1, width: 1, height: 0, padding: 0, margin: -1, overflow: "hidden", clip: "rect(0, 0, 0, 0)", whiteSpace: "nowrap", borderWidth: "0", ...(r & 4) === 4 && (r & 2) !== 2 && { display: "none" } } };
1360
1360
  return ae({ ourProps: i, theirProps: o, slot: {}, defaultTag: Ki, name: "Hidden" });
1361
1361
  }
1362
- let ln = oe(Xi), Zi = ie(null);
1362
+ let cn = oe(Xi), Zi = ie(null);
1363
1363
  function Ji({ children: e }) {
1364
1364
  let t = te(Zi);
1365
- if (!t) return P.createElement(P.Fragment, null, e);
1365
+ if (!t) return L.createElement(L.Fragment, null, e);
1366
1366
  let { target: n } = t;
1367
- return n ? kt(P.createElement(P.Fragment, null, e), n) : null;
1367
+ return n ? kt(L.createElement(L.Fragment, null, e), n) : null;
1368
1368
  }
1369
1369
  let _o = Symbol();
1370
1370
  function Qi(e, t = !0) {
@@ -1372,10 +1372,10 @@ function Qi(e, t = !0) {
1372
1372
  }
1373
1373
  function he(...e) {
1374
1374
  let t = w(e);
1375
- W(() => {
1375
+ H(() => {
1376
1376
  t.current = e;
1377
1377
  }, [e]);
1378
- let n = X((r) => {
1378
+ let n = G((r) => {
1379
1379
  for (let o of t.current) o != null && (typeof o == "function" ? o(r) : o.current = r);
1380
1380
  });
1381
1381
  return e.every((r) => r == null || (r == null ? void 0 : r[_o])) ? void 0 : n;
@@ -1391,20 +1391,20 @@ function yo() {
1391
1391
  return e;
1392
1392
  }
1393
1393
  function es() {
1394
- let [e, t] = F([]);
1395
- return [e.length > 0 ? e.join(" ") : void 0, V(() => function(n) {
1396
- let r = X((i) => (t((s) => [...s, i]), () => t((s) => {
1397
- let a = s.slice(), c = a.indexOf(i);
1398
- return c !== -1 && a.splice(c, 1), a;
1399
- }))), o = V(() => ({ register: r, slot: n.slot, name: n.name, props: n.props, value: n.value }), [r, n.slot, n.name, n.props, n.value]);
1400
- return P.createElement(Mn.Provider, { value: o }, n.children);
1394
+ let [e, t] = x([]);
1395
+ return [e.length > 0 ? e.join(" ") : void 0, z(() => function(n) {
1396
+ let r = G((i) => (t((s) => [...s, i]), () => t((s) => {
1397
+ let a = s.slice(), l = a.indexOf(i);
1398
+ return l !== -1 && a.splice(l, 1), a;
1399
+ }))), o = z(() => ({ register: r, slot: n.slot, name: n.name, props: n.props, value: n.value }), [r, n.slot, n.name, n.props, n.value]);
1400
+ return L.createElement(Mn.Provider, { value: o }, n.children);
1401
1401
  }, [t])];
1402
1402
  }
1403
1403
  let ts = "p";
1404
1404
  function ns(e, t) {
1405
1405
  let n = ke(), r = vo(), { id: o = `headlessui-description-${n}`, ...i } = e, s = yo(), a = he(t);
1406
1406
  re(() => s.register(o), [o, s.register]);
1407
- let c = r || !1, u = V(() => ({ ...s.slot, disabled: c }), [s.slot, c]), d = { ref: a, ...s.props, id: o };
1407
+ let l = r || !1, u = z(() => ({ ...s.slot, disabled: l }), [s.slot, l]), d = { ref: a, ...s.props, id: o };
1408
1408
  return ae({ ourProps: d, theirProps: i, slot: u, defaultTag: ts, name: s.name || "Description" });
1409
1409
  }
1410
1410
  let rs = oe(ns), os = Object.assign(rs, {});
@@ -1412,7 +1412,7 @@ var go = ((e) => (e.Space = " ", e.Enter = "Enter", e.Escape = "Escape", e.Backs
1412
1412
  let is = ie(() => {
1413
1413
  });
1414
1414
  function ss({ value: e, children: t }) {
1415
- return P.createElement(is.Provider, { value: e }, t);
1415
+ return L.createElement(is.Provider, { value: e }, t);
1416
1416
  }
1417
1417
  let as = class extends Map {
1418
1418
  constructor(t) {
@@ -1437,7 +1437,7 @@ function wo(e, t) {
1437
1437
  function bo(e) {
1438
1438
  return St(e.subscribe, e.getSnapshot, e.getSnapshot);
1439
1439
  }
1440
- let cs = new as(() => wo(() => [], { ADD(e) {
1440
+ let ls = new as(() => wo(() => [], { ADD(e) {
1441
1441
  return this.includes(e) ? this : [...this, e];
1442
1442
  }, REMOVE(e) {
1443
1443
  let t = this.indexOf(e);
@@ -1446,7 +1446,7 @@ let cs = new as(() => wo(() => [], { ADD(e) {
1446
1446
  return n.splice(t, 1), n;
1447
1447
  } }));
1448
1448
  function Be(e, t) {
1449
- let n = cs.get(t), r = ke(), o = bo(n);
1449
+ let n = ls.get(t), r = ke(), o = bo(n);
1450
1450
  if (re(() => {
1451
1451
  if (e) return n.dispatch("ADD", r), () => n.dispatch("REMOVE", r);
1452
1452
  }, [n, e]), !e) return !1;
@@ -1466,21 +1466,21 @@ function sr(e) {
1466
1466
  let r = un.get(e);
1467
1467
  r && (r["aria-hidden"] === null ? e.removeAttribute("aria-hidden") : e.setAttribute("aria-hidden", r["aria-hidden"]), e.inert = r.inert, un.delete(e));
1468
1468
  }
1469
- function ls(e, { allowed: t, disallowed: n } = {}) {
1469
+ function cs(e, { allowed: t, disallowed: n } = {}) {
1470
1470
  let r = Be(e, "inert-others");
1471
1471
  re(() => {
1472
1472
  var o, i;
1473
1473
  if (!r) return;
1474
1474
  let s = Se();
1475
- for (let c of (o = n == null ? void 0 : n()) != null ? o : []) c && s.add(ir(c));
1475
+ for (let l of (o = n == null ? void 0 : n()) != null ? o : []) l && s.add(ir(l));
1476
1476
  let a = (i = t == null ? void 0 : t()) != null ? i : [];
1477
- for (let c of a) {
1478
- if (!c) continue;
1479
- let u = Ct(c);
1477
+ for (let l of a) {
1478
+ if (!l) continue;
1479
+ let u = Ct(l);
1480
1480
  if (!u) continue;
1481
- let d = c.parentElement;
1481
+ let d = l.parentElement;
1482
1482
  for (; d && d !== u.body; ) {
1483
- for (let l of d.children) a.some((f) => l.contains(f)) || s.add(ir(l));
1483
+ for (let c of d.children) a.some((f) => c.contains(f)) || s.add(ir(c));
1484
1484
  d = d.parentElement;
1485
1485
  }
1486
1486
  }
@@ -1492,7 +1492,7 @@ function Eo(e, t, n) {
1492
1492
  let i = o.getBoundingClientRect();
1493
1493
  i.x === 0 && i.y === 0 && i.width === 0 && i.height === 0 && n();
1494
1494
  });
1495
- W(() => {
1495
+ H(() => {
1496
1496
  if (!e) return;
1497
1497
  let o = t === null ? null : t instanceof HTMLElement ? t : t.current;
1498
1498
  if (!o) return;
@@ -1559,20 +1559,20 @@ function nt(e, t, { sorted: n = !0, relativeTo: r = null, skipElements: o = [] }
1559
1559
  if (t & 5) return 1;
1560
1560
  if (t & 10) return -1;
1561
1561
  throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last");
1562
- })(), c = (() => {
1562
+ })(), l = (() => {
1563
1563
  if (t & 1) return 0;
1564
1564
  if (t & 2) return Math.max(0, s.indexOf(r)) - 1;
1565
1565
  if (t & 4) return Math.max(0, s.indexOf(r)) + 1;
1566
1566
  if (t & 8) return s.length - 1;
1567
1567
  throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last");
1568
- })(), u = t & 32 ? { preventScroll: !0 } : {}, d = 0, l = s.length, f;
1568
+ })(), u = t & 32 ? { preventScroll: !0 } : {}, d = 0, c = s.length, f;
1569
1569
  do {
1570
- if (d >= l || d + l <= 0) return 0;
1571
- let p = c + d;
1572
- if (t & 16) p = (p + l) % l;
1570
+ if (d >= c || d + c <= 0) return 0;
1571
+ let p = l + d;
1572
+ if (t & 16) p = (p + c) % c;
1573
1573
  else {
1574
1574
  if (p < 0) return 3;
1575
- if (p >= l) return 1;
1575
+ if (p >= c) return 1;
1576
1576
  }
1577
1577
  f = s[p], f == null || f.focus(u), d += a;
1578
1578
  } while (f !== i.activeElement);
@@ -1589,7 +1589,7 @@ function ws() {
1589
1589
  }
1590
1590
  function Ye(e, t, n, r) {
1591
1591
  let o = Oe(n);
1592
- W(() => {
1592
+ H(() => {
1593
1593
  if (!e) return;
1594
1594
  function i(s) {
1595
1595
  o.current(s);
@@ -1599,7 +1599,7 @@ function Ye(e, t, n, r) {
1599
1599
  }
1600
1600
  function ko(e, t, n, r) {
1601
1601
  let o = Oe(n);
1602
- W(() => {
1602
+ H(() => {
1603
1603
  if (!e) return;
1604
1604
  function i(s) {
1605
1605
  o.current(s);
@@ -1609,43 +1609,43 @@ function ko(e, t, n, r) {
1609
1609
  }
1610
1610
  const ar = 30;
1611
1611
  function bs(e, t, n) {
1612
- let r = Be(e, "outside-click"), o = Oe(n), i = z(function(c, u) {
1613
- if (c.defaultPrevented) return;
1614
- let d = u(c);
1612
+ let r = Be(e, "outside-click"), o = Oe(n), i = U(function(l, u) {
1613
+ if (l.defaultPrevented) return;
1614
+ let d = u(l);
1615
1615
  if (d === null || !d.getRootNode().contains(d) || !d.isConnected) return;
1616
- let l = function f(p) {
1616
+ let c = function f(p) {
1617
1617
  return typeof p == "function" ? f(p()) : Array.isArray(p) || p instanceof Set ? p : [p];
1618
1618
  }(t);
1619
- for (let f of l) {
1619
+ for (let f of c) {
1620
1620
  if (f === null) continue;
1621
1621
  let p = f instanceof HTMLElement ? f : f.current;
1622
- if (p != null && p.contains(d) || c.composed && c.composedPath().includes(p)) return;
1622
+ if (p != null && p.contains(d) || l.composed && l.composedPath().includes(p)) return;
1623
1623
  }
1624
- return !hs(d, $o.Loose) && d.tabIndex !== -1 && c.preventDefault(), o.current(c, d);
1624
+ return !hs(d, $o.Loose) && d.tabIndex !== -1 && l.preventDefault(), o.current(l, d);
1625
1625
  }, [o]), s = w(null);
1626
- Ye(r, "pointerdown", (c) => {
1626
+ Ye(r, "pointerdown", (l) => {
1627
1627
  var u, d;
1628
- s.current = ((d = (u = c.composedPath) == null ? void 0 : u.call(c)) == null ? void 0 : d[0]) || c.target;
1629
- }, !0), Ye(r, "mousedown", (c) => {
1628
+ s.current = ((d = (u = l.composedPath) == null ? void 0 : u.call(l)) == null ? void 0 : d[0]) || l.target;
1629
+ }, !0), Ye(r, "mousedown", (l) => {
1630
1630
  var u, d;
1631
- s.current = ((d = (u = c.composedPath) == null ? void 0 : u.call(c)) == null ? void 0 : d[0]) || c.target;
1632
- }, !0), Ye(r, "click", (c) => {
1633
- ws() || s.current && (i(c, () => s.current), s.current = null);
1631
+ s.current = ((d = (u = l.composedPath) == null ? void 0 : u.call(l)) == null ? void 0 : d[0]) || l.target;
1632
+ }, !0), Ye(r, "click", (l) => {
1633
+ ws() || s.current && (i(l, () => s.current), s.current = null);
1634
1634
  }, !0);
1635
1635
  let a = w({ x: 0, y: 0 });
1636
- Ye(r, "touchstart", (c) => {
1637
- a.current.x = c.touches[0].clientX, a.current.y = c.touches[0].clientY;
1638
- }, !0), Ye(r, "touchend", (c) => {
1639
- let u = { x: c.changedTouches[0].clientX, y: c.changedTouches[0].clientY };
1640
- if (!(Math.abs(u.x - a.current.x) >= ar || Math.abs(u.y - a.current.y) >= ar)) return i(c, () => c.target instanceof HTMLElement ? c.target : null);
1641
- }, !0), ko(r, "blur", (c) => i(c, () => window.document.activeElement instanceof HTMLIFrameElement ? window.document.activeElement : null), !0);
1636
+ Ye(r, "touchstart", (l) => {
1637
+ a.current.x = l.touches[0].clientX, a.current.y = l.touches[0].clientY;
1638
+ }, !0), Ye(r, "touchend", (l) => {
1639
+ let u = { x: l.changedTouches[0].clientX, y: l.changedTouches[0].clientY };
1640
+ if (!(Math.abs(u.x - a.current.x) >= ar || Math.abs(u.y - a.current.y) >= ar)) return i(l, () => l.target instanceof HTMLElement ? l.target : null);
1641
+ }, !0), ko(r, "blur", (l) => i(l, () => window.document.activeElement instanceof HTMLIFrameElement ? window.document.activeElement : null), !0);
1642
1642
  }
1643
- function ct(...e) {
1644
- return V(() => Ct(...e), [...e]);
1643
+ function lt(...e) {
1644
+ return z(() => Ct(...e), [...e]);
1645
1645
  }
1646
1646
  function So(e, t, n, r) {
1647
1647
  let o = Oe(n);
1648
- W(() => {
1648
+ H(() => {
1649
1649
  e = e ?? window;
1650
1650
  function i(s) {
1651
1651
  o.current(s);
@@ -1678,31 +1678,31 @@ function $s() {
1678
1678
  let i = (o = window.scrollY) != null ? o : window.pageYOffset, s = null;
1679
1679
  t.addEventListener(e, "click", (a) => {
1680
1680
  if (a.target instanceof HTMLElement) try {
1681
- let c = a.target.closest("a");
1682
- if (!c) return;
1683
- let { hash: u } = new URL(c.href), d = e.querySelector(u);
1681
+ let l = a.target.closest("a");
1682
+ if (!l) return;
1683
+ let { hash: u } = new URL(l.href), d = e.querySelector(u);
1684
1684
  d && !r(d) && (s = d);
1685
1685
  } catch {
1686
1686
  }
1687
1687
  }, !0), t.addEventListener(e, "touchstart", (a) => {
1688
1688
  if (a.target instanceof HTMLElement) if (r(a.target)) {
1689
- let c = a.target;
1690
- for (; c.parentElement && r(c.parentElement); ) c = c.parentElement;
1691
- t.style(c, "overscrollBehavior", "contain");
1689
+ let l = a.target;
1690
+ for (; l.parentElement && r(l.parentElement); ) l = l.parentElement;
1691
+ t.style(l, "overscrollBehavior", "contain");
1692
1692
  } else t.style(a.target, "touchAction", "none");
1693
1693
  }), t.addEventListener(e, "touchmove", (a) => {
1694
1694
  if (a.target instanceof HTMLElement) {
1695
1695
  if (a.target.tagName === "INPUT") return;
1696
1696
  if (r(a.target)) {
1697
- let c = a.target;
1698
- for (; c.parentElement && c.dataset.headlessuiPortal !== "" && !(c.scrollHeight > c.clientHeight || c.scrollWidth > c.clientWidth); ) c = c.parentElement;
1699
- c.dataset.headlessuiPortal === "" && a.preventDefault();
1697
+ let l = a.target;
1698
+ for (; l.parentElement && l.dataset.headlessuiPortal !== "" && !(l.scrollHeight > l.clientHeight || l.scrollWidth > l.clientWidth); ) l = l.parentElement;
1699
+ l.dataset.headlessuiPortal === "" && a.preventDefault();
1700
1700
  } else a.preventDefault();
1701
1701
  }
1702
1702
  }, { passive: !1 }), t.add(() => {
1703
1703
  var a;
1704
- let c = (a = window.scrollY) != null ? a : window.pageYOffset;
1705
- i !== c && window.scrollTo(0, i), s && s.isConnected && (s.scrollIntoView({ block: "nearest" }), s = null);
1704
+ let l = (a = window.scrollY) != null ? a : window.pageYOffset;
1705
+ i !== l && window.scrollTo(0, i), s && s.isConnected && (s.scrollIntoView({ block: "nearest" }), s = null);
1706
1706
  });
1707
1707
  });
1708
1708
  } } : {};
@@ -1760,7 +1760,7 @@ function Fs(e) {
1760
1760
  };
1761
1761
  }
1762
1762
  function xs(e = 0) {
1763
- let [t, n] = F(e), r = z((c) => n(c), [t]), o = z((c) => n((u) => u | c), [t]), i = z((c) => (t & c) === c, [t]), s = z((c) => n((u) => u & ~c), [n]), a = z((c) => n((u) => u ^ c), [n]);
1763
+ let [t, n] = x(e), r = U((l) => n(l), [t]), o = U((l) => n((u) => u | l), [t]), i = U((l) => (t & l) === l, [t]), s = U((l) => n((u) => u & ~l), [n]), a = U((l) => n((u) => u ^ l), [n]);
1764
1764
  return { flags: t, setFlag: r, addFlag: o, hasFlag: i, removeFlag: s, toggleFlag: a };
1765
1765
  }
1766
1766
  var Ms = ((e) => (e[e.None = 0] = "None", e[e.Closed = 1] = "Closed", e[e.Enter = 2] = "Enter", e[e.Leave = 4] = "Leave", e))(Ms || {});
@@ -1770,21 +1770,21 @@ function Ps(e) {
1770
1770
  return t;
1771
1771
  }
1772
1772
  function Ns(e, t, n, r) {
1773
- let [o, i] = F(n), { hasFlag: s, addFlag: a, removeFlag: c } = xs(e && o ? 3 : 0), u = w(!1), d = w(!1), l = xt();
1773
+ let [o, i] = x(n), { hasFlag: s, addFlag: a, removeFlag: l } = xs(e && o ? 3 : 0), u = w(!1), d = w(!1), c = xt();
1774
1774
  return re(function f() {
1775
1775
  var p;
1776
1776
  if (!e) return;
1777
1777
  n && i(!0);
1778
1778
  let _ = t.current;
1779
1779
  return _ ? ((p = r == null ? void 0 : r.start) == null || p.call(r, n), Ls(_, { inFlight: u, prepare() {
1780
- d.current ? d.current = !1 : d.current = u.current, u.current = !0, !d.current && (n ? (a(3), c(4)) : (a(4), c(2)));
1780
+ d.current ? d.current = !1 : d.current = u.current, u.current = !0, !d.current && (n ? (a(3), l(4)) : (a(4), l(2)));
1781
1781
  }, run() {
1782
- d.current ? n ? (c(3), a(4)) : (c(4), a(3)) : n ? c(1) : a(1);
1782
+ d.current ? n ? (l(3), a(4)) : (l(4), a(3)) : n ? l(1) : a(1);
1783
1783
  }, done() {
1784
1784
  var y;
1785
- d.current && typeof _.getAnimations == "function" && _.getAnimations().length > 0 || (u.current = !1, c(7), n || i(!1), (y = r == null ? void 0 : r.end) == null || y.call(r, n));
1786
- } })) : n ? (a(3), l.nextFrame(() => f())) : void 0;
1787
- }, [e, n, t, l]), e ? [o, { closed: s(1), enter: s(2), leave: s(4), transition: s(2) || s(4) }] : [n, { closed: void 0, enter: void 0, leave: void 0, transition: void 0 }];
1785
+ d.current && typeof _.getAnimations == "function" && _.getAnimations().length > 0 || (u.current = !1, l(7), n || i(!1), (y = r == null ? void 0 : r.end) == null || y.call(r, n));
1786
+ } })) : n ? (a(3), c.nextFrame(() => f())) : void 0;
1787
+ }, [e, n, t, c]), e ? [o, { closed: s(1), enter: s(2), leave: s(4), transition: s(2) || s(4) }] : [n, { closed: void 0, enter: void 0, leave: void 0, transition: void 0 }];
1788
1788
  }
1789
1789
  function Ls(e, { prepare: t, run: n, done: r, inFlight: o }) {
1790
1790
  let i = Se();
@@ -1796,16 +1796,16 @@ function As(e, t) {
1796
1796
  let n = Fs(t), r = Se();
1797
1797
  if (!e) return r.dispose;
1798
1798
  let { transitionDuration: o, transitionDelay: i } = getComputedStyle(e), [s, a] = [o, i].map((u) => {
1799
- let [d = 0] = u.split(",").filter(Boolean).map((l) => l.includes("ms") ? parseFloat(l) : parseFloat(l) * 1e3).sort((l, f) => f - l);
1799
+ let [d = 0] = u.split(",").filter(Boolean).map((c) => c.includes("ms") ? parseFloat(c) : parseFloat(c) * 1e3).sort((c, f) => f - c);
1800
1800
  return d;
1801
- }), c = s + a;
1802
- if (c !== 0) {
1801
+ }), l = s + a;
1802
+ if (l !== 0) {
1803
1803
  let u = r.group((d) => {
1804
- let l = d.setTimeout(() => {
1804
+ let c = d.setTimeout(() => {
1805
1805
  n(), d.dispose();
1806
- }, c);
1806
+ }, l);
1807
1807
  d.addEventListener(e, "transitionrun", (f) => {
1808
- f.target === f.currentTarget && (l(), d.addEventListener(e, "transitioncancel", (p) => {
1808
+ f.target === f.currentTarget && (c(), d.addEventListener(e, "transitioncancel", (p) => {
1809
1809
  p.target === p.currentTarget && (n(), u());
1810
1810
  }));
1811
1811
  });
@@ -1825,8 +1825,8 @@ function Rs(e, { inFlight: t, prepare: n }) {
1825
1825
  e.style.transition = "none", n(), e.offsetHeight, e.style.transition = r;
1826
1826
  }
1827
1827
  function Pn(e, t) {
1828
- let n = w([]), r = X(e);
1829
- W(() => {
1828
+ let n = w([]), r = G(e);
1829
+ H(() => {
1830
1830
  let o = [...n.current];
1831
1831
  for (let [i, s] of t.entries()) if (n.current[i] !== s) {
1832
1832
  let a = r(t, o);
@@ -1836,15 +1836,15 @@ function Pn(e, t) {
1836
1836
  }
1837
1837
  let Mt = ie(null);
1838
1838
  Mt.displayName = "OpenClosedContext";
1839
- var le = ((e) => (e[e.Open = 1] = "Open", e[e.Closed = 2] = "Closed", e[e.Closing = 4] = "Closing", e[e.Opening = 8] = "Opening", e))(le || {});
1839
+ var ce = ((e) => (e[e.Open = 1] = "Open", e[e.Closed = 2] = "Closed", e[e.Closing = 4] = "Closing", e[e.Opening = 8] = "Opening", e))(ce || {});
1840
1840
  function Pt() {
1841
1841
  return te(Mt);
1842
1842
  }
1843
1843
  function Is({ value: e, children: t }) {
1844
- return P.createElement(Mt.Provider, { value: e }, t);
1844
+ return L.createElement(Mt.Provider, { value: e }, t);
1845
1845
  }
1846
1846
  function Ds({ children: e }) {
1847
- return P.createElement(Mt.Provider, { value: null }, e);
1847
+ return L.createElement(Mt.Provider, { value: null }, e);
1848
1848
  }
1849
1849
  function Os(e) {
1850
1850
  function t() {
@@ -1860,8 +1860,8 @@ Os(() => {
1860
1860
  window.addEventListener("click", e, { capture: !0 }), window.addEventListener("mousedown", e, { capture: !0 }), window.addEventListener("focus", e, { capture: !0 }), document.body.addEventListener("click", e, { capture: !0 }), document.body.addEventListener("mousedown", e, { capture: !0 }), document.body.addEventListener("focus", e, { capture: !0 });
1861
1861
  });
1862
1862
  function Co(e) {
1863
- let t = X(e), n = w(!1);
1864
- W(() => (n.current = !1, () => {
1863
+ let t = G(e), n = w(!1);
1864
+ H(() => (n.current = !1, () => {
1865
1865
  n.current = !0, Ft(() => {
1866
1866
  n.current && t();
1867
1867
  });
@@ -1872,69 +1872,69 @@ function Hs() {
1872
1872
  return "useSyncExternalStore" in rr ? ((t) => t.useSyncExternalStore)(rr)(() => () => {
1873
1873
  }, () => !1, () => !e) : !1;
1874
1874
  }
1875
- function lt() {
1876
- let e = Hs(), [t, n] = F(Le.isHandoffComplete);
1877
- return t && Le.isHandoffComplete === !1 && n(!1), W(() => {
1875
+ function ct() {
1876
+ let e = Hs(), [t, n] = x(Le.isHandoffComplete);
1877
+ return t && Le.isHandoffComplete === !1 && n(!1), H(() => {
1878
1878
  t !== !0 && n(!0);
1879
- }, [t]), W(() => Le.handoff(), []), e ? !1 : t;
1879
+ }, [t]), H(() => Le.handoff(), []), e ? !1 : t;
1880
1880
  }
1881
1881
  let Fo = ie(!1);
1882
1882
  function Ws() {
1883
1883
  return te(Fo);
1884
1884
  }
1885
- function cr(e) {
1886
- return P.createElement(Fo.Provider, { value: e.force }, e.children);
1885
+ function lr(e) {
1886
+ return L.createElement(Fo.Provider, { value: e.force }, e.children);
1887
1887
  }
1888
1888
  function Us(e) {
1889
- let t = Ws(), n = te(Mo), r = ct(e), [o, i] = F(() => {
1889
+ let t = Ws(), n = te(Mo), r = lt(e), [o, i] = x(() => {
1890
1890
  var s;
1891
1891
  if (!t && n !== null) return (s = n.current) != null ? s : null;
1892
1892
  if (Le.isServer) return null;
1893
1893
  let a = r == null ? void 0 : r.getElementById("headlessui-portal-root");
1894
1894
  if (a) return a;
1895
1895
  if (r === null) return null;
1896
- let c = r.createElement("div");
1897
- return c.setAttribute("id", "headlessui-portal-root"), r.body.appendChild(c);
1896
+ let l = r.createElement("div");
1897
+ return l.setAttribute("id", "headlessui-portal-root"), r.body.appendChild(l);
1898
1898
  });
1899
- return W(() => {
1899
+ return H(() => {
1900
1900
  o !== null && (r != null && r.body.contains(o) || r == null || r.body.appendChild(o));
1901
- }, [o, r]), W(() => {
1901
+ }, [o, r]), H(() => {
1902
1902
  t || n !== null && i(n.current);
1903
1903
  }, [n, i, t]), o;
1904
1904
  }
1905
- let xo = Y, zs = oe(function(e, t) {
1905
+ let xo = q, zs = oe(function(e, t) {
1906
1906
  let n = e, r = w(null), o = he(Qi((d) => {
1907
1907
  r.current = d;
1908
- }), t), i = ct(r), s = Us(r), [a] = F(() => {
1908
+ }), t), i = lt(r), s = Us(r), [a] = x(() => {
1909
1909
  var d;
1910
1910
  return Le.isServer ? null : (d = i == null ? void 0 : i.createElement("div")) != null ? d : null;
1911
- }), c = te(pn), u = lt();
1911
+ }), l = te(pn), u = ct();
1912
1912
  return re(() => {
1913
1913
  !s || !a || s.contains(a) || (a.setAttribute("data-headlessui-portal", ""), s.appendChild(a));
1914
1914
  }, [s, a]), re(() => {
1915
- if (a && c) return c.register(a);
1916
- }, [c, a]), Co(() => {
1915
+ if (a && l) return l.register(a);
1916
+ }, [l, a]), Co(() => {
1917
1917
  var d;
1918
1918
  !s || !a || (a instanceof Node && s.contains(a) && s.removeChild(a), s.childNodes.length <= 0 && ((d = s.parentElement) == null || d.removeChild(s)));
1919
1919
  }), u ? !s || !a ? null : kt(ae({ ourProps: { ref: o }, theirProps: n, slot: {}, defaultTag: xo, name: "Portal" }), a) : null;
1920
1920
  });
1921
1921
  function Vs(e, t) {
1922
1922
  let n = he(t), { enabled: r = !0, ...o } = e;
1923
- return r ? P.createElement(zs, { ...o, ref: n }) : ae({ ourProps: { ref: n }, theirProps: o, slot: {}, defaultTag: xo, name: "Portal" });
1923
+ return r ? L.createElement(zs, { ...o, ref: n }) : ae({ ourProps: { ref: n }, theirProps: o, slot: {}, defaultTag: xo, name: "Portal" });
1924
1924
  }
1925
- let js = Y, Mo = ie(null);
1925
+ let js = q, Mo = ie(null);
1926
1926
  function Bs(e, t) {
1927
1927
  let { target: n, ...r } = e, o = { ref: he(t) };
1928
- return P.createElement(Mo.Provider, { value: n }, ae({ ourProps: o, theirProps: r, defaultTag: js, name: "Popover.Group" }));
1928
+ return L.createElement(Mo.Provider, { value: n }, ae({ ourProps: o, theirProps: r, defaultTag: js, name: "Popover.Group" }));
1929
1929
  }
1930
1930
  let pn = ie(null);
1931
1931
  function qs() {
1932
- let e = te(pn), t = w([]), n = X((i) => (t.current.push(i), e && e.register(i), () => r(i))), r = X((i) => {
1932
+ let e = te(pn), t = w([]), n = G((i) => (t.current.push(i), e && e.register(i), () => r(i))), r = G((i) => {
1933
1933
  let s = t.current.indexOf(i);
1934
1934
  s !== -1 && t.current.splice(s, 1), e && e.unregister(i);
1935
- }), o = V(() => ({ register: n, unregister: r, portals: t }), [n, r, t]);
1936
- return [t, V(() => function({ children: i }) {
1937
- return P.createElement(pn.Provider, { value: o }, i);
1935
+ }), o = z(() => ({ register: n, unregister: r, portals: t }), [n, r, t]);
1936
+ return [t, z(() => function({ children: i }) {
1937
+ return L.createElement(pn.Provider, { value: o }, i);
1938
1938
  }, [o])];
1939
1939
  }
1940
1940
  let Ys = oe(Vs), Po = oe(Bs), Gs = Object.assign(Ys, { Group: Po });
@@ -1946,7 +1946,7 @@ function Ks(e, t = typeof document < "u" ? document.defaultView : null, n) {
1946
1946
  }
1947
1947
  function Xs() {
1948
1948
  var e;
1949
- let [t] = F(() => typeof window < "u" && typeof window.matchMedia == "function" ? window.matchMedia("(pointer: coarse)") : null), [n, r] = F((e = t == null ? void 0 : t.matches) != null ? e : !1);
1949
+ let [t] = x(() => typeof window < "u" && typeof window.matchMedia == "function" ? window.matchMedia("(pointer: coarse)") : null), [n, r] = x((e = t == null ? void 0 : t.matches) != null ? e : !1);
1950
1950
  return re(() => {
1951
1951
  if (!t) return;
1952
1952
  function o(i) {
@@ -1957,16 +1957,16 @@ function Xs() {
1957
1957
  }
1958
1958
  function Zs({ defaultContainers: e = [], portals: t, mainTreeNodeRef: n } = {}) {
1959
1959
  var r;
1960
- let o = w((r = n == null ? void 0 : n.current) != null ? r : null), i = ct(o), s = X(() => {
1961
- var a, c, u;
1960
+ let o = w((r = n == null ? void 0 : n.current) != null ? r : null), i = lt(o), s = G(() => {
1961
+ var a, l, u;
1962
1962
  let d = [];
1963
- for (let l of e) l !== null && (l instanceof HTMLElement ? d.push(l) : "current" in l && l.current instanceof HTMLElement && d.push(l.current));
1964
- if (t != null && t.current) for (let l of t.current) d.push(l);
1965
- for (let l of (a = i == null ? void 0 : i.querySelectorAll("html > *, body > *")) != null ? a : []) l !== document.body && l !== document.head && l instanceof HTMLElement && l.id !== "headlessui-portal-root" && (l.contains(o.current) || l.contains((u = (c = o.current) == null ? void 0 : c.getRootNode()) == null ? void 0 : u.host) || d.some((f) => l.contains(f)) || d.push(l));
1963
+ for (let c of e) c !== null && (c instanceof HTMLElement ? d.push(c) : "current" in c && c.current instanceof HTMLElement && d.push(c.current));
1964
+ if (t != null && t.current) for (let c of t.current) d.push(c);
1965
+ for (let c of (a = i == null ? void 0 : i.querySelectorAll("html > *, body > *")) != null ? a : []) c !== document.body && c !== document.head && c instanceof HTMLElement && c.id !== "headlessui-portal-root" && (c.contains(o.current) || c.contains((u = (l = o.current) == null ? void 0 : l.getRootNode()) == null ? void 0 : u.host) || d.some((f) => c.contains(f)) || d.push(c));
1966
1966
  return d;
1967
1967
  });
1968
- return { resolveContainers: s, contains: X((a) => s().some((c) => c.contains(a))), mainTreeNodeRef: o, MainTreeNode: V(() => function() {
1969
- return n != null ? null : P.createElement(ln, { features: Et.Hidden, ref: o });
1968
+ return { resolveContainers: s, contains: G((a) => s().some((l) => l.contains(a))), mainTreeNodeRef: o, MainTreeNode: z(() => function() {
1969
+ return n != null ? null : L.createElement(cn, { features: Et.Hidden, ref: o });
1970
1970
  }, [o, n]) };
1971
1971
  }
1972
1972
  function Nn() {
@@ -1992,16 +1992,16 @@ function No(e) {
1992
1992
  let Qs = "div";
1993
1993
  var Me = ((e) => (e[e.None = 0] = "None", e[e.InitialFocus = 1] = "InitialFocus", e[e.TabLock = 2] = "TabLock", e[e.FocusLock = 4] = "FocusLock", e[e.RestoreFocus = 8] = "RestoreFocus", e[e.AutoFocus = 16] = "AutoFocus", e))(Me || {});
1994
1994
  function ea(e, t) {
1995
- let n = w(null), r = he(n, t), { initialFocus: o, initialFocusFallback: i, containers: s, features: a = 15, ...c } = e;
1996
- lt() || (a = 0);
1997
- let u = ct(n);
1995
+ let n = w(null), r = he(n, t), { initialFocus: o, initialFocusFallback: i, containers: s, features: a = 15, ...l } = e;
1996
+ ct() || (a = 0);
1997
+ let u = lt(n);
1998
1998
  oa(a, { ownerDocument: u });
1999
1999
  let d = ia(a, { ownerDocument: u, container: n, initialFocus: o, initialFocusFallback: i });
2000
2000
  sa(a, { ownerDocument: u, container: n, containers: s, previousActiveElement: d });
2001
- let l = Js(), f = X((v) => {
2001
+ let c = Js(), f = G((v) => {
2002
2002
  let g = n.current;
2003
- g && ((E) => E())(() => {
2004
- Te(l.current, { [Ze.Forwards]: () => {
2003
+ g && (($) => $())(() => {
2004
+ Te(c.current, { [Ze.Forwards]: () => {
2005
2005
  nt(g, ve.First, { skipElements: [v.relatedTarget, i] });
2006
2006
  }, [Ze.Backwards]: () => {
2007
2007
  nt(g, ve.Last, { skipElements: [v.relatedTarget, i] });
@@ -2015,10 +2015,10 @@ function ea(e, t) {
2015
2015
  if (!(a & 4)) return;
2016
2016
  let g = No(s);
2017
2017
  n.current instanceof HTMLElement && g.add(n.current);
2018
- let E = v.relatedTarget;
2019
- E instanceof HTMLElement && E.dataset.headlessuiFocusGuard !== "true" && (Lo(g, E) || (y.current ? nt(n.current, Te(l.current, { [Ze.Forwards]: () => ve.Next, [Ze.Backwards]: () => ve.Previous }) | ve.WrapAround, { relativeTo: v.target }) : v.target instanceof HTMLElement && ye(v.target)));
2018
+ let $ = v.relatedTarget;
2019
+ $ instanceof HTMLElement && $.dataset.headlessuiFocusGuard !== "true" && (Lo(g, $) || (y.current ? nt(n.current, Te(c.current, { [Ze.Forwards]: () => ve.Next, [Ze.Backwards]: () => ve.Previous }) | ve.WrapAround, { relativeTo: v.target }) : v.target instanceof HTMLElement && ye(v.target)));
2020
2020
  } };
2021
- return P.createElement(P.Fragment, null, p && P.createElement(ln, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: f, features: Et.Focusable }), ae({ ourProps: m, theirProps: c, defaultTag: Qs, name: "FocusTrap" }), p && P.createElement(ln, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: f, features: Et.Focusable }));
2021
+ return L.createElement(L.Fragment, null, p && L.createElement(cn, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: f, features: Et.Focusable }), ae({ ourProps: m, theirProps: l, defaultTag: Qs, name: "FocusTrap" }), p && L.createElement(cn, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: f, features: Et.Focusable }));
2022
2022
  }
2023
2023
  let ta = oe(ea), na = Object.assign(ta, { features: Me });
2024
2024
  function ra(e = !0) {
@@ -2027,7 +2027,7 @@ function ra(e = !0) {
2027
2027
  r === !0 && n === !1 && Ft(() => {
2028
2028
  t.current.splice(0);
2029
2029
  }), r === !1 && n === !0 && (t.current = be.slice());
2030
- }, [e, be, t]), X(() => {
2030
+ }, [e, be, t]), G(() => {
2031
2031
  var n;
2032
2032
  return (n = t.current.find((r) => r != null && r.isConnected)) != null ? n : null;
2033
2033
  });
@@ -2048,8 +2048,8 @@ function ia(e, { ownerDocument: t, container: n, initialFocus: r, initialFocusFa
2048
2048
  o != null && o.current && ye(o.current);
2049
2049
  return;
2050
2050
  }
2051
- let c = n.current;
2052
- c && Ft(() => {
2051
+ let l = n.current;
2052
+ l && Ft(() => {
2053
2053
  if (!a.current) return;
2054
2054
  let u = t == null ? void 0 : t.activeElement;
2055
2055
  if (r != null && r.current) {
@@ -2057,15 +2057,15 @@ function ia(e, { ownerDocument: t, container: n, initialFocus: r, initialFocusFa
2057
2057
  i.current = u;
2058
2058
  return;
2059
2059
  }
2060
- } else if (c.contains(u)) {
2060
+ } else if (l.contains(u)) {
2061
2061
  i.current = u;
2062
2062
  return;
2063
2063
  }
2064
2064
  if (r != null && r.current) ye(r.current);
2065
2065
  else {
2066
2066
  if (e & 16) {
2067
- if (nt(c, ve.First | ve.AutoFocus) !== fn.Error) return;
2068
- } else if (nt(c, ve.First) !== fn.Error) return;
2067
+ if (nt(l, ve.First | ve.AutoFocus) !== fn.Error) return;
2068
+ } else if (nt(l, ve.First) !== fn.Error) return;
2069
2069
  if (o != null && o.current && (ye(o.current), (t == null ? void 0 : t.activeElement) === o.current)) return;
2070
2070
  console.warn("There are no focusable elements inside the <FocusTrap />");
2071
2071
  }
@@ -2077,12 +2077,12 @@ function sa(e, { ownerDocument: t, container: n, containers: r, previousActiveEl
2077
2077
  let i = Nn(), s = !!(e & 4);
2078
2078
  So(t == null ? void 0 : t.defaultView, "focus", (a) => {
2079
2079
  if (!s || !i.current) return;
2080
- let c = No(r);
2081
- n.current instanceof HTMLElement && c.add(n.current);
2080
+ let l = No(r);
2081
+ n.current instanceof HTMLElement && l.add(n.current);
2082
2082
  let u = o.current;
2083
2083
  if (!u) return;
2084
2084
  let d = a.target;
2085
- d && d instanceof HTMLElement ? Lo(c, d) ? (o.current = d, ye(d)) : (a.preventDefault(), a.stopPropagation(), ye(u)) : ye(o.current);
2085
+ d && d instanceof HTMLElement ? Lo(l, d) ? (o.current = d, ye(d)) : (a.preventDefault(), a.stopPropagation(), ye(u)) : ye(o.current);
2086
2086
  }, !0);
2087
2087
  }
2088
2088
  function Lo(e, t) {
@@ -2091,17 +2091,17 @@ function Lo(e, t) {
2091
2091
  }
2092
2092
  function Ao(e) {
2093
2093
  var t;
2094
- return !!(e.enter || e.enterFrom || e.enterTo || e.leave || e.leaveFrom || e.leaveTo) || ((t = e.as) != null ? t : Io) !== Y || P.Children.count(e.children) === 1;
2094
+ return !!(e.enter || e.enterFrom || e.enterTo || e.leave || e.leaveFrom || e.leaveTo) || ((t = e.as) != null ? t : Io) !== q || L.Children.count(e.children) === 1;
2095
2095
  }
2096
2096
  let Nt = ie(null);
2097
2097
  Nt.displayName = "TransitionContext";
2098
2098
  var aa = ((e) => (e.Visible = "visible", e.Hidden = "hidden", e))(aa || {});
2099
- function ca() {
2099
+ function la() {
2100
2100
  let e = te(Nt);
2101
2101
  if (e === null) throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");
2102
2102
  return e;
2103
2103
  }
2104
- function la() {
2104
+ function ca() {
2105
2105
  let e = te(Lt);
2106
2106
  if (e === null) throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");
2107
2107
  return e;
@@ -2112,7 +2112,7 @@ function At(e) {
2112
2112
  return "children" in e ? At(e.children) : e.current.filter(({ el: t }) => t.current !== null).filter(({ state: t }) => t === "visible").length > 0;
2113
2113
  }
2114
2114
  function Ro(e, t) {
2115
- let n = Oe(e), r = w([]), o = Nn(), i = xt(), s = X((p, _ = Ee.Hidden) => {
2115
+ let n = Oe(e), r = w([]), o = Nn(), i = xt(), s = G((p, _ = Ee.Hidden) => {
2116
2116
  let y = r.current.findIndex(({ el: m }) => m === p);
2117
2117
  y !== -1 && (Te(_, { [Ee.Unmount]() {
2118
2118
  r.current.splice(y, 1);
@@ -2122,87 +2122,87 @@ function Ro(e, t) {
2122
2122
  var m;
2123
2123
  !At(r) && o.current && ((m = n.current) == null || m.call(n));
2124
2124
  }));
2125
- }), a = X((p) => {
2125
+ }), a = G((p) => {
2126
2126
  let _ = r.current.find(({ el: y }) => y === p);
2127
2127
  return _ ? _.state !== "visible" && (_.state = "visible") : r.current.push({ el: p, state: "visible" }), () => s(p, Ee.Unmount);
2128
- }), c = w([]), u = w(Promise.resolve()), d = w({ enter: [], leave: [] }), l = X((p, _, y) => {
2129
- c.current.splice(0), t && (t.chains.current[_] = t.chains.current[_].filter(([m]) => m !== p)), t == null || t.chains.current[_].push([p, new Promise((m) => {
2130
- c.current.push(m);
2128
+ }), l = w([]), u = w(Promise.resolve()), d = w({ enter: [], leave: [] }), c = G((p, _, y) => {
2129
+ l.current.splice(0), t && (t.chains.current[_] = t.chains.current[_].filter(([m]) => m !== p)), t == null || t.chains.current[_].push([p, new Promise((m) => {
2130
+ l.current.push(m);
2131
2131
  })]), t == null || t.chains.current[_].push([p, new Promise((m) => {
2132
2132
  Promise.all(d.current[_].map(([v, g]) => g)).then(() => m());
2133
2133
  })]), _ === "enter" ? u.current = u.current.then(() => t == null ? void 0 : t.wait.current).then(() => y(_)) : y(_);
2134
- }), f = X((p, _, y) => {
2134
+ }), f = G((p, _, y) => {
2135
2135
  Promise.all(d.current[_].splice(0).map(([m, v]) => v)).then(() => {
2136
2136
  var m;
2137
- (m = c.current.shift()) == null || m();
2137
+ (m = l.current.shift()) == null || m();
2138
2138
  }).then(() => y(_));
2139
2139
  });
2140
- return V(() => ({ children: r, register: a, unregister: s, onStart: l, onStop: f, wait: u, chains: d }), [a, s, r, l, f, d, u]);
2140
+ return z(() => ({ children: r, register: a, unregister: s, onStart: c, onStop: f, wait: u, chains: d }), [a, s, r, c, f, d, u]);
2141
2141
  }
2142
- let Io = Y, Do = bt.RenderStrategy;
2142
+ let Io = q, Do = bt.RenderStrategy;
2143
2143
  function ua(e, t) {
2144
2144
  var n, r;
2145
- let { transition: o = !0, beforeEnter: i, afterEnter: s, beforeLeave: a, afterLeave: c, enter: u, enterFrom: d, enterTo: l, entered: f, leave: p, leaveFrom: _, leaveTo: y, ...m } = e, v = w(null), g = Ao(e), E = he(...g ? [v, t] : t === null ? [] : [t]), T = (n = m.unmount) == null || n ? Ee.Unmount : Ee.Hidden, { show: k, appear: C, initial: L } = ca(), [U, S] = F(k ? "visible" : "hidden"), $ = la(), { register: A, unregister: G } = $;
2146
- re(() => A(v), [A, v]), re(() => {
2145
+ let { transition: o = !0, beforeEnter: i, afterEnter: s, beforeLeave: a, afterLeave: l, enter: u, enterFrom: d, enterTo: c, entered: f, leave: p, leaveFrom: _, leaveTo: y, ...m } = e, v = w(null), g = Ao(e), $ = he(...g ? [v, t] : t === null ? [] : [t]), T = (n = m.unmount) == null || n ? Ee.Unmount : Ee.Hidden, { show: S, appear: M, initial: A } = la(), [W, F] = x(S ? "visible" : "hidden"), b = ca(), { register: R, unregister: j } = b;
2146
+ re(() => R(v), [R, v]), re(() => {
2147
2147
  if (T === Ee.Hidden && v.current) {
2148
- if (k && U !== "visible") {
2149
- S("visible");
2148
+ if (S && W !== "visible") {
2149
+ F("visible");
2150
2150
  return;
2151
2151
  }
2152
- return Te(U, { hidden: () => G(v), visible: () => A(v) });
2152
+ return Te(W, { hidden: () => j(v), visible: () => R(v) });
2153
2153
  }
2154
- }, [U, v, A, G, k, T]);
2155
- let R = lt();
2154
+ }, [W, v, R, j, S, T]);
2155
+ let I = ct();
2156
2156
  re(() => {
2157
- if (g && R && U === "visible" && v.current === null) throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?");
2158
- }, [v, U, R, g]);
2159
- let B = L && !C, D = C && k && L, K = w(!1), x = Ro(() => {
2160
- K.current || (S("hidden"), G(v));
2161
- }, $), N = X((J) => {
2162
- K.current = !0;
2163
- let Q = J ? "enter" : "leave";
2164
- x.onStart(v, Q, (ee) => {
2157
+ if (g && I && W === "visible" && v.current === null) throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?");
2158
+ }, [v, W, I, g]);
2159
+ let Y = A && !M, Q = M && S && A, X = w(!1), k = Ro(() => {
2160
+ X.current || (F("hidden"), j(v));
2161
+ }, b), C = G((Z) => {
2162
+ X.current = !0;
2163
+ let J = Z ? "enter" : "leave";
2164
+ k.onStart(v, J, (ee) => {
2165
2165
  ee === "enter" ? i == null || i() : ee === "leave" && (a == null || a());
2166
2166
  });
2167
- }), O = X((J) => {
2168
- let Q = J ? "enter" : "leave";
2169
- K.current = !1, x.onStop(v, Q, (ee) => {
2170
- ee === "enter" ? s == null || s() : ee === "leave" && (c == null || c());
2171
- }), Q === "leave" && !At(x) && (S("hidden"), G(v));
2167
+ }), N = G((Z) => {
2168
+ let J = Z ? "enter" : "leave";
2169
+ X.current = !1, k.onStop(v, J, (ee) => {
2170
+ ee === "enter" ? s == null || s() : ee === "leave" && (l == null || l());
2171
+ }), J === "leave" && !At(k) && (F("hidden"), j(v));
2172
2172
  });
2173
- W(() => {
2174
- g && o || (N(k), O(k));
2175
- }, [k, g, o]);
2176
- let M = !(!o || !g || !R || B), [, b] = Ns(M, v, k, { start: N, end: O }), I = Fe({ ref: E, className: ((r = cn(m.className, D && u, D && d, b.enter && u, b.enter && b.closed && d, b.enter && !b.closed && l, b.leave && p, b.leave && !b.closed && _, b.leave && b.closed && y, !b.transition && k && f)) == null ? void 0 : r.trim()) || void 0, ...Ps(b) }), j = 0;
2177
- return U === "visible" && (j |= le.Open), U === "hidden" && (j |= le.Closed), b.enter && (j |= le.Opening), b.leave && (j |= le.Closing), P.createElement(Lt.Provider, { value: x }, P.createElement(Is, { value: j }, ae({ ourProps: I, theirProps: m, defaultTag: Io, features: Do, visible: U === "visible", name: "Transition.Child" })));
2173
+ H(() => {
2174
+ g && o || (C(S), N(S));
2175
+ }, [S, g, o]);
2176
+ let P = !(!o || !g || !I || Y), [, E] = Ns(P, v, S, { start: C, end: N }), D = Fe({ ref: $, className: ((r = ln(m.className, Q && u, Q && d, E.enter && u, E.enter && E.closed && d, E.enter && !E.closed && c, E.leave && p, E.leave && !E.closed && _, E.leave && E.closed && y, !E.transition && S && f)) == null ? void 0 : r.trim()) || void 0, ...Ps(E) }), V = 0;
2177
+ return W === "visible" && (V |= ce.Open), W === "hidden" && (V |= ce.Closed), E.enter && (V |= ce.Opening), E.leave && (V |= ce.Closing), L.createElement(Lt.Provider, { value: k }, L.createElement(Is, { value: V }, ae({ ourProps: D, theirProps: m, defaultTag: Io, features: Do, visible: W === "visible", name: "Transition.Child" })));
2178
2178
  }
2179
2179
  function da(e, t) {
2180
- let { show: n, appear: r = !1, unmount: o = !0, ...i } = e, s = w(null), a = Ao(e), c = he(...a ? [s, t] : t === null ? [] : [t]);
2181
- lt();
2180
+ let { show: n, appear: r = !1, unmount: o = !0, ...i } = e, s = w(null), a = Ao(e), l = he(...a ? [s, t] : t === null ? [] : [t]);
2181
+ ct();
2182
2182
  let u = Pt();
2183
- if (n === void 0 && u !== null && (n = (u & le.Open) === le.Open), n === void 0) throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");
2184
- let [d, l] = F(n ? "visible" : "hidden"), f = Ro(() => {
2185
- n || l("hidden");
2186
- }), [p, _] = F(!0), y = w([n]);
2183
+ if (n === void 0 && u !== null && (n = (u & ce.Open) === ce.Open), n === void 0) throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");
2184
+ let [d, c] = x(n ? "visible" : "hidden"), f = Ro(() => {
2185
+ n || c("hidden");
2186
+ }), [p, _] = x(!0), y = w([n]);
2187
2187
  re(() => {
2188
2188
  p !== !1 && y.current[y.current.length - 1] !== n && (y.current.push(n), _(!1));
2189
2189
  }, [y, n]);
2190
- let m = V(() => ({ show: n, appear: r, initial: p }), [n, r, p]);
2191
- Eo(n, s, () => l("hidden")), re(() => {
2192
- n ? l("visible") : !At(f) && s.current !== null && l("hidden");
2190
+ let m = z(() => ({ show: n, appear: r, initial: p }), [n, r, p]);
2191
+ Eo(n, s, () => c("hidden")), re(() => {
2192
+ n ? c("visible") : !At(f) && s.current !== null && c("hidden");
2193
2193
  }, [n, f]);
2194
- let v = { unmount: o }, g = X(() => {
2194
+ let v = { unmount: o }, g = G(() => {
2195
2195
  var T;
2196
2196
  p && _(!1), (T = e.beforeEnter) == null || T.call(e);
2197
- }), E = X(() => {
2197
+ }), $ = G(() => {
2198
2198
  var T;
2199
2199
  p && _(!1), (T = e.beforeLeave) == null || T.call(e);
2200
2200
  });
2201
- return P.createElement(Lt.Provider, { value: f }, P.createElement(Nt.Provider, { value: m }, ae({ ourProps: { ...v, as: Y, children: P.createElement(Oo, { ref: c, ...v, ...i, beforeEnter: g, beforeLeave: E }) }, theirProps: {}, defaultTag: Y, features: Do, visible: d === "visible", name: "Transition" })));
2201
+ return L.createElement(Lt.Provider, { value: f }, L.createElement(Nt.Provider, { value: m }, ae({ ourProps: { ...v, as: q, children: L.createElement(Oo, { ref: l, ...v, ...i, beforeEnter: g, beforeLeave: $ }) }, theirProps: {}, defaultTag: q, features: Do, visible: d === "visible", name: "Transition" })));
2202
2202
  }
2203
2203
  function fa(e, t) {
2204
2204
  let n = te(Nt) !== null, r = Pt() !== null;
2205
- return P.createElement(P.Fragment, null, !n && r ? P.createElement(hn, { ref: t, ...e }) : P.createElement(Oo, { ref: t, ...e }));
2205
+ return L.createElement(L.Fragment, null, !n && r ? L.createElement(hn, { ref: t, ...e }) : L.createElement(Oo, { ref: t, ...e }));
2206
2206
  }
2207
2207
  let hn = oe(da), Oo = oe(ua), Ln = oe(fa), pe = Object.assign(hn, { Child: Ln, Root: hn });
2208
2208
  var pa = ((e) => (e[e.Open = 0] = "Open", e[e.Closed = 1] = "Closed", e))(pa || {}), ha = ((e) => (e[e.SetTitleId = 0] = "SetTitleId", e))(ha || {});
@@ -2221,30 +2221,30 @@ function Rt(e) {
2221
2221
  function ma(e, t) {
2222
2222
  return Te(t.type, va, e, t);
2223
2223
  }
2224
- let lr = oe(function(e, t) {
2225
- let n = ke(), { id: r = `headlessui-dialog-${n}`, open: o, onClose: i, initialFocus: s, role: a = "dialog", autoFocus: c = !0, __demoMode: u = !1, ...d } = e, l = w(!1);
2224
+ let cr = oe(function(e, t) {
2225
+ let n = ke(), { id: r = `headlessui-dialog-${n}`, open: o, onClose: i, initialFocus: s, role: a = "dialog", autoFocus: l = !0, __demoMode: u = !1, ...d } = e, c = w(!1);
2226
2226
  a = function() {
2227
- return a === "dialog" || a === "alertdialog" ? a : (l.current || (l.current = !0, console.warn(`Invalid role [${a}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)), "dialog");
2227
+ return a === "dialog" || a === "alertdialog" ? a : (c.current || (c.current = !0, console.warn(`Invalid role [${a}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)), "dialog");
2228
2228
  }();
2229
2229
  let f = Pt();
2230
- o === void 0 && f !== null && (o = (f & le.Open) === le.Open);
2231
- let p = w(null), _ = he(p, t), y = ct(p), m = o ? 0 : 1, [v, g] = it(ma, { titleId: null, descriptionId: null, panelRef: mn() }), E = X(() => i(!1)), T = X((M) => g({ type: 0, id: M })), k = lt() ? m === 0 : !1, [C, L] = qs(), U = { get current() {
2232
- var M;
2233
- return (M = v.panelRef.current) != null ? M : p.current;
2234
- } }, { resolveContainers: S, mainTreeNodeRef: $, MainTreeNode: A } = Zs({ portals: C, defaultContainers: [U] }), G = f !== null ? (f & le.Closing) === le.Closing : !1;
2235
- ls(u || G ? !1 : k, { allowed: X(() => {
2236
- var M, b;
2237
- return [(b = (M = p.current) == null ? void 0 : M.closest("[data-headlessui-portal]")) != null ? b : null];
2238
- }), disallowed: X(() => {
2239
- var M, b;
2240
- return [(b = (M = $.current) == null ? void 0 : M.closest("body > *:not(#headlessui-portal-root)")) != null ? b : null];
2241
- }) }), bs(k, S, (M) => {
2242
- M.preventDefault(), E();
2243
- }), Ks(k, y == null ? void 0 : y.defaultView, (M) => {
2244
- M.preventDefault(), M.stopPropagation(), document.activeElement && "blur" in document.activeElement && typeof document.activeElement.blur == "function" && document.activeElement.blur(), E();
2245
- }), Cs(u || G ? !1 : k, y, S), Eo(k, p, E);
2246
- let [R, B] = es(), D = V(() => [{ dialogState: m, close: E, setTitleId: T }, v], [m, v, E, T]), K = V(() => ({ open: m === 0 }), [m]), x = { ref: _, id: r, role: a, tabIndex: -1, "aria-modal": u ? void 0 : m === 0 ? !0 : void 0, "aria-labelledby": v.titleId, "aria-describedby": R }, N = !Xs(), O = Me.None;
2247
- return k && !u && (O |= Me.RestoreFocus, O |= Me.TabLock, c && (O |= Me.AutoFocus), N && (O |= Me.InitialFocus)), P.createElement(Ds, null, P.createElement(cr, { force: !0 }, P.createElement(Gs, null, P.createElement(An.Provider, { value: D }, P.createElement(Po, { target: p }, P.createElement(cr, { force: !1 }, P.createElement(B, { slot: K }, P.createElement(L, null, P.createElement(na, { initialFocus: s, initialFocusFallback: p, containers: S, features: O }, P.createElement(ss, { value: E }, ae({ ourProps: x, theirProps: d, slot: K, defaultTag: _a, features: ya, visible: m === 0, name: "Dialog" })))))))))), P.createElement(Ji, null, P.createElement(A, null)));
2230
+ o === void 0 && f !== null && (o = (f & ce.Open) === ce.Open);
2231
+ let p = w(null), _ = he(p, t), y = lt(p), m = o ? 0 : 1, [v, g] = it(ma, { titleId: null, descriptionId: null, panelRef: mn() }), $ = G(() => i(!1)), T = G((P) => g({ type: 0, id: P })), S = ct() ? m === 0 : !1, [M, A] = qs(), W = { get current() {
2232
+ var P;
2233
+ return (P = v.panelRef.current) != null ? P : p.current;
2234
+ } }, { resolveContainers: F, mainTreeNodeRef: b, MainTreeNode: R } = Zs({ portals: M, defaultContainers: [W] }), j = f !== null ? (f & ce.Closing) === ce.Closing : !1;
2235
+ cs(u || j ? !1 : S, { allowed: G(() => {
2236
+ var P, E;
2237
+ return [(E = (P = p.current) == null ? void 0 : P.closest("[data-headlessui-portal]")) != null ? E : null];
2238
+ }), disallowed: G(() => {
2239
+ var P, E;
2240
+ return [(E = (P = b.current) == null ? void 0 : P.closest("body > *:not(#headlessui-portal-root)")) != null ? E : null];
2241
+ }) }), bs(S, F, (P) => {
2242
+ P.preventDefault(), $();
2243
+ }), Ks(S, y == null ? void 0 : y.defaultView, (P) => {
2244
+ P.preventDefault(), P.stopPropagation(), document.activeElement && "blur" in document.activeElement && typeof document.activeElement.blur == "function" && document.activeElement.blur(), $();
2245
+ }), Cs(u || j ? !1 : S, y, F), Eo(S, p, $);
2246
+ let [I, Y] = es(), Q = z(() => [{ dialogState: m, close: $, setTitleId: T }, v], [m, v, $, T]), X = z(() => ({ open: m === 0 }), [m]), k = { ref: _, id: r, role: a, tabIndex: -1, "aria-modal": u ? void 0 : m === 0 ? !0 : void 0, "aria-labelledby": v.titleId, "aria-describedby": I }, C = !Xs(), N = Me.None;
2247
+ return S && !u && (N |= Me.RestoreFocus, N |= Me.TabLock, l && (N |= Me.AutoFocus), C && (N |= Me.InitialFocus)), L.createElement(Ds, null, L.createElement(lr, { force: !0 }, L.createElement(Gs, null, L.createElement(An.Provider, { value: Q }, L.createElement(Po, { target: p }, L.createElement(lr, { force: !1 }, L.createElement(Y, { slot: X }, L.createElement(A, null, L.createElement(na, { initialFocus: s, initialFocusFallback: p, containers: F, features: N }, L.createElement(ss, { value: $ }, ae({ ourProps: k, theirProps: d, slot: X, defaultTag: _a, features: ya, visible: m === 0, name: "Dialog" })))))))))), L.createElement(Ji, null, L.createElement(R, null)));
2248
2248
  }), _a = "div", ya = bt.RenderStrategy | bt.Static;
2249
2249
  function ga(e, t) {
2250
2250
  let { transition: n = !1, open: r, ...o } = e, i = Pt(), s = e.hasOwnProperty("open") || i !== null, a = e.hasOwnProperty("onClose");
@@ -2253,26 +2253,26 @@ function ga(e, t) {
2253
2253
  if (!a) throw new Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");
2254
2254
  if (!i && typeof e.open != "boolean") throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${e.open}`);
2255
2255
  if (typeof e.onClose != "function") throw new Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${e.onClose}`);
2256
- return (r !== void 0 || n) && !o.static ? P.createElement(pe, { show: r, transition: n, unmount: o.unmount }, P.createElement(lr, { ref: t, ...o })) : P.createElement(lr, { ref: t, open: r, ...o });
2256
+ return (r !== void 0 || n) && !o.static ? L.createElement(pe, { show: r, transition: n, unmount: o.unmount }, L.createElement(cr, { ref: t, ...o })) : L.createElement(cr, { ref: t, open: r, ...o });
2257
2257
  }
2258
2258
  let wa = "div";
2259
2259
  function ba(e, t) {
2260
- let n = ke(), { id: r = `headlessui-dialog-panel-${n}`, transition: o = !1, ...i } = e, [{ dialogState: s }, a] = Rt("Dialog.Panel"), c = he(t, a.panelRef), u = V(() => ({ open: s === 0 }), [s]), d = X((l) => {
2261
- l.stopPropagation();
2260
+ let n = ke(), { id: r = `headlessui-dialog-panel-${n}`, transition: o = !1, ...i } = e, [{ dialogState: s }, a] = Rt("Dialog.Panel"), l = he(t, a.panelRef), u = z(() => ({ open: s === 0 }), [s]), d = G((c) => {
2261
+ c.stopPropagation();
2262
2262
  });
2263
- return P.createElement(o ? Ln : Y, null, ae({ ourProps: { ref: c, id: r, onClick: d }, theirProps: i, slot: u, defaultTag: wa, name: "Dialog.Panel" }));
2263
+ return L.createElement(o ? Ln : q, null, ae({ ourProps: { ref: l, id: r, onClick: d }, theirProps: i, slot: u, defaultTag: wa, name: "Dialog.Panel" }));
2264
2264
  }
2265
2265
  let Ea = "div";
2266
2266
  function $a(e, t) {
2267
- let { transition: n = !1, ...r } = e, [{ dialogState: o }] = Rt("Dialog.Backdrop"), i = V(() => ({ open: o === 0 }), [o]);
2268
- return P.createElement(n ? Ln : Y, null, ae({ ourProps: { ref: t, "aria-hidden": !0 }, theirProps: r, slot: i, defaultTag: Ea, name: "Dialog.Backdrop" }));
2267
+ let { transition: n = !1, ...r } = e, [{ dialogState: o }] = Rt("Dialog.Backdrop"), i = z(() => ({ open: o === 0 }), [o]);
2268
+ return L.createElement(n ? Ln : q, null, ae({ ourProps: { ref: t, "aria-hidden": !0 }, theirProps: r, slot: i, defaultTag: Ea, name: "Dialog.Backdrop" }));
2269
2269
  }
2270
2270
  let Ta = "h2";
2271
2271
  function ka(e, t) {
2272
2272
  let n = ke(), { id: r = `headlessui-dialog-title-${n}`, ...o } = e, [{ dialogState: i, setTitleId: s }] = Rt("Dialog.Title"), a = he(t);
2273
- W(() => (s(r), () => s(null)), [r, s]);
2274
- let c = V(() => ({ open: i === 0 }), [i]);
2275
- return ae({ ourProps: { ref: a, id: r }, theirProps: o, slot: c, defaultTag: Ta, name: "Dialog.Title" });
2273
+ H(() => (s(r), () => s(null)), [r, s]);
2274
+ let l = z(() => ({ open: i === 0 }), [i]);
2275
+ return ae({ ourProps: { ref: a, id: r }, theirProps: o, slot: l, defaultTag: Ta, name: "Dialog.Title" });
2276
2276
  }
2277
2277
  let Sa = oe(ga), Ho = oe(ba);
2278
2278
  oe($a);
@@ -2294,7 +2294,7 @@ const xa = "_root_1duny_1", Ma = "_modal_1duny_10", Pa = "_container_1duny_13",
2294
2294
  strokeWidth: i,
2295
2295
  className: s = "",
2296
2296
  viewBox: a = "0 0 20 20"
2297
- } = e, c = V(() => {
2297
+ } = e, l = z(() => {
2298
2298
  switch (n) {
2299
2299
  case "sm":
2300
2300
  return "yvlw-w-4 yvlw-h-4";
@@ -2316,7 +2316,7 @@ const xa = "_root_1duny_1", Ma = "_modal_1duny_10", Pa = "_container_1duny_13",
2316
2316
  fill: r,
2317
2317
  stroke: o,
2318
2318
  strokeWidth: i,
2319
- className: `${c} ${s}`,
2319
+ className: `${l} ${s}`,
2320
2320
  children: t
2321
2321
  }
2322
2322
  );
@@ -2381,23 +2381,23 @@ class $e {
2381
2381
  y: 0
2382
2382
  };
2383
2383
  o.x = (n - o.width) / 2, o.y = (r - o.height) / 2;
2384
- let i = 1 / 0, s = -1 / 0, a = 1 / 0, c = -1 / 0;
2384
+ let i = 1 / 0, s = -1 / 0, a = 1 / 0, l = -1 / 0;
2385
2385
  t.forEach((d) => {
2386
- i = Math.min(i, d.x), s = Math.max(s, d.x), a = Math.min(a, d.y), c = Math.max(c, d.y);
2386
+ i = Math.min(i, d.x), s = Math.max(s, d.x), a = Math.min(a, d.y), l = Math.max(l, d.y);
2387
2387
  });
2388
- const u = { xMin: i, xMax: s, yMin: a, yMax: c };
2388
+ const u = { xMin: i, xMax: s, yMin: a, yMax: l };
2389
2389
  return u.xMin < o.x || u.xMax > o.x + o.width || u.yMin < o.y || u.yMax > o.y + o.height ? {
2390
2390
  box: {
2391
2391
  xMin: i,
2392
2392
  xMax: s,
2393
2393
  yMin: a,
2394
- yMax: c,
2394
+ yMax: l,
2395
2395
  width: s - i,
2396
- height: c - a
2396
+ height: l - a
2397
2397
  },
2398
2398
  inBox: !1
2399
2399
  } : {
2400
- box: { xMin: i, xMax: s, yMin: a, yMax: c, width: s - i, height: c - a },
2400
+ box: { xMin: i, xMax: s, yMin: a, yMax: l, width: s - i, height: l - a },
2401
2401
  inBox: !0
2402
2402
  };
2403
2403
  }
@@ -2407,17 +2407,17 @@ class $e {
2407
2407
  const { width: o, height: i } = n, { faceLandmarks: s, faceBlendshapes: a } = await t.detect(n);
2408
2408
  if (s.length === 0)
2409
2409
  return { faces: [], blendShapes: [], inBox: !1 };
2410
- const c = $e.denormalizeKeypoints(
2410
+ const l = $e.denormalizeKeypoints(
2411
2411
  s[0],
2412
2412
  o,
2413
2413
  i
2414
2414
  ), { box: u, inBox: d } = $e.getBoundingBox(
2415
- c,
2415
+ l,
2416
2416
  o,
2417
2417
  i
2418
2418
  );
2419
2419
  return {
2420
- faces: [{ keypoints: c, box: u }],
2420
+ faces: [{ keypoints: l, box: u }],
2421
2421
  blendShapes: ((r = a == null ? void 0 : a[0]) == null ? void 0 : r.categories) ?? [],
2422
2422
  inBox: d
2423
2423
  };
@@ -2430,12 +2430,12 @@ const za = (e, t) => {
2430
2430
  let n;
2431
2431
  return typeof OffscreenCanvas < "u" ? n = new OffscreenCanvas(e, t) : (n = document.createElement("canvas"), n.width = e, n.height = t), n;
2432
2432
  }, Rn = (e, t, n, r, o) => {
2433
- let i = 0, s = 0, a = t, c = n;
2433
+ let i = 0, s = 0, a = t, l = n;
2434
2434
  const d = za(t, n).getContext(
2435
2435
  "2d",
2436
2436
  o
2437
2437
  );
2438
- return d.drawImage(e, 0, 0), d.getImageData(i, s, a, c);
2438
+ return d.drawImage(e, 0, 0), d.getImageData(i, s, a, l);
2439
2439
  }, Va = (e) => new Promise((t) => {
2440
2440
  const n = document.createElement("canvas");
2441
2441
  let { width: r } = e, { height: o } = e;
@@ -2446,20 +2446,20 @@ function ja(e) {
2446
2446
  let o = 0, i = 0;
2447
2447
  const s = [0, -1, 0, -1, 4, -1, 0, -1, 0];
2448
2448
  for (let d = 1; d < n - 1; d++)
2449
- for (let l = 1; l < t - 1; l++) {
2449
+ for (let c = 1; c < t - 1; c++) {
2450
2450
  let f = 0, p = 0, _ = 0, y = 0;
2451
2451
  for (let v = -1; v <= 1; v++)
2452
2452
  for (let g = -1; g <= 1; g++) {
2453
- const E = ((d + v) * t + (l + g)) * 4, T = s[y++];
2454
- f += r[E] * T, p += r[E + 1] * T, _ += r[E + 2] * T;
2453
+ const $ = ((d + v) * t + (c + g)) * 4, T = s[y++];
2454
+ f += r[$] * T, p += r[$ + 1] * T, _ += r[$ + 2] * T;
2455
2455
  }
2456
2456
  const m = 0.299 * f + 0.587 * p + 0.114 * _;
2457
2457
  o += m, i += m * m;
2458
2458
  }
2459
2459
  const a = (t - 2) * (n - 2);
2460
2460
  if (a === 0) return 0;
2461
- const c = o / a;
2462
- return i / a - c * c;
2461
+ const l = o / a;
2462
+ return i / a - l * l;
2463
2463
  }
2464
2464
  function Ba() {
2465
2465
  if (MediaRecorder.isTypeSupported("video/webm; codecs=vp9"))
@@ -2472,9 +2472,9 @@ function Ba() {
2472
2472
  function zo(e = {}) {
2473
2473
  const { onRecord: t = () => {
2474
2474
  }, onStop: n = () => {
2475
- } } = e, r = w([]), o = w(null), i = w(null), s = z((f) => {
2475
+ } } = e, r = w([]), o = w(null), i = w(null), s = U((f) => {
2476
2476
  r.current.push(f);
2477
- }, []), a = z(
2477
+ }, []), a = U(
2478
2478
  async (f) => {
2479
2479
  if (o.current)
2480
2480
  return;
@@ -2493,13 +2493,13 @@ function zo(e = {}) {
2493
2493
  }) : p = await Va(f), p && (o.current = p);
2494
2494
  },
2495
2495
  []
2496
- ), c = z(() => {
2496
+ ), l = U(() => {
2497
2497
  o.current = null;
2498
- }, []), u = z((f) => {
2498
+ }, []), u = U((f) => {
2499
2499
  f.data.size > 0 && t(f.data);
2500
- }, []), d = z(() => {
2500
+ }, []), d = U(() => {
2501
2501
  !i.current || i.current.state === "inactive" || (i.current.stop(), i.current.stream.getTracks().forEach((f) => f.stop()), n());
2502
- }, []), l = z((f) => {
2502
+ }, []), c = U((f) => {
2503
2503
  i.current || (i.current = new MediaRecorder(
2504
2504
  f,
2505
2505
  Ba()
@@ -2508,11 +2508,11 @@ function zo(e = {}) {
2508
2508
  return {
2509
2509
  saveStream: s,
2510
2510
  savePhoto: a,
2511
- start: l,
2511
+ start: c,
2512
2512
  stop: d,
2513
2513
  savedStreams: r,
2514
2514
  savedPhoto: o,
2515
- clearSavedPhoto: c
2515
+ clearSavedPhoto: l
2516
2516
  };
2517
2517
  }
2518
2518
  const qa = "https://cdn.svc.youverify.co", Ya = "61d880f1e8e15aaf24558f1a", Ga = (e, t, n, r) => {
@@ -2546,15 +2546,15 @@ function Ka(e, t, n, r) {
2546
2546
  n,
2547
2547
  r
2548
2548
  );
2549
- return { postData: async (c) => {
2549
+ return { postData: async (l) => {
2550
2550
  const {
2551
2551
  faceImage: u,
2552
2552
  publicKey: d,
2553
- passed: l,
2553
+ passed: c,
2554
2554
  metadata: f,
2555
2555
  video: p,
2556
2556
  sessionId: _
2557
- } = c, y = new FormData();
2557
+ } = l, y = new FormData();
2558
2558
  y.append("files", u), y.append("files", p);
2559
2559
  const m = await fetch(
2560
2560
  `${qa}/v1/uploads/media`,
@@ -2573,33 +2573,33 @@ function Ka(e, t, n, r) {
2573
2573
  components: ["liveness"],
2574
2574
  faceImage: v[0].cachedLocation,
2575
2575
  livenessClip: v[1].cachedLocation,
2576
- passed: l,
2576
+ passed: c,
2577
2577
  metadata: f
2578
2578
  };
2579
2579
  d && (g.publicMerchantID = d);
2580
- const E = await fetch(`${o}/v1/sdk/identity/liveness/`, {
2580
+ const $ = await fetch(`${o}/v1/sdk/identity/liveness/`, {
2581
2581
  method: "POST",
2582
2582
  headers: {
2583
2583
  "Content-Type": "application/json"
2584
2584
  },
2585
2585
  body: JSON.stringify(g)
2586
2586
  });
2587
- if (!E.ok)
2588
- throw E;
2589
- return (await E.json()).data;
2587
+ if (!$.ok)
2588
+ throw $;
2589
+ return (await $.json()).data;
2590
2590
  }, fetchSessionToken: async () => {
2591
2591
  throw new Error(
2592
2592
  "fetchSessionToken is deprecated. Provide sessionToken from your backend."
2593
2593
  );
2594
- }, validateSessionId: async (c) => {
2594
+ }, validateSessionId: async (l) => {
2595
2595
  const u = await fetch(`${o}/v1/sdk/session/validate`, {
2596
2596
  method: "POST",
2597
2597
  headers: { "Content-Type": "application/json" },
2598
- body: JSON.stringify({ sessionId: c })
2598
+ body: JSON.stringify({ sessionId: l })
2599
2599
  }), d = await u.json().catch(() => ({}));
2600
2600
  if (!u.ok) {
2601
- const l = (d == null ? void 0 : d.message) || "Session validation failed";
2602
- throw new Error(l);
2601
+ const c = (d == null ? void 0 : d.message) || "Session validation failed";
2602
+ throw new Error(c);
2603
2603
  }
2604
2604
  return !0;
2605
2605
  } };
@@ -2656,7 +2656,7 @@ const Xa = 360, Za = "#125766", Ja = "https://cdn.youverify.co/1721901834404-q2n
2656
2656
  key: "LIGHTING_ERROR",
2657
2657
  message: "Please check your lighting. Move to a well-lit area, but avoid harsh light or strong reflections on your face."
2658
2658
  }
2659
- }, ec = {
2659
+ }, el = {
2660
2660
  "complete-the-circle": {
2661
2661
  Icon: Da,
2662
2662
  name: "Complete The Circle ⭕️",
@@ -2710,7 +2710,7 @@ const Xa = 360, Za = "#125766", Ja = "https://cdn.youverify.co/1721901834404-q2n
2710
2710
  isMobileAppWebView: !1
2711
2711
  });
2712
2712
  let pr, hr = !1;
2713
- function tc(e) {
2713
+ function tl(e) {
2714
2714
  const {
2715
2715
  publicKey: t,
2716
2716
  tasks: n,
@@ -2719,35 +2719,35 @@ function tc(e) {
2719
2719
  user: i,
2720
2720
  branding: s,
2721
2721
  onRequestClose: a,
2722
- onSuccess: c = () => {
2722
+ onSuccess: l = () => {
2723
2723
  },
2724
2724
  onFailure: u = () => {
2725
2725
  },
2726
2726
  metadata: d,
2727
- presentation: l,
2727
+ presentation: c,
2728
2728
  sandboxEnvironment: f = !0,
2729
2729
  isMobileAppWebView: p = !1,
2730
2730
  sessionId: _,
2731
2731
  sessionToken: y,
2732
2732
  forceDevUrl: m
2733
- } = e, [v, g] = F(0), [E, T] = F(0), [k, C] = F(null), [L, U] = F(!1), { saveStream: S, savePhoto: $, savedPhoto: A, clearSavedPhoto: G, savedStreams: R } = zo(), { postData: B, validateSessionId: D } = Ka(
2733
+ } = e, [v, g] = x(0), [$, T] = x(0), [S, M] = x(null), [A, W] = x(!1), { saveStream: F, savePhoto: b, savedPhoto: R, clearSavedPhoto: j, savedStreams: I } = zo(), { postData: Y, validateSessionId: Q } = Ka(
2734
2734
  f,
2735
2735
  m,
2736
2736
  t,
2737
2737
  u
2738
- ), K = V(
2739
- () => E === n.length,
2740
- [n, E]
2741
- ), x = () => {
2742
- T((b) => b + 1), g((b) => b + 1);
2743
- }, N = (b) => {
2744
- const I = new Image();
2745
- I.crossOrigin = "Anonymous", I.src = Ja, I.onload = () => {
2746
- const j = Rn(I, I.width, I.height);
2747
- $e.detectFaces(b, j);
2738
+ ), X = z(
2739
+ () => $ === n.length,
2740
+ [n, $]
2741
+ ), k = () => {
2742
+ T((E) => E + 1), g((E) => E + 1);
2743
+ }, C = (E) => {
2744
+ const D = new Image();
2745
+ D.crossOrigin = "Anonymous", D.src = Ja, D.onload = () => {
2746
+ const V = Rn(D, D.width, D.height);
2747
+ $e.detectFaces(E, V);
2748
2748
  };
2749
- }, O = async () => {
2750
- if (!A.current) {
2749
+ }, N = async () => {
2750
+ if (!R.current) {
2751
2751
  u({
2752
2752
  faceImage: "",
2753
2753
  passed: !1,
@@ -2760,15 +2760,15 @@ function tc(e) {
2760
2760
  return;
2761
2761
  }
2762
2762
  try {
2763
- const b = await B({
2764
- faceImage: A.current,
2765
- video: new Blob(R.current, { type: "video/mp4" }),
2763
+ const E = await Y({
2764
+ faceImage: R.current,
2765
+ video: new Blob(I.current, { type: "video/mp4" }),
2766
2766
  publicKey: t,
2767
2767
  passed: !0,
2768
2768
  metadata: d,
2769
2769
  sessionId: _
2770
2770
  });
2771
- c(b), a();
2771
+ l(E), a();
2772
2772
  } catch {
2773
2773
  u({
2774
2774
  faceImage: "",
@@ -2780,7 +2780,7 @@ function tc(e) {
2780
2780
  }
2781
2781
  }), a();
2782
2782
  }
2783
- }, M = async () => {
2783
+ }, P = async () => {
2784
2784
  try {
2785
2785
  if (!_)
2786
2786
  throw new Error("sessionId is required. Provide it from your backend.");
@@ -2788,29 +2788,29 @@ function tc(e) {
2788
2788
  throw new Error(
2789
2789
  "sessionToken is required. Provide it from your backend."
2790
2790
  );
2791
- await D(_);
2792
- } catch (I) {
2793
- const j = I instanceof Error ? I.message : "Invalid or expired sessionId";
2791
+ await Q(_);
2792
+ } catch (D) {
2793
+ const V = D instanceof Error ? D.message : "Invalid or expired sessionId";
2794
2794
  u({
2795
2795
  faceImage: "",
2796
2796
  passed: !1,
2797
2797
  metadata: d,
2798
2798
  error: {
2799
2799
  key: "invalid_or_expired_session",
2800
- message: j
2800
+ message: V
2801
2801
  }
2802
2802
  });
2803
2803
  return;
2804
2804
  }
2805
- const b = await $e.loadDetector();
2806
- pr = b, N(b), C(b);
2805
+ const E = await $e.loadDetector();
2806
+ pr = E, C(E), M(E);
2807
2807
  };
2808
- return W(() => {
2808
+ return H(() => {
2809
2809
  if (hr) {
2810
- C(pr);
2810
+ M(pr);
2811
2811
  return;
2812
2812
  }
2813
- M(), hr = !0;
2813
+ P(), hr = !0;
2814
2814
  }, []), /* @__PURE__ */ h(
2815
2815
  Vo.Provider,
2816
2816
  {
@@ -2819,9 +2819,9 @@ function tc(e) {
2819
2819
  namespace: o,
2820
2820
  user: i,
2821
2821
  currentTaskIndex: v,
2822
- completed: K,
2823
- completedCount: E,
2824
- nextTask: x,
2822
+ completed: X,
2823
+ completedCount: $,
2824
+ nextTask: k,
2825
2825
  branding: {
2826
2826
  name: (s == null ? void 0 : s.name) ?? "Youverify",
2827
2827
  color: (s == null ? void 0 : s.color) ?? void 0,
@@ -2833,15 +2833,15 @@ function tc(e) {
2833
2833
  poweredByLogo: (s == null ? void 0 : s.poweredByLogo) ?? "/yv_logo.svg"
2834
2834
  },
2835
2835
  onRequestClose: a,
2836
- faceDetector: k,
2837
- saveStream: S,
2838
- savePhoto: $,
2839
- clearSavedPhoto: G,
2840
- onComplete: O,
2836
+ faceDetector: S,
2837
+ saveStream: F,
2838
+ savePhoto: b,
2839
+ clearSavedPhoto: j,
2840
+ onComplete: N,
2841
2841
  onFailure: u,
2842
- presentation: l,
2843
- imageCaptured: L,
2844
- setImageCaptured: U,
2842
+ presentation: c,
2843
+ imageCaptured: A,
2844
+ setImageCaptured: W,
2845
2845
  sandboxEnvironment: f,
2846
2846
  publicKey: t,
2847
2847
  isMobileAppWebView: p,
@@ -2855,24 +2855,24 @@ function tc(e) {
2855
2855
  function fe() {
2856
2856
  return te(Vo);
2857
2857
  }
2858
- const nc = "_root_vqy7d_1", rc = "_container_vqy7d_4", oc = "_lhs_vqy7d_7", ic = "_info_vqy7d_11", sc = "_active_vqy7d_32", ac = "_completed_vqy7d_39", cc = "_rhs_vqy7d_62", lc = "_profile_vqy7d_65", uc = "_avatar_vqy7d_68", dc = "_main_vqy7d_81", fc = "_content_vqy7d_84", ne = {
2859
- root: nc,
2860
- container: rc,
2861
- lhs: oc,
2862
- info: ic,
2863
- active: sc,
2864
- completed: ac,
2865
- rhs: cc,
2866
- profile: lc,
2867
- avatar: uc,
2868
- main: dc,
2869
- content: fc
2870
- }, pc = "_root_lryhb_1", hc = "_container_lryhb_1", vc = "_brand_lryhb_6", jt = {
2871
- root: pc,
2872
- container: hc,
2873
- brand: vc
2858
+ const nl = "_root_vqy7d_1", rl = "_container_vqy7d_4", ol = "_lhs_vqy7d_7", il = "_info_vqy7d_11", sl = "_active_vqy7d_32", al = "_completed_vqy7d_39", ll = "_rhs_vqy7d_62", cl = "_profile_vqy7d_65", ul = "_avatar_vqy7d_68", dl = "_main_vqy7d_81", fl = "_content_vqy7d_84", ne = {
2859
+ root: nl,
2860
+ container: rl,
2861
+ lhs: ol,
2862
+ info: il,
2863
+ active: sl,
2864
+ completed: al,
2865
+ rhs: ll,
2866
+ profile: cl,
2867
+ avatar: ul,
2868
+ main: dl,
2869
+ content: fl
2870
+ }, pl = "_root_lryhb_1", hl = "_container_lryhb_1", vl = "_brand_lryhb_6", jt = {
2871
+ root: pl,
2872
+ container: hl,
2873
+ brand: vl
2874
2874
  };
2875
- function mc() {
2875
+ function ml() {
2876
2876
  const { branding: e, isMobileAppWebView: t, onRequestClose: n, presentation: r } = fe();
2877
2877
  return /* @__PURE__ */ h("div", { className: jt.root, children: /* @__PURE__ */ h("div", { className: jt.container, children: [
2878
2878
  /* @__PURE__ */ h("div", { className: jt.brand, children: (e == null ? void 0 : e.logo) && !(e.hideLogoOnMobile && t) && /* @__PURE__ */ h(
@@ -2909,60 +2909,60 @@ function jo() {
2909
2909
  return n(o === "dark" ? "light" : "dark");
2910
2910
  }, getColorScheme: t };
2911
2911
  }
2912
- const _c = "_root_bcsvc_1", yc = {
2913
- root: _c
2912
+ const _l = "_root_bcsvc_1", yl = {
2913
+ root: _l
2914
2914
  };
2915
- function gc() {
2915
+ function gl() {
2916
2916
  if (!(window.screen.width >= 900))
2917
2917
  return 10 / 9;
2918
2918
  }
2919
2919
  function ut(e) {
2920
2920
  const { children: t, onStream: n = () => {
2921
2921
  }, onRecord: r = () => {
2922
- } } = e, o = w(null), i = w(0), s = w(null), { start: a, stop: c } = zo({
2922
+ } } = e, o = w(null), i = w(0), s = w(null), { start: a, stop: l } = zo({
2923
2923
  onRecord: r
2924
2924
  }), u = async () => {
2925
2925
  try {
2926
2926
  const f = await navigator.mediaDevices.getUserMedia({
2927
- video: { aspectRatio: { exact: gc() } }
2927
+ video: { aspectRatio: { exact: gl() } }
2928
2928
  });
2929
2929
  s.current = f, a(f), o.current && (o.current.srcObject = f);
2930
2930
  } catch {
2931
2931
  }
2932
2932
  }, d = () => {
2933
- s.current && (s.current.getTracks().forEach((f) => f.stop()), s.current = null, c(), o.current && (o.current.srcObject = null));
2934
- }, l = () => {
2935
- n(o), i.current = requestAnimationFrame(l);
2933
+ s.current && (s.current.getTracks().forEach((f) => f.stop()), s.current = null, l(), o.current && (o.current.srcObject = null));
2934
+ }, c = () => {
2935
+ n(o), i.current = requestAnimationFrame(c);
2936
2936
  };
2937
- return W(() => {
2937
+ return H(() => {
2938
2938
  const f = o.current;
2939
2939
  if (!f)
2940
2940
  return;
2941
2941
  const p = () => {
2942
- i.current = requestAnimationFrame(l);
2942
+ i.current = requestAnimationFrame(c);
2943
2943
  };
2944
2944
  return u(), f.addEventListener("canplay", p), () => {
2945
2945
  f.removeEventListener("canplay", p), cancelAnimationFrame(i.current), d();
2946
2946
  };
2947
- }, []), /* @__PURE__ */ h("div", { className: yc.root, children: [
2947
+ }, []), /* @__PURE__ */ h("div", { className: yl.root, children: [
2948
2948
  /* @__PURE__ */ h("video", { ref: o, autoPlay: !0, loop: !0, playsInline: !0 }),
2949
2949
  t
2950
2950
  ] });
2951
2951
  }
2952
- const wc = "_container_mcmsr_1", bc = "_focused_mcmsr_12", Ec = "_progress_mcmsr_15", $c = "_completed_mcmsr_36", Tc = "_marker_mcmsr_40", Ke = {
2953
- container: wc,
2954
- focused: bc,
2955
- progress: Ec,
2956
- completed: $c,
2957
- marker: Tc
2958
- }, mr = 360, kc = 50;
2959
- function Sc(e) {
2952
+ const wl = "_container_mcmsr_1", bl = "_focused_mcmsr_12", El = "_progress_mcmsr_15", $l = "_completed_mcmsr_36", Tl = "_marker_mcmsr_40", Ke = {
2953
+ container: wl,
2954
+ focused: bl,
2955
+ progress: El,
2956
+ completed: $l,
2957
+ marker: Tl
2958
+ }, mr = 360, kl = 50;
2959
+ function Sl(e) {
2960
2960
  const {
2961
2961
  visitedSections: t,
2962
2962
  sectionsCount: n,
2963
2963
  faceDetected: r,
2964
- divisions: o = kc
2965
- } = e, i = V(() => {
2964
+ divisions: o = kl
2965
+ } = e, i = z(() => {
2966
2966
  const s = [Ke.container];
2967
2967
  return r && s.push(Ke.focused), s.join(" ");
2968
2968
  }, [r]);
@@ -2980,15 +2980,15 @@ function Sc(e) {
2980
2980
  enterTo: "yvlw-scale-100 yvlw-opacity-100",
2981
2981
  className: "yvlw-absolute",
2982
2982
  children: /* @__PURE__ */ h("div", { className: Ke.progress, children: Array.from(Array(o).keys()).map((s) => {
2983
- const a = s * mr / o, c = Math.ceil(
2983
+ const a = s * mr / o, l = Math.ceil(
2984
2984
  (a + 1) * n / mr
2985
- ), u = t.includes(c), d = u ? s - (c - 1) * (o / n) : 0, l = [];
2986
- u && l.push(Ke.completed);
2985
+ ), u = t.includes(l), d = u ? s - (l - 1) * (o / n) : 0, c = [];
2986
+ u && c.push(Ke.completed);
2987
2987
  const f = u ? "translateX(158px)" : "translateX(150px)";
2988
2988
  return /* @__PURE__ */ h(
2989
2989
  "div",
2990
2990
  {
2991
- className: l.join(" "),
2991
+ className: c.join(" "),
2992
2992
  style: {
2993
2993
  transform: `rotate(${a}deg) ${f}`,
2994
2994
  transitionDelay: `${d * 20}ms`
@@ -3023,7 +3023,7 @@ function Sc(e) {
3023
3023
  }
3024
3024
  function Bo() {
3025
3025
  return { checkZoomLevel: (r, o) => {
3026
- const { box: i } = r, { width: s, height: a } = i, c = s * a, u = o ** 2, d = c / u;
3026
+ const { box: i } = r, { width: s, height: a } = i, l = s * a, u = o ** 2, d = l / u;
3027
3027
  if (d > 0.9)
3028
3028
  throw new Error("Move face farther from camera");
3029
3029
  if (d < 0.05)
@@ -3043,7 +3043,7 @@ function It(e = {}) {
3043
3043
  },
3044
3044
  onError: o = () => {
3045
3045
  }
3046
- } = e, { faceDetector: i } = fe(), { checkFacialFeatures: s, checkZoomLevel: a, checkInFrame: c } = Bo(), u = w(null), d = (f) => {
3046
+ } = e, { faceDetector: i } = fe(), { checkFacialFeatures: s, checkZoomLevel: a, checkInFrame: l } = Bo(), u = w(null), d = (f) => {
3047
3047
  var p;
3048
3048
  try {
3049
3049
  if (f.length === 0)
@@ -3074,7 +3074,7 @@ function It(e = {}) {
3074
3074
  "Frame size is required to check if face is in frame"
3075
3075
  );
3076
3076
  const g = n + 200;
3077
- c(m, {
3077
+ l(m, {
3078
3078
  x: (y.clientWidth - g) / 2,
3079
3079
  y: (y.clientHeight - g) / 2,
3080
3080
  width: g,
@@ -3112,23 +3112,23 @@ function It(e = {}) {
3112
3112
  d(g.faces);
3113
3113
  } };
3114
3114
  }
3115
- const Cc = "_root_5hgaj_1", Fc = "_container_5hgaj_4", xc = "_progress_5hgaj_7", Mc = "_intro_5hgaj_12", Pc = "_content_5hgaj_15", Nc = "_branding_5hgaj_18", Lc = "_instructionsContainer_5hgaj_22", Ac = "_instructions_5hgaj_22", se = {
3116
- root: Cc,
3117
- container: Fc,
3118
- progress: xc,
3119
- intro: Mc,
3120
- content: Pc,
3121
- branding: Nc,
3122
- instructionsContainer: Lc,
3123
- instructions: Ac
3124
- }, Rc = "_root_h5elg_1", Ic = "_spinner_h5elg_22", _r = {
3125
- root: Rc,
3126
- spinner: Ic
3127
- }, Dc = "_container_1vep2_1", Oc = "_spin_1vep2_1", Hc = "_md_1vep2_7", Wc = "_lg_1vep2_10", yr = {
3128
- container: Dc,
3129
- spin: Oc,
3130
- md: Hc,
3131
- lg: Wc
3115
+ const Cl = "_root_5hgaj_1", Fl = "_container_5hgaj_4", xl = "_progress_5hgaj_7", Ml = "_intro_5hgaj_12", Pl = "_content_5hgaj_15", Nl = "_branding_5hgaj_18", Ll = "_instructionsContainer_5hgaj_22", Al = "_instructions_5hgaj_22", se = {
3116
+ root: Cl,
3117
+ container: Fl,
3118
+ progress: xl,
3119
+ intro: Ml,
3120
+ content: Pl,
3121
+ branding: Nl,
3122
+ instructionsContainer: Ll,
3123
+ instructions: Al
3124
+ }, Rl = "_root_h5elg_1", Il = "_spinner_h5elg_22", _r = {
3125
+ root: Rl,
3126
+ spinner: Il
3127
+ }, Dl = "_container_1vep2_1", Ol = "_spin_1vep2_1", Hl = "_md_1vep2_7", Wl = "_lg_1vep2_10", yr = {
3128
+ container: Dl,
3129
+ spin: Ol,
3130
+ md: Hl,
3131
+ lg: Wl
3132
3132
  };
3133
3133
  function qo(e) {
3134
3134
  const { size: t = "md", message: n, className: r = "" } = e;
@@ -3144,13 +3144,13 @@ function $t(e) {
3144
3144
  },
3145
3145
  loading: s = !1,
3146
3146
  children: a,
3147
- hideButton: c = !1
3147
+ hideButton: l = !1
3148
3148
  } = e;
3149
3149
  return /* @__PURE__ */ h("div", { className: _r.root, children: [
3150
3150
  /* @__PURE__ */ h(t, { size: "custom", className: "yvlw-h-20 yvlw-mx-auto yvlw-mb-12" }),
3151
3151
  /* @__PURE__ */ h("h2", { children: r }),
3152
3152
  /* @__PURE__ */ h("p", { className: "subtext", children: n }),
3153
- !c && /* @__PURE__ */ h("div", { className: "yvlw-mt-12", children: /* @__PURE__ */ h(
3153
+ !l && /* @__PURE__ */ h("div", { className: "yvlw-mt-12", children: /* @__PURE__ */ h(
3154
3154
  Gi,
3155
3155
  {
3156
3156
  onClick: () => i(),
@@ -3177,17 +3177,17 @@ function Dt(e) {
3177
3177
  },
3178
3178
  onReset: s = () => {
3179
3179
  }
3180
- } = e, [a, c] = F(!1), { completedCount: u, tasks: d, nextTask: l, branding: f, isMobileAppWebView: p } = fe(), _ = V(
3180
+ } = e, [a, l] = x(!1), { completedCount: u, tasks: d, nextTask: c, branding: f, isMobileAppWebView: p } = fe(), _ = z(
3181
3181
  () => u * 100 / d.length,
3182
3182
  [u, d.length]
3183
3183
  );
3184
- return W(() => {
3184
+ return H(() => {
3185
3185
  !r && !o && (async () => {
3186
- await i(), c(!0);
3186
+ await i(), l(!0);
3187
3187
  })();
3188
- }, []), W(() => {
3188
+ }, []), H(() => {
3189
3189
  r && (() => {
3190
- l();
3190
+ c();
3191
3191
  })();
3192
3192
  }, [r]), /* @__PURE__ */ h("div", { className: se.root, children: /* @__PURE__ */ h("div", { className: `${se.container} view`, children: [
3193
3193
  /* @__PURE__ */ h(
@@ -3259,40 +3259,40 @@ function Dt(e) {
3259
3259
  }
3260
3260
  function Ot(e = {}) {
3261
3261
  const { timeout: t, onTimeout: n = () => {
3262
- } } = e, [r, o] = F(!1), i = w(null), s = z(() => {
3262
+ } } = e, [r, o] = x(!1), i = w(null), s = U(() => {
3263
3263
  t && i.current && clearTimeout(i.current);
3264
- }, []), a = z(() => {
3264
+ }, []), a = U(() => {
3265
3265
  t && (i.current = setTimeout(() => {
3266
3266
  o(!0), n();
3267
3267
  }, t));
3268
- }, []), c = z(() => {
3268
+ }, []), l = U(() => {
3269
3269
  o(!1), a();
3270
3270
  }, []);
3271
- return W(() => s, []), {
3271
+ return H(() => s, []), {
3272
3272
  timedOut: r,
3273
- reset: c,
3273
+ reset: l,
3274
3274
  start: a,
3275
3275
  stop: s
3276
3276
  };
3277
3277
  }
3278
- const Uc = 1, Bt = 8, Er = "Place face in frame";
3279
- function zc(e) {
3280
- const { difficulty: t, timeout: n } = e, { saveStream: r } = fe(), [o, i] = F([]), [s, a] = F(Er), [c, u] = F(!1), [d, l] = F(!1), f = w(/* @__PURE__ */ new Set()), p = w(!1), _ = w(null), {
3278
+ const Ul = 1, Bt = 8, Er = "Place face in frame";
3279
+ function zl(e) {
3280
+ const { difficulty: t, timeout: n } = e, { saveStream: r } = fe(), [o, i] = x([]), [s, a] = x(Er), [l, u] = x(!1), [d, c] = x(!1), f = w(/* @__PURE__ */ new Set()), p = w(!1), _ = w(null), {
3281
3281
  reset: y,
3282
3282
  start: m,
3283
3283
  stop: v,
3284
3284
  timedOut: g
3285
- } = Ot({ timeout: n }), E = () => {
3286
- i([]), a(Er), u(!1), l(!1), f.current = /* @__PURE__ */ new Set(), p.current = !1, _.current = null, y();
3287
- }, T = ($) => {
3288
- const A = $ * Bt, G = Math.ceil((A + 1) / Xa);
3289
- f.current.has(G) || (f.current.add(G), i(Array.from(f.current))), f.current.size >= Bt && (v(), setTimeout(() => {
3290
- l(!0);
3285
+ } = Ot({ timeout: n }), $ = () => {
3286
+ i([]), a(Er), u(!1), c(!1), f.current = /* @__PURE__ */ new Set(), p.current = !1, _.current = null, y();
3287
+ }, T = (b) => {
3288
+ const R = b * Bt, j = Math.ceil((R + 1) / Xa);
3289
+ f.current.has(j) || (f.current.add(j), i(Array.from(f.current))), f.current.size >= Bt && (v(), setTimeout(() => {
3290
+ c(!0);
3291
3291
  }, 1e3));
3292
- }, k = ($, A) => {
3293
- let R = Math.atan2(A, $) * (180 / Math.PI);
3294
- return R < 0 && (R += 360), R;
3295
- }, C = z(() => {
3292
+ }, S = (b, R) => {
3293
+ let I = Math.atan2(R, b) * (180 / Math.PI);
3294
+ return I < 0 && (I += 360), I;
3295
+ }, M = U(() => {
3296
3296
  if (f.current.size === 0)
3297
3297
  return 25;
3298
3298
  switch (t) {
@@ -3303,45 +3303,45 @@ function zc(e) {
3303
3303
  default:
3304
3304
  return 10;
3305
3305
  }
3306
- }, []), L = ($) => {
3307
- const { keypoints: A, box: G } = $, R = { x: G.width * 0.5, y: G.height * 0.5 }, B = A[Uc], D = { y: B.y - G.yMin, x: B.x - G.xMin }, K = R.x - D.x, x = D.y - R.y, N = C();
3308
- return Math.abs(K) < N && Math.abs(x) < N ? null : k(K, x);
3309
- }, { detectFaces: U } = It({
3306
+ }, []), A = (b) => {
3307
+ const { keypoints: R, box: j } = b, I = { x: j.width * 0.5, y: j.height * 0.5 }, Y = R[Ul], Q = { y: Y.y - j.yMin, x: Y.x - j.xMin }, X = I.x - Q.x, k = Q.y - I.y, C = M();
3308
+ return Math.abs(X) < C && Math.abs(k) < C ? null : S(X, k);
3309
+ }, { detectFaces: W } = It({
3310
3310
  frameSize: 280,
3311
3311
  validations: ["zoom", "in-frame"],
3312
- onFace: ($) => {
3312
+ onFace: (b) => {
3313
3313
  u(!0), a("Slowly move head around to complete circle");
3314
- const A = L($);
3315
- A && T(A);
3314
+ const R = A(b);
3315
+ R && T(R);
3316
3316
  },
3317
- onError: ($) => {
3318
- a($), i([]), f.current.clear(), _.current = null, p.current = !1;
3317
+ onError: (b) => {
3318
+ a(b), i([]), f.current.clear(), _.current = null, p.current = !1;
3319
3319
  }
3320
3320
  });
3321
- return /* @__PURE__ */ h(Y, { children: /* @__PURE__ */ h(
3321
+ return /* @__PURE__ */ h(q, { children: /* @__PURE__ */ h(
3322
3322
  Dt,
3323
3323
  {
3324
3324
  instruction: {
3325
3325
  title: s,
3326
- description: c ? void 0 : "Always ensure face is in frame"
3326
+ description: l ? void 0 : "Always ensure face is in frame"
3327
3327
  },
3328
3328
  name: "complete-the-circle",
3329
3329
  completed: d,
3330
3330
  failed: g,
3331
- onReset: E,
3331
+ onReset: $,
3332
3332
  onStart: m,
3333
- children: /* @__PURE__ */ h(ut, { onStream: ($) => {
3333
+ children: /* @__PURE__ */ h(ut, { onStream: (b) => {
3334
3334
  try {
3335
- if (!$.current || d)
3335
+ if (!b.current || d)
3336
3336
  return;
3337
- const { videoWidth: A } = $.current;
3338
- U({ ref: $, frameSize: A });
3337
+ const { videoWidth: R } = b.current;
3338
+ W({ ref: b, frameSize: R });
3339
3339
  } catch {
3340
3340
  }
3341
3341
  }, onRecord: r, children: /* @__PURE__ */ h(
3342
- Sc,
3342
+ Sl,
3343
3343
  {
3344
- faceDetected: c,
3344
+ faceDetected: l,
3345
3345
  sectionsCount: Bt,
3346
3346
  visitedSections: o
3347
3347
  }
@@ -3349,15 +3349,15 @@ function zc(e) {
3349
3349
  }
3350
3350
  ) });
3351
3351
  }
3352
- const Vc = "_root_thujo_1", jc = "_sticker_thujo_4", Bc = "_no_thujo_7", qc = "_yes_thujo_12", qt = {
3353
- root: Vc,
3354
- sticker: jc,
3355
- no: Bc,
3356
- yes: qc
3352
+ const Vl = "_root_thujo_1", jl = "_sticker_thujo_4", Bl = "_no_thujo_7", ql = "_yes_thujo_12", qt = {
3353
+ root: Vl,
3354
+ sticker: jl,
3355
+ no: Bl,
3356
+ yes: ql
3357
3357
  };
3358
- function Yc(e) {
3358
+ function Yl(e) {
3359
3359
  const { show: t, stickers: n } = e;
3360
- return /* @__PURE__ */ h(Y, { children: t && /* @__PURE__ */ h("div", { className: qt.root, children: n.map((r) => /* @__PURE__ */ h(
3360
+ return /* @__PURE__ */ h(q, { children: t && /* @__PURE__ */ h("div", { className: qt.root, children: n.map((r) => /* @__PURE__ */ h(
3361
3361
  "div",
3362
3362
  {
3363
3363
  className: `${qt.sticker} ${qt[r]}`,
@@ -3366,32 +3366,32 @@ function Yc(e) {
3366
3366
  `sticker-${r}`
3367
3367
  )) }) });
3368
3368
  }
3369
- const Gc = {
3369
+ const Gl = {
3370
3370
  question: "Are you alive?",
3371
3371
  errorMessage: "You have to be alive to proceed though",
3372
3372
  answer: !0
3373
- }, Kc = "Wrong answer. Try again", $r = "Keep face in camera";
3374
- function Xc(e) {
3375
- const { difficulty: t, questions: n = [Gc], timeout: r } = e, [o, i] = F($r), [s, a] = F(!1), [c, u] = F(!1), { saveStream: d } = fe(), l = w("inactive"), f = w(0), p = w(!1), _ = w(null), y = w(null), m = w(null), v = () => {
3373
+ }, Kl = "Wrong answer. Try again", $r = "Keep face in camera";
3374
+ function Xl(e) {
3375
+ const { difficulty: t, questions: n = [Gl], timeout: r } = e, [o, i] = x($r), [s, a] = x(!1), [l, u] = x(!1), { saveStream: d } = fe(), c = w("inactive"), f = w(0), p = w(!1), _ = w(null), y = w(null), m = w(null), v = () => {
3376
3376
  _.current && clearTimeout(_.current), y.current && clearTimeout(y.current);
3377
3377
  }, {
3378
3378
  reset: g,
3379
- start: E,
3379
+ start: $,
3380
3380
  stop: T,
3381
- timedOut: k
3381
+ timedOut: S
3382
3382
  } = Ot({
3383
3383
  timeout: r,
3384
3384
  onTimeout: v
3385
- }), C = () => {
3386
- i($r), a(!1), u(!1), l.current = "inactive", f.current = 0, p.current = !1, g();
3387
- }, L = (R) => {
3388
- const { keypoints: B } = R, D = B[1], K = B[9], x = D.x - K.x, N = D.y - K.y;
3389
- return 90 - Math.atan2(N, x) * (180 / Math.PI);
3390
- }, U = (R) => {
3391
- l.current = "inactive", i(n[R].question), _.current = setTimeout(() => {
3392
- l.current = "active";
3385
+ }), M = () => {
3386
+ i($r), a(!1), u(!1), c.current = "inactive", f.current = 0, p.current = !1, g();
3387
+ }, A = (I) => {
3388
+ const { keypoints: Y } = I, Q = Y[1], X = Y[9], k = Q.x - X.x, C = Q.y - X.y;
3389
+ return 90 - Math.atan2(C, k) * (180 / Math.PI);
3390
+ }, W = (I) => {
3391
+ c.current = "inactive", i(n[I].question), _.current = setTimeout(() => {
3392
+ c.current = "active";
3393
3393
  }, 2e3);
3394
- }, S = V(() => {
3394
+ }, F = z(() => {
3395
3395
  switch (t) {
3396
3396
  case "easy":
3397
3397
  return 2;
@@ -3400,43 +3400,43 @@ function Xc(e) {
3400
3400
  default:
3401
3401
  return 4;
3402
3402
  }
3403
- }, []), $ = (R) => {
3403
+ }, []), b = (I) => {
3404
3404
  try {
3405
- if (l.current = "inactive", Math.abs(R) < S)
3405
+ if (c.current = "inactive", Math.abs(I) < F)
3406
3406
  throw new Error("Tilt head further to answer");
3407
- const B = R > 0, D = n[f.current].answer;
3408
- if (B === D)
3409
- f.current += 1, f.current === n.length ? (u(!0), T()) : U(f.current);
3407
+ const Y = I > 0, Q = n[f.current].answer;
3408
+ if (Y === Q)
3409
+ f.current += 1, f.current === n.length ? (u(!0), T()) : W(f.current);
3410
3410
  else
3411
3411
  throw new Error(
3412
- n[f.current].errorMessage || Kc
3412
+ n[f.current].errorMessage || Kl
3413
3413
  );
3414
- } catch (B) {
3415
- i(B.message), y.current = setTimeout(() => {
3416
- U(f.current);
3414
+ } catch (Y) {
3415
+ i(Y.message), y.current = setTimeout(() => {
3416
+ W(f.current);
3417
3417
  }, 2e3);
3418
3418
  }
3419
- }, { detectFaces: A } = It({
3420
- onFace: (R) => {
3421
- if (p.current || (a(!0), p.current = !0, U(f.current)), l.current === "inactive")
3419
+ }, { detectFaces: R } = It({
3420
+ onFace: (I) => {
3421
+ if (p.current || (a(!0), p.current = !0, W(f.current)), c.current === "inactive")
3422
3422
  return;
3423
- const B = L(R);
3424
- $(B);
3423
+ const Y = A(I);
3424
+ b(Y);
3425
3425
  },
3426
- onError: (R) => {
3427
- i(R);
3426
+ onError: (I) => {
3427
+ i(I);
3428
3428
  }
3429
- }), G = (R) => {
3429
+ }), j = (I) => {
3430
3430
  try {
3431
- if (!R.current || c)
3431
+ if (!I.current || l)
3432
3432
  return;
3433
- m.current = R.current;
3434
- const { videoWidth: B } = R.current;
3435
- A({ ref: R, frameSize: B });
3433
+ m.current = I.current;
3434
+ const { videoWidth: Y } = I.current;
3435
+ R({ ref: I, frameSize: Y });
3436
3436
  } catch {
3437
3437
  }
3438
3438
  };
3439
- return W(() => v, []), /* @__PURE__ */ h(
3439
+ return H(() => v, []), /* @__PURE__ */ h(
3440
3440
  Dt,
3441
3441
  {
3442
3442
  instruction: {
@@ -3444,15 +3444,15 @@ function Xc(e) {
3444
3444
  description: s ? "" : "Move head left for No and right for Yes"
3445
3445
  },
3446
3446
  name: "yes-or-no",
3447
- failed: k,
3448
- onReset: C,
3449
- onStart: E,
3450
- completed: c,
3451
- children: /* @__PURE__ */ h(ut, { onStream: G, onRecord: d, children: /* @__PURE__ */ h(Yc, { show: s, stickers: ["yes", "no"] }) })
3447
+ failed: S,
3448
+ onReset: M,
3449
+ onStart: $,
3450
+ completed: l,
3451
+ children: /* @__PURE__ */ h(ut, { onStream: j, onRecord: d, children: /* @__PURE__ */ h(Yl, { show: s, stickers: ["yes", "no"] }) })
3452
3452
  }
3453
3453
  );
3454
3454
  }
3455
- function Zc(e = {}) {
3455
+ function Zl(e = {}) {
3456
3456
  const { onChange: t = () => {
3457
3457
  } } = e, n = !!window.DeviceOrientationEvent, r = (o) => {
3458
3458
  t({
@@ -3461,7 +3461,7 @@ function Zc(e = {}) {
3461
3461
  gamma: o.gamma
3462
3462
  });
3463
3463
  };
3464
- return W(() => (window.addEventListener("deviceorientation", r), () => {
3464
+ return H(() => (window.addEventListener("deviceorientation", r), () => {
3465
3465
  window.removeEventListener("deviceorientation", r);
3466
3466
  }), []), {
3467
3467
  canUse: n
@@ -3470,7 +3470,7 @@ function Zc(e = {}) {
3470
3470
  function Ve(e, t) {
3471
3471
  return Math.sqrt(e ** 2 + t ** 2);
3472
3472
  }
3473
- function Jc(e) {
3473
+ function Jl(e) {
3474
3474
  const t = e.slice();
3475
3475
  for (let n = t.length - 1; n > 0; n--) {
3476
3476
  const r = Math.floor(Math.random() * (n + 1));
@@ -3482,7 +3482,7 @@ const Ce = (e, t) => {
3482
3482
  for (const [n, r] of Object.entries(e))
3483
3483
  if (r === t) return n;
3484
3484
  return null;
3485
- }, Qc = (e) => {
3485
+ }, Ql = (e) => {
3486
3486
  const t = Object.keys(fr);
3487
3487
  for (const n of t)
3488
3488
  if (new RegExp(`\\b${n}\\b`, "i").test(e))
@@ -3492,8 +3492,8 @@ const Ce = (e, t) => {
3492
3492
  message: "We detected an error during your test. Please TRY AGAIN"
3493
3493
  };
3494
3494
  };
3495
- function el(e) {
3496
- const { total: t, onMessage: n, onComplete: r, difficulty: o } = e, i = w(null), s = w(!0), a = w(null), c = w(null), u = w(0), d = w(!1), l = V(() => {
3495
+ function ec(e) {
3496
+ const { total: t, onMessage: n, onComplete: r, difficulty: o } = e, i = w(null), s = w(!0), a = w(null), l = w(null), u = w(0), d = w(!1), c = z(() => {
3497
3497
  switch (o) {
3498
3498
  case "easy":
3499
3499
  return 6;
@@ -3512,9 +3512,9 @@ function el(e) {
3512
3512
  d.current = !0, n("Great, hang on..."), setTimeout(() => {
3513
3513
  r();
3514
3514
  }, 500);
3515
- }, { canUse: p } = Zc({
3515
+ }, { canUse: p } = Zl({
3516
3516
  onChange: (m) => {
3517
- c.current = m;
3517
+ l.current = m;
3518
3518
  }
3519
3519
  });
3520
3520
  return { evaluate: (m) => {
@@ -3522,11 +3522,11 @@ function el(e) {
3522
3522
  n("Cannot perform task. Transfer to mobile device to complete");
3523
3523
  return;
3524
3524
  }
3525
- if (!c.current || !c.current.beta) {
3525
+ if (!l.current || !l.current.beta) {
3526
3526
  n("Cannot perform task. Transfer to mobile device to complete");
3527
3527
  return;
3528
3528
  }
3529
- if (c.current.beta < 60 || c.current.beta > 100) {
3529
+ if (l.current.beta < 60 || l.current.beta > 100) {
3530
3530
  n("Keep phone in upright position to continue");
3531
3531
  return;
3532
3532
  }
@@ -3539,21 +3539,21 @@ function el(e) {
3539
3539
  v[2].x - v[1].x,
3540
3540
  v[2].y - v[1].y
3541
3541
  ) / g * 10;
3542
- if (T > l) {
3542
+ if (T > c) {
3543
3543
  if (i.current || !s.current)
3544
3544
  return;
3545
3545
  i.current = T, s.current = !1, a.current = setTimeout(() => {
3546
3546
  i.current = null;
3547
3547
  }, 3e3);
3548
3548
  } else
3549
- i.current && i.current - T > l / 2 && (u.current += 1, i.current = null, a.current && clearTimeout(a.current)), s.current = !0;
3549
+ i.current && i.current - T > c / 2 && (u.current += 1, i.current = null, a.current && clearTimeout(a.current)), s.current = !0;
3550
3550
  f();
3551
3551
  }, reset: () => {
3552
- i.current = null, s.current = !0, a.current = null, c.current = null, u.current = 0, d.current = !1;
3552
+ i.current = null, s.current = !0, a.current = null, l.current = null, u.current = 0, d.current = !1;
3553
3553
  } };
3554
3554
  }
3555
- function tl(e) {
3556
- const { onMessage: t, onComplete: n, difficulty: r } = e, o = w(!1), i = V(() => {
3555
+ function tc(e) {
3556
+ const { onMessage: t, onComplete: n, difficulty: r } = e, o = w(!1), i = z(() => {
3557
3557
  switch (r) {
3558
3558
  case "easy":
3559
3559
  return 80;
@@ -3563,10 +3563,10 @@ function tl(e) {
3563
3563
  return 100;
3564
3564
  }
3565
3565
  }, []);
3566
- return { evaluate: (c) => {
3566
+ return { evaluate: (l) => {
3567
3567
  if (o.current)
3568
3568
  return;
3569
- const { keypoints: u } = c, d = Ve(
3569
+ const { keypoints: u } = l, d = Ve(
3570
3570
  u[6].x - u[8].x,
3571
3571
  u[6].y - u[8].y
3572
3572
  );
@@ -3585,7 +3585,7 @@ function tl(e) {
3585
3585
  } };
3586
3586
  }
3587
3587
  function Yo(e) {
3588
- const { total: t, onMessage: n, onComplete: r, difficulty: o } = e, i = w(!0), s = w(!1), a = w(null), c = w(0), u = V(() => {
3588
+ const { total: t, onMessage: n, onComplete: r, difficulty: o } = e, i = w(!0), s = w(!1), a = w(null), l = w(0), u = z(() => {
3589
3589
  switch (o) {
3590
3590
  case "easy":
3591
3591
  return {
@@ -3605,14 +3605,14 @@ function Yo(e) {
3605
3605
  }
3606
3606
  }, []), d = (y) => {
3607
3607
  i.current && (y >= u.closed || (i.current = !1, a.current = Date.now()));
3608
- }, l = (y) => {
3608
+ }, c = (y) => {
3609
3609
  if (!i.current && !(y < u.open) && (i.current = !0, a.current)) {
3610
3610
  const m = Date.now(), v = a.current;
3611
- (m - v) / 1e3 <= 2 && (c.current += 1);
3611
+ (m - v) / 1e3 <= 2 && (l.current += 1);
3612
3612
  }
3613
3613
  }, f = () => {
3614
- if (c.current < t) {
3615
- const y = t - c.current;
3614
+ if (l.current < t) {
3615
+ const y = t - l.current;
3616
3616
  let m = `Blink right eye ${y} `;
3617
3617
  y < t && (m += "more "), m += y > 1 ? "times" : "time", n(m);
3618
3618
  return;
@@ -3627,19 +3627,19 @@ function Yo(e) {
3627
3627
  const { keypoints: m } = y, v = Ve(
3628
3628
  m[6].x - m[8].x,
3629
3629
  m[6].y - m[8].y
3630
- ), E = Ve(
3630
+ ), $ = Ve(
3631
3631
  m[145].x - m[159].x,
3632
3632
  m[145].y - m[159].y
3633
3633
  ) / v * 100;
3634
- d(E), l(E), f();
3634
+ d($), c($), f();
3635
3635
  }, reset: () => {
3636
- i.current = !0, s.current = !1, a.current = null, c.current = 0;
3636
+ i.current = !0, s.current = !1, a.current = null, l.current = 0;
3637
3637
  } };
3638
3638
  }
3639
3639
  var Go = /* @__PURE__ */ ((e) => (e.open_mouth = "open_mouth", e.blink = "blink", e))(Go || {});
3640
- const Tr = Jc(Object.keys(Go)), kr = "Keep face in camera";
3641
- function nl(e) {
3642
- const { difficulty: t, maxBlinks: n = 3, maxNods: r = 3, timeout: o } = e, i = w(0), [s, a] = F(kr), [c, u] = F(!1), [d, l] = F(null), f = w(!1), { saveStream: p } = fe(), {
3640
+ const Tr = Jl(Object.keys(Go)), kr = "Keep face in camera";
3641
+ function nc(e) {
3642
+ const { difficulty: t, maxBlinks: n = 3, maxNods: r = 3, timeout: o } = e, i = w(0), [s, a] = x(kr), [l, u] = x(!1), [d, c] = x(null), f = w(!1), { saveStream: p } = fe(), {
3643
3643
  reset: _,
3644
3644
  start: y,
3645
3645
  stop: m,
@@ -3650,45 +3650,45 @@ function nl(e) {
3650
3650
  return;
3651
3651
  }
3652
3652
  i.current += 1;
3653
- }, E = el({
3653
+ }, $ = ec({
3654
3654
  total: Math.floor(Math.random() * r + 1),
3655
3655
  difficulty: t,
3656
- onMessage: ($) => a($),
3656
+ onMessage: (b) => a(b),
3657
3657
  onComplete: g
3658
- }), T = tl({
3658
+ }), T = tc({
3659
3659
  difficulty: t,
3660
- onMessage: ($) => a($),
3660
+ onMessage: (b) => a(b),
3661
3661
  onComplete: g
3662
- }), k = Yo({
3662
+ }), S = Yo({
3663
3663
  total: Math.floor(Math.random() * n + 1),
3664
3664
  difficulty: t,
3665
- onMessage: ($) => a($),
3665
+ onMessage: (b) => a(b),
3666
3666
  onComplete: g
3667
- }), { detectFaces: C } = It({
3668
- onFace: ($) => {
3667
+ }), { detectFaces: M } = It({
3668
+ onFace: (b) => {
3669
3669
  switch (f.current || (f.current = !0), Tr[i.current]) {
3670
3670
  case "open_mouth":
3671
- T.evaluate($);
3671
+ T.evaluate(b);
3672
3672
  break;
3673
3673
  case "blink":
3674
- k.evaluate($);
3674
+ S.evaluate(b);
3675
3675
  break;
3676
3676
  }
3677
3677
  },
3678
- onError: ($) => {
3679
- a($);
3678
+ onError: (b) => {
3679
+ a(b);
3680
3680
  }
3681
- }), L = () => {
3682
- i.current = 0, a(kr), u(!1), f.current = !1, k.reset(), E.reset(), T.reset(), _();
3683
- }, U = async ($) => {
3681
+ }), A = () => {
3682
+ i.current = 0, a(kr), u(!1), f.current = !1, S.reset(), $.reset(), T.reset(), _();
3683
+ }, W = async (b) => {
3684
3684
  try {
3685
- if (!$.current || c)
3685
+ if (!b.current || l)
3686
3686
  return;
3687
- const { videoWidth: A } = $.current;
3688
- await C({ ref: $, frameSize: A, throttleInterval: 500 });
3687
+ const { videoWidth: R } = b.current;
3688
+ await M({ ref: b, frameSize: R, throttleInterval: 500 });
3689
3689
  } catch {
3690
3690
  }
3691
- }, S = async () => {
3691
+ }, F = async () => {
3692
3692
  };
3693
3693
  return /* @__PURE__ */ h(
3694
3694
  Dt,
@@ -3699,18 +3699,18 @@ function nl(e) {
3699
3699
  },
3700
3700
  name: "motions",
3701
3701
  failed: v,
3702
- onReset: L,
3703
- completed: c,
3702
+ onReset: A,
3703
+ completed: l,
3704
3704
  onStart: async () => {
3705
- await S(), y();
3705
+ await F(), y();
3706
3706
  },
3707
- children: d ? /* @__PURE__ */ h(Y, {}) : /* @__PURE__ */ h(ut, { onStream: U, onRecord: p })
3707
+ children: d ? /* @__PURE__ */ h(q, {}) : /* @__PURE__ */ h(ut, { onStream: W, onRecord: p })
3708
3708
  }
3709
3709
  );
3710
3710
  }
3711
3711
  const Sr = "Keep face in camera";
3712
- function rl(e) {
3713
- const { difficulty: t, maxBlinks: n = 3, timeout: r } = e, [o, i] = F(Sr), [s, a] = F(!1), [c, u] = F(null), d = w(!1), { saveStream: l } = fe(), {
3712
+ function rc(e) {
3713
+ const { difficulty: t, maxBlinks: n = 3, timeout: r } = e, [o, i] = x(Sr), [s, a] = x(!1), [l, u] = x(null), d = w(!1), { saveStream: c } = fe(), {
3714
3714
  reset: f,
3715
3715
  start: p,
3716
3716
  stop: _,
@@ -3720,26 +3720,26 @@ function rl(e) {
3720
3720
  }, v = Yo({
3721
3721
  total: Math.floor(Math.random() * n + 1),
3722
3722
  difficulty: t,
3723
- onMessage: (C) => i(C),
3723
+ onMessage: (M) => i(M),
3724
3724
  onComplete: m
3725
3725
  }), { detectFaces: g } = It({
3726
- onFace: (C) => {
3727
- d.current || (d.current = !0), v.evaluate(C);
3726
+ onFace: (M) => {
3727
+ d.current || (d.current = !0), v.evaluate(M);
3728
3728
  },
3729
- onError: (C) => {
3730
- i(C);
3729
+ onError: (M) => {
3730
+ i(M);
3731
3731
  }
3732
- }), E = () => {
3732
+ }), $ = () => {
3733
3733
  i(Sr), a(!1), d.current = !1, v.reset(), f();
3734
- }, T = async (C) => {
3734
+ }, T = async (M) => {
3735
3735
  try {
3736
- if (!C.current || s)
3736
+ if (!M.current || s)
3737
3737
  return;
3738
- const { videoWidth: L } = C.current;
3739
- await g({ ref: C, frameSize: L });
3738
+ const { videoWidth: A } = M.current;
3739
+ await g({ ref: M, frameSize: A });
3740
3740
  } catch {
3741
3741
  }
3742
- }, k = async () => {
3742
+ }, S = async () => {
3743
3743
  };
3744
3744
  return /* @__PURE__ */ h(
3745
3745
  Dt,
@@ -3750,12 +3750,12 @@ function rl(e) {
3750
3750
  },
3751
3751
  name: "blink",
3752
3752
  failed: y,
3753
- onReset: E,
3753
+ onReset: $,
3754
3754
  completed: s,
3755
3755
  onStart: async () => {
3756
- await k(), p();
3756
+ await S(), p();
3757
3757
  },
3758
- children: c ? /* @__PURE__ */ h(Y, {}) : /* @__PURE__ */ h(ut, { onStream: T, onRecord: l })
3758
+ children: l ? /* @__PURE__ */ h(q, {}) : /* @__PURE__ */ h(ut, { onStream: T, onRecord: c })
3759
3759
  }
3760
3760
  );
3761
3761
  }
@@ -3767,28 +3767,28 @@ const Yt = {
3767
3767
  if (e.length !== 6) return 0;
3768
3768
  const t = mt(e[1], e[5]), n = mt(e[2], e[4]), r = mt(e[0], e[3]);
3769
3769
  return (t + n) / (2 * r);
3770
- }, ol = (e) => {
3770
+ }, oc = (e) => {
3771
3771
  if (e.length < 12) return 0;
3772
3772
  const t = e[9], n = e[3];
3773
3773
  return mt(t, n);
3774
- }, il = (e, t, n, r) => {
3775
- var l, f, p;
3774
+ }, ic = (e, t, n, r) => {
3775
+ var c, f, p;
3776
3776
  let o = !0, i = !0;
3777
3777
  if (!r) {
3778
3778
  const m = Yt.LEFT_EYE.map(
3779
- (L) => e[L]
3779
+ (A) => e[A]
3780
3780
  ), v = Yt.RIGHT_EYE.map(
3781
- (L) => e[L]
3782
- ), g = Yt.MOUTH.map((L) => e[L]), E = Cr(m), T = Cr(v), k = ol(g);
3783
- o = (E + T) / 2 > 1, i = k < 73.24, o || t("Please look at the camera!"), i || t("Please close your mouth!");
3781
+ (A) => e[A]
3782
+ ), g = Yt.MOUTH.map((A) => e[A]), $ = Cr(m), T = Cr(v), S = oc(g);
3783
+ o = ($ + T) / 2 > 1, i = S < 73.24, o || t("Please look at the camera!"), i || t("Please close your mouth!");
3784
3784
  }
3785
- const s = 0.5, a = 0.12, c = ((l = r == null ? void 0 : r.find((_) => _.categoryName === "eyeBlinkLeft")) == null ? void 0 : l.score) ?? 0, u = ((f = r == null ? void 0 : r.find((_) => _.categoryName === "eyeBlinkRight")) == null ? void 0 : f.score) ?? 0, d = ((p = r == null ? void 0 : r.find((_) => _.categoryName === "jawOpen")) == null ? void 0 : p.score) ?? 0;
3786
- return o = c < s && u < s, o || t("Please look at the camera!"), i = d < a, i || t("Please close your mouth!"), {
3785
+ const s = 0.5, a = 0.12, l = ((c = r == null ? void 0 : r.find((_) => _.categoryName === "eyeBlinkLeft")) == null ? void 0 : c.score) ?? 0, u = ((f = r == null ? void 0 : r.find((_) => _.categoryName === "eyeBlinkRight")) == null ? void 0 : f.score) ?? 0, d = ((p = r == null ? void 0 : r.find((_) => _.categoryName === "jawOpen")) == null ? void 0 : p.score) ?? 0;
3786
+ return o = l < s && u < s, o || t("Please look at the camera!"), i = d < a, i || t("Please close your mouth!"), {
3787
3787
  eyesOpen: o,
3788
3788
  mouthClosed: i
3789
3789
  };
3790
3790
  };
3791
- function sl(e = {}) {
3791
+ function sc(e = {}) {
3792
3792
  const {
3793
3793
  validations: t = ["zoom", "in-frame"],
3794
3794
  frameSize: n,
@@ -3799,56 +3799,56 @@ function sl(e = {}) {
3799
3799
  onMessage: i = () => {
3800
3800
  },
3801
3801
  livenessTimeout: s
3802
- } = e, { faceDetector: a, savePhoto: c } = fe(), { checkFacialFeatures: u, checkZoomLevel: d, checkInFrame: l } = Bo(), f = w(null), p = w(null), _ = w(!1), y = w(null), m = w(!1), v = w([]), g = z(() => {
3802
+ } = e, { faceDetector: a, savePhoto: l } = fe(), { checkFacialFeatures: u, checkZoomLevel: d, checkInFrame: c } = Bo(), f = w(null), p = w(null), _ = w(!1), y = w(null), m = w(!1), v = w([]), g = U(() => {
3803
3803
  p.current && clearTimeout(p.current), y.current && clearTimeout(y.current), v.current.forEach(clearTimeout), m.current = !1, _.current = !0;
3804
- }, []), E = w(null), T = w(null), k = w([]), C = 10, L = 7.5, U = 2, S = w({
3804
+ }, []), $ = w(null), T = w(null), S = w([]), M = 10, A = 7.5, W = 2, F = w({
3805
3805
  sharpness: 0,
3806
3806
  data: null
3807
- }), $ = (x, N) => {
3808
- const O = x.getContext("2d");
3809
- if (!O || N.width === 0 || N.height === 0 || !O || N.width === 0 || N.height === 0)
3807
+ }), b = (k, C) => {
3808
+ const N = k.getContext("2d");
3809
+ if (!N || C.width === 0 || C.height === 0 || !N || C.width === 0 || C.height === 0)
3810
3810
  return !1;
3811
- const M = O.getImageData(
3812
- N.xMin,
3813
- N.yMin,
3814
- N.width,
3815
- N.height
3816
- ), { data: b } = M;
3817
- let I = 0, j = 0;
3818
- for (let Q = 0; Q < b.length; Q += 4)
3819
- 0.299 * b[Q] + 0.587 * b[Q + 1] + 0.114 * b[Q + 2] > 250 && j++;
3820
- const J = b.length / 4;
3821
- return I = j / J, I > 0.01;
3822
- }, A = (x, N, O, M) => {
3823
- const b = N.current, I = b == null ? void 0 : b.parentElement;
3824
- if (!(!b || !I))
3825
- for (const j of M)
3826
- switch (j) {
3811
+ const P = N.getImageData(
3812
+ C.xMin,
3813
+ C.yMin,
3814
+ C.width,
3815
+ C.height
3816
+ ), { data: E } = P;
3817
+ let D = 0, V = 0;
3818
+ for (let J = 0; J < E.length; J += 4)
3819
+ 0.299 * E[J] + 0.587 * E[J + 1] + 0.114 * E[J + 2] > 250 && V++;
3820
+ const Z = E.length / 4;
3821
+ return D = V / Z, D > 0.01;
3822
+ }, R = (k, C, N, P) => {
3823
+ const E = C.current, D = E == null ? void 0 : E.parentElement;
3824
+ if (!(!E || !D))
3825
+ for (const V of P)
3826
+ switch (V) {
3827
3827
  case "zoom":
3828
- d(x, Math.min(I.clientHeight, I.clientWidth));
3828
+ d(k, Math.min(D.clientHeight, D.clientWidth));
3829
3829
  break;
3830
3830
  case "features":
3831
3831
  u(
3832
- x,
3833
- Math.min(I.clientHeight, I.clientWidth)
3832
+ k,
3833
+ Math.min(D.clientHeight, D.clientWidth)
3834
3834
  );
3835
3835
  break;
3836
3836
  case "in-frame":
3837
- let J = O;
3838
- J || (J = Math.min(I.clientHeight, I.clientWidth) * 0.7);
3839
- const Q = J + 200;
3840
- l(x, {
3841
- x: (I.clientWidth - Q) / 2,
3842
- y: (I.clientHeight - Q) / 2,
3843
- width: Q,
3844
- height: Q,
3845
- offsetX: (b.videoWidth - I.clientWidth) / 2,
3846
- offsetY: (b.videoHeight - I.clientHeight) / 2
3837
+ let Z = N;
3838
+ Z || (Z = Math.min(D.clientHeight, D.clientWidth) * 0.7);
3839
+ const J = Z + 200;
3840
+ c(k, {
3841
+ x: (D.clientWidth - J) / 2,
3842
+ y: (D.clientHeight - J) / 2,
3843
+ width: J,
3844
+ height: J,
3845
+ offsetX: (E.videoWidth - D.clientWidth) / 2,
3846
+ offsetY: (E.videoHeight - D.clientHeight) / 2
3847
3847
  });
3848
3848
  break;
3849
3849
  }
3850
- }, G = (x) => {
3851
- const N = [
3850
+ }, j = (k) => {
3851
+ const C = [
3852
3852
  33,
3853
3853
  // Left eye inner corner
3854
3854
  133,
@@ -3861,128 +3861,128 @@ function sl(e = {}) {
3861
3861
  // Right eye outer corner
3862
3862
  386
3863
3863
  // Right eye pupil area
3864
- ], O = 0.5;
3865
- for (const M of N) {
3866
- const b = x[M];
3867
- if (!b || b.score && b.score < O)
3864
+ ], N = 0.5;
3865
+ for (const P of C) {
3866
+ const E = k[P];
3867
+ if (!E || E.score && E.score < N)
3868
3868
  return !1;
3869
3869
  }
3870
3870
  return !0;
3871
- }, R = (x, N) => {
3872
- const O = x.getContext("2d");
3873
- if (!O || N.width === 0 || N.height === 0)
3871
+ }, I = (k, C) => {
3872
+ const N = k.getContext("2d");
3873
+ if (!N || C.width === 0 || C.height === 0)
3874
3874
  return !1;
3875
- const M = O.getImageData(
3876
- N.xMin,
3877
- N.yMin,
3878
- N.width,
3879
- N.height
3880
- ), { data: b } = M;
3881
- let I = 0;
3882
- for (let J = 0; J < b.length; J += 4) {
3883
- const Q = b[J], ee = b[J + 1], He = b[J + 2], dt = 0.299 * Q + 0.587 * ee + 0.114 * He;
3884
- I += dt;
3875
+ const P = N.getImageData(
3876
+ C.xMin,
3877
+ C.yMin,
3878
+ C.width,
3879
+ C.height
3880
+ ), { data: E } = P;
3881
+ let D = 0;
3882
+ for (let Z = 0; Z < E.length; Z += 4) {
3883
+ const J = E[Z], ee = E[Z + 1], He = E[Z + 2], dt = 0.299 * J + 0.587 * ee + 0.114 * He;
3884
+ D += dt;
3885
3885
  }
3886
- return I / (b.length / 4) < 60;
3887
- }, B = (x) => {
3888
- const N = {
3889
- x: x.box.xMin + (x.box.width ?? 0) / 2,
3890
- y: x.box.yMin + (x.box.height ?? 0) / 2
3886
+ return D / (E.length / 4) < 60;
3887
+ }, Y = (k) => {
3888
+ const C = {
3889
+ x: k.box.xMin + (k.box.width ?? 0) / 2,
3890
+ y: k.box.yMin + (k.box.height ?? 0) / 2
3891
3891
  };
3892
- if (k.current.push(N), k.current.length > C && k.current.shift(), k.current.length < C) return !1;
3893
- let O = 0, M = 0, b = 0;
3894
- for (let ee = 1; ee < k.current.length; ee++) {
3895
- const He = k.current[ee - 1], dt = k.current[ee], qe = dt.x - He.x, In = dt.y - He.y, Dn = Math.sqrt(qe * qe + In * In);
3896
- Dn >= 2 && (O += Dn, ee > 1 && Math.sign(qe) !== Math.sign(b) && Math.abs(qe) > 3 && M++, b = qe);
3892
+ if (S.current.push(C), S.current.length > M && S.current.shift(), S.current.length < M) return !1;
3893
+ let N = 0, P = 0, E = 0;
3894
+ for (let ee = 1; ee < S.current.length; ee++) {
3895
+ const He = S.current[ee - 1], dt = S.current[ee], qe = dt.x - He.x, In = dt.y - He.y, Dn = Math.sqrt(qe * qe + In * In);
3896
+ Dn >= 2 && (N += Dn, ee > 1 && Math.sign(qe) !== Math.sign(E) && Math.abs(qe) > 3 && P++, E = qe);
3897
3897
  }
3898
- const j = O / (C - 1) > L, J = M >= U, Q = j || J;
3899
- return Q && i("🚨 Head shake detected!"), Q;
3900
- }, D = (x, N, O, M) => {
3898
+ const V = N / (M - 1) > A, Z = P >= W, J = V || Z;
3899
+ return J && i("🚨 Head shake detected!"), J;
3900
+ }, Q = (k, C, N, P) => {
3901
3901
  try {
3902
- if (x.length === 0 || x.length > 1) {
3902
+ if (k.length === 0 || k.length > 1) {
3903
3903
  p.current && (clearTimeout(p.current), p.current = null), i(
3904
- x.length > 1 ? "Please ensure only one face is visible" : "Detecting face..."
3904
+ k.length > 1 ? "Please ensure only one face is visible" : "Detecting face..."
3905
3905
  );
3906
3906
  return;
3907
3907
  }
3908
- const b = x[0];
3909
- let I = "", j = !0;
3908
+ const E = k[0];
3909
+ let D = "", V = !0;
3910
3910
  try {
3911
- A(b, f, n, t);
3911
+ R(E, f, n, t);
3912
3912
  } catch (ee) {
3913
- I = ee.message, j = !1;
3913
+ D = ee.message, V = !1;
3914
3914
  }
3915
- B(b) && (I = "Please hold your head steady", j = !1), M || (I = "Center your face in the frame", j = !1), G(b.keypoints) || (I = "Please ensure your eyes are clearly visible. Remove glasses if necessary.", j = !1);
3916
- const { eyesOpen: J, mouthClosed: Q } = il(
3917
- b.keypoints,
3915
+ Y(E) && (D = "Please hold your head steady", V = !1), P || (D = "Center your face in the frame", V = !1), j(E.keypoints) || (D = "Please ensure your eyes are clearly visible. Remove glasses if necessary.", V = !1);
3916
+ const { eyesOpen: Z, mouthClosed: J } = ic(
3917
+ E.keypoints,
3918
3918
  // onError,
3919
3919
  i,
3920
3920
  !1,
3921
- O
3921
+ N
3922
3922
  );
3923
- if (J ? Q || (I = "Please close your mouth", j = !1) : (p.current && (clearTimeout(p.current), p.current = null), j = !1), !j) {
3924
- p.current && (clearTimeout(p.current), p.current = null, v.current.forEach(clearTimeout)), i(I), r(b, !1, O, !1);
3923
+ if (Z ? J || (D = "Please close your mouth", V = !1) : (p.current && (clearTimeout(p.current), p.current = null), V = !1), !V) {
3924
+ p.current && (clearTimeout(p.current), p.current = null, v.current.forEach(clearTimeout)), i(D), r(E, !1, N, !1);
3925
3925
  return;
3926
3926
  }
3927
3927
  if (!p.current) {
3928
- if (R(E.current, b.box)) {
3928
+ if (I($.current, E.box)) {
3929
3929
  i("Too dark – move to a well-lit area");
3930
3930
  return;
3931
3931
  }
3932
- if ($(E.current, b.box)) {
3932
+ if (b($.current, E.box)) {
3933
3933
  i("Too much glare. Please avoid direct light on your face.");
3934
3934
  return;
3935
3935
  }
3936
- i("Hold still..."), S.current = { sharpness: 0, data: null }, v.current.forEach(clearTimeout);
3936
+ i("Hold still..."), F.current = { sharpness: 0, data: null }, v.current.forEach(clearTimeout);
3937
3937
  const ee = setTimeout(() => i("Almost there..."), 400), He = setTimeout(
3938
3938
  () => i("Detecting liveness..."),
3939
3939
  700
3940
3940
  );
3941
3941
  v.current = [ee, He], p.current = setTimeout(() => {
3942
- S.current.data ? (c(S.current.data), r(b, !0, O, !0)) : o("Could not capture a clear photo. Please try again.");
3942
+ F.current.data ? (l(F.current.data), r(E, !0, N, !0)) : o("Could not capture a clear photo. Please try again.");
3943
3943
  }, 1e3);
3944
3944
  }
3945
3945
  if (p.current) {
3946
- const ee = ja(N);
3947
- ee > S.current.sharpness && (S.current = {
3946
+ const ee = ja(C);
3947
+ ee > F.current.sharpness && (F.current = {
3948
3948
  sharpness: ee,
3949
- data: N
3949
+ data: C
3950
3950
  });
3951
3951
  }
3952
- } catch (b) {
3953
- o(b.message), x.length > 0 && r(x[0], !1, O, !1);
3952
+ } catch (E) {
3953
+ o(E.message), k.length > 0 && r(k[0], !1, N, !1);
3954
3954
  }
3955
3955
  };
3956
- return { detectFaces: async (x) => {
3956
+ return { detectFaces: async (k) => {
3957
3957
  if (!a) return;
3958
- f.current = x.ref.current;
3959
- const N = f.current;
3960
- if (!N || N.videoWidth === 0) return;
3961
- E.current || (E.current = document.createElement("canvas"), T.current = E.current.getContext("2d", {
3958
+ f.current = k.ref.current;
3959
+ const C = f.current;
3960
+ if (!C || C.videoWidth === 0) return;
3961
+ $.current || ($.current = document.createElement("canvas"), T.current = $.current.getContext("2d", {
3962
3962
  willReadFrequently: !0
3963
3963
  }));
3964
- const O = E.current, M = T.current;
3965
- if (!O || !M) return;
3966
- O.width = N.videoWidth, O.height = N.videoHeight, M.drawImage(N, 0, 0, O.width, O.height);
3967
- const b = M.getImageData(0, 0, O.width, O.height);
3968
- !m.current && N.readyState >= 2 && !_.current && (m.current = !0, y.current = setTimeout(() => {
3964
+ const N = $.current, P = T.current;
3965
+ if (!N || !P) return;
3966
+ N.width = C.videoWidth, N.height = C.videoHeight, P.drawImage(C, 0, 0, N.width, N.height);
3967
+ const E = P.getImageData(0, 0, N.width, N.height);
3968
+ !m.current && C.readyState >= 2 && !_.current && (m.current = !0, y.current = setTimeout(() => {
3969
3969
  o("Liveness check TIMED OUT. Please try again."), g();
3970
3970
  }, s));
3971
- const { faces: I, blendShapes: j, inBox: J } = await $e.detectFaces(
3971
+ const { faces: D, blendShapes: V, inBox: Z } = await $e.detectFaces(
3972
3972
  a,
3973
- b
3973
+ E
3974
3974
  );
3975
- D(I, b, j, J);
3975
+ Q(D, E, V, Z);
3976
3976
  }, cleanup: g };
3977
3977
  }
3978
- const al = "_container_1ej18_1", cl = "_progress_1ej18_12", ll = "_completed_1ej18_33", ul = "_marker_1ej18_37", Gt = {
3979
- container: al,
3980
- progress: cl,
3981
- completed: ll,
3982
- marker: ul
3978
+ const ac = "_container_1ej18_1", lc = "_progress_1ej18_12", cc = "_completed_1ej18_33", uc = "_marker_1ej18_37", Gt = {
3979
+ container: ac,
3980
+ progress: lc,
3981
+ completed: cc,
3982
+ marker: uc
3983
3983
  };
3984
- function dl(e) {
3985
- const { faceDetected: t } = e, n = V(() => {
3984
+ function dc(e) {
3985
+ const { faceDetected: t } = e, n = z(() => {
3986
3986
  const r = [Gt.container];
3987
3987
  return t && r.push(Gt.focused), r.join(" ");
3988
3988
  }, [t]);
@@ -3998,7 +3998,7 @@ const Kt = {
3998
3998
  SpoofFace: "We detected a spoofing attempt",
3999
3999
  FaceTrackingFailed: "We could not detect your face",
4000
4000
  ExcessiveFaceBrightnessDetected: "We detected excessive light during the test, please wipe any oil or sweat that might cause a reflection on your face."
4001
- }, fl = {
4001
+ }, fc = {
4002
4002
  None: "Processing...",
4003
4003
  LookAtCamera: "Look at camera.",
4004
4004
  FaceNotCentered: "Center your face in the camera.",
@@ -4018,7 +4018,7 @@ const Kt = {
4018
4018
  Tip3: "You may be asked to turn your nose towards the green color.",
4019
4019
  Continue: "Continue"
4020
4020
  };
4021
- function pl(e) {
4021
+ function pc(e) {
4022
4022
  const {
4023
4023
  onComplete: t = () => {
4024
4024
  },
@@ -4027,67 +4027,67 @@ function pl(e) {
4027
4027
  onError: r = () => {
4028
4028
  }
4029
4029
  // onPictureReady = () => {},
4030
- } = e, { setColorScheme: o, getColorScheme: i } = jo(), s = w(null), a = w(!1), c = () => {
4030
+ } = e, { setColorScheme: o, getColorScheme: i } = jo(), s = w(null), a = w(!1), l = () => {
4031
4031
  s.current && (s.current.callAttemptEnd(), s.current.delete(), s.current = null);
4032
- }, u = z(() => {
4033
- c();
4032
+ }, u = U(() => {
4033
+ l();
4034
4034
  }, []), d = () => {
4035
- s.current && c(), s.current = null, a.current = !1;
4036
- }, l = (m) => {
4037
- var L, U;
4035
+ s.current && l(), s.current = null, a.current = !1;
4036
+ }, c = (m) => {
4037
+ var A, W;
4038
4038
  const v = m.split(".");
4039
4039
  let g = !1;
4040
4040
  s.current.setToken(m);
4041
- let E = "", T = "", k, C = 0;
4041
+ let $ = "", T = "", S, M = 0;
4042
4042
  if (v.length === 3) {
4043
- const S = JSON.parse(atob(v[1]));
4044
- if (S.face) {
4045
- const $ = JSON.parse(S.face), A = /^https:\/\/[^/:]+\.(api\.cognitive\.microsoft|cognitiveservices\.azure)\.com$/;
4046
- if ($.endpoint && (A.test($.endpoint) || $.endpoint === "https://virginia.api.cognitive.microsoft.us")) {
4047
- s.current.setEndpoint($.endpoint);
4048
- const R = JSON.parse(S["allowed-paths"]);
4049
- if (R) {
4050
- const B = (L = R.find(
4051
- (M) => M.path.toLocaleLowerCase().endsWith("/session/start")
4052
- )) == null ? void 0 : L.path;
4053
- s.current.setSessionStartPath(B);
4054
- const D = (U = R.find(
4055
- (M) => M.path.toLocaleLowerCase().endsWith("/session/attempt/end")
4056
- )) == null ? void 0 : U.path;
4057
- s.current.setAttemptEndPath(D);
4058
- const K = R.find(
4059
- (M) => M.path.endsWith("/detectLiveness/singleModal")
4043
+ const F = JSON.parse(atob(v[1]));
4044
+ if (F.face) {
4045
+ const b = JSON.parse(F.face), R = /^https:\/\/[^/:]+\.(api\.cognitive\.microsoft|cognitiveservices\.azure)\.com$/;
4046
+ if (b.endpoint && (R.test(b.endpoint) || b.endpoint === "https://virginia.api.cognitive.microsoft.us")) {
4047
+ s.current.setEndpoint(b.endpoint);
4048
+ const I = JSON.parse(F["allowed-paths"]);
4049
+ if (I) {
4050
+ const Y = (A = I.find(
4051
+ (P) => P.path.toLocaleLowerCase().endsWith("/session/start")
4052
+ )) == null ? void 0 : A.path;
4053
+ s.current.setSessionStartPath(Y);
4054
+ const Q = (W = I.find(
4055
+ (P) => P.path.toLocaleLowerCase().endsWith("/session/attempt/end")
4056
+ )) == null ? void 0 : W.path;
4057
+ s.current.setAttemptEndPath(Q);
4058
+ const X = I.find(
4059
+ (P) => P.path.endsWith("/detectLiveness/singleModal")
4060
4060
  );
4061
- K && ({ path: E, quota: C } = K, s.current.setLivenessPath(E));
4062
- const x = R.find(
4063
- (M) => M.path.endsWith("/detectLivenessWithVerify/singleModal")
4061
+ X && ({ path: $, quota: M } = X, s.current.setLivenessPath($));
4062
+ const k = I.find(
4063
+ (P) => P.path.endsWith("/detectLivenessWithVerify/singleModal")
4064
4064
  );
4065
- x && ({ path: T, quota: C } = x, s.current.setLivenessWithVerifyPath(
4065
+ k && ({ path: T, quota: M } = k, s.current.setLivenessWithVerifyPath(
4066
4066
  T
4067
4067
  ));
4068
- const N = new Set(
4069
- R.map(
4070
- (M) => {
4071
- var b;
4072
- return (b = M.path) == null ? void 0 : b.split("/")[1];
4068
+ const C = new Set(
4069
+ I.map(
4070
+ (P) => {
4071
+ var E;
4072
+ return (E = P.path) == null ? void 0 : E.split("/")[1];
4073
4073
  }
4074
4074
  )
4075
4075
  );
4076
- if (N.size === 1 && (K || x)) {
4077
- const M = N.values().next().value;
4078
- s.current.setApiVersion(M), g = !0, k = $.clientClaims.livenessOperationMode;
4076
+ if (C.size === 1 && (X || k)) {
4077
+ const P = C.values().next().value;
4078
+ s.current.setApiVersion(P), g = !0, S = b.clientClaims.livenessOperationMode;
4079
4079
  }
4080
4080
  }
4081
4081
  }
4082
4082
  }
4083
- s.current.setOperationQuota(C), s.current.setOperationMode(
4084
- window.Module.LivenessOperationMode[k]
4085
- ), S.sid && s.current.setSid(S.sid), S["azure-resource-id"] && s.current.setResourceId(S["azure-resource-id"]);
4083
+ s.current.setOperationQuota(M), s.current.setOperationMode(
4084
+ window.Module.LivenessOperationMode[S]
4085
+ ), F.sid && s.current.setSid(F.sid), F["azure-resource-id"] && s.current.setResourceId(F["azure-resource-id"]);
4086
4086
  }
4087
4087
  if (g)
4088
4088
  s.current.initialize();
4089
4089
  else {
4090
- const S = {
4090
+ const F = {
4091
4091
  livenessError: Ce(
4092
4092
  window.Module.LivenessFailureReason,
4093
4093
  window.Module.LivenessFailureReason.InvalidToken
@@ -4098,17 +4098,17 @@ function pl(e) {
4098
4098
  )
4099
4099
  };
4100
4100
  r(
4101
- S.livenessError ? Kt[S.livenessError] || S.livenessError : "Something went wrong"
4101
+ F.livenessError ? Kt[F.livenessError] || F.livenessError : "Something went wrong"
4102
4102
  ), u();
4103
4103
  }
4104
4104
  }, f = (m) => {
4105
4105
  try {
4106
- s.current = new window.Module.FaceRecoEngineAdapter(), l(m);
4106
+ s.current = new window.Module.FaceRecoEngineAdapter(), c(m);
4107
4107
  } catch (v) {
4108
- r(`Could not start liveness test: ${v.message}`), c();
4108
+ r(`Could not start liveness test: ${v.message}`), l();
4109
4109
  }
4110
4110
  }, p = (m) => {
4111
- const { isActionValid: v, isFeedbackValid: g, feedback: E } = m;
4111
+ const { isActionValid: v, isFeedbackValid: g, feedback: $ } = m;
4112
4112
  if (v)
4113
4113
  switch (m.action) {
4114
4114
  case window.Module.ActionRequiredFromApplication.BrightenDisplay:
@@ -4123,26 +4123,26 @@ function pl(e) {
4123
4123
  if (!a.current && g) {
4124
4124
  const T = Ce(
4125
4125
  window.Module.FeedbackForFace,
4126
- E
4126
+ $
4127
4127
  );
4128
4128
  n(
4129
- T && (fl[T] || "")
4129
+ T && (fc[T] || "")
4130
4130
  );
4131
4131
  }
4132
- if (E === window.Module.FeedbackForFace.AttentionNotNeeded) {
4132
+ if ($ === window.Module.FeedbackForFace.AttentionNotNeeded) {
4133
4133
  a.current = !0;
4134
4134
  const T = i();
4135
4135
  o(T);
4136
4136
  }
4137
4137
  }, _ = (m) => {
4138
- var k, C;
4139
- const { livenessResult: v, recognitionResult: g } = m, E = ((k = v.failureReason) == null ? void 0 : k.value) !== 0 || ((C = g.failureReason) == null ? void 0 : C.value) !== 0, T = /* @__PURE__ */ new Set([
4138
+ var S, M;
4139
+ const { livenessResult: v, recognitionResult: g } = m, $ = ((S = v.failureReason) == null ? void 0 : S.value) !== 0 || ((M = g.failureReason) == null ? void 0 : M.value) !== 0, T = /* @__PURE__ */ new Set([
4140
4140
  "EnvironmentNotSupported",
4141
4141
  "ExcessiveFaceBrightnessDetected",
4142
4142
  "FaceEyeRegionNotVisible"
4143
4143
  ]);
4144
- if (E) {
4145
- const L = {
4144
+ if ($) {
4145
+ const A = {
4146
4146
  livenessError: Ce(
4147
4147
  window.Module.LivenessFailureReason,
4148
4148
  v.failureReason
@@ -4152,11 +4152,11 @@ function pl(e) {
4152
4152
  g.failureReason
4153
4153
  )
4154
4154
  };
4155
- L.livenessError && T.has(L.livenessError) ? t() : r(
4156
- L.livenessError ? Kt[L.livenessError] || L.livenessError : "Something went wrong"
4155
+ A.livenessError && T.has(A.livenessError) ? t() : r(
4156
+ A.livenessError ? Kt[A.livenessError] || A.livenessError : "Something went wrong"
4157
4157
  );
4158
4158
  } else {
4159
- const L = {
4159
+ const A = {
4160
4160
  livenessStatus: Ce(
4161
4161
  window.Module.LivenessStatus,
4162
4162
  v.status
@@ -4171,7 +4171,7 @@ function pl(e) {
4171
4171
  resultId: v.resultId,
4172
4172
  digest: v.digest
4173
4173
  };
4174
- L.livenessStatus === "RealFace" ? t() : L.livenessStatus === "SpoofFace" ? r(Kt[L.livenessStatus]) : r("Could not validate request");
4174
+ A.livenessStatus === "RealFace" ? t() : A.livenessStatus === "SpoofFace" ? r(Kt[A.livenessStatus]) : r("Could not validate request");
4175
4175
  }
4176
4176
  u();
4177
4177
  };
@@ -4183,20 +4183,20 @@ function pl(e) {
4183
4183
  if (a.current)
4184
4184
  v = s.current.generatePayloadAndResult();
4185
4185
  else {
4186
- const { videoWidth: g, videoHeight: E } = m, T = Rn(m, g, E, void 0, {
4186
+ const { videoWidth: g, videoHeight: $ } = m, T = Rn(m, g, $, void 0, {
4187
4187
  willReadFrequently: !0
4188
- }), k = window.Module._malloc(T.data.byteLength);
4188
+ }), S = window.Module._malloc(T.data.byteLength);
4189
4189
  try {
4190
- window.Module.HEAPU8.set(T.data, k);
4191
- const C = s.current.processFrame(
4190
+ window.Module.HEAPU8.set(T.data, S);
4191
+ const M = s.current.processFrame(
4192
4192
  g,
4193
- E,
4193
+ $,
4194
4194
  T.data.byteLength,
4195
- k
4195
+ S
4196
4196
  );
4197
- C.terminate ? v = !0 : C.isValid && p(C);
4197
+ M.terminate ? v = !0 : M.isValid && p(M);
4198
4198
  } finally {
4199
- window.Module._free(k);
4199
+ window.Module._free(S);
4200
4200
  }
4201
4201
  }
4202
4202
  v && _(s.current.getFaceAnalyzerResult());
@@ -4206,7 +4206,7 @@ function pl(e) {
4206
4206
  };
4207
4207
  }
4208
4208
  const Fr = "Detecting face...";
4209
- function hl({
4209
+ function hc({
4210
4210
  onImageCaptured: e,
4211
4211
  fetchAzureSessionToken: t,
4212
4212
  loadAzureSdk: n,
@@ -4214,90 +4214,90 @@ function hl({
4214
4214
  onReset: o,
4215
4215
  onFailure: i
4216
4216
  }) {
4217
- const [s, a] = F(Fr), [c, u] = F(!1), d = w("findingFace"), l = w(null), f = w(), p = w(!1), [_, y] = F(0), m = w(!1), [v, g] = F(!1);
4218
- W(() => {
4217
+ const [s, a] = x(Fr), [l, u] = x(!1), d = w("findingFace"), c = w(null), f = w(), p = w(!1), [_, y] = x(0), m = w(!1), [v, g] = x(!1);
4218
+ H(() => {
4219
4219
  y(Math.min(window.innerWidth, window.innerHeight) * 0.6);
4220
- }, []), W(() => {
4220
+ }, []), H(() => {
4221
4221
  n(), t();
4222
4222
  }, []);
4223
- const E = pl({
4224
- onMessage: (S) => {
4225
- d.current === "analyzingLiveness" && a(S);
4223
+ const $ = pc({
4224
+ onMessage: (F) => {
4225
+ d.current === "analyzingLiveness" && a(F);
4226
4226
  },
4227
4227
  onComplete: () => {
4228
4228
  d.current = "done", e(!0);
4229
4229
  },
4230
- onError: (S) => {
4231
- const $ = Qc(S);
4232
- a($.message), d.current = "done", u(!0), r && r(S), i({
4230
+ onError: (F) => {
4231
+ const b = Ql(F);
4232
+ a(b.message), d.current = "done", u(!0), r && r(F), i({
4233
4233
  faceImage: "",
4234
4234
  passed: !1,
4235
4235
  metadata: {},
4236
- error: $
4236
+ error: b
4237
4237
  });
4238
4238
  }
4239
4239
  }), T = () => {
4240
- m.current = !1, a(Fr), d.current = "findingFace", l.current = null, E.reset(), f.current && cancelAnimationFrame(f.current), u(!1), o();
4241
- }, { detectFaces: k, cleanup: C } = sl({
4240
+ m.current = !1, a(Fr), d.current = "findingFace", c.current = null, $.reset(), f.current && cancelAnimationFrame(f.current), u(!1), o();
4241
+ }, { detectFaces: S, cleanup: M } = sc({
4242
4242
  validations: ["zoom", "features"],
4243
4243
  frameSize: _,
4244
4244
  livenessTimeout: 1e4,
4245
- onFace: async (S, $, A) => {
4246
- p.current = $, $ && d.current === "findingFace" && !m.current && A && (m.current = !0, g(!0));
4245
+ onFace: async (F, b, R) => {
4246
+ p.current = b, b && d.current === "findingFace" && !m.current && R && (m.current = !0, g(!0));
4247
4247
  },
4248
4248
  onPhotoSaved: () => {
4249
4249
  },
4250
- onMessage: (S) => {
4251
- d.current === "findingFace" && a(S);
4250
+ onMessage: (F) => {
4251
+ d.current === "findingFace" && a(F);
4252
4252
  },
4253
- onError: (S) => {
4254
- a(S), u(!0), r && r(S);
4253
+ onError: (F) => {
4254
+ a(F), u(!0), r && r(F);
4255
4255
  }
4256
4256
  });
4257
- W(
4257
+ H(
4258
4258
  () => () => {
4259
- C();
4259
+ M();
4260
4260
  },
4261
4261
  []
4262
4262
  );
4263
- const L = () => {
4264
- !l.current || l.current.paused || l.current.ended || (d.current === "findingFace" ? k({ ref: l }) : d.current === "analyzingLiveness" && E.processFrame(l.current), d.current !== "done" && (f.current = requestAnimationFrame(L)));
4263
+ const A = () => {
4264
+ !c.current || c.current.paused || c.current.ended || (d.current === "findingFace" ? S({ ref: c }) : d.current === "analyzingLiveness" && $.processFrame(c.current), d.current !== "done" && (f.current = requestAnimationFrame(A)));
4265
4265
  };
4266
- W(() => {
4266
+ H(() => {
4267
4267
  (async () => {
4268
4268
  if (v) {
4269
- g(!1), C();
4269
+ g(!1), M();
4270
4270
  try {
4271
4271
  await n();
4272
- const $ = await t();
4273
- if ($)
4274
- E.start($), d.current = "analyzingLiveness";
4272
+ const b = await t();
4273
+ if (b)
4274
+ $.start(b), d.current = "analyzingLiveness";
4275
4275
  else
4276
4276
  throw new Error("Session token could not be retrieved.");
4277
- } catch ($) {
4278
- const A = $ instanceof Error ? $.message : "Failed to start liveness check.";
4279
- r && r(A), i({
4277
+ } catch (b) {
4278
+ const R = b instanceof Error ? b.message : "Failed to start liveness check.";
4279
+ r && r(R), i({
4280
4280
  faceImage: "",
4281
4281
  passed: !1,
4282
4282
  metadata: {},
4283
4283
  error: {
4284
4284
  key: "session_token_error",
4285
- message: A
4285
+ message: R
4286
4286
  }
4287
4287
  }), u(!0);
4288
4288
  }
4289
4289
  }
4290
4290
  })();
4291
4291
  }, [v]);
4292
- const U = (S) => {
4293
- S.current && (l.current = S.current, L());
4292
+ const W = (F) => {
4293
+ F.current && (c.current = F.current, A());
4294
4294
  };
4295
- return W(
4295
+ return H(
4296
4296
  () => () => {
4297
4297
  f.current && cancelAnimationFrame(f.current);
4298
4298
  },
4299
4299
  []
4300
- ), /* @__PURE__ */ h("div", { className: "yvlw-h-full yvlw-flex yvlw-flex-col yvlw-items-center yvlw-justify-center", children: c ? /* @__PURE__ */ h("div", { className: `${se.intro}`, children: /* @__PURE__ */ h(
4300
+ ), /* @__PURE__ */ h("div", { className: "yvlw-h-full yvlw-flex yvlw-flex-col yvlw-items-center yvlw-justify-center", children: l ? /* @__PURE__ */ h("div", { className: `${se.intro}`, children: /* @__PURE__ */ h(
4301
4301
  $t,
4302
4302
  {
4303
4303
  Icon: Uo,
@@ -4307,8 +4307,8 @@ function hl({
4307
4307
  actionText: "Try Again"
4308
4308
  }
4309
4309
  ) }) : /* @__PURE__ */ h("div", { className: se.root, children: /* @__PURE__ */ h("div", { className: `${se.container} view`, children: /* @__PURE__ */ h("div", { className: "yvlw-h-full yvlw-flex yvlw-flex-col", children: [
4310
- /* @__PURE__ */ h("div", { children: /* @__PURE__ */ h(ut, { onStream: U, children: /* @__PURE__ */ h(Y, { children: [
4311
- /* @__PURE__ */ h(dl, { faceDetected: p.current }),
4310
+ /* @__PURE__ */ h("div", { children: /* @__PURE__ */ h(ut, { onStream: W, children: /* @__PURE__ */ h(q, { children: [
4311
+ /* @__PURE__ */ h(dc, { faceDetected: p.current }),
4312
4312
  d.current === "analyzingLiveness" && /* @__PURE__ */ h("div", { className: "yvlw-bg-black/20 yvlw-z-5" })
4313
4313
  ] }) }) }),
4314
4314
  /* @__PURE__ */ h("div", { className: "yvlw-border-t dark:yvlw-border-gray-800 yvlw-border-gray-200", children: /* @__PURE__ */ h("div", { className: "yvlw-text-center yvlw-mx-auto yvlw-pt-4 yvlw-pb-6 yvlw-px-4", children: [
@@ -4320,7 +4320,7 @@ function hl({
4320
4320
  ] }) })
4321
4321
  ] }) }) }) });
4322
4322
  }
4323
- const vl = () => {
4323
+ const vc = () => {
4324
4324
  if (window.isAzureSdkLoading)
4325
4325
  return window.azureSdkLoadPromise;
4326
4326
  window.isAzureSdkLoading = !0;
@@ -4350,48 +4350,65 @@ const vl = () => {
4350
4350
  return window.azureSdkLoadPromise = e, e;
4351
4351
  };
4352
4352
  let Xe = null;
4353
- function ml() {
4354
- var B;
4353
+ function mc() {
4354
+ var X;
4355
4355
  const { toggleColorScheme: e, getColorScheme: t, setColorScheme: n } = jo(), {
4356
4356
  user: r,
4357
4357
  tasks: o,
4358
4358
  currentTaskIndex: i,
4359
4359
  completed: s,
4360
4360
  onComplete: a,
4361
- onFailure: c,
4361
+ onFailure: l,
4362
4362
  faceDetector: u,
4363
4363
  presentation: d,
4364
- clearSavedPhoto: l,
4364
+ clearSavedPhoto: c,
4365
4365
  branding: f,
4366
4366
  isMobileAppWebView: p
4367
- } = fe(), [_, y] = F(!1), [m, v] = F(!1), [g, E] = F(null), [T, k] = F(!1), [C, L] = F(!1), [U, S] = F(0);
4368
- W(() => {
4369
- const D = t();
4370
- n(D);
4371
- }, []);
4372
- const { sessionToken: $ } = fe(), A = async () => (!$ && !Xe && (Xe = Promise.reject(
4373
- new Error(
4374
- "sessionToken not provided. Generate a sessionToken on your backend and pass it to the SDK."
4375
- )
4376
- )), $ ?? Xe), G = async () => {
4367
+ } = fe(), [_, y] = x(!1), [m, v] = x(!1), [g, $] = x(null), [T, S] = x(!1), [M, A] = x(!1), [W, F] = x(0), [b, R] = x(null);
4368
+ H(() => {
4369
+ const k = t();
4370
+ n(k);
4371
+ }, []), H(() => {
4372
+ s && !T && b === null && R(5);
4373
+ }, [s, T, b]);
4374
+ const j = U(async () => {
4377
4375
  try {
4378
- y(!0), E(null), await a(), Xe = null, d === "page" && k(!0);
4379
- } catch (D) {
4380
- E(D.message);
4376
+ y(!0), $(null), await a(), Xe = null, d === "page" && S(!0);
4377
+ } catch (k) {
4378
+ $(k.message);
4381
4379
  } finally {
4382
4380
  y(!1);
4383
4381
  }
4384
- }, R = z(
4385
- (D) => D === i ? ne.active : i > D ? ne.completed : "subtext",
4382
+ }, [a, d]);
4383
+ H(() => {
4384
+ if (b === null || T)
4385
+ return;
4386
+ if (b === 0) {
4387
+ j();
4388
+ return;
4389
+ }
4390
+ const k = setTimeout(() => {
4391
+ R((C) => (C ?? 1) - 1);
4392
+ }, 1e3);
4393
+ return () => {
4394
+ clearTimeout(k);
4395
+ };
4396
+ }, [b, T]);
4397
+ const { sessionToken: I } = fe(), Y = async () => (!I && !Xe && (Xe = Promise.reject(
4398
+ new Error(
4399
+ "sessionToken not provided. Generate a sessionToken on your backend and pass it to the SDK."
4400
+ )
4401
+ )), I ?? Xe), Q = U(
4402
+ (k) => k === i ? ne.active : i > k ? ne.completed : "subtext",
4386
4403
  [i]
4387
4404
  );
4388
4405
  return /* @__PURE__ */ h("div", { className: ne.root, children: /* @__PURE__ */ h("div", { className: ne.container, children: [
4389
4406
  /* @__PURE__ */ h("div", { className: `${ne.lhs} divider`, children: [
4390
4407
  /* @__PURE__ */ h("div", { className: ne.info, children: [
4391
- /* @__PURE__ */ h(mc, {}),
4408
+ /* @__PURE__ */ h(ml, {}),
4392
4409
  /* @__PURE__ */ h("div", { children: /* @__PURE__ */ h("p", { className: "yvlw-text-xs yvlw-m-0 yvlw-p-0 subtext", children: "You have been given this set of tasks to complete. They are pretty easy to do but we will be guiding you every step of the way." }) }),
4393
4410
  /* @__PURE__ */ h("ol", { children: [
4394
- o.map((D, K) => /* @__PURE__ */ h("li", { className: R(K), children: ec[D.id].name }, `task-${K}`)),
4411
+ o.map((k, C) => /* @__PURE__ */ h("li", { className: Q(C), children: el[k.id].name }, `task-${C}`)),
4395
4412
  /* @__PURE__ */ h("li", { className: s ? ne.active : "", children: "Complete! 🎉" })
4396
4413
  ] })
4397
4414
  ] }),
@@ -4440,7 +4457,7 @@ function ml() {
4440
4457
  /* @__PURE__ */ h(
4441
4458
  pe,
4442
4459
  {
4443
- show: m && !C,
4460
+ show: m && !M,
4444
4461
  as: "div",
4445
4462
  leave: "yvlw-transform yvlw-transition yvlw-duration-300",
4446
4463
  leaveFrom: "yvlw-translate-y-0 yvlw-opacity-100",
@@ -4449,46 +4466,46 @@ function ml() {
4449
4466
  enterTo: "yvlw-translate-y-0 yvlw-opacity-100",
4450
4467
  className: "yvlw-h-full yvlw-w-full",
4451
4468
  children: /* @__PURE__ */ h("div", { className: ne.completed, children: /* @__PURE__ */ h(
4452
- hl,
4469
+ hc,
4453
4470
  {
4454
- fetchAzureSessionToken: A,
4455
- loadAzureSdk: vl,
4456
- onImageCaptured: (D) => {
4457
- E(null), D && L(!0);
4471
+ fetchAzureSessionToken: Y,
4472
+ loadAzureSdk: vc,
4473
+ onImageCaptured: (k) => {
4474
+ $(null), k && A(!0);
4458
4475
  },
4459
- onError: (D) => E(D),
4476
+ onError: (k) => $(k),
4460
4477
  onReset: () => {
4461
- Xe = null, L(!1), S((D) => D + 1), l();
4478
+ Xe = null, A(!1), F((k) => k + 1), c();
4462
4479
  },
4463
- onFailure: c
4480
+ onFailure: l
4464
4481
  },
4465
- U
4482
+ W
4466
4483
  ) })
4467
4484
  }
4468
4485
  ),
4469
- o.map((D, K) => {
4470
- let x;
4471
- switch (D.id) {
4486
+ o.map((k, C) => {
4487
+ let N;
4488
+ switch (k.id) {
4472
4489
  case "complete-the-circle":
4473
- x = /* @__PURE__ */ h(zc, { ...D });
4490
+ N = /* @__PURE__ */ h(zl, { ...k });
4474
4491
  break;
4475
4492
  case "yes-or-no":
4476
- x = /* @__PURE__ */ h(Xc, { ...D });
4493
+ N = /* @__PURE__ */ h(Xl, { ...k });
4477
4494
  break;
4478
4495
  case "motions":
4479
- x = /* @__PURE__ */ h(nl, { ...D });
4496
+ N = /* @__PURE__ */ h(nc, { ...k });
4480
4497
  break;
4481
4498
  case "blink":
4482
- x = /* @__PURE__ */ h(rl, { ...D });
4499
+ N = /* @__PURE__ */ h(rc, { ...k });
4483
4500
  break;
4484
4501
  default:
4485
- x = /* @__PURE__ */ h(Y, {});
4502
+ N = /* @__PURE__ */ h(q, {});
4486
4503
  break;
4487
4504
  }
4488
4505
  return /* @__PURE__ */ h(
4489
4506
  pe,
4490
4507
  {
4491
- show: m && C && !s && i === K,
4508
+ show: m && M && !s && i === C,
4492
4509
  appear: !0,
4493
4510
  as: "div",
4494
4511
  leave: "yvlw-transform yvlw-transition yvlw-duration-300",
@@ -4497,9 +4514,9 @@ function ml() {
4497
4514
  enterFrom: "yvlw-translate-y-full yvlw-opacity-0",
4498
4515
  enterTo: "yvlw-translate-y-0 yvlw-opacity-100",
4499
4516
  className: "yvlw-h-full",
4500
- children: x
4517
+ children: N
4501
4518
  },
4502
- `task-${K}`
4519
+ `task-${C}`
4503
4520
  );
4504
4521
  }),
4505
4522
  /* @__PURE__ */ h(
@@ -4519,9 +4536,9 @@ function ml() {
4519
4536
  Icon: Wa,
4520
4537
  title: T ? "All Set!" : "Completed",
4521
4538
  description: T ? "You can now close or exit the window" : "Your Identity verification has been completed successfully. Thanks for your patience",
4522
- actionText: "Finish",
4539
+ actionText: b !== null && b > 0 ? `Finish in (${b}s)` : "Finish",
4523
4540
  loading: _,
4524
- onActionClick: G,
4541
+ onActionClick: j,
4525
4542
  hideButton: T,
4526
4543
  children: g && /* @__PURE__ */ h("div", { className: "yvlw-mt-3", children: g })
4527
4544
  }
@@ -4532,7 +4549,7 @@ function ml() {
4532
4549
  /* @__PURE__ */ h("div", { className: `${ne.rhs} divider`, children: r && /* @__PURE__ */ h("div", { className: `${ne.profile} divider`, children: [
4533
4550
  /* @__PURE__ */ h("div", { children: /* @__PURE__ */ h("div", { className: ne.avatar, children: [
4534
4551
  r.firstName.charAt(0).toUpperCase(),
4535
- (B = r.lastName) == null ? void 0 : B.charAt(0).toUpperCase()
4552
+ (X = r.lastName) == null ? void 0 : X.charAt(0).toUpperCase()
4536
4553
  ] }) }),
4537
4554
  /* @__PURE__ */ h("div", { children: [
4538
4555
  /* @__PURE__ */ h("h4", { children: [
@@ -4545,7 +4562,7 @@ function ml() {
4545
4562
  ] }) })
4546
4563
  ] }) });
4547
4564
  }
4548
- function _l(e) {
4565
+ function _c(e) {
4549
4566
  const {
4550
4567
  tasks: t,
4551
4568
  namespace: n,
@@ -4555,19 +4572,19 @@ function _l(e) {
4555
4572
  onClose: s = () => {
4556
4573
  },
4557
4574
  onSuccess: a,
4558
- onFailure: c,
4575
+ onFailure: l,
4559
4576
  presentation: u = "modal",
4560
4577
  publicKey: d,
4561
- metadata: l,
4578
+ metadata: c,
4562
4579
  sandboxEnvironment: f,
4563
4580
  sessionId: p,
4564
4581
  sessionToken: _,
4565
4582
  forceDevUrl: y
4566
- } = e, [m, v] = F(e.show), g = () => {
4583
+ } = e, [m, v] = x(e.show), g = () => {
4567
4584
  v(!1), s();
4568
4585
  };
4569
4586
  return /* @__PURE__ */ h(
4570
- tc,
4587
+ tl,
4571
4588
  {
4572
4589
  namespace: n,
4573
4590
  publicKey: d,
@@ -4577,8 +4594,8 @@ function _l(e) {
4577
4594
  isMobileAppWebView: i,
4578
4595
  onRequestClose: g,
4579
4596
  onSuccess: a,
4580
- onFailure: c,
4581
- metadata: l,
4597
+ onFailure: l,
4598
+ metadata: c,
4582
4599
  presentation: u,
4583
4600
  sandboxEnvironment: f,
4584
4601
  sessionId: p,
@@ -4598,14 +4615,14 @@ function _l(e) {
4598
4615
  },
4599
4616
  children: [
4600
4617
  u === "modal" && /* @__PURE__ */ h("div", { onClick: g, role: "button", className: ht.close, children: /* @__PURE__ */ h(Ua, { className: "yvlw-text-white" }) }),
4601
- /* @__PURE__ */ h(Ho, { className: `${ht.container}`, children: /* @__PURE__ */ h(ml, {}) })
4618
+ /* @__PURE__ */ h(Ho, { className: `${ht.container}`, children: /* @__PURE__ */ h(mc, {}) })
4602
4619
  ]
4603
4620
  }
4604
4621
  )
4605
4622
  }
4606
4623
  );
4607
4624
  }
4608
- class wl {
4625
+ class wc {
4609
4626
  constructor(t) {
4610
4627
  this.tasks = [], this.container = null, this.namespace = "liveness-web-sdk", this.loadedScripts = [];
4611
4628
  const { presentation: n = "modal" } = t;
@@ -4657,7 +4674,7 @@ class wl {
4657
4674
  async start(t) {
4658
4675
  t && (this.tasks = t), this.validateOptions(), this.container = document.createElement("div"), document.body.appendChild(this.container), Ue(
4659
4676
  /* @__PURE__ */ h(
4660
- _l,
4677
+ _c,
4661
4678
  {
4662
4679
  namespace: this.namespace,
4663
4680
  publicKey: this.props.publicKey,
@@ -4699,5 +4716,5 @@ class wl {
4699
4716
  // }
4700
4717
  }
4701
4718
  export {
4702
- wl as default
4719
+ wc as default
4703
4720
  };