youverify-liveness-web 0.1.10 → 0.1.11
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 +1030 -1013
- package/dist/index.umd.cjs +4 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
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,
|
|
3
|
-
function
|
|
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_h5elg_1{text-align:center;display:flex;height:100%;flex-direction:column;align-items:center;justify-content:center;padding:1.5rem .75rem}._root_h5elg_1 h2{margin-top:.5rem;margin-bottom:.5rem;font-size:1.5rem;line-height:2rem;font-weight:900}._root_h5elg_1 h2:where([liveness-web-sdk-color-scheme=dark],[liveness-web-sdk-color-scheme=dark] *){--tw-text-opacity: 1;color:rgb(248 250 252 / var(--tw-text-opacity))}._root_h5elg_1 p{font-size:.875rem;line-height:1.25rem;font-weight:300;max-width:400px}._root_h5elg_1 button{color:var(--branding-color);border-color:var(--branding-color);border-radius:9999px;border-width:2px;padding:.5rem 2rem;font-weight:500}._root_h5elg_1 button:hover{background-color:var(--branding-color);--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}._root_h5elg_1 button:hover ._spinner_h5elg_22{--tw-border-opacity: 1;border-color:rgb(255 255 255 / var(--tw-border-opacity));border-left-color:transparent}._container_1vep2_1{height:100%;width:100%;border-radius:50%;border-width:2px;border-color:var(--branding-color);border-left-color:transparent;animation:_spin_1vep2_1 .7s linear infinite}._container_1vep2_1._md_1vep2_7{height:1rem;width:1rem}._container_1vep2_1._lg_1vep2_10{height:1.75rem;width:1.75rem}@keyframes _spin_1vep2_1{0%{transform:rotate(0)}to{transform:rotate(360deg)}}._root_thujo_1{position:absolute;top:0;right:0;bottom:0;left:0}._root_thujo_1 ._sticker_thujo_4{position:absolute}._root_thujo_1 ._sticker_thujo_4._no_thujo_7{top:2.5rem;left:1.5rem;border-width:4px;--tw-border-opacity: 1;border-color:rgb(248 113 113 / var(--tw-border-opacity));padding:.5rem 1rem;--tw-drop-shadow: drop-shadow(0 1px 1px rgb(0 0 0 / .05));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);stroke:#fff;font-size:2.25rem;line-height:2.5rem;font-weight:900;letter-spacing:.1em;--tw-text-opacity: 1;color:rgb(248 113 113 / var(--tw-text-opacity));transform:rotate(335deg)}._root_thujo_1 ._sticker_thujo_4._yes_thujo_12{top:2.5rem;right:1.5rem;border-width:4px;--tw-border-opacity: 1;border-color:rgb(74 222 128 / var(--tw-border-opacity));padding:.5rem 1rem;--tw-drop-shadow: drop-shadow(0 1px 1px rgb(0 0 0 / .05));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);stroke:#fff;font-size:2.25rem;line-height:2.5rem;font-weight:900;letter-spacing:.1em;--tw-text-opacity: 1;color:rgb(74 222 128 / var(--tw-text-opacity));transform:rotate(45deg)}')),document.head.appendChild(t)}}catch(r){console.error("vite-plugin-css-injected-by-js",r)}})();
|
|
2
|
+
var Ye, k, nr, _e, En, rr, Dt, Jt, At, Ot, or, qe = {}, ir = [], bo = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, pt = Array.isArray;
|
|
3
|
+
function ne(e, t) {
|
|
4
4
|
for (var n in t) e[n] = t[n];
|
|
5
5
|
return e;
|
|
6
6
|
}
|
|
7
|
-
function
|
|
7
|
+
function ar(e) {
|
|
8
8
|
var t = e.parentNode;
|
|
9
9
|
t && t.removeChild(e);
|
|
10
10
|
}
|
|
@@ -15,13 +15,13 @@ function X(e, t, n) {
|
|
|
15
15
|
return Ue(e, a, r, o, null);
|
|
16
16
|
}
|
|
17
17
|
function Ue(e, t, n, r, o) {
|
|
18
|
-
var i = { type: e, props: t, key: n, ref: r, __k: null, __: null, __b: 0, __e: null, __d: void 0, __c: null, constructor: void 0, __v: o ?? ++
|
|
19
|
-
return o == null &&
|
|
18
|
+
var i = { type: e, props: t, key: n, ref: r, __k: null, __: null, __b: 0, __e: null, __d: void 0, __c: null, constructor: void 0, __v: o ?? ++nr, __i: -1, __u: 0 };
|
|
19
|
+
return o == null && k.vnode != null && k.vnode(i), i;
|
|
20
20
|
}
|
|
21
21
|
function en() {
|
|
22
22
|
return { current: null };
|
|
23
23
|
}
|
|
24
|
-
function
|
|
24
|
+
function N(e) {
|
|
25
25
|
return e.children;
|
|
26
26
|
}
|
|
27
27
|
function Z(e, t) {
|
|
@@ -32,38 +32,38 @@ function be(e, t) {
|
|
|
32
32
|
for (var n; t < e.__k.length; t++) if ((n = e.__k[t]) != null && n.__e != null) return n.__e;
|
|
33
33
|
return typeof e.type == "function" ? be(e) : null;
|
|
34
34
|
}
|
|
35
|
-
function
|
|
35
|
+
function lr(e) {
|
|
36
36
|
var t, n;
|
|
37
37
|
if ((e = e.__) != null && e.__c != null) {
|
|
38
38
|
for (e.__e = e.__c.base = null, t = 0; t < e.__k.length; t++) if ((n = e.__k[t]) != null && n.__e != null) {
|
|
39
39
|
e.__e = e.__c.base = n.__e;
|
|
40
40
|
break;
|
|
41
41
|
}
|
|
42
|
-
return
|
|
42
|
+
return lr(e);
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
function It(e) {
|
|
46
|
-
(!e.__d && (e.__d = !0) &&
|
|
46
|
+
(!e.__d && (e.__d = !0) && _e.push(e) && !at.__r++ || En !== k.debounceRendering) && ((En = k.debounceRendering) || rr)(at);
|
|
47
47
|
}
|
|
48
48
|
function at() {
|
|
49
49
|
var e, t, n, r, o, i, a, l;
|
|
50
|
-
for (
|
|
50
|
+
for (_e.sort(Dt); e = _e.shift(); ) e.__d && (t = _e.length, r = void 0, i = (o = (n = e).__v).__e, a = [], l = [], n.__P && ((r = ne({}, o)).__v = o.__v + 1, k.vnode && k.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, ur(a, r, l), r.__e != i && lr(r)), _e.length > t && _e.sort(Dt));
|
|
51
51
|
at.__r = 0;
|
|
52
52
|
}
|
|
53
|
-
function
|
|
54
|
-
var c,
|
|
55
|
-
for (n.__d = s,
|
|
56
|
-
n.__d = s, n.__e =
|
|
53
|
+
function sr(e, t, n, r, o, i, a, l, s, u, d) {
|
|
54
|
+
var c, h, f, _, v, m = r && r.__k || ir, y = t.length;
|
|
55
|
+
for (n.__d = s, $o(n, t, m), s = n.__d, c = 0; c < y; c++) (f = n.__k[c]) != null && typeof f != "boolean" && typeof f != "function" && (h = f.__i === -1 ? qe : m[f.__i] || qe, f.__i = c, tn(e, f, h, o, i, a, l, s, u, d), _ = f.__e, f.ref && h.ref != f.ref && (h.ref && nn(h.ref, null, f), d.push(f.ref, f.__c || _, f)), v == null && _ != null && (v = _), 65536 & f.__u || h.__k === f.__k ? s = cr(f, s, e) : typeof f.type == "function" && f.__d !== void 0 ? s = f.__d : _ && (s = _.nextSibling), f.__d = void 0, f.__u &= -196609);
|
|
56
|
+
n.__d = s, n.__e = v;
|
|
57
57
|
}
|
|
58
|
-
function
|
|
58
|
+
function $o(e, t, n) {
|
|
59
59
|
var r, o, i, a, l, s = t.length, u = n.length, d = u, c = 0;
|
|
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(
|
|
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(N, { 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 = Eo(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
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));
|
|
62
62
|
}
|
|
63
|
-
function
|
|
63
|
+
function cr(e, t, n) {
|
|
64
64
|
var r, o;
|
|
65
65
|
if (typeof e.type == "function") {
|
|
66
|
-
for (r = e.__k, o = 0; r && o < r.length; o++) r[o] && (r[o].__ = e, t =
|
|
66
|
+
for (r = e.__k, o = 0; r && o < r.length; o++) r[o] && (r[o].__ = e, t = cr(r[o], t, n));
|
|
67
67
|
return t;
|
|
68
68
|
}
|
|
69
69
|
e.__e != t && (t && e.type && !n.contains(t) && (t = be(e)), n.insertBefore(e.__e, t || null), t = e.__e);
|
|
@@ -72,12 +72,12 @@ function sr(e, t, n) {
|
|
|
72
72
|
while (t != null && t.nodeType === 8);
|
|
73
73
|
return t;
|
|
74
74
|
}
|
|
75
|
-
function
|
|
75
|
+
function re(e, t) {
|
|
76
76
|
return t = t || [], e == null || typeof e == "boolean" || (pt(e) ? e.some(function(n) {
|
|
77
|
-
|
|
77
|
+
re(n, t);
|
|
78
78
|
}) : t.push(e)), t;
|
|
79
79
|
}
|
|
80
|
-
function
|
|
80
|
+
function Eo(e, t, n, r) {
|
|
81
81
|
var o = e.key, i = e.type, a = n - 1, l = n + 1, s = t[n];
|
|
82
82
|
if (s === null || s && o == s.key && i === s.type && !(131072 & s.__u)) return n;
|
|
83
83
|
if (r > (s != null && !(131072 & s.__u) ? 1 : 0)) for (; a >= 0 || l < t.length; ) {
|
|
@@ -93,7 +93,7 @@ function $o(e, t, n, r) {
|
|
|
93
93
|
return -1;
|
|
94
94
|
}
|
|
95
95
|
function Cn(e, t, n) {
|
|
96
|
-
t[0] === "-" ? e.setProperty(t, n ?? "") : e[t] = n == null ? "" : typeof n != "number" ||
|
|
96
|
+
t[0] === "-" ? e.setProperty(t, n ?? "") : e[t] = n == null ? "" : typeof n != "number" || bo.test(t) ? n : n + "px";
|
|
97
97
|
}
|
|
98
98
|
function nt(e, t, n, r, o) {
|
|
99
99
|
var i;
|
|
@@ -119,84 +119,84 @@ function Tn(e) {
|
|
|
119
119
|
var n = this.l[t.type + e];
|
|
120
120
|
if (t.t == null) t.t = Jt++;
|
|
121
121
|
else if (t.t < n.u) return;
|
|
122
|
-
return n(
|
|
122
|
+
return n(k.event ? k.event(t) : t);
|
|
123
123
|
}
|
|
124
124
|
};
|
|
125
125
|
}
|
|
126
126
|
function tn(e, t, n, r, o, i, a, l, s, u) {
|
|
127
|
-
var d, c,
|
|
127
|
+
var d, c, h, f, _, v, m, y, $, E, g, w, F, H, O, V, S = t.type;
|
|
128
128
|
if (t.constructor !== void 0) return null;
|
|
129
|
-
128 & n.__u && (s = !!(32 & n.__u), i = [l = t.__e = n.__e]), (d =
|
|
130
|
-
e: if (typeof
|
|
131
|
-
if (
|
|
129
|
+
128 & n.__u && (s = !!(32 & n.__u), i = [l = t.__e = n.__e]), (d = k.__b) && d(t);
|
|
130
|
+
e: if (typeof S == "function") try {
|
|
131
|
+
if (y = t.props, $ = "prototype" in S && S.prototype.render, E = (d = S.contextType) && r[d.__c], g = d ? E ? E.props.value : d.__ : r, n.__c ? m = (c = t.__c = n.__c).__ = c.__E : ($ ? t.__c = c = new S(y, g) : (t.__c = c = new Z(y, g), c.constructor = S, c.render = To), E && E.sub(c), c.props = y, c.state || (c.state = {}), c.context = g, c.__n = r, h = c.__d = !0, c.__h = [], c._sb = []), $ && c.__s == null && (c.__s = c.state), $ && S.getDerivedStateFromProps != null && (c.__s == c.state && (c.__s = ne({}, c.__s)), ne(c.__s, S.getDerivedStateFromProps(y, c.__s))), f = c.props, _ = c.state, c.__v = t, h) $ && S.getDerivedStateFromProps == null && c.componentWillMount != null && c.componentWillMount(), $ && c.componentDidMount != null && c.__h.push(c.componentDidMount);
|
|
132
132
|
else {
|
|
133
|
-
if (
|
|
134
|
-
for (t.__v !== n.__v && (c.props =
|
|
135
|
-
|
|
136
|
-
}),
|
|
133
|
+
if ($ && S.getDerivedStateFromProps == null && y !== f && c.componentWillReceiveProps != null && c.componentWillReceiveProps(y, g), !c.__e && (c.shouldComponentUpdate != null && c.shouldComponentUpdate(y, c.__s, g) === !1 || t.__v === n.__v)) {
|
|
134
|
+
for (t.__v !== n.__v && (c.props = y, c.state = c.__s, c.__d = !1), t.__e = n.__e, t.__k = n.__k, t.__k.forEach(function(I) {
|
|
135
|
+
I && (I.__ = t);
|
|
136
|
+
}), w = 0; w < c._sb.length; w++) c.__h.push(c._sb[w]);
|
|
137
137
|
c._sb = [], c.__h.length && a.push(c);
|
|
138
138
|
break e;
|
|
139
139
|
}
|
|
140
|
-
c.componentWillUpdate != null && c.componentWillUpdate(
|
|
141
|
-
c.componentDidUpdate(f,
|
|
140
|
+
c.componentWillUpdate != null && c.componentWillUpdate(y, c.__s, g), $ && c.componentDidUpdate != null && c.__h.push(function() {
|
|
141
|
+
c.componentDidUpdate(f, _, v);
|
|
142
142
|
});
|
|
143
143
|
}
|
|
144
|
-
if (c.context = g, c.props =
|
|
145
|
-
for (c.state = c.__s, c.__d = !1,
|
|
144
|
+
if (c.context = g, c.props = y, c.__P = e, c.__e = !1, F = k.__r, H = 0, $) {
|
|
145
|
+
for (c.state = c.__s, c.__d = !1, F && F(t), d = c.render(c.props, c.state, c.context), O = 0; O < c._sb.length; O++) c.__h.push(c._sb[O]);
|
|
146
146
|
c._sb = [];
|
|
147
147
|
} else do
|
|
148
|
-
c.__d = !1,
|
|
149
|
-
while (c.__d && ++
|
|
150
|
-
c.state = c.__s, c.getChildContext != null && (r =
|
|
151
|
-
} catch (
|
|
148
|
+
c.__d = !1, F && F(t), d = c.render(c.props, c.state, c.context), c.state = c.__s;
|
|
149
|
+
while (c.__d && ++H < 25);
|
|
150
|
+
c.state = c.__s, c.getChildContext != null && (r = ne(ne({}, r), c.getChildContext())), $ && !h && c.getSnapshotBeforeUpdate != null && (v = c.getSnapshotBeforeUpdate(f, _)), sr(e, pt(V = d != null && d.type === N && d.key == null ? d.props.children : d) ? V : [V], t, n, r, o, i, a, l, s, u), c.base = t.__e, t.__u &= -161, c.__h.length && a.push(c), m && (c.__E = c.__ = null);
|
|
151
|
+
} catch (I) {
|
|
152
152
|
if (t.__v = null, s || i != null) {
|
|
153
153
|
for (t.__u |= s ? 160 : 32; l && l.nodeType === 8 && l.nextSibling; ) l = l.nextSibling;
|
|
154
154
|
i[i.indexOf(l)] = null, t.__e = l;
|
|
155
155
|
} else t.__e = n.__e, t.__k = n.__k;
|
|
156
|
-
|
|
156
|
+
k.__e(I, t, n);
|
|
157
157
|
}
|
|
158
|
-
else i == null && t.__v === n.__v ? (t.__k = n.__k, t.__e = n.__e) : t.__e =
|
|
159
|
-
(d =
|
|
158
|
+
else i == null && t.__v === n.__v ? (t.__k = n.__k, t.__e = n.__e) : t.__e = Co(n.__e, t, n, r, o, i, a, s, u);
|
|
159
|
+
(d = k.diffed) && d(t);
|
|
160
160
|
}
|
|
161
|
-
function
|
|
161
|
+
function ur(e, t, n) {
|
|
162
162
|
t.__d = void 0;
|
|
163
163
|
for (var r = 0; r < n.length; r++) nn(n[r], n[++r], n[++r]);
|
|
164
|
-
|
|
164
|
+
k.__c && k.__c(t, e), e.some(function(o) {
|
|
165
165
|
try {
|
|
166
166
|
e = o.__h, o.__h = [], e.some(function(i) {
|
|
167
167
|
i.call(o);
|
|
168
168
|
});
|
|
169
169
|
} catch (i) {
|
|
170
|
-
|
|
170
|
+
k.__e(i, o.__v);
|
|
171
171
|
}
|
|
172
172
|
});
|
|
173
173
|
}
|
|
174
|
-
function
|
|
175
|
-
var u, d, c,
|
|
176
|
-
if (
|
|
177
|
-
for (u = 0; u < i.length; u++) if ((f = i[u]) && "setAttribute" in f ==
|
|
174
|
+
function Co(e, t, n, r, o, i, a, l, s) {
|
|
175
|
+
var u, d, c, h, f, _, v, m = n.props, y = t.props, $ = t.type;
|
|
176
|
+
if ($ === "svg" ? o = "http://www.w3.org/2000/svg" : $ === "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 == !!$ && ($ ? f.localName === $ : f.nodeType === 3)) {
|
|
178
178
|
e = f, i[u] = null;
|
|
179
179
|
break;
|
|
180
180
|
}
|
|
181
181
|
}
|
|
182
182
|
if (e == null) {
|
|
183
|
-
if (
|
|
184
|
-
e = document.createElementNS(o,
|
|
183
|
+
if ($ === null) return document.createTextNode(y);
|
|
184
|
+
e = document.createElementNS(o, $, y.is && y), i = null, l = !1;
|
|
185
185
|
}
|
|
186
|
-
if (
|
|
186
|
+
if ($ === null) m === y || l && e.data === y || (e.data = y);
|
|
187
187
|
else {
|
|
188
|
-
if (i = i && Ye.call(e.childNodes),
|
|
189
|
-
for (u in
|
|
188
|
+
if (i = i && Ye.call(e.childNodes), m = n.props || qe, !l && i != null) for (m = {}, u = 0; u < e.attributes.length; u++) m[(f = e.attributes[u]).name] = f.value;
|
|
189
|
+
for (u in m) if (f = m[u], u != "children") {
|
|
190
190
|
if (u == "dangerouslySetInnerHTML") c = f;
|
|
191
|
-
else if (u !== "key" && !(u in
|
|
192
|
-
if (u == "value" && "defaultValue" in
|
|
191
|
+
else if (u !== "key" && !(u in y)) {
|
|
192
|
+
if (u == "value" && "defaultValue" in y || u == "checked" && "defaultChecked" in y) continue;
|
|
193
193
|
nt(e, u, null, f, o);
|
|
194
194
|
}
|
|
195
195
|
}
|
|
196
|
-
for (u in
|
|
196
|
+
for (u in y) f = y[u], u == "children" ? h = f : u == "dangerouslySetInnerHTML" ? d = f : u == "value" ? _ = f : u == "checked" ? v = f : u === "key" || l && typeof f != "function" || m[u] === f || nt(e, u, f, m[u], o);
|
|
197
197
|
if (d) l || c && (d.__html === c.__html || d.__html === e.innerHTML) || (e.innerHTML = d.__html), t.__k = [];
|
|
198
|
-
else if (c && (e.innerHTML = ""),
|
|
199
|
-
l || (u = "value",
|
|
198
|
+
else if (c && (e.innerHTML = ""), sr(e, pt(h) ? h : [h], t, n, r, $ === "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 && ar(i[u]);
|
|
199
|
+
l || (u = "value", _ !== void 0 && (_ !== e[u] || $ === "progress" && !_ || $ === "option" && _ !== m[u]) && nt(e, u, _, m[u], o), u = "checked", v !== void 0 && v !== e[u] && nt(e, u, v, m[u], o));
|
|
200
200
|
}
|
|
201
201
|
return e;
|
|
202
202
|
}
|
|
@@ -207,39 +207,39 @@ function nn(e, t, n) {
|
|
|
207
207
|
r && e.__u(), r && t == null || (e.__u = e(t));
|
|
208
208
|
} else e.current = t;
|
|
209
209
|
} catch (o) {
|
|
210
|
-
|
|
210
|
+
k.__e(o, n);
|
|
211
211
|
}
|
|
212
212
|
}
|
|
213
213
|
function Rt(e, t, n) {
|
|
214
214
|
var r, o;
|
|
215
|
-
if (
|
|
215
|
+
if (k.unmount && k.unmount(e), (r = e.ref) && (r.current && r.current !== e.__e || nn(r, null, t)), (r = e.__c) != null) {
|
|
216
216
|
if (r.componentWillUnmount) try {
|
|
217
217
|
r.componentWillUnmount();
|
|
218
218
|
} catch (i) {
|
|
219
|
-
|
|
219
|
+
k.__e(i, t);
|
|
220
220
|
}
|
|
221
221
|
r.base = r.__P = null;
|
|
222
222
|
}
|
|
223
223
|
if (r = e.__k) for (o = 0; o < r.length; o++) r[o] && Rt(r[o], t, n || typeof e.type != "function");
|
|
224
|
-
n || e.__e == null ||
|
|
224
|
+
n || e.__e == null || ar(e.__e), e.__c = e.__ = e.__e = e.__d = void 0;
|
|
225
225
|
}
|
|
226
|
-
function
|
|
226
|
+
function To(e, t, n) {
|
|
227
227
|
return this.constructor(e, n);
|
|
228
228
|
}
|
|
229
229
|
function Pe(e, t, n) {
|
|
230
230
|
var r, o, i, a;
|
|
231
|
-
|
|
231
|
+
k.__ && k.__(e, t), o = (r = typeof n == "function") ? null : n && n.__k || t.__k, i = [], a = [], tn(t, e = (!r && n || t).__k = X(N, null, [e]), o || qe, qe, t.namespaceURI, !r && n ? [n] : o ? null : t.firstChild ? Ye.call(t.childNodes) : null, i, !r && n ? n : o ? o.__e : t.firstChild, r, a), ur(i, e, a);
|
|
232
232
|
}
|
|
233
|
-
function
|
|
234
|
-
Pe(e, t,
|
|
233
|
+
function dr(e, t) {
|
|
234
|
+
Pe(e, t, dr);
|
|
235
235
|
}
|
|
236
|
-
function
|
|
237
|
-
var r, o, i, a, l =
|
|
236
|
+
function ko(e, t, n) {
|
|
237
|
+
var r, o, i, a, l = ne({}, e.props);
|
|
238
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];
|
|
239
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);
|
|
240
240
|
}
|
|
241
241
|
function q(e, t) {
|
|
242
|
-
var n = { __c: t = "__cC" +
|
|
242
|
+
var n = { __c: t = "__cC" + or++, __: e, Consumer: function(r, o) {
|
|
243
243
|
return r.children(o);
|
|
244
244
|
}, Provider: function(r) {
|
|
245
245
|
var o, i;
|
|
@@ -261,58 +261,58 @@ function q(e, t) {
|
|
|
261
261
|
} };
|
|
262
262
|
return n.Provider.__ = n.Consumer.contextType = n;
|
|
263
263
|
}
|
|
264
|
-
Ye =
|
|
264
|
+
Ye = ir.slice, k = { __e: function(e, t, n, r) {
|
|
265
265
|
for (var o, i, a; t = t.__; ) if ((o = t.__c) && !o.__) try {
|
|
266
266
|
if ((i = o.constructor) && i.getDerivedStateFromError != null && (o.setState(i.getDerivedStateFromError(e)), a = o.__d), o.componentDidCatch != null && (o.componentDidCatch(e, r || {}), a = o.__d), a) return o.__E = o;
|
|
267
267
|
} catch (l) {
|
|
268
268
|
e = l;
|
|
269
269
|
}
|
|
270
270
|
throw e;
|
|
271
|
-
} },
|
|
271
|
+
} }, nr = 0, Z.prototype.setState = function(e, t) {
|
|
272
272
|
var n;
|
|
273
|
-
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 = ne({}, this.state), typeof e == "function" && (e = e(ne({}, n), this.props)), e && ne(n, e), e != null && this.__v && (t && this._sb.push(t), It(this));
|
|
274
274
|
}, Z.prototype.forceUpdate = function(e) {
|
|
275
275
|
this.__v && (this.__e = !0, e && this.__h.push(e), It(this));
|
|
276
|
-
}, Z.prototype.render =
|
|
276
|
+
}, Z.prototype.render = N, _e = [], rr = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, Dt = function(e, t) {
|
|
277
277
|
return e.__v.__b - t.__v.__b;
|
|
278
|
-
}, at.__r = 0, Jt = 0, At = Tn(!1), Ot = Tn(!0),
|
|
279
|
-
var
|
|
278
|
+
}, at.__r = 0, Jt = 0, At = Tn(!1), Ot = Tn(!0), or = 0;
|
|
279
|
+
var Fo = 0;
|
|
280
280
|
function p(e, t, n, r, o, i) {
|
|
281
281
|
t || (t = {});
|
|
282
282
|
var a, l, s = t;
|
|
283
283
|
if ("ref" in s) for (l in s = {}, t) l == "ref" ? a = t[l] : s[l] = t[l];
|
|
284
|
-
var u = { type: e, props: s, key: n, ref: a, __k: null, __: null, __b: 0, __e: null, __d: void 0, __c: null, constructor: void 0, __v: --
|
|
284
|
+
var u = { type: e, props: s, key: n, ref: a, __k: null, __: null, __b: 0, __e: null, __d: void 0, __c: null, constructor: void 0, __v: --Fo, __i: -1, __u: 0, __source: o, __self: i };
|
|
285
285
|
if (typeof e == "function" && (a = e.defaultProps)) for (l in a) s[l] === void 0 && (s[l] = a[l]);
|
|
286
|
-
return
|
|
286
|
+
return k.vnode && k.vnode(u), u;
|
|
287
287
|
}
|
|
288
|
-
var
|
|
288
|
+
var ae, P, Ft, kn, Me = 0, fr = [], D = k, Fn = D.__b, xn = D.__r, Sn = D.diffed, Pn = D.__c, Mn = D.unmount, Ln = D.__;
|
|
289
289
|
function Ee(e, t) {
|
|
290
290
|
D.__h && D.__h(P, e, Me || t), Me = 0;
|
|
291
291
|
var n = P.__H || (P.__H = { __: [], __h: [] });
|
|
292
292
|
return e >= n.__.length && n.__.push({}), n.__[e];
|
|
293
293
|
}
|
|
294
|
-
function
|
|
295
|
-
return Me = 1, Ke(
|
|
294
|
+
function T(e) {
|
|
295
|
+
return Me = 1, Ke(pr, e);
|
|
296
296
|
}
|
|
297
297
|
function Ke(e, t, n) {
|
|
298
|
-
var r = Ee(
|
|
299
|
-
if (r.t = e, !r.__c && (r.__ = [n ? n(t) :
|
|
298
|
+
var r = Ee(ae++, 2);
|
|
299
|
+
if (r.t = e, !r.__c && (r.__ = [n ? n(t) : pr(void 0, t), function(l) {
|
|
300
300
|
var s = r.__N ? r.__N[0] : r.__[0], u = r.t(s, l);
|
|
301
301
|
s !== u && (r.__N = [u, r.__[1]], r.__c.setState({}));
|
|
302
302
|
}], r.__c = P, !P.u)) {
|
|
303
303
|
var o = function(l, s, u) {
|
|
304
304
|
if (!r.__c.__H) return !0;
|
|
305
|
-
var d = r.__c.__H.__.filter(function(
|
|
306
|
-
return !!
|
|
305
|
+
var d = r.__c.__H.__.filter(function(h) {
|
|
306
|
+
return !!h.__c;
|
|
307
307
|
});
|
|
308
|
-
if (d.every(function(
|
|
309
|
-
return !
|
|
308
|
+
if (d.every(function(h) {
|
|
309
|
+
return !h.__N;
|
|
310
310
|
})) return !i || i.call(this, l, s, u);
|
|
311
311
|
var c = !1;
|
|
312
|
-
return d.forEach(function(
|
|
313
|
-
if (
|
|
314
|
-
var f =
|
|
315
|
-
|
|
312
|
+
return d.forEach(function(h) {
|
|
313
|
+
if (h.__N) {
|
|
314
|
+
var f = h.__[0];
|
|
315
|
+
h.__ = h.__N, h.__N = void 0, f !== h.__[0] && (c = !0);
|
|
316
316
|
}
|
|
317
317
|
}), !(!c && r.__c.props === l) && (!i || i.call(this, l, s, u));
|
|
318
318
|
};
|
|
@@ -329,15 +329,15 @@ function Ke(e, t, n) {
|
|
|
329
329
|
return r.__N || r.__;
|
|
330
330
|
}
|
|
331
331
|
function M(e, t) {
|
|
332
|
-
var n = Ee(
|
|
332
|
+
var n = Ee(ae++, 3);
|
|
333
333
|
!D.__s && an(n.__H, t) && (n.__ = e, n.i = t, P.__H.__h.push(n));
|
|
334
334
|
}
|
|
335
335
|
function Ce(e, t) {
|
|
336
|
-
var n = Ee(
|
|
336
|
+
var n = Ee(ae++, 4);
|
|
337
337
|
!D.__s && an(n.__H, t) && (n.__ = e, n.i = t, P.__h.push(n));
|
|
338
338
|
}
|
|
339
|
-
function
|
|
340
|
-
return Me = 5,
|
|
339
|
+
function b(e) {
|
|
340
|
+
return Me = 5, x(function() {
|
|
341
341
|
return { current: e };
|
|
342
342
|
}, []);
|
|
343
343
|
}
|
|
@@ -350,24 +350,24 @@ function rn(e, t, n) {
|
|
|
350
350
|
}) : void 0;
|
|
351
351
|
}, n == null ? n : n.concat(e));
|
|
352
352
|
}
|
|
353
|
-
function
|
|
354
|
-
var n = Ee(
|
|
353
|
+
function x(e, t) {
|
|
354
|
+
var n = Ee(ae++, 7);
|
|
355
355
|
return an(n.__H, t) && (n.__ = e(), n.__H = t, n.__h = e), n.__;
|
|
356
356
|
}
|
|
357
357
|
function A(e, t) {
|
|
358
|
-
return Me = 8,
|
|
358
|
+
return Me = 8, x(function() {
|
|
359
359
|
return e;
|
|
360
360
|
}, t);
|
|
361
361
|
}
|
|
362
362
|
function W(e) {
|
|
363
|
-
var t = P.context[e.__c], n = Ee(
|
|
363
|
+
var t = P.context[e.__c], n = Ee(ae++, 9);
|
|
364
364
|
return n.c = e, t ? (n.__ == null && (n.__ = !0, t.sub(P)), t.props.value) : e.__;
|
|
365
365
|
}
|
|
366
366
|
function on(e, t) {
|
|
367
367
|
D.useDebugValue && D.useDebugValue(t ? t(e) : e);
|
|
368
368
|
}
|
|
369
|
-
function
|
|
370
|
-
var t = Ee(
|
|
369
|
+
function xo(e) {
|
|
370
|
+
var t = Ee(ae++, 10), n = T();
|
|
371
371
|
return t.__ = e, P.componentDidCatch || (P.componentDidCatch = function(r, o) {
|
|
372
372
|
t.__ && t.__(r, o), n[1](r);
|
|
373
373
|
}), [n[0], function() {
|
|
@@ -375,7 +375,7 @@ function Fo(e) {
|
|
|
375
375
|
}];
|
|
376
376
|
}
|
|
377
377
|
function fe() {
|
|
378
|
-
var e = Ee(
|
|
378
|
+
var e = Ee(ae++, 11);
|
|
379
379
|
if (!e.__) {
|
|
380
380
|
for (var t = P.__v; t !== null && !t.__m && t.__ !== null; ) t = t.__;
|
|
381
381
|
var n = t.__m || (t.__m = [0, 0]);
|
|
@@ -383,8 +383,8 @@ function fe() {
|
|
|
383
383
|
}
|
|
384
384
|
return e.__;
|
|
385
385
|
}
|
|
386
|
-
function
|
|
387
|
-
for (var e; e =
|
|
386
|
+
function So() {
|
|
387
|
+
for (var e; e = fr.shift(); ) if (e.__P && e.__H) try {
|
|
388
388
|
e.__H.__h.forEach(it), e.__H.__h.forEach(Vt), e.__H.__h = [];
|
|
389
389
|
} catch (t) {
|
|
390
390
|
e.__H.__h = [], D.__e(t, e.__v);
|
|
@@ -395,15 +395,15 @@ D.__b = function(e) {
|
|
|
395
395
|
}, D.__ = function(e, t) {
|
|
396
396
|
e && t.__k && t.__k.__m && (e.__m = t.__k.__m), Ln && Ln(e, t);
|
|
397
397
|
}, D.__r = function(e) {
|
|
398
|
-
xn && xn(e),
|
|
398
|
+
xn && xn(e), ae = 0;
|
|
399
399
|
var t = (P = e.__c).__H;
|
|
400
400
|
t && (Ft === P ? (t.__h = [], P.__h = [], t.__.forEach(function(n) {
|
|
401
401
|
n.__N && (n.__ = n.__N), n.i = n.__N = void 0;
|
|
402
|
-
})) : (t.__h.forEach(it), t.__h.forEach(Vt), t.__h = [],
|
|
402
|
+
})) : (t.__h.forEach(it), t.__h.forEach(Vt), t.__h = [], ae = 0)), Ft = P;
|
|
403
403
|
}, D.diffed = function(e) {
|
|
404
404
|
Sn && Sn(e);
|
|
405
405
|
var t = e.__c;
|
|
406
|
-
t && t.__H && (t.__H.__h.length && (
|
|
406
|
+
t && t.__H && (t.__H.__h.length && (fr.push(t) !== 1 && kn === D.requestAnimationFrame || ((kn = D.requestAnimationFrame) || Po)(So)), t.__H.__.forEach(function(n) {
|
|
407
407
|
n.i && (n.__H = n.i), n.i = void 0;
|
|
408
408
|
})), Ft = P = null;
|
|
409
409
|
}, D.__c = function(e, t) {
|
|
@@ -430,7 +430,7 @@ D.__b = function(e) {
|
|
|
430
430
|
}), n.__H = void 0, t && D.__e(t, n.__v));
|
|
431
431
|
};
|
|
432
432
|
var Nn = typeof requestAnimationFrame == "function";
|
|
433
|
-
function
|
|
433
|
+
function Po(e) {
|
|
434
434
|
var t, n = function() {
|
|
435
435
|
clearTimeout(r), Nn && cancelAnimationFrame(t), setTimeout(e);
|
|
436
436
|
}, r = setTimeout(n, 100);
|
|
@@ -449,10 +449,10 @@ function an(e, t) {
|
|
|
449
449
|
return n !== e[r];
|
|
450
450
|
});
|
|
451
451
|
}
|
|
452
|
-
function
|
|
452
|
+
function pr(e, t) {
|
|
453
453
|
return typeof t == "function" ? t(e) : t;
|
|
454
454
|
}
|
|
455
|
-
function
|
|
455
|
+
function hr(e, t) {
|
|
456
456
|
for (var n in t) e[n] = t[n];
|
|
457
457
|
return e;
|
|
458
458
|
}
|
|
@@ -477,54 +477,54 @@ function _r(e, t) {
|
|
|
477
477
|
(lt.prototype = new Z()).isPureReactComponent = !0, lt.prototype.shouldComponentUpdate = function(e, t) {
|
|
478
478
|
return Ut(this.props, e) || Ut(this.state, t);
|
|
479
479
|
};
|
|
480
|
-
var Hn =
|
|
481
|
-
|
|
480
|
+
var Hn = k.__b;
|
|
481
|
+
k.__b = function(e) {
|
|
482
482
|
e.type && e.type.__f && e.ref && (e.props.ref = e.ref, e.ref = null), Hn && Hn(e);
|
|
483
483
|
};
|
|
484
|
-
var
|
|
484
|
+
var Mo = typeof Symbol < "u" && Symbol.for && Symbol.for("react.forward_ref") || 3911;
|
|
485
485
|
function ln(e) {
|
|
486
486
|
function t(n) {
|
|
487
|
-
var r =
|
|
487
|
+
var r = hr({}, n);
|
|
488
488
|
return delete r.ref, e(r, n.ref || null);
|
|
489
489
|
}
|
|
490
|
-
return t.$$typeof =
|
|
490
|
+
return t.$$typeof = Mo, t.render = t, t.prototype.isReactComponent = t.__f = !0, t.displayName = "ForwardRef(" + (e.displayName || e.name) + ")", t;
|
|
491
491
|
}
|
|
492
492
|
var Dn = function(e, t) {
|
|
493
|
-
return e == null ? null :
|
|
493
|
+
return e == null ? null : re(re(e).map(t));
|
|
494
494
|
}, vr = { map: Dn, forEach: Dn, count: function(e) {
|
|
495
|
-
return e ?
|
|
495
|
+
return e ? re(e).length : 0;
|
|
496
496
|
}, only: function(e) {
|
|
497
|
-
var t =
|
|
497
|
+
var t = re(e);
|
|
498
498
|
if (t.length !== 1) throw "Children.only";
|
|
499
499
|
return t[0];
|
|
500
|
-
}, toArray:
|
|
501
|
-
|
|
500
|
+
}, toArray: re }, Lo = k.__e;
|
|
501
|
+
k.__e = function(e, t, n, r) {
|
|
502
502
|
if (e.then) {
|
|
503
503
|
for (var o, i = t; i = i.__; ) if ((o = i.__c) && o.__c) return t.__e == null && (t.__e = n.__e, t.__k = n.__k), o.__c(e, t);
|
|
504
504
|
}
|
|
505
|
-
|
|
505
|
+
Lo(e, t, n, r);
|
|
506
506
|
};
|
|
507
|
-
var An =
|
|
508
|
-
function
|
|
507
|
+
var An = k.unmount;
|
|
508
|
+
function mr(e, t, n) {
|
|
509
509
|
return e && (e.__c && e.__c.__H && (e.__c.__H.__.forEach(function(r) {
|
|
510
510
|
typeof r.__c == "function" && r.__c();
|
|
511
|
-
}), e.__c.__H = null), (e =
|
|
512
|
-
return
|
|
511
|
+
}), e.__c.__H = null), (e = hr({}, e)).__c != null && (e.__c.__P === n && (e.__c.__P = t), e.__c = null), e.__k = e.__k && e.__k.map(function(r) {
|
|
512
|
+
return mr(r, t, n);
|
|
513
513
|
})), e;
|
|
514
514
|
}
|
|
515
|
-
function
|
|
515
|
+
function yr(e, t, n) {
|
|
516
516
|
return e && n && (e.__v = null, e.__k = e.__k && e.__k.map(function(r) {
|
|
517
|
-
return
|
|
517
|
+
return yr(r, t, n);
|
|
518
518
|
}), e.__c && e.__c.__P === t && (e.__e && n.appendChild(e.__e), e.__c.__e = !0, e.__c.__P = n)), e;
|
|
519
519
|
}
|
|
520
520
|
function We() {
|
|
521
521
|
this.__u = 0, this.t = null, this.__b = null;
|
|
522
522
|
}
|
|
523
|
-
function
|
|
523
|
+
function gr(e) {
|
|
524
524
|
var t = e.__.__c;
|
|
525
525
|
return t && t.__a && t.__a(e);
|
|
526
526
|
}
|
|
527
|
-
function
|
|
527
|
+
function wr(e) {
|
|
528
528
|
var t, n, r;
|
|
529
529
|
function o(i) {
|
|
530
530
|
if (t || (t = e()).then(function(a) {
|
|
@@ -540,13 +540,13 @@ function gr(e) {
|
|
|
540
540
|
function Se() {
|
|
541
541
|
this.u = null, this.o = null;
|
|
542
542
|
}
|
|
543
|
-
|
|
543
|
+
k.unmount = function(e) {
|
|
544
544
|
var t = e.__c;
|
|
545
545
|
t && t.__R && t.__R(), t && 32 & e.__u && (e.type = null), An && An(e);
|
|
546
546
|
}, (We.prototype = new Z()).__c = function(e, t) {
|
|
547
547
|
var n = t.__c, r = this;
|
|
548
548
|
r.t == null && (r.t = []), r.t.push(n);
|
|
549
|
-
var o =
|
|
549
|
+
var o = gr(r.__v), i = !1, a = function() {
|
|
550
550
|
i || (i = !0, n.__R = null, o ? o(l) : l());
|
|
551
551
|
};
|
|
552
552
|
n.__R = a;
|
|
@@ -554,7 +554,7 @@ T.unmount = function(e) {
|
|
|
554
554
|
if (!--r.__u) {
|
|
555
555
|
if (r.state.__a) {
|
|
556
556
|
var s = r.state.__a;
|
|
557
|
-
r.__v.__k[0] =
|
|
557
|
+
r.__v.__k[0] = yr(s, s.__c.__P, s.__c.__O);
|
|
558
558
|
}
|
|
559
559
|
var u;
|
|
560
560
|
for (r.setState({ __a: r.__b = null }); u = r.t.pop(); ) u.forceUpdate();
|
|
@@ -567,12 +567,12 @@ T.unmount = function(e) {
|
|
|
567
567
|
if (this.__b) {
|
|
568
568
|
if (this.__v.__k) {
|
|
569
569
|
var n = document.createElement("div"), r = this.__v.__k[0].__c;
|
|
570
|
-
this.__v.__k[0] =
|
|
570
|
+
this.__v.__k[0] = mr(this.__b, n, r.__O = r.__P);
|
|
571
571
|
}
|
|
572
572
|
this.__b = null;
|
|
573
573
|
}
|
|
574
|
-
var o = t.__a && X(
|
|
575
|
-
return o && (o.__u &= -33), [X(
|
|
574
|
+
var o = t.__a && X(N, null, e.fallback);
|
|
575
|
+
return o && (o.__u &= -33), [X(N, null, t.__a ? null : e.children), o];
|
|
576
576
|
};
|
|
577
577
|
var On = function(e, t, n) {
|
|
578
578
|
if (++n[1] === n[0] && e.o.delete(t), e.props.revealOrder && (e.props.revealOrder[0] !== "t" || !e.o.size)) for (n = e.u; n; ) {
|
|
@@ -581,12 +581,12 @@ var On = function(e, t, n) {
|
|
|
581
581
|
e.u = n = n[2];
|
|
582
582
|
}
|
|
583
583
|
};
|
|
584
|
-
function
|
|
584
|
+
function No(e) {
|
|
585
585
|
return this.getChildContext = function() {
|
|
586
586
|
return e.context;
|
|
587
587
|
}, e.children;
|
|
588
588
|
}
|
|
589
|
-
function
|
|
589
|
+
function Ho(e) {
|
|
590
590
|
var t = this, n = e.i;
|
|
591
591
|
t.componentWillUnmount = function() {
|
|
592
592
|
Pe(null, t.l), t.l = null, t.i = null;
|
|
@@ -598,14 +598,14 @@ function No(e) {
|
|
|
598
598
|
this.childNodes.push(r), t.i.appendChild(r);
|
|
599
599
|
}, removeChild: function(r) {
|
|
600
600
|
this.childNodes.splice(this.childNodes.indexOf(r) >>> 1, 1), t.i.removeChild(r);
|
|
601
|
-
} }), Pe(X(
|
|
601
|
+
} }), Pe(X(No, { context: t.context }, e.__v), t.l);
|
|
602
602
|
}
|
|
603
|
-
function
|
|
604
|
-
var n = X(
|
|
603
|
+
function ht(e, t) {
|
|
604
|
+
var n = X(Ho, { __v: e, i: t });
|
|
605
605
|
return n.containerInfo = t, n;
|
|
606
606
|
}
|
|
607
607
|
(Se.prototype = new Z()).__a = function(e) {
|
|
608
|
-
var t = this, n =
|
|
608
|
+
var t = this, n = gr(t.__v), r = t.o.get(e);
|
|
609
609
|
return r[0]++, function(o) {
|
|
610
610
|
var i = function() {
|
|
611
611
|
t.props.revealOrder ? (r.push(o), On(t, e, r)) : o();
|
|
@@ -614,7 +614,7 @@ function _t(e, t) {
|
|
|
614
614
|
};
|
|
615
615
|
}, Se.prototype.render = function(e) {
|
|
616
616
|
this.u = null, this.o = /* @__PURE__ */ new Map();
|
|
617
|
-
var t =
|
|
617
|
+
var t = re(e.children);
|
|
618
618
|
e.revealOrder && e.revealOrder[0] === "b" && t.reverse();
|
|
619
619
|
for (var n = t.length; n--; ) this.o.set(t[n], this.u = [1, 0, this.u]);
|
|
620
620
|
return e.children;
|
|
@@ -624,14 +624,14 @@ function _t(e, t) {
|
|
|
624
624
|
On(e, n, t);
|
|
625
625
|
});
|
|
626
626
|
};
|
|
627
|
-
var
|
|
627
|
+
var br = typeof Symbol < "u" && Symbol.for && Symbol.for("react.element") || 60103, Do = /^(?: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]/, Ao = /^on(Ani|Tra|Tou|BeforeInp|Compo)/, Oo = /[A-Z0-9]/g, Io = typeof document < "u", Ro = function(e) {
|
|
628
628
|
return (typeof Symbol < "u" && typeof Symbol() == "symbol" ? /fil|che|rad/ : /fil|che|ra/).test(e);
|
|
629
629
|
};
|
|
630
|
-
function
|
|
630
|
+
function $r(e, t, n) {
|
|
631
631
|
return t.__k == null && (t.textContent = ""), Pe(e, t), typeof n == "function" && n(), e ? e.__c : null;
|
|
632
632
|
}
|
|
633
|
-
function
|
|
634
|
-
return
|
|
633
|
+
function Er(e, t, n) {
|
|
634
|
+
return dr(e, t), typeof n == "function" && n(), e ? e.__c : null;
|
|
635
635
|
}
|
|
636
636
|
Z.prototype.isReactComponent = {}, ["componentWillMount", "componentWillReceiveProps", "componentWillUpdate"].forEach(function(e) {
|
|
637
637
|
Object.defineProperty(Z.prototype, e, { configurable: !0, get: function() {
|
|
@@ -640,77 +640,77 @@ Z.prototype.isReactComponent = {}, ["componentWillMount", "componentWillReceiveP
|
|
|
640
640
|
Object.defineProperty(this, e, { configurable: !0, writable: !0, value: t });
|
|
641
641
|
} });
|
|
642
642
|
});
|
|
643
|
-
var In =
|
|
644
|
-
function Ro() {
|
|
645
|
-
}
|
|
643
|
+
var In = k.event;
|
|
646
644
|
function Vo() {
|
|
647
|
-
return this.cancelBubble;
|
|
648
645
|
}
|
|
649
646
|
function Uo() {
|
|
647
|
+
return this.cancelBubble;
|
|
648
|
+
}
|
|
649
|
+
function Wo() {
|
|
650
650
|
return this.defaultPrevented;
|
|
651
651
|
}
|
|
652
|
-
|
|
653
|
-
return In && (e = In(e)), e.persist =
|
|
652
|
+
k.event = function(e) {
|
|
653
|
+
return In && (e = In(e)), e.persist = Vo, e.isPropagationStopped = Uo, e.isDefaultPrevented = Wo, e.nativeEvent = e;
|
|
654
654
|
};
|
|
655
|
-
var sn,
|
|
655
|
+
var sn, zo = { enumerable: !1, configurable: !0, get: function() {
|
|
656
656
|
return this.class;
|
|
657
|
-
} }, Rn =
|
|
658
|
-
|
|
657
|
+
} }, Rn = k.vnode;
|
|
658
|
+
k.vnode = function(e) {
|
|
659
659
|
typeof e.type == "string" && function(t) {
|
|
660
660
|
var n = t.props, r = t.type, o = {};
|
|
661
661
|
for (var i in n) {
|
|
662
662
|
var a = n[i];
|
|
663
|
-
if (!(i === "value" && "defaultValue" in n && a == null ||
|
|
663
|
+
if (!(i === "value" && "defaultValue" in n && a == null || Io && i === "children" && r === "noscript" || i === "class" || i === "className")) {
|
|
664
664
|
var l = i.toLowerCase();
|
|
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" ||
|
|
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" || Ro(n.type) ? l === "onfocus" ? i = "onfocusin" : l === "onblur" ? i = "onfocusout" : Ao.test(i) ? i = l : r.indexOf("-") === -1 && Do.test(i) ? i = i.replace(Oo, "-$&").toLowerCase() : a === null && (a = void 0) : l = i = "oninput", l === "oninput" && o[i = l] && (i = "oninputCapture"), o[i] = a;
|
|
666
666
|
}
|
|
667
667
|
}
|
|
668
|
-
r == "select" && o.multiple && Array.isArray(o.value) && (o.value =
|
|
668
|
+
r == "select" && o.multiple && Array.isArray(o.value) && (o.value = re(n.children).forEach(function(s) {
|
|
669
669
|
s.props.selected = o.value.indexOf(s.props.value) != -1;
|
|
670
|
-
})), r == "select" && o.defaultValue != null && (o.value =
|
|
670
|
+
})), r == "select" && o.defaultValue != null && (o.value = re(n.children).forEach(function(s) {
|
|
671
671
|
s.props.selected = o.multiple ? o.defaultValue.indexOf(s.props.value) != -1 : o.defaultValue == s.props.value;
|
|
672
|
-
})), n.class && !n.className ? (o.class = n.class, Object.defineProperty(o, "className",
|
|
673
|
-
}(e), e.$$typeof =
|
|
672
|
+
})), n.class && !n.className ? (o.class = n.class, Object.defineProperty(o, "className", zo)) : (n.className && !n.class || n.class && n.className) && (o.class = o.className = n.className), t.props = o;
|
|
673
|
+
}(e), e.$$typeof = br, Rn && Rn(e);
|
|
674
674
|
};
|
|
675
|
-
var Vn =
|
|
676
|
-
|
|
675
|
+
var Vn = k.__r;
|
|
676
|
+
k.__r = function(e) {
|
|
677
677
|
Vn && Vn(e), sn = e.__c;
|
|
678
678
|
};
|
|
679
|
-
var Un =
|
|
680
|
-
|
|
679
|
+
var Un = k.diffed;
|
|
680
|
+
k.diffed = function(e) {
|
|
681
681
|
Un && Un(e);
|
|
682
682
|
var t = e.props, n = e.__e;
|
|
683
683
|
n != null && e.type === "textarea" && "value" in t && t.value !== n.value && (n.value = t.value == null ? "" : t.value), sn = null;
|
|
684
684
|
};
|
|
685
|
-
var
|
|
685
|
+
var Cr = { ReactCurrentDispatcher: { current: { readContext: function(e) {
|
|
686
686
|
return sn.__n[e.__c].props.value;
|
|
687
|
-
}, useCallback: A, useContext: W, useDebugValue: on, useDeferredValue: dn, useEffect: M, useId: fe, useImperativeHandle: rn, useInsertionEffect: pn, useLayoutEffect: Ce, useMemo:
|
|
688
|
-
function
|
|
687
|
+
}, useCallback: A, useContext: W, useDebugValue: on, useDeferredValue: dn, useEffect: M, useId: fe, useImperativeHandle: rn, useInsertionEffect: pn, useLayoutEffect: Ce, useMemo: x, useReducer: Ke, useRef: b, useState: T, useSyncExternalStore: _t, useTransition: fn } } }, jo = "17.0.2";
|
|
688
|
+
function Tr(e) {
|
|
689
689
|
return X.bind(null, e);
|
|
690
690
|
}
|
|
691
691
|
function Ne(e) {
|
|
692
|
-
return !!e && e.$$typeof ===
|
|
693
|
-
}
|
|
694
|
-
function Tr(e) {
|
|
695
|
-
return Ne(e) && e.type === H;
|
|
692
|
+
return !!e && e.$$typeof === br;
|
|
696
693
|
}
|
|
697
694
|
function kr(e) {
|
|
695
|
+
return Ne(e) && e.type === N;
|
|
696
|
+
}
|
|
697
|
+
function Fr(e) {
|
|
698
698
|
return !!e && !!e.displayName && (typeof e.displayName == "string" || e.displayName instanceof String) && e.displayName.startsWith("Memo(");
|
|
699
699
|
}
|
|
700
700
|
function cn(e) {
|
|
701
|
-
return Ne(e) ?
|
|
701
|
+
return Ne(e) ? ko.apply(null, arguments) : e;
|
|
702
702
|
}
|
|
703
|
-
function
|
|
703
|
+
function xr(e) {
|
|
704
704
|
return !!e.__k && (Pe(null, e), !0);
|
|
705
705
|
}
|
|
706
|
-
function
|
|
706
|
+
function Sr(e) {
|
|
707
707
|
return e && (e.base || e.nodeType === 1 && e) || null;
|
|
708
708
|
}
|
|
709
|
-
var
|
|
709
|
+
var Pr = function(e, t) {
|
|
710
710
|
return e(t);
|
|
711
|
-
},
|
|
711
|
+
}, Mr = function(e, t) {
|
|
712
712
|
return e(t);
|
|
713
|
-
},
|
|
713
|
+
}, Lr = N;
|
|
714
714
|
function un(e) {
|
|
715
715
|
e();
|
|
716
716
|
}
|
|
@@ -720,9 +720,9 @@ function dn(e) {
|
|
|
720
720
|
function fn() {
|
|
721
721
|
return [!1, un];
|
|
722
722
|
}
|
|
723
|
-
var pn = Ce,
|
|
724
|
-
function
|
|
725
|
-
var n = t(), r =
|
|
723
|
+
var pn = Ce, Nr = Ne;
|
|
724
|
+
function _t(e, t) {
|
|
725
|
+
var n = t(), r = T({ h: { __: n, v: t } }), o = r[0].h, i = r[1];
|
|
726
726
|
return Ce(function() {
|
|
727
727
|
o.__ = n, o.v = t, xt(o) && i({ h: o });
|
|
728
728
|
}, [e, n, t]), M(function() {
|
|
@@ -740,60 +740,60 @@ function xt(e) {
|
|
|
740
740
|
return !0;
|
|
741
741
|
}
|
|
742
742
|
}
|
|
743
|
-
var C = { useState:
|
|
743
|
+
var C = { useState: T, useId: fe, useReducer: Ke, useEffect: M, useLayoutEffect: Ce, useInsertionEffect: pn, useTransition: fn, useDeferredValue: dn, useSyncExternalStore: _t, startTransition: un, useRef: b, useImperativeHandle: rn, useMemo: x, useCallback: A, useContext: W, useDebugValue: on, version: "17.0.2", Children: vr, render: $r, hydrate: Er, unmountComponentAtNode: xr, createPortal: ht, createElement: X, createContext: q, createFactory: Tr, cloneElement: cn, createRef: en, Fragment: N, isValidElement: Ne, isElement: Nr, isFragment: kr, isMemo: Fr, findDOMNode: Sr, Component: Z, PureComponent: lt, memo: _r, forwardRef: ln, flushSync: Mr, unstable_batchedUpdates: Pr, StrictMode: Lr, Suspense: We, SuspenseList: Se, lazy: wr, __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: Cr };
|
|
744
744
|
const Wn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
745
745
|
__proto__: null,
|
|
746
746
|
Children: vr,
|
|
747
747
|
Component: Z,
|
|
748
|
-
Fragment:
|
|
748
|
+
Fragment: N,
|
|
749
749
|
PureComponent: lt,
|
|
750
|
-
StrictMode:
|
|
750
|
+
StrictMode: Lr,
|
|
751
751
|
Suspense: We,
|
|
752
752
|
SuspenseList: Se,
|
|
753
|
-
__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:
|
|
753
|
+
__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: Cr,
|
|
754
754
|
cloneElement: cn,
|
|
755
755
|
createContext: q,
|
|
756
756
|
createElement: X,
|
|
757
|
-
createFactory:
|
|
758
|
-
createPortal:
|
|
757
|
+
createFactory: Tr,
|
|
758
|
+
createPortal: ht,
|
|
759
759
|
createRef: en,
|
|
760
760
|
default: C,
|
|
761
|
-
findDOMNode:
|
|
762
|
-
flushSync:
|
|
761
|
+
findDOMNode: Sr,
|
|
762
|
+
flushSync: Mr,
|
|
763
763
|
forwardRef: ln,
|
|
764
|
-
hydrate:
|
|
765
|
-
isElement:
|
|
766
|
-
isFragment:
|
|
767
|
-
isMemo:
|
|
764
|
+
hydrate: Er,
|
|
765
|
+
isElement: Nr,
|
|
766
|
+
isFragment: kr,
|
|
767
|
+
isMemo: Fr,
|
|
768
768
|
isValidElement: Ne,
|
|
769
|
-
lazy:
|
|
769
|
+
lazy: wr,
|
|
770
770
|
memo: _r,
|
|
771
|
-
render:
|
|
771
|
+
render: $r,
|
|
772
772
|
startTransition: un,
|
|
773
|
-
unmountComponentAtNode:
|
|
774
|
-
unstable_batchedUpdates:
|
|
773
|
+
unmountComponentAtNode: xr,
|
|
774
|
+
unstable_batchedUpdates: Pr,
|
|
775
775
|
useCallback: A,
|
|
776
776
|
useContext: W,
|
|
777
777
|
useDebugValue: on,
|
|
778
778
|
useDeferredValue: dn,
|
|
779
779
|
useEffect: M,
|
|
780
|
-
useErrorBoundary:
|
|
780
|
+
useErrorBoundary: xo,
|
|
781
781
|
useId: fe,
|
|
782
782
|
useImperativeHandle: rn,
|
|
783
783
|
useInsertionEffect: pn,
|
|
784
784
|
useLayoutEffect: Ce,
|
|
785
|
-
useMemo:
|
|
785
|
+
useMemo: x,
|
|
786
786
|
useReducer: Ke,
|
|
787
|
-
useRef:
|
|
788
|
-
useState:
|
|
789
|
-
useSyncExternalStore:
|
|
787
|
+
useRef: b,
|
|
788
|
+
useState: T,
|
|
789
|
+
useSyncExternalStore: _t,
|
|
790
790
|
useTransition: fn,
|
|
791
791
|
version: jo
|
|
792
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
792
|
+
}, Symbol.toStringTag, { value: "Module" })), Hr = typeof document < "u" ? C.useLayoutEffect : () => {
|
|
793
793
|
};
|
|
794
|
-
function
|
|
795
|
-
const t =
|
|
796
|
-
return
|
|
794
|
+
function Bo(e) {
|
|
795
|
+
const t = b(null);
|
|
796
|
+
return Hr(() => {
|
|
797
797
|
t.current = e;
|
|
798
798
|
}, [
|
|
799
799
|
e
|
|
@@ -806,24 +806,24 @@ const Ge = (e) => {
|
|
|
806
806
|
var t;
|
|
807
807
|
return (t = e == null ? void 0 : e.ownerDocument) !== null && t !== void 0 ? t : document;
|
|
808
808
|
}, me = (e) => e && "window" in e && e.window === e ? e : Ge(e).defaultView || window;
|
|
809
|
-
function
|
|
809
|
+
function qo(e) {
|
|
810
810
|
var t;
|
|
811
811
|
return typeof window > "u" || window.navigator == null ? !1 : ((t = window.navigator.userAgentData) === null || t === void 0 ? void 0 : t.brands.some((n) => e.test(n.brand))) || e.test(window.navigator.userAgent);
|
|
812
812
|
}
|
|
813
|
-
function
|
|
813
|
+
function Yo(e) {
|
|
814
814
|
var t;
|
|
815
815
|
return typeof window < "u" && window.navigator != null ? e.test(((t = window.navigator.userAgentData) === null || t === void 0 ? void 0 : t.platform) || window.navigator.platform) : !1;
|
|
816
816
|
}
|
|
817
|
-
function Yo() {
|
|
818
|
-
return qo(/^Mac/i);
|
|
819
|
-
}
|
|
820
817
|
function Ko() {
|
|
821
|
-
return
|
|
818
|
+
return Yo(/^Mac/i);
|
|
819
|
+
}
|
|
820
|
+
function Go() {
|
|
821
|
+
return qo(/Android/i);
|
|
822
822
|
}
|
|
823
|
-
function
|
|
824
|
-
return e.mozInputSource === 0 && e.isTrusted ? !0 :
|
|
823
|
+
function Zo(e) {
|
|
824
|
+
return e.mozInputSource === 0 && e.isTrusted ? !0 : Go() && e.pointerType ? e.type === "click" && e.buttons === 1 : e.detail === 0 && !e.pointerType;
|
|
825
825
|
}
|
|
826
|
-
class
|
|
826
|
+
class Xo {
|
|
827
827
|
isDefaultPrevented() {
|
|
828
828
|
return this.nativeEvent.defaultPrevented;
|
|
829
829
|
}
|
|
@@ -842,25 +842,25 @@ class Zo {
|
|
|
842
842
|
this.nativeEvent = n, this.target = n.target, this.currentTarget = n.currentTarget, this.relatedTarget = n.relatedTarget, this.bubbles = n.bubbles, this.cancelable = n.cancelable, this.defaultPrevented = n.defaultPrevented, this.eventPhase = n.eventPhase, this.isTrusted = n.isTrusted, this.timeStamp = n.timeStamp, this.type = t;
|
|
843
843
|
}
|
|
844
844
|
}
|
|
845
|
-
function
|
|
846
|
-
let t =
|
|
845
|
+
function Dr(e) {
|
|
846
|
+
let t = b({
|
|
847
847
|
isFocused: !1,
|
|
848
848
|
observer: null
|
|
849
849
|
});
|
|
850
|
-
|
|
850
|
+
Hr(() => {
|
|
851
851
|
const r = t.current;
|
|
852
852
|
return () => {
|
|
853
853
|
r.observer && (r.observer.disconnect(), r.observer = null);
|
|
854
854
|
};
|
|
855
855
|
}, []);
|
|
856
|
-
let n =
|
|
856
|
+
let n = Bo((r) => {
|
|
857
857
|
e == null || e(r);
|
|
858
858
|
});
|
|
859
859
|
return A((r) => {
|
|
860
860
|
if (r.target instanceof HTMLButtonElement || r.target instanceof HTMLInputElement || r.target instanceof HTMLTextAreaElement || r.target instanceof HTMLSelectElement) {
|
|
861
861
|
t.current.isFocused = !0;
|
|
862
862
|
let o = r.target, i = (a) => {
|
|
863
|
-
t.current.isFocused = !1, o.disabled && n(new
|
|
863
|
+
t.current.isFocused = !1, o.disabled && n(new Xo("blur", a)), t.current.observer && (t.current.observer.disconnect(), t.current.observer = null);
|
|
864
864
|
};
|
|
865
865
|
o.addEventListener("focusout", i, {
|
|
866
866
|
once: !0
|
|
@@ -887,7 +887,7 @@ function Hr(e) {
|
|
|
887
887
|
n
|
|
888
888
|
]);
|
|
889
889
|
}
|
|
890
|
-
function
|
|
890
|
+
function Qo(e) {
|
|
891
891
|
let { isDisabled: t, onFocus: n, onBlur: r, onFocusChange: o } = e;
|
|
892
892
|
const i = A((s) => {
|
|
893
893
|
if (s.target === s.currentTarget)
|
|
@@ -895,7 +895,7 @@ function Xo(e) {
|
|
|
895
895
|
}, [
|
|
896
896
|
r,
|
|
897
897
|
o
|
|
898
|
-
]), a =
|
|
898
|
+
]), a = Dr(i), l = A((s) => {
|
|
899
899
|
const u = Ge(s.target);
|
|
900
900
|
s.target === s.currentTarget && u.activeElement === s.target && (n && n(s), o && o(!0), a(s));
|
|
901
901
|
}, [
|
|
@@ -910,62 +910,62 @@ function Xo(e) {
|
|
|
910
910
|
}
|
|
911
911
|
};
|
|
912
912
|
}
|
|
913
|
-
let Ze = null, Wt = /* @__PURE__ */ new Set(),
|
|
914
|
-
const
|
|
913
|
+
let Ze = null, Wt = /* @__PURE__ */ new Set(), ze = /* @__PURE__ */ new Map(), $e = !1, zt = !1;
|
|
914
|
+
const Jo = {
|
|
915
915
|
Tab: !0,
|
|
916
916
|
Escape: !0
|
|
917
917
|
};
|
|
918
|
-
function
|
|
918
|
+
function hn(e, t) {
|
|
919
919
|
for (let n of Wt) n(e, t);
|
|
920
920
|
}
|
|
921
|
-
function
|
|
922
|
-
return !(e.metaKey || !
|
|
921
|
+
function ei(e) {
|
|
922
|
+
return !(e.metaKey || !Ko() && e.altKey || e.ctrlKey || e.key === "Control" || e.key === "Shift" || e.key === "Meta");
|
|
923
923
|
}
|
|
924
924
|
function st(e) {
|
|
925
|
-
$e = !0,
|
|
925
|
+
$e = !0, ei(e) && (Ze = "keyboard", hn("keyboard", e));
|
|
926
926
|
}
|
|
927
927
|
function K(e) {
|
|
928
|
-
Ze = "pointer", (e.type === "mousedown" || e.type === "pointerdown") && ($e = !0,
|
|
929
|
-
}
|
|
930
|
-
function Dr(e) {
|
|
931
|
-
Go(e) && ($e = !0, Ze = "virtual");
|
|
928
|
+
Ze = "pointer", (e.type === "mousedown" || e.type === "pointerdown") && ($e = !0, hn("pointer", e));
|
|
932
929
|
}
|
|
933
930
|
function Ar(e) {
|
|
934
|
-
|
|
931
|
+
Zo(e) && ($e = !0, Ze = "virtual");
|
|
932
|
+
}
|
|
933
|
+
function Or(e) {
|
|
934
|
+
e.target === window || e.target === document || (!$e && !zt && (Ze = "virtual", hn("virtual", e)), $e = !1, zt = !1);
|
|
935
935
|
}
|
|
936
|
-
function
|
|
937
|
-
$e = !1,
|
|
936
|
+
function Ir() {
|
|
937
|
+
$e = !1, zt = !0;
|
|
938
938
|
}
|
|
939
|
-
function
|
|
940
|
-
if (typeof window > "u" ||
|
|
939
|
+
function jt(e) {
|
|
940
|
+
if (typeof window > "u" || ze.get(me(e))) return;
|
|
941
941
|
const t = me(e), n = Ge(e);
|
|
942
942
|
let r = t.HTMLElement.prototype.focus;
|
|
943
943
|
t.HTMLElement.prototype.focus = function() {
|
|
944
944
|
$e = !0, r.apply(this, arguments);
|
|
945
|
-
}, n.addEventListener("keydown", st, !0), n.addEventListener("keyup", st, !0), n.addEventListener("click",
|
|
946
|
-
|
|
945
|
+
}, n.addEventListener("keydown", st, !0), n.addEventListener("keyup", st, !0), n.addEventListener("click", Ar, !0), t.addEventListener("focus", Or, !0), t.addEventListener("blur", Ir, !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", () => {
|
|
946
|
+
Rr(e);
|
|
947
947
|
}, {
|
|
948
948
|
once: !0
|
|
949
|
-
}),
|
|
949
|
+
}), ze.set(t, {
|
|
950
950
|
focus: r
|
|
951
951
|
});
|
|
952
952
|
}
|
|
953
|
-
const
|
|
953
|
+
const Rr = (e, t) => {
|
|
954
954
|
const n = me(e), r = Ge(e);
|
|
955
|
-
t && r.removeEventListener("DOMContentLoaded", t),
|
|
955
|
+
t && r.removeEventListener("DOMContentLoaded", t), ze.has(n) && (n.HTMLElement.prototype.focus = ze.get(n).focus, r.removeEventListener("keydown", st, !0), r.removeEventListener("keyup", st, !0), r.removeEventListener("click", Ar, !0), n.removeEventListener("focus", Or, !0), n.removeEventListener("blur", Ir, !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)), ze.delete(n));
|
|
956
956
|
};
|
|
957
|
-
function
|
|
957
|
+
function ti(e) {
|
|
958
958
|
const t = Ge(e);
|
|
959
959
|
let n;
|
|
960
|
-
return t.readyState !== "loading" ?
|
|
961
|
-
|
|
962
|
-
}, t.addEventListener("DOMContentLoaded", n)), () =>
|
|
960
|
+
return t.readyState !== "loading" ? jt(e) : (n = () => {
|
|
961
|
+
jt(e);
|
|
962
|
+
}, t.addEventListener("DOMContentLoaded", n)), () => Rr(e, n);
|
|
963
963
|
}
|
|
964
|
-
typeof document < "u" &&
|
|
965
|
-
function
|
|
964
|
+
typeof document < "u" && ti();
|
|
965
|
+
function Vr() {
|
|
966
966
|
return Ze !== "pointer";
|
|
967
967
|
}
|
|
968
|
-
const
|
|
968
|
+
const ni = /* @__PURE__ */ new Set([
|
|
969
969
|
"checkbox",
|
|
970
970
|
"radio",
|
|
971
971
|
"range",
|
|
@@ -976,23 +976,23 @@ const ti = /* @__PURE__ */ new Set([
|
|
|
976
976
|
"submit",
|
|
977
977
|
"reset"
|
|
978
978
|
]);
|
|
979
|
-
function
|
|
979
|
+
function ri(e, t, n) {
|
|
980
980
|
var r;
|
|
981
981
|
const o = typeof window < "u" ? me(n == null ? void 0 : n.target).HTMLInputElement : HTMLInputElement, i = typeof window < "u" ? me(n == null ? void 0 : n.target).HTMLTextAreaElement : HTMLTextAreaElement, a = typeof window < "u" ? me(n == null ? void 0 : n.target).HTMLElement : HTMLElement, l = typeof window < "u" ? me(n == null ? void 0 : n.target).KeyboardEvent : KeyboardEvent;
|
|
982
|
-
return e = e || (n == null ? void 0 : n.target) instanceof o && !
|
|
982
|
+
return e = e || (n == null ? void 0 : n.target) instanceof o && !ni.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 && !Jo[n.key]);
|
|
983
983
|
}
|
|
984
|
-
function
|
|
985
|
-
|
|
984
|
+
function oi(e, t, n) {
|
|
985
|
+
jt(), M(() => {
|
|
986
986
|
let r = (o, i) => {
|
|
987
|
-
|
|
987
|
+
ri(!!(n != null && n.isTextInput), o, i) && e(Vr());
|
|
988
988
|
};
|
|
989
989
|
return Wt.add(r), () => {
|
|
990
990
|
Wt.delete(r);
|
|
991
991
|
};
|
|
992
992
|
}, t);
|
|
993
993
|
}
|
|
994
|
-
function
|
|
995
|
-
let { isDisabled: t, onBlurWithin: n, onFocusWithin: r, onFocusWithinChange: o } = e, i =
|
|
994
|
+
function ii(e) {
|
|
995
|
+
let { isDisabled: t, onBlurWithin: n, onFocusWithin: r, onFocusWithinChange: o } = e, i = b({
|
|
996
996
|
isFocusWithin: !1
|
|
997
997
|
}), a = A((u) => {
|
|
998
998
|
i.current.isFocusWithin && !u.currentTarget.contains(u.relatedTarget) && (i.current.isFocusWithin = !1, n && n(u), o && o(!1));
|
|
@@ -1000,7 +1000,7 @@ function oi(e) {
|
|
|
1000
1000
|
n,
|
|
1001
1001
|
o,
|
|
1002
1002
|
i
|
|
1003
|
-
]), l =
|
|
1003
|
+
]), l = Dr(a), s = A((u) => {
|
|
1004
1004
|
!i.current.isFocusWithin && document.activeElement === u.target && (r && r(u), o && o(!0), i.current.isFocusWithin = !0, l(u));
|
|
1005
1005
|
}, [
|
|
1006
1006
|
r,
|
|
@@ -1026,55 +1026,55 @@ function Bt() {
|
|
|
1026
1026
|
ct = !1;
|
|
1027
1027
|
}, 50);
|
|
1028
1028
|
}
|
|
1029
|
-
function
|
|
1029
|
+
function zn(e) {
|
|
1030
1030
|
e.pointerType === "touch" && Bt();
|
|
1031
1031
|
}
|
|
1032
|
-
function
|
|
1032
|
+
function ai() {
|
|
1033
1033
|
if (!(typeof document > "u"))
|
|
1034
|
-
return typeof PointerEvent < "u" ? document.addEventListener("pointerup",
|
|
1035
|
-
St--, !(St > 0) && (typeof PointerEvent < "u" ? document.removeEventListener("pointerup",
|
|
1034
|
+
return typeof PointerEvent < "u" ? document.addEventListener("pointerup", zn) : document.addEventListener("touchend", Bt), St++, () => {
|
|
1035
|
+
St--, !(St > 0) && (typeof PointerEvent < "u" ? document.removeEventListener("pointerup", zn) : document.removeEventListener("touchend", Bt));
|
|
1036
1036
|
};
|
|
1037
1037
|
}
|
|
1038
|
-
function
|
|
1039
|
-
let { onHoverStart: t, onHoverChange: n, onHoverEnd: r, isDisabled: o } = e, [i, a] =
|
|
1038
|
+
function li(e) {
|
|
1039
|
+
let { onHoverStart: t, onHoverChange: n, onHoverEnd: r, isDisabled: o } = e, [i, a] = T(!1), l = b({
|
|
1040
1040
|
isHovered: !1,
|
|
1041
1041
|
ignoreEmulatedMouseEvents: !1,
|
|
1042
1042
|
pointerType: "",
|
|
1043
1043
|
target: null
|
|
1044
1044
|
}).current;
|
|
1045
|
-
M(
|
|
1046
|
-
let { hoverProps: s, triggerHoverEnd: u } =
|
|
1047
|
-
let d = (f,
|
|
1048
|
-
if (l.pointerType =
|
|
1045
|
+
M(ai, []);
|
|
1046
|
+
let { hoverProps: s, triggerHoverEnd: u } = x(() => {
|
|
1047
|
+
let d = (f, _) => {
|
|
1048
|
+
if (l.pointerType = _, o || _ === "touch" || l.isHovered || !f.currentTarget.contains(f.target)) return;
|
|
1049
1049
|
l.isHovered = !0;
|
|
1050
|
-
let
|
|
1051
|
-
l.target =
|
|
1050
|
+
let v = f.currentTarget;
|
|
1051
|
+
l.target = v, t && t({
|
|
1052
1052
|
type: "hoverstart",
|
|
1053
|
-
target:
|
|
1054
|
-
pointerType:
|
|
1053
|
+
target: v,
|
|
1054
|
+
pointerType: _
|
|
1055
1055
|
}), n && n(!0), a(!0);
|
|
1056
|
-
}, c = (f,
|
|
1057
|
-
if (l.pointerType = "", l.target = null,
|
|
1056
|
+
}, c = (f, _) => {
|
|
1057
|
+
if (l.pointerType = "", l.target = null, _ === "touch" || !l.isHovered) return;
|
|
1058
1058
|
l.isHovered = !1;
|
|
1059
|
-
let
|
|
1059
|
+
let v = f.currentTarget;
|
|
1060
1060
|
r && r({
|
|
1061
1061
|
type: "hoverend",
|
|
1062
|
-
target:
|
|
1063
|
-
pointerType:
|
|
1062
|
+
target: v,
|
|
1063
|
+
pointerType: _
|
|
1064
1064
|
}), n && n(!1), a(!1);
|
|
1065
|
-
},
|
|
1066
|
-
return typeof PointerEvent < "u" ? (
|
|
1065
|
+
}, h = {};
|
|
1066
|
+
return typeof PointerEvent < "u" ? (h.onPointerEnter = (f) => {
|
|
1067
1067
|
ct && f.pointerType === "mouse" || d(f, f.pointerType);
|
|
1068
|
-
},
|
|
1068
|
+
}, h.onPointerLeave = (f) => {
|
|
1069
1069
|
!o && f.currentTarget.contains(f.target) && c(f, f.pointerType);
|
|
1070
|
-
}) : (
|
|
1070
|
+
}) : (h.onTouchStart = () => {
|
|
1071
1071
|
l.ignoreEmulatedMouseEvents = !0;
|
|
1072
|
-
},
|
|
1072
|
+
}, h.onMouseEnter = (f) => {
|
|
1073
1073
|
!l.ignoreEmulatedMouseEvents && !ct && d(f, "mouse"), l.ignoreEmulatedMouseEvents = !1;
|
|
1074
|
-
},
|
|
1074
|
+
}, h.onMouseLeave = (f) => {
|
|
1075
1075
|
!o && f.currentTarget.contains(f.target) && c(f, "mouse");
|
|
1076
1076
|
}), {
|
|
1077
|
-
hoverProps:
|
|
1077
|
+
hoverProps: h,
|
|
1078
1078
|
triggerHoverEnd: c
|
|
1079
1079
|
};
|
|
1080
1080
|
}, [
|
|
@@ -1095,35 +1095,35 @@ function ai(e) {
|
|
|
1095
1095
|
isHovered: i
|
|
1096
1096
|
};
|
|
1097
1097
|
}
|
|
1098
|
-
function
|
|
1099
|
-
let { autoFocus: t = !1, isTextInput: n, within: r } = e, o =
|
|
1098
|
+
function si(e = {}) {
|
|
1099
|
+
let { autoFocus: t = !1, isTextInput: n, within: r } = e, o = b({
|
|
1100
1100
|
isFocused: !1,
|
|
1101
|
-
isFocusVisible: t ||
|
|
1102
|
-
}), [i, a] =
|
|
1101
|
+
isFocusVisible: t || Vr()
|
|
1102
|
+
}), [i, a] = T(!1), [l, s] = T(() => o.current.isFocused && o.current.isFocusVisible), u = A(() => s(o.current.isFocused && o.current.isFocusVisible), []), d = A((f) => {
|
|
1103
1103
|
o.current.isFocused = f, a(f), u();
|
|
1104
1104
|
}, [
|
|
1105
1105
|
u
|
|
1106
1106
|
]);
|
|
1107
|
-
|
|
1107
|
+
oi((f) => {
|
|
1108
1108
|
o.current.isFocusVisible = f, u();
|
|
1109
1109
|
}, [], {
|
|
1110
1110
|
isTextInput: n
|
|
1111
1111
|
});
|
|
1112
|
-
let { focusProps: c } =
|
|
1112
|
+
let { focusProps: c } = Qo({
|
|
1113
1113
|
isDisabled: r,
|
|
1114
1114
|
onFocusChange: d
|
|
1115
|
-
}), { focusWithinProps:
|
|
1115
|
+
}), { focusWithinProps: h } = ii({
|
|
1116
1116
|
isDisabled: !r,
|
|
1117
1117
|
onFocusWithinChange: d
|
|
1118
1118
|
});
|
|
1119
1119
|
return {
|
|
1120
1120
|
isFocused: i,
|
|
1121
1121
|
isFocusVisible: l,
|
|
1122
|
-
focusProps: r ?
|
|
1122
|
+
focusProps: r ? h : c
|
|
1123
1123
|
};
|
|
1124
1124
|
}
|
|
1125
|
-
var
|
|
1126
|
-
let
|
|
1125
|
+
var ci = Object.defineProperty, ui = (e, t, n) => t in e ? ci(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Pt = (e, t, n) => (ui(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
1126
|
+
let di = class {
|
|
1127
1127
|
constructor() {
|
|
1128
1128
|
Pt(this, "current", this.detect()), Pt(this, "handoffState", "pending"), Pt(this, "currentId", 0);
|
|
1129
1129
|
}
|
|
@@ -1151,8 +1151,8 @@ let ui = class {
|
|
|
1151
1151
|
get isHandoffComplete() {
|
|
1152
1152
|
return this.handoffState === "complete";
|
|
1153
1153
|
}
|
|
1154
|
-
}, ge = new
|
|
1155
|
-
function
|
|
1154
|
+
}, ge = new di();
|
|
1155
|
+
function vt(e) {
|
|
1156
1156
|
return ge.isServer ? null : e instanceof Node ? e.ownerDocument : e != null && e.hasOwnProperty("current") && e.current instanceof Node ? e.current.ownerDocument : document;
|
|
1157
1157
|
}
|
|
1158
1158
|
function mt(e) {
|
|
@@ -1197,41 +1197,41 @@ function pe() {
|
|
|
1197
1197
|
return t;
|
|
1198
1198
|
}
|
|
1199
1199
|
function yt() {
|
|
1200
|
-
let [e] =
|
|
1200
|
+
let [e] = T(pe);
|
|
1201
1201
|
return M(() => () => e.dispose(), [e]), e;
|
|
1202
1202
|
}
|
|
1203
|
-
let
|
|
1203
|
+
let z = (e, t) => {
|
|
1204
1204
|
ge.isServer ? M(e, t) : Ce(e, t);
|
|
1205
1205
|
};
|
|
1206
1206
|
function Te(e) {
|
|
1207
|
-
let t =
|
|
1208
|
-
return
|
|
1207
|
+
let t = b(e);
|
|
1208
|
+
return z(() => {
|
|
1209
1209
|
t.current = e;
|
|
1210
1210
|
}, [e]), t;
|
|
1211
1211
|
}
|
|
1212
|
-
let
|
|
1212
|
+
let L = function(e) {
|
|
1213
1213
|
let t = Te(e);
|
|
1214
1214
|
return C.useCallback((...n) => t.current(...n), [t]);
|
|
1215
1215
|
};
|
|
1216
|
-
function
|
|
1216
|
+
function fi(e) {
|
|
1217
1217
|
let t = e.width / 2, n = e.height / 2;
|
|
1218
1218
|
return { top: e.clientY - n, right: e.clientX + t, bottom: e.clientY + n, left: e.clientX - t };
|
|
1219
1219
|
}
|
|
1220
|
-
function
|
|
1220
|
+
function pi(e, t) {
|
|
1221
1221
|
return !(!e || !t || e.right < t.left || e.left > t.right || e.bottom < t.top || e.top > t.bottom);
|
|
1222
1222
|
}
|
|
1223
|
-
function
|
|
1224
|
-
let t =
|
|
1223
|
+
function hi({ disabled: e = !1 } = {}) {
|
|
1224
|
+
let t = b(null), [n, r] = T(!1), o = yt(), i = L(() => {
|
|
1225
1225
|
t.current = null, r(!1), o.dispose();
|
|
1226
|
-
}), a =
|
|
1226
|
+
}), a = L((l) => {
|
|
1227
1227
|
if (o.dispose(), t.current === null) {
|
|
1228
1228
|
t.current = l.currentTarget, r(!0);
|
|
1229
1229
|
{
|
|
1230
|
-
let s =
|
|
1230
|
+
let s = vt(l.currentTarget);
|
|
1231
1231
|
o.addEventListener(s, "pointerup", i, !1), o.addEventListener(s, "pointermove", (u) => {
|
|
1232
1232
|
if (t.current) {
|
|
1233
|
-
let d =
|
|
1234
|
-
r(
|
|
1233
|
+
let d = fi(u);
|
|
1234
|
+
r(pi(d, t.current.getBoundingClientRect()));
|
|
1235
1235
|
}
|
|
1236
1236
|
}, !1), o.addEventListener(s, "pointercancel", i, !1);
|
|
1237
1237
|
}
|
|
@@ -1240,7 +1240,7 @@ function pi({ disabled: e = !1 } = {}) {
|
|
|
1240
1240
|
return { pressed: n, pressProps: e ? {} : { onPointerDown: a, onPointerUp: i, onClick: i } };
|
|
1241
1241
|
}
|
|
1242
1242
|
let _i = q(void 0);
|
|
1243
|
-
function
|
|
1243
|
+
function Ur() {
|
|
1244
1244
|
return W(_i);
|
|
1245
1245
|
}
|
|
1246
1246
|
function qt(...e) {
|
|
@@ -1257,7 +1257,7 @@ function de(e, t, ...n) {
|
|
|
1257
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 || {});
|
|
1258
1258
|
function Y({ ourProps: e, theirProps: t, slot: n, defaultTag: r, features: o, visible: i = !0, name: a, mergeRefs: l }) {
|
|
1259
1259
|
l = l ?? vi;
|
|
1260
|
-
let s =
|
|
1260
|
+
let s = Wr(t, e);
|
|
1261
1261
|
if (i) return rt(s, n, r, a, l);
|
|
1262
1262
|
let u = o ?? 0;
|
|
1263
1263
|
if (u & 2) {
|
|
@@ -1279,31 +1279,31 @@ function rt(e, t = {}, n, r, o) {
|
|
|
1279
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);
|
|
1280
1280
|
let c = {};
|
|
1281
1281
|
if (t) {
|
|
1282
|
-
let
|
|
1283
|
-
for (let [
|
|
1284
|
-
if (
|
|
1282
|
+
let h = !1, f = [];
|
|
1283
|
+
for (let [_, v] of Object.entries(t)) typeof v == "boolean" && (h = !0), v === !0 && f.push(_.replace(/([A-Z])/g, (m) => `-${m.toLowerCase()}`));
|
|
1284
|
+
if (h) {
|
|
1285
1285
|
c["data-headlessui-state"] = f.join(" ");
|
|
1286
|
-
for (let
|
|
1286
|
+
for (let _ of f) c[`data-${_}`] = "";
|
|
1287
1287
|
}
|
|
1288
1288
|
}
|
|
1289
|
-
if (i ===
|
|
1290
|
-
if (Object.keys(
|
|
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((
|
|
1289
|
+
if (i === N && (Object.keys(he(s)).length > 0 || Object.keys(he(c)).length > 0)) if (!Ne(d) || Array.isArray(d) && d.length > 1) {
|
|
1290
|
+
if (Object.keys(he(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(he(s)).concat(Object.keys(he(c))).map((h) => ` - ${h}`).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((h) => ` - ${h}`).join(`
|
|
1292
1292
|
`)].join(`
|
|
1293
1293
|
`));
|
|
1294
1294
|
} else {
|
|
1295
|
-
let
|
|
1296
|
-
for (let
|
|
1297
|
-
return cn(d, Object.assign({},
|
|
1295
|
+
let h = d.props, f = h == null ? void 0 : h.className, _ = typeof f == "function" ? (...y) => qt(f(...y), s.className) : qt(f, s.className), v = _ ? { className: _ } : {}, m = Wr(d.props, he(Mt(s, ["ref"])));
|
|
1296
|
+
for (let y in c) y in m && delete c[y];
|
|
1297
|
+
return cn(d, Object.assign({}, m, c, u, { ref: o(d.ref, u.ref) }, v));
|
|
1298
1298
|
}
|
|
1299
|
-
return X(i, Object.assign({}, Mt(s, ["ref"]), i !==
|
|
1299
|
+
return X(i, Object.assign({}, Mt(s, ["ref"]), i !== N && u, i !== N && c), d);
|
|
1300
1300
|
}
|
|
1301
1301
|
function vi(...e) {
|
|
1302
1302
|
return e.every((t) => t == null) ? void 0 : (t) => {
|
|
1303
1303
|
for (let n of e) n != null && (typeof n == "function" ? n(t) : n.current = t);
|
|
1304
1304
|
};
|
|
1305
1305
|
}
|
|
1306
|
-
function
|
|
1306
|
+
function Wr(...e) {
|
|
1307
1307
|
if (e.length === 0) return {};
|
|
1308
1308
|
if (e.length === 1) return e[0];
|
|
1309
1309
|
let t = {}, n = {};
|
|
@@ -1321,7 +1321,7 @@ function Ur(...e) {
|
|
|
1321
1321
|
} });
|
|
1322
1322
|
return t;
|
|
1323
1323
|
}
|
|
1324
|
-
function
|
|
1324
|
+
function mi(...e) {
|
|
1325
1325
|
if (e.length === 0) return {};
|
|
1326
1326
|
if (e.length === 1) return e[0];
|
|
1327
1327
|
let t = {}, n = {};
|
|
@@ -1332,11 +1332,11 @@ function hi(...e) {
|
|
|
1332
1332
|
} });
|
|
1333
1333
|
return t;
|
|
1334
1334
|
}
|
|
1335
|
-
function
|
|
1335
|
+
function j(e) {
|
|
1336
1336
|
var t;
|
|
1337
1337
|
return Object.assign(ln(e), { displayName: (t = e.displayName) != null ? t : e.name });
|
|
1338
1338
|
}
|
|
1339
|
-
function
|
|
1339
|
+
function he(e) {
|
|
1340
1340
|
let t = Object.assign({}, e);
|
|
1341
1341
|
for (let n in t) t[n] === void 0 && delete t[n];
|
|
1342
1342
|
return t;
|
|
@@ -1346,75 +1346,75 @@ function Mt(e, t = []) {
|
|
|
1346
1346
|
for (let r of t) r in n && delete n[r];
|
|
1347
1347
|
return n;
|
|
1348
1348
|
}
|
|
1349
|
-
let
|
|
1350
|
-
function
|
|
1349
|
+
let yi = "button";
|
|
1350
|
+
function gi(e, t) {
|
|
1351
1351
|
var n;
|
|
1352
|
-
let r =
|
|
1353
|
-
return Y({ ourProps: f, theirProps: a, slot:
|
|
1352
|
+
let r = Ur(), { disabled: o = r || !1, autoFocus: i = !1, ...a } = e, { isFocusVisible: l, focusProps: s } = si({ autoFocus: i }), { isHovered: u, hoverProps: d } = li({ isDisabled: o }), { pressed: c, pressProps: h } = hi({ disabled: o }), f = mi({ ref: t, type: (n = a.type) != null ? n : "button", disabled: o || void 0, autoFocus: i }, s, d, h), _ = x(() => ({ disabled: o, hover: u, focus: l, active: c, autofocus: i }), [o, u, l, c, i]);
|
|
1353
|
+
return Y({ ourProps: f, theirProps: a, slot: _, defaultTag: yi, name: "Button" });
|
|
1354
1354
|
}
|
|
1355
|
-
let
|
|
1355
|
+
let wi = j(gi), bi = "div";
|
|
1356
1356
|
var dt = ((e) => (e[e.None = 1] = "None", e[e.Focusable = 2] = "Focusable", e[e.Hidden = 4] = "Hidden", e))(dt || {});
|
|
1357
|
-
function
|
|
1357
|
+
function $i(e, t) {
|
|
1358
1358
|
var n;
|
|
1359
1359
|
let { features: r = 1, ...o } = e, i = { ref: t, "aria-hidden": (r & 2) === 2 ? !0 : (n = o["aria-hidden"]) != null ? n : void 0, hidden: (r & 4) === 4 ? !0 : void 0, style: { position: "fixed", top: 1, left: 1, width: 1, height: 0, padding: 0, margin: -1, overflow: "hidden", clip: "rect(0, 0, 0, 0)", whiteSpace: "nowrap", borderWidth: "0", ...(r & 4) === 4 && (r & 2) !== 2 && { display: "none" } } };
|
|
1360
|
-
return Y({ ourProps: i, theirProps: o, slot: {}, defaultTag:
|
|
1360
|
+
return Y({ ourProps: i, theirProps: o, slot: {}, defaultTag: bi, name: "Hidden" });
|
|
1361
1361
|
}
|
|
1362
|
-
let Yt =
|
|
1363
|
-
function
|
|
1364
|
-
let t = W(
|
|
1362
|
+
let Yt = j($i), Ei = q(null);
|
|
1363
|
+
function Ci({ children: e }) {
|
|
1364
|
+
let t = W(Ei);
|
|
1365
1365
|
if (!t) return C.createElement(C.Fragment, null, e);
|
|
1366
1366
|
let { target: n } = t;
|
|
1367
|
-
return n ?
|
|
1367
|
+
return n ? ht(C.createElement(C.Fragment, null, e), n) : null;
|
|
1368
1368
|
}
|
|
1369
|
-
let
|
|
1370
|
-
function
|
|
1371
|
-
return Object.assign(e, { [
|
|
1369
|
+
let zr = Symbol();
|
|
1370
|
+
function Ti(e, t = !0) {
|
|
1371
|
+
return Object.assign(e, { [zr]: t });
|
|
1372
1372
|
}
|
|
1373
|
-
function
|
|
1374
|
-
let t =
|
|
1373
|
+
function J(...e) {
|
|
1374
|
+
let t = b(e);
|
|
1375
1375
|
M(() => {
|
|
1376
1376
|
t.current = e;
|
|
1377
1377
|
}, [e]);
|
|
1378
|
-
let n =
|
|
1378
|
+
let n = L((r) => {
|
|
1379
1379
|
for (let o of t.current) o != null && (typeof o == "function" ? o(r) : o.current = r);
|
|
1380
1380
|
});
|
|
1381
|
-
return e.every((r) => r == null || (r == null ? void 0 : r[
|
|
1381
|
+
return e.every((r) => r == null || (r == null ? void 0 : r[zr])) ? void 0 : n;
|
|
1382
1382
|
}
|
|
1383
|
-
let
|
|
1384
|
-
|
|
1383
|
+
let _n = q(null);
|
|
1384
|
+
_n.displayName = "DescriptionContext";
|
|
1385
1385
|
function jr() {
|
|
1386
|
-
let e = W(
|
|
1386
|
+
let e = W(_n);
|
|
1387
1387
|
if (e === null) {
|
|
1388
1388
|
let t = new Error("You used a <Description /> component, but it is not inside a relevant parent.");
|
|
1389
1389
|
throw Error.captureStackTrace && Error.captureStackTrace(t, jr), t;
|
|
1390
1390
|
}
|
|
1391
1391
|
return e;
|
|
1392
1392
|
}
|
|
1393
|
-
function
|
|
1394
|
-
let [e, t] =
|
|
1395
|
-
return [e.length > 0 ? e.join(" ") : void 0,
|
|
1396
|
-
let r =
|
|
1393
|
+
function ki() {
|
|
1394
|
+
let [e, t] = T([]);
|
|
1395
|
+
return [e.length > 0 ? e.join(" ") : void 0, x(() => function(n) {
|
|
1396
|
+
let r = L((i) => (t((a) => [...a, i]), () => t((a) => {
|
|
1397
1397
|
let l = a.slice(), s = l.indexOf(i);
|
|
1398
1398
|
return s !== -1 && l.splice(s, 1), l;
|
|
1399
|
-
}))), o =
|
|
1400
|
-
return C.createElement(
|
|
1399
|
+
}))), o = x(() => ({ 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(_n.Provider, { value: o }, n.children);
|
|
1401
1401
|
}, [t])];
|
|
1402
1402
|
}
|
|
1403
|
-
let
|
|
1404
|
-
function
|
|
1405
|
-
let n = fe(), r =
|
|
1406
|
-
|
|
1407
|
-
let s = r || !1, u =
|
|
1408
|
-
return Y({ ourProps: d, theirProps: i, slot: u, defaultTag:
|
|
1403
|
+
let Fi = "p";
|
|
1404
|
+
function xi(e, t) {
|
|
1405
|
+
let n = fe(), r = Ur(), { id: o = `headlessui-description-${n}`, ...i } = e, a = jr(), l = J(t);
|
|
1406
|
+
z(() => a.register(o), [o, a.register]);
|
|
1407
|
+
let s = r || !1, u = x(() => ({ ...a.slot, disabled: s }), [a.slot, s]), d = { ref: l, ...a.props, id: o };
|
|
1408
|
+
return Y({ ourProps: d, theirProps: i, slot: u, defaultTag: Fi, name: a.name || "Description" });
|
|
1409
1409
|
}
|
|
1410
|
-
let
|
|
1411
|
-
var
|
|
1412
|
-
let
|
|
1410
|
+
let Si = j(xi), Pi = Object.assign(Si, {});
|
|
1411
|
+
var Br = ((e) => (e.Space = " ", e.Enter = "Enter", e.Escape = "Escape", e.Backspace = "Backspace", e.Delete = "Delete", e.ArrowLeft = "ArrowLeft", e.ArrowUp = "ArrowUp", e.ArrowRight = "ArrowRight", e.ArrowDown = "ArrowDown", e.Home = "Home", e.End = "End", e.PageUp = "PageUp", e.PageDown = "PageDown", e.Tab = "Tab", e))(Br || {});
|
|
1412
|
+
let Mi = q(() => {
|
|
1413
1413
|
});
|
|
1414
|
-
function
|
|
1415
|
-
return C.createElement(
|
|
1414
|
+
function Li({ value: e, children: t }) {
|
|
1415
|
+
return C.createElement(Mi.Provider, { value: e }, t);
|
|
1416
1416
|
}
|
|
1417
|
-
let
|
|
1417
|
+
let Ni = class extends Map {
|
|
1418
1418
|
constructor(t) {
|
|
1419
1419
|
super(), this.factory = t;
|
|
1420
1420
|
}
|
|
@@ -1423,7 +1423,7 @@ let Li = class extends Map {
|
|
|
1423
1423
|
return n === void 0 && (n = this.factory(t), this.set(t, n)), n;
|
|
1424
1424
|
}
|
|
1425
1425
|
};
|
|
1426
|
-
function
|
|
1426
|
+
function qr(e, t) {
|
|
1427
1427
|
let n = e(), r = /* @__PURE__ */ new Set();
|
|
1428
1428
|
return { getSnapshot() {
|
|
1429
1429
|
return n;
|
|
@@ -1434,10 +1434,10 @@ function Br(e, t) {
|
|
|
1434
1434
|
a && (n = a, r.forEach((l) => l()));
|
|
1435
1435
|
} };
|
|
1436
1436
|
}
|
|
1437
|
-
function
|
|
1438
|
-
return
|
|
1437
|
+
function Yr(e) {
|
|
1438
|
+
return _t(e.subscribe, e.getSnapshot, e.getSnapshot);
|
|
1439
1439
|
}
|
|
1440
|
-
let
|
|
1440
|
+
let Hi = new Ni(() => qr(() => [], { ADD(e) {
|
|
1441
1441
|
return this.includes(e) ? this : [...this, e];
|
|
1442
1442
|
}, REMOVE(e) {
|
|
1443
1443
|
let t = this.indexOf(e);
|
|
@@ -1446,48 +1446,48 @@ let Ni = new Li(() => Br(() => [], { ADD(e) {
|
|
|
1446
1446
|
return n.splice(t, 1), n;
|
|
1447
1447
|
} }));
|
|
1448
1448
|
function He(e, t) {
|
|
1449
|
-
let n =
|
|
1450
|
-
if (
|
|
1449
|
+
let n = Hi.get(t), r = fe(), o = Yr(n);
|
|
1450
|
+
if (z(() => {
|
|
1451
1451
|
if (e) return n.dispatch("ADD", r), () => n.dispatch("REMOVE", r);
|
|
1452
1452
|
}, [n, e]), !e) return !1;
|
|
1453
1453
|
let i = o.indexOf(r), a = o.length;
|
|
1454
1454
|
return i === -1 && (i = a, a += 1), i === a - 1;
|
|
1455
1455
|
}
|
|
1456
|
-
let Kt = /* @__PURE__ */ new Map(),
|
|
1457
|
-
function
|
|
1456
|
+
let Kt = /* @__PURE__ */ new Map(), je = /* @__PURE__ */ new Map();
|
|
1457
|
+
function jn(e) {
|
|
1458
1458
|
var t;
|
|
1459
|
-
let n = (t =
|
|
1460
|
-
return
|
|
1459
|
+
let n = (t = je.get(e)) != null ? t : 0;
|
|
1460
|
+
return je.set(e, n + 1), n !== 0 ? () => Bn(e) : (Kt.set(e, { "aria-hidden": e.getAttribute("aria-hidden"), inert: e.inert }), e.setAttribute("aria-hidden", "true"), e.inert = !0, () => Bn(e));
|
|
1461
1461
|
}
|
|
1462
1462
|
function Bn(e) {
|
|
1463
1463
|
var t;
|
|
1464
|
-
let n = (t =
|
|
1465
|
-
if (n === 1 ?
|
|
1464
|
+
let n = (t = je.get(e)) != null ? t : 1;
|
|
1465
|
+
if (n === 1 ? je.delete(e) : je.set(e, n - 1), n !== 1) return;
|
|
1466
1466
|
let r = Kt.get(e);
|
|
1467
1467
|
r && (r["aria-hidden"] === null ? e.removeAttribute("aria-hidden") : e.setAttribute("aria-hidden", r["aria-hidden"]), e.inert = r.inert, Kt.delete(e));
|
|
1468
1468
|
}
|
|
1469
|
-
function
|
|
1469
|
+
function Di(e, { allowed: t, disallowed: n } = {}) {
|
|
1470
1470
|
let r = He(e, "inert-others");
|
|
1471
|
-
|
|
1471
|
+
z(() => {
|
|
1472
1472
|
var o, i;
|
|
1473
1473
|
if (!r) return;
|
|
1474
1474
|
let a = pe();
|
|
1475
|
-
for (let s of (o = n == null ? void 0 : n()) != null ? o : []) s && a.add(
|
|
1475
|
+
for (let s of (o = n == null ? void 0 : n()) != null ? o : []) s && a.add(jn(s));
|
|
1476
1476
|
let l = (i = t == null ? void 0 : t()) != null ? i : [];
|
|
1477
1477
|
for (let s of l) {
|
|
1478
1478
|
if (!s) continue;
|
|
1479
|
-
let u =
|
|
1479
|
+
let u = vt(s);
|
|
1480
1480
|
if (!u) continue;
|
|
1481
1481
|
let d = s.parentElement;
|
|
1482
1482
|
for (; d && d !== u.body; ) {
|
|
1483
|
-
for (let c of d.children) l.some((
|
|
1483
|
+
for (let c of d.children) l.some((h) => c.contains(h)) || a.add(jn(c));
|
|
1484
1484
|
d = d.parentElement;
|
|
1485
1485
|
}
|
|
1486
1486
|
}
|
|
1487
1487
|
return a.dispose;
|
|
1488
1488
|
}, [r, t, n]);
|
|
1489
1489
|
}
|
|
1490
|
-
function
|
|
1490
|
+
function Kr(e, t, n) {
|
|
1491
1491
|
let r = Te((o) => {
|
|
1492
1492
|
let i = o.getBoundingClientRect();
|
|
1493
1493
|
i.x === 0 && i.y === 0 && i.width === 0 && i.height === 0 && n();
|
|
@@ -1508,18 +1508,18 @@ function Yr(e, t, n) {
|
|
|
1508
1508
|
return () => i.dispose();
|
|
1509
1509
|
}, [t, r, e]);
|
|
1510
1510
|
}
|
|
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(","),
|
|
1512
|
-
var
|
|
1513
|
-
function
|
|
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(","), Ai = ["[data-autofocus]"].map((e) => `${e}:not([tabindex='-1'])`).join(",");
|
|
1512
|
+
var te = ((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))(te || {}), Zt = ((e) => (e[e.Error = 0] = "Error", e[e.Overflow = 1] = "Overflow", e[e.Success = 2] = "Success", e[e.Underflow = 3] = "Underflow", e))(Zt || {}), Oi = ((e) => (e[e.Previous = -1] = "Previous", e[e.Next = 1] = "Next", e))(Oi || {});
|
|
1513
|
+
function Ii(e = document.body) {
|
|
1514
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)));
|
|
1515
1515
|
}
|
|
1516
|
-
function
|
|
1517
|
-
return e == null ? [] : Array.from(e.querySelectorAll(
|
|
1516
|
+
function Ri(e = document.body) {
|
|
1517
|
+
return e == null ? [] : Array.from(e.querySelectorAll(Ai)).sort((t, n) => Math.sign((t.tabIndex || Number.MAX_SAFE_INTEGER) - (n.tabIndex || Number.MAX_SAFE_INTEGER)));
|
|
1518
1518
|
}
|
|
1519
|
-
var
|
|
1520
|
-
function
|
|
1519
|
+
var Gr = ((e) => (e[e.Strict = 0] = "Strict", e[e.Loose = 1] = "Loose", e))(Gr || {});
|
|
1520
|
+
function Vi(e, t = 0) {
|
|
1521
1521
|
var n;
|
|
1522
|
-
return e === ((n =
|
|
1522
|
+
return e === ((n = vt(e)) == null ? void 0 : n.body) ? !1 : de(t, { 0() {
|
|
1523
1523
|
return e.matches(Gt);
|
|
1524
1524
|
}, 1() {
|
|
1525
1525
|
let r = e;
|
|
@@ -1530,19 +1530,19 @@ function Ri(e, t = 0) {
|
|
|
1530
1530
|
return !1;
|
|
1531
1531
|
} });
|
|
1532
1532
|
}
|
|
1533
|
-
var
|
|
1533
|
+
var Ui = ((e) => (e[e.Keyboard = 0] = "Keyboard", e[e.Mouse = 1] = "Mouse", e))(Ui || {});
|
|
1534
1534
|
typeof window < "u" && typeof document < "u" && (document.addEventListener("keydown", (e) => {
|
|
1535
1535
|
e.metaKey || e.altKey || e.ctrlKey || (document.documentElement.dataset.headlessuiFocusVisible = "");
|
|
1536
1536
|
}, !0), document.addEventListener("click", (e) => {
|
|
1537
1537
|
e.detail === 1 ? delete document.documentElement.dataset.headlessuiFocusVisible : e.detail === 0 && (document.documentElement.dataset.headlessuiFocusVisible = "");
|
|
1538
1538
|
}, !0));
|
|
1539
|
-
function
|
|
1539
|
+
function oe(e) {
|
|
1540
1540
|
e == null || e.focus({ preventScroll: !0 });
|
|
1541
1541
|
}
|
|
1542
|
-
let
|
|
1543
|
-
function
|
|
1542
|
+
let Wi = ["textarea", "input"].join(",");
|
|
1543
|
+
function zi(e) {
|
|
1544
1544
|
var t, n;
|
|
1545
|
-
return (n = (t = e == null ? void 0 : e.matches) == null ? void 0 : t.call(e,
|
|
1545
|
+
return (n = (t = e == null ? void 0 : e.matches) == null ? void 0 : t.call(e, Wi)) != null ? n : !1;
|
|
1546
1546
|
}
|
|
1547
1547
|
function ji(e, t = (n) => n) {
|
|
1548
1548
|
return e.slice().sort((n, r) => {
|
|
@@ -1553,8 +1553,8 @@ function ji(e, t = (n) => n) {
|
|
|
1553
1553
|
});
|
|
1554
1554
|
}
|
|
1555
1555
|
function Be(e, t, { sorted: n = !0, relativeTo: r = null, skipElements: o = [] } = {}) {
|
|
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 ?
|
|
1557
|
-
o.length > 0 && a.length > 1 && (a = a.filter((f) => !o.some((
|
|
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 ? Ri(e) : Ii(e);
|
|
1557
|
+
o.length > 0 && a.length > 1 && (a = a.filter((f) => !o.some((_) => _ != null && "current" in _ ? (_ == null ? void 0 : _.current) === f : _ === f))), r = r ?? i.activeElement;
|
|
1558
1558
|
let l = (() => {
|
|
1559
1559
|
if (t & 5) return 1;
|
|
1560
1560
|
if (t & 10) return -1;
|
|
@@ -1565,7 +1565,7 @@ function Be(e, t, { sorted: n = !0, relativeTo: r = null, skipElements: o = [] }
|
|
|
1565
1565
|
if (t & 4) return Math.max(0, a.indexOf(r)) + 1;
|
|
1566
1566
|
if (t & 8) return a.length - 1;
|
|
1567
1567
|
throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last");
|
|
1568
|
-
})(), u = t & 32 ? { preventScroll: !0 } : {}, d = 0, c = a.length,
|
|
1568
|
+
})(), u = t & 32 ? { preventScroll: !0 } : {}, d = 0, c = a.length, h;
|
|
1569
1569
|
do {
|
|
1570
1570
|
if (d >= c || d + c <= 0) return 0;
|
|
1571
1571
|
let f = s + d;
|
|
@@ -1574,18 +1574,18 @@ function Be(e, t, { sorted: n = !0, relativeTo: r = null, skipElements: o = [] }
|
|
|
1574
1574
|
if (f < 0) return 3;
|
|
1575
1575
|
if (f >= c) return 1;
|
|
1576
1576
|
}
|
|
1577
|
-
|
|
1578
|
-
} while (
|
|
1579
|
-
return t & 6 &&
|
|
1577
|
+
h = a[f], h == null || h.focus(u), d += l;
|
|
1578
|
+
} while (h !== i.activeElement);
|
|
1579
|
+
return t & 6 && zi(h) && h.select(), 2;
|
|
1580
1580
|
}
|
|
1581
|
-
function
|
|
1581
|
+
function Zr() {
|
|
1582
1582
|
return /iPhone/gi.test(window.navigator.platform) || /Mac/gi.test(window.navigator.platform) && window.navigator.maxTouchPoints > 0;
|
|
1583
1583
|
}
|
|
1584
|
-
function
|
|
1584
|
+
function Bi() {
|
|
1585
1585
|
return /Android/gi.test(window.navigator.userAgent);
|
|
1586
1586
|
}
|
|
1587
|
-
function
|
|
1588
|
-
return
|
|
1587
|
+
function qi() {
|
|
1588
|
+
return Zr() || Bi();
|
|
1589
1589
|
}
|
|
1590
1590
|
function Ie(e, t, n, r) {
|
|
1591
1591
|
let o = Te(n);
|
|
@@ -1597,7 +1597,7 @@ function Ie(e, t, n, r) {
|
|
|
1597
1597
|
return document.addEventListener(t, i, r), () => document.removeEventListener(t, i, r);
|
|
1598
1598
|
}, [e, t, r]);
|
|
1599
1599
|
}
|
|
1600
|
-
function
|
|
1600
|
+
function Xr(e, t, n, r) {
|
|
1601
1601
|
let o = Te(n);
|
|
1602
1602
|
M(() => {
|
|
1603
1603
|
if (!e) return;
|
|
@@ -1608,21 +1608,21 @@ function Zr(e, t, n, r) {
|
|
|
1608
1608
|
}, [e, t, r]);
|
|
1609
1609
|
}
|
|
1610
1610
|
const qn = 30;
|
|
1611
|
-
function
|
|
1611
|
+
function Yi(e, t, n) {
|
|
1612
1612
|
let r = He(e, "outside-click"), o = Te(n), i = A(function(s, u) {
|
|
1613
1613
|
if (s.defaultPrevented) return;
|
|
1614
1614
|
let d = u(s);
|
|
1615
1615
|
if (d === null || !d.getRootNode().contains(d) || !d.isConnected) return;
|
|
1616
|
-
let c = function
|
|
1617
|
-
return typeof f == "function" ?
|
|
1616
|
+
let c = function h(f) {
|
|
1617
|
+
return typeof f == "function" ? h(f()) : Array.isArray(f) || f instanceof Set ? f : [f];
|
|
1618
1618
|
}(t);
|
|
1619
|
-
for (let
|
|
1620
|
-
if (
|
|
1621
|
-
let f =
|
|
1619
|
+
for (let h of c) {
|
|
1620
|
+
if (h === null) continue;
|
|
1621
|
+
let f = h instanceof HTMLElement ? h : h.current;
|
|
1622
1622
|
if (f != null && f.contains(d) || s.composed && s.composedPath().includes(f)) return;
|
|
1623
1623
|
}
|
|
1624
|
-
return !
|
|
1625
|
-
}, [o]), a =
|
|
1624
|
+
return !Vi(d, Gr.Loose) && d.tabIndex !== -1 && s.preventDefault(), o.current(s, d);
|
|
1625
|
+
}, [o]), a = b(null);
|
|
1626
1626
|
Ie(r, "pointerdown", (s) => {
|
|
1627
1627
|
var u, d;
|
|
1628
1628
|
a.current = ((d = (u = s.composedPath) == null ? void 0 : u.call(s)) == null ? void 0 : d[0]) || s.target;
|
|
@@ -1630,20 +1630,20 @@ function qi(e, t, n) {
|
|
|
1630
1630
|
var u, d;
|
|
1631
1631
|
a.current = ((d = (u = s.composedPath) == null ? void 0 : u.call(s)) == null ? void 0 : d[0]) || s.target;
|
|
1632
1632
|
}, !0), Ie(r, "click", (s) => {
|
|
1633
|
-
|
|
1633
|
+
qi() || a.current && (i(s, () => a.current), a.current = null);
|
|
1634
1634
|
}, !0);
|
|
1635
|
-
let l =
|
|
1635
|
+
let l = b({ x: 0, y: 0 });
|
|
1636
1636
|
Ie(r, "touchstart", (s) => {
|
|
1637
1637
|
l.current.x = s.touches[0].clientX, l.current.y = s.touches[0].clientY;
|
|
1638
1638
|
}, !0), Ie(r, "touchend", (s) => {
|
|
1639
1639
|
let u = { x: s.changedTouches[0].clientX, y: s.changedTouches[0].clientY };
|
|
1640
1640
|
if (!(Math.abs(u.x - l.current.x) >= qn || Math.abs(u.y - l.current.y) >= qn)) return i(s, () => s.target instanceof HTMLElement ? s.target : null);
|
|
1641
|
-
}, !0),
|
|
1641
|
+
}, !0), Xr(r, "blur", (s) => i(s, () => window.document.activeElement instanceof HTMLIFrameElement ? window.document.activeElement : null), !0);
|
|
1642
1642
|
}
|
|
1643
1643
|
function Xe(...e) {
|
|
1644
|
-
return
|
|
1644
|
+
return x(() => vt(...e), [...e]);
|
|
1645
1645
|
}
|
|
1646
|
-
function
|
|
1646
|
+
function Qr(e, t, n, r) {
|
|
1647
1647
|
let o = Te(n);
|
|
1648
1648
|
M(() => {
|
|
1649
1649
|
e = e ?? window;
|
|
@@ -1653,7 +1653,7 @@ function Xr(e, t, n, r) {
|
|
|
1653
1653
|
return e.addEventListener(t, i, r), () => e.removeEventListener(t, i, r);
|
|
1654
1654
|
}, [e, t, r]);
|
|
1655
1655
|
}
|
|
1656
|
-
function
|
|
1656
|
+
function Ki() {
|
|
1657
1657
|
let e;
|
|
1658
1658
|
return { before({ doc: t }) {
|
|
1659
1659
|
var n;
|
|
@@ -1664,8 +1664,8 @@ function Yi() {
|
|
|
1664
1664
|
n.style(r, "paddingRight", `${i}px`);
|
|
1665
1665
|
} };
|
|
1666
1666
|
}
|
|
1667
|
-
function
|
|
1668
|
-
return
|
|
1667
|
+
function Gi() {
|
|
1668
|
+
return Zr() ? { before({ doc: e, d: t, meta: n }) {
|
|
1669
1669
|
function r(o) {
|
|
1670
1670
|
return n.containers.flatMap((i) => i()).some((i) => i.contains(o));
|
|
1671
1671
|
}
|
|
@@ -1707,17 +1707,17 @@ function Ki() {
|
|
|
1707
1707
|
});
|
|
1708
1708
|
} } : {};
|
|
1709
1709
|
}
|
|
1710
|
-
function
|
|
1710
|
+
function Zi() {
|
|
1711
1711
|
return { before({ doc: e, d: t }) {
|
|
1712
1712
|
t.style(e.documentElement, "overflow", "hidden");
|
|
1713
1713
|
} };
|
|
1714
1714
|
}
|
|
1715
|
-
function
|
|
1715
|
+
function Xi(e) {
|
|
1716
1716
|
let t = {};
|
|
1717
1717
|
for (let n of e) Object.assign(t, n(t));
|
|
1718
1718
|
return t;
|
|
1719
1719
|
}
|
|
1720
|
-
let ye =
|
|
1720
|
+
let ye = qr(() => /* @__PURE__ */ new Map(), { PUSH(e, t) {
|
|
1721
1721
|
var n;
|
|
1722
1722
|
let r = (n = this.get(e)) != null ? n : { doc: e, count: 0, d: pe(), meta: /* @__PURE__ */ new Set() };
|
|
1723
1723
|
return r.count++, r.meta.add(t), this.set(e, r), this;
|
|
@@ -1725,7 +1725,7 @@ let ye = Br(() => /* @__PURE__ */ new Map(), { PUSH(e, t) {
|
|
|
1725
1725
|
let n = this.get(e);
|
|
1726
1726
|
return n && (n.count--, n.meta.delete(t)), this;
|
|
1727
1727
|
}, SCROLL_PREVENT({ doc: e, d: t, meta: n }) {
|
|
1728
|
-
let r = { doc: e, d: t, meta:
|
|
1728
|
+
let r = { doc: e, d: t, meta: Xi(n) }, o = [Gi(), Ki(), Zi()];
|
|
1729
1729
|
o.forEach(({ before: i }) => i == null ? void 0 : i(r)), o.forEach(({ after: i }) => i == null ? void 0 : i(r));
|
|
1730
1730
|
}, SCROLL_ALLOW({ d: e }) {
|
|
1731
1731
|
e.dispose();
|
|
@@ -1740,63 +1740,63 @@ ye.subscribe(() => {
|
|
|
1740
1740
|
(o && !r || !o && r) && ye.dispatch(n.count > 0 ? "SCROLL_PREVENT" : "SCROLL_ALLOW", n), n.count === 0 && ye.dispatch("TEARDOWN", n);
|
|
1741
1741
|
}
|
|
1742
1742
|
});
|
|
1743
|
-
function
|
|
1744
|
-
let r =
|
|
1745
|
-
return
|
|
1743
|
+
function Qi(e, t, n = () => ({ containers: [] })) {
|
|
1744
|
+
let r = Yr(ye), o = t ? r.get(t) : void 0, i = o ? o.count > 0 : !1;
|
|
1745
|
+
return z(() => {
|
|
1746
1746
|
if (!(!t || !e)) return ye.dispatch("PUSH", t, n), () => ye.dispatch("POP", t, n);
|
|
1747
1747
|
}, [e, t]), i;
|
|
1748
1748
|
}
|
|
1749
|
-
function
|
|
1749
|
+
function Ji(e, t, n = () => [document.body]) {
|
|
1750
1750
|
let r = He(e, "scroll-lock");
|
|
1751
|
-
|
|
1751
|
+
Qi(r, t, (o) => {
|
|
1752
1752
|
var i;
|
|
1753
1753
|
return { containers: [...(i = o.containers) != null ? i : [], n] };
|
|
1754
1754
|
});
|
|
1755
1755
|
}
|
|
1756
|
-
function
|
|
1756
|
+
function ea(e) {
|
|
1757
1757
|
let t = { called: !1 };
|
|
1758
1758
|
return (...n) => {
|
|
1759
1759
|
if (!t.called) return t.called = !0, e(...n);
|
|
1760
1760
|
};
|
|
1761
1761
|
}
|
|
1762
|
-
function
|
|
1763
|
-
let [t, n] =
|
|
1762
|
+
function ta(e = 0) {
|
|
1763
|
+
let [t, n] = T(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]);
|
|
1764
1764
|
return { flags: t, setFlag: r, addFlag: o, hasFlag: i, removeFlag: a, toggleFlag: l };
|
|
1765
1765
|
}
|
|
1766
|
-
var
|
|
1767
|
-
function
|
|
1766
|
+
var na = ((e) => (e[e.None = 0] = "None", e[e.Closed = 1] = "Closed", e[e.Enter = 2] = "Enter", e[e.Leave = 4] = "Leave", e))(na || {});
|
|
1767
|
+
function ra(e) {
|
|
1768
1768
|
let t = {};
|
|
1769
1769
|
for (let n in e) e[n] === !0 && (t[`data-${n}`] = "");
|
|
1770
1770
|
return t;
|
|
1771
1771
|
}
|
|
1772
|
-
function
|
|
1773
|
-
let [o, i] =
|
|
1774
|
-
return
|
|
1772
|
+
function oa(e, t, n, r) {
|
|
1773
|
+
let [o, i] = T(n), { hasFlag: a, addFlag: l, removeFlag: s } = ta(e && o ? 3 : 0), u = b(!1), d = b(!1), c = yt();
|
|
1774
|
+
return z(function h() {
|
|
1775
1775
|
var f;
|
|
1776
1776
|
if (!e) return;
|
|
1777
1777
|
n && i(!0);
|
|
1778
|
-
let
|
|
1779
|
-
return
|
|
1778
|
+
let _ = t.current;
|
|
1779
|
+
return _ ? ((f = r == null ? void 0 : r.start) == null || f.call(r, n), ia(_, { inFlight: u, prepare() {
|
|
1780
1780
|
d.current ? d.current = !1 : d.current = u.current, u.current = !0, !d.current && (n ? (l(3), s(4)) : (l(4), s(2)));
|
|
1781
1781
|
}, run() {
|
|
1782
1782
|
d.current ? n ? (s(3), l(4)) : (s(4), l(3)) : n ? s(1) : l(1);
|
|
1783
1783
|
}, done() {
|
|
1784
|
-
var
|
|
1785
|
-
d.current && typeof
|
|
1786
|
-
} })) : n ? (l(3), c.nextFrame(() =>
|
|
1784
|
+
var v;
|
|
1785
|
+
d.current && typeof _.getAnimations == "function" && _.getAnimations().length > 0 || (u.current = !1, s(7), n || i(!1), (v = r == null ? void 0 : r.end) == null || v.call(r, n));
|
|
1786
|
+
} })) : n ? (l(3), c.nextFrame(() => h())) : void 0;
|
|
1787
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 }];
|
|
1788
1788
|
}
|
|
1789
|
-
function
|
|
1789
|
+
function ia(e, { prepare: t, run: n, done: r, inFlight: o }) {
|
|
1790
1790
|
let i = pe();
|
|
1791
|
-
return
|
|
1792
|
-
i.add(
|
|
1791
|
+
return la(e, { prepare: t, inFlight: o }), i.nextFrame(() => {
|
|
1792
|
+
i.add(aa(e, r)), n();
|
|
1793
1793
|
}), i.dispose;
|
|
1794
1794
|
}
|
|
1795
|
-
function
|
|
1796
|
-
let n =
|
|
1795
|
+
function aa(e, t) {
|
|
1796
|
+
let n = ea(t), r = pe();
|
|
1797
1797
|
if (!e) return r.dispose;
|
|
1798
1798
|
let { transitionDuration: o, transitionDelay: i } = getComputedStyle(e), [a, l] = [o, i].map((u) => {
|
|
1799
|
-
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, h) => h - c);
|
|
1800
1800
|
return d;
|
|
1801
1801
|
}), s = a + l;
|
|
1802
1802
|
if (s !== 0) {
|
|
@@ -1804,8 +1804,8 @@ function ia(e, t) {
|
|
|
1804
1804
|
let c = d.setTimeout(() => {
|
|
1805
1805
|
n(), d.dispose();
|
|
1806
1806
|
}, s);
|
|
1807
|
-
d.addEventListener(e, "transitionrun", (
|
|
1808
|
-
|
|
1807
|
+
d.addEventListener(e, "transitionrun", (h) => {
|
|
1808
|
+
h.target === h.currentTarget && (c(), d.addEventListener(e, "transitioncancel", (f) => {
|
|
1809
1809
|
f.target === f.currentTarget && (n(), u());
|
|
1810
1810
|
}));
|
|
1811
1811
|
});
|
|
@@ -1816,7 +1816,7 @@ function ia(e, t) {
|
|
|
1816
1816
|
} else n();
|
|
1817
1817
|
return r.dispose;
|
|
1818
1818
|
}
|
|
1819
|
-
function
|
|
1819
|
+
function la(e, { inFlight: t, prepare: n }) {
|
|
1820
1820
|
if (t != null && t.current) {
|
|
1821
1821
|
n();
|
|
1822
1822
|
return;
|
|
@@ -1824,8 +1824,8 @@ function aa(e, { inFlight: t, prepare: n }) {
|
|
|
1824
1824
|
let r = e.style.transition;
|
|
1825
1825
|
e.style.transition = "none", n(), e.offsetHeight, e.style.transition = r;
|
|
1826
1826
|
}
|
|
1827
|
-
function
|
|
1828
|
-
let n =
|
|
1827
|
+
function vn(e, t) {
|
|
1828
|
+
let n = b([]), r = L(e);
|
|
1829
1829
|
M(() => {
|
|
1830
1830
|
let o = [...n.current];
|
|
1831
1831
|
for (let [i, a] of t.entries()) if (n.current[i] !== a) {
|
|
@@ -1840,53 +1840,53 @@ var G = ((e) => (e[e.Open = 1] = "Open", e[e.Closed = 2] = "Closed", e[e.Closing
|
|
|
1840
1840
|
function wt() {
|
|
1841
1841
|
return W(gt);
|
|
1842
1842
|
}
|
|
1843
|
-
function
|
|
1843
|
+
function sa({ value: e, children: t }) {
|
|
1844
1844
|
return C.createElement(gt.Provider, { value: e }, t);
|
|
1845
1845
|
}
|
|
1846
|
-
function
|
|
1846
|
+
function ca({ children: e }) {
|
|
1847
1847
|
return C.createElement(gt.Provider, { value: null }, e);
|
|
1848
1848
|
}
|
|
1849
|
-
function
|
|
1849
|
+
function ua(e) {
|
|
1850
1850
|
function t() {
|
|
1851
1851
|
document.readyState !== "loading" && (e(), document.removeEventListener("DOMContentLoaded", t));
|
|
1852
1852
|
}
|
|
1853
1853
|
typeof window < "u" && typeof document < "u" && (document.addEventListener("DOMContentLoaded", t), t());
|
|
1854
1854
|
}
|
|
1855
1855
|
let ce = [];
|
|
1856
|
-
|
|
1856
|
+
ua(() => {
|
|
1857
1857
|
function e(t) {
|
|
1858
1858
|
t.target instanceof HTMLElement && t.target !== document.body && ce[0] !== t.target && (ce.unshift(t.target), ce = ce.filter((n) => n != null && n.isConnected), ce.splice(10));
|
|
1859
1859
|
}
|
|
1860
1860
|
window.addEventListener("click", e, { capture: !0 }), window.addEventListener("mousedown", e, { capture: !0 }), window.addEventListener("focus", e, { capture: !0 }), document.body.addEventListener("click", e, { capture: !0 }), document.body.addEventListener("mousedown", e, { capture: !0 }), document.body.addEventListener("focus", e, { capture: !0 });
|
|
1861
1861
|
});
|
|
1862
|
-
function
|
|
1863
|
-
let t =
|
|
1862
|
+
function Jr(e) {
|
|
1863
|
+
let t = L(e), n = b(!1);
|
|
1864
1864
|
M(() => (n.current = !1, () => {
|
|
1865
1865
|
n.current = !0, mt(() => {
|
|
1866
1866
|
n.current && t();
|
|
1867
1867
|
});
|
|
1868
1868
|
}), [t]);
|
|
1869
1869
|
}
|
|
1870
|
-
function
|
|
1870
|
+
function da() {
|
|
1871
1871
|
let e = typeof document > "u";
|
|
1872
1872
|
return "useSyncExternalStore" in Wn ? ((t) => t.useSyncExternalStore)(Wn)(() => () => {
|
|
1873
1873
|
}, () => !1, () => !e) : !1;
|
|
1874
1874
|
}
|
|
1875
1875
|
function Qe() {
|
|
1876
|
-
let e =
|
|
1876
|
+
let e = da(), [t, n] = T(ge.isHandoffComplete);
|
|
1877
1877
|
return t && ge.isHandoffComplete === !1 && n(!1), M(() => {
|
|
1878
1878
|
t !== !0 && n(!0);
|
|
1879
1879
|
}, [t]), M(() => ge.handoff(), []), e ? !1 : t;
|
|
1880
1880
|
}
|
|
1881
|
-
let
|
|
1882
|
-
function
|
|
1883
|
-
return W(
|
|
1881
|
+
let eo = q(!1);
|
|
1882
|
+
function fa() {
|
|
1883
|
+
return W(eo);
|
|
1884
1884
|
}
|
|
1885
1885
|
function Yn(e) {
|
|
1886
|
-
return C.createElement(
|
|
1886
|
+
return C.createElement(eo.Provider, { value: e.force }, e.children);
|
|
1887
1887
|
}
|
|
1888
|
-
function
|
|
1889
|
-
let t =
|
|
1888
|
+
function pa(e) {
|
|
1889
|
+
let t = fa(), n = W(no), r = Xe(e), [o, i] = T(() => {
|
|
1890
1890
|
var a;
|
|
1891
1891
|
if (!t && n !== null) return (a = n.current) != null ? a : null;
|
|
1892
1892
|
if (ge.isServer) return null;
|
|
@@ -1902,52 +1902,52 @@ function fa(e) {
|
|
|
1902
1902
|
t || n !== null && i(n.current);
|
|
1903
1903
|
}, [n, i, t]), o;
|
|
1904
1904
|
}
|
|
1905
|
-
let
|
|
1906
|
-
let n = e, r =
|
|
1905
|
+
let to = N, ha = j(function(e, t) {
|
|
1906
|
+
let n = e, r = b(null), o = J(Ti((d) => {
|
|
1907
1907
|
r.current = d;
|
|
1908
|
-
}), t), i = Xe(r), a =
|
|
1908
|
+
}), t), i = Xe(r), a = pa(r), [l] = T(() => {
|
|
1909
1909
|
var d;
|
|
1910
1910
|
return ge.isServer ? null : (d = i == null ? void 0 : i.createElement("div")) != null ? d : null;
|
|
1911
1911
|
}), s = W(Xt), u = Qe();
|
|
1912
|
-
return
|
|
1912
|
+
return z(() => {
|
|
1913
1913
|
!a || !l || a.contains(l) || (l.setAttribute("data-headlessui-portal", ""), a.appendChild(l));
|
|
1914
|
-
}, [a, l]),
|
|
1914
|
+
}, [a, l]), z(() => {
|
|
1915
1915
|
if (l && s) return s.register(l);
|
|
1916
|
-
}, [s, l]),
|
|
1916
|
+
}, [s, l]), Jr(() => {
|
|
1917
1917
|
var d;
|
|
1918
1918
|
!a || !l || (l instanceof Node && a.contains(l) && a.removeChild(l), a.childNodes.length <= 0 && ((d = a.parentElement) == null || d.removeChild(a)));
|
|
1919
|
-
}), u ? !a || !l ? null :
|
|
1919
|
+
}), u ? !a || !l ? null : ht(Y({ ourProps: { ref: o }, theirProps: n, slot: {}, defaultTag: to, name: "Portal" }), l) : null;
|
|
1920
1920
|
});
|
|
1921
1921
|
function _a(e, t) {
|
|
1922
|
-
let n =
|
|
1923
|
-
return r ? C.createElement(
|
|
1922
|
+
let n = J(t), { enabled: r = !0, ...o } = e;
|
|
1923
|
+
return r ? C.createElement(ha, { ...o, ref: n }) : Y({ ourProps: { ref: n }, theirProps: o, slot: {}, defaultTag: to, name: "Portal" });
|
|
1924
1924
|
}
|
|
1925
|
-
let va =
|
|
1926
|
-
function
|
|
1927
|
-
let { target: n, ...r } = e, o = { ref:
|
|
1928
|
-
return C.createElement(
|
|
1925
|
+
let va = N, no = q(null);
|
|
1926
|
+
function ma(e, t) {
|
|
1927
|
+
let { target: n, ...r } = e, o = { ref: J(t) };
|
|
1928
|
+
return C.createElement(no.Provider, { value: n }, Y({ ourProps: o, theirProps: r, defaultTag: va, name: "Popover.Group" }));
|
|
1929
1929
|
}
|
|
1930
1930
|
let Xt = q(null);
|
|
1931
|
-
function
|
|
1932
|
-
let e = W(Xt), t =
|
|
1931
|
+
function ya() {
|
|
1932
|
+
let e = W(Xt), t = b([]), n = L((i) => (t.current.push(i), e && e.register(i), () => r(i))), r = L((i) => {
|
|
1933
1933
|
let a = t.current.indexOf(i);
|
|
1934
1934
|
a !== -1 && t.current.splice(a, 1), e && e.unregister(i);
|
|
1935
|
-
}), o =
|
|
1936
|
-
return [t,
|
|
1935
|
+
}), o = x(() => ({ register: n, unregister: r, portals: t }), [n, r, t]);
|
|
1936
|
+
return [t, x(() => function({ children: i }) {
|
|
1937
1937
|
return C.createElement(Xt.Provider, { value: o }, i);
|
|
1938
1938
|
}, [o])];
|
|
1939
1939
|
}
|
|
1940
|
-
let
|
|
1941
|
-
function
|
|
1940
|
+
let ga = j(_a), ro = j(ma), wa = Object.assign(ga, { Group: ro });
|
|
1941
|
+
function ba(e, t = typeof document < "u" ? document.defaultView : null, n) {
|
|
1942
1942
|
let r = He(e, "escape");
|
|
1943
|
-
|
|
1944
|
-
r && (o.defaultPrevented || o.key ===
|
|
1943
|
+
Qr(t, "keydown", (o) => {
|
|
1944
|
+
r && (o.defaultPrevented || o.key === Br.Escape && n(o));
|
|
1945
1945
|
});
|
|
1946
1946
|
}
|
|
1947
|
-
function
|
|
1947
|
+
function $a() {
|
|
1948
1948
|
var e;
|
|
1949
|
-
let [t] =
|
|
1950
|
-
return
|
|
1949
|
+
let [t] = T(() => typeof window < "u" && typeof window.matchMedia == "function" ? window.matchMedia("(pointer: coarse)") : null), [n, r] = T((e = t == null ? void 0 : t.matches) != null ? e : !1);
|
|
1950
|
+
return z(() => {
|
|
1951
1951
|
if (!t) return;
|
|
1952
1952
|
function o(i) {
|
|
1953
1953
|
r(i.matches);
|
|
@@ -1955,97 +1955,97 @@ function ba() {
|
|
|
1955
1955
|
return t.addEventListener("change", o), () => t.removeEventListener("change", o);
|
|
1956
1956
|
}, [t]), n;
|
|
1957
1957
|
}
|
|
1958
|
-
function
|
|
1958
|
+
function Ea({ defaultContainers: e = [], portals: t, mainTreeNodeRef: n } = {}) {
|
|
1959
1959
|
var r;
|
|
1960
|
-
let o =
|
|
1960
|
+
let o = b((r = n == null ? void 0 : n.current) != null ? r : null), i = Xe(o), a = L(() => {
|
|
1961
1961
|
var l, s, u;
|
|
1962
1962
|
let d = [];
|
|
1963
1963
|
for (let c of e) c !== null && (c instanceof HTMLElement ? d.push(c) : "current" in c && c.current instanceof HTMLElement && d.push(c.current));
|
|
1964
1964
|
if (t != null && t.current) for (let c of t.current) d.push(c);
|
|
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((
|
|
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((h) => c.contains(h)) || d.push(c));
|
|
1966
1966
|
return d;
|
|
1967
1967
|
});
|
|
1968
|
-
return { resolveContainers: a, contains:
|
|
1968
|
+
return { resolveContainers: a, contains: L((l) => a().some((s) => s.contains(l))), mainTreeNodeRef: o, MainTreeNode: x(() => function() {
|
|
1969
1969
|
return n != null ? null : C.createElement(Yt, { features: dt.Hidden, ref: o });
|
|
1970
1970
|
}, [o, n]) };
|
|
1971
1971
|
}
|
|
1972
1972
|
function mn() {
|
|
1973
|
-
let e =
|
|
1974
|
-
return
|
|
1973
|
+
let e = b(!1);
|
|
1974
|
+
return z(() => (e.current = !0, () => {
|
|
1975
1975
|
e.current = !1;
|
|
1976
1976
|
}), []), e;
|
|
1977
1977
|
}
|
|
1978
1978
|
var Ve = ((e) => (e[e.Forwards = 0] = "Forwards", e[e.Backwards = 1] = "Backwards", e))(Ve || {});
|
|
1979
|
-
function
|
|
1980
|
-
let e =
|
|
1981
|
-
return
|
|
1979
|
+
function Ca() {
|
|
1980
|
+
let e = b(0);
|
|
1981
|
+
return Xr(!0, "keydown", (t) => {
|
|
1982
1982
|
t.key === "Tab" && (e.current = t.shiftKey ? 1 : 0);
|
|
1983
1983
|
}, !0), e;
|
|
1984
1984
|
}
|
|
1985
|
-
function
|
|
1985
|
+
function oo(e) {
|
|
1986
1986
|
if (!e) return /* @__PURE__ */ new Set();
|
|
1987
1987
|
if (typeof e == "function") return new Set(e());
|
|
1988
1988
|
let t = /* @__PURE__ */ new Set();
|
|
1989
1989
|
for (let n of e.current) n.current instanceof HTMLElement && t.add(n.current);
|
|
1990
1990
|
return t;
|
|
1991
1991
|
}
|
|
1992
|
-
let
|
|
1993
|
-
var
|
|
1994
|
-
function
|
|
1995
|
-
let n =
|
|
1992
|
+
let Ta = "div";
|
|
1993
|
+
var ve = ((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))(ve || {});
|
|
1994
|
+
function ka(e, t) {
|
|
1995
|
+
let n = b(null), r = J(n, t), { initialFocus: o, initialFocusFallback: i, containers: a, features: l = 15, ...s } = e;
|
|
1996
1996
|
Qe() || (l = 0);
|
|
1997
1997
|
let u = Xe(n);
|
|
1998
|
-
|
|
1999
|
-
let d =
|
|
2000
|
-
|
|
2001
|
-
let c =
|
|
2002
|
-
let
|
|
2003
|
-
|
|
1998
|
+
Pa(l, { ownerDocument: u });
|
|
1999
|
+
let d = Ma(l, { ownerDocument: u, container: n, initialFocus: o, initialFocusFallback: i });
|
|
2000
|
+
La(l, { ownerDocument: u, container: n, containers: a, previousActiveElement: d });
|
|
2001
|
+
let c = Ca(), h = L((y) => {
|
|
2002
|
+
let $ = n.current;
|
|
2003
|
+
$ && ((E) => E())(() => {
|
|
2004
2004
|
de(c.current, { [Ve.Forwards]: () => {
|
|
2005
|
-
Be(
|
|
2005
|
+
Be($, te.First, { skipElements: [y.relatedTarget, i] });
|
|
2006
2006
|
}, [Ve.Backwards]: () => {
|
|
2007
|
-
Be(
|
|
2007
|
+
Be($, te.Last, { skipElements: [y.relatedTarget, i] });
|
|
2008
2008
|
} });
|
|
2009
2009
|
});
|
|
2010
|
-
}), f = He(!!(l & 2), "focus-trap#tab-lock"),
|
|
2011
|
-
|
|
2012
|
-
|
|
2010
|
+
}), f = He(!!(l & 2), "focus-trap#tab-lock"), _ = yt(), v = b(!1), m = { ref: r, onKeyDown(y) {
|
|
2011
|
+
y.key == "Tab" && (v.current = !0, _.requestAnimationFrame(() => {
|
|
2012
|
+
v.current = !1;
|
|
2013
2013
|
}));
|
|
2014
|
-
}, onBlur(
|
|
2014
|
+
}, onBlur(y) {
|
|
2015
2015
|
if (!(l & 4)) return;
|
|
2016
|
-
let
|
|
2017
|
-
n.current instanceof HTMLElement &&
|
|
2018
|
-
let
|
|
2019
|
-
|
|
2016
|
+
let $ = oo(a);
|
|
2017
|
+
n.current instanceof HTMLElement && $.add(n.current);
|
|
2018
|
+
let E = y.relatedTarget;
|
|
2019
|
+
E instanceof HTMLElement && E.dataset.headlessuiFocusGuard !== "true" && (io($, E) || (v.current ? Be(n.current, de(c.current, { [Ve.Forwards]: () => te.Next, [Ve.Backwards]: () => te.Previous }) | te.WrapAround, { relativeTo: y.target }) : y.target instanceof HTMLElement && oe(y.target)));
|
|
2020
2020
|
} };
|
|
2021
|
-
return C.createElement(C.Fragment, null, f && C.createElement(Yt, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus:
|
|
2021
|
+
return C.createElement(C.Fragment, null, f && C.createElement(Yt, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: h, features: dt.Focusable }), Y({ ourProps: m, theirProps: s, defaultTag: Ta, name: "FocusTrap" }), f && C.createElement(Yt, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: h, features: dt.Focusable }));
|
|
2022
2022
|
}
|
|
2023
|
-
let
|
|
2024
|
-
function
|
|
2025
|
-
let t =
|
|
2026
|
-
return
|
|
2023
|
+
let Fa = j(ka), xa = Object.assign(Fa, { features: ve });
|
|
2024
|
+
function Sa(e = !0) {
|
|
2025
|
+
let t = b(ce.slice());
|
|
2026
|
+
return vn(([n], [r]) => {
|
|
2027
2027
|
r === !0 && n === !1 && mt(() => {
|
|
2028
2028
|
t.current.splice(0);
|
|
2029
2029
|
}), r === !1 && n === !0 && (t.current = ce.slice());
|
|
2030
|
-
}, [e, ce, t]),
|
|
2030
|
+
}, [e, ce, t]), L(() => {
|
|
2031
2031
|
var n;
|
|
2032
2032
|
return (n = t.current.find((r) => r != null && r.isConnected)) != null ? n : null;
|
|
2033
2033
|
});
|
|
2034
2034
|
}
|
|
2035
|
-
function
|
|
2036
|
-
let n = !!(e & 8), r =
|
|
2037
|
-
|
|
2038
|
-
n || (t == null ? void 0 : t.activeElement) === (t == null ? void 0 : t.body) &&
|
|
2039
|
-
}, [n]),
|
|
2040
|
-
n &&
|
|
2035
|
+
function Pa(e, { ownerDocument: t }) {
|
|
2036
|
+
let n = !!(e & 8), r = Sa(n);
|
|
2037
|
+
vn(() => {
|
|
2038
|
+
n || (t == null ? void 0 : t.activeElement) === (t == null ? void 0 : t.body) && oe(r());
|
|
2039
|
+
}, [n]), Jr(() => {
|
|
2040
|
+
n && oe(r());
|
|
2041
2041
|
});
|
|
2042
2042
|
}
|
|
2043
|
-
function
|
|
2044
|
-
let i =
|
|
2045
|
-
return
|
|
2043
|
+
function Ma(e, { ownerDocument: t, container: n, initialFocus: r, initialFocusFallback: o }) {
|
|
2044
|
+
let i = b(null), a = He(!!(e & 1), "focus-trap#initial-focus"), l = mn();
|
|
2045
|
+
return vn(() => {
|
|
2046
2046
|
if (e === 0) return;
|
|
2047
2047
|
if (!a) {
|
|
2048
|
-
o != null && o.current &&
|
|
2048
|
+
o != null && o.current && oe(o.current);
|
|
2049
2049
|
return;
|
|
2050
2050
|
}
|
|
2051
2051
|
let s = n.current;
|
|
@@ -2061,47 +2061,47 @@ function Pa(e, { ownerDocument: t, container: n, initialFocus: r, initialFocusFa
|
|
|
2061
2061
|
i.current = u;
|
|
2062
2062
|
return;
|
|
2063
2063
|
}
|
|
2064
|
-
if (r != null && r.current)
|
|
2064
|
+
if (r != null && r.current) oe(r.current);
|
|
2065
2065
|
else {
|
|
2066
2066
|
if (e & 16) {
|
|
2067
|
-
if (Be(s,
|
|
2068
|
-
} else if (Be(s,
|
|
2069
|
-
if (o != null && o.current && (
|
|
2067
|
+
if (Be(s, te.First | te.AutoFocus) !== Zt.Error) return;
|
|
2068
|
+
} else if (Be(s, te.First) !== Zt.Error) return;
|
|
2069
|
+
if (o != null && o.current && (oe(o.current), (t == null ? void 0 : t.activeElement) === o.current)) return;
|
|
2070
2070
|
console.warn("There are no focusable elements inside the <FocusTrap />");
|
|
2071
2071
|
}
|
|
2072
2072
|
i.current = t == null ? void 0 : t.activeElement;
|
|
2073
2073
|
});
|
|
2074
2074
|
}, [o, a, e]), i;
|
|
2075
2075
|
}
|
|
2076
|
-
function
|
|
2076
|
+
function La(e, { ownerDocument: t, container: n, containers: r, previousActiveElement: o }) {
|
|
2077
2077
|
let i = mn(), a = !!(e & 4);
|
|
2078
|
-
|
|
2078
|
+
Qr(t == null ? void 0 : t.defaultView, "focus", (l) => {
|
|
2079
2079
|
if (!a || !i.current) return;
|
|
2080
|
-
let s =
|
|
2080
|
+
let s = oo(r);
|
|
2081
2081
|
n.current instanceof HTMLElement && s.add(n.current);
|
|
2082
2082
|
let u = o.current;
|
|
2083
2083
|
if (!u) return;
|
|
2084
2084
|
let d = l.target;
|
|
2085
|
-
d && d instanceof HTMLElement ?
|
|
2085
|
+
d && d instanceof HTMLElement ? io(s, d) ? (o.current = d, oe(d)) : (l.preventDefault(), l.stopPropagation(), oe(u)) : oe(o.current);
|
|
2086
2086
|
}, !0);
|
|
2087
2087
|
}
|
|
2088
|
-
function
|
|
2088
|
+
function io(e, t) {
|
|
2089
2089
|
for (let n of e) if (n.contains(t)) return !0;
|
|
2090
2090
|
return !1;
|
|
2091
2091
|
}
|
|
2092
|
-
function
|
|
2092
|
+
function ao(e) {
|
|
2093
2093
|
var t;
|
|
2094
|
-
return !!(e.enter || e.enterFrom || e.enterTo || e.leave || e.leaveFrom || e.leaveTo) || ((t = e.as) != null ? t :
|
|
2094
|
+
return !!(e.enter || e.enterFrom || e.enterTo || e.leave || e.leaveFrom || e.leaveTo) || ((t = e.as) != null ? t : so) !== N || C.Children.count(e.children) === 1;
|
|
2095
2095
|
}
|
|
2096
2096
|
let bt = q(null);
|
|
2097
2097
|
bt.displayName = "TransitionContext";
|
|
2098
|
-
var
|
|
2099
|
-
function
|
|
2098
|
+
var Na = ((e) => (e.Visible = "visible", e.Hidden = "hidden", e))(Na || {});
|
|
2099
|
+
function Ha() {
|
|
2100
2100
|
let e = W(bt);
|
|
2101
2101
|
if (e === null) throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");
|
|
2102
2102
|
return e;
|
|
2103
2103
|
}
|
|
2104
|
-
function
|
|
2104
|
+
function Da() {
|
|
2105
2105
|
let e = W($t);
|
|
2106
2106
|
if (e === null) throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");
|
|
2107
2107
|
return e;
|
|
@@ -2111,102 +2111,102 @@ $t.displayName = "NestingContext";
|
|
|
2111
2111
|
function Et(e) {
|
|
2112
2112
|
return "children" in e ? Et(e.children) : e.current.filter(({ el: t }) => t.current !== null).filter(({ state: t }) => t === "visible").length > 0;
|
|
2113
2113
|
}
|
|
2114
|
-
function
|
|
2115
|
-
let n = Te(e), r =
|
|
2116
|
-
let
|
|
2117
|
-
|
|
2118
|
-
r.current.splice(
|
|
2114
|
+
function lo(e, t) {
|
|
2115
|
+
let n = Te(e), r = b([]), o = mn(), i = yt(), a = L((f, _ = ue.Hidden) => {
|
|
2116
|
+
let v = r.current.findIndex(({ el: m }) => m === f);
|
|
2117
|
+
v !== -1 && (de(_, { [ue.Unmount]() {
|
|
2118
|
+
r.current.splice(v, 1);
|
|
2119
2119
|
}, [ue.Hidden]() {
|
|
2120
|
-
r.current[
|
|
2120
|
+
r.current[v].state = "hidden";
|
|
2121
2121
|
} }), i.microTask(() => {
|
|
2122
|
-
var
|
|
2123
|
-
!Et(r) && o.current && ((
|
|
2122
|
+
var m;
|
|
2123
|
+
!Et(r) && o.current && ((m = n.current) == null || m.call(n));
|
|
2124
2124
|
}));
|
|
2125
|
-
}), l =
|
|
2126
|
-
let
|
|
2127
|
-
return
|
|
2128
|
-
}), s =
|
|
2129
|
-
s.current.splice(0), t && (t.chains.current[
|
|
2130
|
-
s.current.push(
|
|
2131
|
-
})]), t == null || t.chains.current[
|
|
2132
|
-
Promise.all(d.current[
|
|
2133
|
-
})]),
|
|
2134
|
-
}),
|
|
2135
|
-
Promise.all(d.current[
|
|
2136
|
-
var
|
|
2137
|
-
(
|
|
2138
|
-
}).then(() =>
|
|
2125
|
+
}), l = L((f) => {
|
|
2126
|
+
let _ = r.current.find(({ el: v }) => v === f);
|
|
2127
|
+
return _ ? _.state !== "visible" && (_.state = "visible") : r.current.push({ el: f, state: "visible" }), () => a(f, ue.Unmount);
|
|
2128
|
+
}), s = b([]), u = b(Promise.resolve()), d = b({ enter: [], leave: [] }), c = L((f, _, v) => {
|
|
2129
|
+
s.current.splice(0), t && (t.chains.current[_] = t.chains.current[_].filter(([m]) => m !== f)), t == null || t.chains.current[_].push([f, new Promise((m) => {
|
|
2130
|
+
s.current.push(m);
|
|
2131
|
+
})]), t == null || t.chains.current[_].push([f, new Promise((m) => {
|
|
2132
|
+
Promise.all(d.current[_].map(([y, $]) => $)).then(() => m());
|
|
2133
|
+
})]), _ === "enter" ? u.current = u.current.then(() => t == null ? void 0 : t.wait.current).then(() => v(_)) : v(_);
|
|
2134
|
+
}), h = L((f, _, v) => {
|
|
2135
|
+
Promise.all(d.current[_].splice(0).map(([m, y]) => y)).then(() => {
|
|
2136
|
+
var m;
|
|
2137
|
+
(m = s.current.shift()) == null || m();
|
|
2138
|
+
}).then(() => v(_));
|
|
2139
2139
|
});
|
|
2140
|
-
return
|
|
2140
|
+
return x(() => ({ children: r, register: l, unregister: a, onStart: c, onStop: h, wait: u, chains: d }), [l, a, r, c, h, d, u]);
|
|
2141
2141
|
}
|
|
2142
|
-
let
|
|
2143
|
-
function
|
|
2142
|
+
let so = N, co = ut.RenderStrategy;
|
|
2143
|
+
function Aa(e, t) {
|
|
2144
2144
|
var n, r;
|
|
2145
|
-
let { transition: o = !0, beforeEnter: i, afterEnter: a, beforeLeave: l, afterLeave: s, enter: u, enterFrom: d, enterTo: c, entered:
|
|
2146
|
-
|
|
2147
|
-
if (g === ue.Hidden &&
|
|
2148
|
-
if (
|
|
2149
|
-
|
|
2145
|
+
let { transition: o = !0, beforeEnter: i, afterEnter: a, beforeLeave: l, afterLeave: s, enter: u, enterFrom: d, enterTo: c, entered: h, leave: f, leaveFrom: _, leaveTo: v, ...m } = e, y = b(null), $ = ao(e), E = J(...$ ? [y, t] : t === null ? [] : [t]), g = (n = m.unmount) == null || n ? ue.Unmount : ue.Hidden, { show: w, appear: F, initial: H } = Ha(), [O, V] = T(w ? "visible" : "hidden"), S = Da(), { register: I, unregister: Q } = S;
|
|
2146
|
+
z(() => I(y), [I, y]), z(() => {
|
|
2147
|
+
if (g === ue.Hidden && y.current) {
|
|
2148
|
+
if (w && O !== "visible") {
|
|
2149
|
+
V("visible");
|
|
2150
2150
|
return;
|
|
2151
2151
|
}
|
|
2152
|
-
return de(O, { hidden: () =>
|
|
2152
|
+
return de(O, { hidden: () => Q(y), visible: () => I(y) });
|
|
2153
2153
|
}
|
|
2154
|
-
}, [O,
|
|
2154
|
+
}, [O, y, I, Q, w, g]);
|
|
2155
2155
|
let De = Qe();
|
|
2156
|
-
|
|
2157
|
-
if (
|
|
2158
|
-
}, [
|
|
2159
|
-
let Tt =
|
|
2160
|
-
Fe.current || (
|
|
2161
|
-
},
|
|
2156
|
+
z(() => {
|
|
2157
|
+
if ($ && De && O === "visible" && y.current === null) throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?");
|
|
2158
|
+
}, [y, O, De, $]);
|
|
2159
|
+
let Tt = H && !F, Je = F && w && H, Fe = b(!1), xe = lo(() => {
|
|
2160
|
+
Fe.current || (V("hidden"), Q(y));
|
|
2161
|
+
}, S), et = L((kt) => {
|
|
2162
2162
|
Fe.current = !0;
|
|
2163
2163
|
let tt = kt ? "enter" : "leave";
|
|
2164
|
-
xe.onStart(
|
|
2164
|
+
xe.onStart(y, tt, (Oe) => {
|
|
2165
2165
|
Oe === "enter" ? i == null || i() : Oe === "leave" && (l == null || l());
|
|
2166
2166
|
});
|
|
2167
|
-
}), se =
|
|
2167
|
+
}), se = L((kt) => {
|
|
2168
2168
|
let tt = kt ? "enter" : "leave";
|
|
2169
|
-
Fe.current = !1, xe.onStop(
|
|
2169
|
+
Fe.current = !1, xe.onStop(y, tt, (Oe) => {
|
|
2170
2170
|
Oe === "enter" ? a == null || a() : Oe === "leave" && (s == null || s());
|
|
2171
|
-
}), tt === "leave" && !Et(xe) && (
|
|
2171
|
+
}), tt === "leave" && !Et(xe) && (V("hidden"), Q(y));
|
|
2172
2172
|
});
|
|
2173
2173
|
M(() => {
|
|
2174
|
-
|
|
2175
|
-
}, [
|
|
2176
|
-
let
|
|
2177
|
-
return O === "visible" && (Ae |= G.Open), O === "hidden" && (Ae |= G.Closed),
|
|
2174
|
+
$ && o || (et(w), se(w));
|
|
2175
|
+
}, [w, $, o]);
|
|
2176
|
+
let U = !(!o || !$ || !De || Tt), [, R] = oa(U, y, w, { start: et, end: se }), wo = he({ ref: E, className: ((r = qt(m.className, Je && u, Je && d, R.enter && u, R.enter && R.closed && d, R.enter && !R.closed && c, R.leave && f, R.leave && !R.closed && _, R.leave && R.closed && v, !R.transition && w && h)) == null ? void 0 : r.trim()) || void 0, ...ra(R) }), Ae = 0;
|
|
2177
|
+
return O === "visible" && (Ae |= G.Open), O === "hidden" && (Ae |= G.Closed), R.enter && (Ae |= G.Opening), R.leave && (Ae |= G.Closing), C.createElement($t.Provider, { value: xe }, C.createElement(sa, { value: Ae }, Y({ ourProps: wo, theirProps: m, defaultTag: so, features: co, visible: O === "visible", name: "Transition.Child" })));
|
|
2178
2178
|
}
|
|
2179
|
-
function
|
|
2180
|
-
let { show: n, appear: r = !1, unmount: o = !0, ...i } = e, a =
|
|
2179
|
+
function Oa(e, t) {
|
|
2180
|
+
let { show: n, appear: r = !1, unmount: o = !0, ...i } = e, a = b(null), l = ao(e), s = J(...l ? [a, t] : t === null ? [] : [t]);
|
|
2181
2181
|
Qe();
|
|
2182
2182
|
let u = wt();
|
|
2183
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.");
|
|
2184
|
-
let [d, c] =
|
|
2184
|
+
let [d, c] = T(n ? "visible" : "hidden"), h = lo(() => {
|
|
2185
2185
|
n || c("hidden");
|
|
2186
|
-
}), [f,
|
|
2187
|
-
|
|
2188
|
-
f !== !1 &&
|
|
2189
|
-
}, [
|
|
2190
|
-
let
|
|
2191
|
-
|
|
2192
|
-
n ? c("visible") : !Et(
|
|
2193
|
-
}, [n,
|
|
2194
|
-
let
|
|
2186
|
+
}), [f, _] = T(!0), v = b([n]);
|
|
2187
|
+
z(() => {
|
|
2188
|
+
f !== !1 && v.current[v.current.length - 1] !== n && (v.current.push(n), _(!1));
|
|
2189
|
+
}, [v, n]);
|
|
2190
|
+
let m = x(() => ({ show: n, appear: r, initial: f }), [n, r, f]);
|
|
2191
|
+
Kr(n, a, () => c("hidden")), z(() => {
|
|
2192
|
+
n ? c("visible") : !Et(h) && a.current !== null && c("hidden");
|
|
2193
|
+
}, [n, h]);
|
|
2194
|
+
let y = { unmount: o }, $ = L(() => {
|
|
2195
2195
|
var g;
|
|
2196
|
-
f &&
|
|
2197
|
-
}),
|
|
2196
|
+
f && _(!1), (g = e.beforeEnter) == null || g.call(e);
|
|
2197
|
+
}), E = L(() => {
|
|
2198
2198
|
var g;
|
|
2199
|
-
f &&
|
|
2199
|
+
f && _(!1), (g = e.beforeLeave) == null || g.call(e);
|
|
2200
2200
|
});
|
|
2201
|
-
return C.createElement($t.Provider, { value:
|
|
2201
|
+
return C.createElement($t.Provider, { value: h }, C.createElement(bt.Provider, { value: m }, Y({ ourProps: { ...y, as: N, children: C.createElement(uo, { ref: s, ...y, ...i, beforeEnter: $, beforeLeave: E }) }, theirProps: {}, defaultTag: N, features: co, visible: d === "visible", name: "Transition" })));
|
|
2202
2202
|
}
|
|
2203
|
-
function
|
|
2203
|
+
function Ia(e, t) {
|
|
2204
2204
|
let n = W(bt) !== null, r = wt() !== null;
|
|
2205
|
-
return C.createElement(C.Fragment, null, !n && r ? C.createElement(Qt, { ref: t, ...e }) : C.createElement(
|
|
2205
|
+
return C.createElement(C.Fragment, null, !n && r ? C.createElement(Qt, { ref: t, ...e }) : C.createElement(uo, { ref: t, ...e }));
|
|
2206
2206
|
}
|
|
2207
|
-
let Qt =
|
|
2208
|
-
var
|
|
2209
|
-
let
|
|
2207
|
+
let Qt = j(Oa), uo = j(Aa), yn = j(Ia), ie = Object.assign(Qt, { Child: yn, Root: Qt });
|
|
2208
|
+
var Ra = ((e) => (e[e.Open = 0] = "Open", e[e.Closed = 1] = "Closed", e))(Ra || {}), Va = ((e) => (e[e.SetTitleId = 0] = "SetTitleId", e))(Va || {});
|
|
2209
|
+
let Ua = { 0(e, t) {
|
|
2210
2210
|
return e.titleId === t.id ? e : { ...e, titleId: t.id };
|
|
2211
2211
|
} }, gn = q(null);
|
|
2212
2212
|
gn.displayName = "DialogContext";
|
|
@@ -2218,74 +2218,74 @@ function Ct(e) {
|
|
|
2218
2218
|
}
|
|
2219
2219
|
return t;
|
|
2220
2220
|
}
|
|
2221
|
-
function
|
|
2222
|
-
return de(t.type,
|
|
2221
|
+
function Wa(e, t) {
|
|
2222
|
+
return de(t.type, Ua, e, t);
|
|
2223
2223
|
}
|
|
2224
|
-
let Kn =
|
|
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 =
|
|
2224
|
+
let Kn = j(function(e, t) {
|
|
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 = b(!1);
|
|
2226
2226
|
l = function() {
|
|
2227
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");
|
|
2228
2228
|
}();
|
|
2229
|
-
let
|
|
2230
|
-
o === void 0 &&
|
|
2231
|
-
let f =
|
|
2232
|
-
var
|
|
2233
|
-
return (
|
|
2234
|
-
} }, { resolveContainers:
|
|
2235
|
-
|
|
2236
|
-
var
|
|
2237
|
-
return [(
|
|
2238
|
-
}), disallowed:
|
|
2239
|
-
var
|
|
2240
|
-
return [(
|
|
2241
|
-
}) }),
|
|
2242
|
-
|
|
2243
|
-
}),
|
|
2244
|
-
|
|
2245
|
-
}),
|
|
2246
|
-
let [De, Tt] =
|
|
2247
|
-
return
|
|
2248
|
-
}),
|
|
2249
|
-
function
|
|
2229
|
+
let h = wt();
|
|
2230
|
+
o === void 0 && h !== null && (o = (h & G.Open) === G.Open);
|
|
2231
|
+
let f = b(null), _ = J(f, t), v = Xe(f), m = o ? 0 : 1, [y, $] = Ke(Wa, { titleId: null, descriptionId: null, panelRef: en() }), E = L(() => i(!1)), g = L((U) => $({ type: 0, id: U })), w = Qe() ? m === 0 : !1, [F, H] = ya(), O = { get current() {
|
|
2232
|
+
var U;
|
|
2233
|
+
return (U = y.panelRef.current) != null ? U : f.current;
|
|
2234
|
+
} }, { resolveContainers: V, mainTreeNodeRef: S, MainTreeNode: I } = Ea({ portals: F, defaultContainers: [O] }), Q = h !== null ? (h & G.Closing) === G.Closing : !1;
|
|
2235
|
+
Di(u || Q ? !1 : w, { allowed: L(() => {
|
|
2236
|
+
var U, R;
|
|
2237
|
+
return [(R = (U = f.current) == null ? void 0 : U.closest("[data-headlessui-portal]")) != null ? R : null];
|
|
2238
|
+
}), disallowed: L(() => {
|
|
2239
|
+
var U, R;
|
|
2240
|
+
return [(R = (U = S.current) == null ? void 0 : U.closest("body > *:not(#headlessui-portal-root)")) != null ? R : null];
|
|
2241
|
+
}) }), Yi(w, V, (U) => {
|
|
2242
|
+
U.preventDefault(), E();
|
|
2243
|
+
}), ba(w, v == null ? void 0 : v.defaultView, (U) => {
|
|
2244
|
+
U.preventDefault(), U.stopPropagation(), document.activeElement && "blur" in document.activeElement && typeof document.activeElement.blur == "function" && document.activeElement.blur(), E();
|
|
2245
|
+
}), Ji(u || Q ? !1 : w, v, V), Kr(w, f, E);
|
|
2246
|
+
let [De, Tt] = ki(), Je = x(() => [{ dialogState: m, close: E, setTitleId: g }, y], [m, y, E, g]), Fe = x(() => ({ open: m === 0 }), [m]), xe = { ref: _, id: r, role: l, tabIndex: -1, "aria-modal": u ? void 0 : m === 0 ? !0 : void 0, "aria-labelledby": y.titleId, "aria-describedby": De }, et = !$a(), se = ve.None;
|
|
2247
|
+
return w && !u && (se |= ve.RestoreFocus, se |= ve.TabLock, s && (se |= ve.AutoFocus), et && (se |= ve.InitialFocus)), C.createElement(ca, null, C.createElement(Yn, { force: !0 }, C.createElement(wa, null, C.createElement(gn.Provider, { value: Je }, C.createElement(ro, { target: f }, C.createElement(Yn, { force: !1 }, C.createElement(Tt, { slot: Fe }, C.createElement(H, null, C.createElement(xa, { initialFocus: a, initialFocusFallback: f, containers: V, features: se }, C.createElement(Li, { value: E }, Y({ ourProps: xe, theirProps: d, slot: Fe, defaultTag: za, features: ja, visible: m === 0, name: "Dialog" })))))))))), C.createElement(Ci, null, C.createElement(I, null)));
|
|
2248
|
+
}), za = "div", ja = ut.RenderStrategy | ut.Static;
|
|
2249
|
+
function Ba(e, t) {
|
|
2250
2250
|
let { transition: n = !1, open: r, ...o } = e, i = wt(), a = e.hasOwnProperty("open") || i !== null, l = e.hasOwnProperty("onClose");
|
|
2251
2251
|
if (!a && !l) throw new Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");
|
|
2252
2252
|
if (!a) throw new Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");
|
|
2253
2253
|
if (!l) throw new Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");
|
|
2254
2254
|
if (!i && typeof e.open != "boolean") throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${e.open}`);
|
|
2255
2255
|
if (typeof e.onClose != "function") throw new Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${e.onClose}`);
|
|
2256
|
-
return (r !== void 0 || n) && !o.static ? C.createElement(
|
|
2256
|
+
return (r !== void 0 || n) && !o.static ? C.createElement(ie, { show: r, transition: n, unmount: o.unmount }, C.createElement(Kn, { ref: t, ...o })) : C.createElement(Kn, { ref: t, open: r, ...o });
|
|
2257
2257
|
}
|
|
2258
|
-
let
|
|
2259
|
-
function
|
|
2260
|
-
let n = fe(), { id: r = `headlessui-dialog-panel-${n}`, transition: o = !1, ...i } = e, [{ dialogState: a }, l] = Ct("Dialog.Panel"), s =
|
|
2258
|
+
let qa = "div";
|
|
2259
|
+
function Ya(e, t) {
|
|
2260
|
+
let n = fe(), { id: r = `headlessui-dialog-panel-${n}`, transition: o = !1, ...i } = e, [{ dialogState: a }, l] = Ct("Dialog.Panel"), s = J(t, l.panelRef), u = x(() => ({ open: a === 0 }), [a]), d = L((c) => {
|
|
2261
2261
|
c.stopPropagation();
|
|
2262
2262
|
});
|
|
2263
|
-
return C.createElement(o ? yn :
|
|
2263
|
+
return C.createElement(o ? yn : N, null, Y({ ourProps: { ref: s, id: r, onClick: d }, theirProps: i, slot: u, defaultTag: qa, name: "Dialog.Panel" }));
|
|
2264
2264
|
}
|
|
2265
|
-
let
|
|
2266
|
-
function
|
|
2267
|
-
let { transition: n = !1, ...r } = e, [{ dialogState: o }] = Ct("Dialog.Backdrop"), i =
|
|
2268
|
-
return C.createElement(n ? yn :
|
|
2265
|
+
let Ka = "div";
|
|
2266
|
+
function Ga(e, t) {
|
|
2267
|
+
let { transition: n = !1, ...r } = e, [{ dialogState: o }] = Ct("Dialog.Backdrop"), i = x(() => ({ open: o === 0 }), [o]);
|
|
2268
|
+
return C.createElement(n ? yn : N, null, Y({ ourProps: { ref: t, "aria-hidden": !0 }, theirProps: r, slot: i, defaultTag: Ka, name: "Dialog.Backdrop" }));
|
|
2269
2269
|
}
|
|
2270
|
-
let
|
|
2271
|
-
function
|
|
2272
|
-
let n = fe(), { id: r = `headlessui-dialog-title-${n}`, ...o } = e, [{ dialogState: i, setTitleId: a }] = Ct("Dialog.Title"), l =
|
|
2270
|
+
let Za = "h2";
|
|
2271
|
+
function Xa(e, t) {
|
|
2272
|
+
let n = fe(), { id: r = `headlessui-dialog-title-${n}`, ...o } = e, [{ dialogState: i, setTitleId: a }] = Ct("Dialog.Title"), l = J(t);
|
|
2273
2273
|
M(() => (a(r), () => a(null)), [r, a]);
|
|
2274
|
-
let s =
|
|
2275
|
-
return Y({ ourProps: { ref: l, id: r }, theirProps: o, slot: s, defaultTag:
|
|
2276
|
-
}
|
|
2277
|
-
let
|
|
2278
|
-
|
|
2279
|
-
let
|
|
2280
|
-
const
|
|
2281
|
-
root:
|
|
2282
|
-
modal:
|
|
2283
|
-
container:
|
|
2284
|
-
page:
|
|
2285
|
-
close:
|
|
2286
|
-
},
|
|
2287
|
-
root:
|
|
2288
|
-
},
|
|
2274
|
+
let s = x(() => ({ open: i === 0 }), [i]);
|
|
2275
|
+
return Y({ ourProps: { ref: l, id: r }, theirProps: o, slot: s, defaultTag: Za, name: "Dialog.Title" });
|
|
2276
|
+
}
|
|
2277
|
+
let Qa = j(Ba), fo = j(Ya);
|
|
2278
|
+
j(Ga);
|
|
2279
|
+
let Ja = j(Xa), el = Object.assign(Qa, { Panel: fo, Title: Ja, Description: Pi });
|
|
2280
|
+
const tl = "_root_1hpzn_1", nl = "_modal_1hpzn_10", rl = "_container_1hpzn_13", ol = "_page_1hpzn_16", il = "_close_1hpzn_19", ot = {
|
|
2281
|
+
root: tl,
|
|
2282
|
+
modal: nl,
|
|
2283
|
+
container: rl,
|
|
2284
|
+
page: ol,
|
|
2285
|
+
close: il
|
|
2286
|
+
}, al = "_root_1h6qm_1", ll = {
|
|
2287
|
+
root: al
|
|
2288
|
+
}, le = (e) => {
|
|
2289
2289
|
const {
|
|
2290
2290
|
children: t,
|
|
2291
2291
|
size: n = "md",
|
|
@@ -2294,7 +2294,7 @@ const el = "_root_1hpzn_1", tl = "_modal_1hpzn_10", nl = "_container_1hpzn_13",
|
|
|
2294
2294
|
strokeWidth: i,
|
|
2295
2295
|
className: a = "",
|
|
2296
2296
|
viewBox: l = "0 0 20 20"
|
|
2297
|
-
} = e, s =
|
|
2297
|
+
} = e, s = x(() => {
|
|
2298
2298
|
switch (n) {
|
|
2299
2299
|
case "sm":
|
|
2300
2300
|
return "yvlw-w-4 yvlw-h-4";
|
|
@@ -2320,26 +2320,26 @@ const el = "_root_1hpzn_1", tl = "_modal_1hpzn_10", nl = "_container_1hpzn_13",
|
|
|
2320
2320
|
children: t
|
|
2321
2321
|
}
|
|
2322
2322
|
);
|
|
2323
|
-
},
|
|
2323
|
+
}, sl = () => /* @__PURE__ */ p(le, { 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" }) }), po = (e) => /* @__PURE__ */ p(le, { ...e, children: /* @__PURE__ */ p(
|
|
2324
2324
|
"path",
|
|
2325
2325
|
{
|
|
2326
2326
|
fillRule: "evenodd",
|
|
2327
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",
|
|
2328
2328
|
clipRule: "evenodd"
|
|
2329
2329
|
}
|
|
2330
|
-
) }),
|
|
2330
|
+
) }), cl = (e) => /* @__PURE__ */ p(le, { ...e, viewBox: "0 0 24 24", children: [
|
|
2331
2331
|
/* @__PURE__ */ p("path", { d: "M0 0h24v24H0V0z", fill: "none" }),
|
|
2332
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
|
-
] }),
|
|
2333
|
+
] }), ul = (e) => /* @__PURE__ */ p(le, { ...e, viewBox: "0 0 24 24", children: [
|
|
2334
2334
|
/* @__PURE__ */ p("path", { d: "M0 0h24v24H0V0z", fill: "none" }),
|
|
2335
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
|
-
] }),
|
|
2336
|
+
] }), dl = (e) => /* @__PURE__ */ p(le, { ...e, viewBox: "0 0 24 24", children: [
|
|
2337
2337
|
/* @__PURE__ */ p("path", { d: "M0 0h24v24H0V0z", fill: "none" }),
|
|
2338
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
|
-
] }),
|
|
2339
|
+
] }), fl = (e) => /* @__PURE__ */ p(le, { ...e, children: [
|
|
2340
2340
|
/* @__PURE__ */ p("path", { d: "M0 0h24v24H0V0z", fill: "none" }),
|
|
2341
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
|
-
] }),
|
|
2342
|
+
] }), pl = (e) => /* @__PURE__ */ p(le, { ...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" }) }), hl = (e) => /* @__PURE__ */ p(le, { ...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(le, { ...e, viewBox: "0 0 99 32", children: [
|
|
2343
2343
|
/* @__PURE__ */ p("g", { clipPath: "url(#clip0_9581_165880)", children: [
|
|
2344
2344
|
/* @__PURE__ */ p(
|
|
2345
2345
|
"path",
|
|
@@ -2479,16 +2479,16 @@ class we {
|
|
|
2479
2479
|
const vl = (e, t) => {
|
|
2480
2480
|
let n;
|
|
2481
2481
|
return typeof OffscreenCanvas < "u" ? n = new OffscreenCanvas(e, t) : (n = document.createElement("canvas"), n.width = e, n.height = t), n;
|
|
2482
|
-
},
|
|
2482
|
+
}, ho = (e, t, n, r) => {
|
|
2483
2483
|
let o = 0, i = 0, a = t, l = n;
|
|
2484
2484
|
const u = vl(t, n).getContext("2d");
|
|
2485
2485
|
return u.drawImage(e, 0, 0), u.getImageData(o, i, a, l);
|
|
2486
|
-
},
|
|
2486
|
+
}, ml = (e) => new Promise((t) => {
|
|
2487
2487
|
const n = document.createElement("canvas");
|
|
2488
2488
|
let { width: r } = e, { height: o } = e;
|
|
2489
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));
|
|
2490
2490
|
});
|
|
2491
|
-
function
|
|
2491
|
+
function yl() {
|
|
2492
2492
|
if (MediaRecorder.isTypeSupported("video/webm; codecs=vp9"))
|
|
2493
2493
|
return { mimeType: "video/webm; codecs=vp9" };
|
|
2494
2494
|
if (MediaRecorder.isTypeSupported("video/webm"))
|
|
@@ -2499,14 +2499,14 @@ function ml() {
|
|
|
2499
2499
|
function _o(e = {}) {
|
|
2500
2500
|
const { onRecord: t = () => {
|
|
2501
2501
|
}, onStop: n = () => {
|
|
2502
|
-
} } = e, r =
|
|
2502
|
+
} } = e, r = b([]), o = b(null), i = b(null), a = A((c) => {
|
|
2503
2503
|
r.current.push(c);
|
|
2504
2504
|
}, []), l = A(
|
|
2505
2505
|
async (c) => {
|
|
2506
2506
|
if (o.current)
|
|
2507
2507
|
return;
|
|
2508
|
-
const
|
|
2509
|
-
o.current =
|
|
2508
|
+
const h = await ml(c);
|
|
2509
|
+
o.current = h;
|
|
2510
2510
|
},
|
|
2511
2511
|
[]
|
|
2512
2512
|
), s = A((c) => {
|
|
@@ -2516,7 +2516,7 @@ function _o(e = {}) {
|
|
|
2516
2516
|
}, []), d = A((c) => {
|
|
2517
2517
|
i.current || (i.current = new MediaRecorder(
|
|
2518
2518
|
c,
|
|
2519
|
-
|
|
2519
|
+
yl()
|
|
2520
2520
|
), i.current.ondataavailable = s, i.current.onstop = u, i.current.start(1e3));
|
|
2521
2521
|
}, []);
|
|
2522
2522
|
return {
|
|
@@ -2531,7 +2531,7 @@ function _o(e = {}) {
|
|
|
2531
2531
|
function Le(e, t) {
|
|
2532
2532
|
return Math.sqrt(e ** 2 + t ** 2);
|
|
2533
2533
|
}
|
|
2534
|
-
function
|
|
2534
|
+
function gl(e) {
|
|
2535
2535
|
const t = e.slice();
|
|
2536
2536
|
for (let n = t.length - 1; n > 0; n--) {
|
|
2537
2537
|
const r = Math.floor(Math.random() * (n + 1));
|
|
@@ -2539,7 +2539,7 @@ function yl(e) {
|
|
|
2539
2539
|
}
|
|
2540
2540
|
return t;
|
|
2541
2541
|
}
|
|
2542
|
-
function
|
|
2542
|
+
function wl(e, t) {
|
|
2543
2543
|
return new Promise((n, r) => {
|
|
2544
2544
|
const o = new File([e], `${Date.now()}`, {
|
|
2545
2545
|
type: t
|
|
@@ -2547,10 +2547,10 @@ function gl(e, t) {
|
|
|
2547
2547
|
i.readAsDataURL(o), i.onload = () => n(i.result), i.onerror = (a) => r(a);
|
|
2548
2548
|
});
|
|
2549
2549
|
}
|
|
2550
|
-
const
|
|
2551
|
-
function
|
|
2550
|
+
const bl = "https://identity.dev.svc.youverify.co";
|
|
2551
|
+
function $l() {
|
|
2552
2552
|
return { postData: async (t) => {
|
|
2553
|
-
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(`${bl}/v1/sdk/identity/liveness/`, {
|
|
2554
2554
|
method: "POST",
|
|
2555
2555
|
headers: {
|
|
2556
2556
|
"Content-Type": "application/json"
|
|
@@ -2568,28 +2568,28 @@ function bl() {
|
|
|
2568
2568
|
return (await a.json()).data;
|
|
2569
2569
|
} };
|
|
2570
2570
|
}
|
|
2571
|
-
const
|
|
2571
|
+
const El = 360, Cl = "#125766", Tl = "https://cdn.youverify.co/1721901834404-q2nxqyng5klm918b3BDVU.jpg", vo = {
|
|
2572
2572
|
"complete-the-circle": {
|
|
2573
|
-
Icon:
|
|
2573
|
+
Icon: cl,
|
|
2574
2574
|
name: "Complete The Circle ⭕️",
|
|
2575
2575
|
description: "First position your face in the camera frame. Then move your head in a circle to show all the angles of your face"
|
|
2576
2576
|
},
|
|
2577
2577
|
"yes-or-no": {
|
|
2578
|
-
Icon:
|
|
2578
|
+
Icon: ul,
|
|
2579
2579
|
name: "Yes or No ❓",
|
|
2580
2580
|
description: "First position your face in the camera. Then tilt your head to the left to answer No and to the right to answer Yes"
|
|
2581
2581
|
},
|
|
2582
2582
|
motions: {
|
|
2583
|
-
Icon:
|
|
2583
|
+
Icon: dl,
|
|
2584
2584
|
name: "Motions 💫",
|
|
2585
2585
|
description: "First position your face in the camera frame, then follow the instructions"
|
|
2586
2586
|
},
|
|
2587
2587
|
"facial-expressions": {
|
|
2588
|
-
Icon:
|
|
2588
|
+
Icon: po,
|
|
2589
2589
|
name: "Facial Expressions 🤪",
|
|
2590
2590
|
description: "First position your face in the camera frame. Then move your head in a circle to show all the angles of your face"
|
|
2591
2591
|
}
|
|
2592
|
-
},
|
|
2592
|
+
}, mo = q({
|
|
2593
2593
|
tasks: [],
|
|
2594
2594
|
namespace: "",
|
|
2595
2595
|
user: void 0,
|
|
@@ -2608,7 +2608,7 @@ const $l = 360, El = "#125766", Cl = "https://cdn.youverify.co/1721901834404-q2n
|
|
|
2608
2608
|
onComplete: () => Promise.resolve()
|
|
2609
2609
|
});
|
|
2610
2610
|
let Gn, Zn = !1;
|
|
2611
|
-
function
|
|
2611
|
+
function kl(e) {
|
|
2612
2612
|
const {
|
|
2613
2613
|
publicKey: t,
|
|
2614
2614
|
tasks: n,
|
|
@@ -2619,84 +2619,86 @@ function Tl(e) {
|
|
|
2619
2619
|
onRequestClose: l,
|
|
2620
2620
|
onSuccess: s = () => {
|
|
2621
2621
|
},
|
|
2622
|
-
metadata: u
|
|
2623
|
-
|
|
2624
|
-
|
|
2625
|
-
|
|
2626
|
-
|
|
2627
|
-
|
|
2628
|
-
|
|
2629
|
-
|
|
2630
|
-
|
|
2631
|
-
|
|
2632
|
-
|
|
2622
|
+
metadata: u,
|
|
2623
|
+
presentation: d
|
|
2624
|
+
} = e, [c, h] = T(0), [f, _] = T(0), [v, m] = T(null), { saveStream: y, savePhoto: $, savedPhoto: E } = _o(), { postData: g } = $l(), w = x(
|
|
2625
|
+
() => f === n.length,
|
|
2626
|
+
[n, f]
|
|
2627
|
+
), F = () => {
|
|
2628
|
+
_((S) => S + 1), h((S) => S + 1);
|
|
2629
|
+
}, H = (S) => {
|
|
2630
|
+
const I = new Image();
|
|
2631
|
+
I.crossOrigin = "Anonymous", I.src = Tl, I.onload = () => {
|
|
2632
|
+
const Q = ho(I, I.width, I.height);
|
|
2633
|
+
we.detectFaces(S, Q);
|
|
2633
2634
|
};
|
|
2634
|
-
},
|
|
2635
|
-
const S = await
|
|
2636
|
-
faceImage:
|
|
2635
|
+
}, O = async () => {
|
|
2636
|
+
const S = await g({
|
|
2637
|
+
faceImage: E.current ? await wl(E.current, "image/png") : null,
|
|
2637
2638
|
publicKey: t,
|
|
2638
2639
|
passed: !0,
|
|
2639
2640
|
metadata: u
|
|
2640
2641
|
});
|
|
2641
2642
|
s(S), l();
|
|
2642
|
-
},
|
|
2643
|
+
}, V = async () => {
|
|
2643
2644
|
const S = await we.loadDetector();
|
|
2644
|
-
Gn = S,
|
|
2645
|
+
Gn = S, H(S), m(S);
|
|
2645
2646
|
};
|
|
2646
2647
|
return M(() => {
|
|
2647
2648
|
if (Zn) {
|
|
2648
|
-
|
|
2649
|
+
m(Gn);
|
|
2649
2650
|
return;
|
|
2650
2651
|
}
|
|
2651
|
-
|
|
2652
|
+
V(), Zn = !0;
|
|
2652
2653
|
}, []), /* @__PURE__ */ p(
|
|
2653
|
-
|
|
2654
|
+
mo.Provider,
|
|
2654
2655
|
{
|
|
2655
2656
|
value: {
|
|
2656
2657
|
tasks: n,
|
|
2657
2658
|
namespace: o,
|
|
2658
2659
|
user: i,
|
|
2659
|
-
currentTaskIndex:
|
|
2660
|
-
completed:
|
|
2661
|
-
completedCount:
|
|
2662
|
-
nextTask:
|
|
2660
|
+
currentTaskIndex: c,
|
|
2661
|
+
completed: w,
|
|
2662
|
+
completedCount: f,
|
|
2663
|
+
nextTask: F,
|
|
2663
2664
|
branding: a,
|
|
2664
2665
|
onRequestClose: l,
|
|
2665
2666
|
faceDetector: v,
|
|
2666
2667
|
saveStream: y,
|
|
2667
|
-
savePhoto:
|
|
2668
|
-
onComplete:
|
|
2668
|
+
savePhoto: $,
|
|
2669
|
+
onComplete: O,
|
|
2670
|
+
presentation: d
|
|
2669
2671
|
},
|
|
2670
2672
|
children: r
|
|
2671
2673
|
}
|
|
2672
2674
|
);
|
|
2673
2675
|
}
|
|
2674
2676
|
function ke() {
|
|
2675
|
-
return W(
|
|
2676
|
-
}
|
|
2677
|
-
const
|
|
2678
|
-
root:
|
|
2679
|
-
container:
|
|
2680
|
-
lhs:
|
|
2681
|
-
info:
|
|
2682
|
-
active:
|
|
2683
|
-
completed:
|
|
2684
|
-
rhs:
|
|
2685
|
-
profile:
|
|
2686
|
-
avatar:
|
|
2687
|
-
main:
|
|
2688
|
-
content:
|
|
2689
|
-
},
|
|
2690
|
-
root:
|
|
2691
|
-
container:
|
|
2692
|
-
brand:
|
|
2677
|
+
return W(mo);
|
|
2678
|
+
}
|
|
2679
|
+
const Fl = "_root_vqy7d_1", xl = "_container_vqy7d_4", Sl = "_lhs_vqy7d_7", Pl = "_info_vqy7d_11", Ml = "_active_vqy7d_32", Ll = "_completed_vqy7d_39", Nl = "_rhs_vqy7d_62", Hl = "_profile_vqy7d_65", Dl = "_avatar_vqy7d_68", Al = "_main_vqy7d_81", Ol = "_content_vqy7d_84", B = {
|
|
2680
|
+
root: Fl,
|
|
2681
|
+
container: xl,
|
|
2682
|
+
lhs: Sl,
|
|
2683
|
+
info: Pl,
|
|
2684
|
+
active: Ml,
|
|
2685
|
+
completed: Ll,
|
|
2686
|
+
rhs: Nl,
|
|
2687
|
+
profile: Hl,
|
|
2688
|
+
avatar: Dl,
|
|
2689
|
+
main: Al,
|
|
2690
|
+
content: Ol
|
|
2691
|
+
}, Il = "_root_135td_1", Rl = "_container_135td_1", Vl = "_brand_135td_1", Lt = {
|
|
2692
|
+
root: Il,
|
|
2693
|
+
container: Rl,
|
|
2694
|
+
brand: Vl
|
|
2693
2695
|
};
|
|
2694
|
-
function
|
|
2696
|
+
function Ul() {
|
|
2695
2697
|
const { branding: e } = ke();
|
|
2696
2698
|
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" }) }) }) });
|
|
2697
2699
|
}
|
|
2698
2700
|
const Xn = "colorScheme";
|
|
2699
|
-
function
|
|
2701
|
+
function Wl() {
|
|
2700
2702
|
const { namespace: e } = ke(), t = () => {
|
|
2701
2703
|
const o = localStorage.getItem(Xn);
|
|
2702
2704
|
return !o && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : o;
|
|
@@ -2710,66 +2712,66 @@ function Ul() {
|
|
|
2710
2712
|
return n(o === "dark" ? "light" : "dark");
|
|
2711
2713
|
}, getColorScheme: t };
|
|
2712
2714
|
}
|
|
2713
|
-
const
|
|
2714
|
-
root:
|
|
2715
|
+
const zl = "_root_bcsvc_1", jl = {
|
|
2716
|
+
root: zl
|
|
2715
2717
|
};
|
|
2716
|
-
function
|
|
2718
|
+
function Bl() {
|
|
2717
2719
|
if (!(window.screen.width >= 900))
|
|
2718
2720
|
return 10 / 9;
|
|
2719
2721
|
}
|
|
2720
2722
|
function wn(e) {
|
|
2721
2723
|
const { children: t, onStream: n = () => {
|
|
2722
2724
|
}, onRecord: r = () => {
|
|
2723
|
-
} } = e, o =
|
|
2725
|
+
} } = e, o = b(null), i = b(0), a = b(null), { start: l, stop: s } = _o({
|
|
2724
2726
|
onRecord: r
|
|
2725
2727
|
}), u = async () => {
|
|
2726
2728
|
try {
|
|
2727
|
-
const
|
|
2728
|
-
video: { aspectRatio: { exact:
|
|
2729
|
+
const h = await navigator.mediaDevices.getUserMedia({
|
|
2730
|
+
video: { aspectRatio: { exact: Bl() } }
|
|
2729
2731
|
});
|
|
2730
|
-
a.current =
|
|
2732
|
+
a.current = h, l(h), o.current && (o.current.srcObject = h);
|
|
2731
2733
|
} catch {
|
|
2732
2734
|
}
|
|
2733
2735
|
}, d = () => {
|
|
2734
|
-
a.current && (a.current.getTracks().forEach((
|
|
2736
|
+
a.current && (a.current.getTracks().forEach((h) => h.stop()), a.current = null, s(), o.current && (o.current.srcObject = null));
|
|
2735
2737
|
}, c = () => {
|
|
2736
2738
|
n(o), i.current = requestAnimationFrame(c);
|
|
2737
2739
|
};
|
|
2738
2740
|
return M(() => {
|
|
2739
|
-
const
|
|
2740
|
-
if (!
|
|
2741
|
+
const h = o.current;
|
|
2742
|
+
if (!h)
|
|
2741
2743
|
return;
|
|
2742
2744
|
const f = () => {
|
|
2743
2745
|
i.current = requestAnimationFrame(c);
|
|
2744
2746
|
};
|
|
2745
|
-
return u(),
|
|
2746
|
-
|
|
2747
|
+
return u(), h.addEventListener("canplay", f), () => {
|
|
2748
|
+
h.removeEventListener("canplay", f), cancelAnimationFrame(i.current), d();
|
|
2747
2749
|
};
|
|
2748
2750
|
}, []), /* @__PURE__ */ p("div", { className: jl.root, children: [
|
|
2749
2751
|
/* @__PURE__ */ p("video", { ref: o, autoPlay: !0, loop: !0, playsInline: !0 }),
|
|
2750
2752
|
t
|
|
2751
2753
|
] });
|
|
2752
2754
|
}
|
|
2753
|
-
const
|
|
2754
|
-
container:
|
|
2755
|
-
focused:
|
|
2756
|
-
progress:
|
|
2757
|
-
completed:
|
|
2758
|
-
marker:
|
|
2759
|
-
}, Qn = 360,
|
|
2760
|
-
function
|
|
2755
|
+
const ql = "_container_mcmsr_1", Yl = "_focused_mcmsr_12", Kl = "_progress_mcmsr_15", Gl = "_completed_mcmsr_36", Zl = "_marker_mcmsr_40", Re = {
|
|
2756
|
+
container: ql,
|
|
2757
|
+
focused: Yl,
|
|
2758
|
+
progress: Kl,
|
|
2759
|
+
completed: Gl,
|
|
2760
|
+
marker: Zl
|
|
2761
|
+
}, Qn = 360, Xl = 50;
|
|
2762
|
+
function Ql(e) {
|
|
2761
2763
|
const {
|
|
2762
2764
|
visitedSections: t,
|
|
2763
2765
|
sectionsCount: n,
|
|
2764
2766
|
faceDetected: r,
|
|
2765
|
-
divisions: o =
|
|
2766
|
-
} = e, i =
|
|
2767
|
+
divisions: o = Xl
|
|
2768
|
+
} = e, i = x(() => {
|
|
2767
2769
|
const a = [Re.container];
|
|
2768
2770
|
return r && a.push(Re.focused), a.join(" ");
|
|
2769
2771
|
}, [r]);
|
|
2770
2772
|
return /* @__PURE__ */ p("div", { className: i, children: [
|
|
2771
2773
|
/* @__PURE__ */ p(
|
|
2772
|
-
|
|
2774
|
+
ie,
|
|
2773
2775
|
{
|
|
2774
2776
|
as: "div",
|
|
2775
2777
|
show: r,
|
|
@@ -2785,13 +2787,13 @@ function Xl(e) {
|
|
|
2785
2787
|
(l + 1) * n / Qn
|
|
2786
2788
|
), u = t.includes(s), d = u ? a - (s - 1) * (o / n) : 0, c = [];
|
|
2787
2789
|
u && c.push(Re.completed);
|
|
2788
|
-
const
|
|
2790
|
+
const h = u ? "translateX(158px)" : "translateX(150px)";
|
|
2789
2791
|
return /* @__PURE__ */ p(
|
|
2790
2792
|
"div",
|
|
2791
2793
|
{
|
|
2792
2794
|
className: c.join(" "),
|
|
2793
2795
|
style: {
|
|
2794
|
-
transform: `rotate(${l}deg) ${
|
|
2796
|
+
transform: `rotate(${l}deg) ${h}`,
|
|
2795
2797
|
transitionDelay: `${d * 20}ms`
|
|
2796
2798
|
}
|
|
2797
2799
|
},
|
|
@@ -2801,7 +2803,7 @@ function Xl(e) {
|
|
|
2801
2803
|
}
|
|
2802
2804
|
),
|
|
2803
2805
|
/* @__PURE__ */ p(
|
|
2804
|
-
|
|
2806
|
+
ie,
|
|
2805
2807
|
{
|
|
2806
2808
|
as: "div",
|
|
2807
2809
|
show: !r,
|
|
@@ -2822,7 +2824,7 @@ function Xl(e) {
|
|
|
2822
2824
|
)
|
|
2823
2825
|
] });
|
|
2824
2826
|
}
|
|
2825
|
-
function
|
|
2827
|
+
function Jl() {
|
|
2826
2828
|
return { checkZoomLevel: (r, o) => {
|
|
2827
2829
|
const { box: i } = r, { width: a, height: l } = i, s = a * l, u = o ** 2, d = s / u;
|
|
2828
2830
|
if (d > 0.9)
|
|
@@ -2844,29 +2846,29 @@ function bn(e = {}) {
|
|
|
2844
2846
|
},
|
|
2845
2847
|
onError: o = () => {
|
|
2846
2848
|
}
|
|
2847
|
-
} = e, { faceDetector: i, savePhoto: a } = ke(), l =
|
|
2848
|
-
var
|
|
2849
|
+
} = e, { faceDetector: i, savePhoto: a } = ke(), l = b(!1), s = b(!1), { checkFacialFeatures: u, checkZoomLevel: d, checkInFrame: c } = Jl(), h = b(null), f = (v, m) => {
|
|
2850
|
+
var y;
|
|
2849
2851
|
try {
|
|
2850
|
-
if (
|
|
2852
|
+
if (v.length === 0)
|
|
2851
2853
|
throw new Error("Detecting face...");
|
|
2852
|
-
if (
|
|
2854
|
+
if (v.length > 1)
|
|
2853
2855
|
throw new Error("A maximum of 1 face is allowed");
|
|
2854
|
-
const
|
|
2855
|
-
if (
|
|
2856
|
+
const $ = h.current, E = (y = h.current) == null ? void 0 : y.parentElement;
|
|
2857
|
+
if (!$ || !E)
|
|
2856
2858
|
return;
|
|
2857
|
-
const g =
|
|
2858
|
-
for (const
|
|
2859
|
-
switch (
|
|
2859
|
+
const g = v[0];
|
|
2860
|
+
for (const w of t)
|
|
2861
|
+
switch (w) {
|
|
2860
2862
|
case "zoom":
|
|
2861
2863
|
d(
|
|
2862
2864
|
g,
|
|
2863
|
-
Math.min(
|
|
2865
|
+
Math.min(E.clientHeight, E.clientWidth)
|
|
2864
2866
|
);
|
|
2865
2867
|
break;
|
|
2866
2868
|
case "features":
|
|
2867
2869
|
u(
|
|
2868
2870
|
g,
|
|
2869
|
-
Math.min(
|
|
2871
|
+
Math.min(E.clientHeight, E.clientWidth)
|
|
2870
2872
|
);
|
|
2871
2873
|
break;
|
|
2872
2874
|
case "in-frame":
|
|
@@ -2874,14 +2876,14 @@ function bn(e = {}) {
|
|
|
2874
2876
|
throw new Error(
|
|
2875
2877
|
"Frame size is required to check if face is in frame"
|
|
2876
2878
|
);
|
|
2877
|
-
const
|
|
2879
|
+
const F = n + 200;
|
|
2878
2880
|
c(g, {
|
|
2879
|
-
x: (
|
|
2880
|
-
y: (
|
|
2881
|
-
width:
|
|
2882
|
-
height:
|
|
2883
|
-
offsetX: (
|
|
2884
|
-
offsetY: (
|
|
2881
|
+
x: (E.clientWidth - F) / 2,
|
|
2882
|
+
y: (E.clientHeight - F) / 2,
|
|
2883
|
+
width: F,
|
|
2884
|
+
height: F,
|
|
2885
|
+
offsetX: ($.videoWidth - E.clientWidth) / 2,
|
|
2886
|
+
offsetY: ($.videoHeight - E.clientHeight) / 2
|
|
2885
2887
|
});
|
|
2886
2888
|
break;
|
|
2887
2889
|
default:
|
|
@@ -2889,56 +2891,60 @@ function bn(e = {}) {
|
|
|
2889
2891
|
}
|
|
2890
2892
|
if (!s.current)
|
|
2891
2893
|
throw l.current || (l.current = !0, setTimeout(() => {
|
|
2892
|
-
a(
|
|
2893
|
-
},
|
|
2894
|
+
a(m), s.current = !0;
|
|
2895
|
+
}, 3e3)), new Error("Keep head still for a photograph");
|
|
2894
2896
|
r(g);
|
|
2895
|
-
} catch (
|
|
2896
|
-
const { message:
|
|
2897
|
-
o(
|
|
2897
|
+
} catch ($) {
|
|
2898
|
+
const { message: E } = $;
|
|
2899
|
+
o(E);
|
|
2898
2900
|
}
|
|
2899
2901
|
};
|
|
2900
|
-
return { detectFaces: async (
|
|
2902
|
+
return { detectFaces: async (v) => {
|
|
2901
2903
|
if (!i)
|
|
2902
2904
|
return;
|
|
2903
|
-
const { ref:
|
|
2904
|
-
|
|
2905
|
-
const
|
|
2906
|
-
if (!
|
|
2905
|
+
const { ref: m } = v;
|
|
2906
|
+
h.current = m.current;
|
|
2907
|
+
const y = h.current;
|
|
2908
|
+
if (!y)
|
|
2907
2909
|
throw new Error("No Video Source detected");
|
|
2908
|
-
const { videoWidth:
|
|
2909
|
-
if (
|
|
2910
|
+
const { videoWidth: $, videoHeight: E } = y;
|
|
2911
|
+
if ($ === 0 || E === 0)
|
|
2910
2912
|
return;
|
|
2911
|
-
const g =
|
|
2912
|
-
|
|
2913
|
-
|
|
2914
|
-
|
|
2913
|
+
const g = ho(
|
|
2914
|
+
y,
|
|
2915
|
+
$,
|
|
2916
|
+
E
|
|
2915
2917
|
// frameSize,
|
|
2916
|
-
),
|
|
2917
|
-
f(
|
|
2918
|
+
), w = await we.detectFaces(i, g);
|
|
2919
|
+
f(w, y);
|
|
2918
2920
|
} };
|
|
2919
2921
|
}
|
|
2920
|
-
const
|
|
2921
|
-
root:
|
|
2922
|
-
container:
|
|
2923
|
-
progress:
|
|
2924
|
-
intro:
|
|
2925
|
-
content:
|
|
2926
|
-
branding:
|
|
2927
|
-
instructionsContainer:
|
|
2928
|
-
instructions:
|
|
2929
|
-
},
|
|
2930
|
-
root:
|
|
2931
|
-
spinner:
|
|
2932
|
-
|
|
2933
|
-
|
|
2934
|
-
|
|
2935
|
-
|
|
2936
|
-
|
|
2937
|
-
lg: _s
|
|
2922
|
+
const es = "_root_1psx5_1", ts = "_container_1psx5_4", ns = "_progress_1psx5_7", rs = "_intro_1psx5_12", os = "_content_1psx5_15", is = "_branding_1psx5_18", as = "_instructionsContainer_1psx5_22", ls = "_instructions_1psx5_22", ee = {
|
|
2923
|
+
root: es,
|
|
2924
|
+
container: ts,
|
|
2925
|
+
progress: ns,
|
|
2926
|
+
intro: rs,
|
|
2927
|
+
content: os,
|
|
2928
|
+
branding: is,
|
|
2929
|
+
instructionsContainer: as,
|
|
2930
|
+
instructions: ls
|
|
2931
|
+
}, ss = "_root_h5elg_1", cs = "_spinner_h5elg_22", Jn = {
|
|
2932
|
+
root: ss,
|
|
2933
|
+
spinner: cs
|
|
2934
|
+
}, us = "_container_1vep2_1", ds = "_spin_1vep2_1", fs = "_md_1vep2_7", ps = "_lg_1vep2_10", er = {
|
|
2935
|
+
container: us,
|
|
2936
|
+
spin: ds,
|
|
2937
|
+
md: fs,
|
|
2938
|
+
lg: ps
|
|
2938
2939
|
};
|
|
2939
|
-
function
|
|
2940
|
-
const { size: t = "md" } = e;
|
|
2941
|
-
return /* @__PURE__ */ p(
|
|
2940
|
+
function yo(e) {
|
|
2941
|
+
const { size: t = "md", className: n = "" } = e;
|
|
2942
|
+
return /* @__PURE__ */ p(
|
|
2943
|
+
"span",
|
|
2944
|
+
{
|
|
2945
|
+
className: `${er.container} ${er[t]} ${n}`
|
|
2946
|
+
}
|
|
2947
|
+
);
|
|
2942
2948
|
}
|
|
2943
2949
|
function ft(e) {
|
|
2944
2950
|
const {
|
|
@@ -2949,21 +2955,22 @@ function ft(e) {
|
|
|
2949
2955
|
onActionClick: i = () => {
|
|
2950
2956
|
},
|
|
2951
2957
|
loading: a = !1,
|
|
2952
|
-
children: l
|
|
2958
|
+
children: l,
|
|
2959
|
+
hideButton: s = !1
|
|
2953
2960
|
} = e;
|
|
2954
|
-
return /* @__PURE__ */ p("div", { className:
|
|
2961
|
+
return /* @__PURE__ */ p("div", { className: Jn.root, children: [
|
|
2955
2962
|
/* @__PURE__ */ p(t, { size: "custom", className: "yvlw-h-20 yvlw-mx-auto yvlw-mb-12" }),
|
|
2956
2963
|
/* @__PURE__ */ p("h2", { children: r }),
|
|
2957
2964
|
/* @__PURE__ */ p("p", { className: "subtext", children: n }),
|
|
2958
|
-
/* @__PURE__ */ p("div", { className: "yvlw-mt-12", children: /* @__PURE__ */ p(
|
|
2959
|
-
|
|
2965
|
+
!s && /* @__PURE__ */ p("div", { className: "yvlw-mt-12", children: /* @__PURE__ */ p(
|
|
2966
|
+
wi,
|
|
2960
2967
|
{
|
|
2961
2968
|
onClick: () => i(),
|
|
2962
2969
|
className: "yvlw-flex yvlw-items-center yvlw-space-x-3",
|
|
2963
2970
|
disabled: a,
|
|
2964
2971
|
children: [
|
|
2965
2972
|
/* @__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(
|
|
2973
|
+
a && /* @__PURE__ */ p(yo, { className: Jn.spinner })
|
|
2967
2974
|
]
|
|
2968
2975
|
}
|
|
2969
2976
|
) }),
|
|
@@ -2972,20 +2979,20 @@ function ft(e) {
|
|
|
2972
2979
|
}
|
|
2973
2980
|
function $n(e) {
|
|
2974
2981
|
const { children: t, instruction: n, name: r, completed: o, onStart: i = () => {
|
|
2975
|
-
} } = e, [a, l] =
|
|
2982
|
+
} } = e, [a, l] = T(!1), { completedCount: s, tasks: u, nextTask: d } = ke(), c = x(() => vo[r], [r]), h = x(
|
|
2976
2983
|
() => s * 100 / u.length,
|
|
2977
2984
|
[s, u.length]
|
|
2978
2985
|
);
|
|
2979
|
-
return /* @__PURE__ */ p("div", { className:
|
|
2986
|
+
return /* @__PURE__ */ p("div", { className: ee.root, children: /* @__PURE__ */ p("div", { className: `${ee.container} view`, children: [
|
|
2980
2987
|
/* @__PURE__ */ p(
|
|
2981
2988
|
"div",
|
|
2982
2989
|
{
|
|
2983
|
-
style: { width: `${
|
|
2984
|
-
className:
|
|
2990
|
+
style: { width: `${h}%` },
|
|
2991
|
+
className: ee.progress
|
|
2985
2992
|
}
|
|
2986
2993
|
),
|
|
2987
2994
|
/* @__PURE__ */ p(
|
|
2988
|
-
|
|
2995
|
+
ie,
|
|
2989
2996
|
{
|
|
2990
2997
|
show: !a && !o,
|
|
2991
2998
|
as: "div",
|
|
@@ -2996,7 +3003,7 @@ function $n(e) {
|
|
|
2996
3003
|
leaveFrom: "yvlw-translate-x-0",
|
|
2997
3004
|
leaveTo: "yvlw--translate-x-full",
|
|
2998
3005
|
className: "yvlw-absolute yvlw-h-full yvlw-w-full",
|
|
2999
|
-
children: /* @__PURE__ */ p("div", { className: `${
|
|
3006
|
+
children: /* @__PURE__ */ p("div", { className: `${ee.intro}`, children: /* @__PURE__ */ p(
|
|
3000
3007
|
ft,
|
|
3001
3008
|
{
|
|
3002
3009
|
Icon: c.Icon,
|
|
@@ -3011,7 +3018,7 @@ function $n(e) {
|
|
|
3011
3018
|
}
|
|
3012
3019
|
),
|
|
3013
3020
|
/* @__PURE__ */ p(
|
|
3014
|
-
|
|
3021
|
+
ie,
|
|
3015
3022
|
{
|
|
3016
3023
|
as: "div",
|
|
3017
3024
|
show: a && !o,
|
|
@@ -3023,13 +3030,13 @@ function $n(e) {
|
|
|
3023
3030
|
leaveTo: "yvlw-translate-x-full",
|
|
3024
3031
|
className: "yvlw-absolute yvlw-w-full yvlw-h-full",
|
|
3025
3032
|
children: [
|
|
3026
|
-
/* @__PURE__ */ p("div", { className: `${
|
|
3027
|
-
/* @__PURE__ */ p("div", { className:
|
|
3028
|
-
/* @__PURE__ */ p("div", { className:
|
|
3033
|
+
/* @__PURE__ */ p("div", { className: `${ee.content}`, children: t }),
|
|
3034
|
+
/* @__PURE__ */ p("div", { className: ee.instructionsContainer, children: [
|
|
3035
|
+
/* @__PURE__ */ p("div", { className: ee.instructions, children: [
|
|
3029
3036
|
/* @__PURE__ */ p("h2", { children: n.title }),
|
|
3030
3037
|
/* @__PURE__ */ p("p", { className: "subtext", children: n.description })
|
|
3031
3038
|
] }),
|
|
3032
|
-
/* @__PURE__ */ p("div", { className:
|
|
3039
|
+
/* @__PURE__ */ p("div", { className: ee.branding, children: [
|
|
3033
3040
|
/* @__PURE__ */ p("span", { children: "Powered by" }),
|
|
3034
3041
|
" ",
|
|
3035
3042
|
/* @__PURE__ */ p(_l, { size: "custom", className: "yvlw-h-3" })
|
|
@@ -3039,7 +3046,7 @@ function $n(e) {
|
|
|
3039
3046
|
}
|
|
3040
3047
|
),
|
|
3041
3048
|
/* @__PURE__ */ p(
|
|
3042
|
-
|
|
3049
|
+
ie,
|
|
3043
3050
|
{
|
|
3044
3051
|
show: o,
|
|
3045
3052
|
as: "div",
|
|
@@ -3050,7 +3057,7 @@ function $n(e) {
|
|
|
3050
3057
|
leaveFrom: "yvlw-translate-x-0",
|
|
3051
3058
|
leaveTo: "yvlw-translate-x-full",
|
|
3052
3059
|
className: "yvlw-absolute yvlw-w-full yvlw-h-full",
|
|
3053
|
-
children: /* @__PURE__ */ p("div", { className: `${
|
|
3060
|
+
children: /* @__PURE__ */ p("div", { className: `${ee.intro}`, children: /* @__PURE__ */ p(
|
|
3054
3061
|
ft,
|
|
3055
3062
|
{
|
|
3056
3063
|
Icon: c.Icon,
|
|
@@ -3067,17 +3074,17 @@ function $n(e) {
|
|
|
3067
3074
|
)
|
|
3068
3075
|
] }) });
|
|
3069
3076
|
}
|
|
3070
|
-
const
|
|
3071
|
-
function
|
|
3072
|
-
const { difficulty: t } = e, { saveStream: n } = ke(), [r, o] =
|
|
3073
|
-
const
|
|
3074
|
-
c.current.has(
|
|
3077
|
+
const hs = 1, Nt = 8;
|
|
3078
|
+
function _s(e) {
|
|
3079
|
+
const { difficulty: t } = e, { saveStream: n } = ke(), [r, o] = T([]), [i, a] = T("Place face in frame"), [l, s] = T(!1), [u, d] = T(!1), c = b(/* @__PURE__ */ new Set()), h = b(!1), f = b(null), _ = (g) => {
|
|
3080
|
+
const w = g * Nt, F = Math.ceil((w + 1) / El);
|
|
3081
|
+
c.current.has(F) || (c.current.add(F), o(Array.from(c.current))), c.current.size >= Nt && setTimeout(() => {
|
|
3075
3082
|
d(!0);
|
|
3076
3083
|
}, 1e3);
|
|
3077
|
-
},
|
|
3078
|
-
let
|
|
3079
|
-
return
|
|
3080
|
-
},
|
|
3084
|
+
}, v = (g, w) => {
|
|
3085
|
+
let H = Math.atan2(w, g) * (180 / Math.PI);
|
|
3086
|
+
return H < 0 && (H += 360), H;
|
|
3087
|
+
}, m = x(() => {
|
|
3081
3088
|
if (c.current.size === 0)
|
|
3082
3089
|
return 25;
|
|
3083
3090
|
switch (t) {
|
|
@@ -3088,22 +3095,22 @@ function hs(e) {
|
|
|
3088
3095
|
default:
|
|
3089
3096
|
return 10;
|
|
3090
3097
|
}
|
|
3091
|
-
}, []),
|
|
3092
|
-
const { keypoints:
|
|
3093
|
-
return Math.abs(
|
|
3094
|
-
}, { detectFaces:
|
|
3098
|
+
}, []), y = (g) => {
|
|
3099
|
+
const { keypoints: w, box: F } = g, H = { x: F.width * 0.5, y: F.height * 0.5 }, O = w[hs], V = { y: O.y - F.yMin, x: O.x - F.xMin }, S = H.x - V.x, I = V.y - H.y;
|
|
3100
|
+
return Math.abs(S) < m && Math.abs(I) < m ? null : v(S, I);
|
|
3101
|
+
}, { detectFaces: $ } = bn({
|
|
3095
3102
|
frameSize: 280,
|
|
3096
3103
|
validations: ["zoom", "in-frame"],
|
|
3097
3104
|
onFace: (g) => {
|
|
3098
3105
|
s(!0), a("Slowly move head around to complete circle");
|
|
3099
|
-
const
|
|
3100
|
-
|
|
3106
|
+
const w = y(g);
|
|
3107
|
+
w && _(w);
|
|
3101
3108
|
},
|
|
3102
3109
|
onError: (g) => {
|
|
3103
|
-
a(g), o([]), c.current.clear(), f.current = null,
|
|
3110
|
+
a(g), o([]), c.current.clear(), f.current = null, h.current = !1;
|
|
3104
3111
|
}
|
|
3105
3112
|
});
|
|
3106
|
-
return /* @__PURE__ */ p(
|
|
3113
|
+
return /* @__PURE__ */ p(N, { children: /* @__PURE__ */ p(
|
|
3107
3114
|
$n,
|
|
3108
3115
|
{
|
|
3109
3116
|
instruction: {
|
|
@@ -3116,12 +3123,12 @@ function hs(e) {
|
|
|
3116
3123
|
try {
|
|
3117
3124
|
if (!g.current || u)
|
|
3118
3125
|
return;
|
|
3119
|
-
const { videoWidth:
|
|
3120
|
-
|
|
3126
|
+
const { videoWidth: w } = g.current;
|
|
3127
|
+
$({ ref: g, frameSize: w });
|
|
3121
3128
|
} catch {
|
|
3122
3129
|
}
|
|
3123
3130
|
}, onRecord: n, children: /* @__PURE__ */ p(
|
|
3124
|
-
|
|
3131
|
+
Ql,
|
|
3125
3132
|
{
|
|
3126
3133
|
faceDetected: l,
|
|
3127
3134
|
sectionsCount: Nt,
|
|
@@ -3131,15 +3138,15 @@ function hs(e) {
|
|
|
3131
3138
|
}
|
|
3132
3139
|
) });
|
|
3133
3140
|
}
|
|
3134
|
-
const
|
|
3135
|
-
root:
|
|
3136
|
-
sticker:
|
|
3137
|
-
no:
|
|
3138
|
-
yes:
|
|
3141
|
+
const vs = "_root_thujo_1", ms = "_sticker_thujo_4", ys = "_no_thujo_7", gs = "_yes_thujo_12", Ht = {
|
|
3142
|
+
root: vs,
|
|
3143
|
+
sticker: ms,
|
|
3144
|
+
no: ys,
|
|
3145
|
+
yes: gs
|
|
3139
3146
|
};
|
|
3140
|
-
function
|
|
3147
|
+
function ws(e) {
|
|
3141
3148
|
const { show: t, stickers: n } = e;
|
|
3142
|
-
return /* @__PURE__ */ p(
|
|
3149
|
+
return /* @__PURE__ */ p(N, { children: t && /* @__PURE__ */ p("div", { className: Ht.root, children: n.map((r) => /* @__PURE__ */ p(
|
|
3143
3150
|
"div",
|
|
3144
3151
|
{
|
|
3145
3152
|
className: `${Ht.sticker} ${Ht[r]}`,
|
|
@@ -3148,20 +3155,20 @@ function bs(e) {
|
|
|
3148
3155
|
`sticker-${r}`
|
|
3149
3156
|
)) }) });
|
|
3150
3157
|
}
|
|
3151
|
-
const
|
|
3158
|
+
const bs = {
|
|
3152
3159
|
question: "Are you alive?",
|
|
3153
3160
|
errorMessage: "You have to be alive to proceed though",
|
|
3154
3161
|
answer: !0
|
|
3155
|
-
},
|
|
3156
|
-
function
|
|
3157
|
-
const { difficulty: t, questions: n = [
|
|
3158
|
-
const { keypoints: g } =
|
|
3159
|
-
return 90 - Math.atan2(O,
|
|
3160
|
-
},
|
|
3161
|
-
d.current = "inactive", o(n[
|
|
3162
|
+
}, $s = "Wrong answer. Try again";
|
|
3163
|
+
function Es(e) {
|
|
3164
|
+
const { difficulty: t, questions: n = [bs] } = e, [r, o] = T("Keep face in camera"), [i, a] = T(!1), [l, s] = T(!1), { saveStream: u } = ke(), d = b("inactive"), c = b(0), h = b(!1), f = (E) => {
|
|
3165
|
+
const { keypoints: g } = E, w = g[1], F = g[9], H = w.x - F.x, O = w.y - F.y;
|
|
3166
|
+
return 90 - Math.atan2(O, H) * (180 / Math.PI);
|
|
3167
|
+
}, _ = (E) => {
|
|
3168
|
+
d.current = "inactive", o(n[E].question), setTimeout(() => {
|
|
3162
3169
|
d.current = "active";
|
|
3163
3170
|
}, 2e3);
|
|
3164
|
-
},
|
|
3171
|
+
}, v = x(() => {
|
|
3165
3172
|
switch (t) {
|
|
3166
3173
|
case "easy":
|
|
3167
3174
|
return 2;
|
|
@@ -3170,31 +3177,31 @@ function Cs(e) {
|
|
|
3170
3177
|
default:
|
|
3171
3178
|
return 4;
|
|
3172
3179
|
}
|
|
3173
|
-
}, []),
|
|
3180
|
+
}, []), m = (E) => {
|
|
3174
3181
|
try {
|
|
3175
|
-
if (d.current = "inactive", Math.abs(
|
|
3182
|
+
if (d.current = "inactive", Math.abs(E) < v)
|
|
3176
3183
|
throw new Error("Tilt head further to answer");
|
|
3177
|
-
const g =
|
|
3178
|
-
if (g ===
|
|
3179
|
-
c.current += 1, c.current === n.length ? s(!0) :
|
|
3184
|
+
const g = E > 0, w = n[c.current].answer;
|
|
3185
|
+
if (g === w)
|
|
3186
|
+
c.current += 1, c.current === n.length ? s(!0) : _(c.current);
|
|
3180
3187
|
else
|
|
3181
3188
|
throw new Error(
|
|
3182
|
-
n[c.current].errorMessage ||
|
|
3189
|
+
n[c.current].errorMessage || $s
|
|
3183
3190
|
);
|
|
3184
3191
|
} catch (g) {
|
|
3185
3192
|
o(g.message), setTimeout(() => {
|
|
3186
|
-
|
|
3193
|
+
_(c.current);
|
|
3187
3194
|
}, 2e3);
|
|
3188
3195
|
}
|
|
3189
|
-
}, { detectFaces:
|
|
3190
|
-
onFace: (
|
|
3191
|
-
if (
|
|
3196
|
+
}, { detectFaces: y } = bn({
|
|
3197
|
+
onFace: (E) => {
|
|
3198
|
+
if (h.current || (a(!0), h.current = !0, _(c.current)), d.current === "inactive")
|
|
3192
3199
|
return;
|
|
3193
|
-
const g = f(
|
|
3194
|
-
|
|
3200
|
+
const g = f(E);
|
|
3201
|
+
m(g);
|
|
3195
3202
|
},
|
|
3196
|
-
onError: (
|
|
3197
|
-
o(
|
|
3203
|
+
onError: (E) => {
|
|
3204
|
+
o(E);
|
|
3198
3205
|
}
|
|
3199
3206
|
});
|
|
3200
3207
|
return /* @__PURE__ */ p(
|
|
@@ -3206,19 +3213,19 @@ function Cs(e) {
|
|
|
3206
3213
|
},
|
|
3207
3214
|
name: "yes-or-no",
|
|
3208
3215
|
completed: l,
|
|
3209
|
-
children: /* @__PURE__ */ p(wn, { onStream: (
|
|
3216
|
+
children: /* @__PURE__ */ p(wn, { onStream: (E) => {
|
|
3210
3217
|
try {
|
|
3211
|
-
if (!
|
|
3218
|
+
if (!E.current || l)
|
|
3212
3219
|
return;
|
|
3213
|
-
const { videoWidth: g } =
|
|
3214
|
-
|
|
3220
|
+
const { videoWidth: g } = E.current;
|
|
3221
|
+
y({ ref: E, frameSize: g });
|
|
3215
3222
|
} catch {
|
|
3216
3223
|
}
|
|
3217
|
-
}, onRecord: u, children: /* @__PURE__ */ p(
|
|
3224
|
+
}, onRecord: u, children: /* @__PURE__ */ p(ws, { show: i, stickers: ["yes", "no"] }) })
|
|
3218
3225
|
}
|
|
3219
3226
|
);
|
|
3220
3227
|
}
|
|
3221
|
-
function
|
|
3228
|
+
function Cs(e = {}) {
|
|
3222
3229
|
const { onChange: t = () => {
|
|
3223
3230
|
} } = e, n = !!window.DeviceOrientationEvent, r = (o) => {
|
|
3224
3231
|
t({
|
|
@@ -3233,8 +3240,8 @@ function Ts(e = {}) {
|
|
|
3233
3240
|
canUse: n
|
|
3234
3241
|
};
|
|
3235
3242
|
}
|
|
3236
|
-
function
|
|
3237
|
-
const { total: t, onMessage: n, onComplete: r, difficulty: o } = e, i =
|
|
3243
|
+
function Ts(e) {
|
|
3244
|
+
const { total: t, onMessage: n, onComplete: r, difficulty: o } = e, i = b(null), a = b(!0), l = b(null), s = b(null), u = b(0), d = b(!1), c = x(() => {
|
|
3238
3245
|
switch (o) {
|
|
3239
3246
|
case "easy":
|
|
3240
3247
|
return 6;
|
|
@@ -3243,22 +3250,22 @@ function ks(e) {
|
|
|
3243
3250
|
default:
|
|
3244
3251
|
return 8;
|
|
3245
3252
|
}
|
|
3246
|
-
}, []),
|
|
3253
|
+
}, []), h = () => {
|
|
3247
3254
|
if (u.current < t) {
|
|
3248
|
-
const
|
|
3249
|
-
let
|
|
3250
|
-
|
|
3255
|
+
const v = t - u.current;
|
|
3256
|
+
let m = `Nod head ${v} `;
|
|
3257
|
+
v < t && (m += "more "), m += v > 1 ? "times" : "time", n(m);
|
|
3251
3258
|
return;
|
|
3252
3259
|
}
|
|
3253
3260
|
d.current = !0, n("Great, hang on..."), setTimeout(() => {
|
|
3254
3261
|
r();
|
|
3255
3262
|
}, 500);
|
|
3256
|
-
}, { canUse: f } =
|
|
3257
|
-
onChange: (
|
|
3258
|
-
s.current =
|
|
3263
|
+
}, { canUse: f } = Cs({
|
|
3264
|
+
onChange: (v) => {
|
|
3265
|
+
s.current = v;
|
|
3259
3266
|
}
|
|
3260
3267
|
});
|
|
3261
|
-
return { evaluate: (
|
|
3268
|
+
return { evaluate: (v) => {
|
|
3262
3269
|
if (!f) {
|
|
3263
3270
|
n("Cannot perform task. Transfer to mobile device to complete");
|
|
3264
3271
|
return;
|
|
@@ -3273,26 +3280,26 @@ function ks(e) {
|
|
|
3273
3280
|
}
|
|
3274
3281
|
if (d.current)
|
|
3275
3282
|
return;
|
|
3276
|
-
const { keypoints:
|
|
3277
|
-
|
|
3278
|
-
|
|
3279
|
-
),
|
|
3280
|
-
|
|
3281
|
-
|
|
3282
|
-
) /
|
|
3283
|
-
if (
|
|
3283
|
+
const { keypoints: m } = v, y = Le(
|
|
3284
|
+
m[6].x - m[8].x,
|
|
3285
|
+
m[6].y - m[8].y
|
|
3286
|
+
), E = Le(
|
|
3287
|
+
m[2].x - m[1].x,
|
|
3288
|
+
m[2].y - m[1].y
|
|
3289
|
+
) / y * 10;
|
|
3290
|
+
if (E > c) {
|
|
3284
3291
|
if (i.current || !a.current)
|
|
3285
3292
|
return;
|
|
3286
|
-
i.current =
|
|
3293
|
+
i.current = E, a.current = !1, l.current = setTimeout(() => {
|
|
3287
3294
|
i.current = null;
|
|
3288
3295
|
}, 3e3);
|
|
3289
3296
|
} else
|
|
3290
|
-
i.current && i.current -
|
|
3291
|
-
|
|
3297
|
+
i.current && i.current - E > c / 2 && (u.current += 1, i.current = null, l.current && clearTimeout(l.current)), a.current = !0;
|
|
3298
|
+
h();
|
|
3292
3299
|
} };
|
|
3293
3300
|
}
|
|
3294
|
-
function
|
|
3295
|
-
const { onMessage: t, onComplete: n, difficulty: r } = e, o =
|
|
3301
|
+
function ks(e) {
|
|
3302
|
+
const { onMessage: t, onComplete: n, difficulty: r } = e, o = b(!1), i = x(() => {
|
|
3296
3303
|
switch (r) {
|
|
3297
3304
|
case "easy":
|
|
3298
3305
|
return 80;
|
|
@@ -3321,8 +3328,8 @@ function Fs(e) {
|
|
|
3321
3328
|
t("Open your mouth wide");
|
|
3322
3329
|
} };
|
|
3323
3330
|
}
|
|
3324
|
-
function
|
|
3325
|
-
const { total: t, onMessage: n, onComplete: r, difficulty: o } = e, i =
|
|
3331
|
+
function Fs(e) {
|
|
3332
|
+
const { total: t, onMessage: n, onComplete: r, difficulty: o } = e, i = b(!0), a = b(!1), l = b(null), s = b(0), u = x(() => {
|
|
3326
3333
|
switch (o) {
|
|
3327
3334
|
case "easy":
|
|
3328
3335
|
return {
|
|
@@ -3340,38 +3347,38 @@ function xs(e) {
|
|
|
3340
3347
|
open: 30
|
|
3341
3348
|
};
|
|
3342
3349
|
}
|
|
3343
|
-
}, []), d = (
|
|
3344
|
-
i.current && (
|
|
3345
|
-
}, c = (
|
|
3346
|
-
if (!i.current && !(
|
|
3347
|
-
const
|
|
3348
|
-
(
|
|
3350
|
+
}, []), d = (_) => {
|
|
3351
|
+
i.current && (_ >= u.closed || (i.current = !1, l.current = Date.now()));
|
|
3352
|
+
}, c = (_) => {
|
|
3353
|
+
if (!i.current && !(_ < u.open) && (i.current = !0, l.current)) {
|
|
3354
|
+
const v = Date.now(), m = l.current;
|
|
3355
|
+
(v - m) / 1e3 <= 2 && (s.current += 1);
|
|
3349
3356
|
}
|
|
3350
|
-
},
|
|
3357
|
+
}, h = () => {
|
|
3351
3358
|
if (s.current < t) {
|
|
3352
|
-
const
|
|
3353
|
-
let
|
|
3354
|
-
|
|
3359
|
+
const _ = t - s.current;
|
|
3360
|
+
let v = `Blink right eye ${_} `;
|
|
3361
|
+
_ < t && (v += "more "), v += _ > 1 ? "times" : "time", n(v);
|
|
3355
3362
|
return;
|
|
3356
3363
|
}
|
|
3357
3364
|
a.current = !0, n("Great, hang on..."), setTimeout(() => {
|
|
3358
3365
|
r();
|
|
3359
3366
|
}, 500);
|
|
3360
3367
|
};
|
|
3361
|
-
return { evaluate: (
|
|
3368
|
+
return { evaluate: (_) => {
|
|
3362
3369
|
if (a.current)
|
|
3363
3370
|
return;
|
|
3364
|
-
const { keypoints:
|
|
3365
|
-
|
|
3366
|
-
|
|
3367
|
-
),
|
|
3368
|
-
|
|
3369
|
-
|
|
3370
|
-
) /
|
|
3371
|
-
d(
|
|
3371
|
+
const { keypoints: v } = _, m = Le(
|
|
3372
|
+
v[6].x - v[8].x,
|
|
3373
|
+
v[6].y - v[8].y
|
|
3374
|
+
), $ = Le(
|
|
3375
|
+
v[145].x - v[159].x,
|
|
3376
|
+
v[145].y - v[159].y
|
|
3377
|
+
) / m * 100;
|
|
3378
|
+
d($), c($), h();
|
|
3372
3379
|
} };
|
|
3373
3380
|
}
|
|
3374
|
-
function
|
|
3381
|
+
function xs() {
|
|
3375
3382
|
return {
|
|
3376
3383
|
requestDeviceOrientationPermission: async () => {
|
|
3377
3384
|
if (!window.DeviceOrientationEvent)
|
|
@@ -3382,40 +3389,40 @@ function Ss() {
|
|
|
3382
3389
|
}
|
|
3383
3390
|
};
|
|
3384
3391
|
}
|
|
3385
|
-
var
|
|
3386
|
-
const
|
|
3387
|
-
function
|
|
3388
|
-
const { difficulty: t, maxBlinks: n = 5, maxNods: r = 5 } = e, o =
|
|
3389
|
-
if (o.current ===
|
|
3392
|
+
var go = /* @__PURE__ */ ((e) => (e.nod = "nod", e.open_mouth = "open_mouth", e.blink = "blink", e))(go || {});
|
|
3393
|
+
const tr = gl(Object.keys(go));
|
|
3394
|
+
function Ss(e) {
|
|
3395
|
+
const { difficulty: t, maxBlinks: n = 5, maxNods: r = 5 } = e, o = b(0), [i, a] = T("Keep face in camera"), [l, s] = T(!1), [u, d] = T(null), c = b(!1), { requestDeviceOrientationPermission: h } = xs(), f = () => {
|
|
3396
|
+
if (o.current === tr.length - 1) {
|
|
3390
3397
|
s(!0);
|
|
3391
3398
|
return;
|
|
3392
3399
|
}
|
|
3393
3400
|
o.current += 1;
|
|
3394
|
-
},
|
|
3401
|
+
}, _ = Ts({
|
|
3395
3402
|
total: Math.floor(Math.random() * r + 1),
|
|
3396
3403
|
difficulty: t,
|
|
3397
3404
|
onMessage: (g) => a(g),
|
|
3398
3405
|
onComplete: f
|
|
3399
|
-
}),
|
|
3406
|
+
}), v = ks({
|
|
3400
3407
|
difficulty: t,
|
|
3401
3408
|
onMessage: (g) => a(g),
|
|
3402
3409
|
onComplete: f
|
|
3403
|
-
}),
|
|
3410
|
+
}), m = Fs({
|
|
3404
3411
|
total: Math.floor(Math.random() * n + 1),
|
|
3405
3412
|
difficulty: t,
|
|
3406
3413
|
onMessage: (g) => a(g),
|
|
3407
3414
|
onComplete: f
|
|
3408
|
-
}), { detectFaces:
|
|
3415
|
+
}), { detectFaces: y } = bn({
|
|
3409
3416
|
onFace: (g) => {
|
|
3410
|
-
switch (c.current || (c.current = !0),
|
|
3417
|
+
switch (c.current || (c.current = !0), tr[o.current]) {
|
|
3411
3418
|
case "nod":
|
|
3412
|
-
|
|
3419
|
+
_.evaluate(g);
|
|
3413
3420
|
break;
|
|
3414
3421
|
case "open_mouth":
|
|
3415
|
-
|
|
3422
|
+
v.evaluate(g);
|
|
3416
3423
|
break;
|
|
3417
3424
|
case "blink":
|
|
3418
|
-
|
|
3425
|
+
m.evaluate(g);
|
|
3419
3426
|
break;
|
|
3420
3427
|
}
|
|
3421
3428
|
},
|
|
@@ -3434,66 +3441,74 @@ function Ps(e) {
|
|
|
3434
3441
|
completed: l,
|
|
3435
3442
|
onStart: async () => {
|
|
3436
3443
|
try {
|
|
3437
|
-
await
|
|
3444
|
+
await h();
|
|
3438
3445
|
} catch (g) {
|
|
3439
|
-
const
|
|
3440
|
-
a(
|
|
3446
|
+
const w = g;
|
|
3447
|
+
a(w.message), d(w);
|
|
3441
3448
|
}
|
|
3442
3449
|
},
|
|
3443
|
-
children: u ? /* @__PURE__ */ p(
|
|
3450
|
+
children: u ? /* @__PURE__ */ p(N, {}) : /* @__PURE__ */ p(wn, { onStream: async (g) => {
|
|
3444
3451
|
try {
|
|
3445
3452
|
if (!g.current || l)
|
|
3446
3453
|
return;
|
|
3447
|
-
const { videoWidth:
|
|
3448
|
-
await
|
|
3454
|
+
const { videoWidth: w } = g.current;
|
|
3455
|
+
await y({ ref: g, frameSize: w, throttleInterval: 500 });
|
|
3449
3456
|
} catch {
|
|
3450
3457
|
}
|
|
3451
3458
|
} })
|
|
3452
3459
|
}
|
|
3453
3460
|
);
|
|
3454
3461
|
}
|
|
3455
|
-
function
|
|
3456
|
-
var
|
|
3457
|
-
const { toggleColorScheme: e, getColorScheme: t, setColorScheme: n } =
|
|
3462
|
+
function Ps() {
|
|
3463
|
+
var g;
|
|
3464
|
+
const { toggleColorScheme: e, getColorScheme: t, setColorScheme: n } = Wl(), {
|
|
3465
|
+
user: r,
|
|
3466
|
+
tasks: o,
|
|
3467
|
+
currentTaskIndex: i,
|
|
3468
|
+
completed: a,
|
|
3469
|
+
onComplete: l,
|
|
3470
|
+
faceDetector: s,
|
|
3471
|
+
presentation: u
|
|
3472
|
+
} = ke(), [d, c] = T(!1), [h, f] = T(!1), [_, v] = T(null), [m, y] = T(!1);
|
|
3458
3473
|
M(() => {
|
|
3459
3474
|
const w = t();
|
|
3460
3475
|
n(w);
|
|
3461
3476
|
}, []);
|
|
3462
|
-
const
|
|
3477
|
+
const $ = async () => {
|
|
3463
3478
|
try {
|
|
3464
|
-
|
|
3479
|
+
c(!0), v(null), await l(), u === "page" && y(!0);
|
|
3465
3480
|
} catch (w) {
|
|
3466
3481
|
v(w.message);
|
|
3467
3482
|
} finally {
|
|
3468
|
-
|
|
3483
|
+
c(!1);
|
|
3469
3484
|
}
|
|
3470
|
-
},
|
|
3485
|
+
}, E = A(
|
|
3471
3486
|
(w) => w === i ? B.active : i > w ? B.completed : "subtext",
|
|
3472
3487
|
[i]
|
|
3473
3488
|
);
|
|
3474
3489
|
return /* @__PURE__ */ p("div", { className: B.root, children: /* @__PURE__ */ p("div", { className: B.container, children: [
|
|
3475
3490
|
/* @__PURE__ */ p("div", { className: `${B.lhs} divider`, children: [
|
|
3476
3491
|
/* @__PURE__ */ p("div", { className: B.info, children: [
|
|
3477
|
-
/* @__PURE__ */ p(
|
|
3492
|
+
/* @__PURE__ */ p(Ul, {}),
|
|
3478
3493
|
/* @__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
3494
|
/* @__PURE__ */ p("ol", { children: [
|
|
3480
|
-
o.map((w,
|
|
3495
|
+
o.map((w, F) => /* @__PURE__ */ p("li", { className: E(F), children: vo[w.id].name }, `task-${F}`)),
|
|
3481
3496
|
/* @__PURE__ */ p("li", { className: a ? B.active : "", children: "Complete! 🎉" })
|
|
3482
3497
|
] })
|
|
3483
3498
|
] }),
|
|
3484
3499
|
/* @__PURE__ */ p("footer", { className: "divider", children: [
|
|
3485
3500
|
/* @__PURE__ */ p("div", { children: "Powered by Youverify" }),
|
|
3486
3501
|
/* @__PURE__ */ p("div", { onClick: () => e(), role: "button", children: [
|
|
3487
|
-
/* @__PURE__ */ p("div", { className: "dark:yvlw-hidden", children: /* @__PURE__ */ p(
|
|
3488
|
-
/* @__PURE__ */ p("div", { className: "yvlw-hidden dark:yvlw-block", children: /* @__PURE__ */ p(
|
|
3502
|
+
/* @__PURE__ */ p("div", { className: "dark:yvlw-hidden", children: /* @__PURE__ */ p(po, {}) }),
|
|
3503
|
+
/* @__PURE__ */ p("div", { className: "yvlw-hidden dark:yvlw-block", children: /* @__PURE__ */ p(sl, {}) })
|
|
3489
3504
|
] })
|
|
3490
3505
|
] })
|
|
3491
3506
|
] }),
|
|
3492
3507
|
/* @__PURE__ */ p("div", { className: B.main, children: /* @__PURE__ */ p("div", { className: B.content, children: [
|
|
3493
3508
|
/* @__PURE__ */ p(
|
|
3494
|
-
|
|
3509
|
+
ie,
|
|
3495
3510
|
{
|
|
3496
|
-
show: !
|
|
3511
|
+
show: !h,
|
|
3497
3512
|
as: "div",
|
|
3498
3513
|
leave: "yvlw-transform yvlw-transition yvlw-duration-300",
|
|
3499
3514
|
leaveFrom: "yvlw-translate-y-0 yvlw-opacity-100",
|
|
@@ -3504,35 +3519,35 @@ function Ms() {
|
|
|
3504
3519
|
children: /* @__PURE__ */ p("div", { className: B.completed, children: s ? /* @__PURE__ */ p(
|
|
3505
3520
|
ft,
|
|
3506
3521
|
{
|
|
3507
|
-
Icon:
|
|
3522
|
+
Icon: fl,
|
|
3508
3523
|
title: "Liveness Check",
|
|
3509
3524
|
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.",
|
|
3510
3525
|
actionText: "Start Liveness Test",
|
|
3511
|
-
onActionClick: () =>
|
|
3526
|
+
onActionClick: () => f(!0)
|
|
3512
3527
|
}
|
|
3513
|
-
) : /* @__PURE__ */ p(
|
|
3528
|
+
) : /* @__PURE__ */ p(yo, { size: "lg" }) })
|
|
3514
3529
|
}
|
|
3515
3530
|
),
|
|
3516
|
-
o.map((w,
|
|
3517
|
-
let
|
|
3531
|
+
o.map((w, F) => {
|
|
3532
|
+
let H;
|
|
3518
3533
|
switch (w.id) {
|
|
3519
3534
|
case "complete-the-circle":
|
|
3520
|
-
|
|
3535
|
+
H = /* @__PURE__ */ p(_s, { ...w });
|
|
3521
3536
|
break;
|
|
3522
3537
|
case "yes-or-no":
|
|
3523
|
-
|
|
3538
|
+
H = /* @__PURE__ */ p(Es, { ...w });
|
|
3524
3539
|
break;
|
|
3525
3540
|
case "motions":
|
|
3526
|
-
|
|
3541
|
+
H = /* @__PURE__ */ p(Ss, { ...w });
|
|
3527
3542
|
break;
|
|
3528
3543
|
default:
|
|
3529
|
-
|
|
3544
|
+
H = /* @__PURE__ */ p(N, {});
|
|
3530
3545
|
break;
|
|
3531
3546
|
}
|
|
3532
3547
|
return /* @__PURE__ */ p(
|
|
3533
|
-
|
|
3548
|
+
ie,
|
|
3534
3549
|
{
|
|
3535
|
-
show:
|
|
3550
|
+
show: h && !a && i === F,
|
|
3536
3551
|
appear: !0,
|
|
3537
3552
|
as: "div",
|
|
3538
3553
|
leave: "yvlw-transform yvlw-transition yvlw-duration-300",
|
|
@@ -3541,15 +3556,15 @@ function Ms() {
|
|
|
3541
3556
|
enterFrom: "yvlw-translate-y-full yvlw-opacity-0",
|
|
3542
3557
|
enterTo: "yvlw-translate-y-0 yvlw-opacity-100",
|
|
3543
3558
|
className: "yvlw-h-full",
|
|
3544
|
-
children:
|
|
3559
|
+
children: H
|
|
3545
3560
|
},
|
|
3546
|
-
`task-${
|
|
3561
|
+
`task-${F}`
|
|
3547
3562
|
);
|
|
3548
3563
|
}),
|
|
3549
3564
|
/* @__PURE__ */ p(
|
|
3550
|
-
|
|
3565
|
+
ie,
|
|
3551
3566
|
{
|
|
3552
|
-
show:
|
|
3567
|
+
show: h && a,
|
|
3553
3568
|
as: "div",
|
|
3554
3569
|
leave: "yvlw-transform yvlw-transition yvlw-duration-300",
|
|
3555
3570
|
leaveFrom: "yvlw-translate-y-0 yvlw-opacity-100",
|
|
@@ -3560,13 +3575,14 @@ function Ms() {
|
|
|
3560
3575
|
children: /* @__PURE__ */ p("div", { className: B.completed, children: /* @__PURE__ */ p(
|
|
3561
3576
|
ft,
|
|
3562
3577
|
{
|
|
3563
|
-
Icon:
|
|
3564
|
-
title: "
|
|
3565
|
-
description: "Your Identity verification has been completed successfully. Thanks for your patience",
|
|
3578
|
+
Icon: pl,
|
|
3579
|
+
title: m ? "All Set!" : "Completed",
|
|
3580
|
+
description: m ? "You can now close or exit the window" : "Your Identity verification has been completed successfully. Thanks for your patience",
|
|
3566
3581
|
actionText: "Finish",
|
|
3567
|
-
loading:
|
|
3568
|
-
onActionClick:
|
|
3569
|
-
|
|
3582
|
+
loading: d,
|
|
3583
|
+
onActionClick: $,
|
|
3584
|
+
hideButton: m,
|
|
3585
|
+
children: _ && /* @__PURE__ */ p("div", { className: "yvlw-mt-3", children: _ })
|
|
3570
3586
|
}
|
|
3571
3587
|
) })
|
|
3572
3588
|
}
|
|
@@ -3575,7 +3591,7 @@ function Ms() {
|
|
|
3575
3591
|
/* @__PURE__ */ p("div", { className: `${B.rhs} divider`, children: r && /* @__PURE__ */ p("div", { className: `${B.profile} divider`, children: [
|
|
3576
3592
|
/* @__PURE__ */ p("div", { children: /* @__PURE__ */ p("div", { className: B.avatar, children: [
|
|
3577
3593
|
r.firstName.charAt(0).toUpperCase(),
|
|
3578
|
-
(
|
|
3594
|
+
(g = r.lastName) == null ? void 0 : g.charAt(0).toUpperCase()
|
|
3579
3595
|
] }) }),
|
|
3580
3596
|
/* @__PURE__ */ p("div", { children: [
|
|
3581
3597
|
/* @__PURE__ */ p("h4", { children: [
|
|
@@ -3588,7 +3604,7 @@ function Ms() {
|
|
|
3588
3604
|
] }) })
|
|
3589
3605
|
] }) });
|
|
3590
3606
|
}
|
|
3591
|
-
function
|
|
3607
|
+
function Ms(e) {
|
|
3592
3608
|
const {
|
|
3593
3609
|
tasks: t,
|
|
3594
3610
|
namespace: n,
|
|
@@ -3601,11 +3617,11 @@ function Ls(e) {
|
|
|
3601
3617
|
presentation: s = "modal",
|
|
3602
3618
|
publicKey: u,
|
|
3603
3619
|
metadata: d
|
|
3604
|
-
} = e, [c,
|
|
3605
|
-
|
|
3620
|
+
} = e, [c, h] = T(e.show), f = () => {
|
|
3621
|
+
h(!1), i();
|
|
3606
3622
|
};
|
|
3607
3623
|
return /* @__PURE__ */ p(
|
|
3608
|
-
|
|
3624
|
+
kl,
|
|
3609
3625
|
{
|
|
3610
3626
|
namespace: n,
|
|
3611
3627
|
publicKey: u,
|
|
@@ -3616,28 +3632,29 @@ function Ls(e) {
|
|
|
3616
3632
|
onSuccess: a,
|
|
3617
3633
|
onFailure: l,
|
|
3618
3634
|
metadata: d,
|
|
3635
|
+
presentation: s,
|
|
3619
3636
|
children: /* @__PURE__ */ p(
|
|
3620
|
-
|
|
3637
|
+
el,
|
|
3621
3638
|
{
|
|
3622
3639
|
id: n,
|
|
3623
3640
|
open: s === "page" ? !0 : c,
|
|
3624
3641
|
onClose: f,
|
|
3625
3642
|
transition: !0,
|
|
3626
|
-
className: `${
|
|
3643
|
+
className: `${ll.root} ${ot.root} ${ot[s]}`,
|
|
3627
3644
|
style: {
|
|
3628
|
-
"--branding-color": (o == null ? void 0 : o.color) ??
|
|
3645
|
+
"--branding-color": (o == null ? void 0 : o.color) ?? Cl
|
|
3629
3646
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
3630
3647
|
},
|
|
3631
3648
|
children: [
|
|
3632
|
-
s === "modal" && /* @__PURE__ */ p("div", { onClick: f, role: "button", className: ot.close, children: /* @__PURE__ */ p(
|
|
3633
|
-
/* @__PURE__ */ p(
|
|
3649
|
+
s === "modal" && /* @__PURE__ */ p("div", { onClick: f, role: "button", className: ot.close, children: /* @__PURE__ */ p(hl, { className: "yvlw-text-white" }) }),
|
|
3650
|
+
/* @__PURE__ */ p(fo, { className: `${ot.container}`, children: /* @__PURE__ */ p(Ps, {}) })
|
|
3634
3651
|
]
|
|
3635
3652
|
}
|
|
3636
3653
|
)
|
|
3637
3654
|
}
|
|
3638
3655
|
);
|
|
3639
3656
|
}
|
|
3640
|
-
class
|
|
3657
|
+
class Hs {
|
|
3641
3658
|
constructor(t) {
|
|
3642
3659
|
this.tasks = [], this.container = null, this.namespace = "liveness-web-sdk";
|
|
3643
3660
|
const { presentation: n = "modal" } = t;
|
|
@@ -3654,7 +3671,7 @@ class Ds {
|
|
|
3654
3671
|
async start(t) {
|
|
3655
3672
|
t && (this.tasks = t), this.validateOptions(), this.container = document.createElement("div"), document.body.appendChild(this.container), Pe(
|
|
3656
3673
|
/* @__PURE__ */ p(
|
|
3657
|
-
|
|
3674
|
+
Ms,
|
|
3658
3675
|
{
|
|
3659
3676
|
namespace: this.namespace,
|
|
3660
3677
|
publicKey: this.props.publicKey,
|
|
@@ -3681,5 +3698,5 @@ class Ds {
|
|
|
3681
3698
|
}
|
|
3682
3699
|
}
|
|
3683
3700
|
export {
|
|
3684
|
-
|
|
3701
|
+
Hs as default
|
|
3685
3702
|
};
|