youverify-liveness-web 0.1.8 → 0.1.10
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 +883 -866
- package/dist/index.umd.cjs +4 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
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-3{height:.75rem}.yvlw-h-4{height:1rem}.yvlw-h-5{height:1.25rem}.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-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-p-0{padding:0}.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}._root_1hpzn_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_1hpzn_1[data-closed]{opacity:0}._root_1hpzn_1._modal_1hpzn_10{background-color:#0000004d}@media (min-width: 768px){._root_1hpzn_1._modal_1hpzn_10{padding:1rem}._root_1hpzn_1._modal_1hpzn_10 ._container_1hpzn_13{border-radius:.75rem}._root_1hpzn_1._page_1hpzn_16{padding:0}}._root_1hpzn_1 ._close_1hpzn_19{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_1hpzn_1 ._close_1hpzn_19 svg{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}._root_1hpzn_1 ._close_1hpzn_19 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_1hpzn_1 ._container_1hpzn_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_1hpzn_1 ._container_1hpzn_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_135td_1 ._container_135td_1 ._brand_135td_1{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_1psx5_1{height:100%;text-align:center}._root_1psx5_1 ._container_1psx5_4{position:relative;height:100%}._root_1psx5_1 ._container_1psx5_4 ._progress_1psx5_7{background-color:var(--branding-color);position:absolute;top:0;left:0;height:4px;border-radius:.5rem;z-index:2}._root_1psx5_1 ._container_1psx5_4 ._intro_1psx5_12{display:flex;height:100%;flex-direction:column;align-items:center;justify-content:center;padding:1.5rem 1rem}._root_1psx5_1 ._container_1psx5_4 ._content_1psx5_15{height:75%;width:100%}._root_1psx5_1 ._container_1psx5_4 ._branding_1psx5_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_1psx5_1 ._container_1psx5_4 ._branding_1psx5_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_1psx5_1 ._container_1psx5_4 ._instructionsContainer_1psx5_22{border-top-width:1px;--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity))}._root_1psx5_1 ._container_1psx5_4 ._instructionsContainer_1psx5_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_1psx5_1 ._container_1psx5_4 ._instructions_1psx5_22{margin-left:auto;margin-right:auto;padding:1rem 1rem 1.5rem;text-align:center;max-width:400px}._root_1psx5_1 ._container_1psx5_4 h2{margin-top:.5rem;margin-bottom:.5rem;font-size:1.5rem;line-height:2rem;font-weight:900}._root_1psx5_1 ._container_1psx5_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_1psx5_1 ._container_1psx5_4 p{font-size:.875rem;line-height:1.25rem;font-weight:300;max-width:400px}._root_1psx5_1 ._container_1psx5_4 button{color:var(--branding-color);border-color:var(--branding-color);border-radius:9999px;border-width:2px;padding:.5rem 2rem;font-weight:500}._root_1psx5_1 ._container_1psx5_4 button:hover{background-color:var(--branding-color);--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}._root_1j21c_1{text-align:center;display:flex;height:100%;flex-direction:column;align-items:center;justify-content:center;padding:1.5rem .75rem}._root_1j21c_1 h2{margin-top:.5rem;margin-bottom:.5rem;font-size:1.5rem;line-height:2rem;font-weight:900}._root_1j21c_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_1j21c_1 p{font-size:.875rem;line-height:1.25rem;font-weight:300;max-width:400px}._root_1j21c_1 button{color:var(--branding-color);border-color:var(--branding-color);border-radius:9999px;border-width:2px;padding:.5rem 2rem;font-weight:500}._root_1j21c_1 button ._spinner_1j21c_18{height:100%;width:100%;border-radius:50%;border-width:2px;height:1rem;width:1rem;border-color:var(--branding-color);border-left-color:transparent;animation:_spin_1j21c_18 .7s linear infinite}@keyframes _spin_1j21c_18{0%{transform:rotate(0)}to{transform:rotate(360deg)}}._root_1j21c_1 button:hover{background-color:var(--branding-color);--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}._root_1j21c_1 button:hover ._spinner_1j21c_18{--tw-border-opacity: 1;border-color:rgb(255 255 255 / var(--tw-border-opacity));border-left-color:transparent}._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)}')),document.head.appendChild(t)}}catch(r){console.error("vite-plugin-css-injected-by-js",r)}})();
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
function ne(e, t) {
|
|
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-3{height:.75rem}.yvlw-h-4{height:1rem}.yvlw-h-5{height:1.25rem}.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-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-p-0{padding:0}.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}._root_1hpzn_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_1hpzn_1[data-closed]{opacity:0}._root_1hpzn_1._modal_1hpzn_10{background-color:#0000004d}@media (min-width: 768px){._root_1hpzn_1._modal_1hpzn_10{padding:1rem}._root_1hpzn_1._modal_1hpzn_10 ._container_1hpzn_13{border-radius:.75rem}._root_1hpzn_1._page_1hpzn_16{padding:0}}._root_1hpzn_1 ._close_1hpzn_19{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_1hpzn_1 ._close_1hpzn_19 svg{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}._root_1hpzn_1 ._close_1hpzn_19 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_1hpzn_1 ._container_1hpzn_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_1hpzn_1 ._container_1hpzn_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_135td_1 ._container_135td_1 ._brand_135td_1{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_1psx5_1{height:100%;text-align:center}._root_1psx5_1 ._container_1psx5_4{position:relative;height:100%}._root_1psx5_1 ._container_1psx5_4 ._progress_1psx5_7{background-color:var(--branding-color);position:absolute;top:0;left:0;height:4px;border-radius:.5rem;z-index:2}._root_1psx5_1 ._container_1psx5_4 ._intro_1psx5_12{display:flex;height:100%;flex-direction:column;align-items:center;justify-content:center;padding:1.5rem 1rem}._root_1psx5_1 ._container_1psx5_4 ._content_1psx5_15{height:75%;width:100%}._root_1psx5_1 ._container_1psx5_4 ._branding_1psx5_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_1psx5_1 ._container_1psx5_4 ._branding_1psx5_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_1psx5_1 ._container_1psx5_4 ._instructionsContainer_1psx5_22{border-top-width:1px;--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity))}._root_1psx5_1 ._container_1psx5_4 ._instructionsContainer_1psx5_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_1psx5_1 ._container_1psx5_4 ._instructions_1psx5_22{margin-left:auto;margin-right:auto;padding:1rem 1rem 1.5rem;text-align:center;max-width:400px}._root_1psx5_1 ._container_1psx5_4 h2{margin-top:.5rem;margin-bottom:.5rem;font-size:1.5rem;line-height:2rem;font-weight:900}._root_1psx5_1 ._container_1psx5_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_1psx5_1 ._container_1psx5_4 p{font-size:.875rem;line-height:1.25rem;font-weight:300;max-width:400px}._root_1psx5_1 ._container_1psx5_4 button{color:var(--branding-color);border-color:var(--branding-color);border-radius:9999px;border-width:2px;padding:.5rem 2rem;font-weight:500}._root_1psx5_1 ._container_1psx5_4 button:hover{background-color:var(--branding-color);--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}._root_1j21c_1{text-align:center;display:flex;height:100%;flex-direction:column;align-items:center;justify-content:center;padding:1.5rem .75rem}._root_1j21c_1 h2{margin-top:.5rem;margin-bottom:.5rem;font-size:1.5rem;line-height:2rem;font-weight:900}._root_1j21c_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_1j21c_1 p{font-size:.875rem;line-height:1.25rem;font-weight:300;max-width:400px}._root_1j21c_1 button{color:var(--branding-color);border-color:var(--branding-color);border-radius:9999px;border-width:2px;padding:.5rem 2rem;font-weight:500}._root_1j21c_1 button ._spinner_1j21c_18{height:100%;width:100%;border-radius:50%;border-width:2px;height:1rem;width:1rem;border-color:var(--branding-color);border-left-color:transparent;animation:_spin_1j21c_18 .7s linear infinite}@keyframes _spin_1j21c_18{0%{transform:rotate(0)}to{transform:rotate(360deg)}}._root_1j21c_1 button:hover{background-color:var(--branding-color);--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}._root_1j21c_1 button:hover ._spinner_1j21c_18{--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)}')),document.head.appendChild(t)}}catch(r){console.error("vite-plugin-css-injected-by-js",r)}})();
|
|
2
|
+
var Ye, T, tr, ve, En, nr, Dt, Jt, At, Ot, rr, qe = {}, or = [], wo = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, pt = Array.isArray;
|
|
3
|
+
function te(e, t) {
|
|
5
4
|
for (var n in t) e[n] = t[n];
|
|
6
5
|
return e;
|
|
7
6
|
}
|
|
@@ -28,10 +27,10 @@ function H(e) {
|
|
|
28
27
|
function Z(e, t) {
|
|
29
28
|
this.props = e, this.context = t;
|
|
30
29
|
}
|
|
31
|
-
function
|
|
32
|
-
if (t == null) return e.__ ?
|
|
30
|
+
function be(e, t) {
|
|
31
|
+
if (t == null) return e.__ ? be(e.__, e.__i + 1) : null;
|
|
33
32
|
for (var n; t < e.__k.length; t++) if ((n = e.__k[t]) != null && n.__e != null) return n.__e;
|
|
34
|
-
return typeof e.type == "function" ?
|
|
33
|
+
return typeof e.type == "function" ? be(e) : null;
|
|
35
34
|
}
|
|
36
35
|
function ar(e) {
|
|
37
36
|
var t, n;
|
|
@@ -44,22 +43,22 @@ function ar(e) {
|
|
|
44
43
|
}
|
|
45
44
|
}
|
|
46
45
|
function It(e) {
|
|
47
|
-
(!e.__d && (e.__d = !0) &&
|
|
46
|
+
(!e.__d && (e.__d = !0) && ve.push(e) && !at.__r++ || En !== T.debounceRendering) && ((En = T.debounceRendering) || nr)(at);
|
|
48
47
|
}
|
|
49
48
|
function at() {
|
|
50
49
|
var e, t, n, r, o, i, a, l;
|
|
51
|
-
for (
|
|
50
|
+
for (ve.sort(Dt); e = ve.shift(); ) e.__d && (t = ve.length, r = void 0, i = (o = (n = e).__v).__e, a = [], l = [], n.__P && ((r = te({}, o)).__v = o.__v + 1, T.vnode && T.vnode(r), tn(n.__P, r, o, n.__n, n.__P.namespaceURI, 32 & o.__u ? [i] : null, a, i ?? be(o), !!(32 & o.__u), l), r.__v = o.__v, r.__.__k[r.__i] = r, cr(a, r, l), r.__e != i && ar(r)), ve.length > t && ve.sort(Dt));
|
|
52
51
|
at.__r = 0;
|
|
53
52
|
}
|
|
54
53
|
function lr(e, t, n, r, o, i, a, l, s, u, d) {
|
|
55
|
-
var c,
|
|
56
|
-
for (n.__d = s, bo(n, t,
|
|
57
|
-
n.__d = s, n.__e =
|
|
54
|
+
var c, _, f, v, h, y = r && r.__k || or, m = t.length;
|
|
55
|
+
for (n.__d = s, bo(n, t, y), s = n.__d, c = 0; c < m; c++) (f = n.__k[c]) != null && typeof f != "boolean" && typeof f != "function" && (_ = f.__i === -1 ? qe : y[f.__i] || qe, f.__i = c, tn(e, f, _, o, i, a, l, s, u, d), v = f.__e, f.ref && _.ref != f.ref && (_.ref && nn(_.ref, null, f), d.push(f.ref, f.__c || v, f)), h == null && v != null && (h = v), 65536 & f.__u || _.__k === f.__k ? s = sr(f, s, e) : typeof f.type == "function" && f.__d !== void 0 ? s = f.__d : v && (s = v.nextSibling), f.__d = void 0, f.__u &= -196609);
|
|
56
|
+
n.__d = s, n.__e = h;
|
|
58
57
|
}
|
|
59
58
|
function bo(e, t, n) {
|
|
60
59
|
var r, o, i, a, l, s = t.length, u = n.length, d = u, c = 0;
|
|
61
|
-
for (e.__k = [], r = 0; r < s; r++) a = 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 ? Ue(null, o, null, null, null) : pt(o) ? Ue(H, { children: o }, null, null, null) : o.constructor === void 0 && o.__b > 0 ? Ue(o.type, o.props, o.key, o.ref ? o.ref : null, o.__v) : o) != null ? (o.__ = e, o.__b = e.__b + 1, l =
|
|
62
|
-
if (d) for (r = 0; r < u; r++) (i = n[r]) != null && !(131072 & i.__u) && (i.__e == e.__d && (e.__d =
|
|
60
|
+
for (e.__k = [], r = 0; r < s; r++) a = 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 ? Ue(null, o, null, null, null) : pt(o) ? Ue(H, { children: o }, null, null, null) : o.constructor === void 0 && o.__b > 0 ? Ue(o.type, o.props, o.key, o.ref ? o.ref : null, o.__v) : o) != null ? (o.__ = e, o.__b = e.__b + 1, l = $o(o, n, a, d), o.__i = l, i = null, l !== -1 && (d--, (i = n[l]) && (i.__u |= 131072)), i == null || i.__v === null ? (l == -1 && c--, typeof o.type != "function" && (o.__u |= 65536)) : l !== a && (l == a - 1 ? c = l - a : l == a + 1 ? c++ : l > a ? d > s - a ? c += l - a : c-- : l < a && c++, l !== r + c && (o.__u |= 65536))) : (i = n[a]) && i.key == null && i.__e && !(131072 & i.__u) && (i.__e == e.__d && (e.__d = be(i)), Rt(i, i, !1), n[a] = null, d--);
|
|
61
|
+
if (d) for (r = 0; r < u; r++) (i = n[r]) != null && !(131072 & i.__u) && (i.__e == e.__d && (e.__d = be(i)), Rt(i, i));
|
|
63
62
|
}
|
|
64
63
|
function sr(e, t, n) {
|
|
65
64
|
var r, o;
|
|
@@ -67,18 +66,18 @@ function sr(e, t, n) {
|
|
|
67
66
|
for (r = e.__k, o = 0; r && o < r.length; o++) r[o] && (r[o].__ = e, t = sr(r[o], t, n));
|
|
68
67
|
return t;
|
|
69
68
|
}
|
|
70
|
-
e.__e != t && (t && e.type && !n.contains(t) && (t =
|
|
69
|
+
e.__e != t && (t && e.type && !n.contains(t) && (t = be(e)), n.insertBefore(e.__e, t || null), t = e.__e);
|
|
71
70
|
do
|
|
72
71
|
t = t && t.nextSibling;
|
|
73
72
|
while (t != null && t.nodeType === 8);
|
|
74
73
|
return t;
|
|
75
74
|
}
|
|
76
|
-
function
|
|
75
|
+
function ne(e, t) {
|
|
77
76
|
return t = t || [], e == null || typeof e == "boolean" || (pt(e) ? e.some(function(n) {
|
|
78
|
-
|
|
77
|
+
ne(n, t);
|
|
79
78
|
}) : t.push(e)), t;
|
|
80
79
|
}
|
|
81
|
-
function
|
|
80
|
+
function $o(e, t, n, r) {
|
|
82
81
|
var o = e.key, i = e.type, a = n - 1, l = n + 1, s = t[n];
|
|
83
82
|
if (s === null || s && o == s.key && i === s.type && !(131072 & s.__u)) return n;
|
|
84
83
|
if (r > (s != null && !(131072 & s.__u) ? 1 : 0)) for (; a >= 0 || l < t.length; ) {
|
|
@@ -125,30 +124,30 @@ function Tn(e) {
|
|
|
125
124
|
};
|
|
126
125
|
}
|
|
127
126
|
function tn(e, t, n, r, o, i, a, l, s, u) {
|
|
128
|
-
var d, c,
|
|
127
|
+
var d, c, _, f, v, h, y, m, w, b, g, E, x, R, O, S, L = t.type;
|
|
129
128
|
if (t.constructor !== void 0) return null;
|
|
130
129
|
128 & n.__u && (s = !!(32 & n.__u), i = [l = t.__e = n.__e]), (d = T.__b) && d(t);
|
|
131
130
|
e: if (typeof L == "function") try {
|
|
132
|
-
if (
|
|
131
|
+
if (m = t.props, w = "prototype" in L && L.prototype.render, b = (d = L.contextType) && r[d.__c], g = d ? b ? b.props.value : d.__ : r, n.__c ? y = (c = t.__c = n.__c).__ = c.__E : (w ? t.__c = c = new L(m, g) : (t.__c = c = new Z(m, g), c.constructor = L, c.render = Co), b && b.sub(c), c.props = m, c.state || (c.state = {}), c.context = g, c.__n = r, _ = c.__d = !0, c.__h = [], c._sb = []), w && c.__s == null && (c.__s = c.state), w && L.getDerivedStateFromProps != null && (c.__s == c.state && (c.__s = te({}, c.__s)), te(c.__s, L.getDerivedStateFromProps(m, c.__s))), f = c.props, v = c.state, c.__v = t, _) w && L.getDerivedStateFromProps == null && c.componentWillMount != null && c.componentWillMount(), w && c.componentDidMount != null && c.__h.push(c.componentDidMount);
|
|
133
132
|
else {
|
|
134
|
-
if (
|
|
135
|
-
for (t.__v !== n.__v && (c.props =
|
|
133
|
+
if (w && L.getDerivedStateFromProps == null && m !== f && c.componentWillReceiveProps != null && c.componentWillReceiveProps(m, g), !c.__e && (c.shouldComponentUpdate != null && c.shouldComponentUpdate(m, c.__s, g) === !1 || t.__v === n.__v)) {
|
|
134
|
+
for (t.__v !== n.__v && (c.props = m, c.state = c.__s, c.__d = !1), t.__e = n.__e, t.__k = n.__k, t.__k.forEach(function(U) {
|
|
136
135
|
U && (U.__ = t);
|
|
137
136
|
}), E = 0; E < c._sb.length; E++) c.__h.push(c._sb[E]);
|
|
138
137
|
c._sb = [], c.__h.length && a.push(c);
|
|
139
138
|
break e;
|
|
140
139
|
}
|
|
141
|
-
c.componentWillUpdate != null && c.componentWillUpdate(
|
|
142
|
-
c.componentDidUpdate(f,
|
|
140
|
+
c.componentWillUpdate != null && c.componentWillUpdate(m, c.__s, g), w && c.componentDidUpdate != null && c.__h.push(function() {
|
|
141
|
+
c.componentDidUpdate(f, v, h);
|
|
143
142
|
});
|
|
144
143
|
}
|
|
145
|
-
if (c.context =
|
|
146
|
-
for (c.state = c.__s, c.__d = !1,
|
|
144
|
+
if (c.context = g, c.props = m, c.__P = e, c.__e = !1, x = T.__r, R = 0, w) {
|
|
145
|
+
for (c.state = c.__s, c.__d = !1, x && x(t), d = c.render(c.props, c.state, c.context), O = 0; O < c._sb.length; O++) c.__h.push(c._sb[O]);
|
|
147
146
|
c._sb = [];
|
|
148
147
|
} else do
|
|
149
|
-
c.__d = !1,
|
|
150
|
-
while (c.__d && ++
|
|
151
|
-
c.state = c.__s, c.getChildContext != null && (r =
|
|
148
|
+
c.__d = !1, x && x(t), d = c.render(c.props, c.state, c.context), c.state = c.__s;
|
|
149
|
+
while (c.__d && ++R < 25);
|
|
150
|
+
c.state = c.__s, c.getChildContext != null && (r = te(te({}, r), c.getChildContext())), w && !_ && c.getSnapshotBeforeUpdate != null && (h = c.getSnapshotBeforeUpdate(f, v)), lr(e, pt(S = d != null && d.type === H && d.key == null ? d.props.children : d) ? S : [S], t, n, r, o, i, a, l, s, u), c.base = t.__e, t.__u &= -161, c.__h.length && a.push(c), y && (c.__E = c.__ = null);
|
|
152
151
|
} catch (U) {
|
|
153
152
|
if (t.__v = null, s || i != null) {
|
|
154
153
|
for (t.__u |= s ? 160 : 32; l && l.nodeType === 8 && l.nextSibling; ) l = l.nextSibling;
|
|
@@ -156,7 +155,7 @@ function tn(e, t, n, r, o, i, a, l, s, u) {
|
|
|
156
155
|
} else t.__e = n.__e, t.__k = n.__k;
|
|
157
156
|
T.__e(U, t, n);
|
|
158
157
|
}
|
|
159
|
-
else i == null && t.__v === n.__v ? (t.__k = n.__k, t.__e = n.__e) : t.__e =
|
|
158
|
+
else i == null && t.__v === n.__v ? (t.__k = n.__k, t.__e = n.__e) : t.__e = Eo(n.__e, t, n, r, o, i, a, s, u);
|
|
160
159
|
(d = T.diffed) && d(t);
|
|
161
160
|
}
|
|
162
161
|
function cr(e, t, n) {
|
|
@@ -172,32 +171,32 @@ function cr(e, t, n) {
|
|
|
172
171
|
}
|
|
173
172
|
});
|
|
174
173
|
}
|
|
175
|
-
function
|
|
176
|
-
var u, d, c,
|
|
177
|
-
if (
|
|
178
|
-
for (u = 0; u < i.length; u++) if ((f = i[u]) && "setAttribute" in f == !!
|
|
174
|
+
function Eo(e, t, n, r, o, i, a, l, s) {
|
|
175
|
+
var u, d, c, _, f, v, h, y = n.props, m = t.props, w = t.type;
|
|
176
|
+
if (w === "svg" ? o = "http://www.w3.org/2000/svg" : w === "math" ? o = "http://www.w3.org/1998/Math/MathML" : o || (o = "http://www.w3.org/1999/xhtml"), i != null) {
|
|
177
|
+
for (u = 0; u < i.length; u++) if ((f = i[u]) && "setAttribute" in f == !!w && (w ? f.localName === w : f.nodeType === 3)) {
|
|
179
178
|
e = f, i[u] = null;
|
|
180
179
|
break;
|
|
181
180
|
}
|
|
182
181
|
}
|
|
183
182
|
if (e == null) {
|
|
184
|
-
if (
|
|
185
|
-
e = document.createElementNS(o,
|
|
183
|
+
if (w === null) return document.createTextNode(m);
|
|
184
|
+
e = document.createElementNS(o, w, m.is && m), i = null, l = !1;
|
|
186
185
|
}
|
|
187
|
-
if (
|
|
186
|
+
if (w === null) y === m || l && e.data === m || (e.data = m);
|
|
188
187
|
else {
|
|
189
|
-
if (i = i && Ye.call(e.childNodes),
|
|
190
|
-
for (u in
|
|
188
|
+
if (i = i && Ye.call(e.childNodes), y = n.props || qe, !l && i != null) for (y = {}, u = 0; u < e.attributes.length; u++) y[(f = e.attributes[u]).name] = f.value;
|
|
189
|
+
for (u in y) if (f = y[u], u != "children") {
|
|
191
190
|
if (u == "dangerouslySetInnerHTML") c = f;
|
|
192
|
-
else if (u !== "key" && !(u in
|
|
193
|
-
if (u == "value" && "defaultValue" in
|
|
191
|
+
else if (u !== "key" && !(u in m)) {
|
|
192
|
+
if (u == "value" && "defaultValue" in m || u == "checked" && "defaultChecked" in m) continue;
|
|
194
193
|
nt(e, u, null, f, o);
|
|
195
194
|
}
|
|
196
195
|
}
|
|
197
|
-
for (u in
|
|
196
|
+
for (u in m) f = m[u], u == "children" ? _ = f : u == "dangerouslySetInnerHTML" ? d = f : u == "value" ? v = f : u == "checked" ? h = f : u === "key" || l && typeof f != "function" || y[u] === f || nt(e, u, f, y[u], o);
|
|
198
197
|
if (d) l || c && (d.__html === c.__html || d.__html === e.innerHTML) || (e.innerHTML = d.__html), t.__k = [];
|
|
199
|
-
else if (c && (e.innerHTML = ""), lr(e, pt(
|
|
200
|
-
l || (u = "value",
|
|
198
|
+
else if (c && (e.innerHTML = ""), lr(e, pt(_) ? _ : [_], t, n, r, w === "foreignObject" ? "http://www.w3.org/1999/xhtml" : o, i, a, i ? i[0] : n.__k && be(n, 0), l, s), i != null) for (u = i.length; u--; ) i[u] != null && ir(i[u]);
|
|
199
|
+
l || (u = "value", v !== void 0 && (v !== e[u] || w === "progress" && !v || w === "option" && v !== y[u]) && nt(e, u, v, y[u], o), u = "checked", h !== void 0 && h !== e[u] && nt(e, u, h, y[u], o));
|
|
201
200
|
}
|
|
202
201
|
return e;
|
|
203
202
|
}
|
|
@@ -235,7 +234,7 @@ function ur(e, t) {
|
|
|
235
234
|
Pe(e, t, ur);
|
|
236
235
|
}
|
|
237
236
|
function To(e, t, n) {
|
|
238
|
-
var r, o, i, a, l =
|
|
237
|
+
var r, o, i, a, l = te({}, e.props);
|
|
239
238
|
for (i in e.type && e.type.defaultProps && (a = e.type.defaultProps), t) i == "key" ? r = t[i] : i == "ref" ? o = t[i] : l[i] = t[i] === void 0 && a !== void 0 ? a[i] : t[i];
|
|
240
239
|
return arguments.length > 2 && (l.children = arguments.length > 3 ? Ye.call(arguments, 2) : n), Ue(e.type, l, r || e.key, o || e.ref, null);
|
|
241
240
|
}
|
|
@@ -271,14 +270,14 @@ Ye = or.slice, T = { __e: function(e, t, n, r) {
|
|
|
271
270
|
throw e;
|
|
272
271
|
} }, tr = 0, Z.prototype.setState = function(e, t) {
|
|
273
272
|
var n;
|
|
274
|
-
n = this.__s != null && this.__s !== this.state ? this.__s : this.__s =
|
|
273
|
+
n = this.__s != null && this.__s !== this.state ? this.__s : this.__s = te({}, this.state), typeof e == "function" && (e = e(te({}, n), this.props)), e && te(n, e), e != null && this.__v && (t && this._sb.push(t), It(this));
|
|
275
274
|
}, Z.prototype.forceUpdate = function(e) {
|
|
276
275
|
this.__v && (this.__e = !0, e && this.__h.push(e), It(this));
|
|
277
|
-
}, Z.prototype.render = H,
|
|
276
|
+
}, Z.prototype.render = H, ve = [], nr = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, Dt = function(e, t) {
|
|
278
277
|
return e.__v.__b - t.__v.__b;
|
|
279
278
|
}, at.__r = 0, Jt = 0, At = Tn(!1), Ot = Tn(!0), rr = 0;
|
|
280
279
|
var ko = 0;
|
|
281
|
-
function
|
|
280
|
+
function p(e, t, n, r, o, i) {
|
|
282
281
|
t || (t = {});
|
|
283
282
|
var a, l, s = t;
|
|
284
283
|
if ("ref" in s) for (l in s = {}, t) l == "ref" ? a = t[l] : s[l] = t[l];
|
|
@@ -286,9 +285,9 @@ function v(e, t, n, r, o, i) {
|
|
|
286
285
|
if (typeof e == "function" && (a = e.defaultProps)) for (l in a) s[l] === void 0 && (s[l] = a[l]);
|
|
287
286
|
return T.vnode && T.vnode(u), u;
|
|
288
287
|
}
|
|
289
|
-
var
|
|
288
|
+
var ie, P, Ft, kn, Me = 0, dr = [], D = T, Fn = D.__b, xn = D.__r, Sn = D.diffed, Pn = D.__c, Mn = D.unmount, Ln = D.__;
|
|
290
289
|
function Ee(e, t) {
|
|
291
|
-
|
|
290
|
+
D.__h && D.__h(P, e, Me || t), Me = 0;
|
|
292
291
|
var n = P.__H || (P.__H = { __: [], __h: [] });
|
|
293
292
|
return e >= n.__.length && n.__.push({}), n.__[e];
|
|
294
293
|
}
|
|
@@ -296,24 +295,24 @@ function k(e) {
|
|
|
296
295
|
return Me = 1, Ke(fr, e);
|
|
297
296
|
}
|
|
298
297
|
function Ke(e, t, n) {
|
|
299
|
-
var r = Ee(
|
|
298
|
+
var r = Ee(ie++, 2);
|
|
300
299
|
if (r.t = e, !r.__c && (r.__ = [n ? n(t) : fr(void 0, t), function(l) {
|
|
301
300
|
var s = r.__N ? r.__N[0] : r.__[0], u = r.t(s, l);
|
|
302
301
|
s !== u && (r.__N = [u, r.__[1]], r.__c.setState({}));
|
|
303
302
|
}], r.__c = P, !P.u)) {
|
|
304
303
|
var o = function(l, s, u) {
|
|
305
304
|
if (!r.__c.__H) return !0;
|
|
306
|
-
var d = r.__c.__H.__.filter(function(
|
|
307
|
-
return !!
|
|
305
|
+
var d = r.__c.__H.__.filter(function(_) {
|
|
306
|
+
return !!_.__c;
|
|
308
307
|
});
|
|
309
|
-
if (d.every(function(
|
|
310
|
-
return !
|
|
308
|
+
if (d.every(function(_) {
|
|
309
|
+
return !_.__N;
|
|
311
310
|
})) return !i || i.call(this, l, s, u);
|
|
312
311
|
var c = !1;
|
|
313
|
-
return d.forEach(function(
|
|
314
|
-
if (
|
|
315
|
-
var f =
|
|
316
|
-
|
|
312
|
+
return d.forEach(function(_) {
|
|
313
|
+
if (_.__N) {
|
|
314
|
+
var f = _.__[0];
|
|
315
|
+
_.__ = _.__N, _.__N = void 0, f !== _.__[0] && (c = !0);
|
|
317
316
|
}
|
|
318
317
|
}), !(!c && r.__c.props === l) && (!i || i.call(this, l, s, u));
|
|
319
318
|
};
|
|
@@ -329,21 +328,21 @@ function Ke(e, t, n) {
|
|
|
329
328
|
}
|
|
330
329
|
return r.__N || r.__;
|
|
331
330
|
}
|
|
332
|
-
function
|
|
333
|
-
var n = Ee(
|
|
334
|
-
!
|
|
331
|
+
function M(e, t) {
|
|
332
|
+
var n = Ee(ie++, 3);
|
|
333
|
+
!D.__s && an(n.__H, t) && (n.__ = e, n.i = t, P.__H.__h.push(n));
|
|
335
334
|
}
|
|
336
|
-
function
|
|
337
|
-
var n = Ee(
|
|
338
|
-
!
|
|
335
|
+
function Ce(e, t) {
|
|
336
|
+
var n = Ee(ie++, 4);
|
|
337
|
+
!D.__s && an(n.__H, t) && (n.__ = e, n.i = t, P.__h.push(n));
|
|
339
338
|
}
|
|
340
|
-
function
|
|
341
|
-
return Me = 5,
|
|
339
|
+
function $(e) {
|
|
340
|
+
return Me = 5, F(function() {
|
|
342
341
|
return { current: e };
|
|
343
342
|
}, []);
|
|
344
343
|
}
|
|
345
344
|
function rn(e, t, n) {
|
|
346
|
-
Me = 6,
|
|
345
|
+
Me = 6, Ce(function() {
|
|
347
346
|
return typeof e == "function" ? (e(t()), function() {
|
|
348
347
|
return e(null);
|
|
349
348
|
}) : e ? (e.current = t(), function() {
|
|
@@ -351,24 +350,24 @@ function rn(e, t, n) {
|
|
|
351
350
|
}) : void 0;
|
|
352
351
|
}, n == null ? n : n.concat(e));
|
|
353
352
|
}
|
|
354
|
-
function
|
|
355
|
-
var n = Ee(
|
|
353
|
+
function F(e, t) {
|
|
354
|
+
var n = Ee(ie++, 7);
|
|
356
355
|
return an(n.__H, t) && (n.__ = e(), n.__H = t, n.__h = e), n.__;
|
|
357
356
|
}
|
|
358
|
-
function
|
|
359
|
-
return Me = 8,
|
|
357
|
+
function A(e, t) {
|
|
358
|
+
return Me = 8, F(function() {
|
|
360
359
|
return e;
|
|
361
360
|
}, t);
|
|
362
361
|
}
|
|
363
362
|
function W(e) {
|
|
364
|
-
var t = P.context[e.__c], n = Ee(
|
|
363
|
+
var t = P.context[e.__c], n = Ee(ie++, 9);
|
|
365
364
|
return n.c = e, t ? (n.__ == null && (n.__ = !0, t.sub(P)), t.props.value) : e.__;
|
|
366
365
|
}
|
|
367
366
|
function on(e, t) {
|
|
368
|
-
|
|
367
|
+
D.useDebugValue && D.useDebugValue(t ? t(e) : e);
|
|
369
368
|
}
|
|
370
369
|
function Fo(e) {
|
|
371
|
-
var t = Ee(
|
|
370
|
+
var t = Ee(ie++, 10), n = k();
|
|
372
371
|
return t.__ = e, P.componentDidCatch || (P.componentDidCatch = function(r, o) {
|
|
373
372
|
t.__ && t.__(r, o), n[1](r);
|
|
374
373
|
}), [n[0], function() {
|
|
@@ -376,7 +375,7 @@ function Fo(e) {
|
|
|
376
375
|
}];
|
|
377
376
|
}
|
|
378
377
|
function fe() {
|
|
379
|
-
var e = Ee(
|
|
378
|
+
var e = Ee(ie++, 11);
|
|
380
379
|
if (!e.__) {
|
|
381
380
|
for (var t = P.__v; t !== null && !t.__m && t.__ !== null; ) t = t.__;
|
|
382
381
|
var n = t.__m || (t.__m = [0, 0]);
|
|
@@ -388,26 +387,26 @@ function xo() {
|
|
|
388
387
|
for (var e; e = dr.shift(); ) if (e.__P && e.__H) try {
|
|
389
388
|
e.__H.__h.forEach(it), e.__H.__h.forEach(Vt), e.__H.__h = [];
|
|
390
389
|
} catch (t) {
|
|
391
|
-
e.__H.__h = [],
|
|
390
|
+
e.__H.__h = [], D.__e(t, e.__v);
|
|
392
391
|
}
|
|
393
392
|
}
|
|
394
|
-
|
|
393
|
+
D.__b = function(e) {
|
|
395
394
|
P = null, Fn && Fn(e);
|
|
396
|
-
},
|
|
395
|
+
}, D.__ = function(e, t) {
|
|
397
396
|
e && t.__k && t.__k.__m && (e.__m = t.__k.__m), Ln && Ln(e, t);
|
|
398
|
-
},
|
|
399
|
-
xn && xn(e),
|
|
397
|
+
}, D.__r = function(e) {
|
|
398
|
+
xn && xn(e), ie = 0;
|
|
400
399
|
var t = (P = e.__c).__H;
|
|
401
400
|
t && (Ft === P ? (t.__h = [], P.__h = [], t.__.forEach(function(n) {
|
|
402
401
|
n.__N && (n.__ = n.__N), n.i = n.__N = void 0;
|
|
403
|
-
})) : (t.__h.forEach(it), t.__h.forEach(Vt), t.__h = [],
|
|
404
|
-
},
|
|
402
|
+
})) : (t.__h.forEach(it), t.__h.forEach(Vt), t.__h = [], ie = 0)), Ft = P;
|
|
403
|
+
}, D.diffed = function(e) {
|
|
405
404
|
Sn && Sn(e);
|
|
406
405
|
var t = e.__c;
|
|
407
|
-
t && t.__H && (t.__H.__h.length && (dr.push(t) !== 1 && kn ===
|
|
406
|
+
t && t.__H && (t.__H.__h.length && (dr.push(t) !== 1 && kn === D.requestAnimationFrame || ((kn = D.requestAnimationFrame) || So)(xo)), t.__H.__.forEach(function(n) {
|
|
408
407
|
n.i && (n.__H = n.i), n.i = void 0;
|
|
409
408
|
})), Ft = P = null;
|
|
410
|
-
},
|
|
409
|
+
}, D.__c = function(e, t) {
|
|
411
410
|
t.some(function(n) {
|
|
412
411
|
try {
|
|
413
412
|
n.__h.forEach(it), n.__h = n.__h.filter(function(r) {
|
|
@@ -416,10 +415,10 @@ O.__b = function(e) {
|
|
|
416
415
|
} catch (r) {
|
|
417
416
|
t.some(function(o) {
|
|
418
417
|
o.__h && (o.__h = []);
|
|
419
|
-
}), t = [],
|
|
418
|
+
}), t = [], D.__e(r, n.__v);
|
|
420
419
|
}
|
|
421
420
|
}), Pn && Pn(e, t);
|
|
422
|
-
},
|
|
421
|
+
}, D.unmount = function(e) {
|
|
423
422
|
Mn && Mn(e);
|
|
424
423
|
var t, n = e.__c;
|
|
425
424
|
n && n.__H && (n.__H.__.forEach(function(r) {
|
|
@@ -428,7 +427,7 @@ O.__b = function(e) {
|
|
|
428
427
|
} catch (o) {
|
|
429
428
|
t = o;
|
|
430
429
|
}
|
|
431
|
-
}), n.__H = void 0, t &&
|
|
430
|
+
}), n.__H = void 0, t && D.__e(t, n.__v));
|
|
432
431
|
};
|
|
433
432
|
var Nn = typeof requestAnimationFrame == "function";
|
|
434
433
|
function So(e) {
|
|
@@ -465,7 +464,7 @@ function Ut(e, t) {
|
|
|
465
464
|
function lt(e, t) {
|
|
466
465
|
this.props = e, this.context = t;
|
|
467
466
|
}
|
|
468
|
-
function
|
|
467
|
+
function _r(e, t) {
|
|
469
468
|
function n(o) {
|
|
470
469
|
var i = this.props.ref, a = i == o.ref;
|
|
471
470
|
return !a && i && (i.call ? i(null) : i.current = null), t ? !t(this.props, o) || !a : Ut(this.props, o);
|
|
@@ -478,9 +477,9 @@ function vr(e, t) {
|
|
|
478
477
|
(lt.prototype = new Z()).isPureReactComponent = !0, lt.prototype.shouldComponentUpdate = function(e, t) {
|
|
479
478
|
return Ut(this.props, e) || Ut(this.state, t);
|
|
480
479
|
};
|
|
481
|
-
var
|
|
480
|
+
var Hn = T.__b;
|
|
482
481
|
T.__b = function(e) {
|
|
483
|
-
e.type && e.type.__f && e.ref && (e.props.ref = e.ref, e.ref = null),
|
|
482
|
+
e.type && e.type.__f && e.ref && (e.props.ref = e.ref, e.ref = null), Hn && Hn(e);
|
|
484
483
|
};
|
|
485
484
|
var Po = typeof Symbol < "u" && Symbol.for && Symbol.for("react.forward_ref") || 3911;
|
|
486
485
|
function ln(e) {
|
|
@@ -490,15 +489,15 @@ function ln(e) {
|
|
|
490
489
|
}
|
|
491
490
|
return t.$$typeof = Po, t.render = t, t.prototype.isReactComponent = t.__f = !0, t.displayName = "ForwardRef(" + (e.displayName || e.name) + ")", t;
|
|
492
491
|
}
|
|
493
|
-
var
|
|
494
|
-
return e == null ? null :
|
|
495
|
-
},
|
|
496
|
-
return e ?
|
|
492
|
+
var Dn = function(e, t) {
|
|
493
|
+
return e == null ? null : ne(ne(e).map(t));
|
|
494
|
+
}, vr = { map: Dn, forEach: Dn, count: function(e) {
|
|
495
|
+
return e ? ne(e).length : 0;
|
|
497
496
|
}, only: function(e) {
|
|
498
|
-
var t =
|
|
497
|
+
var t = ne(e);
|
|
499
498
|
if (t.length !== 1) throw "Children.only";
|
|
500
499
|
return t[0];
|
|
501
|
-
}, toArray:
|
|
500
|
+
}, toArray: ne }, Mo = T.__e;
|
|
502
501
|
T.__e = function(e, t, n, r) {
|
|
503
502
|
if (e.then) {
|
|
504
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);
|
|
@@ -601,7 +600,7 @@ function No(e) {
|
|
|
601
600
|
this.childNodes.splice(this.childNodes.indexOf(r) >>> 1, 1), t.i.removeChild(r);
|
|
602
601
|
} }), Pe(X(Lo, { context: t.context }, e.__v), t.l);
|
|
603
602
|
}
|
|
604
|
-
function
|
|
603
|
+
function _t(e, t) {
|
|
605
604
|
var n = X(No, { __v: e, i: t });
|
|
606
605
|
return n.containerInfo = t, n;
|
|
607
606
|
}
|
|
@@ -615,7 +614,7 @@ function vt(e, t) {
|
|
|
615
614
|
};
|
|
616
615
|
}, Se.prototype.render = function(e) {
|
|
617
616
|
this.u = null, this.o = /* @__PURE__ */ new Map();
|
|
618
|
-
var t =
|
|
617
|
+
var t = ne(e.children);
|
|
619
618
|
e.revealOrder && e.revealOrder[0] === "b" && t.reverse();
|
|
620
619
|
for (var n = t.length; n--; ) this.o.set(t[n], this.u = [1, 0, this.u]);
|
|
621
620
|
return e.children;
|
|
@@ -625,13 +624,13 @@ function vt(e, t) {
|
|
|
625
624
|
On(e, n, t);
|
|
626
625
|
});
|
|
627
626
|
};
|
|
628
|
-
var wr = typeof Symbol < "u" && Symbol.for && Symbol.for("react.element") || 60103,
|
|
627
|
+
var wr = typeof Symbol < "u" && Symbol.for && Symbol.for("react.element") || 60103, Ho = /^(?: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]/, Do = /^on(Ani|Tra|Tou|BeforeInp|Compo)/, Ao = /[A-Z0-9]/g, Oo = typeof document < "u", Io = function(e) {
|
|
629
628
|
return (typeof Symbol < "u" && typeof Symbol() == "symbol" ? /fil|che|rad/ : /fil|che|ra/).test(e);
|
|
630
629
|
};
|
|
631
630
|
function br(e, t, n) {
|
|
632
631
|
return t.__k == null && (t.textContent = ""), Pe(e, t), typeof n == "function" && n(), e ? e.__c : null;
|
|
633
632
|
}
|
|
634
|
-
function
|
|
633
|
+
function $r(e, t, n) {
|
|
635
634
|
return ur(e, t), typeof n == "function" && n(), e ? e.__c : null;
|
|
636
635
|
}
|
|
637
636
|
Z.prototype.isReactComponent = {}, ["componentWillMount", "componentWillReceiveProps", "componentWillUpdate"].forEach(function(e) {
|
|
@@ -663,12 +662,12 @@ T.vnode = function(e) {
|
|
|
663
662
|
var a = n[i];
|
|
664
663
|
if (!(i === "value" && "defaultValue" in n && a == null || Oo && i === "children" && r === "noscript" || i === "class" || i === "className")) {
|
|
665
664
|
var l = i.toLowerCase();
|
|
666
|
-
i === "defaultValue" && "value" in n && n.value == null ? i = "value" : i === "download" && a === !0 ? a = "" : l === "translate" && a === "no" ? a = !1 : l === "ondoubleclick" ? i = "ondblclick" : l !== "onchange" || r !== "input" && r !== "textarea" || Io(n.type) ? l === "onfocus" ? i = "onfocusin" : l === "onblur" ? i = "onfocusout" :
|
|
665
|
+
i === "defaultValue" && "value" in n && n.value == null ? i = "value" : i === "download" && a === !0 ? a = "" : l === "translate" && a === "no" ? a = !1 : l === "ondoubleclick" ? i = "ondblclick" : l !== "onchange" || r !== "input" && r !== "textarea" || Io(n.type) ? l === "onfocus" ? i = "onfocusin" : l === "onblur" ? i = "onfocusout" : Do.test(i) ? i = l : r.indexOf("-") === -1 && Ho.test(i) ? i = i.replace(Ao, "-$&").toLowerCase() : a === null && (a = void 0) : l = i = "oninput", l === "oninput" && o[i = l] && (i = "oninputCapture"), o[i] = a;
|
|
667
666
|
}
|
|
668
667
|
}
|
|
669
|
-
r == "select" && o.multiple && Array.isArray(o.value) && (o.value =
|
|
668
|
+
r == "select" && o.multiple && Array.isArray(o.value) && (o.value = ne(n.children).forEach(function(s) {
|
|
670
669
|
s.props.selected = o.value.indexOf(s.props.value) != -1;
|
|
671
|
-
})), r == "select" && o.defaultValue != null && (o.value =
|
|
670
|
+
})), r == "select" && o.defaultValue != null && (o.value = ne(n.children).forEach(function(s) {
|
|
672
671
|
s.props.selected = o.multiple ? o.defaultValue.indexOf(s.props.value) != -1 : o.defaultValue == s.props.value;
|
|
673
672
|
})), n.class && !n.className ? (o.class = n.class, Object.defineProperty(o, "className", Wo)) : (n.className && !n.class || n.class && n.className) && (o.class = o.className = n.className), t.props = o;
|
|
674
673
|
}(e), e.$$typeof = wr, Rn && Rn(e);
|
|
@@ -683,23 +682,23 @@ T.diffed = function(e) {
|
|
|
683
682
|
var t = e.props, n = e.__e;
|
|
684
683
|
n != null && e.type === "textarea" && "value" in t && t.value !== n.value && (n.value = t.value == null ? "" : t.value), sn = null;
|
|
685
684
|
};
|
|
686
|
-
var
|
|
685
|
+
var Er = { ReactCurrentDispatcher: { current: { readContext: function(e) {
|
|
687
686
|
return sn.__n[e.__c].props.value;
|
|
688
|
-
}, useCallback:
|
|
687
|
+
}, useCallback: A, useContext: W, useDebugValue: on, useDeferredValue: dn, useEffect: M, useId: fe, useImperativeHandle: rn, useInsertionEffect: pn, useLayoutEffect: Ce, useMemo: F, useReducer: Ke, useRef: $, useState: k, useSyncExternalStore: vt, useTransition: fn } } }, jo = "17.0.2";
|
|
689
688
|
function Cr(e) {
|
|
690
689
|
return X.bind(null, e);
|
|
691
690
|
}
|
|
692
|
-
function
|
|
691
|
+
function Ne(e) {
|
|
693
692
|
return !!e && e.$$typeof === wr;
|
|
694
693
|
}
|
|
695
694
|
function Tr(e) {
|
|
696
|
-
return
|
|
695
|
+
return Ne(e) && e.type === H;
|
|
697
696
|
}
|
|
698
697
|
function kr(e) {
|
|
699
698
|
return !!e && !!e.displayName && (typeof e.displayName == "string" || e.displayName instanceof String) && e.displayName.startsWith("Memo(");
|
|
700
699
|
}
|
|
701
700
|
function cn(e) {
|
|
702
|
-
return
|
|
701
|
+
return Ne(e) ? To.apply(null, arguments) : e;
|
|
703
702
|
}
|
|
704
703
|
function Fr(e) {
|
|
705
704
|
return !!e.__k && (Pe(null, e), !0);
|
|
@@ -721,12 +720,12 @@ function dn(e) {
|
|
|
721
720
|
function fn() {
|
|
722
721
|
return [!1, un];
|
|
723
722
|
}
|
|
724
|
-
var pn =
|
|
725
|
-
function
|
|
723
|
+
var pn = Ce, Lr = Ne;
|
|
724
|
+
function vt(e, t) {
|
|
726
725
|
var n = t(), r = k({ h: { __: n, v: t } }), o = r[0].h, i = r[1];
|
|
727
|
-
return
|
|
726
|
+
return Ce(function() {
|
|
728
727
|
o.__ = n, o.v = t, xt(o) && i({ h: o });
|
|
729
|
-
}, [e, n, t]),
|
|
728
|
+
}, [e, n, t]), M(function() {
|
|
730
729
|
return xt(o) && i({ h: o }), e(function() {
|
|
731
730
|
xt(o) && i({ h: o });
|
|
732
731
|
});
|
|
@@ -741,64 +740,64 @@ function xt(e) {
|
|
|
741
740
|
return !0;
|
|
742
741
|
}
|
|
743
742
|
}
|
|
744
|
-
var
|
|
743
|
+
var C = { useState: k, useId: fe, useReducer: Ke, useEffect: M, useLayoutEffect: Ce, useInsertionEffect: pn, useTransition: fn, useDeferredValue: dn, useSyncExternalStore: vt, startTransition: un, useRef: $, useImperativeHandle: rn, useMemo: F, useCallback: A, useContext: W, useDebugValue: on, version: "17.0.2", Children: vr, render: br, hydrate: $r, unmountComponentAtNode: Fr, createPortal: _t, createElement: X, createContext: q, createFactory: Cr, cloneElement: cn, createRef: en, Fragment: H, isValidElement: Ne, isElement: Lr, isFragment: Tr, isMemo: kr, findDOMNode: xr, Component: Z, PureComponent: lt, memo: _r, forwardRef: ln, flushSync: Pr, unstable_batchedUpdates: Sr, StrictMode: Mr, Suspense: We, SuspenseList: Se, lazy: gr, __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: Er };
|
|
745
744
|
const Wn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
746
745
|
__proto__: null,
|
|
747
|
-
Children:
|
|
746
|
+
Children: vr,
|
|
748
747
|
Component: Z,
|
|
749
748
|
Fragment: H,
|
|
750
749
|
PureComponent: lt,
|
|
751
750
|
StrictMode: Mr,
|
|
752
751
|
Suspense: We,
|
|
753
752
|
SuspenseList: Se,
|
|
754
|
-
__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:
|
|
753
|
+
__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: Er,
|
|
755
754
|
cloneElement: cn,
|
|
756
755
|
createContext: q,
|
|
757
756
|
createElement: X,
|
|
758
757
|
createFactory: Cr,
|
|
759
|
-
createPortal:
|
|
758
|
+
createPortal: _t,
|
|
760
759
|
createRef: en,
|
|
761
|
-
default:
|
|
760
|
+
default: C,
|
|
762
761
|
findDOMNode: xr,
|
|
763
762
|
flushSync: Pr,
|
|
764
763
|
forwardRef: ln,
|
|
765
|
-
hydrate:
|
|
764
|
+
hydrate: $r,
|
|
766
765
|
isElement: Lr,
|
|
767
766
|
isFragment: Tr,
|
|
768
767
|
isMemo: kr,
|
|
769
|
-
isValidElement:
|
|
768
|
+
isValidElement: Ne,
|
|
770
769
|
lazy: gr,
|
|
771
|
-
memo:
|
|
770
|
+
memo: _r,
|
|
772
771
|
render: br,
|
|
773
772
|
startTransition: un,
|
|
774
773
|
unmountComponentAtNode: Fr,
|
|
775
774
|
unstable_batchedUpdates: Sr,
|
|
776
|
-
useCallback:
|
|
775
|
+
useCallback: A,
|
|
777
776
|
useContext: W,
|
|
778
777
|
useDebugValue: on,
|
|
779
778
|
useDeferredValue: dn,
|
|
780
|
-
useEffect:
|
|
779
|
+
useEffect: M,
|
|
781
780
|
useErrorBoundary: Fo,
|
|
782
781
|
useId: fe,
|
|
783
782
|
useImperativeHandle: rn,
|
|
784
783
|
useInsertionEffect: pn,
|
|
785
|
-
useLayoutEffect:
|
|
786
|
-
useMemo:
|
|
784
|
+
useLayoutEffect: Ce,
|
|
785
|
+
useMemo: F,
|
|
787
786
|
useReducer: Ke,
|
|
788
|
-
useRef:
|
|
787
|
+
useRef: $,
|
|
789
788
|
useState: k,
|
|
790
|
-
useSyncExternalStore:
|
|
789
|
+
useSyncExternalStore: vt,
|
|
791
790
|
useTransition: fn,
|
|
792
791
|
version: jo
|
|
793
|
-
}, Symbol.toStringTag, { value: "Module" })), Nr = typeof document < "u" ?
|
|
792
|
+
}, Symbol.toStringTag, { value: "Module" })), Nr = typeof document < "u" ? C.useLayoutEffect : () => {
|
|
794
793
|
};
|
|
795
794
|
function zo(e) {
|
|
796
|
-
const t =
|
|
795
|
+
const t = $(null);
|
|
797
796
|
return Nr(() => {
|
|
798
797
|
t.current = e;
|
|
799
798
|
}, [
|
|
800
799
|
e
|
|
801
|
-
]),
|
|
800
|
+
]), A((...n) => {
|
|
802
801
|
const r = t.current;
|
|
803
802
|
return r == null ? void 0 : r(...n);
|
|
804
803
|
}, []);
|
|
@@ -843,8 +842,8 @@ class Zo {
|
|
|
843
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;
|
|
844
843
|
}
|
|
845
844
|
}
|
|
846
|
-
function
|
|
847
|
-
let t =
|
|
845
|
+
function Hr(e) {
|
|
846
|
+
let t = $({
|
|
848
847
|
isFocused: !1,
|
|
849
848
|
observer: null
|
|
850
849
|
});
|
|
@@ -857,7 +856,7 @@ function Dr(e) {
|
|
|
857
856
|
let n = zo((r) => {
|
|
858
857
|
e == null || e(r);
|
|
859
858
|
});
|
|
860
|
-
return
|
|
859
|
+
return A((r) => {
|
|
861
860
|
if (r.target instanceof HTMLButtonElement || r.target instanceof HTMLInputElement || r.target instanceof HTMLTextAreaElement || r.target instanceof HTMLSelectElement) {
|
|
862
861
|
t.current.isFocused = !0;
|
|
863
862
|
let o = r.target, i = (a) => {
|
|
@@ -890,13 +889,13 @@ function Dr(e) {
|
|
|
890
889
|
}
|
|
891
890
|
function Xo(e) {
|
|
892
891
|
let { isDisabled: t, onFocus: n, onBlur: r, onFocusChange: o } = e;
|
|
893
|
-
const i =
|
|
892
|
+
const i = A((s) => {
|
|
894
893
|
if (s.target === s.currentTarget)
|
|
895
894
|
return r && r(s), o && o(!1), !0;
|
|
896
895
|
}, [
|
|
897
896
|
r,
|
|
898
897
|
o
|
|
899
|
-
]), a =
|
|
898
|
+
]), a = Hr(i), l = A((s) => {
|
|
900
899
|
const u = Ge(s.target);
|
|
901
900
|
s.target === s.currentTarget && u.activeElement === s.target && (n && n(s), o && o(!0), a(s));
|
|
902
901
|
}, [
|
|
@@ -911,39 +910,39 @@ function Xo(e) {
|
|
|
911
910
|
}
|
|
912
911
|
};
|
|
913
912
|
}
|
|
914
|
-
let Ze = null, Wt = /* @__PURE__ */ new Set(), je = /* @__PURE__ */ new Map(),
|
|
913
|
+
let Ze = null, Wt = /* @__PURE__ */ new Set(), je = /* @__PURE__ */ new Map(), $e = !1, jt = !1;
|
|
915
914
|
const Qo = {
|
|
916
915
|
Tab: !0,
|
|
917
916
|
Escape: !0
|
|
918
917
|
};
|
|
919
|
-
function
|
|
918
|
+
function _n(e, t) {
|
|
920
919
|
for (let n of Wt) n(e, t);
|
|
921
920
|
}
|
|
922
921
|
function Jo(e) {
|
|
923
922
|
return !(e.metaKey || !Yo() && e.altKey || e.ctrlKey || e.key === "Control" || e.key === "Shift" || e.key === "Meta");
|
|
924
923
|
}
|
|
925
924
|
function st(e) {
|
|
926
|
-
|
|
925
|
+
$e = !0, Jo(e) && (Ze = "keyboard", _n("keyboard", e));
|
|
927
926
|
}
|
|
928
927
|
function K(e) {
|
|
929
|
-
Ze = "pointer", (e.type === "mousedown" || e.type === "pointerdown") && (
|
|
928
|
+
Ze = "pointer", (e.type === "mousedown" || e.type === "pointerdown") && ($e = !0, _n("pointer", e));
|
|
930
929
|
}
|
|
931
|
-
function
|
|
932
|
-
Go(e) && (
|
|
930
|
+
function Dr(e) {
|
|
931
|
+
Go(e) && ($e = !0, Ze = "virtual");
|
|
933
932
|
}
|
|
934
933
|
function Ar(e) {
|
|
935
|
-
e.target === window || e.target === document || (
|
|
934
|
+
e.target === window || e.target === document || (!$e && !jt && (Ze = "virtual", _n("virtual", e)), $e = !1, jt = !1);
|
|
936
935
|
}
|
|
937
936
|
function Or() {
|
|
938
|
-
|
|
937
|
+
$e = !1, jt = !0;
|
|
939
938
|
}
|
|
940
939
|
function zt(e) {
|
|
941
940
|
if (typeof window > "u" || je.get(me(e))) return;
|
|
942
941
|
const t = me(e), n = Ge(e);
|
|
943
942
|
let r = t.HTMLElement.prototype.focus;
|
|
944
943
|
t.HTMLElement.prototype.focus = function() {
|
|
945
|
-
|
|
946
|
-
}, n.addEventListener("keydown", st, !0), n.addEventListener("keyup", st, !0), n.addEventListener("click",
|
|
944
|
+
$e = !0, r.apply(this, arguments);
|
|
945
|
+
}, n.addEventListener("keydown", st, !0), n.addEventListener("keyup", st, !0), n.addEventListener("click", Dr, !0), t.addEventListener("focus", Ar, !0), t.addEventListener("blur", Or, !1), typeof PointerEvent < "u" ? (n.addEventListener("pointerdown", K, !0), n.addEventListener("pointermove", K, !0), n.addEventListener("pointerup", K, !0)) : (n.addEventListener("mousedown", K, !0), n.addEventListener("mousemove", K, !0), n.addEventListener("mouseup", K, !0)), t.addEventListener("beforeunload", () => {
|
|
947
946
|
Ir(e);
|
|
948
947
|
}, {
|
|
949
948
|
once: !0
|
|
@@ -953,7 +952,7 @@ function zt(e) {
|
|
|
953
952
|
}
|
|
954
953
|
const Ir = (e, t) => {
|
|
955
954
|
const n = me(e), r = Ge(e);
|
|
956
|
-
t && r.removeEventListener("DOMContentLoaded", t), je.has(n) && (n.HTMLElement.prototype.focus = je.get(n).focus, r.removeEventListener("keydown", st, !0), r.removeEventListener("keyup", st, !0), r.removeEventListener("click",
|
|
955
|
+
t && r.removeEventListener("DOMContentLoaded", t), je.has(n) && (n.HTMLElement.prototype.focus = je.get(n).focus, r.removeEventListener("keydown", st, !0), r.removeEventListener("keyup", st, !0), r.removeEventListener("click", Dr, !0), n.removeEventListener("focus", Ar, !0), n.removeEventListener("blur", Or, !1), typeof PointerEvent < "u" ? (r.removeEventListener("pointerdown", K, !0), r.removeEventListener("pointermove", K, !0), r.removeEventListener("pointerup", K, !0)) : (r.removeEventListener("mousedown", K, !0), r.removeEventListener("mousemove", K, !0), r.removeEventListener("mouseup", K, !0)), je.delete(n));
|
|
957
956
|
};
|
|
958
957
|
function ei(e) {
|
|
959
958
|
const t = Ge(e);
|
|
@@ -983,7 +982,7 @@ function ni(e, t, n) {
|
|
|
983
982
|
return e = e || (n == null ? void 0 : n.target) instanceof o && !ti.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 a && (n == null ? void 0 : n.target.isContentEditable), !(e && t === "keyboard" && n instanceof l && !Qo[n.key]);
|
|
984
983
|
}
|
|
985
984
|
function ri(e, t, n) {
|
|
986
|
-
zt(),
|
|
985
|
+
zt(), M(() => {
|
|
987
986
|
let r = (o, i) => {
|
|
988
987
|
ni(!!(n != null && n.isTextInput), o, i) && e(Rr());
|
|
989
988
|
};
|
|
@@ -993,15 +992,15 @@ function ri(e, t, n) {
|
|
|
993
992
|
}, t);
|
|
994
993
|
}
|
|
995
994
|
function oi(e) {
|
|
996
|
-
let { isDisabled: t, onBlurWithin: n, onFocusWithin: r, onFocusWithinChange: o } = e, i =
|
|
995
|
+
let { isDisabled: t, onBlurWithin: n, onFocusWithin: r, onFocusWithinChange: o } = e, i = $({
|
|
997
996
|
isFocusWithin: !1
|
|
998
|
-
}), a =
|
|
997
|
+
}), a = A((u) => {
|
|
999
998
|
i.current.isFocusWithin && !u.currentTarget.contains(u.relatedTarget) && (i.current.isFocusWithin = !1, n && n(u), o && o(!1));
|
|
1000
999
|
}, [
|
|
1001
1000
|
n,
|
|
1002
1001
|
o,
|
|
1003
1002
|
i
|
|
1004
|
-
]), l =
|
|
1003
|
+
]), l = Hr(a), s = A((u) => {
|
|
1005
1004
|
!i.current.isFocusWithin && document.activeElement === u.target && (r && r(u), o && o(!0), i.current.isFocusWithin = !0, l(u));
|
|
1006
1005
|
}, [
|
|
1007
1006
|
r,
|
|
@@ -1037,45 +1036,45 @@ function ii() {
|
|
|
1037
1036
|
};
|
|
1038
1037
|
}
|
|
1039
1038
|
function ai(e) {
|
|
1040
|
-
let { onHoverStart: t, onHoverChange: n, onHoverEnd: r, isDisabled: o } = e, [i, a] = k(!1), l =
|
|
1039
|
+
let { onHoverStart: t, onHoverChange: n, onHoverEnd: r, isDisabled: o } = e, [i, a] = k(!1), l = $({
|
|
1041
1040
|
isHovered: !1,
|
|
1042
1041
|
ignoreEmulatedMouseEvents: !1,
|
|
1043
1042
|
pointerType: "",
|
|
1044
1043
|
target: null
|
|
1045
1044
|
}).current;
|
|
1046
|
-
|
|
1047
|
-
let { hoverProps: s, triggerHoverEnd: u } =
|
|
1048
|
-
let d = (f,
|
|
1049
|
-
if (l.pointerType =
|
|
1045
|
+
M(ii, []);
|
|
1046
|
+
let { hoverProps: s, triggerHoverEnd: u } = F(() => {
|
|
1047
|
+
let d = (f, v) => {
|
|
1048
|
+
if (l.pointerType = v, o || v === "touch" || l.isHovered || !f.currentTarget.contains(f.target)) return;
|
|
1050
1049
|
l.isHovered = !0;
|
|
1051
|
-
let
|
|
1052
|
-
l.target =
|
|
1050
|
+
let h = f.currentTarget;
|
|
1051
|
+
l.target = h, t && t({
|
|
1053
1052
|
type: "hoverstart",
|
|
1054
|
-
target:
|
|
1055
|
-
pointerType:
|
|
1053
|
+
target: h,
|
|
1054
|
+
pointerType: v
|
|
1056
1055
|
}), n && n(!0), a(!0);
|
|
1057
|
-
}, c = (f,
|
|
1058
|
-
if (l.pointerType = "", l.target = null,
|
|
1056
|
+
}, c = (f, v) => {
|
|
1057
|
+
if (l.pointerType = "", l.target = null, v === "touch" || !l.isHovered) return;
|
|
1059
1058
|
l.isHovered = !1;
|
|
1060
|
-
let
|
|
1059
|
+
let h = f.currentTarget;
|
|
1061
1060
|
r && r({
|
|
1062
1061
|
type: "hoverend",
|
|
1063
|
-
target:
|
|
1064
|
-
pointerType:
|
|
1062
|
+
target: h,
|
|
1063
|
+
pointerType: v
|
|
1065
1064
|
}), n && n(!1), a(!1);
|
|
1066
|
-
},
|
|
1067
|
-
return typeof PointerEvent < "u" ? (
|
|
1065
|
+
}, _ = {};
|
|
1066
|
+
return typeof PointerEvent < "u" ? (_.onPointerEnter = (f) => {
|
|
1068
1067
|
ct && f.pointerType === "mouse" || d(f, f.pointerType);
|
|
1069
|
-
},
|
|
1068
|
+
}, _.onPointerLeave = (f) => {
|
|
1070
1069
|
!o && f.currentTarget.contains(f.target) && c(f, f.pointerType);
|
|
1071
|
-
}) : (
|
|
1070
|
+
}) : (_.onTouchStart = () => {
|
|
1072
1071
|
l.ignoreEmulatedMouseEvents = !0;
|
|
1073
|
-
},
|
|
1072
|
+
}, _.onMouseEnter = (f) => {
|
|
1074
1073
|
!l.ignoreEmulatedMouseEvents && !ct && d(f, "mouse"), l.ignoreEmulatedMouseEvents = !1;
|
|
1075
|
-
},
|
|
1074
|
+
}, _.onMouseLeave = (f) => {
|
|
1076
1075
|
!o && f.currentTarget.contains(f.target) && c(f, "mouse");
|
|
1077
1076
|
}), {
|
|
1078
|
-
hoverProps:
|
|
1077
|
+
hoverProps: _,
|
|
1079
1078
|
triggerHoverEnd: c
|
|
1080
1079
|
};
|
|
1081
1080
|
}, [
|
|
@@ -1085,7 +1084,7 @@ function ai(e) {
|
|
|
1085
1084
|
o,
|
|
1086
1085
|
l
|
|
1087
1086
|
]);
|
|
1088
|
-
return
|
|
1087
|
+
return M(() => {
|
|
1089
1088
|
o && u({
|
|
1090
1089
|
currentTarget: l.target
|
|
1091
1090
|
}, l.pointerType);
|
|
@@ -1097,10 +1096,10 @@ function ai(e) {
|
|
|
1097
1096
|
};
|
|
1098
1097
|
}
|
|
1099
1098
|
function li(e = {}) {
|
|
1100
|
-
let { autoFocus: t = !1, isTextInput: n, within: r } = e, o =
|
|
1099
|
+
let { autoFocus: t = !1, isTextInput: n, within: r } = e, o = $({
|
|
1101
1100
|
isFocused: !1,
|
|
1102
1101
|
isFocusVisible: t || Rr()
|
|
1103
|
-
}), [i, a] = k(!1), [l, s] = k(() => o.current.isFocused && o.current.isFocusVisible), u =
|
|
1102
|
+
}), [i, a] = k(!1), [l, s] = k(() => o.current.isFocused && o.current.isFocusVisible), u = A(() => s(o.current.isFocused && o.current.isFocusVisible), []), d = A((f) => {
|
|
1104
1103
|
o.current.isFocused = f, a(f), u();
|
|
1105
1104
|
}, [
|
|
1106
1105
|
u
|
|
@@ -1113,14 +1112,14 @@ function li(e = {}) {
|
|
|
1113
1112
|
let { focusProps: c } = Xo({
|
|
1114
1113
|
isDisabled: r,
|
|
1115
1114
|
onFocusChange: d
|
|
1116
|
-
}), { focusWithinProps:
|
|
1115
|
+
}), { focusWithinProps: _ } = oi({
|
|
1117
1116
|
isDisabled: !r,
|
|
1118
1117
|
onFocusWithinChange: d
|
|
1119
1118
|
});
|
|
1120
1119
|
return {
|
|
1121
1120
|
isFocused: i,
|
|
1122
1121
|
isFocusVisible: l,
|
|
1123
|
-
focusProps: r ?
|
|
1122
|
+
focusProps: r ? _ : c
|
|
1124
1123
|
};
|
|
1125
1124
|
}
|
|
1126
1125
|
var si = Object.defineProperty, ci = (e, t, n) => t in e ? si(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Pt = (e, t, n) => (ci(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
@@ -1199,20 +1198,20 @@ function pe() {
|
|
|
1199
1198
|
}
|
|
1200
1199
|
function yt() {
|
|
1201
1200
|
let [e] = k(pe);
|
|
1202
|
-
return
|
|
1201
|
+
return M(() => () => e.dispose(), [e]), e;
|
|
1203
1202
|
}
|
|
1204
1203
|
let j = (e, t) => {
|
|
1205
|
-
ge.isServer ?
|
|
1204
|
+
ge.isServer ? M(e, t) : Ce(e, t);
|
|
1206
1205
|
};
|
|
1207
|
-
function
|
|
1208
|
-
let t =
|
|
1206
|
+
function Te(e) {
|
|
1207
|
+
let t = $(e);
|
|
1209
1208
|
return j(() => {
|
|
1210
1209
|
t.current = e;
|
|
1211
1210
|
}, [e]), t;
|
|
1212
1211
|
}
|
|
1213
|
-
let
|
|
1214
|
-
let t =
|
|
1215
|
-
return
|
|
1212
|
+
let N = function(e) {
|
|
1213
|
+
let t = Te(e);
|
|
1214
|
+
return C.useCallback((...n) => t.current(...n), [t]);
|
|
1216
1215
|
};
|
|
1217
1216
|
function di(e) {
|
|
1218
1217
|
let t = e.width / 2, n = e.height / 2;
|
|
@@ -1222,9 +1221,9 @@ function fi(e, t) {
|
|
|
1222
1221
|
return !(!e || !t || e.right < t.left || e.left > t.right || e.bottom < t.top || e.top > t.bottom);
|
|
1223
1222
|
}
|
|
1224
1223
|
function pi({ disabled: e = !1 } = {}) {
|
|
1225
|
-
let t =
|
|
1224
|
+
let t = $(null), [n, r] = k(!1), o = yt(), i = N(() => {
|
|
1226
1225
|
t.current = null, r(!1), o.dispose();
|
|
1227
|
-
}), a =
|
|
1226
|
+
}), a = N((l) => {
|
|
1228
1227
|
if (o.dispose(), t.current === null) {
|
|
1229
1228
|
t.current = l.currentTarget, r(!0);
|
|
1230
1229
|
{
|
|
@@ -1240,9 +1239,9 @@ function pi({ disabled: e = !1 } = {}) {
|
|
|
1240
1239
|
});
|
|
1241
1240
|
return { pressed: n, pressProps: e ? {} : { onPointerDown: a, onPointerUp: i, onClick: i } };
|
|
1242
1241
|
}
|
|
1243
|
-
let
|
|
1242
|
+
let _i = q(void 0);
|
|
1244
1243
|
function Vr() {
|
|
1245
|
-
return W(
|
|
1244
|
+
return W(_i);
|
|
1246
1245
|
}
|
|
1247
1246
|
function qt(...e) {
|
|
1248
1247
|
return Array.from(new Set(e.flatMap((t) => typeof t == "string" ? t.split(" ") : []))).filter(Boolean).join(" ");
|
|
@@ -1257,7 +1256,7 @@ function de(e, t, ...n) {
|
|
|
1257
1256
|
}
|
|
1258
1257
|
var ut = ((e) => (e[e.None = 0] = "None", e[e.RenderStrategy = 1] = "RenderStrategy", e[e.Static = 2] = "Static", e))(ut || {}), ue = ((e) => (e[e.Unmount = 0] = "Unmount", e[e.Hidden = 1] = "Hidden", e))(ue || {});
|
|
1259
1258
|
function Y({ ourProps: e, theirProps: t, slot: n, defaultTag: r, features: o, visible: i = !0, name: a, mergeRefs: l }) {
|
|
1260
|
-
l = l ??
|
|
1259
|
+
l = l ?? vi;
|
|
1261
1260
|
let s = Ur(t, e);
|
|
1262
1261
|
if (i) return rt(s, n, r, a, l);
|
|
1263
1262
|
let u = o ?? 0;
|
|
@@ -1280,26 +1279,26 @@ function rt(e, t = {}, n, r, o) {
|
|
|
1280
1279
|
"className" in s && s.className && typeof s.className == "function" && (s.className = s.className(t)), s["aria-labelledby"] && s["aria-labelledby"] === s.id && (s["aria-labelledby"] = void 0);
|
|
1281
1280
|
let c = {};
|
|
1282
1281
|
if (t) {
|
|
1283
|
-
let
|
|
1284
|
-
for (let [
|
|
1285
|
-
if (
|
|
1282
|
+
let _ = !1, f = [];
|
|
1283
|
+
for (let [v, h] of Object.entries(t)) typeof h == "boolean" && (_ = !0), h === !0 && f.push(v.replace(/([A-Z])/g, (y) => `-${y.toLowerCase()}`));
|
|
1284
|
+
if (_) {
|
|
1286
1285
|
c["data-headlessui-state"] = f.join(" ");
|
|
1287
|
-
for (let
|
|
1286
|
+
for (let v of f) c[`data-${v}`] = "";
|
|
1288
1287
|
}
|
|
1289
1288
|
}
|
|
1290
|
-
if (i === H && (Object.keys(
|
|
1291
|
-
if (Object.keys(
|
|
1292
|
-
`), "", "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((
|
|
1289
|
+
if (i === H && (Object.keys(_e(s)).length > 0 || Object.keys(_e(c)).length > 0)) if (!Ne(d) || Array.isArray(d) && d.length > 1) {
|
|
1290
|
+
if (Object.keys(_e(s)).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(_e(s)).concat(Object.keys(_e(c))).map((_) => ` - ${_}`).join(`
|
|
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((_) => ` - ${_}`).join(`
|
|
1293
1292
|
`)].join(`
|
|
1294
1293
|
`));
|
|
1295
1294
|
} else {
|
|
1296
|
-
let
|
|
1297
|
-
for (let
|
|
1298
|
-
return cn(d, Object.assign({},
|
|
1295
|
+
let _ = d.props, f = _ == null ? void 0 : _.className, v = typeof f == "function" ? (...m) => qt(f(...m), s.className) : qt(f, s.className), h = v ? { className: v } : {}, y = Ur(d.props, _e(Mt(s, ["ref"])));
|
|
1296
|
+
for (let m in c) m in y && delete c[m];
|
|
1297
|
+
return cn(d, Object.assign({}, y, c, u, { ref: o(d.ref, u.ref) }, h));
|
|
1299
1298
|
}
|
|
1300
1299
|
return X(i, Object.assign({}, Mt(s, ["ref"]), i !== H && u, i !== H && c), d);
|
|
1301
1300
|
}
|
|
1302
|
-
function
|
|
1301
|
+
function vi(...e) {
|
|
1303
1302
|
return e.every((t) => t == null) ? void 0 : (t) => {
|
|
1304
1303
|
for (let n of e) n != null && (typeof n == "function" ? n(t) : n.current = t);
|
|
1305
1304
|
};
|
|
@@ -1337,7 +1336,7 @@ function z(e) {
|
|
|
1337
1336
|
var t;
|
|
1338
1337
|
return Object.assign(ln(e), { displayName: (t = e.displayName) != null ? t : e.name });
|
|
1339
1338
|
}
|
|
1340
|
-
function
|
|
1339
|
+
function _e(e) {
|
|
1341
1340
|
let t = Object.assign({}, e);
|
|
1342
1341
|
for (let n in t) t[n] === void 0 && delete t[n];
|
|
1343
1342
|
return t;
|
|
@@ -1350,8 +1349,8 @@ function Mt(e, t = []) {
|
|
|
1350
1349
|
let mi = "button";
|
|
1351
1350
|
function yi(e, t) {
|
|
1352
1351
|
var n;
|
|
1353
|
-
let r = Vr(), { disabled: o = r || !1, autoFocus: i = !1, ...a } = e, { isFocusVisible: l, focusProps: s } = li({ autoFocus: i }), { isHovered: u, hoverProps: d } = ai({ isDisabled: o }), { pressed: c, pressProps:
|
|
1354
|
-
return Y({ ourProps: f, theirProps: a, slot:
|
|
1352
|
+
let r = Vr(), { disabled: o = r || !1, autoFocus: i = !1, ...a } = e, { isFocusVisible: l, focusProps: s } = li({ autoFocus: i }), { isHovered: u, hoverProps: d } = ai({ isDisabled: o }), { pressed: c, pressProps: _ } = pi({ disabled: o }), f = hi({ ref: t, type: (n = a.type) != null ? n : "button", disabled: o || void 0, autoFocus: i }, s, d, _), v = F(() => ({ disabled: o, hover: u, focus: l, active: c, autofocus: i }), [o, u, l, c, i]);
|
|
1353
|
+
return Y({ ourProps: f, theirProps: a, slot: v, defaultTag: mi, name: "Button" });
|
|
1355
1354
|
}
|
|
1356
1355
|
let gi = z(yi), wi = "div";
|
|
1357
1356
|
var dt = ((e) => (e[e.None = 1] = "None", e[e.Focusable = 2] = "Focusable", e[e.Hidden = 4] = "Hidden", e))(dt || {});
|
|
@@ -1360,31 +1359,31 @@ function bi(e, t) {
|
|
|
1360
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" } } };
|
|
1361
1360
|
return Y({ ourProps: i, theirProps: o, slot: {}, defaultTag: wi, name: "Hidden" });
|
|
1362
1361
|
}
|
|
1363
|
-
let Yt = z(bi),
|
|
1364
|
-
function
|
|
1365
|
-
let t = W(
|
|
1366
|
-
if (!t) return
|
|
1362
|
+
let Yt = z(bi), $i = q(null);
|
|
1363
|
+
function Ei({ children: e }) {
|
|
1364
|
+
let t = W($i);
|
|
1365
|
+
if (!t) return C.createElement(C.Fragment, null, e);
|
|
1367
1366
|
let { target: n } = t;
|
|
1368
|
-
return n ?
|
|
1367
|
+
return n ? _t(C.createElement(C.Fragment, null, e), n) : null;
|
|
1369
1368
|
}
|
|
1370
1369
|
let Wr = Symbol();
|
|
1371
1370
|
function Ci(e, t = !0) {
|
|
1372
1371
|
return Object.assign(e, { [Wr]: t });
|
|
1373
1372
|
}
|
|
1374
|
-
function
|
|
1375
|
-
let t =
|
|
1376
|
-
|
|
1373
|
+
function Q(...e) {
|
|
1374
|
+
let t = $(e);
|
|
1375
|
+
M(() => {
|
|
1377
1376
|
t.current = e;
|
|
1378
1377
|
}, [e]);
|
|
1379
|
-
let n =
|
|
1378
|
+
let n = N((r) => {
|
|
1380
1379
|
for (let o of t.current) o != null && (typeof o == "function" ? o(r) : o.current = r);
|
|
1381
1380
|
});
|
|
1382
1381
|
return e.every((r) => r == null || (r == null ? void 0 : r[Wr])) ? void 0 : n;
|
|
1383
1382
|
}
|
|
1384
|
-
let
|
|
1385
|
-
|
|
1383
|
+
let vn = q(null);
|
|
1384
|
+
vn.displayName = "DescriptionContext";
|
|
1386
1385
|
function jr() {
|
|
1387
|
-
let e = W(
|
|
1386
|
+
let e = W(vn);
|
|
1388
1387
|
if (e === null) {
|
|
1389
1388
|
let t = new Error("You used a <Description /> component, but it is not inside a relevant parent.");
|
|
1390
1389
|
throw Error.captureStackTrace && Error.captureStackTrace(t, jr), t;
|
|
@@ -1393,19 +1392,19 @@ function jr() {
|
|
|
1393
1392
|
}
|
|
1394
1393
|
function Ti() {
|
|
1395
1394
|
let [e, t] = k([]);
|
|
1396
|
-
return [e.length > 0 ? e.join(" ") : void 0,
|
|
1397
|
-
let r =
|
|
1395
|
+
return [e.length > 0 ? e.join(" ") : void 0, F(() => function(n) {
|
|
1396
|
+
let r = N((i) => (t((a) => [...a, i]), () => t((a) => {
|
|
1398
1397
|
let l = a.slice(), s = l.indexOf(i);
|
|
1399
1398
|
return s !== -1 && l.splice(s, 1), l;
|
|
1400
|
-
}))), o =
|
|
1401
|
-
return
|
|
1399
|
+
}))), o = F(() => ({ 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 C.createElement(vn.Provider, { value: o }, n.children);
|
|
1402
1401
|
}, [t])];
|
|
1403
1402
|
}
|
|
1404
1403
|
let ki = "p";
|
|
1405
1404
|
function Fi(e, t) {
|
|
1406
|
-
let n = fe(), r = Vr(), { id: o = `headlessui-description-${n}`, ...i } = e, a = jr(), l =
|
|
1405
|
+
let n = fe(), r = Vr(), { id: o = `headlessui-description-${n}`, ...i } = e, a = jr(), l = Q(t);
|
|
1407
1406
|
j(() => a.register(o), [o, a.register]);
|
|
1408
|
-
let s = r || !1, u =
|
|
1407
|
+
let s = r || !1, u = F(() => ({ ...a.slot, disabled: s }), [a.slot, s]), d = { ref: l, ...a.props, id: o };
|
|
1409
1408
|
return Y({ ourProps: d, theirProps: i, slot: u, defaultTag: ki, name: a.name || "Description" });
|
|
1410
1409
|
}
|
|
1411
1410
|
let xi = z(Fi), Si = Object.assign(xi, {});
|
|
@@ -1413,7 +1412,7 @@ var zr = ((e) => (e.Space = " ", e.Enter = "Enter", e.Escape = "Escape", e.Backs
|
|
|
1413
1412
|
let Pi = q(() => {
|
|
1414
1413
|
});
|
|
1415
1414
|
function Mi({ value: e, children: t }) {
|
|
1416
|
-
return
|
|
1415
|
+
return C.createElement(Pi.Provider, { value: e }, t);
|
|
1417
1416
|
}
|
|
1418
1417
|
let Li = class extends Map {
|
|
1419
1418
|
constructor(t) {
|
|
@@ -1436,7 +1435,7 @@ function Br(e, t) {
|
|
|
1436
1435
|
} };
|
|
1437
1436
|
}
|
|
1438
1437
|
function qr(e) {
|
|
1439
|
-
return
|
|
1438
|
+
return vt(e.subscribe, e.getSnapshot, e.getSnapshot);
|
|
1440
1439
|
}
|
|
1441
1440
|
let Ni = new Li(() => Br(() => [], { ADD(e) {
|
|
1442
1441
|
return this.includes(e) ? this : [...this, e];
|
|
@@ -1467,7 +1466,7 @@ function Bn(e) {
|
|
|
1467
1466
|
let r = Kt.get(e);
|
|
1468
1467
|
r && (r["aria-hidden"] === null ? e.removeAttribute("aria-hidden") : e.setAttribute("aria-hidden", r["aria-hidden"]), e.inert = r.inert, Kt.delete(e));
|
|
1469
1468
|
}
|
|
1470
|
-
function
|
|
1469
|
+
function Hi(e, { allowed: t, disallowed: n } = {}) {
|
|
1471
1470
|
let r = He(e, "inert-others");
|
|
1472
1471
|
j(() => {
|
|
1473
1472
|
var o, i;
|
|
@@ -1481,7 +1480,7 @@ function Di(e, { allowed: t, disallowed: n } = {}) {
|
|
|
1481
1480
|
if (!u) continue;
|
|
1482
1481
|
let d = s.parentElement;
|
|
1483
1482
|
for (; d && d !== u.body; ) {
|
|
1484
|
-
for (let c of d.children) l.some((
|
|
1483
|
+
for (let c of d.children) l.some((_) => c.contains(_)) || a.add(zn(c));
|
|
1485
1484
|
d = d.parentElement;
|
|
1486
1485
|
}
|
|
1487
1486
|
}
|
|
@@ -1489,11 +1488,11 @@ function Di(e, { allowed: t, disallowed: n } = {}) {
|
|
|
1489
1488
|
}, [r, t, n]);
|
|
1490
1489
|
}
|
|
1491
1490
|
function Yr(e, t, n) {
|
|
1492
|
-
let r =
|
|
1491
|
+
let r = Te((o) => {
|
|
1493
1492
|
let i = o.getBoundingClientRect();
|
|
1494
1493
|
i.x === 0 && i.y === 0 && i.width === 0 && i.height === 0 && n();
|
|
1495
1494
|
});
|
|
1496
|
-
|
|
1495
|
+
M(() => {
|
|
1497
1496
|
if (!e) return;
|
|
1498
1497
|
let o = t === null ? null : t instanceof HTMLElement ? t : t.current;
|
|
1499
1498
|
if (!o) return;
|
|
@@ -1509,13 +1508,13 @@ function Yr(e, t, n) {
|
|
|
1509
1508
|
return () => i.dispose();
|
|
1510
1509
|
}, [t, r, e]);
|
|
1511
1510
|
}
|
|
1512
|
-
let Gt = ["[contentEditable=true]", "[tabindex]", "a[href]", "area[href]", "button:not([disabled])", "iframe", "input:not([disabled])", "select:not([disabled])", "textarea:not([disabled])"].map((e) => `${e}:not([tabindex='-1'])`).join(","),
|
|
1513
|
-
var
|
|
1511
|
+
let Gt = ["[contentEditable=true]", "[tabindex]", "a[href]", "area[href]", "button:not([disabled])", "iframe", "input:not([disabled])", "select:not([disabled])", "textarea:not([disabled])"].map((e) => `${e}:not([tabindex='-1'])`).join(","), Di = ["[data-autofocus]"].map((e) => `${e}:not([tabindex='-1'])`).join(",");
|
|
1512
|
+
var ee = ((e) => (e[e.First = 1] = "First", e[e.Previous = 2] = "Previous", e[e.Next = 4] = "Next", e[e.Last = 8] = "Last", e[e.WrapAround = 16] = "WrapAround", e[e.NoScroll = 32] = "NoScroll", e[e.AutoFocus = 64] = "AutoFocus", e))(ee || {}), Zt = ((e) => (e[e.Error = 0] = "Error", e[e.Overflow = 1] = "Overflow", e[e.Success = 2] = "Success", e[e.Underflow = 3] = "Underflow", e))(Zt || {}), Ai = ((e) => (e[e.Previous = -1] = "Previous", e[e.Next = 1] = "Next", e))(Ai || {});
|
|
1514
1513
|
function Oi(e = document.body) {
|
|
1515
1514
|
return e == null ? [] : Array.from(e.querySelectorAll(Gt)).sort((t, n) => Math.sign((t.tabIndex || Number.MAX_SAFE_INTEGER) - (n.tabIndex || Number.MAX_SAFE_INTEGER)));
|
|
1516
1515
|
}
|
|
1517
1516
|
function Ii(e = document.body) {
|
|
1518
|
-
return e == null ? [] : Array.from(e.querySelectorAll(
|
|
1517
|
+
return e == null ? [] : Array.from(e.querySelectorAll(Di)).sort((t, n) => Math.sign((t.tabIndex || Number.MAX_SAFE_INTEGER) - (n.tabIndex || Number.MAX_SAFE_INTEGER)));
|
|
1519
1518
|
}
|
|
1520
1519
|
var Kr = ((e) => (e[e.Strict = 0] = "Strict", e[e.Loose = 1] = "Loose", e))(Kr || {});
|
|
1521
1520
|
function Ri(e, t = 0) {
|
|
@@ -1537,7 +1536,7 @@ typeof window < "u" && typeof document < "u" && (document.addEventListener("keyd
|
|
|
1537
1536
|
}, !0), document.addEventListener("click", (e) => {
|
|
1538
1537
|
e.detail === 1 ? delete document.documentElement.dataset.headlessuiFocusVisible : e.detail === 0 && (document.documentElement.dataset.headlessuiFocusVisible = "");
|
|
1539
1538
|
}, !0));
|
|
1540
|
-
function
|
|
1539
|
+
function re(e) {
|
|
1541
1540
|
e == null || e.focus({ preventScroll: !0 });
|
|
1542
1541
|
}
|
|
1543
1542
|
let Ui = ["textarea", "input"].join(",");
|
|
@@ -1555,7 +1554,7 @@ function ji(e, t = (n) => n) {
|
|
|
1555
1554
|
}
|
|
1556
1555
|
function Be(e, t, { sorted: n = !0, relativeTo: r = null, skipElements: o = [] } = {}) {
|
|
1557
1556
|
let i = Array.isArray(e) ? e.length > 0 ? e[0].ownerDocument : document : e.ownerDocument, a = Array.isArray(e) ? n ? ji(e) : e : t & 64 ? Ii(e) : Oi(e);
|
|
1558
|
-
o.length > 0 && a.length > 1 && (a = a.filter((f) => !o.some((
|
|
1557
|
+
o.length > 0 && a.length > 1 && (a = a.filter((f) => !o.some((v) => v != null && "current" in v ? (v == null ? void 0 : v.current) === f : v === f))), r = r ?? i.activeElement;
|
|
1559
1558
|
let l = (() => {
|
|
1560
1559
|
if (t & 5) return 1;
|
|
1561
1560
|
if (t & 10) return -1;
|
|
@@ -1566,7 +1565,7 @@ function Be(e, t, { sorted: n = !0, relativeTo: r = null, skipElements: o = [] }
|
|
|
1566
1565
|
if (t & 4) return Math.max(0, a.indexOf(r)) + 1;
|
|
1567
1566
|
if (t & 8) return a.length - 1;
|
|
1568
1567
|
throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last");
|
|
1569
|
-
})(), u = t & 32 ? { preventScroll: !0 } : {}, d = 0, c = a.length,
|
|
1568
|
+
})(), u = t & 32 ? { preventScroll: !0 } : {}, d = 0, c = a.length, _;
|
|
1570
1569
|
do {
|
|
1571
1570
|
if (d >= c || d + c <= 0) return 0;
|
|
1572
1571
|
let f = s + d;
|
|
@@ -1575,9 +1574,9 @@ function Be(e, t, { sorted: n = !0, relativeTo: r = null, skipElements: o = [] }
|
|
|
1575
1574
|
if (f < 0) return 3;
|
|
1576
1575
|
if (f >= c) return 1;
|
|
1577
1576
|
}
|
|
1578
|
-
|
|
1579
|
-
} while (
|
|
1580
|
-
return t & 6 && Wi(
|
|
1577
|
+
_ = a[f], _ == null || _.focus(u), d += l;
|
|
1578
|
+
} while (_ !== i.activeElement);
|
|
1579
|
+
return t & 6 && Wi(_) && _.select(), 2;
|
|
1581
1580
|
}
|
|
1582
1581
|
function Gr() {
|
|
1583
1582
|
return /iPhone/gi.test(window.navigator.platform) || /Mac/gi.test(window.navigator.platform) && window.navigator.maxTouchPoints > 0;
|
|
@@ -1589,8 +1588,8 @@ function Bi() {
|
|
|
1589
1588
|
return Gr() || zi();
|
|
1590
1589
|
}
|
|
1591
1590
|
function Ie(e, t, n, r) {
|
|
1592
|
-
let o =
|
|
1593
|
-
|
|
1591
|
+
let o = Te(n);
|
|
1592
|
+
M(() => {
|
|
1594
1593
|
if (!e) return;
|
|
1595
1594
|
function i(a) {
|
|
1596
1595
|
o.current(a);
|
|
@@ -1599,8 +1598,8 @@ function Ie(e, t, n, r) {
|
|
|
1599
1598
|
}, [e, t, r]);
|
|
1600
1599
|
}
|
|
1601
1600
|
function Zr(e, t, n, r) {
|
|
1602
|
-
let o =
|
|
1603
|
-
|
|
1601
|
+
let o = Te(n);
|
|
1602
|
+
M(() => {
|
|
1604
1603
|
if (!e) return;
|
|
1605
1604
|
function i(a) {
|
|
1606
1605
|
o.current(a);
|
|
@@ -1610,20 +1609,20 @@ function Zr(e, t, n, r) {
|
|
|
1610
1609
|
}
|
|
1611
1610
|
const qn = 30;
|
|
1612
1611
|
function qi(e, t, n) {
|
|
1613
|
-
let r = He(e, "outside-click"), o =
|
|
1612
|
+
let r = He(e, "outside-click"), o = Te(n), i = A(function(s, u) {
|
|
1614
1613
|
if (s.defaultPrevented) return;
|
|
1615
1614
|
let d = u(s);
|
|
1616
1615
|
if (d === null || !d.getRootNode().contains(d) || !d.isConnected) return;
|
|
1617
|
-
let c = function
|
|
1618
|
-
return typeof f == "function" ?
|
|
1616
|
+
let c = function _(f) {
|
|
1617
|
+
return typeof f == "function" ? _(f()) : Array.isArray(f) || f instanceof Set ? f : [f];
|
|
1619
1618
|
}(t);
|
|
1620
|
-
for (let
|
|
1621
|
-
if (
|
|
1622
|
-
let f =
|
|
1619
|
+
for (let _ of c) {
|
|
1620
|
+
if (_ === null) continue;
|
|
1621
|
+
let f = _ instanceof HTMLElement ? _ : _.current;
|
|
1623
1622
|
if (f != null && f.contains(d) || s.composed && s.composedPath().includes(f)) return;
|
|
1624
1623
|
}
|
|
1625
1624
|
return !Ri(d, Kr.Loose) && d.tabIndex !== -1 && s.preventDefault(), o.current(s, d);
|
|
1626
|
-
}, [o]), a =
|
|
1625
|
+
}, [o]), a = $(null);
|
|
1627
1626
|
Ie(r, "pointerdown", (s) => {
|
|
1628
1627
|
var u, d;
|
|
1629
1628
|
a.current = ((d = (u = s.composedPath) == null ? void 0 : u.call(s)) == null ? void 0 : d[0]) || s.target;
|
|
@@ -1633,7 +1632,7 @@ function qi(e, t, n) {
|
|
|
1633
1632
|
}, !0), Ie(r, "click", (s) => {
|
|
1634
1633
|
Bi() || a.current && (i(s, () => a.current), a.current = null);
|
|
1635
1634
|
}, !0);
|
|
1636
|
-
let l =
|
|
1635
|
+
let l = $({ x: 0, y: 0 });
|
|
1637
1636
|
Ie(r, "touchstart", (s) => {
|
|
1638
1637
|
l.current.x = s.touches[0].clientX, l.current.y = s.touches[0].clientY;
|
|
1639
1638
|
}, !0), Ie(r, "touchend", (s) => {
|
|
@@ -1642,11 +1641,11 @@ function qi(e, t, n) {
|
|
|
1642
1641
|
}, !0), Zr(r, "blur", (s) => i(s, () => window.document.activeElement instanceof HTMLIFrameElement ? window.document.activeElement : null), !0);
|
|
1643
1642
|
}
|
|
1644
1643
|
function Xe(...e) {
|
|
1645
|
-
return
|
|
1644
|
+
return F(() => ht(...e), [...e]);
|
|
1646
1645
|
}
|
|
1647
1646
|
function Xr(e, t, n, r) {
|
|
1648
|
-
let o =
|
|
1649
|
-
|
|
1647
|
+
let o = Te(n);
|
|
1648
|
+
M(() => {
|
|
1650
1649
|
e = e ?? window;
|
|
1651
1650
|
function i(a) {
|
|
1652
1651
|
o.current(a);
|
|
@@ -1761,7 +1760,7 @@ function Ji(e) {
|
|
|
1761
1760
|
};
|
|
1762
1761
|
}
|
|
1763
1762
|
function ea(e = 0) {
|
|
1764
|
-
let [t, n] = k(e), r =
|
|
1763
|
+
let [t, n] = k(e), r = A((s) => n(s), [t]), o = A((s) => n((u) => u | s), [t]), i = A((s) => (t & s) === s, [t]), a = A((s) => n((u) => u & ~s), [n]), l = A((s) => n((u) => u ^ s), [n]);
|
|
1765
1764
|
return { flags: t, setFlag: r, addFlag: o, hasFlag: i, removeFlag: a, toggleFlag: l };
|
|
1766
1765
|
}
|
|
1767
1766
|
var ta = ((e) => (e[e.None = 0] = "None", e[e.Closed = 1] = "Closed", e[e.Enter = 2] = "Enter", e[e.Leave = 4] = "Leave", e))(ta || {});
|
|
@@ -1771,20 +1770,20 @@ function na(e) {
|
|
|
1771
1770
|
return t;
|
|
1772
1771
|
}
|
|
1773
1772
|
function ra(e, t, n, r) {
|
|
1774
|
-
let [o, i] = k(n), { hasFlag: a, addFlag: l, removeFlag: s } = ea(e && o ? 3 : 0), u =
|
|
1775
|
-
return j(function
|
|
1773
|
+
let [o, i] = k(n), { hasFlag: a, addFlag: l, removeFlag: s } = ea(e && o ? 3 : 0), u = $(!1), d = $(!1), c = yt();
|
|
1774
|
+
return j(function _() {
|
|
1776
1775
|
var f;
|
|
1777
1776
|
if (!e) return;
|
|
1778
1777
|
n && i(!0);
|
|
1779
|
-
let
|
|
1780
|
-
return
|
|
1778
|
+
let v = t.current;
|
|
1779
|
+
return v ? ((f = r == null ? void 0 : r.start) == null || f.call(r, n), oa(v, { inFlight: u, prepare() {
|
|
1781
1780
|
d.current ? d.current = !1 : d.current = u.current, u.current = !0, !d.current && (n ? (l(3), s(4)) : (l(4), s(2)));
|
|
1782
1781
|
}, run() {
|
|
1783
1782
|
d.current ? n ? (s(3), l(4)) : (s(4), l(3)) : n ? s(1) : l(1);
|
|
1784
1783
|
}, done() {
|
|
1785
|
-
var
|
|
1786
|
-
d.current && typeof
|
|
1787
|
-
} })) : n ? (l(3), c.nextFrame(() =>
|
|
1784
|
+
var h;
|
|
1785
|
+
d.current && typeof v.getAnimations == "function" && v.getAnimations().length > 0 || (u.current = !1, s(7), n || i(!1), (h = r == null ? void 0 : r.end) == null || h.call(r, n));
|
|
1786
|
+
} })) : n ? (l(3), c.nextFrame(() => _())) : void 0;
|
|
1788
1787
|
}, [e, n, t, c]), e ? [o, { closed: a(1), enter: a(2), leave: a(4), transition: a(2) || a(4) }] : [n, { closed: void 0, enter: void 0, leave: void 0, transition: void 0 }];
|
|
1789
1788
|
}
|
|
1790
1789
|
function oa(e, { prepare: t, run: n, done: r, inFlight: o }) {
|
|
@@ -1797,7 +1796,7 @@ function ia(e, t) {
|
|
|
1797
1796
|
let n = Ji(t), r = pe();
|
|
1798
1797
|
if (!e) return r.dispose;
|
|
1799
1798
|
let { transitionDuration: o, transitionDelay: i } = getComputedStyle(e), [a, l] = [o, i].map((u) => {
|
|
1800
|
-
let [d = 0] = u.split(",").filter(Boolean).map((c) => c.includes("ms") ? parseFloat(c) : parseFloat(c) * 1e3).sort((c,
|
|
1799
|
+
let [d = 0] = u.split(",").filter(Boolean).map((c) => c.includes("ms") ? parseFloat(c) : parseFloat(c) * 1e3).sort((c, _) => _ - c);
|
|
1801
1800
|
return d;
|
|
1802
1801
|
}), s = a + l;
|
|
1803
1802
|
if (s !== 0) {
|
|
@@ -1805,8 +1804,8 @@ function ia(e, t) {
|
|
|
1805
1804
|
let c = d.setTimeout(() => {
|
|
1806
1805
|
n(), d.dispose();
|
|
1807
1806
|
}, s);
|
|
1808
|
-
d.addEventListener(e, "transitionrun", (
|
|
1809
|
-
|
|
1807
|
+
d.addEventListener(e, "transitionrun", (_) => {
|
|
1808
|
+
_.target === _.currentTarget && (c(), d.addEventListener(e, "transitioncancel", (f) => {
|
|
1810
1809
|
f.target === f.currentTarget && (n(), u());
|
|
1811
1810
|
}));
|
|
1812
1811
|
});
|
|
@@ -1826,8 +1825,8 @@ function aa(e, { inFlight: t, prepare: n }) {
|
|
|
1826
1825
|
e.style.transition = "none", n(), e.offsetHeight, e.style.transition = r;
|
|
1827
1826
|
}
|
|
1828
1827
|
function hn(e, t) {
|
|
1829
|
-
let n =
|
|
1830
|
-
|
|
1828
|
+
let n = $([]), r = N(e);
|
|
1829
|
+
M(() => {
|
|
1831
1830
|
let o = [...n.current];
|
|
1832
1831
|
for (let [i, a] of t.entries()) if (n.current[i] !== a) {
|
|
1833
1832
|
let l = r(t, o);
|
|
@@ -1842,10 +1841,10 @@ function wt() {
|
|
|
1842
1841
|
return W(gt);
|
|
1843
1842
|
}
|
|
1844
1843
|
function la({ value: e, children: t }) {
|
|
1845
|
-
return
|
|
1844
|
+
return C.createElement(gt.Provider, { value: e }, t);
|
|
1846
1845
|
}
|
|
1847
1846
|
function sa({ children: e }) {
|
|
1848
|
-
return
|
|
1847
|
+
return C.createElement(gt.Provider, { value: null }, e);
|
|
1849
1848
|
}
|
|
1850
1849
|
function ca(e) {
|
|
1851
1850
|
function t() {
|
|
@@ -1861,8 +1860,8 @@ ca(() => {
|
|
|
1861
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 });
|
|
1862
1861
|
});
|
|
1863
1862
|
function Qr(e) {
|
|
1864
|
-
let t =
|
|
1865
|
-
|
|
1863
|
+
let t = N(e), n = $(!1);
|
|
1864
|
+
M(() => (n.current = !1, () => {
|
|
1866
1865
|
n.current = !0, mt(() => {
|
|
1867
1866
|
n.current && t();
|
|
1868
1867
|
});
|
|
@@ -1875,16 +1874,16 @@ function ua() {
|
|
|
1875
1874
|
}
|
|
1876
1875
|
function Qe() {
|
|
1877
1876
|
let e = ua(), [t, n] = k(ge.isHandoffComplete);
|
|
1878
|
-
return t && ge.isHandoffComplete === !1 && n(!1),
|
|
1877
|
+
return t && ge.isHandoffComplete === !1 && n(!1), M(() => {
|
|
1879
1878
|
t !== !0 && n(!0);
|
|
1880
|
-
}, [t]),
|
|
1879
|
+
}, [t]), M(() => ge.handoff(), []), e ? !1 : t;
|
|
1881
1880
|
}
|
|
1882
1881
|
let Jr = q(!1);
|
|
1883
1882
|
function da() {
|
|
1884
1883
|
return W(Jr);
|
|
1885
1884
|
}
|
|
1886
1885
|
function Yn(e) {
|
|
1887
|
-
return
|
|
1886
|
+
return C.createElement(Jr.Provider, { value: e.force }, e.children);
|
|
1888
1887
|
}
|
|
1889
1888
|
function fa(e) {
|
|
1890
1889
|
let t = da(), n = W(to), r = Xe(e), [o, i] = k(() => {
|
|
@@ -1897,14 +1896,14 @@ function fa(e) {
|
|
|
1897
1896
|
let s = r.createElement("div");
|
|
1898
1897
|
return s.setAttribute("id", "headlessui-portal-root"), r.body.appendChild(s);
|
|
1899
1898
|
});
|
|
1900
|
-
return
|
|
1899
|
+
return M(() => {
|
|
1901
1900
|
o !== null && (r != null && r.body.contains(o) || r == null || r.body.appendChild(o));
|
|
1902
|
-
}, [o, r]),
|
|
1901
|
+
}, [o, r]), M(() => {
|
|
1903
1902
|
t || n !== null && i(n.current);
|
|
1904
1903
|
}, [n, i, t]), o;
|
|
1905
1904
|
}
|
|
1906
1905
|
let eo = H, pa = z(function(e, t) {
|
|
1907
|
-
let n = e, r =
|
|
1906
|
+
let n = e, r = $(null), o = Q(Ci((d) => {
|
|
1908
1907
|
r.current = d;
|
|
1909
1908
|
}), t), i = Xe(r), a = fa(r), [l] = k(() => {
|
|
1910
1909
|
var d;
|
|
@@ -1917,28 +1916,28 @@ let eo = H, pa = z(function(e, t) {
|
|
|
1917
1916
|
}, [s, l]), Qr(() => {
|
|
1918
1917
|
var d;
|
|
1919
1918
|
!a || !l || (l instanceof Node && a.contains(l) && a.removeChild(l), a.childNodes.length <= 0 && ((d = a.parentElement) == null || d.removeChild(a)));
|
|
1920
|
-
}), u ? !a || !l ? null :
|
|
1919
|
+
}), u ? !a || !l ? null : _t(Y({ ourProps: { ref: o }, theirProps: n, slot: {}, defaultTag: eo, name: "Portal" }), l) : null;
|
|
1921
1920
|
});
|
|
1922
|
-
function
|
|
1923
|
-
let n =
|
|
1924
|
-
return r ?
|
|
1921
|
+
function _a(e, t) {
|
|
1922
|
+
let n = Q(t), { enabled: r = !0, ...o } = e;
|
|
1923
|
+
return r ? C.createElement(pa, { ...o, ref: n }) : Y({ ourProps: { ref: n }, theirProps: o, slot: {}, defaultTag: eo, name: "Portal" });
|
|
1925
1924
|
}
|
|
1926
|
-
let
|
|
1925
|
+
let va = H, to = q(null);
|
|
1927
1926
|
function ha(e, t) {
|
|
1928
|
-
let { target: n, ...r } = e, o = { ref:
|
|
1929
|
-
return
|
|
1927
|
+
let { target: n, ...r } = e, o = { ref: Q(t) };
|
|
1928
|
+
return C.createElement(to.Provider, { value: n }, Y({ ourProps: o, theirProps: r, defaultTag: va, name: "Popover.Group" }));
|
|
1930
1929
|
}
|
|
1931
1930
|
let Xt = q(null);
|
|
1932
1931
|
function ma() {
|
|
1933
|
-
let e = W(Xt), t =
|
|
1932
|
+
let e = W(Xt), t = $([]), n = N((i) => (t.current.push(i), e && e.register(i), () => r(i))), r = N((i) => {
|
|
1934
1933
|
let a = t.current.indexOf(i);
|
|
1935
1934
|
a !== -1 && t.current.splice(a, 1), e && e.unregister(i);
|
|
1936
|
-
}), o =
|
|
1937
|
-
return [t,
|
|
1938
|
-
return
|
|
1935
|
+
}), o = F(() => ({ register: n, unregister: r, portals: t }), [n, r, t]);
|
|
1936
|
+
return [t, F(() => function({ children: i }) {
|
|
1937
|
+
return C.createElement(Xt.Provider, { value: o }, i);
|
|
1939
1938
|
}, [o])];
|
|
1940
1939
|
}
|
|
1941
|
-
let ya = z(
|
|
1940
|
+
let ya = z(_a), no = z(ha), ga = Object.assign(ya, { Group: no });
|
|
1942
1941
|
function wa(e, t = typeof document < "u" ? document.defaultView : null, n) {
|
|
1943
1942
|
let r = He(e, "escape");
|
|
1944
1943
|
Xr(t, "keydown", (o) => {
|
|
@@ -1956,29 +1955,29 @@ function ba() {
|
|
|
1956
1955
|
return t.addEventListener("change", o), () => t.removeEventListener("change", o);
|
|
1957
1956
|
}, [t]), n;
|
|
1958
1957
|
}
|
|
1959
|
-
function
|
|
1958
|
+
function $a({ defaultContainers: e = [], portals: t, mainTreeNodeRef: n } = {}) {
|
|
1960
1959
|
var r;
|
|
1961
|
-
let o =
|
|
1960
|
+
let o = $((r = n == null ? void 0 : n.current) != null ? r : null), i = Xe(o), a = N(() => {
|
|
1962
1961
|
var l, s, u;
|
|
1963
1962
|
let d = [];
|
|
1964
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));
|
|
1965
1964
|
if (t != null && t.current) for (let c of t.current) d.push(c);
|
|
1966
|
-
for (let c of (l = i == null ? void 0 : i.querySelectorAll("html > *, body > *")) != null ? l : []) c !== document.body && c !== document.head && c instanceof HTMLElement && c.id !== "headlessui-portal-root" && (c.contains(o.current) || c.contains((u = (s = o.current) == null ? void 0 : s.getRootNode()) == null ? void 0 : u.host) || d.some((
|
|
1965
|
+
for (let c of (l = i == null ? void 0 : i.querySelectorAll("html > *, body > *")) != null ? l : []) c !== document.body && c !== document.head && c instanceof HTMLElement && c.id !== "headlessui-portal-root" && (c.contains(o.current) || c.contains((u = (s = o.current) == null ? void 0 : s.getRootNode()) == null ? void 0 : u.host) || d.some((_) => c.contains(_)) || d.push(c));
|
|
1967
1966
|
return d;
|
|
1968
1967
|
});
|
|
1969
|
-
return { resolveContainers: a, contains:
|
|
1970
|
-
return n != null ? null :
|
|
1968
|
+
return { resolveContainers: a, contains: N((l) => a().some((s) => s.contains(l))), mainTreeNodeRef: o, MainTreeNode: F(() => function() {
|
|
1969
|
+
return n != null ? null : C.createElement(Yt, { features: dt.Hidden, ref: o });
|
|
1971
1970
|
}, [o, n]) };
|
|
1972
1971
|
}
|
|
1973
1972
|
function mn() {
|
|
1974
|
-
let e =
|
|
1973
|
+
let e = $(!1);
|
|
1975
1974
|
return j(() => (e.current = !0, () => {
|
|
1976
1975
|
e.current = !1;
|
|
1977
1976
|
}), []), e;
|
|
1978
1977
|
}
|
|
1979
1978
|
var Ve = ((e) => (e[e.Forwards = 0] = "Forwards", e[e.Backwards = 1] = "Backwards", e))(Ve || {});
|
|
1980
|
-
function
|
|
1981
|
-
let e =
|
|
1979
|
+
function Ea() {
|
|
1980
|
+
let e = $(0);
|
|
1982
1981
|
return Zr(!0, "keydown", (t) => {
|
|
1983
1982
|
t.key === "Tab" && (e.current = t.shiftKey ? 1 : 0);
|
|
1984
1983
|
}, !0), e;
|
|
@@ -1993,42 +1992,42 @@ function ro(e) {
|
|
|
1993
1992
|
let Ca = "div";
|
|
1994
1993
|
var he = ((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))(he || {});
|
|
1995
1994
|
function Ta(e, t) {
|
|
1996
|
-
let n =
|
|
1995
|
+
let n = $(null), r = Q(n, t), { initialFocus: o, initialFocusFallback: i, containers: a, features: l = 15, ...s } = e;
|
|
1997
1996
|
Qe() || (l = 0);
|
|
1998
1997
|
let u = Xe(n);
|
|
1999
1998
|
Sa(l, { ownerDocument: u });
|
|
2000
1999
|
let d = Pa(l, { ownerDocument: u, container: n, initialFocus: o, initialFocusFallback: i });
|
|
2001
2000
|
Ma(l, { ownerDocument: u, container: n, containers: a, previousActiveElement: d });
|
|
2002
|
-
let c =
|
|
2003
|
-
let
|
|
2004
|
-
|
|
2001
|
+
let c = Ea(), _ = N((m) => {
|
|
2002
|
+
let w = n.current;
|
|
2003
|
+
w && ((b) => b())(() => {
|
|
2005
2004
|
de(c.current, { [Ve.Forwards]: () => {
|
|
2006
|
-
Be(
|
|
2005
|
+
Be(w, ee.First, { skipElements: [m.relatedTarget, i] });
|
|
2007
2006
|
}, [Ve.Backwards]: () => {
|
|
2008
|
-
Be(
|
|
2007
|
+
Be(w, ee.Last, { skipElements: [m.relatedTarget, i] });
|
|
2009
2008
|
} });
|
|
2010
2009
|
});
|
|
2011
|
-
}), f = He(!!(l & 2), "focus-trap#tab-lock"),
|
|
2012
|
-
|
|
2013
|
-
|
|
2010
|
+
}), f = He(!!(l & 2), "focus-trap#tab-lock"), v = yt(), h = $(!1), y = { ref: r, onKeyDown(m) {
|
|
2011
|
+
m.key == "Tab" && (h.current = !0, v.requestAnimationFrame(() => {
|
|
2012
|
+
h.current = !1;
|
|
2014
2013
|
}));
|
|
2015
|
-
}, onBlur(
|
|
2014
|
+
}, onBlur(m) {
|
|
2016
2015
|
if (!(l & 4)) return;
|
|
2017
|
-
let
|
|
2018
|
-
n.current instanceof HTMLElement &&
|
|
2019
|
-
let
|
|
2020
|
-
|
|
2016
|
+
let w = ro(a);
|
|
2017
|
+
n.current instanceof HTMLElement && w.add(n.current);
|
|
2018
|
+
let b = m.relatedTarget;
|
|
2019
|
+
b instanceof HTMLElement && b.dataset.headlessuiFocusGuard !== "true" && (oo(w, b) || (h.current ? Be(n.current, de(c.current, { [Ve.Forwards]: () => ee.Next, [Ve.Backwards]: () => ee.Previous }) | ee.WrapAround, { relativeTo: m.target }) : m.target instanceof HTMLElement && re(m.target)));
|
|
2021
2020
|
} };
|
|
2022
|
-
return
|
|
2021
|
+
return C.createElement(C.Fragment, null, f && C.createElement(Yt, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: _, features: dt.Focusable }), Y({ ourProps: y, theirProps: s, defaultTag: Ca, name: "FocusTrap" }), f && C.createElement(Yt, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: _, features: dt.Focusable }));
|
|
2023
2022
|
}
|
|
2024
2023
|
let ka = z(Ta), Fa = Object.assign(ka, { features: he });
|
|
2025
2024
|
function xa(e = !0) {
|
|
2026
|
-
let t =
|
|
2025
|
+
let t = $(ce.slice());
|
|
2027
2026
|
return hn(([n], [r]) => {
|
|
2028
2027
|
r === !0 && n === !1 && mt(() => {
|
|
2029
2028
|
t.current.splice(0);
|
|
2030
2029
|
}), r === !1 && n === !0 && (t.current = ce.slice());
|
|
2031
|
-
}, [e, ce, t]),
|
|
2030
|
+
}, [e, ce, t]), N(() => {
|
|
2032
2031
|
var n;
|
|
2033
2032
|
return (n = t.current.find((r) => r != null && r.isConnected)) != null ? n : null;
|
|
2034
2033
|
});
|
|
@@ -2036,17 +2035,17 @@ function xa(e = !0) {
|
|
|
2036
2035
|
function Sa(e, { ownerDocument: t }) {
|
|
2037
2036
|
let n = !!(e & 8), r = xa(n);
|
|
2038
2037
|
hn(() => {
|
|
2039
|
-
n || (t == null ? void 0 : t.activeElement) === (t == null ? void 0 : t.body) &&
|
|
2038
|
+
n || (t == null ? void 0 : t.activeElement) === (t == null ? void 0 : t.body) && re(r());
|
|
2040
2039
|
}, [n]), Qr(() => {
|
|
2041
|
-
n &&
|
|
2040
|
+
n && re(r());
|
|
2042
2041
|
});
|
|
2043
2042
|
}
|
|
2044
2043
|
function Pa(e, { ownerDocument: t, container: n, initialFocus: r, initialFocusFallback: o }) {
|
|
2045
|
-
let i =
|
|
2044
|
+
let i = $(null), a = He(!!(e & 1), "focus-trap#initial-focus"), l = mn();
|
|
2046
2045
|
return hn(() => {
|
|
2047
2046
|
if (e === 0) return;
|
|
2048
2047
|
if (!a) {
|
|
2049
|
-
o != null && o.current &&
|
|
2048
|
+
o != null && o.current && re(o.current);
|
|
2050
2049
|
return;
|
|
2051
2050
|
}
|
|
2052
2051
|
let s = n.current;
|
|
@@ -2062,12 +2061,12 @@ function Pa(e, { ownerDocument: t, container: n, initialFocus: r, initialFocusFa
|
|
|
2062
2061
|
i.current = u;
|
|
2063
2062
|
return;
|
|
2064
2063
|
}
|
|
2065
|
-
if (r != null && r.current)
|
|
2064
|
+
if (r != null && r.current) re(r.current);
|
|
2066
2065
|
else {
|
|
2067
2066
|
if (e & 16) {
|
|
2068
|
-
if (Be(s,
|
|
2069
|
-
} else if (Be(s,
|
|
2070
|
-
if (o != null && o.current && (
|
|
2067
|
+
if (Be(s, ee.First | ee.AutoFocus) !== Zt.Error) return;
|
|
2068
|
+
} else if (Be(s, ee.First) !== Zt.Error) return;
|
|
2069
|
+
if (o != null && o.current && (re(o.current), (t == null ? void 0 : t.activeElement) === o.current)) return;
|
|
2071
2070
|
console.warn("There are no focusable elements inside the <FocusTrap />");
|
|
2072
2071
|
}
|
|
2073
2072
|
i.current = t == null ? void 0 : t.activeElement;
|
|
@@ -2083,7 +2082,7 @@ function Ma(e, { ownerDocument: t, container: n, containers: r, previousActiveEl
|
|
|
2083
2082
|
let u = o.current;
|
|
2084
2083
|
if (!u) return;
|
|
2085
2084
|
let d = l.target;
|
|
2086
|
-
d && d instanceof HTMLElement ? oo(s, d) ? (o.current = d,
|
|
2085
|
+
d && d instanceof HTMLElement ? oo(s, d) ? (o.current = d, re(d)) : (l.preventDefault(), l.stopPropagation(), re(u)) : re(o.current);
|
|
2087
2086
|
}, !0);
|
|
2088
2087
|
}
|
|
2089
2088
|
function oo(e, t) {
|
|
@@ -2092,7 +2091,7 @@ function oo(e, t) {
|
|
|
2092
2091
|
}
|
|
2093
2092
|
function io(e) {
|
|
2094
2093
|
var t;
|
|
2095
|
-
return !!(e.enter || e.enterFrom || e.enterTo || e.leave || e.leaveFrom || e.leaveTo) || ((t = e.as) != null ? t : lo) !== H ||
|
|
2094
|
+
return !!(e.enter || e.enterFrom || e.enterTo || e.leave || e.leaveFrom || e.leaveTo) || ((t = e.as) != null ? t : lo) !== H || C.Children.count(e.children) === 1;
|
|
2096
2095
|
}
|
|
2097
2096
|
let bt = q(null);
|
|
2098
2097
|
bt.displayName = "TransitionContext";
|
|
@@ -2102,110 +2101,110 @@ function Na() {
|
|
|
2102
2101
|
if (e === null) throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");
|
|
2103
2102
|
return e;
|
|
2104
2103
|
}
|
|
2105
|
-
function
|
|
2106
|
-
let e = W(
|
|
2104
|
+
function Ha() {
|
|
2105
|
+
let e = W($t);
|
|
2107
2106
|
if (e === null) throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");
|
|
2108
2107
|
return e;
|
|
2109
2108
|
}
|
|
2110
|
-
let
|
|
2111
|
-
|
|
2112
|
-
function
|
|
2113
|
-
return "children" in e ?
|
|
2109
|
+
let $t = q(null);
|
|
2110
|
+
$t.displayName = "NestingContext";
|
|
2111
|
+
function Et(e) {
|
|
2112
|
+
return "children" in e ? Et(e.children) : e.current.filter(({ el: t }) => t.current !== null).filter(({ state: t }) => t === "visible").length > 0;
|
|
2114
2113
|
}
|
|
2115
2114
|
function ao(e, t) {
|
|
2116
|
-
let n =
|
|
2117
|
-
let
|
|
2118
|
-
|
|
2119
|
-
r.current.splice(
|
|
2115
|
+
let n = Te(e), r = $([]), o = mn(), i = yt(), a = N((f, v = ue.Hidden) => {
|
|
2116
|
+
let h = r.current.findIndex(({ el: y }) => y === f);
|
|
2117
|
+
h !== -1 && (de(v, { [ue.Unmount]() {
|
|
2118
|
+
r.current.splice(h, 1);
|
|
2120
2119
|
}, [ue.Hidden]() {
|
|
2121
|
-
r.current[
|
|
2120
|
+
r.current[h].state = "hidden";
|
|
2122
2121
|
} }), i.microTask(() => {
|
|
2123
|
-
var
|
|
2124
|
-
|
|
2122
|
+
var y;
|
|
2123
|
+
!Et(r) && o.current && ((y = n.current) == null || y.call(n));
|
|
2125
2124
|
}));
|
|
2126
|
-
}), l =
|
|
2127
|
-
let
|
|
2128
|
-
return
|
|
2129
|
-
}), s =
|
|
2130
|
-
s.current.splice(0), t && (t.chains.current[
|
|
2131
|
-
s.current.push(
|
|
2132
|
-
})]), t == null || t.chains.current[
|
|
2133
|
-
Promise.all(d.current[
|
|
2134
|
-
})]),
|
|
2135
|
-
}),
|
|
2136
|
-
Promise.all(d.current[
|
|
2137
|
-
var
|
|
2138
|
-
(
|
|
2139
|
-
}).then(() =>
|
|
2125
|
+
}), l = N((f) => {
|
|
2126
|
+
let v = r.current.find(({ el: h }) => h === f);
|
|
2127
|
+
return v ? v.state !== "visible" && (v.state = "visible") : r.current.push({ el: f, state: "visible" }), () => a(f, ue.Unmount);
|
|
2128
|
+
}), s = $([]), u = $(Promise.resolve()), d = $({ enter: [], leave: [] }), c = N((f, v, h) => {
|
|
2129
|
+
s.current.splice(0), t && (t.chains.current[v] = t.chains.current[v].filter(([y]) => y !== f)), t == null || t.chains.current[v].push([f, new Promise((y) => {
|
|
2130
|
+
s.current.push(y);
|
|
2131
|
+
})]), t == null || t.chains.current[v].push([f, new Promise((y) => {
|
|
2132
|
+
Promise.all(d.current[v].map(([m, w]) => w)).then(() => y());
|
|
2133
|
+
})]), v === "enter" ? u.current = u.current.then(() => t == null ? void 0 : t.wait.current).then(() => h(v)) : h(v);
|
|
2134
|
+
}), _ = N((f, v, h) => {
|
|
2135
|
+
Promise.all(d.current[v].splice(0).map(([y, m]) => m)).then(() => {
|
|
2136
|
+
var y;
|
|
2137
|
+
(y = s.current.shift()) == null || y();
|
|
2138
|
+
}).then(() => h(v));
|
|
2140
2139
|
});
|
|
2141
|
-
return
|
|
2140
|
+
return F(() => ({ children: r, register: l, unregister: a, onStart: c, onStop: _, wait: u, chains: d }), [l, a, r, c, _, d, u]);
|
|
2142
2141
|
}
|
|
2143
2142
|
let lo = H, so = ut.RenderStrategy;
|
|
2144
|
-
function
|
|
2143
|
+
function Da(e, t) {
|
|
2145
2144
|
var n, r;
|
|
2146
|
-
let { transition: o = !0, beforeEnter: i, afterEnter: a, beforeLeave: l, afterLeave: s, enter: u, enterFrom: d, enterTo: c, entered:
|
|
2147
|
-
j(() => U(
|
|
2148
|
-
if (
|
|
2149
|
-
if (E &&
|
|
2145
|
+
let { transition: o = !0, beforeEnter: i, afterEnter: a, beforeLeave: l, afterLeave: s, enter: u, enterFrom: d, enterTo: c, entered: _, leave: f, leaveFrom: v, leaveTo: h, ...y } = e, m = $(null), w = io(e), b = Q(...w ? [m, t] : t === null ? [] : [t]), g = (n = y.unmount) == null || n ? ue.Unmount : ue.Hidden, { show: E, appear: x, initial: R } = Na(), [O, S] = k(E ? "visible" : "hidden"), L = Ha(), { register: U, unregister: le } = L;
|
|
2146
|
+
j(() => U(m), [U, m]), j(() => {
|
|
2147
|
+
if (g === ue.Hidden && m.current) {
|
|
2148
|
+
if (E && O !== "visible") {
|
|
2150
2149
|
S("visible");
|
|
2151
2150
|
return;
|
|
2152
2151
|
}
|
|
2153
|
-
return de(
|
|
2152
|
+
return de(O, { hidden: () => le(m), visible: () => U(m) });
|
|
2154
2153
|
}
|
|
2155
|
-
}, [
|
|
2156
|
-
let
|
|
2154
|
+
}, [O, m, U, le, E, g]);
|
|
2155
|
+
let De = Qe();
|
|
2157
2156
|
j(() => {
|
|
2158
|
-
if (
|
|
2159
|
-
}, [
|
|
2160
|
-
let Tt =
|
|
2161
|
-
Fe.current || (S("hidden"),
|
|
2162
|
-
}, L), et =
|
|
2157
|
+
if (w && De && O === "visible" && m.current === null) throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?");
|
|
2158
|
+
}, [m, O, De, w]);
|
|
2159
|
+
let Tt = R && !x, Je = x && E && R, Fe = $(!1), xe = ao(() => {
|
|
2160
|
+
Fe.current || (S("hidden"), le(m));
|
|
2161
|
+
}, L), et = N((kt) => {
|
|
2163
2162
|
Fe.current = !0;
|
|
2164
2163
|
let tt = kt ? "enter" : "leave";
|
|
2165
|
-
xe.onStart(
|
|
2164
|
+
xe.onStart(m, tt, (Oe) => {
|
|
2166
2165
|
Oe === "enter" ? i == null || i() : Oe === "leave" && (l == null || l());
|
|
2167
2166
|
});
|
|
2168
|
-
}), se =
|
|
2167
|
+
}), se = N((kt) => {
|
|
2169
2168
|
let tt = kt ? "enter" : "leave";
|
|
2170
|
-
Fe.current = !1, xe.onStop(
|
|
2169
|
+
Fe.current = !1, xe.onStop(m, tt, (Oe) => {
|
|
2171
2170
|
Oe === "enter" ? a == null || a() : Oe === "leave" && (s == null || s());
|
|
2172
|
-
}), tt === "leave" &&
|
|
2171
|
+
}), tt === "leave" && !Et(xe) && (S("hidden"), le(m));
|
|
2173
2172
|
});
|
|
2174
|
-
|
|
2175
|
-
|
|
2176
|
-
}, [E,
|
|
2177
|
-
let V = !(!o || !
|
|
2178
|
-
return
|
|
2173
|
+
M(() => {
|
|
2174
|
+
w && o || (et(E), se(E));
|
|
2175
|
+
}, [E, w, o]);
|
|
2176
|
+
let V = !(!o || !w || !De || Tt), [, I] = ra(V, m, E, { start: et, end: se }), go = _e({ ref: b, className: ((r = qt(y.className, Je && u, Je && d, I.enter && u, I.enter && I.closed && d, I.enter && !I.closed && c, I.leave && f, I.leave && !I.closed && v, I.leave && I.closed && h, !I.transition && E && _)) == null ? void 0 : r.trim()) || void 0, ...na(I) }), Ae = 0;
|
|
2177
|
+
return O === "visible" && (Ae |= G.Open), O === "hidden" && (Ae |= G.Closed), I.enter && (Ae |= G.Opening), I.leave && (Ae |= G.Closing), C.createElement($t.Provider, { value: xe }, C.createElement(la, { value: Ae }, Y({ ourProps: go, theirProps: y, defaultTag: lo, features: so, visible: O === "visible", name: "Transition.Child" })));
|
|
2179
2178
|
}
|
|
2180
2179
|
function Aa(e, t) {
|
|
2181
|
-
let { show: n, appear: r = !1, unmount: o = !0, ...i } = e, a =
|
|
2180
|
+
let { show: n, appear: r = !1, unmount: o = !0, ...i } = e, a = $(null), l = io(e), s = Q(...l ? [a, t] : t === null ? [] : [t]);
|
|
2182
2181
|
Qe();
|
|
2183
2182
|
let u = wt();
|
|
2184
2183
|
if (n === void 0 && u !== null && (n = (u & G.Open) === G.Open), n === void 0) throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");
|
|
2185
|
-
let [d, c] = k(n ? "visible" : "hidden"),
|
|
2184
|
+
let [d, c] = k(n ? "visible" : "hidden"), _ = ao(() => {
|
|
2186
2185
|
n || c("hidden");
|
|
2187
|
-
}), [f,
|
|
2186
|
+
}), [f, v] = k(!0), h = $([n]);
|
|
2188
2187
|
j(() => {
|
|
2189
|
-
f !== !1 &&
|
|
2190
|
-
}, [
|
|
2191
|
-
let
|
|
2188
|
+
f !== !1 && h.current[h.current.length - 1] !== n && (h.current.push(n), v(!1));
|
|
2189
|
+
}, [h, n]);
|
|
2190
|
+
let y = F(() => ({ show: n, appear: r, initial: f }), [n, r, f]);
|
|
2192
2191
|
Yr(n, a, () => c("hidden")), j(() => {
|
|
2193
|
-
n ? c("visible") :
|
|
2194
|
-
}, [n,
|
|
2195
|
-
let
|
|
2196
|
-
var
|
|
2197
|
-
f &&
|
|
2198
|
-
}),
|
|
2199
|
-
var
|
|
2200
|
-
f &&
|
|
2192
|
+
n ? c("visible") : !Et(_) && a.current !== null && c("hidden");
|
|
2193
|
+
}, [n, _]);
|
|
2194
|
+
let m = { unmount: o }, w = N(() => {
|
|
2195
|
+
var g;
|
|
2196
|
+
f && v(!1), (g = e.beforeEnter) == null || g.call(e);
|
|
2197
|
+
}), b = N(() => {
|
|
2198
|
+
var g;
|
|
2199
|
+
f && v(!1), (g = e.beforeLeave) == null || g.call(e);
|
|
2201
2200
|
});
|
|
2202
|
-
return
|
|
2201
|
+
return C.createElement($t.Provider, { value: _ }, C.createElement(bt.Provider, { value: y }, Y({ ourProps: { ...m, as: H, children: C.createElement(co, { ref: s, ...m, ...i, beforeEnter: w, beforeLeave: b }) }, theirProps: {}, defaultTag: H, features: so, visible: d === "visible", name: "Transition" })));
|
|
2203
2202
|
}
|
|
2204
2203
|
function Oa(e, t) {
|
|
2205
2204
|
let n = W(bt) !== null, r = wt() !== null;
|
|
2206
|
-
return
|
|
2205
|
+
return C.createElement(C.Fragment, null, !n && r ? C.createElement(Qt, { ref: t, ...e }) : C.createElement(co, { ref: t, ...e }));
|
|
2207
2206
|
}
|
|
2208
|
-
let Qt = z(Aa), co = z(
|
|
2207
|
+
let Qt = z(Aa), co = z(Da), yn = z(Oa), oe = Object.assign(Qt, { Child: yn, Root: Qt });
|
|
2209
2208
|
var Ia = ((e) => (e[e.Open = 0] = "Open", e[e.Closed = 1] = "Closed", e))(Ia || {}), Ra = ((e) => (e[e.SetTitleId = 0] = "SetTitleId", e))(Ra || {});
|
|
2210
2209
|
let Va = { 0(e, t) {
|
|
2211
2210
|
return e.titleId === t.id ? e : { ...e, titleId: t.id };
|
|
@@ -2223,29 +2222,29 @@ function Ua(e, t) {
|
|
|
2223
2222
|
return de(t.type, Va, e, t);
|
|
2224
2223
|
}
|
|
2225
2224
|
let Kn = z(function(e, t) {
|
|
2226
|
-
let n = fe(), { id: r = `headlessui-dialog-${n}`, open: o, onClose: i, initialFocus: a, role: l = "dialog", autoFocus: s = !0, __demoMode: u = !1, ...d } = e, c =
|
|
2225
|
+
let n = fe(), { id: r = `headlessui-dialog-${n}`, open: o, onClose: i, initialFocus: a, role: l = "dialog", autoFocus: s = !0, __demoMode: u = !1, ...d } = e, c = $(!1);
|
|
2227
2226
|
l = function() {
|
|
2228
2227
|
return l === "dialog" || l === "alertdialog" ? l : (c.current || (c.current = !0, console.warn(`Invalid role [${l}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)), "dialog");
|
|
2229
2228
|
}();
|
|
2230
|
-
let
|
|
2231
|
-
o === void 0 &&
|
|
2232
|
-
let f =
|
|
2229
|
+
let _ = wt();
|
|
2230
|
+
o === void 0 && _ !== null && (o = (_ & G.Open) === G.Open);
|
|
2231
|
+
let f = $(null), v = Q(f, t), h = Xe(f), y = o ? 0 : 1, [m, w] = Ke(Ua, { titleId: null, descriptionId: null, panelRef: en() }), b = N(() => i(!1)), g = N((V) => w({ type: 0, id: V })), E = Qe() ? y === 0 : !1, [x, R] = ma(), O = { get current() {
|
|
2233
2232
|
var V;
|
|
2234
|
-
return (V =
|
|
2235
|
-
} }, { resolveContainers: S, mainTreeNodeRef: L, MainTreeNode: U } =
|
|
2236
|
-
|
|
2237
|
-
var V,
|
|
2238
|
-
return [(
|
|
2239
|
-
}), disallowed:
|
|
2240
|
-
var V,
|
|
2241
|
-
return [(
|
|
2233
|
+
return (V = m.panelRef.current) != null ? V : f.current;
|
|
2234
|
+
} }, { resolveContainers: S, mainTreeNodeRef: L, MainTreeNode: U } = $a({ portals: x, defaultContainers: [O] }), le = _ !== null ? (_ & G.Closing) === G.Closing : !1;
|
|
2235
|
+
Hi(u || le ? !1 : E, { allowed: N(() => {
|
|
2236
|
+
var V, I;
|
|
2237
|
+
return [(I = (V = f.current) == null ? void 0 : V.closest("[data-headlessui-portal]")) != null ? I : null];
|
|
2238
|
+
}), disallowed: N(() => {
|
|
2239
|
+
var V, I;
|
|
2240
|
+
return [(I = (V = L.current) == null ? void 0 : V.closest("body > *:not(#headlessui-portal-root)")) != null ? I : null];
|
|
2242
2241
|
}) }), qi(E, S, (V) => {
|
|
2243
|
-
V.preventDefault(),
|
|
2244
|
-
}), wa(E,
|
|
2245
|
-
V.preventDefault(), V.stopPropagation(), document.activeElement && "blur" in document.activeElement && typeof document.activeElement.blur == "function" && document.activeElement.blur(),
|
|
2246
|
-
}), Qi(u ||
|
|
2247
|
-
let [
|
|
2248
|
-
return E && !u && (se |= he.RestoreFocus, se |= he.TabLock, s && (se |= he.AutoFocus), et && (se |= he.InitialFocus)),
|
|
2242
|
+
V.preventDefault(), b();
|
|
2243
|
+
}), wa(E, h == null ? void 0 : h.defaultView, (V) => {
|
|
2244
|
+
V.preventDefault(), V.stopPropagation(), document.activeElement && "blur" in document.activeElement && typeof document.activeElement.blur == "function" && document.activeElement.blur(), b();
|
|
2245
|
+
}), Qi(u || le ? !1 : E, h, S), Yr(E, f, b);
|
|
2246
|
+
let [De, Tt] = Ti(), Je = F(() => [{ dialogState: y, close: b, setTitleId: g }, m], [y, m, b, g]), Fe = F(() => ({ open: y === 0 }), [y]), xe = { ref: v, id: r, role: l, tabIndex: -1, "aria-modal": u ? void 0 : y === 0 ? !0 : void 0, "aria-labelledby": m.titleId, "aria-describedby": De }, et = !ba(), se = he.None;
|
|
2247
|
+
return E && !u && (se |= he.RestoreFocus, se |= he.TabLock, s && (se |= he.AutoFocus), et && (se |= he.InitialFocus)), C.createElement(sa, null, C.createElement(Yn, { force: !0 }, C.createElement(ga, null, C.createElement(gn.Provider, { value: Je }, C.createElement(no, { target: f }, C.createElement(Yn, { force: !1 }, C.createElement(Tt, { slot: Fe }, C.createElement(R, null, C.createElement(Fa, { initialFocus: a, initialFocusFallback: f, containers: S, features: se }, C.createElement(Mi, { value: b }, Y({ ourProps: xe, theirProps: d, slot: Fe, defaultTag: Wa, features: ja, visible: y === 0, name: "Dialog" })))))))))), C.createElement(Ei, null, C.createElement(U, null)));
|
|
2249
2248
|
}), Wa = "div", ja = ut.RenderStrategy | ut.Static;
|
|
2250
2249
|
function za(e, t) {
|
|
2251
2250
|
let { transition: n = !1, open: r, ...o } = e, i = wt(), a = e.hasOwnProperty("open") || i !== null, l = e.hasOwnProperty("onClose");
|
|
@@ -2254,25 +2253,25 @@ function za(e, t) {
|
|
|
2254
2253
|
if (!l) throw new Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");
|
|
2255
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}`);
|
|
2256
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}`);
|
|
2257
|
-
return (r !== void 0 || n) && !o.static ?
|
|
2256
|
+
return (r !== void 0 || n) && !o.static ? C.createElement(oe, { show: r, transition: n, unmount: o.unmount }, C.createElement(Kn, { ref: t, ...o })) : C.createElement(Kn, { ref: t, open: r, ...o });
|
|
2258
2257
|
}
|
|
2259
2258
|
let Ba = "div";
|
|
2260
2259
|
function qa(e, t) {
|
|
2261
|
-
let n = fe(), { id: r = `headlessui-dialog-panel-${n}`, transition: o = !1, ...i } = e, [{ dialogState: a }, l] = Ct("Dialog.Panel"), s =
|
|
2260
|
+
let n = fe(), { id: r = `headlessui-dialog-panel-${n}`, transition: o = !1, ...i } = e, [{ dialogState: a }, l] = Ct("Dialog.Panel"), s = Q(t, l.panelRef), u = F(() => ({ open: a === 0 }), [a]), d = N((c) => {
|
|
2262
2261
|
c.stopPropagation();
|
|
2263
2262
|
});
|
|
2264
|
-
return
|
|
2263
|
+
return C.createElement(o ? yn : H, null, Y({ ourProps: { ref: s, id: r, onClick: d }, theirProps: i, slot: u, defaultTag: Ba, name: "Dialog.Panel" }));
|
|
2265
2264
|
}
|
|
2266
2265
|
let Ya = "div";
|
|
2267
2266
|
function Ka(e, t) {
|
|
2268
|
-
let { transition: n = !1, ...r } = e, [{ dialogState: o }] = Ct("Dialog.Backdrop"), i =
|
|
2269
|
-
return
|
|
2267
|
+
let { transition: n = !1, ...r } = e, [{ dialogState: o }] = Ct("Dialog.Backdrop"), i = F(() => ({ open: o === 0 }), [o]);
|
|
2268
|
+
return C.createElement(n ? yn : H, null, Y({ ourProps: { ref: t, "aria-hidden": !0 }, theirProps: r, slot: i, defaultTag: Ya, name: "Dialog.Backdrop" }));
|
|
2270
2269
|
}
|
|
2271
2270
|
let Ga = "h2";
|
|
2272
2271
|
function Za(e, t) {
|
|
2273
|
-
let n = fe(), { id: r = `headlessui-dialog-title-${n}`, ...o } = e, [{ dialogState: i, setTitleId: a }] = Ct("Dialog.Title"), l =
|
|
2274
|
-
|
|
2275
|
-
let s =
|
|
2272
|
+
let n = fe(), { id: r = `headlessui-dialog-title-${n}`, ...o } = e, [{ dialogState: i, setTitleId: a }] = Ct("Dialog.Title"), l = Q(t);
|
|
2273
|
+
M(() => (a(r), () => a(null)), [r, a]);
|
|
2274
|
+
let s = F(() => ({ open: i === 0 }), [i]);
|
|
2276
2275
|
return Y({ ourProps: { ref: l, id: r }, theirProps: o, slot: s, defaultTag: Ga, name: "Dialog.Title" });
|
|
2277
2276
|
}
|
|
2278
2277
|
let Xa = z(za), uo = z(qa);
|
|
@@ -2286,7 +2285,7 @@ const el = "_root_1hpzn_1", tl = "_modal_1hpzn_10", nl = "_container_1hpzn_13",
|
|
|
2286
2285
|
close: ol
|
|
2287
2286
|
}, il = "_root_1h6qm_1", al = {
|
|
2288
2287
|
root: il
|
|
2289
|
-
},
|
|
2288
|
+
}, ae = (e) => {
|
|
2290
2289
|
const {
|
|
2291
2290
|
children: t,
|
|
2292
2291
|
size: n = "md",
|
|
@@ -2295,7 +2294,7 @@ const el = "_root_1hpzn_1", tl = "_modal_1hpzn_10", nl = "_container_1hpzn_13",
|
|
|
2295
2294
|
strokeWidth: i,
|
|
2296
2295
|
className: a = "",
|
|
2297
2296
|
viewBox: l = "0 0 20 20"
|
|
2298
|
-
} = e, s =
|
|
2297
|
+
} = e, s = F(() => {
|
|
2299
2298
|
switch (n) {
|
|
2300
2299
|
case "sm":
|
|
2301
2300
|
return "yvlw-w-4 yvlw-h-4";
|
|
@@ -2309,7 +2308,7 @@ const el = "_root_1hpzn_1", tl = "_modal_1hpzn_10", nl = "_container_1hpzn_13",
|
|
|
2309
2308
|
return "yvlw-w-5 yvlw-h-5";
|
|
2310
2309
|
}
|
|
2311
2310
|
}, [n]);
|
|
2312
|
-
return /* @__PURE__ */
|
|
2311
|
+
return /* @__PURE__ */ p(
|
|
2313
2312
|
"svg",
|
|
2314
2313
|
{
|
|
2315
2314
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2321,91 +2320,91 @@ const el = "_root_1hpzn_1", tl = "_modal_1hpzn_10", nl = "_container_1hpzn_13",
|
|
|
2321
2320
|
children: t
|
|
2322
2321
|
}
|
|
2323
2322
|
);
|
|
2324
|
-
}, ll = () => /* @__PURE__ */
|
|
2323
|
+
}, ll = () => /* @__PURE__ */ p(ae, { children: /* @__PURE__ */ p("path", { d: "M10 2a.75.75 0 01.75.75v1.5a.75.75 0 01-1.5 0v-1.5A.75.75 0 0110 2zM10 15a.75.75 0 01.75.75v1.5a.75.75 0 01-1.5 0v-1.5A.75.75 0 0110 15zM10 7a3 3 0 100 6 3 3 0 000-6zM15.657 5.404a.75.75 0 10-1.06-1.06l-1.061 1.06a.75.75 0 001.06 1.06l1.06-1.06zM6.464 14.596a.75.75 0 10-1.06-1.06l-1.06 1.06a.75.75 0 001.06 1.06l1.06-1.06zM18 10a.75.75 0 01-.75.75h-1.5a.75.75 0 010-1.5h1.5A.75.75 0 0118 10zM5 10a.75.75 0 01-.75.75h-1.5a.75.75 0 010-1.5h1.5A.75.75 0 015 10zM14.596 15.657a.75.75 0 001.06-1.06l-1.06-1.061a.75.75 0 10-1.06 1.06l1.06 1.06zM5.404 6.464a.75.75 0 001.06-1.06l-1.06-1.06a.75.75 0 10-1.061 1.06l1.06 1.06z" }) }), fo = (e) => /* @__PURE__ */ p(ae, { ...e, children: /* @__PURE__ */ p(
|
|
2325
2324
|
"path",
|
|
2326
2325
|
{
|
|
2327
2326
|
fillRule: "evenodd",
|
|
2328
2327
|
d: "M7.455 2.004a.75.75 0 01.26.77 7 7 0 009.958 7.967.75.75 0 011.067.853A8.5 8.5 0 116.647 1.921a.75.75 0 01.808.083z",
|
|
2329
2328
|
clipRule: "evenodd"
|
|
2330
2329
|
}
|
|
2331
|
-
) }), sl = (e) => /* @__PURE__ */
|
|
2332
|
-
/* @__PURE__ */
|
|
2333
|
-
/* @__PURE__ */
|
|
2334
|
-
] }), cl = (e) => /* @__PURE__ */
|
|
2335
|
-
/* @__PURE__ */
|
|
2336
|
-
/* @__PURE__ */
|
|
2337
|
-
] }), ul = (e) => /* @__PURE__ */
|
|
2338
|
-
/* @__PURE__ */
|
|
2339
|
-
/* @__PURE__ */
|
|
2340
|
-
] }), dl = (e) => /* @__PURE__ */
|
|
2341
|
-
/* @__PURE__ */
|
|
2342
|
-
/* @__PURE__ */
|
|
2343
|
-
] }), fl = (e) => /* @__PURE__ */
|
|
2344
|
-
/* @__PURE__ */
|
|
2345
|
-
/* @__PURE__ */
|
|
2330
|
+
) }), sl = (e) => /* @__PURE__ */ p(ae, { ...e, viewBox: "0 0 24 24", children: [
|
|
2331
|
+
/* @__PURE__ */ p("path", { d: "M0 0h24v24H0V0z", fill: "none" }),
|
|
2332
|
+
/* @__PURE__ */ p("path", { d: "M19.07 4.93l-1.41 1.41C19.1 7.79 20 9.79 20 12c0 4.42-3.58 8-8 8s-8-3.58-8-8c0-4.08 3.05-7.44 7-7.93v2.02C8.16 6.57 6 9.03 6 12c0 3.31 2.69 6 6 6s6-2.69 6-6c0-1.66-.67-3.16-1.76-4.24l-1.41 1.41C15.55 9.9 16 10.9 16 12c0 2.21-1.79 4-4 4s-4-1.79-4-4c0-1.86 1.28-3.41 3-3.86v2.14c-.6.35-1 .98-1 1.72 0 1.1.9 2 2 2s2-.9 2-2c0-.74-.4-1.38-1-1.72V2h-1C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10c0-2.76-1.12-5.26-2.93-7.07z" })
|
|
2333
|
+
] }), cl = (e) => /* @__PURE__ */ p(ae, { ...e, viewBox: "0 0 24 24", children: [
|
|
2334
|
+
/* @__PURE__ */ p("path", { d: "M0 0h24v24H0V0z", fill: "none" }),
|
|
2335
|
+
/* @__PURE__ */ p("path", { d: "M3.72 6.04c.47.46 1.21.48 1.71.06.37-.32.69-.51.87-.43.5.2 0 1.03-.3 1.52-.25.42-2.86 3.89-2.86 6.31 0 1.28.48 2.34 1.34 2.98.75.56 1.74.73 2.64.46 1.07-.31 1.95-1.4 3.06-2.77 1.21-1.49 2.83-3.44 4.08-3.44 1.63 0 1.65 1.01 1.76 1.79-3.78.64-5.38 3.67-5.38 5.37 0 1.7 1.44 3.09 3.21 3.09 1.63 0 4.29-1.33 4.69-6.1h1.21c.69 0 1.25-.56 1.25-1.25s-.56-1.25-1.25-1.25h-1.22c-.15-1.65-1.09-4.2-4.03-4.2-2.25 0-4.18 1.91-4.94 2.84-.58.73-2.06 2.48-2.29 2.72-.25.3-.68.84-1.11.84-.45 0-.72-.83-.36-1.92.35-1.09 1.4-2.86 1.85-3.52.78-1.14 1.3-1.92 1.3-3.28C8.95 3.69 7.31 3 6.44 3c-1.09 0-2.04.63-2.7 1.22-.53.48-.53 1.32-.02 1.82zm10.16 12.51c-.31 0-.74-.26-.74-.72 0-.6.73-2.2 2.87-2.76-.3 2.69-1.43 3.48-2.13 3.48z" })
|
|
2336
|
+
] }), ul = (e) => /* @__PURE__ */ p(ae, { ...e, viewBox: "0 0 24 24", children: [
|
|
2337
|
+
/* @__PURE__ */ p("path", { d: "M0 0h24v24H0V0z", fill: "none" }),
|
|
2338
|
+
/* @__PURE__ */ p("path", { d: "M3.72 6.04c.47.46 1.21.48 1.71.06.37-.32.69-.51.87-.43.5.2 0 1.03-.3 1.52-.25.42-2.86 3.89-2.86 6.31 0 1.28.48 2.34 1.34 2.98.75.56 1.74.73 2.64.46 1.07-.31 1.95-1.4 3.06-2.77 1.21-1.49 2.83-3.44 4.08-3.44 1.63 0 1.65 1.01 1.76 1.79-3.78.64-5.38 3.67-5.38 5.37 0 1.7 1.44 3.09 3.21 3.09 1.63 0 4.29-1.33 4.69-6.1h1.21c.69 0 1.25-.56 1.25-1.25s-.56-1.25-1.25-1.25h-1.22c-.15-1.65-1.09-4.2-4.03-4.2-2.25 0-4.18 1.91-4.94 2.84-.58.73-2.06 2.48-2.29 2.72-.25.3-.68.84-1.11.84-.45 0-.72-.83-.36-1.92.35-1.09 1.4-2.86 1.85-3.52.78-1.14 1.3-1.92 1.3-3.28C8.95 3.69 7.31 3 6.44 3c-1.09 0-2.04.63-2.7 1.22-.53.48-.53 1.32-.02 1.82zm10.16 12.51c-.31 0-.74-.26-.74-.72 0-.6.73-2.2 2.87-2.76-.3 2.69-1.43 3.48-2.13 3.48z" })
|
|
2339
|
+
] }), dl = (e) => /* @__PURE__ */ p(ae, { ...e, children: [
|
|
2340
|
+
/* @__PURE__ */ p("path", { d: "M0 0h24v24H0V0z", fill: "none" }),
|
|
2341
|
+
/* @__PURE__ */ p("path", { d: "M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0-6c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2zm0 7c-2.67 0-8 1.34-8 4v2c0 .55.45 1 1 1h14c.55 0 1-.45 1-1v-2c0-2.66-5.33-4-8-4zm6 5H6v-.99c.2-.72 3.3-2.01 6-2.01s5.8 1.29 6 2v1z" })
|
|
2342
|
+
] }), fl = (e) => /* @__PURE__ */ p(ae, { ...e, children: /* @__PURE__ */ p("path", { d: "M18,10l-1.77-2.03l0.25-2.69l-2.63-0.6l-1.37-2.32L10,3.43L7.53,2.36L6.15,4.68L3.53,5.28l0.25,2.69L2,10l1.77,2.03 l-0.25,2.69l2.63,0.6l1.37,2.32L10,16.56l2.47,1.07l1.37-2.32l2.63-0.6l-0.25-2.69L18,10z M13.18,8.47l-4.24,4.24 c-0.2,0.2-0.51,0.2-0.71,0L6.82,11.3c-0.2-0.2-0.2-0.51,0-0.71s0.51-0.2,0.71,0l1.06,1.06l3.89-3.89c0.2-0.2,0.51-0.2,0.71,0 S13.38,8.28,13.18,8.47z" }) }), pl = (e) => /* @__PURE__ */ p(ae, { ...e, children: /* @__PURE__ */ p("path", { d: "M6.28 5.22a.75.75 0 0 0-1.06 1.06L8.94 10l-3.72 3.72a.75.75 0 1 0 1.06 1.06L10 11.06l3.72 3.72a.75.75 0 1 0 1.06-1.06L11.06 10l3.72-3.72a.75.75 0 0 0-1.06-1.06L10 8.94 6.28 5.22Z" }) }), _l = (e) => /* @__PURE__ */ p(ae, { ...e, viewBox: "0 0 99 32", children: [
|
|
2343
|
+
/* @__PURE__ */ p("g", { clipPath: "url(#clip0_9581_165880)", children: [
|
|
2344
|
+
/* @__PURE__ */ p(
|
|
2346
2345
|
"path",
|
|
2347
2346
|
{
|
|
2348
2347
|
d: "M98.9474 20.7006V2.701C98.9474 1.20997 97.7302 0 96.2304 0H87.4325H2.71699C1.21714 0 0 1.20997 0 2.701V29.299C0 30.79 1.21714 32 2.71699 32H86.6203C87.2911 32 87.938 31.7523 88.4388 31.3069L98.0489 22.7084C98.6191 22.1964 98.9474 21.4651 98.9474 20.7006Z",
|
|
2349
2348
|
fill: "#46B2C8"
|
|
2350
2349
|
}
|
|
2351
2350
|
),
|
|
2352
|
-
/* @__PURE__ */
|
|
2351
|
+
/* @__PURE__ */ p(
|
|
2353
2352
|
"path",
|
|
2354
2353
|
{
|
|
2355
2354
|
d: "M24.3666 25.2683H20.593C19.3951 25.2683 18.4199 24.2989 18.4199 23.108V8.8908C18.4199 7.69988 19.3951 6.73047 20.593 6.73047H24.3642C25.5622 6.73047 26.5374 7.69988 26.5374 8.8908V23.1056C26.5398 24.2989 25.5646 25.2683 24.3666 25.2683ZM20.593 8.52161C20.3894 8.52161 20.2217 8.68596 20.2217 8.8908V23.1056C20.2217 23.3081 20.387 23.4748 20.593 23.4748H24.3642C24.5679 23.4748 24.7356 23.3104 24.7356 23.1056V8.8908C24.7356 8.68834 24.5703 8.52161 24.3642 8.52161H20.593Z",
|
|
2356
2355
|
fill: "#C7E8EF"
|
|
2357
2356
|
}
|
|
2358
2357
|
),
|
|
2359
|
-
/* @__PURE__ */
|
|
2358
|
+
/* @__PURE__ */ p(
|
|
2360
2359
|
"path",
|
|
2361
2360
|
{
|
|
2362
2361
|
d: "M68.9385 6.74805H67.1367V25.2549H68.9385V6.74805Z",
|
|
2363
2362
|
fill: "white"
|
|
2364
2363
|
}
|
|
2365
2364
|
),
|
|
2366
|
-
/* @__PURE__ */
|
|
2365
|
+
/* @__PURE__ */ p(
|
|
2367
2366
|
"path",
|
|
2368
2367
|
{
|
|
2369
2368
|
d: "M55.0725 8.52161V6.73047H47.8535V25.2683H55.0725V23.4748H49.6577V18.9874H52.9664V17.1963H49.6577V8.52161H55.0725Z",
|
|
2370
2369
|
fill: "white"
|
|
2371
2370
|
}
|
|
2372
2371
|
),
|
|
2373
|
-
/* @__PURE__ */
|
|
2372
|
+
/* @__PURE__ */ p(
|
|
2374
2373
|
"path",
|
|
2375
2374
|
{
|
|
2376
2375
|
d: "M46.528 6.73828L44.4795 23.4993C44.283 24.5354 43.4061 25.2595 42.3447 25.2595C41.2833 25.2595 40.404 24.5354 40.2099 23.4993L40.2003 23.4421L38.1758 6.73828H39.9919L41.9853 23.1896C42.0404 23.4183 42.2081 23.4683 42.3447 23.4683C42.4789 23.4683 42.649 23.4183 42.7041 23.1896L44.7119 6.73828H46.528Z",
|
|
2377
2376
|
fill: "white"
|
|
2378
2377
|
}
|
|
2379
2378
|
),
|
|
2380
|
-
/* @__PURE__ */
|
|
2379
|
+
/* @__PURE__ */ p(
|
|
2381
2380
|
"path",
|
|
2382
2381
|
{
|
|
2383
2382
|
d: "M36.9104 6.73047V23.1056C36.9104 24.2965 35.9353 25.2659 34.7373 25.2659H30.9685C29.7681 25.2659 28.793 24.2965 28.793 23.1056V6.73047H30.5947V23.1056C30.5947 23.3104 30.7624 23.4748 30.9685 23.4748H34.7373C34.9433 23.4748 35.1087 23.3081 35.1087 23.1056V6.73047H36.9104Z",
|
|
2384
2383
|
fill: "#C7E8EF"
|
|
2385
2384
|
}
|
|
2386
2385
|
),
|
|
2387
|
-
/* @__PURE__ */
|
|
2386
|
+
/* @__PURE__ */ p(
|
|
2388
2387
|
"path",
|
|
2389
2388
|
{
|
|
2390
2389
|
d: "M78.6291 8.53181V6.73828H71.4102V25.2618H73.2143V18.9976H76.5231V17.2065H73.2143V8.53181H78.6291Z",
|
|
2391
2390
|
fill: "white"
|
|
2392
2391
|
}
|
|
2393
2392
|
),
|
|
2394
|
-
/* @__PURE__ */
|
|
2393
|
+
/* @__PURE__ */ p(
|
|
2395
2394
|
"path",
|
|
2396
2395
|
{
|
|
2397
2396
|
d: "M15.8797 6.73047L13.3089 14.9764L10.9034 6.73047H9.02734L12.3793 18.2157V25.2516H14.181V18.2324L17.7653 6.73047H15.8797Z",
|
|
2398
2397
|
fill: "#C7E8EF"
|
|
2399
2398
|
}
|
|
2400
2399
|
),
|
|
2401
|
-
/* @__PURE__ */
|
|
2400
|
+
/* @__PURE__ */ p(
|
|
2402
2401
|
"path",
|
|
2403
2402
|
{
|
|
2404
2403
|
d: "M85.7767 6.73047L83.2058 14.9764L80.7979 6.73047H78.9219L82.2738 18.2157V25.2516H84.0755V18.2324L87.6623 6.73047H85.7767Z",
|
|
2405
2404
|
fill: "white"
|
|
2406
2405
|
}
|
|
2407
2406
|
),
|
|
2408
|
-
/* @__PURE__ */
|
|
2407
|
+
/* @__PURE__ */ p(
|
|
2409
2408
|
"path",
|
|
2410
2409
|
{
|
|
2411
2410
|
d: "M61.2349 18.4801C63.4535 17.5226 65.0085 15.3241 65.0085 12.7732V8.8908C65.0085 7.69988 64.0357 6.73047 62.8354 6.73047H59.0618C57.8638 6.73047 56.8887 7.69988 56.8887 8.8908V18.0918V18.9874V25.2493H58.6904V18.9898H58.7527C58.9659 18.9898 59.1768 18.9779 59.3828 18.9588L63.6093 25.254H65.78L61.2349 18.4801ZM58.6928 17.1986V8.89318C58.6928 8.68834 58.8581 8.52399 59.0618 8.52399H62.8354C63.039 8.52399 63.2044 8.69072 63.2044 8.89318V12.7756C63.2044 15.2146 61.2085 17.1986 58.7551 17.1986H58.6928Z",
|
|
@@ -2413,15 +2412,22 @@ const el = "_root_1hpzn_1", tl = "_modal_1hpzn_10", nl = "_container_1hpzn_13",
|
|
|
2413
2412
|
}
|
|
2414
2413
|
)
|
|
2415
2414
|
] }),
|
|
2416
|
-
/* @__PURE__ */
|
|
2417
|
-
] })
|
|
2418
|
-
class
|
|
2415
|
+
/* @__PURE__ */ p("defs", { children: /* @__PURE__ */ p("clipPath", { id: "clip0_9581_165880", children: /* @__PURE__ */ p("rect", { width: "98.9474", height: "32", fill: "white" }) }) })
|
|
2416
|
+
] });
|
|
2417
|
+
class we {
|
|
2418
|
+
static loadVision() {
|
|
2419
|
+
return import(
|
|
2420
|
+
/* webpackIgnore: true */
|
|
2421
|
+
/* @ts-ignore */
|
|
2422
|
+
"https://cdn.jsdelivr.net/npm/@mediapipe/tasks-vision@0.10.3"
|
|
2423
|
+
);
|
|
2424
|
+
}
|
|
2419
2425
|
static async loadDetector() {
|
|
2420
2426
|
try {
|
|
2421
|
-
const t = await
|
|
2427
|
+
const { FaceLandmarker: t, FilesetResolver: n } = await we.loadVision(), r = await n.forVisionTasks(
|
|
2422
2428
|
"https://cdn.jsdelivr.net/npm/@mediapipe/tasks-vision@0.10.3/wasm"
|
|
2423
2429
|
);
|
|
2424
|
-
return await
|
|
2430
|
+
return await t.createFromOptions(r, {
|
|
2425
2431
|
baseOptions: {
|
|
2426
2432
|
modelAssetPath: "https://storage.googleapis.com/mediapipe-models/face_landmarker/face_landmarker/float16/1/face_landmarker.task",
|
|
2427
2433
|
delegate: "GPU"
|
|
@@ -2459,29 +2465,30 @@ class Le {
|
|
|
2459
2465
|
const { width: r, height: o } = n, { faceLandmarks: i } = await t.detect(n);
|
|
2460
2466
|
if (i.length === 0)
|
|
2461
2467
|
return [];
|
|
2462
|
-
const a =
|
|
2468
|
+
const a = we.denormalizeKeypoints(
|
|
2463
2469
|
i[0],
|
|
2464
2470
|
r,
|
|
2465
2471
|
o
|
|
2466
|
-
), l =
|
|
2472
|
+
), l = we.getBoundingBox(a);
|
|
2467
2473
|
return [{ keypoints: a, box: l }];
|
|
2468
2474
|
} catch (r) {
|
|
2469
2475
|
return Promise.reject(r);
|
|
2470
2476
|
}
|
|
2471
2477
|
}
|
|
2472
2478
|
}
|
|
2473
|
-
const
|
|
2479
|
+
const vl = (e, t) => {
|
|
2474
2480
|
let n;
|
|
2475
2481
|
return typeof OffscreenCanvas < "u" ? n = new OffscreenCanvas(e, t) : (n = document.createElement("canvas"), n.width = e, n.height = t), n;
|
|
2476
2482
|
}, po = (e, t, n, r) => {
|
|
2477
2483
|
let o = 0, i = 0, a = t, l = n;
|
|
2478
|
-
const u =
|
|
2484
|
+
const u = vl(t, n).getContext("2d");
|
|
2479
2485
|
return u.drawImage(e, 0, 0), u.getImageData(o, i, a, l);
|
|
2480
|
-
},
|
|
2486
|
+
}, hl = (e) => new Promise((t) => {
|
|
2481
2487
|
const n = document.createElement("canvas");
|
|
2482
|
-
|
|
2488
|
+
let { width: r } = e, { height: o } = e;
|
|
2489
|
+
e instanceof HTMLVideoElement && (r = e.videoWidth, o = e.videoHeight), n.width = r, n.height = o, n.getContext("2d").drawImage(e, 0, 0), n.toBlob((a) => t(a));
|
|
2483
2490
|
});
|
|
2484
|
-
function
|
|
2491
|
+
function ml() {
|
|
2485
2492
|
if (MediaRecorder.isTypeSupported("video/webm; codecs=vp9"))
|
|
2486
2493
|
return { mimeType: "video/webm; codecs=vp9" };
|
|
2487
2494
|
if (MediaRecorder.isTypeSupported("video/webm"))
|
|
@@ -2489,24 +2496,27 @@ function gl() {
|
|
|
2489
2496
|
if (MediaRecorder.isTypeSupported("video/mp4"))
|
|
2490
2497
|
return { mimeType: "video/mp4" };
|
|
2491
2498
|
}
|
|
2492
|
-
function
|
|
2499
|
+
function _o(e = {}) {
|
|
2493
2500
|
const { onRecord: t = () => {
|
|
2494
2501
|
}, onStop: n = () => {
|
|
2495
|
-
} } = e, r =
|
|
2502
|
+
} } = e, r = $([]), o = $(null), i = $(null), a = A((c) => {
|
|
2496
2503
|
r.current.push(c);
|
|
2497
|
-
}, []), l =
|
|
2498
|
-
|
|
2499
|
-
|
|
2500
|
-
|
|
2501
|
-
|
|
2502
|
-
|
|
2504
|
+
}, []), l = A(
|
|
2505
|
+
async (c) => {
|
|
2506
|
+
if (o.current)
|
|
2507
|
+
return;
|
|
2508
|
+
const _ = await hl(c);
|
|
2509
|
+
o.current = _;
|
|
2510
|
+
},
|
|
2511
|
+
[]
|
|
2512
|
+
), s = A((c) => {
|
|
2503
2513
|
c.data.size > 0 && t(c.data);
|
|
2504
|
-
}, []), u =
|
|
2514
|
+
}, []), u = A(() => {
|
|
2505
2515
|
!i.current || i.current.state === "inactive" || (i.current.stop(), i.current.stream.getTracks().forEach((c) => c.stop()), n());
|
|
2506
|
-
}, []), d =
|
|
2516
|
+
}, []), d = A((c) => {
|
|
2507
2517
|
i.current || (i.current = new MediaRecorder(
|
|
2508
2518
|
c,
|
|
2509
|
-
|
|
2519
|
+
ml()
|
|
2510
2520
|
), i.current.ondataavailable = s, i.current.onstop = u, i.current.start(1e3));
|
|
2511
2521
|
}, []);
|
|
2512
2522
|
return {
|
|
@@ -2518,10 +2528,10 @@ function vo(e = {}) {
|
|
|
2518
2528
|
savedPhoto: o
|
|
2519
2529
|
};
|
|
2520
2530
|
}
|
|
2521
|
-
function
|
|
2531
|
+
function Le(e, t) {
|
|
2522
2532
|
return Math.sqrt(e ** 2 + t ** 2);
|
|
2523
2533
|
}
|
|
2524
|
-
function
|
|
2534
|
+
function yl(e) {
|
|
2525
2535
|
const t = e.slice();
|
|
2526
2536
|
for (let n = t.length - 1; n > 0; n--) {
|
|
2527
2537
|
const r = Math.floor(Math.random() * (n + 1));
|
|
@@ -2529,7 +2539,7 @@ function wl(e) {
|
|
|
2529
2539
|
}
|
|
2530
2540
|
return t;
|
|
2531
2541
|
}
|
|
2532
|
-
function
|
|
2542
|
+
function gl(e, t) {
|
|
2533
2543
|
return new Promise((n, r) => {
|
|
2534
2544
|
const o = new File([e], `${Date.now()}`, {
|
|
2535
2545
|
type: t
|
|
@@ -2537,10 +2547,10 @@ function bl(e, t) {
|
|
|
2537
2547
|
i.readAsDataURL(o), i.onload = () => n(i.result), i.onerror = (a) => r(a);
|
|
2538
2548
|
});
|
|
2539
2549
|
}
|
|
2540
|
-
const
|
|
2541
|
-
function
|
|
2550
|
+
const wl = "https://identity.dev.svc.youverify.co";
|
|
2551
|
+
function bl() {
|
|
2542
2552
|
return { postData: async (t) => {
|
|
2543
|
-
const { faceImage: n, publicKey: r, passed: o, metadata: i } = t, a = await fetch(`${
|
|
2553
|
+
const { faceImage: n, publicKey: r, passed: o, metadata: i } = t, a = await fetch(`${wl}/v1/sdk/identity/liveness/`, {
|
|
2544
2554
|
method: "POST",
|
|
2545
2555
|
headers: {
|
|
2546
2556
|
"Content-Type": "application/json"
|
|
@@ -2558,7 +2568,7 @@ function $l() {
|
|
|
2558
2568
|
return (await a.json()).data;
|
|
2559
2569
|
} };
|
|
2560
2570
|
}
|
|
2561
|
-
const
|
|
2571
|
+
const $l = 360, El = "#125766", Cl = "https://cdn.youverify.co/1721901834404-q2nxqyng5klm918b3BDVU.jpg", vo = {
|
|
2562
2572
|
"complete-the-circle": {
|
|
2563
2573
|
Icon: sl,
|
|
2564
2574
|
name: "Complete The Circle ⭕️",
|
|
@@ -2598,7 +2608,7 @@ const Cl = 360, Tl = "#125766", kl = "https://cdn.youverify.co/1721901834404-q2n
|
|
|
2598
2608
|
onComplete: () => Promise.resolve()
|
|
2599
2609
|
});
|
|
2600
2610
|
let Gn, Zn = !1;
|
|
2601
|
-
function
|
|
2611
|
+
function Tl(e) {
|
|
2602
2612
|
const {
|
|
2603
2613
|
publicKey: t,
|
|
2604
2614
|
tasks: n,
|
|
@@ -2610,36 +2620,36 @@ function Fl(e) {
|
|
|
2610
2620
|
onSuccess: s = () => {
|
|
2611
2621
|
},
|
|
2612
2622
|
metadata: u
|
|
2613
|
-
} = e, [d, c] = k(0), [
|
|
2614
|
-
() =>
|
|
2615
|
-
[n,
|
|
2623
|
+
} = e, [d, c] = k(0), [_, f] = k(0), [v, h] = k(null), { saveStream: y, savePhoto: m, savedPhoto: w } = _o(), { postData: b } = bl(), g = F(
|
|
2624
|
+
() => _ === n.length,
|
|
2625
|
+
[n, _]
|
|
2616
2626
|
), E = () => {
|
|
2617
2627
|
f((S) => S + 1), c((S) => S + 1);
|
|
2618
|
-
},
|
|
2628
|
+
}, x = (S) => {
|
|
2619
2629
|
const L = new Image();
|
|
2620
|
-
L.crossOrigin = "Anonymous", L.src =
|
|
2630
|
+
L.crossOrigin = "Anonymous", L.src = Cl, L.onload = () => {
|
|
2621
2631
|
const U = po(L, L.width, L.height);
|
|
2622
|
-
|
|
2632
|
+
we.detectFaces(S, U);
|
|
2623
2633
|
};
|
|
2624
|
-
},
|
|
2625
|
-
const S = await
|
|
2626
|
-
faceImage:
|
|
2634
|
+
}, R = async () => {
|
|
2635
|
+
const S = await b({
|
|
2636
|
+
faceImage: w.current ? await gl(w.current, "image/png") : null,
|
|
2627
2637
|
publicKey: t,
|
|
2628
2638
|
passed: !0,
|
|
2629
2639
|
metadata: u
|
|
2630
2640
|
});
|
|
2631
2641
|
s(S), l();
|
|
2632
|
-
},
|
|
2633
|
-
const S = await
|
|
2634
|
-
Gn = S,
|
|
2642
|
+
}, O = async () => {
|
|
2643
|
+
const S = await we.loadDetector();
|
|
2644
|
+
Gn = S, x(S), h(S);
|
|
2635
2645
|
};
|
|
2636
|
-
return
|
|
2646
|
+
return M(() => {
|
|
2637
2647
|
if (Zn) {
|
|
2638
|
-
|
|
2648
|
+
h(Gn);
|
|
2639
2649
|
return;
|
|
2640
2650
|
}
|
|
2641
|
-
|
|
2642
|
-
}, []), /* @__PURE__ */
|
|
2651
|
+
O(), Zn = !0;
|
|
2652
|
+
}, []), /* @__PURE__ */ p(
|
|
2643
2653
|
ho.Provider,
|
|
2644
2654
|
{
|
|
2645
2655
|
value: {
|
|
@@ -2647,47 +2657,47 @@ function Fl(e) {
|
|
|
2647
2657
|
namespace: o,
|
|
2648
2658
|
user: i,
|
|
2649
2659
|
currentTaskIndex: d,
|
|
2650
|
-
completed:
|
|
2651
|
-
completedCount:
|
|
2660
|
+
completed: g,
|
|
2661
|
+
completedCount: _,
|
|
2652
2662
|
nextTask: E,
|
|
2653
2663
|
branding: a,
|
|
2654
2664
|
onRequestClose: l,
|
|
2655
|
-
faceDetector:
|
|
2656
|
-
saveStream:
|
|
2657
|
-
savePhoto:
|
|
2658
|
-
onComplete:
|
|
2665
|
+
faceDetector: v,
|
|
2666
|
+
saveStream: y,
|
|
2667
|
+
savePhoto: m,
|
|
2668
|
+
onComplete: R
|
|
2659
2669
|
},
|
|
2660
2670
|
children: r
|
|
2661
2671
|
}
|
|
2662
2672
|
);
|
|
2663
2673
|
}
|
|
2664
|
-
function
|
|
2674
|
+
function ke() {
|
|
2665
2675
|
return W(ho);
|
|
2666
2676
|
}
|
|
2667
|
-
const
|
|
2668
|
-
root:
|
|
2669
|
-
container:
|
|
2670
|
-
lhs:
|
|
2671
|
-
info:
|
|
2672
|
-
active:
|
|
2673
|
-
completed:
|
|
2674
|
-
rhs:
|
|
2675
|
-
profile:
|
|
2676
|
-
avatar:
|
|
2677
|
-
main:
|
|
2678
|
-
content:
|
|
2679
|
-
},
|
|
2680
|
-
root:
|
|
2681
|
-
container:
|
|
2682
|
-
brand:
|
|
2677
|
+
const kl = "_root_vqy7d_1", Fl = "_container_vqy7d_4", xl = "_lhs_vqy7d_7", Sl = "_info_vqy7d_11", Pl = "_active_vqy7d_32", Ml = "_completed_vqy7d_39", Ll = "_rhs_vqy7d_62", Nl = "_profile_vqy7d_65", Hl = "_avatar_vqy7d_68", Dl = "_main_vqy7d_81", Al = "_content_vqy7d_84", B = {
|
|
2678
|
+
root: kl,
|
|
2679
|
+
container: Fl,
|
|
2680
|
+
lhs: xl,
|
|
2681
|
+
info: Sl,
|
|
2682
|
+
active: Pl,
|
|
2683
|
+
completed: Ml,
|
|
2684
|
+
rhs: Ll,
|
|
2685
|
+
profile: Nl,
|
|
2686
|
+
avatar: Hl,
|
|
2687
|
+
main: Dl,
|
|
2688
|
+
content: Al
|
|
2689
|
+
}, Ol = "_root_135td_1", Il = "_container_135td_1", Rl = "_brand_135td_1", Lt = {
|
|
2690
|
+
root: Ol,
|
|
2691
|
+
container: Il,
|
|
2692
|
+
brand: Rl
|
|
2683
2693
|
};
|
|
2684
|
-
function
|
|
2685
|
-
const { branding: e } =
|
|
2686
|
-
return /* @__PURE__ */
|
|
2694
|
+
function Vl() {
|
|
2695
|
+
const { branding: e } = ke();
|
|
2696
|
+
return /* @__PURE__ */ p("div", { className: Lt.root, children: /* @__PURE__ */ p("div", { className: Lt.container, children: /* @__PURE__ */ p("div", { className: Lt.brand, children: (e == null ? void 0 : e.logo) && /* @__PURE__ */ p("img", { className: "yvlw-h-10", src: e.logo, alt: "Logo" }) }) }) });
|
|
2687
2697
|
}
|
|
2688
2698
|
const Xn = "colorScheme";
|
|
2689
|
-
function
|
|
2690
|
-
const { namespace: e } =
|
|
2699
|
+
function Ul() {
|
|
2700
|
+
const { namespace: e } = ke(), t = () => {
|
|
2691
2701
|
const o = localStorage.getItem(Xn);
|
|
2692
2702
|
return !o && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : o;
|
|
2693
2703
|
}, n = (o = null) => {
|
|
@@ -2700,66 +2710,66 @@ function jl() {
|
|
|
2700
2710
|
return n(o === "dark" ? "light" : "dark");
|
|
2701
2711
|
}, getColorScheme: t };
|
|
2702
2712
|
}
|
|
2703
|
-
const
|
|
2704
|
-
root:
|
|
2713
|
+
const Wl = "_root_bcsvc_1", jl = {
|
|
2714
|
+
root: Wl
|
|
2705
2715
|
};
|
|
2706
|
-
function
|
|
2716
|
+
function zl() {
|
|
2707
2717
|
if (!(window.screen.width >= 900))
|
|
2708
2718
|
return 10 / 9;
|
|
2709
2719
|
}
|
|
2710
2720
|
function wn(e) {
|
|
2711
2721
|
const { children: t, onStream: n = () => {
|
|
2712
2722
|
}, onRecord: r = () => {
|
|
2713
|
-
} } = e, o =
|
|
2723
|
+
} } = e, o = $(null), i = $(0), a = $(null), { start: l, stop: s } = _o({
|
|
2714
2724
|
onRecord: r
|
|
2715
2725
|
}), u = async () => {
|
|
2716
2726
|
try {
|
|
2717
|
-
const
|
|
2718
|
-
video: { aspectRatio: { exact:
|
|
2727
|
+
const _ = await navigator.mediaDevices.getUserMedia({
|
|
2728
|
+
video: { aspectRatio: { exact: zl() } }
|
|
2719
2729
|
});
|
|
2720
|
-
a.current =
|
|
2730
|
+
a.current = _, l(_), o.current && (o.current.srcObject = _);
|
|
2721
2731
|
} catch {
|
|
2722
2732
|
}
|
|
2723
2733
|
}, d = () => {
|
|
2724
|
-
a.current && (a.current.getTracks().forEach((
|
|
2734
|
+
a.current && (a.current.getTracks().forEach((_) => _.stop()), a.current = null, s(), o.current && (o.current.srcObject = null));
|
|
2725
2735
|
}, c = () => {
|
|
2726
2736
|
n(o), i.current = requestAnimationFrame(c);
|
|
2727
2737
|
};
|
|
2728
|
-
return
|
|
2729
|
-
const
|
|
2730
|
-
if (!
|
|
2738
|
+
return M(() => {
|
|
2739
|
+
const _ = o.current;
|
|
2740
|
+
if (!_)
|
|
2731
2741
|
return;
|
|
2732
2742
|
const f = () => {
|
|
2733
2743
|
i.current = requestAnimationFrame(c);
|
|
2734
2744
|
};
|
|
2735
|
-
return u(),
|
|
2736
|
-
|
|
2745
|
+
return u(), _.addEventListener("canplay", f), () => {
|
|
2746
|
+
_.removeEventListener("canplay", f), cancelAnimationFrame(i.current), d();
|
|
2737
2747
|
};
|
|
2738
|
-
}, []), /* @__PURE__ */
|
|
2739
|
-
/* @__PURE__ */
|
|
2748
|
+
}, []), /* @__PURE__ */ p("div", { className: jl.root, children: [
|
|
2749
|
+
/* @__PURE__ */ p("video", { ref: o, autoPlay: !0, loop: !0, playsInline: !0 }),
|
|
2740
2750
|
t
|
|
2741
2751
|
] });
|
|
2742
2752
|
}
|
|
2743
|
-
const
|
|
2744
|
-
container:
|
|
2745
|
-
focused:
|
|
2746
|
-
progress:
|
|
2747
|
-
completed:
|
|
2748
|
-
marker:
|
|
2749
|
-
}, Qn = 360,
|
|
2750
|
-
function
|
|
2753
|
+
const Bl = "_container_mcmsr_1", ql = "_focused_mcmsr_12", Yl = "_progress_mcmsr_15", Kl = "_completed_mcmsr_36", Gl = "_marker_mcmsr_40", Re = {
|
|
2754
|
+
container: Bl,
|
|
2755
|
+
focused: ql,
|
|
2756
|
+
progress: Yl,
|
|
2757
|
+
completed: Kl,
|
|
2758
|
+
marker: Gl
|
|
2759
|
+
}, Qn = 360, Zl = 50;
|
|
2760
|
+
function Xl(e) {
|
|
2751
2761
|
const {
|
|
2752
2762
|
visitedSections: t,
|
|
2753
2763
|
sectionsCount: n,
|
|
2754
2764
|
faceDetected: r,
|
|
2755
|
-
divisions: o =
|
|
2756
|
-
} = e, i =
|
|
2765
|
+
divisions: o = Zl
|
|
2766
|
+
} = e, i = F(() => {
|
|
2757
2767
|
const a = [Re.container];
|
|
2758
2768
|
return r && a.push(Re.focused), a.join(" ");
|
|
2759
2769
|
}, [r]);
|
|
2760
|
-
return /* @__PURE__ */
|
|
2761
|
-
/* @__PURE__ */
|
|
2762
|
-
|
|
2770
|
+
return /* @__PURE__ */ p("div", { className: i, children: [
|
|
2771
|
+
/* @__PURE__ */ p(
|
|
2772
|
+
oe,
|
|
2763
2773
|
{
|
|
2764
2774
|
as: "div",
|
|
2765
2775
|
show: r,
|
|
@@ -2770,18 +2780,18 @@ function Jl(e) {
|
|
|
2770
2780
|
enterFrom: "yvlw-scale-125 yvlw-opacity-0",
|
|
2771
2781
|
enterTo: "yvlw-scale-100 yvlw-opacity-100",
|
|
2772
2782
|
className: "yvlw-absolute",
|
|
2773
|
-
children: /* @__PURE__ */
|
|
2783
|
+
children: /* @__PURE__ */ p("div", { className: Re.progress, children: Array.from(Array(o).keys()).map((a) => {
|
|
2774
2784
|
const l = a * Qn / o, s = Math.ceil(
|
|
2775
2785
|
(l + 1) * n / Qn
|
|
2776
2786
|
), u = t.includes(s), d = u ? a - (s - 1) * (o / n) : 0, c = [];
|
|
2777
2787
|
u && c.push(Re.completed);
|
|
2778
|
-
const
|
|
2779
|
-
return /* @__PURE__ */
|
|
2788
|
+
const _ = u ? "translateX(158px)" : "translateX(150px)";
|
|
2789
|
+
return /* @__PURE__ */ p(
|
|
2780
2790
|
"div",
|
|
2781
2791
|
{
|
|
2782
2792
|
className: c.join(" "),
|
|
2783
2793
|
style: {
|
|
2784
|
-
transform: `rotate(${l}deg) ${
|
|
2794
|
+
transform: `rotate(${l}deg) ${_}`,
|
|
2785
2795
|
transitionDelay: `${d * 20}ms`
|
|
2786
2796
|
}
|
|
2787
2797
|
},
|
|
@@ -2790,8 +2800,8 @@ function Jl(e) {
|
|
|
2790
2800
|
}) })
|
|
2791
2801
|
}
|
|
2792
2802
|
),
|
|
2793
|
-
/* @__PURE__ */
|
|
2794
|
-
|
|
2803
|
+
/* @__PURE__ */ p(
|
|
2804
|
+
oe,
|
|
2795
2805
|
{
|
|
2796
2806
|
as: "div",
|
|
2797
2807
|
show: !r,
|
|
@@ -2802,17 +2812,17 @@ function Jl(e) {
|
|
|
2802
2812
|
enterFrom: "yvlw-scale-75 yvlw-opacity-0",
|
|
2803
2813
|
enterTo: "yvlw-scale-100 yvlw-opacity-100",
|
|
2804
2814
|
className: "yvlw-absolute",
|
|
2805
|
-
children: /* @__PURE__ */
|
|
2806
|
-
/* @__PURE__ */
|
|
2807
|
-
/* @__PURE__ */
|
|
2808
|
-
/* @__PURE__ */
|
|
2809
|
-
/* @__PURE__ */
|
|
2815
|
+
children: /* @__PURE__ */ p("div", { className: Re.marker, children: [
|
|
2816
|
+
/* @__PURE__ */ p("div", {}),
|
|
2817
|
+
/* @__PURE__ */ p("div", {}),
|
|
2818
|
+
/* @__PURE__ */ p("div", {}),
|
|
2819
|
+
/* @__PURE__ */ p("div", {})
|
|
2810
2820
|
] })
|
|
2811
2821
|
}
|
|
2812
2822
|
)
|
|
2813
2823
|
] });
|
|
2814
2824
|
}
|
|
2815
|
-
function
|
|
2825
|
+
function Ql() {
|
|
2816
2826
|
return { checkZoomLevel: (r, o) => {
|
|
2817
2827
|
const { box: i } = r, { width: a, height: l } = i, s = a * l, u = o ** 2, d = s / u;
|
|
2818
2828
|
if (d > 0.9)
|
|
@@ -2834,29 +2844,29 @@ function bn(e = {}) {
|
|
|
2834
2844
|
},
|
|
2835
2845
|
onError: o = () => {
|
|
2836
2846
|
}
|
|
2837
|
-
} = e, { faceDetector: i } =
|
|
2838
|
-
var
|
|
2847
|
+
} = e, { faceDetector: i, savePhoto: a } = ke(), l = $(!1), s = $(!1), { checkFacialFeatures: u, checkZoomLevel: d, checkInFrame: c } = Ql(), _ = $(null), f = (h, y) => {
|
|
2848
|
+
var m;
|
|
2839
2849
|
try {
|
|
2840
|
-
if (
|
|
2850
|
+
if (h.length === 0)
|
|
2841
2851
|
throw new Error("Detecting face...");
|
|
2842
|
-
if (
|
|
2852
|
+
if (h.length > 1)
|
|
2843
2853
|
throw new Error("A maximum of 1 face is allowed");
|
|
2844
|
-
const
|
|
2845
|
-
if (!
|
|
2854
|
+
const w = _.current, b = (m = _.current) == null ? void 0 : m.parentElement;
|
|
2855
|
+
if (!w || !b)
|
|
2846
2856
|
return;
|
|
2847
|
-
const
|
|
2848
|
-
for (const
|
|
2849
|
-
switch (
|
|
2857
|
+
const g = h[0];
|
|
2858
|
+
for (const E of t)
|
|
2859
|
+
switch (E) {
|
|
2850
2860
|
case "zoom":
|
|
2851
|
-
|
|
2852
|
-
|
|
2853
|
-
Math.min(
|
|
2861
|
+
d(
|
|
2862
|
+
g,
|
|
2863
|
+
Math.min(b.clientHeight, b.clientWidth)
|
|
2854
2864
|
);
|
|
2855
2865
|
break;
|
|
2856
2866
|
case "features":
|
|
2857
|
-
|
|
2858
|
-
|
|
2859
|
-
Math.min(
|
|
2867
|
+
u(
|
|
2868
|
+
g,
|
|
2869
|
+
Math.min(b.clientHeight, b.clientWidth)
|
|
2860
2870
|
);
|
|
2861
2871
|
break;
|
|
2862
2872
|
case "in-frame":
|
|
@@ -2864,59 +2874,72 @@ function bn(e = {}) {
|
|
|
2864
2874
|
throw new Error(
|
|
2865
2875
|
"Frame size is required to check if face is in frame"
|
|
2866
2876
|
);
|
|
2867
|
-
const
|
|
2868
|
-
|
|
2869
|
-
x: (
|
|
2870
|
-
y: (
|
|
2871
|
-
width:
|
|
2872
|
-
height:
|
|
2873
|
-
offsetX: (
|
|
2874
|
-
offsetY: (
|
|
2877
|
+
const x = n + 200;
|
|
2878
|
+
c(g, {
|
|
2879
|
+
x: (b.clientWidth - x) / 2,
|
|
2880
|
+
y: (b.clientHeight - x) / 2,
|
|
2881
|
+
width: x,
|
|
2882
|
+
height: x,
|
|
2883
|
+
offsetX: (w.videoWidth - b.clientWidth) / 2,
|
|
2884
|
+
offsetY: (w.videoHeight - b.clientHeight) / 2
|
|
2875
2885
|
});
|
|
2876
2886
|
break;
|
|
2877
2887
|
default:
|
|
2878
2888
|
break;
|
|
2879
2889
|
}
|
|
2880
|
-
|
|
2881
|
-
|
|
2882
|
-
|
|
2883
|
-
|
|
2890
|
+
if (!s.current)
|
|
2891
|
+
throw l.current || (l.current = !0, setTimeout(() => {
|
|
2892
|
+
a(y), s.current = !0;
|
|
2893
|
+
}, 2e3)), new Error("Keep head still for a photograph");
|
|
2894
|
+
r(g);
|
|
2895
|
+
} catch (w) {
|
|
2896
|
+
const { message: b } = w;
|
|
2897
|
+
o(b);
|
|
2884
2898
|
}
|
|
2885
2899
|
};
|
|
2886
|
-
return { detectFaces: async (
|
|
2900
|
+
return { detectFaces: async (h) => {
|
|
2887
2901
|
if (!i)
|
|
2888
2902
|
return;
|
|
2889
|
-
const { ref:
|
|
2890
|
-
|
|
2891
|
-
const
|
|
2892
|
-
if (!
|
|
2903
|
+
const { ref: y } = h;
|
|
2904
|
+
_.current = y.current;
|
|
2905
|
+
const m = _.current;
|
|
2906
|
+
if (!m)
|
|
2893
2907
|
throw new Error("No Video Source detected");
|
|
2894
|
-
const { videoWidth:
|
|
2895
|
-
if (
|
|
2908
|
+
const { videoWidth: w, videoHeight: b } = m;
|
|
2909
|
+
if (w === 0 || b === 0)
|
|
2896
2910
|
return;
|
|
2897
|
-
const
|
|
2898
|
-
|
|
2899
|
-
|
|
2900
|
-
|
|
2911
|
+
const g = po(
|
|
2912
|
+
m,
|
|
2913
|
+
w,
|
|
2914
|
+
b
|
|
2901
2915
|
// frameSize,
|
|
2902
|
-
),
|
|
2903
|
-
|
|
2916
|
+
), E = await we.detectFaces(i, g);
|
|
2917
|
+
f(E, m);
|
|
2904
2918
|
} };
|
|
2905
2919
|
}
|
|
2906
|
-
const
|
|
2907
|
-
root:
|
|
2908
|
-
container:
|
|
2909
|
-
progress:
|
|
2910
|
-
intro:
|
|
2911
|
-
content:
|
|
2912
|
-
branding:
|
|
2913
|
-
instructionsContainer:
|
|
2914
|
-
instructions:
|
|
2915
|
-
},
|
|
2916
|
-
root:
|
|
2917
|
-
spinner:
|
|
2918
|
-
spin:
|
|
2920
|
+
const Jl = "_root_1psx5_1", es = "_container_1psx5_4", ts = "_progress_1psx5_7", ns = "_intro_1psx5_12", rs = "_content_1psx5_15", os = "_branding_1psx5_18", is = "_instructionsContainer_1psx5_22", as = "_instructions_1psx5_22", J = {
|
|
2921
|
+
root: Jl,
|
|
2922
|
+
container: es,
|
|
2923
|
+
progress: ts,
|
|
2924
|
+
intro: ns,
|
|
2925
|
+
content: rs,
|
|
2926
|
+
branding: os,
|
|
2927
|
+
instructionsContainer: is,
|
|
2928
|
+
instructions: as
|
|
2929
|
+
}, ls = "_root_1j21c_1", ss = "_spinner_1j21c_18", cs = "_spin_1j21c_18", us = {
|
|
2930
|
+
root: ls,
|
|
2931
|
+
spinner: ss,
|
|
2932
|
+
spin: cs
|
|
2933
|
+
}, ds = "_container_1vep2_1", fs = "_spin_1vep2_1", ps = "_md_1vep2_7", _s = "_lg_1vep2_10", Jn = {
|
|
2934
|
+
container: ds,
|
|
2935
|
+
spin: fs,
|
|
2936
|
+
md: ps,
|
|
2937
|
+
lg: _s
|
|
2919
2938
|
};
|
|
2939
|
+
function mo(e) {
|
|
2940
|
+
const { size: t = "md" } = e;
|
|
2941
|
+
return /* @__PURE__ */ p("span", { className: `${Jn.container} ${Jn[t]}` });
|
|
2942
|
+
}
|
|
2920
2943
|
function ft(e) {
|
|
2921
2944
|
const {
|
|
2922
2945
|
Icon: t,
|
|
@@ -2928,41 +2951,41 @@ function ft(e) {
|
|
|
2928
2951
|
loading: a = !1,
|
|
2929
2952
|
children: l
|
|
2930
2953
|
} = e;
|
|
2931
|
-
return /* @__PURE__ */
|
|
2932
|
-
/* @__PURE__ */
|
|
2933
|
-
/* @__PURE__ */
|
|
2934
|
-
/* @__PURE__ */
|
|
2935
|
-
/* @__PURE__ */
|
|
2954
|
+
return /* @__PURE__ */ p("div", { className: us.root, children: [
|
|
2955
|
+
/* @__PURE__ */ p(t, { size: "custom", className: "yvlw-h-20 yvlw-mx-auto yvlw-mb-12" }),
|
|
2956
|
+
/* @__PURE__ */ p("h2", { children: r }),
|
|
2957
|
+
/* @__PURE__ */ p("p", { className: "subtext", children: n }),
|
|
2958
|
+
/* @__PURE__ */ p("div", { className: "yvlw-mt-12", children: /* @__PURE__ */ p(
|
|
2936
2959
|
gi,
|
|
2937
2960
|
{
|
|
2938
2961
|
onClick: () => i(),
|
|
2939
2962
|
className: "yvlw-flex yvlw-items-center yvlw-space-x-3",
|
|
2940
2963
|
disabled: a,
|
|
2941
2964
|
children: [
|
|
2942
|
-
/* @__PURE__ */
|
|
2943
|
-
a && /* @__PURE__ */
|
|
2965
|
+
/* @__PURE__ */ p("span", { className: "yvlw-flex-1 yvlw-flex yvlw-items-center yvlw-space-x-1 yvlw-justify-center", children: o }),
|
|
2966
|
+
a && /* @__PURE__ */ p(mo, {})
|
|
2944
2967
|
]
|
|
2945
2968
|
}
|
|
2946
2969
|
) }),
|
|
2947
2970
|
l
|
|
2948
2971
|
] });
|
|
2949
2972
|
}
|
|
2950
|
-
function
|
|
2973
|
+
function $n(e) {
|
|
2951
2974
|
const { children: t, instruction: n, name: r, completed: o, onStart: i = () => {
|
|
2952
|
-
} } = e, [a, l] = k(!1), { completedCount: s, tasks: u, nextTask: d } =
|
|
2975
|
+
} } = e, [a, l] = k(!1), { completedCount: s, tasks: u, nextTask: d } = ke(), c = F(() => vo[r], [r]), _ = F(
|
|
2953
2976
|
() => s * 100 / u.length,
|
|
2954
2977
|
[s, u.length]
|
|
2955
2978
|
);
|
|
2956
|
-
return /* @__PURE__ */
|
|
2957
|
-
/* @__PURE__ */
|
|
2979
|
+
return /* @__PURE__ */ p("div", { className: J.root, children: /* @__PURE__ */ p("div", { className: `${J.container} view`, children: [
|
|
2980
|
+
/* @__PURE__ */ p(
|
|
2958
2981
|
"div",
|
|
2959
2982
|
{
|
|
2960
|
-
style: { width: `${
|
|
2961
|
-
className:
|
|
2983
|
+
style: { width: `${_}%` },
|
|
2984
|
+
className: J.progress
|
|
2962
2985
|
}
|
|
2963
2986
|
),
|
|
2964
|
-
/* @__PURE__ */
|
|
2965
|
-
|
|
2987
|
+
/* @__PURE__ */ p(
|
|
2988
|
+
oe,
|
|
2966
2989
|
{
|
|
2967
2990
|
show: !a && !o,
|
|
2968
2991
|
as: "div",
|
|
@@ -2973,7 +2996,7 @@ function En(e) {
|
|
|
2973
2996
|
leaveFrom: "yvlw-translate-x-0",
|
|
2974
2997
|
leaveTo: "yvlw--translate-x-full",
|
|
2975
2998
|
className: "yvlw-absolute yvlw-h-full yvlw-w-full",
|
|
2976
|
-
children: /* @__PURE__ */
|
|
2999
|
+
children: /* @__PURE__ */ p("div", { className: `${J.intro}`, children: /* @__PURE__ */ p(
|
|
2977
3000
|
ft,
|
|
2978
3001
|
{
|
|
2979
3002
|
Icon: c.Icon,
|
|
@@ -2987,8 +3010,8 @@ function En(e) {
|
|
|
2987
3010
|
) })
|
|
2988
3011
|
}
|
|
2989
3012
|
),
|
|
2990
|
-
/* @__PURE__ */
|
|
2991
|
-
|
|
3013
|
+
/* @__PURE__ */ p(
|
|
3014
|
+
oe,
|
|
2992
3015
|
{
|
|
2993
3016
|
as: "div",
|
|
2994
3017
|
show: a && !o,
|
|
@@ -3000,23 +3023,23 @@ function En(e) {
|
|
|
3000
3023
|
leaveTo: "yvlw-translate-x-full",
|
|
3001
3024
|
className: "yvlw-absolute yvlw-w-full yvlw-h-full",
|
|
3002
3025
|
children: [
|
|
3003
|
-
/* @__PURE__ */
|
|
3004
|
-
/* @__PURE__ */
|
|
3005
|
-
/* @__PURE__ */
|
|
3006
|
-
/* @__PURE__ */
|
|
3007
|
-
/* @__PURE__ */
|
|
3026
|
+
/* @__PURE__ */ p("div", { className: `${J.content}`, children: t }),
|
|
3027
|
+
/* @__PURE__ */ p("div", { className: J.instructionsContainer, children: [
|
|
3028
|
+
/* @__PURE__ */ p("div", { className: J.instructions, children: [
|
|
3029
|
+
/* @__PURE__ */ p("h2", { children: n.title }),
|
|
3030
|
+
/* @__PURE__ */ p("p", { className: "subtext", children: n.description })
|
|
3008
3031
|
] }),
|
|
3009
|
-
/* @__PURE__ */
|
|
3010
|
-
/* @__PURE__ */
|
|
3032
|
+
/* @__PURE__ */ p("div", { className: J.branding, children: [
|
|
3033
|
+
/* @__PURE__ */ p("span", { children: "Powered by" }),
|
|
3011
3034
|
" ",
|
|
3012
|
-
/* @__PURE__ */
|
|
3035
|
+
/* @__PURE__ */ p(_l, { size: "custom", className: "yvlw-h-3" })
|
|
3013
3036
|
] })
|
|
3014
3037
|
] })
|
|
3015
3038
|
]
|
|
3016
3039
|
}
|
|
3017
3040
|
),
|
|
3018
|
-
/* @__PURE__ */
|
|
3019
|
-
|
|
3041
|
+
/* @__PURE__ */ p(
|
|
3042
|
+
oe,
|
|
3020
3043
|
{
|
|
3021
3044
|
show: o,
|
|
3022
3045
|
as: "div",
|
|
@@ -3027,7 +3050,7 @@ function En(e) {
|
|
|
3027
3050
|
leaveFrom: "yvlw-translate-x-0",
|
|
3028
3051
|
leaveTo: "yvlw-translate-x-full",
|
|
3029
3052
|
className: "yvlw-absolute yvlw-w-full yvlw-h-full",
|
|
3030
|
-
children: /* @__PURE__ */
|
|
3053
|
+
children: /* @__PURE__ */ p("div", { className: `${J.intro}`, children: /* @__PURE__ */ p(
|
|
3031
3054
|
ft,
|
|
3032
3055
|
{
|
|
3033
3056
|
Icon: c.Icon,
|
|
@@ -3044,18 +3067,18 @@ function En(e) {
|
|
|
3044
3067
|
)
|
|
3045
3068
|
] }) });
|
|
3046
3069
|
}
|
|
3047
|
-
const
|
|
3048
|
-
function
|
|
3049
|
-
const { difficulty: t } = e, { saveStream: n
|
|
3050
|
-
const
|
|
3051
|
-
|
|
3052
|
-
|
|
3070
|
+
const vs = 1, Nt = 8;
|
|
3071
|
+
function hs(e) {
|
|
3072
|
+
const { difficulty: t } = e, { saveStream: n } = ke(), [r, o] = k([]), [i, a] = k("Place face in frame"), [l, s] = k(!1), [u, d] = k(!1), c = $(/* @__PURE__ */ new Set()), _ = $(!1), f = $(null), v = (g) => {
|
|
3073
|
+
const E = g * Nt, x = Math.ceil((E + 1) / $l);
|
|
3074
|
+
c.current.has(x) || (c.current.add(x), o(Array.from(c.current))), c.current.size >= Nt && setTimeout(() => {
|
|
3075
|
+
d(!0);
|
|
3053
3076
|
}, 1e3);
|
|
3054
|
-
},
|
|
3055
|
-
let
|
|
3056
|
-
return
|
|
3057
|
-
},
|
|
3058
|
-
if (
|
|
3077
|
+
}, h = (g, E) => {
|
|
3078
|
+
let R = Math.atan2(E, g) * (180 / Math.PI);
|
|
3079
|
+
return R < 0 && (R += 360), R;
|
|
3080
|
+
}, y = F(() => {
|
|
3081
|
+
if (c.current.size === 0)
|
|
3059
3082
|
return 25;
|
|
3060
3083
|
switch (t) {
|
|
3061
3084
|
case "easy":
|
|
@@ -3065,80 +3088,80 @@ function ps(e) {
|
|
|
3065
3088
|
default:
|
|
3066
3089
|
return 10;
|
|
3067
3090
|
}
|
|
3068
|
-
}, []),
|
|
3069
|
-
const { keypoints:
|
|
3070
|
-
return Math.abs(
|
|
3071
|
-
}, { detectFaces:
|
|
3091
|
+
}, []), m = (g) => {
|
|
3092
|
+
const { keypoints: E, box: x } = g, R = { x: x.width * 0.5, y: x.height * 0.5 }, O = E[vs], S = { y: O.y - x.yMin, x: O.x - x.xMin }, L = R.x - S.x, U = S.y - R.y;
|
|
3093
|
+
return Math.abs(L) < y && Math.abs(U) < y ? null : h(L, U);
|
|
3094
|
+
}, { detectFaces: w } = bn({
|
|
3072
3095
|
frameSize: 280,
|
|
3073
3096
|
validations: ["zoom", "in-frame"],
|
|
3074
|
-
onFace: (
|
|
3075
|
-
|
|
3076
|
-
const
|
|
3077
|
-
|
|
3097
|
+
onFace: (g) => {
|
|
3098
|
+
s(!0), a("Slowly move head around to complete circle");
|
|
3099
|
+
const E = m(g);
|
|
3100
|
+
E && v(E);
|
|
3078
3101
|
},
|
|
3079
|
-
onError: (
|
|
3080
|
-
|
|
3102
|
+
onError: (g) => {
|
|
3103
|
+
a(g), o([]), c.current.clear(), f.current = null, _.current = !1;
|
|
3081
3104
|
}
|
|
3082
3105
|
});
|
|
3083
|
-
return /* @__PURE__ */
|
|
3084
|
-
|
|
3106
|
+
return /* @__PURE__ */ p(H, { children: /* @__PURE__ */ p(
|
|
3107
|
+
$n,
|
|
3085
3108
|
{
|
|
3086
3109
|
instruction: {
|
|
3087
|
-
title:
|
|
3088
|
-
description:
|
|
3110
|
+
title: i,
|
|
3111
|
+
description: l ? void 0 : "Always ensure face is in frame"
|
|
3089
3112
|
},
|
|
3090
3113
|
name: "complete-the-circle",
|
|
3091
|
-
completed:
|
|
3092
|
-
children: /* @__PURE__ */
|
|
3114
|
+
completed: u,
|
|
3115
|
+
children: /* @__PURE__ */ p(wn, { onStream: (g) => {
|
|
3093
3116
|
try {
|
|
3094
|
-
if (!
|
|
3117
|
+
if (!g.current || u)
|
|
3095
3118
|
return;
|
|
3096
|
-
const { videoWidth:
|
|
3097
|
-
|
|
3119
|
+
const { videoWidth: E } = g.current;
|
|
3120
|
+
w({ ref: g, frameSize: E });
|
|
3098
3121
|
} catch {
|
|
3099
3122
|
}
|
|
3100
|
-
}, onRecord: n, children: /* @__PURE__ */
|
|
3101
|
-
|
|
3123
|
+
}, onRecord: n, children: /* @__PURE__ */ p(
|
|
3124
|
+
Xl,
|
|
3102
3125
|
{
|
|
3103
|
-
faceDetected:
|
|
3126
|
+
faceDetected: l,
|
|
3104
3127
|
sectionsCount: Nt,
|
|
3105
|
-
visitedSections:
|
|
3128
|
+
visitedSections: r
|
|
3106
3129
|
}
|
|
3107
3130
|
) })
|
|
3108
3131
|
}
|
|
3109
3132
|
) });
|
|
3110
3133
|
}
|
|
3111
|
-
const
|
|
3112
|
-
root:
|
|
3113
|
-
sticker:
|
|
3114
|
-
no:
|
|
3115
|
-
yes:
|
|
3134
|
+
const ms = "_root_thujo_1", ys = "_sticker_thujo_4", gs = "_no_thujo_7", ws = "_yes_thujo_12", Ht = {
|
|
3135
|
+
root: ms,
|
|
3136
|
+
sticker: ys,
|
|
3137
|
+
no: gs,
|
|
3138
|
+
yes: ws
|
|
3116
3139
|
};
|
|
3117
|
-
function
|
|
3140
|
+
function bs(e) {
|
|
3118
3141
|
const { show: t, stickers: n } = e;
|
|
3119
|
-
return /* @__PURE__ */
|
|
3142
|
+
return /* @__PURE__ */ p(H, { children: t && /* @__PURE__ */ p("div", { className: Ht.root, children: n.map((r) => /* @__PURE__ */ p(
|
|
3120
3143
|
"div",
|
|
3121
3144
|
{
|
|
3122
|
-
className: `${
|
|
3145
|
+
className: `${Ht.sticker} ${Ht[r]}`,
|
|
3123
3146
|
children: r.toUpperCase()
|
|
3124
3147
|
},
|
|
3125
3148
|
`sticker-${r}`
|
|
3126
3149
|
)) }) });
|
|
3127
3150
|
}
|
|
3128
|
-
const
|
|
3151
|
+
const $s = {
|
|
3129
3152
|
question: "Are you alive?",
|
|
3130
3153
|
errorMessage: "You have to be alive to proceed though",
|
|
3131
3154
|
answer: !0
|
|
3132
|
-
},
|
|
3133
|
-
function
|
|
3134
|
-
const { difficulty: t, questions: n = [
|
|
3135
|
-
const { keypoints:
|
|
3136
|
-
return 90 - Math.atan2(
|
|
3137
|
-
},
|
|
3138
|
-
|
|
3139
|
-
|
|
3155
|
+
}, Es = "Wrong answer. Try again";
|
|
3156
|
+
function Cs(e) {
|
|
3157
|
+
const { difficulty: t, questions: n = [$s] } = e, [r, o] = k("Keep face in camera"), [i, a] = k(!1), [l, s] = k(!1), { saveStream: u } = ke(), d = $("inactive"), c = $(0), _ = $(!1), f = (b) => {
|
|
3158
|
+
const { keypoints: g } = b, E = g[1], x = g[9], R = E.x - x.x, O = E.y - x.y;
|
|
3159
|
+
return 90 - Math.atan2(O, R) * (180 / Math.PI);
|
|
3160
|
+
}, v = (b) => {
|
|
3161
|
+
d.current = "inactive", o(n[b].question), setTimeout(() => {
|
|
3162
|
+
d.current = "active";
|
|
3140
3163
|
}, 2e3);
|
|
3141
|
-
},
|
|
3164
|
+
}, h = F(() => {
|
|
3142
3165
|
switch (t) {
|
|
3143
3166
|
case "easy":
|
|
3144
3167
|
return 2;
|
|
@@ -3147,35 +3170,35 @@ function bs(e) {
|
|
|
3147
3170
|
default:
|
|
3148
3171
|
return 4;
|
|
3149
3172
|
}
|
|
3150
|
-
}, []),
|
|
3173
|
+
}, []), y = (b) => {
|
|
3151
3174
|
try {
|
|
3152
|
-
if (
|
|
3175
|
+
if (d.current = "inactive", Math.abs(b) < h)
|
|
3153
3176
|
throw new Error("Tilt head further to answer");
|
|
3154
|
-
const
|
|
3155
|
-
if (
|
|
3156
|
-
|
|
3177
|
+
const g = b > 0, E = n[c.current].answer;
|
|
3178
|
+
if (g === E)
|
|
3179
|
+
c.current += 1, c.current === n.length ? s(!0) : v(c.current);
|
|
3157
3180
|
else
|
|
3158
3181
|
throw new Error(
|
|
3159
|
-
n[
|
|
3182
|
+
n[c.current].errorMessage || Es
|
|
3160
3183
|
);
|
|
3161
|
-
} catch (
|
|
3162
|
-
o(
|
|
3163
|
-
|
|
3184
|
+
} catch (g) {
|
|
3185
|
+
o(g.message), setTimeout(() => {
|
|
3186
|
+
v(c.current);
|
|
3164
3187
|
}, 2e3);
|
|
3165
3188
|
}
|
|
3166
|
-
}, { detectFaces:
|
|
3167
|
-
onFace: (b
|
|
3168
|
-
if (
|
|
3189
|
+
}, { detectFaces: m } = bn({
|
|
3190
|
+
onFace: (b) => {
|
|
3191
|
+
if (_.current || (a(!0), _.current = !0, v(c.current)), d.current === "inactive")
|
|
3169
3192
|
return;
|
|
3170
|
-
const
|
|
3171
|
-
|
|
3193
|
+
const g = f(b);
|
|
3194
|
+
y(g);
|
|
3172
3195
|
},
|
|
3173
3196
|
onError: (b) => {
|
|
3174
3197
|
o(b);
|
|
3175
3198
|
}
|
|
3176
3199
|
});
|
|
3177
|
-
return /* @__PURE__ */
|
|
3178
|
-
|
|
3200
|
+
return /* @__PURE__ */ p(
|
|
3201
|
+
$n,
|
|
3179
3202
|
{
|
|
3180
3203
|
instruction: {
|
|
3181
3204
|
title: r,
|
|
@@ -3183,19 +3206,19 @@ function bs(e) {
|
|
|
3183
3206
|
},
|
|
3184
3207
|
name: "yes-or-no",
|
|
3185
3208
|
completed: l,
|
|
3186
|
-
children: /* @__PURE__ */
|
|
3209
|
+
children: /* @__PURE__ */ p(wn, { onStream: (b) => {
|
|
3187
3210
|
try {
|
|
3188
3211
|
if (!b.current || l)
|
|
3189
3212
|
return;
|
|
3190
|
-
const { videoWidth:
|
|
3191
|
-
|
|
3213
|
+
const { videoWidth: g } = b.current;
|
|
3214
|
+
m({ ref: b, frameSize: g });
|
|
3192
3215
|
} catch {
|
|
3193
3216
|
}
|
|
3194
|
-
}, onRecord: u, children: /* @__PURE__ */
|
|
3217
|
+
}, onRecord: u, children: /* @__PURE__ */ p(bs, { show: i, stickers: ["yes", "no"] }) })
|
|
3195
3218
|
}
|
|
3196
3219
|
);
|
|
3197
3220
|
}
|
|
3198
|
-
function
|
|
3221
|
+
function Ts(e = {}) {
|
|
3199
3222
|
const { onChange: t = () => {
|
|
3200
3223
|
} } = e, n = !!window.DeviceOrientationEvent, r = (o) => {
|
|
3201
3224
|
t({
|
|
@@ -3204,14 +3227,14 @@ function Es(e = {}) {
|
|
|
3204
3227
|
gamma: o.gamma
|
|
3205
3228
|
});
|
|
3206
3229
|
};
|
|
3207
|
-
return
|
|
3230
|
+
return M(() => (window.addEventListener("deviceorientation", r), () => {
|
|
3208
3231
|
window.removeEventListener("deviceorientation", r);
|
|
3209
3232
|
}), []), {
|
|
3210
3233
|
canUse: n
|
|
3211
3234
|
};
|
|
3212
3235
|
}
|
|
3213
|
-
function
|
|
3214
|
-
const { total: t, onMessage: n, onComplete: r, difficulty: o } = e, i =
|
|
3236
|
+
function ks(e) {
|
|
3237
|
+
const { total: t, onMessage: n, onComplete: r, difficulty: o } = e, i = $(null), a = $(!0), l = $(null), s = $(null), u = $(0), d = $(!1), c = F(() => {
|
|
3215
3238
|
switch (o) {
|
|
3216
3239
|
case "easy":
|
|
3217
3240
|
return 6;
|
|
@@ -3220,22 +3243,22 @@ function $s(e) {
|
|
|
3220
3243
|
default:
|
|
3221
3244
|
return 8;
|
|
3222
3245
|
}
|
|
3223
|
-
}, []),
|
|
3246
|
+
}, []), _ = () => {
|
|
3224
3247
|
if (u.current < t) {
|
|
3225
|
-
const
|
|
3226
|
-
let
|
|
3227
|
-
|
|
3248
|
+
const h = t - u.current;
|
|
3249
|
+
let y = `Nod head ${h} `;
|
|
3250
|
+
h < t && (y += "more "), y += h > 1 ? "times" : "time", n(y);
|
|
3228
3251
|
return;
|
|
3229
3252
|
}
|
|
3230
3253
|
d.current = !0, n("Great, hang on..."), setTimeout(() => {
|
|
3231
3254
|
r();
|
|
3232
3255
|
}, 500);
|
|
3233
|
-
}, { canUse: f } =
|
|
3234
|
-
onChange: (
|
|
3235
|
-
s.current =
|
|
3256
|
+
}, { canUse: f } = Ts({
|
|
3257
|
+
onChange: (h) => {
|
|
3258
|
+
s.current = h;
|
|
3236
3259
|
}
|
|
3237
3260
|
});
|
|
3238
|
-
return { evaluate: (
|
|
3261
|
+
return { evaluate: (h) => {
|
|
3239
3262
|
if (!f) {
|
|
3240
3263
|
n("Cannot perform task. Transfer to mobile device to complete");
|
|
3241
3264
|
return;
|
|
@@ -3250,26 +3273,26 @@ function $s(e) {
|
|
|
3250
3273
|
}
|
|
3251
3274
|
if (d.current)
|
|
3252
3275
|
return;
|
|
3253
|
-
const { keypoints:
|
|
3254
|
-
|
|
3255
|
-
|
|
3256
|
-
),
|
|
3257
|
-
|
|
3258
|
-
|
|
3259
|
-
) /
|
|
3260
|
-
if (
|
|
3276
|
+
const { keypoints: y } = h, m = Le(
|
|
3277
|
+
y[6].x - y[8].x,
|
|
3278
|
+
y[6].y - y[8].y
|
|
3279
|
+
), b = Le(
|
|
3280
|
+
y[2].x - y[1].x,
|
|
3281
|
+
y[2].y - y[1].y
|
|
3282
|
+
) / m * 10;
|
|
3283
|
+
if (b > c) {
|
|
3261
3284
|
if (i.current || !a.current)
|
|
3262
3285
|
return;
|
|
3263
|
-
i.current =
|
|
3286
|
+
i.current = b, a.current = !1, l.current = setTimeout(() => {
|
|
3264
3287
|
i.current = null;
|
|
3265
3288
|
}, 3e3);
|
|
3266
3289
|
} else
|
|
3267
|
-
i.current && i.current -
|
|
3268
|
-
|
|
3290
|
+
i.current && i.current - b > c / 2 && (u.current += 1, i.current = null, l.current && clearTimeout(l.current)), a.current = !0;
|
|
3291
|
+
_();
|
|
3269
3292
|
} };
|
|
3270
3293
|
}
|
|
3271
|
-
function
|
|
3272
|
-
const { onMessage: t, onComplete: n, difficulty: r } = e, o =
|
|
3294
|
+
function Fs(e) {
|
|
3295
|
+
const { onMessage: t, onComplete: n, difficulty: r } = e, o = $(!1), i = F(() => {
|
|
3273
3296
|
switch (r) {
|
|
3274
3297
|
case "easy":
|
|
3275
3298
|
return 80;
|
|
@@ -3282,11 +3305,11 @@ function Cs(e) {
|
|
|
3282
3305
|
return { evaluate: (l) => {
|
|
3283
3306
|
if (o.current)
|
|
3284
3307
|
return;
|
|
3285
|
-
const { keypoints: s } = l, u =
|
|
3308
|
+
const { keypoints: s } = l, u = Le(
|
|
3286
3309
|
s[6].x - s[8].x,
|
|
3287
3310
|
s[6].y - s[8].y
|
|
3288
3311
|
);
|
|
3289
|
-
if (
|
|
3312
|
+
if (Le(
|
|
3290
3313
|
s[14].x - s[13].x,
|
|
3291
3314
|
s[14].y - s[13].y
|
|
3292
3315
|
) / u * 100 > i) {
|
|
@@ -3298,8 +3321,8 @@ function Cs(e) {
|
|
|
3298
3321
|
t("Open your mouth wide");
|
|
3299
3322
|
} };
|
|
3300
3323
|
}
|
|
3301
|
-
function
|
|
3302
|
-
const { total: t, onMessage: n, onComplete: r, difficulty: o } = e, i =
|
|
3324
|
+
function xs(e) {
|
|
3325
|
+
const { total: t, onMessage: n, onComplete: r, difficulty: o } = e, i = $(!0), a = $(!1), l = $(null), s = $(0), u = F(() => {
|
|
3303
3326
|
switch (o) {
|
|
3304
3327
|
case "easy":
|
|
3305
3328
|
return {
|
|
@@ -3317,38 +3340,38 @@ function Ts(e) {
|
|
|
3317
3340
|
open: 30
|
|
3318
3341
|
};
|
|
3319
3342
|
}
|
|
3320
|
-
}, []), d = (
|
|
3321
|
-
i.current && (
|
|
3322
|
-
}, c = (
|
|
3323
|
-
if (!i.current && !(
|
|
3324
|
-
const
|
|
3325
|
-
(
|
|
3343
|
+
}, []), d = (v) => {
|
|
3344
|
+
i.current && (v >= u.closed || (i.current = !1, l.current = Date.now()));
|
|
3345
|
+
}, c = (v) => {
|
|
3346
|
+
if (!i.current && !(v < u.open) && (i.current = !0, l.current)) {
|
|
3347
|
+
const h = Date.now(), y = l.current;
|
|
3348
|
+
(h - y) / 1e3 <= 2 && (s.current += 1);
|
|
3326
3349
|
}
|
|
3327
|
-
},
|
|
3350
|
+
}, _ = () => {
|
|
3328
3351
|
if (s.current < t) {
|
|
3329
|
-
const
|
|
3330
|
-
let
|
|
3331
|
-
|
|
3352
|
+
const v = t - s.current;
|
|
3353
|
+
let h = `Blink right eye ${v} `;
|
|
3354
|
+
v < t && (h += "more "), h += v > 1 ? "times" : "time", n(h);
|
|
3332
3355
|
return;
|
|
3333
3356
|
}
|
|
3334
3357
|
a.current = !0, n("Great, hang on..."), setTimeout(() => {
|
|
3335
3358
|
r();
|
|
3336
3359
|
}, 500);
|
|
3337
3360
|
};
|
|
3338
|
-
return { evaluate: (
|
|
3361
|
+
return { evaluate: (v) => {
|
|
3339
3362
|
if (a.current)
|
|
3340
3363
|
return;
|
|
3341
|
-
const { keypoints:
|
|
3342
|
-
|
|
3343
|
-
|
|
3344
|
-
),
|
|
3345
|
-
|
|
3346
|
-
|
|
3347
|
-
) /
|
|
3348
|
-
d(
|
|
3364
|
+
const { keypoints: h } = v, y = Le(
|
|
3365
|
+
h[6].x - h[8].x,
|
|
3366
|
+
h[6].y - h[8].y
|
|
3367
|
+
), w = Le(
|
|
3368
|
+
h[145].x - h[159].x,
|
|
3369
|
+
h[145].y - h[159].y
|
|
3370
|
+
) / y * 100;
|
|
3371
|
+
d(w), c(w), _();
|
|
3349
3372
|
} };
|
|
3350
3373
|
}
|
|
3351
|
-
function
|
|
3374
|
+
function Ss() {
|
|
3352
3375
|
return {
|
|
3353
3376
|
requestDeviceOrientationPermission: async () => {
|
|
3354
3377
|
if (!window.DeviceOrientationEvent)
|
|
@@ -3359,49 +3382,49 @@ function ks() {
|
|
|
3359
3382
|
}
|
|
3360
3383
|
};
|
|
3361
3384
|
}
|
|
3362
|
-
var
|
|
3363
|
-
const er =
|
|
3364
|
-
function
|
|
3365
|
-
const { difficulty: t, maxBlinks: n = 5, maxNods: r = 5 } = e, o =
|
|
3385
|
+
var yo = /* @__PURE__ */ ((e) => (e.nod = "nod", e.open_mouth = "open_mouth", e.blink = "blink", e))(yo || {});
|
|
3386
|
+
const er = yl(Object.keys(yo));
|
|
3387
|
+
function Ps(e) {
|
|
3388
|
+
const { difficulty: t, maxBlinks: n = 5, maxNods: r = 5 } = e, o = $(0), [i, a] = k("Keep face in camera"), [l, s] = k(!1), [u, d] = k(null), c = $(!1), { requestDeviceOrientationPermission: _ } = Ss(), f = () => {
|
|
3366
3389
|
if (o.current === er.length - 1) {
|
|
3367
3390
|
s(!0);
|
|
3368
3391
|
return;
|
|
3369
3392
|
}
|
|
3370
3393
|
o.current += 1;
|
|
3371
|
-
},
|
|
3394
|
+
}, v = ks({
|
|
3372
3395
|
total: Math.floor(Math.random() * r + 1),
|
|
3373
3396
|
difficulty: t,
|
|
3374
|
-
onMessage: (
|
|
3397
|
+
onMessage: (g) => a(g),
|
|
3375
3398
|
onComplete: f
|
|
3376
|
-
}),
|
|
3399
|
+
}), h = Fs({
|
|
3377
3400
|
difficulty: t,
|
|
3378
|
-
onMessage: (
|
|
3401
|
+
onMessage: (g) => a(g),
|
|
3379
3402
|
onComplete: f
|
|
3380
|
-
}),
|
|
3403
|
+
}), y = xs({
|
|
3381
3404
|
total: Math.floor(Math.random() * n + 1),
|
|
3382
3405
|
difficulty: t,
|
|
3383
|
-
onMessage: (
|
|
3406
|
+
onMessage: (g) => a(g),
|
|
3384
3407
|
onComplete: f
|
|
3385
|
-
}), { detectFaces:
|
|
3386
|
-
onFace: (
|
|
3408
|
+
}), { detectFaces: m } = bn({
|
|
3409
|
+
onFace: (g) => {
|
|
3387
3410
|
switch (c.current || (c.current = !0), er[o.current]) {
|
|
3388
3411
|
case "nod":
|
|
3389
|
-
|
|
3412
|
+
v.evaluate(g);
|
|
3390
3413
|
break;
|
|
3391
3414
|
case "open_mouth":
|
|
3392
|
-
|
|
3415
|
+
h.evaluate(g);
|
|
3393
3416
|
break;
|
|
3394
3417
|
case "blink":
|
|
3395
|
-
|
|
3418
|
+
y.evaluate(g);
|
|
3396
3419
|
break;
|
|
3397
3420
|
}
|
|
3398
3421
|
},
|
|
3399
|
-
onError: (
|
|
3400
|
-
a(
|
|
3422
|
+
onError: (g) => {
|
|
3423
|
+
a(g);
|
|
3401
3424
|
}
|
|
3402
3425
|
});
|
|
3403
|
-
return /* @__PURE__ */
|
|
3404
|
-
|
|
3426
|
+
return /* @__PURE__ */ p(
|
|
3427
|
+
$n,
|
|
3405
3428
|
{
|
|
3406
3429
|
instruction: {
|
|
3407
3430
|
title: i,
|
|
@@ -3411,66 +3434,66 @@ function Fs(e) {
|
|
|
3411
3434
|
completed: l,
|
|
3412
3435
|
onStart: async () => {
|
|
3413
3436
|
try {
|
|
3414
|
-
await
|
|
3415
|
-
} catch (
|
|
3416
|
-
const E =
|
|
3437
|
+
await _();
|
|
3438
|
+
} catch (g) {
|
|
3439
|
+
const E = g;
|
|
3417
3440
|
a(E.message), d(E);
|
|
3418
3441
|
}
|
|
3419
3442
|
},
|
|
3420
|
-
children: u ? /* @__PURE__ */
|
|
3443
|
+
children: u ? /* @__PURE__ */ p(H, {}) : /* @__PURE__ */ p(wn, { onStream: async (g) => {
|
|
3421
3444
|
try {
|
|
3422
|
-
if (!
|
|
3445
|
+
if (!g.current || l)
|
|
3423
3446
|
return;
|
|
3424
|
-
const { videoWidth: E } =
|
|
3425
|
-
await
|
|
3447
|
+
const { videoWidth: E } = g.current;
|
|
3448
|
+
await m({ ref: g, frameSize: E, throttleInterval: 500 });
|
|
3426
3449
|
} catch {
|
|
3427
3450
|
}
|
|
3428
3451
|
} })
|
|
3429
3452
|
}
|
|
3430
3453
|
);
|
|
3431
3454
|
}
|
|
3432
|
-
function
|
|
3455
|
+
function Ms() {
|
|
3433
3456
|
var m;
|
|
3434
|
-
const { toggleColorScheme: e, getColorScheme: t, setColorScheme: n } =
|
|
3435
|
-
|
|
3436
|
-
const
|
|
3437
|
-
n(
|
|
3457
|
+
const { toggleColorScheme: e, getColorScheme: t, setColorScheme: n } = Ul(), { user: r, tasks: o, currentTaskIndex: i, completed: a, onComplete: l, faceDetector: s } = ke(), [u, d] = k(!1), [c, _] = k(!1), [f, v] = k(null);
|
|
3458
|
+
M(() => {
|
|
3459
|
+
const w = t();
|
|
3460
|
+
n(w);
|
|
3438
3461
|
}, []);
|
|
3439
3462
|
const h = async () => {
|
|
3440
3463
|
try {
|
|
3441
|
-
|
|
3442
|
-
} catch (
|
|
3443
|
-
|
|
3464
|
+
d(!0), v(null), await l();
|
|
3465
|
+
} catch (w) {
|
|
3466
|
+
v(w.message);
|
|
3444
3467
|
} finally {
|
|
3445
|
-
|
|
3468
|
+
d(!1);
|
|
3446
3469
|
}
|
|
3447
|
-
}, y =
|
|
3448
|
-
(
|
|
3470
|
+
}, y = A(
|
|
3471
|
+
(w) => w === i ? B.active : i > w ? B.completed : "subtext",
|
|
3449
3472
|
[i]
|
|
3450
3473
|
);
|
|
3451
|
-
return /* @__PURE__ */
|
|
3452
|
-
/* @__PURE__ */
|
|
3453
|
-
/* @__PURE__ */
|
|
3454
|
-
/* @__PURE__ */
|
|
3455
|
-
/* @__PURE__ */
|
|
3456
|
-
/* @__PURE__ */
|
|
3457
|
-
o.map((
|
|
3458
|
-
/* @__PURE__ */
|
|
3474
|
+
return /* @__PURE__ */ p("div", { className: B.root, children: /* @__PURE__ */ p("div", { className: B.container, children: [
|
|
3475
|
+
/* @__PURE__ */ p("div", { className: `${B.lhs} divider`, children: [
|
|
3476
|
+
/* @__PURE__ */ p("div", { className: B.info, children: [
|
|
3477
|
+
/* @__PURE__ */ p(Vl, {}),
|
|
3478
|
+
/* @__PURE__ */ p("div", { children: /* @__PURE__ */ p("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." }) }),
|
|
3479
|
+
/* @__PURE__ */ p("ol", { children: [
|
|
3480
|
+
o.map((w, b) => /* @__PURE__ */ p("li", { className: y(b), children: vo[w.id].name }, `task-${b}`)),
|
|
3481
|
+
/* @__PURE__ */ p("li", { className: a ? B.active : "", children: "Complete! 🎉" })
|
|
3459
3482
|
] })
|
|
3460
3483
|
] }),
|
|
3461
|
-
/* @__PURE__ */
|
|
3462
|
-
/* @__PURE__ */
|
|
3463
|
-
/* @__PURE__ */
|
|
3464
|
-
/* @__PURE__ */
|
|
3465
|
-
/* @__PURE__ */
|
|
3484
|
+
/* @__PURE__ */ p("footer", { className: "divider", children: [
|
|
3485
|
+
/* @__PURE__ */ p("div", { children: "Powered by Youverify" }),
|
|
3486
|
+
/* @__PURE__ */ p("div", { onClick: () => e(), role: "button", children: [
|
|
3487
|
+
/* @__PURE__ */ p("div", { className: "dark:yvlw-hidden", children: /* @__PURE__ */ p(fo, {}) }),
|
|
3488
|
+
/* @__PURE__ */ p("div", { className: "yvlw-hidden dark:yvlw-block", children: /* @__PURE__ */ p(ll, {}) })
|
|
3466
3489
|
] })
|
|
3467
3490
|
] })
|
|
3468
3491
|
] }),
|
|
3469
|
-
/* @__PURE__ */
|
|
3470
|
-
/* @__PURE__ */
|
|
3471
|
-
|
|
3492
|
+
/* @__PURE__ */ p("div", { className: B.main, children: /* @__PURE__ */ p("div", { className: B.content, children: [
|
|
3493
|
+
/* @__PURE__ */ p(
|
|
3494
|
+
oe,
|
|
3472
3495
|
{
|
|
3473
|
-
show: !
|
|
3496
|
+
show: !c,
|
|
3474
3497
|
as: "div",
|
|
3475
3498
|
leave: "yvlw-transform yvlw-transition yvlw-duration-300",
|
|
3476
3499
|
leaveFrom: "yvlw-translate-y-0 yvlw-opacity-100",
|
|
@@ -3478,38 +3501,38 @@ function xs() {
|
|
|
3478
3501
|
enterFrom: "yvlw-translate-y-full yvlw-opacity-0",
|
|
3479
3502
|
enterTo: "yvlw-translate-y-0 yvlw-opacity-100",
|
|
3480
3503
|
className: "yvlw-h-full yvlw-w-full",
|
|
3481
|
-
children: /* @__PURE__ */
|
|
3504
|
+
children: /* @__PURE__ */ p("div", { className: B.completed, children: s ? /* @__PURE__ */ p(
|
|
3482
3505
|
ft,
|
|
3483
3506
|
{
|
|
3484
3507
|
Icon: dl,
|
|
3485
3508
|
title: "Liveness Check",
|
|
3486
3509
|
description: "To ensure the security of your identity, we conduct a liveness check to verify that you are a real person actively engaging with the process.",
|
|
3487
3510
|
actionText: "Start Liveness Test",
|
|
3488
|
-
onActionClick: () =>
|
|
3511
|
+
onActionClick: () => _(!0)
|
|
3489
3512
|
}
|
|
3490
|
-
) })
|
|
3513
|
+
) : /* @__PURE__ */ p(mo, { size: "lg" }) })
|
|
3491
3514
|
}
|
|
3492
3515
|
),
|
|
3493
|
-
o.map((
|
|
3494
|
-
let
|
|
3495
|
-
switch (
|
|
3516
|
+
o.map((w, b) => {
|
|
3517
|
+
let g;
|
|
3518
|
+
switch (w.id) {
|
|
3496
3519
|
case "complete-the-circle":
|
|
3497
|
-
|
|
3520
|
+
g = /* @__PURE__ */ p(hs, { ...w });
|
|
3498
3521
|
break;
|
|
3499
3522
|
case "yes-or-no":
|
|
3500
|
-
|
|
3523
|
+
g = /* @__PURE__ */ p(Cs, { ...w });
|
|
3501
3524
|
break;
|
|
3502
3525
|
case "motions":
|
|
3503
|
-
|
|
3526
|
+
g = /* @__PURE__ */ p(Ps, { ...w });
|
|
3504
3527
|
break;
|
|
3505
3528
|
default:
|
|
3506
|
-
|
|
3529
|
+
g = /* @__PURE__ */ p(H, {});
|
|
3507
3530
|
break;
|
|
3508
3531
|
}
|
|
3509
|
-
return /* @__PURE__ */
|
|
3510
|
-
|
|
3532
|
+
return /* @__PURE__ */ p(
|
|
3533
|
+
oe,
|
|
3511
3534
|
{
|
|
3512
|
-
show:
|
|
3535
|
+
show: c && !a && i === b,
|
|
3513
3536
|
appear: !0,
|
|
3514
3537
|
as: "div",
|
|
3515
3538
|
leave: "yvlw-transform yvlw-transition yvlw-duration-300",
|
|
@@ -3518,15 +3541,15 @@ function xs() {
|
|
|
3518
3541
|
enterFrom: "yvlw-translate-y-full yvlw-opacity-0",
|
|
3519
3542
|
enterTo: "yvlw-translate-y-0 yvlw-opacity-100",
|
|
3520
3543
|
className: "yvlw-h-full",
|
|
3521
|
-
children:
|
|
3544
|
+
children: g
|
|
3522
3545
|
},
|
|
3523
|
-
`task-${
|
|
3546
|
+
`task-${b}`
|
|
3524
3547
|
);
|
|
3525
3548
|
}),
|
|
3526
|
-
/* @__PURE__ */
|
|
3527
|
-
|
|
3549
|
+
/* @__PURE__ */ p(
|
|
3550
|
+
oe,
|
|
3528
3551
|
{
|
|
3529
|
-
show:
|
|
3552
|
+
show: c && a,
|
|
3530
3553
|
as: "div",
|
|
3531
3554
|
leave: "yvlw-transform yvlw-transition yvlw-duration-300",
|
|
3532
3555
|
leaveFrom: "yvlw-translate-y-0 yvlw-opacity-100",
|
|
@@ -3534,44 +3557,38 @@ function xs() {
|
|
|
3534
3557
|
enterFrom: "yvlw-translate-y-full yvlw-opacity-0",
|
|
3535
3558
|
enterTo: "yvlw-translate-y-0 yvlw-opacity-100",
|
|
3536
3559
|
className: "yvlw-h-full yvlw-w-full",
|
|
3537
|
-
children: /* @__PURE__ */
|
|
3560
|
+
children: /* @__PURE__ */ p("div", { className: B.completed, children: /* @__PURE__ */ p(
|
|
3538
3561
|
ft,
|
|
3539
3562
|
{
|
|
3540
3563
|
Icon: fl,
|
|
3541
3564
|
title: "Successful",
|
|
3542
3565
|
description: "Your Identity verification has been completed successfully. Thanks for your patience",
|
|
3543
3566
|
actionText: "Finish",
|
|
3544
|
-
loading:
|
|
3567
|
+
loading: u,
|
|
3545
3568
|
onActionClick: h,
|
|
3546
|
-
children:
|
|
3569
|
+
children: f && /* @__PURE__ */ p("div", { className: "yvlw-mt-3", children: f })
|
|
3547
3570
|
}
|
|
3548
3571
|
) })
|
|
3549
3572
|
}
|
|
3550
3573
|
)
|
|
3551
3574
|
] }) }),
|
|
3552
|
-
/* @__PURE__ */
|
|
3553
|
-
|
|
3554
|
-
|
|
3555
|
-
|
|
3556
|
-
|
|
3557
|
-
|
|
3558
|
-
/* @__PURE__ */
|
|
3559
|
-
|
|
3560
|
-
|
|
3561
|
-
|
|
3562
|
-
|
|
3563
|
-
|
|
3564
|
-
r.email && /* @__PURE__ */ v("p", { className: "subtext", children: r.email })
|
|
3565
|
-
] })
|
|
3566
|
-
] }),
|
|
3567
|
-
/* @__PURE__ */ v("footer", { children: [
|
|
3568
|
-
/* @__PURE__ */ v("div", { children: "About · Terms · Help · Privacy · Contact" }),
|
|
3569
|
-
/* @__PURE__ */ v("div", { children: "© 2024 from Youverify Inc." })
|
|
3575
|
+
/* @__PURE__ */ p("div", { className: `${B.rhs} divider`, children: r && /* @__PURE__ */ p("div", { className: `${B.profile} divider`, children: [
|
|
3576
|
+
/* @__PURE__ */ p("div", { children: /* @__PURE__ */ p("div", { className: B.avatar, children: [
|
|
3577
|
+
r.firstName.charAt(0).toUpperCase(),
|
|
3578
|
+
(m = r.lastName) == null ? void 0 : m.charAt(0).toUpperCase()
|
|
3579
|
+
] }) }),
|
|
3580
|
+
/* @__PURE__ */ p("div", { children: [
|
|
3581
|
+
/* @__PURE__ */ p("h4", { children: [
|
|
3582
|
+
r.firstName,
|
|
3583
|
+
" ",
|
|
3584
|
+
r.lastName
|
|
3585
|
+
] }),
|
|
3586
|
+
r.email && /* @__PURE__ */ p("p", { className: "subtext", children: r.email })
|
|
3570
3587
|
] })
|
|
3571
|
-
] })
|
|
3588
|
+
] }) })
|
|
3572
3589
|
] }) });
|
|
3573
3590
|
}
|
|
3574
|
-
function
|
|
3591
|
+
function Ls(e) {
|
|
3575
3592
|
const {
|
|
3576
3593
|
tasks: t,
|
|
3577
3594
|
namespace: n,
|
|
@@ -3584,11 +3601,11 @@ function Ss(e) {
|
|
|
3584
3601
|
presentation: s = "modal",
|
|
3585
3602
|
publicKey: u,
|
|
3586
3603
|
metadata: d
|
|
3587
|
-
} = e, [c,
|
|
3588
|
-
|
|
3604
|
+
} = e, [c, _] = k(e.show), f = () => {
|
|
3605
|
+
_(!1), i();
|
|
3589
3606
|
};
|
|
3590
|
-
return /* @__PURE__ */
|
|
3591
|
-
|
|
3607
|
+
return /* @__PURE__ */ p(
|
|
3608
|
+
Tl,
|
|
3592
3609
|
{
|
|
3593
3610
|
namespace: n,
|
|
3594
3611
|
publicKey: u,
|
|
@@ -3599,7 +3616,7 @@ function Ss(e) {
|
|
|
3599
3616
|
onSuccess: a,
|
|
3600
3617
|
onFailure: l,
|
|
3601
3618
|
metadata: d,
|
|
3602
|
-
children: /* @__PURE__ */
|
|
3619
|
+
children: /* @__PURE__ */ p(
|
|
3603
3620
|
Ja,
|
|
3604
3621
|
{
|
|
3605
3622
|
id: n,
|
|
@@ -3608,19 +3625,19 @@ function Ss(e) {
|
|
|
3608
3625
|
transition: !0,
|
|
3609
3626
|
className: `${al.root} ${ot.root} ${ot[s]}`,
|
|
3610
3627
|
style: {
|
|
3611
|
-
"--branding-color": (o == null ? void 0 : o.color) ??
|
|
3628
|
+
"--branding-color": (o == null ? void 0 : o.color) ?? El
|
|
3612
3629
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
3613
3630
|
},
|
|
3614
3631
|
children: [
|
|
3615
|
-
s === "modal" && /* @__PURE__ */
|
|
3616
|
-
/* @__PURE__ */
|
|
3632
|
+
s === "modal" && /* @__PURE__ */ p("div", { onClick: f, role: "button", className: ot.close, children: /* @__PURE__ */ p(pl, { className: "yvlw-text-white" }) }),
|
|
3633
|
+
/* @__PURE__ */ p(uo, { className: `${ot.container}`, children: /* @__PURE__ */ p(Ms, {}) })
|
|
3617
3634
|
]
|
|
3618
3635
|
}
|
|
3619
3636
|
)
|
|
3620
3637
|
}
|
|
3621
3638
|
);
|
|
3622
3639
|
}
|
|
3623
|
-
class
|
|
3640
|
+
class Ds {
|
|
3624
3641
|
constructor(t) {
|
|
3625
3642
|
this.tasks = [], this.container = null, this.namespace = "liveness-web-sdk";
|
|
3626
3643
|
const { presentation: n = "modal" } = t;
|
|
@@ -3636,8 +3653,8 @@ class Ns {
|
|
|
3636
3653
|
}
|
|
3637
3654
|
async start(t) {
|
|
3638
3655
|
t && (this.tasks = t), this.validateOptions(), this.container = document.createElement("div"), document.body.appendChild(this.container), Pe(
|
|
3639
|
-
/* @__PURE__ */
|
|
3640
|
-
|
|
3656
|
+
/* @__PURE__ */ p(
|
|
3657
|
+
Ls,
|
|
3641
3658
|
{
|
|
3642
3659
|
namespace: this.namespace,
|
|
3643
3660
|
publicKey: this.props.publicKey,
|
|
@@ -3664,5 +3681,5 @@ class Ns {
|
|
|
3664
3681
|
}
|
|
3665
3682
|
}
|
|
3666
3683
|
export {
|
|
3667
|
-
|
|
3684
|
+
Ds as default
|
|
3668
3685
|
};
|