youverify-liveness-web 0.1.31 → 0.1.32
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 +924 -947
- package/dist/index.umd.cjs +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
(function(){"use strict";try{if(typeof document<"u"){var t=document.createElement("style");t.appendChild(document.createTextNode('@import"https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap";*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }.yvlw-absolute{position:absolute}.yvlw-m-0{margin:0}.yvlw-mx-auto{margin-left:auto;margin-right:auto}.yvlw-mb-12{margin-bottom:3rem}.yvlw-mt-12{margin-top:3rem}.yvlw-mt-3{margin-top:.75rem}.yvlw-flex{display:flex}.yvlw-hidden{display:none}.yvlw-h-10{height:2.5rem}.yvlw-h-20{height:5rem}.yvlw-h-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-border-t{border-top-width:1px}.yvlw-border-gray-200{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity))}.yvlw-bg-black\\/20{background-color:#0003}.yvlw-p-0{padding:0}.yvlw-px-4{padding-left:1rem;padding-right:1rem}.yvlw-pb-6{padding-bottom:1.5rem}.yvlw-pt-4{padding-top:1rem}.yvlw-text-center{text-align:center}.yvlw-text-xs{font-size:.75rem;line-height:1rem}.yvlw-text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.yvlw-opacity-0{opacity:0}.yvlw-opacity-100{opacity:1}.yvlw-transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.yvlw-duration-200{transition-duration:.2s}.yvlw-duration-300{transition-duration:.3s}.yvlw-ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}.subtext{--tw-text-opacity: 1;color:rgb(100 116 139 / var(--tw-text-opacity))}.subtext:where([liveness-web-sdk-color-scheme=dark],[liveness-web-sdk-color-scheme=dark] *){--tw-text-opacity: 1;color:rgb(148 163 184 / var(--tw-text-opacity))}.divider{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity))}.divider:where([liveness-web-sdk-color-scheme=dark],[liveness-web-sdk-color-scheme=dark] *){--tw-border-opacity: 1;border-color:rgb(31 41 55 / var(--tw-border-opacity))}.dark\\:yvlw-block:where([liveness-web-sdk-color-scheme=dark],[liveness-web-sdk-color-scheme=dark] *){display:block}.dark\\:yvlw-hidden:where([liveness-web-sdk-color-scheme=dark],[liveness-web-sdk-color-scheme=dark] *){display:none}.dark\\:yvlw-border-gray-800:where([liveness-web-sdk-color-scheme=dark],[liveness-web-sdk-color-scheme=dark] *){--tw-border-opacity: 1;border-color:rgb(31 41 55 / var(--tw-border-opacity))}._root_1duny_1{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:DM Sans,sans-serif;position:fixed;top:0;right:0;bottom:0;left:0;z-index:50;display:flex;min-height:100vh;min-height:-webkit-fill-available;align-items:center;justify-content:center;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.3s;transition-timing-function:cubic-bezier(0,0,.2,1)}._root_1duny_1[data-closed]{opacity:0}._root_1duny_1._modal_1duny_10{background-color:#0000004d}@media (min-width: 768px){._root_1duny_1._modal_1duny_10{padding:1rem}._root_1duny_1._modal_1duny_10 ._container_1duny_13{border-radius:.75rem}}._root_1duny_1._modal_1duny_10 ._container_1duny_13{max-width:1500px;max-height:700px}@media (min-width: 768px){._root_1duny_1._page_1duny_18{padding:0}}._root_1duny_1 ._close_1duny_21{position:absolute;top:.5rem;left:.5rem;display:flex;align-items:center;justify-content:center;z-index:20;height:1.5rem;width:1.5rem;border-radius:9999px;background-color:#00000080}._root_1duny_1 ._close_1duny_21 svg{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}._root_1duny_1 ._close_1duny_21 svg:hover{--tw-rotate: 90deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}._root_1duny_1 ._container_1duny_13{height:100%;width:100%;--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}._root_1duny_1 ._container_1duny_13:where([liveness-web-sdk-color-scheme=dark],[liveness-web-sdk-color-scheme=dark] *){--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}._root_1h6qm_1 *,._root_1h6qm_1 :before,._root_1h6qm_1 :after{box-sizing:border-box;border-width:0;border-style:solid}._root_1h6qm_1 :before,._root_1h6qm_1 :after{--tw-content: ""}._root_1h6qm_1 html,._root_1h6qm_1 :host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";-webkit-tap-highlight-color:transparent}._root_1h6qm_1 body{margin:0;line-height:inherit}._root_1h6qm_1 hr{height:0;color:inherit;border-top-width:1px}._root_1h6qm_1 abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}._root_1h6qm_1 h1,._root_1h6qm_1 h2,._root_1h6qm_1 h3,._root_1h6qm_1 h4,._root_1h6qm_1 h5,._root_1h6qm_1 h6{font-size:inherit;font-weight:inherit}._root_1h6qm_1 a{color:inherit;text-decoration:inherit}._root_1h6qm_1 b,._root_1h6qm_1 strong{font-weight:bolder}._root_1h6qm_1 code,._root_1h6qm_1 kbd,._root_1h6qm_1 samp,._root_1h6qm_1 pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}._root_1h6qm_1 small{font-size:80%}._root_1h6qm_1 sub,._root_1h6qm_1 sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}._root_1h6qm_1 sub{bottom:-.25em}._root_1h6qm_1 sup{top:-.5em}._root_1h6qm_1 table{text-indent:0;border-color:inherit;border-collapse:collapse}._root_1h6qm_1 button,._root_1h6qm_1 input,._root_1h6qm_1 optgroup,._root_1h6qm_1 select,._root_1h6qm_1 textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}._root_1h6qm_1 button,._root_1h6qm_1 select{text-transform:none}._root_1h6qm_1 button,._root_1h6qm_1 input:where([type=button]),._root_1h6qm_1 input:where([type=reset]),._root_1h6qm_1 input:where([type=submit]){-moz-appearance:button;appearance:button;-webkit-appearance:button;background-color:transparent;background-image:none}._root_1h6qm_1 :-moz-focusring{outline:auto}._root_1h6qm_1 :-moz-ui-invalid{box-shadow:none}._root_1h6qm_1 progress{vertical-align:baseline}._root_1h6qm_1 ::-webkit-inner-spin-button,._root_1h6qm_1 ::-webkit-outer-spin-button{height:auto}._root_1h6qm_1 [type=search]{-moz-appearance:textfield;appearance:textfield;-webkit-appearance:textfield;outline-offset:-2px}._root_1h6qm_1 ::-webkit-search-decoration{-webkit-appearance:none}._root_1h6qm_1 ::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}._root_1h6qm_1 summary{display:list-item}._root_1h6qm_1 blockquote,._root_1h6qm_1 dl,._root_1h6qm_1 dd,._root_1h6qm_1 h1,._root_1h6qm_1 h2,._root_1h6qm_1 h3,._root_1h6qm_1 h4,._root_1h6qm_1 h5,._root_1h6qm_1 h6,._root_1h6qm_1 hr,._root_1h6qm_1 figure,._root_1h6qm_1 p,._root_1h6qm_1 pre{margin:0}._root_1h6qm_1 fieldset{margin:0;padding:0}._root_1h6qm_1 legend{padding:0}._root_1h6qm_1 ol,._root_1h6qm_1 ul,._root_1h6qm_1 menu{list-style:none;margin:0;padding:0}._root_1h6qm_1 dialog{padding:0}._root_1h6qm_1 textarea{resize:vertical}._root_1h6qm_1 input::-moz-placeholder,._root_1h6qm_1 textarea::-moz-placeholder{opacity:1;color:#9ca3af}._root_1h6qm_1 input::placeholder,._root_1h6qm_1 textarea::placeholder{opacity:1;color:#9ca3af}._root_1h6qm_1 button,._root_1h6qm_1 [role=button]{cursor:pointer}._root_1h6qm_1 :disabled{cursor:default}._root_1h6qm_1 img,._root_1h6qm_1 svg,._root_1h6qm_1 video,._root_1h6qm_1 canvas,._root_1h6qm_1 audio,._root_1h6qm_1 iframe,._root_1h6qm_1 embed,._root_1h6qm_1 object{display:block}._root_1h6qm_1 [hidden]{display:none}._root_vqy7d_1{height:100%}._root_vqy7d_1 ._container_vqy7d_4{display:flex;height:100%}._root_vqy7d_1 ._container_vqy7d_4 ._lhs_vqy7d_7{display:none;width:20%;flex-direction:column;justify-content:space-between}@media (min-width: 1280px){._root_vqy7d_1 ._container_vqy7d_4 ._lhs_vqy7d_7{display:flex}}._root_vqy7d_1 ._container_vqy7d_4 ._lhs_vqy7d_7{padding-top:.75rem;padding-bottom:.75rem}._root_vqy7d_1 ._container_vqy7d_4 ._lhs_vqy7d_7 ._info_vqy7d_11>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(2rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(2rem * var(--tw-space-y-reverse))}._root_vqy7d_1 ._container_vqy7d_4 ._lhs_vqy7d_7 ._info_vqy7d_11{padding-left:1.5rem;padding-right:1.5rem}._root_vqy7d_1 ._container_vqy7d_4 ._lhs_vqy7d_7 ._info_vqy7d_11 ol{position:relative;margin:0;list-style-type:none;padding:0}._root_vqy7d_1 ._container_vqy7d_4 ._lhs_vqy7d_7 ._info_vqy7d_11 ol li{counter-increment:item;margin-bottom:24px;position:relative;font-size:.875rem;line-height:1.25rem;display:flex;align-items:center}._root_vqy7d_1 ._container_vqy7d_4 ._lhs_vqy7d_7 ._info_vqy7d_11 ol li:before{width:28px;height:28px;border-radius:9999px;border-width:2px;--tw-border-opacity: 1;border-color:rgb(107 114 128 / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:rgb(75 85 99 / var(--tw-bg-opacity))}._root_vqy7d_1 ._container_vqy7d_4 ._lhs_vqy7d_7 ._info_vqy7d_11 ol li:where([liveness-web-sdk-color-scheme=dark],[liveness-web-sdk-color-scheme=dark] *):before{--tw-border-opacity: 1;border-color:rgb(55 65 81 / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}._root_vqy7d_1 ._container_vqy7d_4 ._lhs_vqy7d_7 ._info_vqy7d_11 ol li:before{margin-right:1rem;display:flex;align-items:center;justify-content:center;font-size:.75rem;line-height:1rem;--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity))}._root_vqy7d_1 ._container_vqy7d_4 ._lhs_vqy7d_7 ._info_vqy7d_11 ol li:where([liveness-web-sdk-color-scheme=dark],[liveness-web-sdk-color-scheme=dark] *):before{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}._root_vqy7d_1 ._container_vqy7d_4 ._lhs_vqy7d_7 ._info_vqy7d_11 ol li:before{content:counter(item);flex-shrink:0}._root_vqy7d_1 ._container_vqy7d_4 ._lhs_vqy7d_7 ._info_vqy7d_11 ol li._active_vqy7d_32{font-weight:500}._root_vqy7d_1 ._container_vqy7d_4 ._lhs_vqy7d_7 ._info_vqy7d_11 ol li._active_vqy7d_32:where([liveness-web-sdk-color-scheme=dark],[liveness-web-sdk-color-scheme=dark] *){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}._root_vqy7d_1 ._container_vqy7d_4 ._lhs_vqy7d_7 ._info_vqy7d_11 ol li._active_vqy7d_32:before{background-color:var(--branding-color);border-style:none;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}._root_vqy7d_1 ._container_vqy7d_4 ._lhs_vqy7d_7 ._info_vqy7d_11 ol li._completed_vqy7d_39{font-weight:500;text-decoration-line:line-through}._root_vqy7d_1 ._container_vqy7d_4 ._lhs_vqy7d_7 ._info_vqy7d_11 ol li._completed_vqy7d_39:where([liveness-web-sdk-color-scheme=dark],[liveness-web-sdk-color-scheme=dark] *){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}._root_vqy7d_1 ._container_vqy7d_4 ._lhs_vqy7d_7 ._info_vqy7d_11 ol li._completed_vqy7d_39:before{background-color:var(--branding-color);border-style:none;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}._root_vqy7d_1 ._container_vqy7d_4 ._lhs_vqy7d_7 ._info_vqy7d_11 ol li:after{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity))}._root_vqy7d_1 ._container_vqy7d_4 ._lhs_vqy7d_7 ._info_vqy7d_11 ol li:where([liveness-web-sdk-color-scheme=dark],[liveness-web-sdk-color-scheme=dark] *):after{--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}._root_vqy7d_1 ._container_vqy7d_4 ._lhs_vqy7d_7 ._info_vqy7d_11 ol li:after{top:28px;bottom:-24px;left:14px;content:"";position:absolute;width:1px}._root_vqy7d_1 ._container_vqy7d_4 ._lhs_vqy7d_7 ._info_vqy7d_11 ol li:last-child:after{content:none}._root_vqy7d_1 ._container_vqy7d_4 ._lhs_vqy7d_7 footer{display:flex;align-items:center;justify-content:space-between;padding:.75rem 1.5rem}._root_vqy7d_1 ._container_vqy7d_4 ._rhs_vqy7d_62{display:none;width:20%}._root_vqy7d_1 ._container_vqy7d_4 ._rhs_vqy7d_62>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}._root_vqy7d_1 ._container_vqy7d_4 ._rhs_vqy7d_62{padding-top:.75rem;padding-bottom:.75rem}@media (min-width: 1280px){._root_vqy7d_1 ._container_vqy7d_4 ._rhs_vqy7d_62{display:block}}._root_vqy7d_1 ._container_vqy7d_4 ._rhs_vqy7d_62 ._profile_vqy7d_65{display:flex;align-items:center;gap:.5rem;padding:1rem 1.5rem}._root_vqy7d_1 ._container_vqy7d_4 ._rhs_vqy7d_62 ._profile_vqy7d_65 ._avatar_vqy7d_68{height:2.5rem;width:2.5rem;border-radius:9999px;--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity))}._root_vqy7d_1 ._container_vqy7d_4 ._rhs_vqy7d_62 ._profile_vqy7d_65 ._avatar_vqy7d_68:where([liveness-web-sdk-color-scheme=dark],[liveness-web-sdk-color-scheme=dark] *){--tw-bg-opacity: 1;background-color:rgb(107 114 128 / var(--tw-bg-opacity))}._root_vqy7d_1 ._container_vqy7d_4 ._rhs_vqy7d_62 ._profile_vqy7d_65 ._avatar_vqy7d_68{display:flex;align-items:center;justify-content:center;font-size:1.125rem;line-height:1.75rem;font-weight:500}._root_vqy7d_1 ._container_vqy7d_4 ._rhs_vqy7d_62 ._profile_vqy7d_65 h4{margin-bottom:-.25rem;text-overflow:ellipsis;font-weight:600;--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}._root_vqy7d_1 ._container_vqy7d_4 ._rhs_vqy7d_62 ._profile_vqy7d_65 h4:where([liveness-web-sdk-color-scheme=dark],[liveness-web-sdk-color-scheme=dark] *){--tw-text-opacity: 1;color:rgb(243 244 246 / var(--tw-text-opacity))}._root_vqy7d_1 ._container_vqy7d_4 ._rhs_vqy7d_62 ._profile_vqy7d_65 p{margin-top:0;margin-bottom:0;font-size:.75rem;line-height:1rem}._root_vqy7d_1 ._container_vqy7d_4 ._rhs_vqy7d_62 footer>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}._root_vqy7d_1 ._container_vqy7d_4 ._rhs_vqy7d_62 footer{padding-left:1.5rem;padding-right:1.5rem;font-size:.75rem;line-height:1rem;--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}._root_vqy7d_1 ._container_vqy7d_4 ._main_vqy7d_81{flex:1 1 0%}@media (min-width: 768px){._root_vqy7d_1 ._container_vqy7d_4 ._main_vqy7d_81{padding-top:1rem;padding-bottom:1rem}}._root_vqy7d_1 ._container_vqy7d_4 ._main_vqy7d_81 ._content_vqy7d_84{margin-left:auto;margin-right:auto;height:100%;width:100%;overflow:hidden;border-radius:1rem;border-width:1px;--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity))}._root_vqy7d_1 ._container_vqy7d_4 ._main_vqy7d_81 ._content_vqy7d_84:where([liveness-web-sdk-color-scheme=dark],[liveness-web-sdk-color-scheme=dark] *){--tw-border-opacity: 1;border-color:rgb(31 41 55 / var(--tw-border-opacity))}._root_vqy7d_1 ._container_vqy7d_4 ._main_vqy7d_81 ._content_vqy7d_84{max-width:500px}._root_vqy7d_1 ._container_vqy7d_4 ._main_vqy7d_81 ._completed_vqy7d_39{display:flex;height:100%;width:100%;align-items:center;justify-content:center}._root_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_5hgaj_1{height:100%;text-align:center}._root_5hgaj_1 ._container_5hgaj_4{position:relative;height:100%}._root_5hgaj_1 ._container_5hgaj_4 ._progress_5hgaj_7{background-color:var(--branding-color);position:absolute;top:0;left:0;height:4px;border-radius:.5rem;z-index:2}._root_5hgaj_1 ._container_5hgaj_4 ._intro_5hgaj_12{display:flex;height:100%;flex-direction:column;align-items:center;justify-content:center;padding:1.5rem 1rem}._root_5hgaj_1 ._container_5hgaj_4 ._content_5hgaj_15{height:70%;width:100%}._root_5hgaj_1 ._container_5hgaj_4 ._branding_5hgaj_18{position:absolute;left:0;right:0;bottom:1.5rem;text-align:center;font-size:.75rem;line-height:1rem;font-weight:500;display:flex;align-items:center;justify-content:center}._root_5hgaj_1 ._container_5hgaj_4 ._branding_5hgaj_18>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.25rem * var(--tw-space-x-reverse));margin-left:calc(.25rem * calc(1 - var(--tw-space-x-reverse)))}._root_5hgaj_1 ._container_5hgaj_4 ._instructionsContainer_5hgaj_22{border-top-width:1px;--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity))}._root_5hgaj_1 ._container_5hgaj_4 ._instructionsContainer_5hgaj_22:where([liveness-web-sdk-color-scheme=dark],[liveness-web-sdk-color-scheme=dark] *){--tw-border-opacity: 1;border-color:rgb(31 41 55 / var(--tw-border-opacity))}._root_5hgaj_1 ._container_5hgaj_4 ._instructions_5hgaj_22{margin-left:auto;margin-right:auto;padding:1rem 1rem 1.5rem;text-align:center;max-width:400px}._root_5hgaj_1 ._container_5hgaj_4 h2{margin-top:.5rem;margin-bottom:.5rem;font-size:1.5rem;line-height:2rem;font-weight:900}._root_5hgaj_1 ._container_5hgaj_4 h2:where([liveness-web-sdk-color-scheme=dark],[liveness-web-sdk-color-scheme=dark] *){--tw-text-opacity: 1;color:rgb(248 250 252 / var(--tw-text-opacity))}._root_5hgaj_1 ._container_5hgaj_4 p{font-size:.875rem;line-height:1.25rem;font-weight:300;max-width:400px}._root_5hgaj_1 ._container_5hgaj_4 button{color:var(--branding-color);border-color:var(--branding-color);border-radius:9999px;border-width:2px;padding:.5rem 2rem;font-weight:500}._root_5hgaj_1 ._container_5hgaj_4 button:hover{background-color:var(--branding-color);--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}._root_h5elg_1{text-align:center;display:flex;height:100%;flex-direction:column;align-items:center;justify-content:center;padding:1.5rem .75rem}._root_h5elg_1 h2{margin-top:.5rem;margin-bottom:.5rem;font-size:1.5rem;line-height:2rem;font-weight:900}._root_h5elg_1 h2:where([liveness-web-sdk-color-scheme=dark],[liveness-web-sdk-color-scheme=dark] *){--tw-text-opacity: 1;color:rgb(248 250 252 / var(--tw-text-opacity))}._root_h5elg_1 p{font-size:.875rem;line-height:1.25rem;font-weight:300;max-width:400px}._root_h5elg_1 button{color:var(--branding-color);border-color:var(--branding-color);border-radius:9999px;border-width:2px;padding:.5rem 2rem;font-weight:500}._root_h5elg_1 button:hover{background-color:var(--branding-color);--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}._root_h5elg_1 button:hover ._spinner_h5elg_22{--tw-border-opacity: 1;border-color:rgb(255 255 255 / var(--tw-border-opacity));border-left-color:transparent}._container_1vep2_1{height:100%;width:100%;border-radius:50%;border-width:2px;border-color:var(--branding-color);border-left-color:transparent;animation:_spin_1vep2_1 .7s linear infinite}._container_1vep2_1._md_1vep2_7{height:1rem;width:1rem}._container_1vep2_1._lg_1vep2_10{height:1.75rem;width:1.75rem}@keyframes _spin_1vep2_1{0%{transform:rotate(0)}to{transform:rotate(360deg)}}._root_thujo_1{position:absolute;top:0;right:0;bottom:0;left:0}._root_thujo_1 ._sticker_thujo_4{position:absolute}._root_thujo_1 ._sticker_thujo_4._no_thujo_7{top:2.5rem;left:1.5rem;border-width:4px;--tw-border-opacity: 1;border-color:rgb(248 113 113 / var(--tw-border-opacity));padding:.5rem 1rem;--tw-drop-shadow: drop-shadow(0 1px 1px rgb(0 0 0 / .05));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);stroke:#fff;font-size:2.25rem;line-height:2.5rem;font-weight:900;letter-spacing:.1em;--tw-text-opacity: 1;color:rgb(248 113 113 / var(--tw-text-opacity));transform:rotate(335deg)}._root_thujo_1 ._sticker_thujo_4._yes_thujo_12{top:2.5rem;right:1.5rem;border-width:4px;--tw-border-opacity: 1;border-color:rgb(74 222 128 / var(--tw-border-opacity));padding:.5rem 1rem;--tw-drop-shadow: drop-shadow(0 1px 1px rgb(0 0 0 / .05));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);stroke:#fff;font-size:2.25rem;line-height:2.5rem;font-weight:900;letter-spacing:.1em;--tw-text-opacity: 1;color:rgb(74 222 128 / var(--tw-text-opacity));transform:rotate(45deg)}._container_1ej18_1{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;background-image:radial-gradient(circle at 50% 50%,transparent 1400px,rgba(255,255,255,0) 100%)}._container_1ej18_1:where([liveness-web-sdk-color-scheme=dark],[liveness-web-sdk-color-scheme=dark] *){background-image:radial-gradient(circle at 50% 50%,transparent 1400px,rgba(0,0,0,0) 100%)}._container_1ej18_1{z-index:1}._container_1ej18_1:before{content:"";position:absolute;top:0;right:0;bottom:0;left:0;opacity:0;background-image:radial-gradient(circle at 50% 50%,transparent 140px,rgba(255,255,255,.5) 101px)}._container_1ej18_1:where([liveness-web-sdk-color-scheme=dark],[liveness-web-sdk-color-scheme=dark] *):before{background-image:radial-gradient(circle at 50% 50%,transparent 140px,rgba(0,0,0,.8) 101px)}._container_1ej18_1:before{transition:opacity .3s linear}._container_1ej18_1 ._progress_1ej18_12{position:relative;height:240px;width:240px;border-radius:50%;display:flex;align-items:center;justify-content:center;border:1px solid gray}._container_1ej18_1 ._progress_1ej18_12 div{position:absolute;height:3px;transform-origin:50%;border-radius:2px;width:5px;background-color:gray;transition-property:background-color,transform,width;transition-duration:.3s;transition-timing-function:ease-in-out}._container_1ej18_1 ._progress_1ej18_12 div._completed_1ej18_33{width:20px;background-color:#07da63}._container_1ej18_1 ._marker_1ej18_37{position:relative;width:240px;height:240px}._container_1ej18_1 ._marker_1ej18_37>div{position:absolute;height:1.75rem;width:1.75rem;border-width:4px;--tw-border-opacity: 1;border-color:rgb(255 255 255 / var(--tw-border-opacity))}._container_1ej18_1 ._marker_1ej18_37>div:first-child{top:-.25rem;left:-.25rem;border-top-left-radius:50%;border-bottom-width:0px;border-right-width:0px}._container_1ej18_1 ._marker_1ej18_37>div:nth-child(2){top:-.25rem;right:-.25rem;border-top-right-radius:50%;border-bottom-width:0px;border-left-width:0px}._container_1ej18_1 ._marker_1ej18_37>div:nth-child(3){bottom:-.25rem;left:-.25rem;border-bottom-left-radius:50%;border-top-width:0px;border-right-width:0px}._container_1ej18_1 ._marker_1ej18_37>div:last-child{bottom:-.25rem;right:-.25rem;border-bottom-right-radius:50%;border-top-width:0px;border-left-width:0px}')),document.head.appendChild(t)}}catch(r){console.error("vite-plugin-css-injected-by-js",r)}})();
|
|
2
|
-
var ot,
|
|
2
|
+
var ot, R, Mr, Me, On, xr, Zt, mn, Xt, Jt, Pr, rt = {}, Lr = [], Xo = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, Tt = Array.isArray;
|
|
3
3
|
function _e(e, t) {
|
|
4
4
|
for (var n in t) e[n] = t[n];
|
|
5
5
|
return e;
|
|
@@ -16,12 +16,12 @@ function de(e, t, n) {
|
|
|
16
16
|
}
|
|
17
17
|
function Je(e, t, n, r, o) {
|
|
18
18
|
var i = { type: e, props: t, key: n, ref: r, __k: null, __: null, __b: 0, __e: null, __d: void 0, __c: null, constructor: void 0, __v: o ?? ++Mr, __i: -1, __u: 0 };
|
|
19
|
-
return o == null &&
|
|
19
|
+
return o == null && R.vnode != null && R.vnode(i), i;
|
|
20
20
|
}
|
|
21
21
|
function vn() {
|
|
22
22
|
return { current: null };
|
|
23
23
|
}
|
|
24
|
-
function
|
|
24
|
+
function Y(e) {
|
|
25
25
|
return e.children;
|
|
26
26
|
}
|
|
27
27
|
function ue(e, t) {
|
|
@@ -43,21 +43,21 @@ function Ar(e) {
|
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
function Qt(e) {
|
|
46
|
-
(!e.__d && (e.__d = !0) && Me.push(e) && !_t.__r++ || On !==
|
|
46
|
+
(!e.__d && (e.__d = !0) && Me.push(e) && !_t.__r++ || On !== R.debounceRendering) && ((On = R.debounceRendering) || xr)(_t);
|
|
47
47
|
}
|
|
48
48
|
function _t() {
|
|
49
49
|
var e, t, n, r, o, i, s, a;
|
|
50
|
-
for (Me.sort(Zt); e = Me.shift(); ) e.__d && (t = Me.length, r = void 0, i = (o = (n = e).__v).__e, s = [], a = [], n.__P && ((r = _e({}, o)).__v = o.__v + 1,
|
|
50
|
+
for (Me.sort(Zt); e = Me.shift(); ) e.__d && (t = Me.length, r = void 0, i = (o = (n = e).__v).__e, s = [], a = [], n.__P && ((r = _e({}, o)).__v = o.__v + 1, R.vnode && R.vnode(r), _n(n.__P, r, o, n.__n, n.__P.namespaceURI, 32 & o.__u ? [i] : null, s, i ?? Ae(o), !!(32 & o.__u), a), r.__v = o.__v, r.__.__k[r.__i] = r, Rr(s, r, a), r.__e != i && Ar(r)), Me.length > t && Me.sort(Zt));
|
|
51
51
|
_t.__r = 0;
|
|
52
52
|
}
|
|
53
53
|
function Dr(e, t, n, r, o, i, s, a, c, u, d) {
|
|
54
54
|
var l, h, f, v, y, _ = r && r.__k || Lr, m = t.length;
|
|
55
|
-
for (n.__d = c,
|
|
55
|
+
for (n.__d = c, Jo(n, t, _), c = n.__d, l = 0; l < m; l++) (f = n.__k[l]) != null && typeof f != "boolean" && typeof f != "function" && (h = f.__i === -1 ? rt : _[f.__i] || rt, f.__i = l, _n(e, f, h, o, i, s, a, c, u, d), v = f.__e, f.ref && h.ref != f.ref && (h.ref && yn(h.ref, null, f), d.push(f.ref, f.__c || v, f)), y == null && v != null && (y = v), 65536 & f.__u || h.__k === f.__k ? c = Ir(f, c, e) : typeof f.type == "function" && f.__d !== void 0 ? c = f.__d : v && (c = v.nextSibling), f.__d = void 0, f.__u &= -196609);
|
|
56
56
|
n.__d = c, n.__e = y;
|
|
57
57
|
}
|
|
58
|
-
function
|
|
58
|
+
function Jo(e, t, n) {
|
|
59
59
|
var r, o, i, s, a, c = t.length, u = n.length, d = u, l = 0;
|
|
60
|
-
for (e.__k = [], r = 0; r < c; r++) s = r + l, (o = e.__k[r] = (o = t[r]) == null || typeof o == "boolean" || typeof o == "function" ? null : typeof o == "string" || typeof o == "number" || typeof o == "bigint" || o.constructor == String ? Je(null, o, null, null, null) : Tt(o) ? Je(
|
|
60
|
+
for (e.__k = [], r = 0; r < c; r++) s = r + l, (o = e.__k[r] = (o = t[r]) == null || typeof o == "boolean" || typeof o == "function" ? null : typeof o == "string" || typeof o == "number" || typeof o == "bigint" || o.constructor == String ? Je(null, o, null, null, null) : Tt(o) ? Je(Y, { children: o }, null, null, null) : o.constructor === void 0 && o.__b > 0 ? Je(o.type, o.props, o.key, o.ref ? o.ref : null, o.__v) : o) != null ? (o.__ = e, o.__b = e.__b + 1, a = Qo(o, n, s, d), o.__i = a, i = null, a !== -1 && (d--, (i = n[a]) && (i.__u |= 131072)), i == null || i.__v === null ? (a == -1 && l--, typeof o.type != "function" && (o.__u |= 65536)) : a !== s && (a == s - 1 ? l = a - s : a == s + 1 ? l++ : a > s ? d > c - s ? l += a - s : l-- : a < s && l++, a !== r + l && (o.__u |= 65536))) : (i = n[s]) && i.key == null && i.__e && !(131072 & i.__u) && (i.__e == e.__d && (e.__d = Ae(i)), en(i, i, !1), n[s] = null, d--);
|
|
61
61
|
if (d) for (r = 0; r < u; r++) (i = n[r]) != null && !(131072 & i.__u) && (i.__e == e.__d && (e.__d = Ae(i)), en(i, i));
|
|
62
62
|
}
|
|
63
63
|
function Ir(e, t, n) {
|
|
@@ -77,7 +77,7 @@ function ye(e, t) {
|
|
|
77
77
|
ye(n, t);
|
|
78
78
|
}) : t.push(e)), t;
|
|
79
79
|
}
|
|
80
|
-
function
|
|
80
|
+
function Qo(e, t, n, r) {
|
|
81
81
|
var o = e.key, i = e.type, s = n - 1, a = n + 1, c = t[n];
|
|
82
82
|
if (c === null || c && o == c.key && i === c.type && !(131072 & c.__u)) return n;
|
|
83
83
|
if (r > (c != null && !(131072 & c.__u) ? 1 : 0)) for (; s >= 0 || a < t.length; ) {
|
|
@@ -93,7 +93,7 @@ function ei(e, t, n, r) {
|
|
|
93
93
|
return -1;
|
|
94
94
|
}
|
|
95
95
|
function Hn(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" || Xo.test(t) ? n : n + "px";
|
|
97
97
|
}
|
|
98
98
|
function ft(e, t, n, r, o) {
|
|
99
99
|
var i;
|
|
@@ -119,59 +119,59 @@ function Vn(e) {
|
|
|
119
119
|
var n = this.l[t.type + e];
|
|
120
120
|
if (t.t == null) t.t = mn++;
|
|
121
121
|
else if (t.t < n.u) return;
|
|
122
|
-
return n(
|
|
122
|
+
return n(R.event ? R.event(t) : t);
|
|
123
123
|
}
|
|
124
124
|
};
|
|
125
125
|
}
|
|
126
126
|
function _n(e, t, n, r, o, i, s, a, c, u) {
|
|
127
|
-
var d, l, h, f, v, y, _, m, g,
|
|
127
|
+
var d, l, h, f, v, y, _, m, g, E, $, C, M, N, W, S, b = t.type;
|
|
128
128
|
if (t.constructor !== void 0) return null;
|
|
129
|
-
128 & n.__u && (c = !!(32 & n.__u), i = [a = t.__e = n.__e]), (d =
|
|
130
|
-
e: if (typeof
|
|
131
|
-
if (m = t.props, g = "prototype" in
|
|
129
|
+
128 & n.__u && (c = !!(32 & n.__u), i = [a = t.__e = n.__e]), (d = R.__b) && d(t);
|
|
130
|
+
e: if (typeof b == "function") try {
|
|
131
|
+
if (m = t.props, g = "prototype" in b && b.prototype.render, E = (d = b.contextType) && r[d.__c], $ = d ? E ? E.props.value : d.__ : r, n.__c ? _ = (l = t.__c = n.__c).__ = l.__E : (g ? t.__c = l = new b(m, $) : (t.__c = l = new ue(m, $), l.constructor = b, l.render = ti), E && E.sub(l), l.props = m, l.state || (l.state = {}), l.context = $, l.__n = r, h = l.__d = !0, l.__h = [], l._sb = []), g && l.__s == null && (l.__s = l.state), g && b.getDerivedStateFromProps != null && (l.__s == l.state && (l.__s = _e({}, l.__s)), _e(l.__s, b.getDerivedStateFromProps(m, l.__s))), f = l.props, v = l.state, l.__v = t, h) g && b.getDerivedStateFromProps == null && l.componentWillMount != null && l.componentWillMount(), g && l.componentDidMount != null && l.__h.push(l.componentDidMount);
|
|
132
132
|
else {
|
|
133
|
-
if (g &&
|
|
134
|
-
for (t.__v !== n.__v && (l.props = m, l.state = l.__s, l.__d = !1), t.__e = n.__e, t.__k = n.__k, t.__k.forEach(function(
|
|
135
|
-
|
|
136
|
-
}),
|
|
133
|
+
if (g && b.getDerivedStateFromProps == null && m !== f && l.componentWillReceiveProps != null && l.componentWillReceiveProps(m, $), !l.__e && (l.shouldComponentUpdate != null && l.shouldComponentUpdate(m, l.__s, $) === !1 || t.__v === n.__v)) {
|
|
134
|
+
for (t.__v !== n.__v && (l.props = m, l.state = l.__s, l.__d = !1), t.__e = n.__e, t.__k = n.__k, t.__k.forEach(function(A) {
|
|
135
|
+
A && (A.__ = t);
|
|
136
|
+
}), C = 0; C < l._sb.length; C++) l.__h.push(l._sb[C]);
|
|
137
137
|
l._sb = [], l.__h.length && s.push(l);
|
|
138
138
|
break e;
|
|
139
139
|
}
|
|
140
|
-
l.componentWillUpdate != null && l.componentWillUpdate(m, l.__s,
|
|
140
|
+
l.componentWillUpdate != null && l.componentWillUpdate(m, l.__s, $), g && l.componentDidUpdate != null && l.__h.push(function() {
|
|
141
141
|
l.componentDidUpdate(f, v, y);
|
|
142
142
|
});
|
|
143
143
|
}
|
|
144
|
-
if (l.context =
|
|
145
|
-
for (l.state = l.__s, l.__d = !1,
|
|
144
|
+
if (l.context = $, l.props = m, l.__P = e, l.__e = !1, M = R.__r, N = 0, g) {
|
|
145
|
+
for (l.state = l.__s, l.__d = !1, M && M(t), d = l.render(l.props, l.state, l.context), W = 0; W < l._sb.length; W++) l.__h.push(l._sb[W]);
|
|
146
146
|
l._sb = [];
|
|
147
147
|
} else do
|
|
148
|
-
l.__d = !1,
|
|
149
|
-
while (l.__d && ++
|
|
150
|
-
l.state = l.__s, l.getChildContext != null && (r = _e(_e({}, r), l.getChildContext())), g && !h && l.getSnapshotBeforeUpdate != null && (y = l.getSnapshotBeforeUpdate(f, v)), Dr(e, Tt(
|
|
151
|
-
} catch (
|
|
148
|
+
l.__d = !1, M && M(t), d = l.render(l.props, l.state, l.context), l.state = l.__s;
|
|
149
|
+
while (l.__d && ++N < 25);
|
|
150
|
+
l.state = l.__s, l.getChildContext != null && (r = _e(_e({}, r), l.getChildContext())), g && !h && l.getSnapshotBeforeUpdate != null && (y = l.getSnapshotBeforeUpdate(f, v)), Dr(e, Tt(S = d != null && d.type === Y && d.key == null ? d.props.children : d) ? S : [S], t, n, r, o, i, s, a, c, u), l.base = t.__e, t.__u &= -161, l.__h.length && s.push(l), _ && (l.__E = l.__ = null);
|
|
151
|
+
} catch (A) {
|
|
152
152
|
if (t.__v = null, c || i != null) {
|
|
153
153
|
for (t.__u |= c ? 160 : 32; a && a.nodeType === 8 && a.nextSibling; ) a = a.nextSibling;
|
|
154
154
|
i[i.indexOf(a)] = null, t.__e = a;
|
|
155
155
|
} else t.__e = n.__e, t.__k = n.__k;
|
|
156
|
-
|
|
156
|
+
R.__e(A, 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 = ei(n.__e, t, n, r, o, i, s, c, u);
|
|
159
|
+
(d = R.diffed) && d(t);
|
|
160
160
|
}
|
|
161
161
|
function Rr(e, t, n) {
|
|
162
162
|
t.__d = void 0;
|
|
163
163
|
for (var r = 0; r < n.length; r++) yn(n[r], n[++r], n[++r]);
|
|
164
|
-
|
|
164
|
+
R.__c && R.__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
|
+
R.__e(i, o.__v);
|
|
171
171
|
}
|
|
172
172
|
});
|
|
173
173
|
}
|
|
174
|
-
function
|
|
174
|
+
function ei(e, t, n, r, o, i, s, a, c) {
|
|
175
175
|
var u, d, l, h, f, v, y, _ = n.props, m = t.props, g = t.type;
|
|
176
176
|
if (g === "svg" ? o = "http://www.w3.org/2000/svg" : g === "math" ? o = "http://www.w3.org/1998/Math/MathML" : o || (o = "http://www.w3.org/1999/xhtml"), i != null) {
|
|
177
177
|
for (u = 0; u < i.length; u++) if ((f = i[u]) && "setAttribute" in f == !!g && (g ? f.localName === g : f.nodeType === 3)) {
|
|
@@ -207,33 +207,33 @@ function yn(e, t, n) {
|
|
|
207
207
|
r && e.__u(), r && t == null || (e.__u = e(t));
|
|
208
208
|
} else e.current = t;
|
|
209
209
|
} catch (o) {
|
|
210
|
-
|
|
210
|
+
R.__e(o, n);
|
|
211
211
|
}
|
|
212
212
|
}
|
|
213
213
|
function en(e, t, n) {
|
|
214
214
|
var r, o;
|
|
215
|
-
if (
|
|
215
|
+
if (R.unmount && R.unmount(e), (r = e.ref) && (r.current && r.current !== e.__e || yn(r, null, t)), (r = e.__c) != null) {
|
|
216
216
|
if (r.componentWillUnmount) try {
|
|
217
217
|
r.componentWillUnmount();
|
|
218
218
|
} catch (i) {
|
|
219
|
-
|
|
219
|
+
R.__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] && en(r[o], t, n || typeof e.type != "function");
|
|
224
224
|
n || e.__e == null || Nr(e.__e), e.__c = e.__ = e.__e = e.__d = void 0;
|
|
225
225
|
}
|
|
226
|
-
function
|
|
226
|
+
function ti(e, t, n) {
|
|
227
227
|
return this.constructor(e, n);
|
|
228
228
|
}
|
|
229
229
|
function ze(e, t, n) {
|
|
230
230
|
var r, o, i, s;
|
|
231
|
-
|
|
231
|
+
R.__ && R.__(e, t), o = (r = typeof n == "function") ? null : n && n.__k || t.__k, i = [], s = [], _n(t, e = (!r && n || t).__k = de(Y, null, [e]), o || rt, rt, t.namespaceURI, !r && n ? [n] : o ? null : t.firstChild ? ot.call(t.childNodes) : null, i, !r && n ? n : o ? o.__e : t.firstChild, r, s), Rr(i, e, s);
|
|
232
232
|
}
|
|
233
233
|
function Or(e, t) {
|
|
234
234
|
ze(e, t, Or);
|
|
235
235
|
}
|
|
236
|
-
function
|
|
236
|
+
function ni(e, t, n) {
|
|
237
237
|
var r, o, i, s, a = _e({}, e.props);
|
|
238
238
|
for (i in e.type && e.type.defaultProps && (s = e.type.defaultProps), t) i == "key" ? r = t[i] : i == "ref" ? o = t[i] : a[i] = t[i] === void 0 && s !== void 0 ? s[i] : t[i];
|
|
239
239
|
return arguments.length > 2 && (a.children = arguments.length > 3 ? ot.call(arguments, 2) : n), Je(e.type, a, r || e.key, o || e.ref, null);
|
|
@@ -261,7 +261,7 @@ function ie(e, t) {
|
|
|
261
261
|
} };
|
|
262
262
|
return n.Provider.__ = n.Consumer.contextType = n;
|
|
263
263
|
}
|
|
264
|
-
ot = Lr.slice,
|
|
264
|
+
ot = Lr.slice, R = { __e: function(e, t, n, r) {
|
|
265
265
|
for (var o, i, s; t = t.__; ) if ((o = t.__c) && !o.__) try {
|
|
266
266
|
if ((i = o.constructor) && i.getDerivedStateFromError != null && (o.setState(i.getDerivedStateFromError(e)), s = o.__d), o.componentDidCatch != null && (o.componentDidCatch(e, r || {}), s = o.__d), s) return o.__E = o;
|
|
267
267
|
} catch (a) {
|
|
@@ -273,25 +273,25 @@ ot = Lr.slice, O = { __e: function(e, t, n, r) {
|
|
|
273
273
|
n = this.__s != null && this.__s !== this.state ? this.__s : this.__s = _e({}, this.state), typeof e == "function" && (e = e(_e({}, n), this.props)), e && _e(n, e), e != null && this.__v && (t && this._sb.push(t), Qt(this));
|
|
274
274
|
}, ue.prototype.forceUpdate = function(e) {
|
|
275
275
|
this.__v && (this.__e = !0, e && this.__h.push(e), Qt(this));
|
|
276
|
-
}, ue.prototype.render =
|
|
276
|
+
}, ue.prototype.render = Y, Me = [], xr = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, Zt = function(e, t) {
|
|
277
277
|
return e.__v.__b - t.__v.__b;
|
|
278
278
|
}, _t.__r = 0, mn = 0, Xt = Vn(!1), Jt = Vn(!0), Pr = 0;
|
|
279
|
-
var
|
|
279
|
+
var ri = 0;
|
|
280
280
|
function p(e, t, n, r, o, i) {
|
|
281
281
|
t || (t = {});
|
|
282
282
|
var s, a, c = t;
|
|
283
283
|
if ("ref" in c) for (a in c = {}, t) a == "ref" ? s = t[a] : c[a] = t[a];
|
|
284
|
-
var u = { type: e, props: c, key: n, ref: s, __k: null, __: null, __b: 0, __e: null, __d: void 0, __c: null, constructor: void 0, __v: --
|
|
284
|
+
var u = { type: e, props: c, key: n, ref: s, __k: null, __: null, __b: 0, __e: null, __d: void 0, __c: null, constructor: void 0, __v: --ri, __i: -1, __u: 0, __source: o, __self: i };
|
|
285
285
|
if (typeof e == "function" && (s = e.defaultProps)) for (a in s) c[a] === void 0 && (c[a] = s[a]);
|
|
286
|
-
return
|
|
286
|
+
return R.vnode && R.vnode(u), u;
|
|
287
287
|
}
|
|
288
|
-
var we,
|
|
288
|
+
var we, q, Ht, Wn, Ue = 0, Hr = [], X = R, zn = X.__b, Un = X.__r, jn = X.diffed, Bn = X.__c, qn = X.unmount, Yn = X.__;
|
|
289
289
|
function Ie(e, t) {
|
|
290
|
-
X.__h && X.__h(
|
|
291
|
-
var n =
|
|
290
|
+
X.__h && X.__h(q, e, Ue || t), Ue = 0;
|
|
291
|
+
var n = q.__H || (q.__H = { __: [], __h: [] });
|
|
292
292
|
return e >= n.__.length && n.__.push({}), n.__[e];
|
|
293
293
|
}
|
|
294
|
-
function
|
|
294
|
+
function F(e) {
|
|
295
295
|
return Ue = 1, it(Vr, e);
|
|
296
296
|
}
|
|
297
297
|
function it(e, t, n) {
|
|
@@ -299,7 +299,7 @@ function it(e, t, n) {
|
|
|
299
299
|
if (r.t = e, !r.__c && (r.__ = [n ? n(t) : Vr(void 0, t), function(a) {
|
|
300
300
|
var c = r.__N ? r.__N[0] : r.__[0], u = r.t(c, a);
|
|
301
301
|
c !== u && (r.__N = [u, r.__[1]], r.__c.setState({}));
|
|
302
|
-
}], r.__c =
|
|
302
|
+
}], r.__c = q, !q.u)) {
|
|
303
303
|
var o = function(a, c, u) {
|
|
304
304
|
if (!r.__c.__H) return !0;
|
|
305
305
|
var d = r.__c.__H.__.filter(function(h) {
|
|
@@ -316,28 +316,28 @@ function it(e, t, n) {
|
|
|
316
316
|
}
|
|
317
317
|
}), !(!l && r.__c.props === a) && (!i || i.call(this, a, c, u));
|
|
318
318
|
};
|
|
319
|
-
|
|
320
|
-
var i =
|
|
321
|
-
|
|
319
|
+
q.u = !0;
|
|
320
|
+
var i = q.shouldComponentUpdate, s = q.componentWillUpdate;
|
|
321
|
+
q.componentWillUpdate = function(a, c, u) {
|
|
322
322
|
if (this.__e) {
|
|
323
323
|
var d = i;
|
|
324
324
|
i = void 0, o(a, c, u), i = d;
|
|
325
325
|
}
|
|
326
326
|
s && s.call(this, a, c, u);
|
|
327
|
-
},
|
|
327
|
+
}, q.shouldComponentUpdate = o;
|
|
328
328
|
}
|
|
329
329
|
return r.__N || r.__;
|
|
330
330
|
}
|
|
331
|
-
function
|
|
331
|
+
function V(e, t) {
|
|
332
332
|
var n = Ie(we++, 3);
|
|
333
|
-
!X.__s && bn(n.__H, t) && (n.__ = e, n.i = t,
|
|
333
|
+
!X.__s && bn(n.__H, t) && (n.__ = e, n.i = t, q.__H.__h.push(n));
|
|
334
334
|
}
|
|
335
335
|
function Re(e, t) {
|
|
336
336
|
var n = Ie(we++, 4);
|
|
337
|
-
!X.__s && bn(n.__H, t) && (n.__ = e, n.i = t,
|
|
337
|
+
!X.__s && bn(n.__H, t) && (n.__ = e, n.i = t, q.__h.push(n));
|
|
338
338
|
}
|
|
339
339
|
function w(e) {
|
|
340
|
-
return Ue = 5,
|
|
340
|
+
return Ue = 5, U(function() {
|
|
341
341
|
return { current: e };
|
|
342
342
|
}, []);
|
|
343
343
|
}
|
|
@@ -350,25 +350,25 @@ function gn(e, t, n) {
|
|
|
350
350
|
}) : void 0;
|
|
351
351
|
}, n == null ? n : n.concat(e));
|
|
352
352
|
}
|
|
353
|
-
function
|
|
353
|
+
function U(e, t) {
|
|
354
354
|
var n = Ie(we++, 7);
|
|
355
355
|
return bn(n.__H, t) && (n.__ = e(), n.__H = t, n.__h = e), n.__;
|
|
356
356
|
}
|
|
357
|
-
function
|
|
358
|
-
return Ue = 8,
|
|
357
|
+
function z(e, t) {
|
|
358
|
+
return Ue = 8, U(function() {
|
|
359
359
|
return e;
|
|
360
360
|
}, t);
|
|
361
361
|
}
|
|
362
362
|
function te(e) {
|
|
363
|
-
var t =
|
|
364
|
-
return n.c = e, t ? (n.__ == null && (n.__ = !0, t.sub(
|
|
363
|
+
var t = q.context[e.__c], n = Ie(we++, 9);
|
|
364
|
+
return n.c = e, t ? (n.__ == null && (n.__ = !0, t.sub(q)), t.props.value) : e.__;
|
|
365
365
|
}
|
|
366
366
|
function wn(e, t) {
|
|
367
367
|
X.useDebugValue && X.useDebugValue(t ? t(e) : e);
|
|
368
368
|
}
|
|
369
|
-
function
|
|
370
|
-
var t = Ie(we++, 10), n =
|
|
371
|
-
return t.__ = e,
|
|
369
|
+
function oi(e) {
|
|
370
|
+
var t = Ie(we++, 10), n = F();
|
|
371
|
+
return t.__ = e, q.componentDidCatch || (q.componentDidCatch = function(r, o) {
|
|
372
372
|
t.__ && t.__(r, o), n[1](r);
|
|
373
373
|
}), [n[0], function() {
|
|
374
374
|
n[1](void 0);
|
|
@@ -377,13 +377,13 @@ function ii(e) {
|
|
|
377
377
|
function Ce() {
|
|
378
378
|
var e = Ie(we++, 11);
|
|
379
379
|
if (!e.__) {
|
|
380
|
-
for (var t =
|
|
380
|
+
for (var t = q.__v; t !== null && !t.__m && t.__ !== null; ) t = t.__;
|
|
381
381
|
var n = t.__m || (t.__m = [0, 0]);
|
|
382
382
|
e.__ = "P" + n[0] + "-" + n[1]++;
|
|
383
383
|
}
|
|
384
384
|
return e.__;
|
|
385
385
|
}
|
|
386
|
-
function
|
|
386
|
+
function ii() {
|
|
387
387
|
for (var e; e = Hr.shift(); ) if (e.__P && e.__H) try {
|
|
388
388
|
e.__H.__h.forEach(mt), e.__H.__h.forEach(tn), e.__H.__h = [];
|
|
389
389
|
} catch (t) {
|
|
@@ -391,21 +391,21 @@ function si() {
|
|
|
391
391
|
}
|
|
392
392
|
}
|
|
393
393
|
X.__b = function(e) {
|
|
394
|
-
|
|
394
|
+
q = null, zn && zn(e);
|
|
395
395
|
}, X.__ = function(e, t) {
|
|
396
396
|
e && t.__k && t.__k.__m && (e.__m = t.__k.__m), Yn && Yn(e, t);
|
|
397
397
|
}, X.__r = function(e) {
|
|
398
398
|
Un && Un(e), we = 0;
|
|
399
|
-
var t = (
|
|
400
|
-
t && (Ht ===
|
|
399
|
+
var t = (q = e.__c).__H;
|
|
400
|
+
t && (Ht === q ? (t.__h = [], q.__h = [], t.__.forEach(function(n) {
|
|
401
401
|
n.__N && (n.__ = n.__N), n.i = n.__N = void 0;
|
|
402
|
-
})) : (t.__h.forEach(mt), t.__h.forEach(tn), t.__h = [], we = 0)), Ht =
|
|
402
|
+
})) : (t.__h.forEach(mt), t.__h.forEach(tn), t.__h = [], we = 0)), Ht = q;
|
|
403
403
|
}, X.diffed = function(e) {
|
|
404
404
|
jn && jn(e);
|
|
405
405
|
var t = e.__c;
|
|
406
|
-
t && t.__H && (t.__H.__h.length && (Hr.push(t) !== 1 && Wn === X.requestAnimationFrame || ((Wn = X.requestAnimationFrame) ||
|
|
406
|
+
t && t.__H && (t.__H.__h.length && (Hr.push(t) !== 1 && Wn === X.requestAnimationFrame || ((Wn = X.requestAnimationFrame) || si)(ii)), t.__H.__.forEach(function(n) {
|
|
407
407
|
n.i && (n.__H = n.i), n.i = void 0;
|
|
408
|
-
})), Ht =
|
|
408
|
+
})), Ht = q = null;
|
|
409
409
|
}, X.__c = function(e, t) {
|
|
410
410
|
t.some(function(n) {
|
|
411
411
|
try {
|
|
@@ -430,19 +430,19 @@ X.__b = function(e) {
|
|
|
430
430
|
}), n.__H = void 0, t && X.__e(t, n.__v));
|
|
431
431
|
};
|
|
432
432
|
var Kn = typeof requestAnimationFrame == "function";
|
|
433
|
-
function
|
|
433
|
+
function si(e) {
|
|
434
434
|
var t, n = function() {
|
|
435
435
|
clearTimeout(r), Kn && cancelAnimationFrame(t), setTimeout(e);
|
|
436
436
|
}, r = setTimeout(n, 100);
|
|
437
437
|
Kn && (t = requestAnimationFrame(n));
|
|
438
438
|
}
|
|
439
439
|
function mt(e) {
|
|
440
|
-
var t =
|
|
441
|
-
typeof n == "function" && (e.__c = void 0, n()),
|
|
440
|
+
var t = q, n = e.__c;
|
|
441
|
+
typeof n == "function" && (e.__c = void 0, n()), q = t;
|
|
442
442
|
}
|
|
443
443
|
function tn(e) {
|
|
444
|
-
var t =
|
|
445
|
-
e.__c = e.__(),
|
|
444
|
+
var t = q;
|
|
445
|
+
e.__c = e.__(), q = t;
|
|
446
446
|
}
|
|
447
447
|
function bn(e, t) {
|
|
448
448
|
return !e || e.length !== t.length || t.some(function(n, r) {
|
|
@@ -477,17 +477,17 @@ function zr(e, t) {
|
|
|
477
477
|
(yt.prototype = new ue()).isPureReactComponent = !0, yt.prototype.shouldComponentUpdate = function(e, t) {
|
|
478
478
|
return nn(this.props, e) || nn(this.state, t);
|
|
479
479
|
};
|
|
480
|
-
var Gn =
|
|
481
|
-
|
|
480
|
+
var Gn = R.__b;
|
|
481
|
+
R.__b = function(e) {
|
|
482
482
|
e.type && e.type.__f && e.ref && (e.props.ref = e.ref, e.ref = null), Gn && Gn(e);
|
|
483
483
|
};
|
|
484
|
-
var
|
|
484
|
+
var ai = typeof Symbol < "u" && Symbol.for && Symbol.for("react.forward_ref") || 3911;
|
|
485
485
|
function En(e) {
|
|
486
486
|
function t(n) {
|
|
487
487
|
var r = Wr({}, n);
|
|
488
488
|
return delete r.ref, e(r, n.ref || null);
|
|
489
489
|
}
|
|
490
|
-
return t.$$typeof =
|
|
490
|
+
return t.$$typeof = ai, t.render = t, t.prototype.isReactComponent = t.__f = !0, t.displayName = "ForwardRef(" + (e.displayName || e.name) + ")", t;
|
|
491
491
|
}
|
|
492
492
|
var Zn = function(e, t) {
|
|
493
493
|
return e == null ? null : ye(ye(e).map(t));
|
|
@@ -497,14 +497,14 @@ var Zn = function(e, t) {
|
|
|
497
497
|
var t = ye(e);
|
|
498
498
|
if (t.length !== 1) throw "Children.only";
|
|
499
499
|
return t[0];
|
|
500
|
-
}, toArray: ye },
|
|
501
|
-
|
|
500
|
+
}, toArray: ye }, ci = R.__e;
|
|
501
|
+
R.__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
|
+
ci(e, t, n, r);
|
|
506
506
|
};
|
|
507
|
-
var Xn =
|
|
507
|
+
var Xn = R.unmount;
|
|
508
508
|
function jr(e, t, n) {
|
|
509
509
|
return e && (e.__c && e.__c.__H && (e.__c.__H.__.forEach(function(r) {
|
|
510
510
|
typeof r.__c == "function" && r.__c();
|
|
@@ -540,7 +540,7 @@ function Yr(e) {
|
|
|
540
540
|
function We() {
|
|
541
541
|
this.u = null, this.o = null;
|
|
542
542
|
}
|
|
543
|
-
|
|
543
|
+
R.unmount = function(e) {
|
|
544
544
|
var t = e.__c;
|
|
545
545
|
t && t.__R && t.__R(), t && 32 & e.__u && (e.type = null), Xn && Xn(e);
|
|
546
546
|
}, (Qe.prototype = new ue()).__c = function(e, t) {
|
|
@@ -571,8 +571,8 @@ O.unmount = function(e) {
|
|
|
571
571
|
}
|
|
572
572
|
this.__b = null;
|
|
573
573
|
}
|
|
574
|
-
var o = t.__a && de(
|
|
575
|
-
return o && (o.__u &= -33), [de(
|
|
574
|
+
var o = t.__a && de(Y, null, e.fallback);
|
|
575
|
+
return o && (o.__u &= -33), [de(Y, null, t.__a ? null : e.children), o];
|
|
576
576
|
};
|
|
577
577
|
var Jn = function(e, t, n) {
|
|
578
578
|
if (++n[1] === n[0] && e.o.delete(t), e.props.revealOrder && (e.props.revealOrder[0] !== "t" || !e.o.size)) for (n = e.u; n; ) {
|
|
@@ -581,12 +581,12 @@ var Jn = function(e, t, n) {
|
|
|
581
581
|
e.u = n = n[2];
|
|
582
582
|
}
|
|
583
583
|
};
|
|
584
|
-
function
|
|
584
|
+
function li(e) {
|
|
585
585
|
return this.getChildContext = function() {
|
|
586
586
|
return e.context;
|
|
587
587
|
}, e.children;
|
|
588
588
|
}
|
|
589
|
-
function
|
|
589
|
+
function ui(e) {
|
|
590
590
|
var t = this, n = e.i;
|
|
591
591
|
t.componentWillUnmount = function() {
|
|
592
592
|
ze(null, t.l), t.l = null, t.i = null;
|
|
@@ -598,10 +598,10 @@ function di(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
|
-
} }), ze(de(
|
|
601
|
+
} }), ze(de(li, { context: t.context }, e.__v), t.l);
|
|
602
602
|
}
|
|
603
603
|
function Ct(e, t) {
|
|
604
|
-
var n = de(
|
|
604
|
+
var n = de(ui, { __v: e, i: t });
|
|
605
605
|
return n.containerInfo = t, n;
|
|
606
606
|
}
|
|
607
607
|
(We.prototype = new ue()).__a = function(e) {
|
|
@@ -624,7 +624,7 @@ function Ct(e, t) {
|
|
|
624
624
|
Jn(e, n, t);
|
|
625
625
|
});
|
|
626
626
|
};
|
|
627
|
-
var Kr = typeof Symbol < "u" && Symbol.for && Symbol.for("react.element") || 60103,
|
|
627
|
+
var Kr = typeof Symbol < "u" && Symbol.for && Symbol.for("react.element") || 60103, di = /^(?: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]/, fi = /^on(Ani|Tra|Tou|BeforeInp|Compo)/, hi = /[A-Z0-9]/g, pi = typeof document < "u", mi = function(e) {
|
|
628
628
|
return (typeof Symbol < "u" && typeof Symbol() == "symbol" ? /fil|che|rad/ : /fil|che|ra/).test(e);
|
|
629
629
|
};
|
|
630
630
|
function Gr(e, t, n) {
|
|
@@ -640,51 +640,51 @@ ue.prototype.isReactComponent = {}, ["componentWillMount", "componentWillReceive
|
|
|
640
640
|
Object.defineProperty(this, e, { configurable: !0, writable: !0, value: t });
|
|
641
641
|
} });
|
|
642
642
|
});
|
|
643
|
-
var Qn =
|
|
644
|
-
function
|
|
643
|
+
var Qn = R.event;
|
|
644
|
+
function vi() {
|
|
645
645
|
}
|
|
646
|
-
function
|
|
646
|
+
function _i() {
|
|
647
647
|
return this.cancelBubble;
|
|
648
648
|
}
|
|
649
|
-
function
|
|
649
|
+
function yi() {
|
|
650
650
|
return this.defaultPrevented;
|
|
651
651
|
}
|
|
652
|
-
|
|
653
|
-
return Qn && (e = Qn(e)), e.persist =
|
|
652
|
+
R.event = function(e) {
|
|
653
|
+
return Qn && (e = Qn(e)), e.persist = vi, e.isPropagationStopped = _i, e.isDefaultPrevented = yi, e.nativeEvent = e;
|
|
654
654
|
};
|
|
655
|
-
var $n,
|
|
655
|
+
var $n, gi = { enumerable: !1, configurable: !0, get: function() {
|
|
656
656
|
return this.class;
|
|
657
|
-
} }, er =
|
|
658
|
-
|
|
657
|
+
} }, er = R.vnode;
|
|
658
|
+
R.vnode = function(e) {
|
|
659
659
|
typeof e.type == "string" && function(t) {
|
|
660
660
|
var n = t.props, r = t.type, o = {};
|
|
661
661
|
for (var i in n) {
|
|
662
662
|
var s = n[i];
|
|
663
|
-
if (!(i === "value" && "defaultValue" in n && s == null ||
|
|
663
|
+
if (!(i === "value" && "defaultValue" in n && s == null || pi && i === "children" && r === "noscript" || i === "class" || i === "className")) {
|
|
664
664
|
var a = i.toLowerCase();
|
|
665
|
-
i === "defaultValue" && "value" in n && n.value == null ? i = "value" : i === "download" && s === !0 ? s = "" : a === "translate" && s === "no" ? s = !1 : a === "ondoubleclick" ? i = "ondblclick" : a !== "onchange" || r !== "input" && r !== "textarea" ||
|
|
665
|
+
i === "defaultValue" && "value" in n && n.value == null ? i = "value" : i === "download" && s === !0 ? s = "" : a === "translate" && s === "no" ? s = !1 : a === "ondoubleclick" ? i = "ondblclick" : a !== "onchange" || r !== "input" && r !== "textarea" || mi(n.type) ? a === "onfocus" ? i = "onfocusin" : a === "onblur" ? i = "onfocusout" : fi.test(i) ? i = a : r.indexOf("-") === -1 && di.test(i) ? i = i.replace(hi, "-$&").toLowerCase() : s === null && (s = void 0) : a = i = "oninput", a === "oninput" && o[i = a] && (i = "oninputCapture"), o[i] = s;
|
|
666
666
|
}
|
|
667
667
|
}
|
|
668
668
|
r == "select" && o.multiple && Array.isArray(o.value) && (o.value = ye(n.children).forEach(function(c) {
|
|
669
669
|
c.props.selected = o.value.indexOf(c.props.value) != -1;
|
|
670
670
|
})), r == "select" && o.defaultValue != null && (o.value = ye(n.children).forEach(function(c) {
|
|
671
671
|
c.props.selected = o.multiple ? o.defaultValue.indexOf(c.props.value) != -1 : o.defaultValue == c.props.value;
|
|
672
|
-
})), n.class && !n.className ? (o.class = n.class, Object.defineProperty(o, "className",
|
|
672
|
+
})), n.class && !n.className ? (o.class = n.class, Object.defineProperty(o, "className", gi)) : (n.className && !n.class || n.class && n.className) && (o.class = o.className = n.className), t.props = o;
|
|
673
673
|
}(e), e.$$typeof = Kr, er && er(e);
|
|
674
674
|
};
|
|
675
|
-
var tr =
|
|
676
|
-
|
|
675
|
+
var tr = R.__r;
|
|
676
|
+
R.__r = function(e) {
|
|
677
677
|
tr && tr(e), $n = e.__c;
|
|
678
678
|
};
|
|
679
|
-
var nr =
|
|
680
|
-
|
|
679
|
+
var nr = R.diffed;
|
|
680
|
+
R.diffed = function(e) {
|
|
681
681
|
nr && nr(e);
|
|
682
682
|
var t = e.props, n = e.__e;
|
|
683
683
|
n != null && e.type === "textarea" && "value" in t && t.value !== n.value && (n.value = t.value == null ? "" : t.value), $n = null;
|
|
684
684
|
};
|
|
685
685
|
var Xr = { ReactCurrentDispatcher: { current: { readContext: function(e) {
|
|
686
686
|
return $n.__n[e.__c].props.value;
|
|
687
|
-
}, useCallback:
|
|
687
|
+
}, useCallback: z, useContext: te, useDebugValue: wn, useDeferredValue: kn, useEffect: V, useId: Ce, useImperativeHandle: gn, useInsertionEffect: Fn, useLayoutEffect: Re, useMemo: U, useReducer: it, useRef: w, useState: F, useSyncExternalStore: kt, useTransition: Sn } } }, wi = "17.0.2";
|
|
688
688
|
function Jr(e) {
|
|
689
689
|
return de.bind(null, e);
|
|
690
690
|
}
|
|
@@ -692,13 +692,13 @@ function Be(e) {
|
|
|
692
692
|
return !!e && e.$$typeof === Kr;
|
|
693
693
|
}
|
|
694
694
|
function Qr(e) {
|
|
695
|
-
return Be(e) && e.type ===
|
|
695
|
+
return Be(e) && e.type === Y;
|
|
696
696
|
}
|
|
697
697
|
function eo(e) {
|
|
698
698
|
return !!e && !!e.displayName && (typeof e.displayName == "string" || e.displayName instanceof String) && e.displayName.startsWith("Memo(");
|
|
699
699
|
}
|
|
700
700
|
function Tn(e) {
|
|
701
|
-
return Be(e) ?
|
|
701
|
+
return Be(e) ? ni.apply(null, arguments) : e;
|
|
702
702
|
}
|
|
703
703
|
function to(e) {
|
|
704
704
|
return !!e.__k && (ze(null, e), !0);
|
|
@@ -710,7 +710,7 @@ var ro = function(e, t) {
|
|
|
710
710
|
return e(t);
|
|
711
711
|
}, oo = function(e, t) {
|
|
712
712
|
return e(t);
|
|
713
|
-
}, io =
|
|
713
|
+
}, io = Y;
|
|
714
714
|
function Cn(e) {
|
|
715
715
|
e();
|
|
716
716
|
}
|
|
@@ -722,10 +722,10 @@ function Sn() {
|
|
|
722
722
|
}
|
|
723
723
|
var Fn = Re, so = Be;
|
|
724
724
|
function kt(e, t) {
|
|
725
|
-
var n = t(), r =
|
|
725
|
+
var n = t(), r = F({ h: { __: n, v: t } }), o = r[0].h, i = r[1];
|
|
726
726
|
return Re(function() {
|
|
727
727
|
o.__ = n, o.v = t, Vt(o) && i({ h: o });
|
|
728
|
-
}, [e, n, t]),
|
|
728
|
+
}, [e, n, t]), V(function() {
|
|
729
729
|
return Vt(o) && i({ h: o }), e(function() {
|
|
730
730
|
Vt(o) && i({ h: o });
|
|
731
731
|
});
|
|
@@ -740,12 +740,12 @@ function Vt(e) {
|
|
|
740
740
|
return !0;
|
|
741
741
|
}
|
|
742
742
|
}
|
|
743
|
-
var
|
|
743
|
+
var P = { useState: F, useId: Ce, useReducer: it, useEffect: V, useLayoutEffect: Re, useInsertionEffect: Fn, useTransition: Sn, useDeferredValue: kn, useSyncExternalStore: kt, startTransition: Cn, useRef: w, useImperativeHandle: gn, useMemo: U, useCallback: z, useContext: te, useDebugValue: wn, version: "17.0.2", Children: Ur, render: Gr, hydrate: Zr, unmountComponentAtNode: to, createPortal: Ct, createElement: de, createContext: ie, createFactory: Jr, cloneElement: Tn, createRef: vn, Fragment: Y, isValidElement: Be, isElement: so, isFragment: Qr, isMemo: eo, findDOMNode: no, Component: ue, PureComponent: yt, memo: zr, forwardRef: En, flushSync: oo, unstable_batchedUpdates: ro, StrictMode: io, Suspense: Qe, SuspenseList: We, lazy: Yr, __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: Xr };
|
|
744
744
|
const rr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
745
745
|
__proto__: null,
|
|
746
746
|
Children: Ur,
|
|
747
747
|
Component: ue,
|
|
748
|
-
Fragment:
|
|
748
|
+
Fragment: Y,
|
|
749
749
|
PureComponent: yt,
|
|
750
750
|
StrictMode: io,
|
|
751
751
|
Suspense: Qe,
|
|
@@ -757,7 +757,7 @@ const rr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
757
757
|
createFactory: Jr,
|
|
758
758
|
createPortal: Ct,
|
|
759
759
|
createRef: vn,
|
|
760
|
-
default:
|
|
760
|
+
default: P,
|
|
761
761
|
findDOMNode: no,
|
|
762
762
|
flushSync: oo,
|
|
763
763
|
forwardRef: En,
|
|
@@ -772,32 +772,32 @@ const rr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
772
772
|
startTransition: Cn,
|
|
773
773
|
unmountComponentAtNode: to,
|
|
774
774
|
unstable_batchedUpdates: ro,
|
|
775
|
-
useCallback:
|
|
775
|
+
useCallback: z,
|
|
776
776
|
useContext: te,
|
|
777
777
|
useDebugValue: wn,
|
|
778
778
|
useDeferredValue: kn,
|
|
779
|
-
useEffect:
|
|
780
|
-
useErrorBoundary:
|
|
779
|
+
useEffect: V,
|
|
780
|
+
useErrorBoundary: oi,
|
|
781
781
|
useId: Ce,
|
|
782
782
|
useImperativeHandle: gn,
|
|
783
783
|
useInsertionEffect: Fn,
|
|
784
784
|
useLayoutEffect: Re,
|
|
785
|
-
useMemo:
|
|
785
|
+
useMemo: U,
|
|
786
786
|
useReducer: it,
|
|
787
787
|
useRef: w,
|
|
788
|
-
useState:
|
|
788
|
+
useState: F,
|
|
789
789
|
useSyncExternalStore: kt,
|
|
790
790
|
useTransition: Sn,
|
|
791
|
-
version:
|
|
792
|
-
}, Symbol.toStringTag, { value: "Module" })), ao = typeof document < "u" ?
|
|
791
|
+
version: wi
|
|
792
|
+
}, Symbol.toStringTag, { value: "Module" })), ao = typeof document < "u" ? P.useLayoutEffect : () => {
|
|
793
793
|
};
|
|
794
|
-
function
|
|
794
|
+
function bi(e) {
|
|
795
795
|
const t = w(null);
|
|
796
796
|
return ao(() => {
|
|
797
797
|
t.current = e;
|
|
798
798
|
}, [
|
|
799
799
|
e
|
|
800
|
-
]),
|
|
800
|
+
]), z((...n) => {
|
|
801
801
|
const r = t.current;
|
|
802
802
|
return r == null ? void 0 : r(...n);
|
|
803
803
|
}, []);
|
|
@@ -806,24 +806,24 @@ const st = (e) => {
|
|
|
806
806
|
var t;
|
|
807
807
|
return (t = e == null ? void 0 : e.ownerDocument) !== null && t !== void 0 ? t : document;
|
|
808
808
|
}, Pe = (e) => e && "window" in e && e.window === e ? e : st(e).defaultView || window;
|
|
809
|
-
function
|
|
809
|
+
function Ei(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 $i(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
|
|
818
|
-
return
|
|
817
|
+
function Ti() {
|
|
818
|
+
return $i(/^Mac/i);
|
|
819
819
|
}
|
|
820
|
-
function
|
|
821
|
-
return
|
|
820
|
+
function Ci() {
|
|
821
|
+
return Ei(/Android/i);
|
|
822
822
|
}
|
|
823
|
-
function
|
|
824
|
-
return e.mozInputSource === 0 && e.isTrusted ? !0 :
|
|
823
|
+
function ki(e) {
|
|
824
|
+
return e.mozInputSource === 0 && e.isTrusted ? !0 : Ci() && e.pointerType ? e.type === "click" && e.buttons === 1 : e.detail === 0 && !e.pointerType;
|
|
825
825
|
}
|
|
826
|
-
class
|
|
826
|
+
class Si {
|
|
827
827
|
isDefaultPrevented() {
|
|
828
828
|
return this.nativeEvent.defaultPrevented;
|
|
829
829
|
}
|
|
@@ -853,14 +853,14 @@ function co(e) {
|
|
|
853
853
|
r.observer && (r.observer.disconnect(), r.observer = null);
|
|
854
854
|
};
|
|
855
855
|
}, []);
|
|
856
|
-
let n =
|
|
856
|
+
let n = bi((r) => {
|
|
857
857
|
e == null || e(r);
|
|
858
858
|
});
|
|
859
|
-
return
|
|
859
|
+
return z((r) => {
|
|
860
860
|
if (r.target instanceof HTMLButtonElement || r.target instanceof HTMLInputElement || r.target instanceof HTMLTextAreaElement || r.target instanceof HTMLSelectElement) {
|
|
861
861
|
t.current.isFocused = !0;
|
|
862
862
|
let o = r.target, i = (s) => {
|
|
863
|
-
t.current.isFocused = !1, o.disabled && n(new
|
|
863
|
+
t.current.isFocused = !1, o.disabled && n(new Si("blur", s)), t.current.observer && (t.current.observer.disconnect(), t.current.observer = null);
|
|
864
864
|
};
|
|
865
865
|
o.addEventListener("focusout", i, {
|
|
866
866
|
once: !0
|
|
@@ -887,15 +887,15 @@ function co(e) {
|
|
|
887
887
|
n
|
|
888
888
|
]);
|
|
889
889
|
}
|
|
890
|
-
function
|
|
890
|
+
function Fi(e) {
|
|
891
891
|
let { isDisabled: t, onFocus: n, onBlur: r, onFocusChange: o } = e;
|
|
892
|
-
const i =
|
|
892
|
+
const i = z((c) => {
|
|
893
893
|
if (c.target === c.currentTarget)
|
|
894
894
|
return r && r(c), o && o(!1), !0;
|
|
895
895
|
}, [
|
|
896
896
|
r,
|
|
897
897
|
o
|
|
898
|
-
]), s = co(i), a =
|
|
898
|
+
]), s = co(i), a = z((c) => {
|
|
899
899
|
const u = st(c.target);
|
|
900
900
|
c.target === c.currentTarget && u.activeElement === c.target && (n && n(c), o && o(!0), s(c));
|
|
901
901
|
}, [
|
|
@@ -911,24 +911,24 @@ function Mi(e) {
|
|
|
911
911
|
};
|
|
912
912
|
}
|
|
913
913
|
let at = null, rn = /* @__PURE__ */ new Set(), et = /* @__PURE__ */ new Map(), De = !1, on = !1;
|
|
914
|
-
const
|
|
914
|
+
const Mi = {
|
|
915
915
|
Tab: !0,
|
|
916
916
|
Escape: !0
|
|
917
917
|
};
|
|
918
918
|
function Mn(e, t) {
|
|
919
919
|
for (let n of rn) n(e, t);
|
|
920
920
|
}
|
|
921
|
-
function
|
|
922
|
-
return !(e.metaKey || !
|
|
921
|
+
function xi(e) {
|
|
922
|
+
return !(e.metaKey || !Ti() && e.altKey || e.ctrlKey || e.key === "Control" || e.key === "Shift" || e.key === "Meta");
|
|
923
923
|
}
|
|
924
924
|
function gt(e) {
|
|
925
|
-
De = !0,
|
|
925
|
+
De = !0, xi(e) && (at = "keyboard", Mn("keyboard", e));
|
|
926
926
|
}
|
|
927
927
|
function ce(e) {
|
|
928
928
|
at = "pointer", (e.type === "mousedown" || e.type === "pointerdown") && (De = !0, Mn("pointer", e));
|
|
929
929
|
}
|
|
930
930
|
function lo(e) {
|
|
931
|
-
|
|
931
|
+
ki(e) && (De = !0, at = "virtual");
|
|
932
932
|
}
|
|
933
933
|
function uo(e) {
|
|
934
934
|
e.target === window || e.target === document || (!De && !on && (at = "virtual", Mn("virtual", e)), De = !1, on = !1);
|
|
@@ -954,18 +954,18 @@ const ho = (e, t) => {
|
|
|
954
954
|
const n = Pe(e), r = st(e);
|
|
955
955
|
t && r.removeEventListener("DOMContentLoaded", t), et.has(n) && (n.HTMLElement.prototype.focus = et.get(n).focus, r.removeEventListener("keydown", gt, !0), r.removeEventListener("keyup", gt, !0), r.removeEventListener("click", lo, !0), n.removeEventListener("focus", uo, !0), n.removeEventListener("blur", fo, !1), typeof PointerEvent < "u" ? (r.removeEventListener("pointerdown", ce, !0), r.removeEventListener("pointermove", ce, !0), r.removeEventListener("pointerup", ce, !0)) : (r.removeEventListener("mousedown", ce, !0), r.removeEventListener("mousemove", ce, !0), r.removeEventListener("mouseup", ce, !0)), et.delete(n));
|
|
956
956
|
};
|
|
957
|
-
function
|
|
957
|
+
function Pi(e) {
|
|
958
958
|
const t = st(e);
|
|
959
959
|
let n;
|
|
960
960
|
return t.readyState !== "loading" ? sn(e) : (n = () => {
|
|
961
961
|
sn(e);
|
|
962
962
|
}, t.addEventListener("DOMContentLoaded", n)), () => ho(e, n);
|
|
963
963
|
}
|
|
964
|
-
typeof document < "u" &&
|
|
964
|
+
typeof document < "u" && Pi();
|
|
965
965
|
function po() {
|
|
966
966
|
return at !== "pointer";
|
|
967
967
|
}
|
|
968
|
-
const
|
|
968
|
+
const Li = /* @__PURE__ */ new Set([
|
|
969
969
|
"checkbox",
|
|
970
970
|
"radio",
|
|
971
971
|
"range",
|
|
@@ -976,31 +976,31 @@ const Ni = /* @__PURE__ */ new Set([
|
|
|
976
976
|
"submit",
|
|
977
977
|
"reset"
|
|
978
978
|
]);
|
|
979
|
-
function
|
|
979
|
+
function Ni(e, t, n) {
|
|
980
980
|
var r;
|
|
981
981
|
const o = typeof window < "u" ? Pe(n == null ? void 0 : n.target).HTMLInputElement : HTMLInputElement, i = typeof window < "u" ? Pe(n == null ? void 0 : n.target).HTMLTextAreaElement : HTMLTextAreaElement, s = typeof window < "u" ? Pe(n == null ? void 0 : n.target).HTMLElement : HTMLElement, a = typeof window < "u" ? Pe(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 && !Li.has(n == null || (r = n.target) === null || r === void 0 ? void 0 : r.type) || (n == null ? void 0 : n.target) instanceof i || (n == null ? void 0 : n.target) instanceof s && (n == null ? void 0 : n.target.isContentEditable), !(e && t === "keyboard" && n instanceof a && !Mi[n.key]);
|
|
983
983
|
}
|
|
984
|
-
function
|
|
985
|
-
sn(),
|
|
984
|
+
function Ai(e, t, n) {
|
|
985
|
+
sn(), V(() => {
|
|
986
986
|
let r = (o, i) => {
|
|
987
|
-
|
|
987
|
+
Ni(!!(n != null && n.isTextInput), o, i) && e(po());
|
|
988
988
|
};
|
|
989
989
|
return rn.add(r), () => {
|
|
990
990
|
rn.delete(r);
|
|
991
991
|
};
|
|
992
992
|
}, t);
|
|
993
993
|
}
|
|
994
|
-
function
|
|
994
|
+
function Di(e) {
|
|
995
995
|
let { isDisabled: t, onBlurWithin: n, onFocusWithin: r, onFocusWithinChange: o } = e, i = w({
|
|
996
996
|
isFocusWithin: !1
|
|
997
|
-
}), s =
|
|
997
|
+
}), s = z((u) => {
|
|
998
998
|
i.current.isFocusWithin && !u.currentTarget.contains(u.relatedTarget) && (i.current.isFocusWithin = !1, n && n(u), o && o(!1));
|
|
999
999
|
}, [
|
|
1000
1000
|
n,
|
|
1001
1001
|
o,
|
|
1002
1002
|
i
|
|
1003
|
-
]), a = co(s), c =
|
|
1003
|
+
]), a = co(s), c = z((u) => {
|
|
1004
1004
|
!i.current.isFocusWithin && document.activeElement === u.target && (r && r(u), o && o(!0), i.current.isFocusWithin = !0, a(u));
|
|
1005
1005
|
}, [
|
|
1006
1006
|
r,
|
|
@@ -1029,21 +1029,21 @@ function an() {
|
|
|
1029
1029
|
function or(e) {
|
|
1030
1030
|
e.pointerType === "touch" && an();
|
|
1031
1031
|
}
|
|
1032
|
-
function
|
|
1032
|
+
function Ii() {
|
|
1033
1033
|
if (!(typeof document > "u"))
|
|
1034
1034
|
return typeof PointerEvent < "u" ? document.addEventListener("pointerup", or) : document.addEventListener("touchend", an), Wt++, () => {
|
|
1035
1035
|
Wt--, !(Wt > 0) && (typeof PointerEvent < "u" ? document.removeEventListener("pointerup", or) : document.removeEventListener("touchend", an));
|
|
1036
1036
|
};
|
|
1037
1037
|
}
|
|
1038
|
-
function
|
|
1039
|
-
let { onHoverStart: t, onHoverChange: n, onHoverEnd: r, isDisabled: o } = e, [i, s] =
|
|
1038
|
+
function Ri(e) {
|
|
1039
|
+
let { onHoverStart: t, onHoverChange: n, onHoverEnd: r, isDisabled: o } = e, [i, s] = F(!1), a = w({
|
|
1040
1040
|
isHovered: !1,
|
|
1041
1041
|
ignoreEmulatedMouseEvents: !1,
|
|
1042
1042
|
pointerType: "",
|
|
1043
1043
|
target: null
|
|
1044
1044
|
}).current;
|
|
1045
|
-
|
|
1046
|
-
let { hoverProps: c, triggerHoverEnd: u } =
|
|
1045
|
+
V(Ii, []);
|
|
1046
|
+
let { hoverProps: c, triggerHoverEnd: u } = U(() => {
|
|
1047
1047
|
let d = (f, v) => {
|
|
1048
1048
|
if (a.pointerType = v, o || v === "touch" || a.isHovered || !f.currentTarget.contains(f.target)) return;
|
|
1049
1049
|
a.isHovered = !0;
|
|
@@ -1084,7 +1084,7 @@ function Oi(e) {
|
|
|
1084
1084
|
o,
|
|
1085
1085
|
a
|
|
1086
1086
|
]);
|
|
1087
|
-
return
|
|
1087
|
+
return V(() => {
|
|
1088
1088
|
o && u({
|
|
1089
1089
|
currentTarget: a.target
|
|
1090
1090
|
}, a.pointerType);
|
|
@@ -1095,24 +1095,24 @@ function Oi(e) {
|
|
|
1095
1095
|
isHovered: i
|
|
1096
1096
|
};
|
|
1097
1097
|
}
|
|
1098
|
-
function
|
|
1098
|
+
function Oi(e = {}) {
|
|
1099
1099
|
let { autoFocus: t = !1, isTextInput: n, within: r } = e, o = w({
|
|
1100
1100
|
isFocused: !1,
|
|
1101
1101
|
isFocusVisible: t || po()
|
|
1102
|
-
}), [i, s] =
|
|
1102
|
+
}), [i, s] = F(!1), [a, c] = F(() => o.current.isFocused && o.current.isFocusVisible), u = z(() => c(o.current.isFocused && o.current.isFocusVisible), []), d = z((f) => {
|
|
1103
1103
|
o.current.isFocused = f, s(f), u();
|
|
1104
1104
|
}, [
|
|
1105
1105
|
u
|
|
1106
1106
|
]);
|
|
1107
|
-
|
|
1107
|
+
Ai((f) => {
|
|
1108
1108
|
o.current.isFocusVisible = f, u();
|
|
1109
1109
|
}, [], {
|
|
1110
1110
|
isTextInput: n
|
|
1111
1111
|
});
|
|
1112
|
-
let { focusProps: l } =
|
|
1112
|
+
let { focusProps: l } = Fi({
|
|
1113
1113
|
isDisabled: r,
|
|
1114
1114
|
onFocusChange: d
|
|
1115
|
-
}), { focusWithinProps: h } =
|
|
1115
|
+
}), { focusWithinProps: h } = Di({
|
|
1116
1116
|
isDisabled: !r,
|
|
1117
1117
|
onFocusWithinChange: d
|
|
1118
1118
|
});
|
|
@@ -1122,8 +1122,8 @@ function Hi(e = {}) {
|
|
|
1122
1122
|
focusProps: r ? h : l
|
|
1123
1123
|
};
|
|
1124
1124
|
}
|
|
1125
|
-
var
|
|
1126
|
-
let
|
|
1125
|
+
var Hi = Object.defineProperty, Vi = (e, t, n) => t in e ? Hi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, zt = (e, t, n) => (Vi(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
1126
|
+
let Wi = class {
|
|
1127
1127
|
constructor() {
|
|
1128
1128
|
zt(this, "current", this.detect()), zt(this, "handoffState", "pending"), zt(this, "currentId", 0);
|
|
1129
1129
|
}
|
|
@@ -1151,7 +1151,7 @@ let zi = class {
|
|
|
1151
1151
|
get isHandoffComplete() {
|
|
1152
1152
|
return this.handoffState === "complete";
|
|
1153
1153
|
}
|
|
1154
|
-
}, Ne = new
|
|
1154
|
+
}, Ne = new Wi();
|
|
1155
1155
|
function St(e) {
|
|
1156
1156
|
return Ne.isServer ? null : e instanceof Node ? e.ownerDocument : e != null && e.hasOwnProperty("current") && e.current instanceof Node ? e.current.ownerDocument : document;
|
|
1157
1157
|
}
|
|
@@ -1197,11 +1197,11 @@ function ke() {
|
|
|
1197
1197
|
return t;
|
|
1198
1198
|
}
|
|
1199
1199
|
function Mt() {
|
|
1200
|
-
let [e] =
|
|
1201
|
-
return
|
|
1200
|
+
let [e] = F(ke);
|
|
1201
|
+
return V(() => () => e.dispose(), [e]), e;
|
|
1202
1202
|
}
|
|
1203
1203
|
let re = (e, t) => {
|
|
1204
|
-
Ne.isServer ?
|
|
1204
|
+
Ne.isServer ? V(e, t) : Re(e, t);
|
|
1205
1205
|
};
|
|
1206
1206
|
function Oe(e) {
|
|
1207
1207
|
let t = w(e);
|
|
@@ -1211,17 +1211,17 @@ function Oe(e) {
|
|
|
1211
1211
|
}
|
|
1212
1212
|
let G = function(e) {
|
|
1213
1213
|
let t = Oe(e);
|
|
1214
|
-
return
|
|
1214
|
+
return P.useCallback((...n) => t.current(...n), [t]);
|
|
1215
1215
|
};
|
|
1216
|
-
function
|
|
1216
|
+
function zi(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 Ui(e, t) {
|
|
1221
1221
|
return !(!e || !t || e.right < t.left || e.left > t.right || e.bottom < t.top || e.top > t.bottom);
|
|
1222
1222
|
}
|
|
1223
|
-
function
|
|
1224
|
-
let t = w(null), [n, r] =
|
|
1223
|
+
function ji({ disabled: e = !1 } = {}) {
|
|
1224
|
+
let t = w(null), [n, r] = F(!1), o = Mt(), i = G(() => {
|
|
1225
1225
|
t.current = null, r(!1), o.dispose();
|
|
1226
1226
|
}), s = G((a) => {
|
|
1227
1227
|
if (o.dispose(), t.current === null) {
|
|
@@ -1230,8 +1230,8 @@ function Bi({ disabled: e = !1 } = {}) {
|
|
|
1230
1230
|
let c = St(a.currentTarget);
|
|
1231
1231
|
o.addEventListener(c, "pointerup", i, !1), o.addEventListener(c, "pointermove", (u) => {
|
|
1232
1232
|
if (t.current) {
|
|
1233
|
-
let d =
|
|
1234
|
-
r(
|
|
1233
|
+
let d = zi(u);
|
|
1234
|
+
r(Ui(d, t.current.getBoundingClientRect()));
|
|
1235
1235
|
}
|
|
1236
1236
|
}, !1), o.addEventListener(c, "pointercancel", i, !1);
|
|
1237
1237
|
}
|
|
@@ -1239,9 +1239,9 @@ function Bi({ disabled: e = !1 } = {}) {
|
|
|
1239
1239
|
});
|
|
1240
1240
|
return { pressed: n, pressProps: e ? {} : { onPointerDown: s, onPointerUp: i, onClick: i } };
|
|
1241
1241
|
}
|
|
1242
|
-
let
|
|
1242
|
+
let Bi = ie(void 0);
|
|
1243
1243
|
function mo() {
|
|
1244
|
-
return te(
|
|
1244
|
+
return te(Bi);
|
|
1245
1245
|
}
|
|
1246
1246
|
function cn(...e) {
|
|
1247
1247
|
return Array.from(new Set(e.flatMap((t) => typeof t == "string" ? t.split(" ") : []))).filter(Boolean).join(" ");
|
|
@@ -1256,7 +1256,7 @@ function Te(e, t, ...n) {
|
|
|
1256
1256
|
}
|
|
1257
1257
|
var bt = ((e) => (e[e.None = 0] = "None", e[e.RenderStrategy = 1] = "RenderStrategy", e[e.Static = 2] = "Static", e))(bt || {}), Ee = ((e) => (e[e.Unmount = 0] = "Unmount", e[e.Hidden = 1] = "Hidden", e))(Ee || {});
|
|
1258
1258
|
function ae({ ourProps: e, theirProps: t, slot: n, defaultTag: r, features: o, visible: i = !0, name: s, mergeRefs: a }) {
|
|
1259
|
-
a = a ??
|
|
1259
|
+
a = a ?? qi;
|
|
1260
1260
|
let c = vo(t, e);
|
|
1261
1261
|
if (i) return ht(c, n, r, s, a);
|
|
1262
1262
|
let u = o ?? 0;
|
|
@@ -1286,7 +1286,7 @@ function ht(e, t = {}, n, r, o) {
|
|
|
1286
1286
|
for (let v of f) l[`data-${v}`] = "";
|
|
1287
1287
|
}
|
|
1288
1288
|
}
|
|
1289
|
-
if (i ===
|
|
1289
|
+
if (i === Y && (Object.keys(Fe(c)).length > 0 || Object.keys(Fe(l)).length > 0)) if (!Be(d) || Array.isArray(d) && d.length > 1) {
|
|
1290
1290
|
if (Object.keys(Fe(c)).length > 0) throw new Error(['Passing props on "Fragment"!', "", `The current component <${r} /> is rendering a "Fragment".`, "However we need to passthrough the following props:", Object.keys(Fe(c)).concat(Object.keys(Fe(l))).map((h) => ` - ${h}`).join(`
|
|
1291
1291
|
`), "", "You can apply a few solutions:", ['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".', "Render a single element as the child so that we can forward the props onto that element."].map((h) => ` - ${h}`).join(`
|
|
1292
1292
|
`)].join(`
|
|
@@ -1296,9 +1296,9 @@ function ht(e, t = {}, n, r, o) {
|
|
|
1296
1296
|
for (let m in l) m in _ && delete l[m];
|
|
1297
1297
|
return Tn(d, Object.assign({}, _, l, u, { ref: o(d.ref, u.ref) }, y));
|
|
1298
1298
|
}
|
|
1299
|
-
return de(i, Object.assign({}, Ut(c, ["ref"]), i !==
|
|
1299
|
+
return de(i, Object.assign({}, Ut(c, ["ref"]), i !== Y && u, i !== Y && l), d);
|
|
1300
1300
|
}
|
|
1301
|
-
function
|
|
1301
|
+
function qi(...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
|
};
|
|
@@ -1321,7 +1321,7 @@ function vo(...e) {
|
|
|
1321
1321
|
} });
|
|
1322
1322
|
return t;
|
|
1323
1323
|
}
|
|
1324
|
-
function
|
|
1324
|
+
function Yi(...e) {
|
|
1325
1325
|
if (e.length === 0) return {};
|
|
1326
1326
|
if (e.length === 1) return e[0];
|
|
1327
1327
|
let t = {}, n = {};
|
|
@@ -1346,33 +1346,33 @@ function Ut(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 Ki = "button";
|
|
1350
|
+
function Gi(e, t) {
|
|
1351
1351
|
var n;
|
|
1352
|
-
let r = mo(), { disabled: o = r || !1, autoFocus: i = !1, ...s } = e, { isFocusVisible: a, focusProps: c } =
|
|
1353
|
-
return ae({ ourProps: f, theirProps: s, slot: v, defaultTag:
|
|
1352
|
+
let r = mo(), { disabled: o = r || !1, autoFocus: i = !1, ...s } = e, { isFocusVisible: a, focusProps: c } = Oi({ autoFocus: i }), { isHovered: u, hoverProps: d } = Ri({ isDisabled: o }), { pressed: l, pressProps: h } = ji({ disabled: o }), f = Yi({ ref: t, type: (n = s.type) != null ? n : "button", disabled: o || void 0, autoFocus: i }, c, d, h), v = U(() => ({ disabled: o, hover: u, focus: a, active: l, autofocus: i }), [o, u, a, l, i]);
|
|
1353
|
+
return ae({ ourProps: f, theirProps: s, slot: v, defaultTag: Ki, name: "Button" });
|
|
1354
1354
|
}
|
|
1355
|
-
let
|
|
1355
|
+
let Zi = oe(Gi), Xi = "div";
|
|
1356
1356
|
var Et = ((e) => (e[e.None = 1] = "None", e[e.Focusable = 2] = "Focusable", e[e.Hidden = 4] = "Hidden", e))(Et || {});
|
|
1357
|
-
function
|
|
1357
|
+
function Ji(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 ae({ ourProps: i, theirProps: o, slot: {}, defaultTag:
|
|
1360
|
+
return ae({ ourProps: i, theirProps: o, slot: {}, defaultTag: Xi, name: "Hidden" });
|
|
1361
1361
|
}
|
|
1362
|
-
let ln = oe(
|
|
1363
|
-
function
|
|
1364
|
-
let t = te(
|
|
1365
|
-
if (!t) return
|
|
1362
|
+
let ln = oe(Ji), Qi = ie(null);
|
|
1363
|
+
function es({ children: e }) {
|
|
1364
|
+
let t = te(Qi);
|
|
1365
|
+
if (!t) return P.createElement(P.Fragment, null, e);
|
|
1366
1366
|
let { target: n } = t;
|
|
1367
|
-
return n ? Ct(
|
|
1367
|
+
return n ? Ct(P.createElement(P.Fragment, null, e), n) : null;
|
|
1368
1368
|
}
|
|
1369
1369
|
let _o = Symbol();
|
|
1370
|
-
function
|
|
1370
|
+
function ts(e, t = !0) {
|
|
1371
1371
|
return Object.assign(e, { [_o]: t });
|
|
1372
1372
|
}
|
|
1373
1373
|
function pe(...e) {
|
|
1374
1374
|
let t = w(e);
|
|
1375
|
-
|
|
1375
|
+
V(() => {
|
|
1376
1376
|
t.current = e;
|
|
1377
1377
|
}, [e]);
|
|
1378
1378
|
let n = G((r) => {
|
|
@@ -1390,31 +1390,31 @@ function yo() {
|
|
|
1390
1390
|
}
|
|
1391
1391
|
return e;
|
|
1392
1392
|
}
|
|
1393
|
-
function
|
|
1394
|
-
let [e, t] =
|
|
1395
|
-
return [e.length > 0 ? e.join(" ") : void 0,
|
|
1393
|
+
function ns() {
|
|
1394
|
+
let [e, t] = F([]);
|
|
1395
|
+
return [e.length > 0 ? e.join(" ") : void 0, U(() => function(n) {
|
|
1396
1396
|
let r = G((i) => (t((s) => [...s, i]), () => t((s) => {
|
|
1397
1397
|
let a = s.slice(), c = a.indexOf(i);
|
|
1398
1398
|
return c !== -1 && a.splice(c, 1), a;
|
|
1399
|
-
}))), o =
|
|
1400
|
-
return
|
|
1399
|
+
}))), o = U(() => ({ register: r, slot: n.slot, name: n.name, props: n.props, value: n.value }), [r, n.slot, n.name, n.props, n.value]);
|
|
1400
|
+
return P.createElement(xn.Provider, { value: o }, n.children);
|
|
1401
1401
|
}, [t])];
|
|
1402
1402
|
}
|
|
1403
|
-
let
|
|
1404
|
-
function
|
|
1403
|
+
let rs = "p";
|
|
1404
|
+
function os(e, t) {
|
|
1405
1405
|
let n = Ce(), r = mo(), { id: o = `headlessui-description-${n}`, ...i } = e, s = yo(), a = pe(t);
|
|
1406
1406
|
re(() => s.register(o), [o, s.register]);
|
|
1407
|
-
let c = r || !1, u =
|
|
1408
|
-
return ae({ ourProps: d, theirProps: i, slot: u, defaultTag:
|
|
1407
|
+
let c = r || !1, u = U(() => ({ ...s.slot, disabled: c }), [s.slot, c]), d = { ref: a, ...s.props, id: o };
|
|
1408
|
+
return ae({ ourProps: d, theirProps: i, slot: u, defaultTag: rs, name: s.name || "Description" });
|
|
1409
1409
|
}
|
|
1410
|
-
let
|
|
1410
|
+
let is = oe(os), ss = Object.assign(is, {});
|
|
1411
1411
|
var go = ((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))(go || {});
|
|
1412
|
-
let
|
|
1412
|
+
let as = ie(() => {
|
|
1413
1413
|
});
|
|
1414
|
-
function
|
|
1415
|
-
return
|
|
1414
|
+
function cs({ value: e, children: t }) {
|
|
1415
|
+
return P.createElement(as.Provider, { value: e }, t);
|
|
1416
1416
|
}
|
|
1417
|
-
let
|
|
1417
|
+
let ls = class extends Map {
|
|
1418
1418
|
constructor(t) {
|
|
1419
1419
|
super(), this.factory = t;
|
|
1420
1420
|
}
|
|
@@ -1437,7 +1437,7 @@ function wo(e, t) {
|
|
|
1437
1437
|
function bo(e) {
|
|
1438
1438
|
return kt(e.subscribe, e.getSnapshot, e.getSnapshot);
|
|
1439
1439
|
}
|
|
1440
|
-
let
|
|
1440
|
+
let us = new ls(() => wo(() => [], { ADD(e) {
|
|
1441
1441
|
return this.includes(e) ? this : [...this, e];
|
|
1442
1442
|
}, REMOVE(e) {
|
|
1443
1443
|
let t = this.indexOf(e);
|
|
@@ -1446,7 +1446,7 @@ let ds = new us(() => wo(() => [], { ADD(e) {
|
|
|
1446
1446
|
return n.splice(t, 1), n;
|
|
1447
1447
|
} }));
|
|
1448
1448
|
function qe(e, t) {
|
|
1449
|
-
let n =
|
|
1449
|
+
let n = us.get(t), r = Ce(), o = bo(n);
|
|
1450
1450
|
if (re(() => {
|
|
1451
1451
|
if (e) return n.dispatch("ADD", r), () => n.dispatch("REMOVE", r);
|
|
1452
1452
|
}, [n, e]), !e) return !1;
|
|
@@ -1466,7 +1466,7 @@ function sr(e) {
|
|
|
1466
1466
|
let r = un.get(e);
|
|
1467
1467
|
r && (r["aria-hidden"] === null ? e.removeAttribute("aria-hidden") : e.setAttribute("aria-hidden", r["aria-hidden"]), e.inert = r.inert, un.delete(e));
|
|
1468
1468
|
}
|
|
1469
|
-
function
|
|
1469
|
+
function ds(e, { allowed: t, disallowed: n } = {}) {
|
|
1470
1470
|
let r = qe(e, "inert-others");
|
|
1471
1471
|
re(() => {
|
|
1472
1472
|
var o, i;
|
|
@@ -1492,7 +1492,7 @@ function Eo(e, t, n) {
|
|
|
1492
1492
|
let i = o.getBoundingClientRect();
|
|
1493
1493
|
i.x === 0 && i.y === 0 && i.width === 0 && i.height === 0 && n();
|
|
1494
1494
|
});
|
|
1495
|
-
|
|
1495
|
+
V(() => {
|
|
1496
1496
|
if (!e) return;
|
|
1497
1497
|
let o = t === null ? null : t instanceof HTMLElement ? t : t.current;
|
|
1498
1498
|
if (!o) return;
|
|
@@ -1508,16 +1508,16 @@ function Eo(e, t, n) {
|
|
|
1508
1508
|
return () => i.dispose();
|
|
1509
1509
|
}, [t, r, e]);
|
|
1510
1510
|
}
|
|
1511
|
-
let dn = ["[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 ve = ((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))(ve || {}), fn = ((e) => (e[e.Error = 0] = "Error", e[e.Overflow = 1] = "Overflow", e[e.Success = 2] = "Success", e[e.Underflow = 3] = "Underflow", e))(fn || {}),
|
|
1513
|
-
function
|
|
1511
|
+
let dn = ["[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(","), fs = ["[data-autofocus]"].map((e) => `${e}:not([tabindex='-1'])`).join(",");
|
|
1512
|
+
var ve = ((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))(ve || {}), fn = ((e) => (e[e.Error = 0] = "Error", e[e.Overflow = 1] = "Overflow", e[e.Success = 2] = "Success", e[e.Underflow = 3] = "Underflow", e))(fn || {}), hs = ((e) => (e[e.Previous = -1] = "Previous", e[e.Next = 1] = "Next", e))(hs || {});
|
|
1513
|
+
function ps(e = document.body) {
|
|
1514
1514
|
return e == null ? [] : Array.from(e.querySelectorAll(dn)).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 ms(e = document.body) {
|
|
1517
|
+
return e == null ? [] : Array.from(e.querySelectorAll(fs)).sort((t, n) => Math.sign((t.tabIndex || Number.MAX_SAFE_INTEGER) - (n.tabIndex || Number.MAX_SAFE_INTEGER)));
|
|
1518
1518
|
}
|
|
1519
1519
|
var $o = ((e) => (e[e.Strict = 0] = "Strict", e[e.Loose = 1] = "Loose", e))($o || {});
|
|
1520
|
-
function
|
|
1520
|
+
function vs(e, t = 0) {
|
|
1521
1521
|
var n;
|
|
1522
1522
|
return e === ((n = St(e)) == null ? void 0 : n.body) ? !1 : Te(t, { 0() {
|
|
1523
1523
|
return e.matches(dn);
|
|
@@ -1530,7 +1530,7 @@ function _s(e, t = 0) {
|
|
|
1530
1530
|
return !1;
|
|
1531
1531
|
} });
|
|
1532
1532
|
}
|
|
1533
|
-
var
|
|
1533
|
+
var _s = ((e) => (e[e.Keyboard = 0] = "Keyboard", e[e.Mouse = 1] = "Mouse", e))(_s || {});
|
|
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) => {
|
|
@@ -1539,12 +1539,12 @@ typeof window < "u" && typeof document < "u" && (document.addEventListener("keyd
|
|
|
1539
1539
|
function ge(e) {
|
|
1540
1540
|
e == null || e.focus({ preventScroll: !0 });
|
|
1541
1541
|
}
|
|
1542
|
-
let
|
|
1543
|
-
function
|
|
1542
|
+
let ys = ["textarea", "input"].join(",");
|
|
1543
|
+
function gs(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, ys)) != null ? n : !1;
|
|
1546
1546
|
}
|
|
1547
|
-
function
|
|
1547
|
+
function ws(e, t = (n) => n) {
|
|
1548
1548
|
return e.slice().sort((n, r) => {
|
|
1549
1549
|
let o = t(n), i = t(r);
|
|
1550
1550
|
if (o === null || i === null) return 0;
|
|
@@ -1553,7 +1553,7 @@ function bs(e, t = (n) => n) {
|
|
|
1553
1553
|
});
|
|
1554
1554
|
}
|
|
1555
1555
|
function nt(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, s = Array.isArray(e) ? n ?
|
|
1556
|
+
let i = Array.isArray(e) ? e.length > 0 ? e[0].ownerDocument : document : e.ownerDocument, s = Array.isArray(e) ? n ? ws(e) : e : t & 64 ? ms(e) : ps(e);
|
|
1557
1557
|
o.length > 0 && s.length > 1 && (s = s.filter((f) => !o.some((v) => v != null && "current" in v ? (v == null ? void 0 : v.current) === f : v === f))), r = r ?? i.activeElement;
|
|
1558
1558
|
let a = (() => {
|
|
1559
1559
|
if (t & 5) return 1;
|
|
@@ -1576,20 +1576,20 @@ function nt(e, t, { sorted: n = !0, relativeTo: r = null, skipElements: o = [] }
|
|
|
1576
1576
|
}
|
|
1577
1577
|
h = s[f], h == null || h.focus(u), d += a;
|
|
1578
1578
|
} while (h !== i.activeElement);
|
|
1579
|
-
return t & 6 &&
|
|
1579
|
+
return t & 6 && gs(h) && h.select(), 2;
|
|
1580
1580
|
}
|
|
1581
1581
|
function To() {
|
|
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 bs() {
|
|
1585
1585
|
return /Android/gi.test(window.navigator.userAgent);
|
|
1586
1586
|
}
|
|
1587
|
-
function
|
|
1588
|
-
return To() ||
|
|
1587
|
+
function Es() {
|
|
1588
|
+
return To() || bs();
|
|
1589
1589
|
}
|
|
1590
1590
|
function Ke(e, t, n, r) {
|
|
1591
1591
|
let o = Oe(n);
|
|
1592
|
-
|
|
1592
|
+
V(() => {
|
|
1593
1593
|
if (!e) return;
|
|
1594
1594
|
function i(s) {
|
|
1595
1595
|
o.current(s);
|
|
@@ -1599,7 +1599,7 @@ function Ke(e, t, n, r) {
|
|
|
1599
1599
|
}
|
|
1600
1600
|
function Co(e, t, n, r) {
|
|
1601
1601
|
let o = Oe(n);
|
|
1602
|
-
|
|
1602
|
+
V(() => {
|
|
1603
1603
|
if (!e) return;
|
|
1604
1604
|
function i(s) {
|
|
1605
1605
|
o.current(s);
|
|
@@ -1608,8 +1608,8 @@ function Co(e, t, n, r) {
|
|
|
1608
1608
|
}, [e, t, r]);
|
|
1609
1609
|
}
|
|
1610
1610
|
const ar = 30;
|
|
1611
|
-
function
|
|
1612
|
-
let r = qe(e, "outside-click"), o = Oe(n), i =
|
|
1611
|
+
function $s(e, t, n) {
|
|
1612
|
+
let r = qe(e, "outside-click"), o = Oe(n), i = z(function(c, u) {
|
|
1613
1613
|
if (c.defaultPrevented) return;
|
|
1614
1614
|
let d = u(c);
|
|
1615
1615
|
if (d === null || !d.getRootNode().contains(d) || !d.isConnected) return;
|
|
@@ -1621,7 +1621,7 @@ function Ts(e, t, n) {
|
|
|
1621
1621
|
let f = h instanceof HTMLElement ? h : h.current;
|
|
1622
1622
|
if (f != null && f.contains(d) || c.composed && c.composedPath().includes(f)) return;
|
|
1623
1623
|
}
|
|
1624
|
-
return !
|
|
1624
|
+
return !vs(d, $o.Loose) && d.tabIndex !== -1 && c.preventDefault(), o.current(c, d);
|
|
1625
1625
|
}, [o]), s = w(null);
|
|
1626
1626
|
Ke(r, "pointerdown", (c) => {
|
|
1627
1627
|
var u, d;
|
|
@@ -1630,7 +1630,7 @@ function Ts(e, t, n) {
|
|
|
1630
1630
|
var u, d;
|
|
1631
1631
|
s.current = ((d = (u = c.composedPath) == null ? void 0 : u.call(c)) == null ? void 0 : d[0]) || c.target;
|
|
1632
1632
|
}, !0), Ke(r, "click", (c) => {
|
|
1633
|
-
|
|
1633
|
+
Es() || s.current && (i(c, () => s.current), s.current = null);
|
|
1634
1634
|
}, !0);
|
|
1635
1635
|
let a = w({ x: 0, y: 0 });
|
|
1636
1636
|
Ke(r, "touchstart", (c) => {
|
|
@@ -1641,11 +1641,11 @@ function Ts(e, t, n) {
|
|
|
1641
1641
|
}, !0), Co(r, "blur", (c) => i(c, () => window.document.activeElement instanceof HTMLIFrameElement ? window.document.activeElement : null), !0);
|
|
1642
1642
|
}
|
|
1643
1643
|
function ct(...e) {
|
|
1644
|
-
return
|
|
1644
|
+
return U(() => St(...e), [...e]);
|
|
1645
1645
|
}
|
|
1646
1646
|
function ko(e, t, n, r) {
|
|
1647
1647
|
let o = Oe(n);
|
|
1648
|
-
|
|
1648
|
+
V(() => {
|
|
1649
1649
|
e = e ?? window;
|
|
1650
1650
|
function i(s) {
|
|
1651
1651
|
o.current(s);
|
|
@@ -1653,7 +1653,7 @@ function ko(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 Ts() {
|
|
1657
1657
|
let e;
|
|
1658
1658
|
return { before({ doc: t }) {
|
|
1659
1659
|
var n;
|
|
@@ -1664,7 +1664,7 @@ function Cs() {
|
|
|
1664
1664
|
n.style(r, "paddingRight", `${i}px`);
|
|
1665
1665
|
} };
|
|
1666
1666
|
}
|
|
1667
|
-
function
|
|
1667
|
+
function Cs() {
|
|
1668
1668
|
return To() ? { 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));
|
|
@@ -1707,12 +1707,12 @@ function ks() {
|
|
|
1707
1707
|
});
|
|
1708
1708
|
} } : {};
|
|
1709
1709
|
}
|
|
1710
|
-
function
|
|
1710
|
+
function ks() {
|
|
1711
1711
|
return { before({ doc: e, d: t }) {
|
|
1712
1712
|
t.style(e.documentElement, "overflow", "hidden");
|
|
1713
1713
|
} };
|
|
1714
1714
|
}
|
|
1715
|
-
function
|
|
1715
|
+
function Ss(e) {
|
|
1716
1716
|
let t = {};
|
|
1717
1717
|
for (let n of e) Object.assign(t, n(t));
|
|
1718
1718
|
return t;
|
|
@@ -1725,7 +1725,7 @@ let Le = wo(() => /* @__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: Ss(n) }, o = [Cs(), Ts(), ks()];
|
|
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,43 +1740,43 @@ Le.subscribe(() => {
|
|
|
1740
1740
|
(o && !r || !o && r) && Le.dispatch(n.count > 0 ? "SCROLL_PREVENT" : "SCROLL_ALLOW", n), n.count === 0 && Le.dispatch("TEARDOWN", n);
|
|
1741
1741
|
}
|
|
1742
1742
|
});
|
|
1743
|
-
function
|
|
1743
|
+
function Fs(e, t, n = () => ({ containers: [] })) {
|
|
1744
1744
|
let r = bo(Le), o = t ? r.get(t) : void 0, i = o ? o.count > 0 : !1;
|
|
1745
1745
|
return re(() => {
|
|
1746
1746
|
if (!(!t || !e)) return Le.dispatch("PUSH", t, n), () => Le.dispatch("POP", t, n);
|
|
1747
1747
|
}, [e, t]), i;
|
|
1748
1748
|
}
|
|
1749
|
-
function
|
|
1749
|
+
function Ms(e, t, n = () => [document.body]) {
|
|
1750
1750
|
let r = qe(e, "scroll-lock");
|
|
1751
|
-
|
|
1751
|
+
Fs(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 xs(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 Ps(e = 0) {
|
|
1763
|
+
let [t, n] = F(e), r = z((c) => n(c), [t]), o = z((c) => n((u) => u | c), [t]), i = z((c) => (t & c) === c, [t]), s = z((c) => n((u) => u & ~c), [n]), a = z((c) => n((u) => u ^ c), [n]);
|
|
1764
1764
|
return { flags: t, setFlag: r, addFlag: o, hasFlag: i, removeFlag: s, toggleFlag: a };
|
|
1765
1765
|
}
|
|
1766
|
-
var
|
|
1767
|
-
function
|
|
1766
|
+
var Ls = ((e) => (e[e.None = 0] = "None", e[e.Closed = 1] = "Closed", e[e.Enter = 2] = "Enter", e[e.Leave = 4] = "Leave", e))(Ls || {});
|
|
1767
|
+
function Ns(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] =
|
|
1772
|
+
function As(e, t, n, r) {
|
|
1773
|
+
let [o, i] = F(n), { hasFlag: s, addFlag: a, removeFlag: c } = Ps(e && o ? 3 : 0), u = w(!1), d = w(!1), l = Mt();
|
|
1774
1774
|
return re(function h() {
|
|
1775
1775
|
var f;
|
|
1776
1776
|
if (!e) return;
|
|
1777
1777
|
n && i(!0);
|
|
1778
1778
|
let v = t.current;
|
|
1779
|
-
return v ? ((f = r == null ? void 0 : r.start) == null || f.call(r, n),
|
|
1779
|
+
return v ? ((f = r == null ? void 0 : r.start) == null || f.call(r, n), Ds(v, { inFlight: u, prepare() {
|
|
1780
1780
|
d.current ? d.current = !1 : d.current = u.current, u.current = !0, !d.current && (n ? (a(3), c(4)) : (a(4), c(2)));
|
|
1781
1781
|
}, run() {
|
|
1782
1782
|
d.current ? n ? (c(3), a(4)) : (c(4), a(3)) : n ? c(1) : a(1);
|
|
@@ -1786,14 +1786,14 @@ function Ds(e, t, n, r) {
|
|
|
1786
1786
|
} })) : n ? (a(3), l.nextFrame(() => h())) : void 0;
|
|
1787
1787
|
}, [e, n, t, l]), e ? [o, { closed: s(1), enter: s(2), leave: s(4), transition: s(2) || s(4) }] : [n, { closed: void 0, enter: void 0, leave: void 0, transition: void 0 }];
|
|
1788
1788
|
}
|
|
1789
|
-
function
|
|
1789
|
+
function Ds(e, { prepare: t, run: n, done: r, inFlight: o }) {
|
|
1790
1790
|
let i = ke();
|
|
1791
|
-
return
|
|
1792
|
-
i.add(
|
|
1791
|
+
return Rs(e, { prepare: t, inFlight: o }), i.nextFrame(() => {
|
|
1792
|
+
i.add(Is(e, r)), n();
|
|
1793
1793
|
}), i.dispose;
|
|
1794
1794
|
}
|
|
1795
|
-
function
|
|
1796
|
-
let n =
|
|
1795
|
+
function Is(e, t) {
|
|
1796
|
+
let n = xs(t), r = ke();
|
|
1797
1797
|
if (!e) return r.dispose;
|
|
1798
1798
|
let { transitionDuration: o, transitionDelay: i } = getComputedStyle(e), [s, a] = [o, i].map((u) => {
|
|
1799
1799
|
let [d = 0] = u.split(",").filter(Boolean).map((l) => l.includes("ms") ? parseFloat(l) : parseFloat(l) * 1e3).sort((l, h) => h - l);
|
|
@@ -1816,7 +1816,7 @@ function Rs(e, t) {
|
|
|
1816
1816
|
} else n();
|
|
1817
1817
|
return r.dispose;
|
|
1818
1818
|
}
|
|
1819
|
-
function
|
|
1819
|
+
function Rs(e, { inFlight: t, prepare: n }) {
|
|
1820
1820
|
if (t != null && t.current) {
|
|
1821
1821
|
n();
|
|
1822
1822
|
return;
|
|
@@ -1826,7 +1826,7 @@ function Os(e, { inFlight: t, prepare: n }) {
|
|
|
1826
1826
|
}
|
|
1827
1827
|
function Pn(e, t) {
|
|
1828
1828
|
let n = w([]), r = G(e);
|
|
1829
|
-
|
|
1829
|
+
V(() => {
|
|
1830
1830
|
let o = [...n.current];
|
|
1831
1831
|
for (let [i, s] of t.entries()) if (n.current[i] !== s) {
|
|
1832
1832
|
let a = r(t, o);
|
|
@@ -1840,20 +1840,20 @@ var le = ((e) => (e[e.Open = 1] = "Open", e[e.Closed = 2] = "Closed", e[e.Closin
|
|
|
1840
1840
|
function Pt() {
|
|
1841
1841
|
return te(xt);
|
|
1842
1842
|
}
|
|
1843
|
-
function
|
|
1844
|
-
return
|
|
1843
|
+
function Os({ value: e, children: t }) {
|
|
1844
|
+
return P.createElement(xt.Provider, { value: e }, t);
|
|
1845
1845
|
}
|
|
1846
|
-
function
|
|
1847
|
-
return
|
|
1846
|
+
function Hs({ children: e }) {
|
|
1847
|
+
return P.createElement(xt.Provider, { value: null }, e);
|
|
1848
1848
|
}
|
|
1849
|
-
function
|
|
1849
|
+
function Vs(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 be = [];
|
|
1856
|
-
|
|
1856
|
+
Vs(() => {
|
|
1857
1857
|
function e(t) {
|
|
1858
1858
|
t.target instanceof HTMLElement && t.target !== document.body && be[0] !== t.target && (be.unshift(t.target), be = be.filter((n) => n != null && n.isConnected), be.splice(10));
|
|
1859
1859
|
}
|
|
@@ -1861,32 +1861,32 @@ Ws(() => {
|
|
|
1861
1861
|
});
|
|
1862
1862
|
function So(e) {
|
|
1863
1863
|
let t = G(e), n = w(!1);
|
|
1864
|
-
|
|
1864
|
+
V(() => (n.current = !1, () => {
|
|
1865
1865
|
n.current = !0, Ft(() => {
|
|
1866
1866
|
n.current && t();
|
|
1867
1867
|
});
|
|
1868
1868
|
}), [t]);
|
|
1869
1869
|
}
|
|
1870
|
-
function
|
|
1870
|
+
function Ws() {
|
|
1871
1871
|
let e = typeof document > "u";
|
|
1872
1872
|
return "useSyncExternalStore" in rr ? ((t) => t.useSyncExternalStore)(rr)(() => () => {
|
|
1873
1873
|
}, () => !1, () => !e) : !1;
|
|
1874
1874
|
}
|
|
1875
1875
|
function lt() {
|
|
1876
|
-
let e =
|
|
1877
|
-
return t && Ne.isHandoffComplete === !1 && n(!1),
|
|
1876
|
+
let e = Ws(), [t, n] = F(Ne.isHandoffComplete);
|
|
1877
|
+
return t && Ne.isHandoffComplete === !1 && n(!1), V(() => {
|
|
1878
1878
|
t !== !0 && n(!0);
|
|
1879
|
-
}, [t]),
|
|
1879
|
+
}, [t]), V(() => Ne.handoff(), []), e ? !1 : t;
|
|
1880
1880
|
}
|
|
1881
1881
|
let Fo = ie(!1);
|
|
1882
|
-
function
|
|
1882
|
+
function zs() {
|
|
1883
1883
|
return te(Fo);
|
|
1884
1884
|
}
|
|
1885
1885
|
function cr(e) {
|
|
1886
|
-
return
|
|
1886
|
+
return P.createElement(Fo.Provider, { value: e.force }, e.children);
|
|
1887
1887
|
}
|
|
1888
|
-
function
|
|
1889
|
-
let t =
|
|
1888
|
+
function Us(e) {
|
|
1889
|
+
let t = zs(), n = te(xo), r = ct(e), [o, i] = F(() => {
|
|
1890
1890
|
var s;
|
|
1891
1891
|
if (!t && n !== null) return (s = n.current) != null ? s : null;
|
|
1892
1892
|
if (Ne.isServer) return null;
|
|
@@ -1896,16 +1896,16 @@ function js(e) {
|
|
|
1896
1896
|
let c = r.createElement("div");
|
|
1897
1897
|
return c.setAttribute("id", "headlessui-portal-root"), r.body.appendChild(c);
|
|
1898
1898
|
});
|
|
1899
|
-
return
|
|
1899
|
+
return V(() => {
|
|
1900
1900
|
o !== null && (r != null && r.body.contains(o) || r == null || r.body.appendChild(o));
|
|
1901
|
-
}, [o, r]),
|
|
1901
|
+
}, [o, r]), V(() => {
|
|
1902
1902
|
t || n !== null && i(n.current);
|
|
1903
1903
|
}, [n, i, t]), o;
|
|
1904
1904
|
}
|
|
1905
|
-
let Mo =
|
|
1906
|
-
let n = e, r = w(null), o = pe(
|
|
1905
|
+
let Mo = Y, js = oe(function(e, t) {
|
|
1906
|
+
let n = e, r = w(null), o = pe(ts((d) => {
|
|
1907
1907
|
r.current = d;
|
|
1908
|
-
}), t), i = ct(r), s =
|
|
1908
|
+
}), t), i = ct(r), s = Us(r), [a] = F(() => {
|
|
1909
1909
|
var d;
|
|
1910
1910
|
return Ne.isServer ? null : (d = i == null ? void 0 : i.createElement("div")) != null ? d : null;
|
|
1911
1911
|
}), c = te(hn), u = lt();
|
|
@@ -1918,35 +1918,35 @@ let Mo = K, Bs = oe(function(e, t) {
|
|
|
1918
1918
|
!s || !a || (a instanceof Node && s.contains(a) && s.removeChild(a), s.childNodes.length <= 0 && ((d = s.parentElement) == null || d.removeChild(s)));
|
|
1919
1919
|
}), u ? !s || !a ? null : Ct(ae({ ourProps: { ref: o }, theirProps: n, slot: {}, defaultTag: Mo, name: "Portal" }), a) : null;
|
|
1920
1920
|
});
|
|
1921
|
-
function
|
|
1921
|
+
function Bs(e, t) {
|
|
1922
1922
|
let n = pe(t), { enabled: r = !0, ...o } = e;
|
|
1923
|
-
return r ?
|
|
1923
|
+
return r ? P.createElement(js, { ...o, ref: n }) : ae({ ourProps: { ref: n }, theirProps: o, slot: {}, defaultTag: Mo, name: "Portal" });
|
|
1924
1924
|
}
|
|
1925
|
-
let
|
|
1926
|
-
function
|
|
1925
|
+
let qs = Y, xo = ie(null);
|
|
1926
|
+
function Ys(e, t) {
|
|
1927
1927
|
let { target: n, ...r } = e, o = { ref: pe(t) };
|
|
1928
|
-
return
|
|
1928
|
+
return P.createElement(xo.Provider, { value: n }, ae({ ourProps: o, theirProps: r, defaultTag: qs, name: "Popover.Group" }));
|
|
1929
1929
|
}
|
|
1930
1930
|
let hn = ie(null);
|
|
1931
|
-
function
|
|
1931
|
+
function Ks() {
|
|
1932
1932
|
let e = te(hn), t = w([]), n = G((i) => (t.current.push(i), e && e.register(i), () => r(i))), r = G((i) => {
|
|
1933
1933
|
let s = t.current.indexOf(i);
|
|
1934
1934
|
s !== -1 && t.current.splice(s, 1), e && e.unregister(i);
|
|
1935
|
-
}), o =
|
|
1936
|
-
return [t,
|
|
1937
|
-
return
|
|
1935
|
+
}), o = U(() => ({ register: n, unregister: r, portals: t }), [n, r, t]);
|
|
1936
|
+
return [t, U(() => function({ children: i }) {
|
|
1937
|
+
return P.createElement(hn.Provider, { value: o }, i);
|
|
1938
1938
|
}, [o])];
|
|
1939
1939
|
}
|
|
1940
|
-
let
|
|
1941
|
-
function
|
|
1940
|
+
let Gs = oe(Bs), Po = oe(Ys), Zs = Object.assign(Gs, { Group: Po });
|
|
1941
|
+
function Xs(e, t = typeof document < "u" ? document.defaultView : null, n) {
|
|
1942
1942
|
let r = qe(e, "escape");
|
|
1943
1943
|
ko(t, "keydown", (o) => {
|
|
1944
1944
|
r && (o.defaultPrevented || o.key === go.Escape && n(o));
|
|
1945
1945
|
});
|
|
1946
1946
|
}
|
|
1947
|
-
function
|
|
1947
|
+
function Js() {
|
|
1948
1948
|
var e;
|
|
1949
|
-
let [t] =
|
|
1949
|
+
let [t] = F(() => typeof window < "u" && typeof window.matchMedia == "function" ? window.matchMedia("(pointer: coarse)") : null), [n, r] = F((e = t == null ? void 0 : t.matches) != null ? e : !1);
|
|
1950
1950
|
return re(() => {
|
|
1951
1951
|
if (!t) return;
|
|
1952
1952
|
function o(i) {
|
|
@@ -1955,7 +1955,7 @@ function Qs() {
|
|
|
1955
1955
|
return t.addEventListener("change", o), () => t.removeEventListener("change", o);
|
|
1956
1956
|
}, [t]), n;
|
|
1957
1957
|
}
|
|
1958
|
-
function
|
|
1958
|
+
function Qs({ defaultContainers: e = [], portals: t, mainTreeNodeRef: n } = {}) {
|
|
1959
1959
|
var r;
|
|
1960
1960
|
let o = w((r = n == null ? void 0 : n.current) != null ? r : null), i = ct(o), s = G(() => {
|
|
1961
1961
|
var a, c, u;
|
|
@@ -1965,8 +1965,8 @@ function ea({ defaultContainers: e = [], portals: t, mainTreeNodeRef: n } = {})
|
|
|
1965
1965
|
for (let l of (a = i == null ? void 0 : i.querySelectorAll("html > *, body > *")) != null ? a : []) l !== document.body && l !== document.head && l instanceof HTMLElement && l.id !== "headlessui-portal-root" && (l.contains(o.current) || l.contains((u = (c = o.current) == null ? void 0 : c.getRootNode()) == null ? void 0 : u.host) || d.some((h) => l.contains(h)) || d.push(l));
|
|
1966
1966
|
return d;
|
|
1967
1967
|
});
|
|
1968
|
-
return { resolveContainers: s, contains: G((a) => s().some((c) => c.contains(a))), mainTreeNodeRef: o, MainTreeNode:
|
|
1969
|
-
return n != null ? null :
|
|
1968
|
+
return { resolveContainers: s, contains: G((a) => s().some((c) => c.contains(a))), mainTreeNodeRef: o, MainTreeNode: U(() => function() {
|
|
1969
|
+
return n != null ? null : P.createElement(ln, { features: Et.Hidden, ref: o });
|
|
1970
1970
|
}, [o, n]) };
|
|
1971
1971
|
}
|
|
1972
1972
|
function Ln() {
|
|
@@ -1976,7 +1976,7 @@ function Ln() {
|
|
|
1976
1976
|
}), []), e;
|
|
1977
1977
|
}
|
|
1978
1978
|
var Xe = ((e) => (e[e.Forwards = 0] = "Forwards", e[e.Backwards = 1] = "Backwards", e))(Xe || {});
|
|
1979
|
-
function
|
|
1979
|
+
function ea() {
|
|
1980
1980
|
let e = w(0);
|
|
1981
1981
|
return Co(!0, "keydown", (t) => {
|
|
1982
1982
|
t.key === "Tab" && (e.current = t.shiftKey ? 1 : 0);
|
|
@@ -1989,18 +1989,18 @@ function Lo(e) {
|
|
|
1989
1989
|
for (let n of e.current) n.current instanceof HTMLElement && t.add(n.current);
|
|
1990
1990
|
return t;
|
|
1991
1991
|
}
|
|
1992
|
-
let
|
|
1992
|
+
let ta = "div";
|
|
1993
1993
|
var xe = ((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))(xe || {});
|
|
1994
|
-
function
|
|
1994
|
+
function na(e, t) {
|
|
1995
1995
|
let n = w(null), r = pe(n, t), { initialFocus: o, initialFocusFallback: i, containers: s, features: a = 15, ...c } = e;
|
|
1996
1996
|
lt() || (a = 0);
|
|
1997
1997
|
let u = ct(n);
|
|
1998
|
-
|
|
1999
|
-
let d =
|
|
2000
|
-
|
|
2001
|
-
let l =
|
|
1998
|
+
sa(a, { ownerDocument: u });
|
|
1999
|
+
let d = aa(a, { ownerDocument: u, container: n, initialFocus: o, initialFocusFallback: i });
|
|
2000
|
+
ca(a, { ownerDocument: u, container: n, containers: s, previousActiveElement: d });
|
|
2001
|
+
let l = ea(), h = G((m) => {
|
|
2002
2002
|
let g = n.current;
|
|
2003
|
-
g && ((
|
|
2003
|
+
g && ((E) => E())(() => {
|
|
2004
2004
|
Te(l.current, { [Xe.Forwards]: () => {
|
|
2005
2005
|
nt(g, ve.First, { skipElements: [m.relatedTarget, i] });
|
|
2006
2006
|
}, [Xe.Backwards]: () => {
|
|
@@ -2015,13 +2015,13 @@ function ra(e, t) {
|
|
|
2015
2015
|
if (!(a & 4)) return;
|
|
2016
2016
|
let g = Lo(s);
|
|
2017
2017
|
n.current instanceof HTMLElement && g.add(n.current);
|
|
2018
|
-
let
|
|
2019
|
-
|
|
2018
|
+
let E = m.relatedTarget;
|
|
2019
|
+
E instanceof HTMLElement && E.dataset.headlessuiFocusGuard !== "true" && (No(g, E) || (y.current ? nt(n.current, Te(l.current, { [Xe.Forwards]: () => ve.Next, [Xe.Backwards]: () => ve.Previous }) | ve.WrapAround, { relativeTo: m.target }) : m.target instanceof HTMLElement && ge(m.target)));
|
|
2020
2020
|
} };
|
|
2021
|
-
return
|
|
2021
|
+
return P.createElement(P.Fragment, null, f && P.createElement(ln, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: h, features: Et.Focusable }), ae({ ourProps: _, theirProps: c, defaultTag: ta, name: "FocusTrap" }), f && P.createElement(ln, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: h, features: Et.Focusable }));
|
|
2022
2022
|
}
|
|
2023
|
-
let
|
|
2024
|
-
function
|
|
2023
|
+
let ra = oe(na), oa = Object.assign(ra, { features: xe });
|
|
2024
|
+
function ia(e = !0) {
|
|
2025
2025
|
let t = w(be.slice());
|
|
2026
2026
|
return Pn(([n], [r]) => {
|
|
2027
2027
|
r === !0 && n === !1 && Ft(() => {
|
|
@@ -2032,15 +2032,15 @@ function sa(e = !0) {
|
|
|
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 =
|
|
2035
|
+
function sa(e, { ownerDocument: t }) {
|
|
2036
|
+
let n = !!(e & 8), r = ia(n);
|
|
2037
2037
|
Pn(() => {
|
|
2038
2038
|
n || (t == null ? void 0 : t.activeElement) === (t == null ? void 0 : t.body) && ge(r());
|
|
2039
2039
|
}, [n]), So(() => {
|
|
2040
2040
|
n && ge(r());
|
|
2041
2041
|
});
|
|
2042
2042
|
}
|
|
2043
|
-
function
|
|
2043
|
+
function aa(e, { ownerDocument: t, container: n, initialFocus: r, initialFocusFallback: o }) {
|
|
2044
2044
|
let i = w(null), s = qe(!!(e & 1), "focus-trap#initial-focus"), a = Ln();
|
|
2045
2045
|
return Pn(() => {
|
|
2046
2046
|
if (e === 0) return;
|
|
@@ -2073,7 +2073,7 @@ function ca(e, { ownerDocument: t, container: n, initialFocus: r, initialFocusFa
|
|
|
2073
2073
|
});
|
|
2074
2074
|
}, [o, s, e]), i;
|
|
2075
2075
|
}
|
|
2076
|
-
function
|
|
2076
|
+
function ca(e, { ownerDocument: t, container: n, containers: r, previousActiveElement: o }) {
|
|
2077
2077
|
let i = Ln(), s = !!(e & 4);
|
|
2078
2078
|
ko(t == null ? void 0 : t.defaultView, "focus", (a) => {
|
|
2079
2079
|
if (!s || !i.current) return;
|
|
@@ -2091,17 +2091,17 @@ function No(e, t) {
|
|
|
2091
2091
|
}
|
|
2092
2092
|
function Ao(e) {
|
|
2093
2093
|
var t;
|
|
2094
|
-
return !!(e.enter || e.enterFrom || e.enterTo || e.leave || e.leaveFrom || e.leaveTo) || ((t = e.as) != null ? t : Io) !==
|
|
2094
|
+
return !!(e.enter || e.enterFrom || e.enterTo || e.leave || e.leaveFrom || e.leaveTo) || ((t = e.as) != null ? t : Io) !== Y || P.Children.count(e.children) === 1;
|
|
2095
2095
|
}
|
|
2096
2096
|
let Lt = ie(null);
|
|
2097
2097
|
Lt.displayName = "TransitionContext";
|
|
2098
|
-
var
|
|
2099
|
-
function
|
|
2098
|
+
var la = ((e) => (e.Visible = "visible", e.Hidden = "hidden", e))(la || {});
|
|
2099
|
+
function ua() {
|
|
2100
2100
|
let e = te(Lt);
|
|
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 = te(Nt);
|
|
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;
|
|
@@ -2137,76 +2137,76 @@ function Do(e, t) {
|
|
|
2137
2137
|
(_ = c.current.shift()) == null || _();
|
|
2138
2138
|
}).then(() => y(v));
|
|
2139
2139
|
});
|
|
2140
|
-
return
|
|
2140
|
+
return U(() => ({ children: r, register: a, unregister: s, onStart: l, onStop: h, wait: u, chains: d }), [a, s, r, l, h, d, u]);
|
|
2141
2141
|
}
|
|
2142
|
-
let Io =
|
|
2143
|
-
function
|
|
2142
|
+
let Io = Y, Ro = bt.RenderStrategy;
|
|
2143
|
+
function fa(e, t) {
|
|
2144
2144
|
var n, r;
|
|
2145
|
-
let { transition: o = !0, beforeEnter: i, afterEnter: s, beforeLeave: a, afterLeave: c, enter: u, enterFrom: d, enterTo: l, entered: h, leave: f, leaveFrom: v, leaveTo: y, ..._ } = e, m = w(null), g = Ao(e),
|
|
2146
|
-
re(() =>
|
|
2147
|
-
if (
|
|
2148
|
-
if (
|
|
2149
|
-
|
|
2145
|
+
let { transition: o = !0, beforeEnter: i, afterEnter: s, beforeLeave: a, afterLeave: c, enter: u, enterFrom: d, enterTo: l, entered: h, leave: f, leaveFrom: v, leaveTo: y, ..._ } = e, m = w(null), g = Ao(e), E = pe(...g ? [m, t] : t === null ? [] : [t]), $ = (n = _.unmount) == null || n ? Ee.Unmount : Ee.Hidden, { show: C, appear: M, initial: N } = ua(), [W, S] = F(C ? "visible" : "hidden"), b = da(), { register: A, unregister: K } = b;
|
|
2146
|
+
re(() => A(m), [A, m]), re(() => {
|
|
2147
|
+
if ($ === Ee.Hidden && m.current) {
|
|
2148
|
+
if (C && W !== "visible") {
|
|
2149
|
+
S("visible");
|
|
2150
2150
|
return;
|
|
2151
2151
|
}
|
|
2152
|
-
return Te(
|
|
2152
|
+
return Te(W, { hidden: () => K(m), visible: () => A(m) });
|
|
2153
2153
|
}
|
|
2154
|
-
}, [
|
|
2154
|
+
}, [W, m, A, K, C, $]);
|
|
2155
2155
|
let I = lt();
|
|
2156
2156
|
re(() => {
|
|
2157
|
-
if (g && I &&
|
|
2158
|
-
}, [m,
|
|
2159
|
-
let
|
|
2160
|
-
|
|
2161
|
-
},
|
|
2162
|
-
|
|
2157
|
+
if (g && I && W === "visible" && m.current === null) throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?");
|
|
2158
|
+
}, [m, W, I, g]);
|
|
2159
|
+
let B = N && !M, D = M && C && N, H = w(!1), k = Do(() => {
|
|
2160
|
+
H.current || (S("hidden"), K(m));
|
|
2161
|
+
}, b), x = G((Q) => {
|
|
2162
|
+
H.current = !0;
|
|
2163
2163
|
let J = Q ? "enter" : "leave";
|
|
2164
|
-
|
|
2164
|
+
k.onStart(m, J, (ee) => {
|
|
2165
2165
|
ee === "enter" ? i == null || i() : ee === "leave" && (a == null || a());
|
|
2166
2166
|
});
|
|
2167
|
-
}),
|
|
2167
|
+
}), O = G((Q) => {
|
|
2168
2168
|
let J = Q ? "enter" : "leave";
|
|
2169
|
-
|
|
2169
|
+
H.current = !1, k.onStop(m, J, (ee) => {
|
|
2170
2170
|
ee === "enter" ? s == null || s() : ee === "leave" && (c == null || c());
|
|
2171
|
-
}), J === "leave" && !At(
|
|
2171
|
+
}), J === "leave" && !At(k) && (S("hidden"), K(m));
|
|
2172
2172
|
});
|
|
2173
|
-
|
|
2174
|
-
g && o || (
|
|
2175
|
-
}, [
|
|
2176
|
-
let
|
|
2177
|
-
return
|
|
2173
|
+
V(() => {
|
|
2174
|
+
g && o || (x(C), O(C));
|
|
2175
|
+
}, [C, g, o]);
|
|
2176
|
+
let L = !(!o || !g || !I || B), [, T] = As(L, m, C, { start: x, end: O }), j = Fe({ ref: E, className: ((r = cn(_.className, D && u, D && d, T.enter && u, T.enter && T.closed && d, T.enter && !T.closed && l, T.leave && f, T.leave && !T.closed && v, T.leave && T.closed && y, !T.transition && C && h)) == null ? void 0 : r.trim()) || void 0, ...Ns(T) }), Z = 0;
|
|
2177
|
+
return W === "visible" && (Z |= le.Open), W === "hidden" && (Z |= le.Closed), T.enter && (Z |= le.Opening), T.leave && (Z |= le.Closing), P.createElement(Nt.Provider, { value: k }, P.createElement(Os, { value: Z }, ae({ ourProps: j, theirProps: _, defaultTag: Io, features: Ro, visible: W === "visible", name: "Transition.Child" })));
|
|
2178
2178
|
}
|
|
2179
|
-
function
|
|
2179
|
+
function ha(e, t) {
|
|
2180
2180
|
let { show: n, appear: r = !1, unmount: o = !0, ...i } = e, s = w(null), a = Ao(e), c = pe(...a ? [s, t] : t === null ? [] : [t]);
|
|
2181
2181
|
lt();
|
|
2182
2182
|
let u = Pt();
|
|
2183
2183
|
if (n === void 0 && u !== null && (n = (u & le.Open) === le.Open), n === void 0) throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");
|
|
2184
|
-
let [d, l] =
|
|
2184
|
+
let [d, l] = F(n ? "visible" : "hidden"), h = Do(() => {
|
|
2185
2185
|
n || l("hidden");
|
|
2186
|
-
}), [f, v] =
|
|
2186
|
+
}), [f, v] = F(!0), y = w([n]);
|
|
2187
2187
|
re(() => {
|
|
2188
2188
|
f !== !1 && y.current[y.current.length - 1] !== n && (y.current.push(n), v(!1));
|
|
2189
2189
|
}, [y, n]);
|
|
2190
|
-
let _ =
|
|
2190
|
+
let _ = U(() => ({ show: n, appear: r, initial: f }), [n, r, f]);
|
|
2191
2191
|
Eo(n, s, () => l("hidden")), re(() => {
|
|
2192
2192
|
n ? l("visible") : !At(h) && s.current !== null && l("hidden");
|
|
2193
2193
|
}, [n, h]);
|
|
2194
2194
|
let m = { unmount: o }, g = G(() => {
|
|
2195
|
-
var
|
|
2196
|
-
f && v(!1), (
|
|
2197
|
-
}),
|
|
2198
|
-
var
|
|
2199
|
-
f && v(!1), (
|
|
2195
|
+
var $;
|
|
2196
|
+
f && v(!1), ($ = e.beforeEnter) == null || $.call(e);
|
|
2197
|
+
}), E = G(() => {
|
|
2198
|
+
var $;
|
|
2199
|
+
f && v(!1), ($ = e.beforeLeave) == null || $.call(e);
|
|
2200
2200
|
});
|
|
2201
|
-
return
|
|
2201
|
+
return P.createElement(Nt.Provider, { value: h }, P.createElement(Lt.Provider, { value: _ }, ae({ ourProps: { ...m, as: Y, children: P.createElement(Oo, { ref: c, ...m, ...i, beforeEnter: g, beforeLeave: E }) }, theirProps: {}, defaultTag: Y, features: Ro, visible: d === "visible", name: "Transition" })));
|
|
2202
2202
|
}
|
|
2203
|
-
function
|
|
2203
|
+
function pa(e, t) {
|
|
2204
2204
|
let n = te(Lt) !== null, r = Pt() !== null;
|
|
2205
|
-
return
|
|
2205
|
+
return P.createElement(P.Fragment, null, !n && r ? P.createElement(pn, { ref: t, ...e }) : P.createElement(Oo, { ref: t, ...e }));
|
|
2206
2206
|
}
|
|
2207
|
-
let pn = oe(
|
|
2208
|
-
var
|
|
2209
|
-
let
|
|
2207
|
+
let pn = oe(ha), Oo = oe(fa), Nn = oe(pa), he = Object.assign(pn, { Child: Nn, Root: pn });
|
|
2208
|
+
var ma = ((e) => (e[e.Open = 0] = "Open", e[e.Closed = 1] = "Closed", e))(ma || {}), va = ((e) => (e[e.SetTitleId = 0] = "SetTitleId", e))(va || {});
|
|
2209
|
+
let _a = { 0(e, t) {
|
|
2210
2210
|
return e.titleId === t.id ? e : { ...e, titleId: t.id };
|
|
2211
2211
|
} }, An = ie(null);
|
|
2212
2212
|
An.displayName = "DialogContext";
|
|
@@ -2218,8 +2218,8 @@ function Dt(e) {
|
|
|
2218
2218
|
}
|
|
2219
2219
|
return t;
|
|
2220
2220
|
}
|
|
2221
|
-
function
|
|
2222
|
-
return Te(t.type,
|
|
2221
|
+
function ya(e, t) {
|
|
2222
|
+
return Te(t.type, _a, e, t);
|
|
2223
2223
|
}
|
|
2224
2224
|
let lr = oe(function(e, t) {
|
|
2225
2225
|
let n = Ce(), { id: r = `headlessui-dialog-${n}`, open: o, onClose: i, initialFocus: s, role: a = "dialog", autoFocus: c = !0, __demoMode: u = !1, ...d } = e, l = w(!1);
|
|
@@ -2228,63 +2228,63 @@ let lr = oe(function(e, t) {
|
|
|
2228
2228
|
}();
|
|
2229
2229
|
let h = Pt();
|
|
2230
2230
|
o === void 0 && h !== null && (o = (h & le.Open) === le.Open);
|
|
2231
|
-
let f = w(null), v = pe(f, t), y = ct(f), _ = o ? 0 : 1, [m, g] = it(
|
|
2232
|
-
var
|
|
2233
|
-
return (
|
|
2234
|
-
} }, { resolveContainers:
|
|
2235
|
-
|
|
2236
|
-
var
|
|
2237
|
-
return [(
|
|
2231
|
+
let f = w(null), v = pe(f, t), y = ct(f), _ = o ? 0 : 1, [m, g] = it(ya, { titleId: null, descriptionId: null, panelRef: vn() }), E = G(() => i(!1)), $ = G((L) => g({ type: 0, id: L })), C = lt() ? _ === 0 : !1, [M, N] = Ks(), W = { get current() {
|
|
2232
|
+
var L;
|
|
2233
|
+
return (L = m.panelRef.current) != null ? L : f.current;
|
|
2234
|
+
} }, { resolveContainers: S, mainTreeNodeRef: b, MainTreeNode: A } = Qs({ portals: M, defaultContainers: [W] }), K = h !== null ? (h & le.Closing) === le.Closing : !1;
|
|
2235
|
+
ds(u || K ? !1 : C, { allowed: G(() => {
|
|
2236
|
+
var L, T;
|
|
2237
|
+
return [(T = (L = f.current) == null ? void 0 : L.closest("[data-headlessui-portal]")) != null ? T : null];
|
|
2238
2238
|
}), disallowed: G(() => {
|
|
2239
|
-
var
|
|
2240
|
-
return [(
|
|
2241
|
-
}) }),
|
|
2242
|
-
|
|
2243
|
-
}),
|
|
2244
|
-
|
|
2245
|
-
}),
|
|
2246
|
-
let [I,
|
|
2247
|
-
return
|
|
2248
|
-
}),
|
|
2249
|
-
function
|
|
2239
|
+
var L, T;
|
|
2240
|
+
return [(T = (L = b.current) == null ? void 0 : L.closest("body > *:not(#headlessui-portal-root)")) != null ? T : null];
|
|
2241
|
+
}) }), $s(C, S, (L) => {
|
|
2242
|
+
L.preventDefault(), E();
|
|
2243
|
+
}), Xs(C, y == null ? void 0 : y.defaultView, (L) => {
|
|
2244
|
+
L.preventDefault(), L.stopPropagation(), document.activeElement && "blur" in document.activeElement && typeof document.activeElement.blur == "function" && document.activeElement.blur(), E();
|
|
2245
|
+
}), Ms(u || K ? !1 : C, y, S), Eo(C, f, E);
|
|
2246
|
+
let [I, B] = ns(), D = U(() => [{ dialogState: _, close: E, setTitleId: $ }, m], [_, m, E, $]), H = U(() => ({ open: _ === 0 }), [_]), k = { ref: v, id: r, role: a, tabIndex: -1, "aria-modal": u ? void 0 : _ === 0 ? !0 : void 0, "aria-labelledby": m.titleId, "aria-describedby": I }, x = !Js(), O = xe.None;
|
|
2247
|
+
return C && !u && (O |= xe.RestoreFocus, O |= xe.TabLock, c && (O |= xe.AutoFocus), x && (O |= xe.InitialFocus)), P.createElement(Hs, null, P.createElement(cr, { force: !0 }, P.createElement(Zs, null, P.createElement(An.Provider, { value: D }, P.createElement(Po, { target: f }, P.createElement(cr, { force: !1 }, P.createElement(B, { slot: H }, P.createElement(N, null, P.createElement(oa, { initialFocus: s, initialFocusFallback: f, containers: S, features: O }, P.createElement(cs, { value: E }, ae({ ourProps: k, theirProps: d, slot: H, defaultTag: ga, features: wa, visible: _ === 0, name: "Dialog" })))))))))), P.createElement(es, null, P.createElement(A, null)));
|
|
2248
|
+
}), ga = "div", wa = bt.RenderStrategy | bt.Static;
|
|
2249
|
+
function ba(e, t) {
|
|
2250
2250
|
let { transition: n = !1, open: r, ...o } = e, i = Pt(), s = e.hasOwnProperty("open") || i !== null, a = e.hasOwnProperty("onClose");
|
|
2251
2251
|
if (!s && !a) throw new Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");
|
|
2252
2252
|
if (!s) throw new Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");
|
|
2253
2253
|
if (!a) throw new Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");
|
|
2254
2254
|
if (!i && typeof e.open != "boolean") throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${e.open}`);
|
|
2255
2255
|
if (typeof e.onClose != "function") throw new Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${e.onClose}`);
|
|
2256
|
-
return (r !== void 0 || n) && !o.static ?
|
|
2256
|
+
return (r !== void 0 || n) && !o.static ? P.createElement(he, { show: r, transition: n, unmount: o.unmount }, P.createElement(lr, { ref: t, ...o })) : P.createElement(lr, { ref: t, open: r, ...o });
|
|
2257
2257
|
}
|
|
2258
|
-
let
|
|
2259
|
-
function
|
|
2260
|
-
let n = Ce(), { id: r = `headlessui-dialog-panel-${n}`, transition: o = !1, ...i } = e, [{ dialogState: s }, a] = Dt("Dialog.Panel"), c = pe(t, a.panelRef), u =
|
|
2258
|
+
let Ea = "div";
|
|
2259
|
+
function $a(e, t) {
|
|
2260
|
+
let n = Ce(), { id: r = `headlessui-dialog-panel-${n}`, transition: o = !1, ...i } = e, [{ dialogState: s }, a] = Dt("Dialog.Panel"), c = pe(t, a.panelRef), u = U(() => ({ open: s === 0 }), [s]), d = G((l) => {
|
|
2261
2261
|
l.stopPropagation();
|
|
2262
2262
|
});
|
|
2263
|
-
return
|
|
2263
|
+
return P.createElement(o ? Nn : Y, null, ae({ ourProps: { ref: c, id: r, onClick: d }, theirProps: i, slot: u, defaultTag: Ea, name: "Dialog.Panel" }));
|
|
2264
2264
|
}
|
|
2265
|
-
let
|
|
2266
|
-
function
|
|
2267
|
-
let { transition: n = !1, ...r } = e, [{ dialogState: o }] = Dt("Dialog.Backdrop"), i =
|
|
2268
|
-
return
|
|
2265
|
+
let Ta = "div";
|
|
2266
|
+
function Ca(e, t) {
|
|
2267
|
+
let { transition: n = !1, ...r } = e, [{ dialogState: o }] = Dt("Dialog.Backdrop"), i = U(() => ({ open: o === 0 }), [o]);
|
|
2268
|
+
return P.createElement(n ? Nn : Y, null, ae({ ourProps: { ref: t, "aria-hidden": !0 }, theirProps: r, slot: i, defaultTag: Ta, name: "Dialog.Backdrop" }));
|
|
2269
2269
|
}
|
|
2270
|
-
let
|
|
2271
|
-
function
|
|
2270
|
+
let ka = "h2";
|
|
2271
|
+
function Sa(e, t) {
|
|
2272
2272
|
let n = Ce(), { id: r = `headlessui-dialog-title-${n}`, ...o } = e, [{ dialogState: i, setTitleId: s }] = Dt("Dialog.Title"), a = pe(t);
|
|
2273
|
-
|
|
2274
|
-
let c =
|
|
2275
|
-
return ae({ ourProps: { ref: a, id: r }, theirProps: o, slot: c, defaultTag:
|
|
2276
|
-
}
|
|
2277
|
-
let
|
|
2278
|
-
oe(
|
|
2279
|
-
let
|
|
2280
|
-
const
|
|
2281
|
-
root:
|
|
2282
|
-
modal:
|
|
2283
|
-
container:
|
|
2284
|
-
page:
|
|
2285
|
-
close:
|
|
2286
|
-
},
|
|
2287
|
-
root:
|
|
2273
|
+
V(() => (s(r), () => s(null)), [r, s]);
|
|
2274
|
+
let c = U(() => ({ open: i === 0 }), [i]);
|
|
2275
|
+
return ae({ ourProps: { ref: a, id: r }, theirProps: o, slot: c, defaultTag: ka, name: "Dialog.Title" });
|
|
2276
|
+
}
|
|
2277
|
+
let Fa = oe(ba), Ho = oe($a);
|
|
2278
|
+
oe(Ca);
|
|
2279
|
+
let Ma = oe(Sa), xa = Object.assign(Fa, { Panel: Ho, Title: Ma, Description: ss });
|
|
2280
|
+
const Pa = "_root_1duny_1", La = "_modal_1duny_10", Na = "_container_1duny_13", Aa = "_page_1duny_18", Da = "_close_1duny_21", pt = {
|
|
2281
|
+
root: Pa,
|
|
2282
|
+
modal: La,
|
|
2283
|
+
container: Na,
|
|
2284
|
+
page: Aa,
|
|
2285
|
+
close: Da
|
|
2286
|
+
}, Ia = "_root_1h6qm_1", Ra = {
|
|
2287
|
+
root: Ia
|
|
2288
2288
|
}, me = (e) => {
|
|
2289
2289
|
const {
|
|
2290
2290
|
children: t,
|
|
@@ -2294,7 +2294,7 @@ const La = "_root_1duny_1", Na = "_modal_1duny_10", Aa = "_container_1duny_13",
|
|
|
2294
2294
|
strokeWidth: i,
|
|
2295
2295
|
className: s = "",
|
|
2296
2296
|
viewBox: a = "0 0 20 20"
|
|
2297
|
-
} = e, c =
|
|
2297
|
+
} = e, c = U(() => {
|
|
2298
2298
|
switch (n) {
|
|
2299
2299
|
case "sm":
|
|
2300
2300
|
return "yvlw-w-4 yvlw-h-4";
|
|
@@ -2320,26 +2320,26 @@ const La = "_root_1duny_1", Na = "_modal_1duny_10", Aa = "_container_1duny_13",
|
|
|
2320
2320
|
children: t
|
|
2321
2321
|
}
|
|
2322
2322
|
);
|
|
2323
|
-
},
|
|
2323
|
+
}, Oa = () => /* @__PURE__ */ p(me, { 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" }) }), Vo = (e) => /* @__PURE__ */ p(me, { ...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
|
+
) }), Ha = (e) => /* @__PURE__ */ p(me, { ...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
|
+
] }), Va = (e) => /* @__PURE__ */ p(me, { ...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
|
] }), ur = (e) => /* @__PURE__ */ p(me, { ...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
|
+
] }), Wa = (e) => /* @__PURE__ */ p(me, { ...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
|
+
] }), za = (e) => /* @__PURE__ */ p(me, { ...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" }) }), Wo = (e) => /* @__PURE__ */ p(me, { ...e, viewBox: "0 0 24 24", children: /* @__PURE__ */ p("path", { d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z" }) }), Ua = (e) => /* @__PURE__ */ p(me, { ...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" }) }), zo = (e) => /* @__PURE__ */ p(me, { ...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",
|
|
@@ -2500,22 +2500,22 @@ class $e {
|
|
|
2500
2500
|
}
|
|
2501
2501
|
}
|
|
2502
2502
|
}
|
|
2503
|
-
const
|
|
2503
|
+
const ja = (e, t) => {
|
|
2504
2504
|
let n;
|
|
2505
2505
|
return typeof OffscreenCanvas < "u" ? n = new OffscreenCanvas(e, t) : (n = document.createElement("canvas"), n.width = e, n.height = t), n;
|
|
2506
2506
|
}, Dn = (e, t, n, r, o) => {
|
|
2507
2507
|
let i = 0, s = 0, a = t, c = n;
|
|
2508
|
-
const d =
|
|
2508
|
+
const d = ja(t, n).getContext(
|
|
2509
2509
|
"2d",
|
|
2510
2510
|
o
|
|
2511
2511
|
);
|
|
2512
2512
|
return d.drawImage(e, 0, 0), d.getImageData(i, s, a, c);
|
|
2513
|
-
},
|
|
2513
|
+
}, Ba = (e) => new Promise((t) => {
|
|
2514
2514
|
const n = document.createElement("canvas");
|
|
2515
2515
|
let { width: r } = e, { height: o } = e;
|
|
2516
2516
|
e instanceof HTMLVideoElement && (r = e.videoWidth, o = e.videoHeight), n.width = r, n.height = o, n.getContext("2d").drawImage(e, 0, 0), n.toBlob((s) => t(s));
|
|
2517
2517
|
});
|
|
2518
|
-
function
|
|
2518
|
+
function qa(e) {
|
|
2519
2519
|
const { width: t, height: n, data: r } = e;
|
|
2520
2520
|
let o = 0, i = 0;
|
|
2521
2521
|
const s = [0, -1, 0, -1, 4, -1, 0, -1, 0];
|
|
@@ -2524,8 +2524,8 @@ function Ya(e) {
|
|
|
2524
2524
|
let h = 0, f = 0, v = 0, y = 0;
|
|
2525
2525
|
for (let m = -1; m <= 1; m++)
|
|
2526
2526
|
for (let g = -1; g <= 1; g++) {
|
|
2527
|
-
const
|
|
2528
|
-
h += r[
|
|
2527
|
+
const E = ((d + m) * t + (l + g)) * 4, $ = s[y++];
|
|
2528
|
+
h += r[E] * $, f += r[E + 1] * $, v += r[E + 2] * $;
|
|
2529
2529
|
}
|
|
2530
2530
|
const _ = 0.299 * h + 0.587 * f + 0.114 * v;
|
|
2531
2531
|
o += _, i += _ * _;
|
|
@@ -2535,7 +2535,7 @@ function Ya(e) {
|
|
|
2535
2535
|
const c = o / a;
|
|
2536
2536
|
return i / a - c * c;
|
|
2537
2537
|
}
|
|
2538
|
-
function
|
|
2538
|
+
function Ya() {
|
|
2539
2539
|
if (MediaRecorder.isTypeSupported("video/webm; codecs=vp9"))
|
|
2540
2540
|
return { mimeType: "video/webm; codecs=vp9", videoBitsPerSecond: 25e4 };
|
|
2541
2541
|
if (MediaRecorder.isTypeSupported("video/webm"))
|
|
@@ -2546,9 +2546,9 @@ function Ka() {
|
|
|
2546
2546
|
function Uo(e = {}) {
|
|
2547
2547
|
const { onRecord: t = () => {
|
|
2548
2548
|
}, onStop: n = () => {
|
|
2549
|
-
} } = e, r = w([]), o = w(null), i = w(null), s =
|
|
2549
|
+
} } = e, r = w([]), o = w(null), i = w(null), s = z((h) => {
|
|
2550
2550
|
r.current.push(h);
|
|
2551
|
-
}, []), a =
|
|
2551
|
+
}, []), a = z(
|
|
2552
2552
|
async (h) => {
|
|
2553
2553
|
if (o.current)
|
|
2554
2554
|
return;
|
|
@@ -2564,19 +2564,19 @@ function Uo(e = {}) {
|
|
|
2564
2564
|
"image/jpeg",
|
|
2565
2565
|
0.95
|
|
2566
2566
|
)) : v(null);
|
|
2567
|
-
}) : f = await
|
|
2567
|
+
}) : f = await Ba(h), f && (o.current = f);
|
|
2568
2568
|
},
|
|
2569
2569
|
[]
|
|
2570
|
-
), c =
|
|
2570
|
+
), c = z(() => {
|
|
2571
2571
|
o.current = null;
|
|
2572
|
-
}, []), u =
|
|
2572
|
+
}, []), u = z((h) => {
|
|
2573
2573
|
h.data.size > 0 && t(h.data);
|
|
2574
|
-
}, []), d =
|
|
2574
|
+
}, []), d = z(() => {
|
|
2575
2575
|
!i.current || i.current.state === "inactive" || (i.current.stop(), i.current.stream.getTracks().forEach((h) => h.stop()), n());
|
|
2576
|
-
}, []), l =
|
|
2576
|
+
}, []), l = z((h) => {
|
|
2577
2577
|
i.current || (i.current = new MediaRecorder(
|
|
2578
2578
|
h,
|
|
2579
|
-
|
|
2579
|
+
Ya()
|
|
2580
2580
|
), i.current.ondataavailable = u, i.current.onstop = d, i.current.start(1e3));
|
|
2581
2581
|
}, []);
|
|
2582
2582
|
return {
|
|
@@ -2589,7 +2589,7 @@ function Uo(e = {}) {
|
|
|
2589
2589
|
clearSavedPhoto: c
|
|
2590
2590
|
};
|
|
2591
2591
|
}
|
|
2592
|
-
const
|
|
2592
|
+
const Ka = 360, Ga = "#125766", Za = "https://cdn.youverify.co/1721901834404-q2nxqyng5klm918b3BDVU.jpg", dr = "https://cdn.youverify.co", Ge = {
|
|
2593
2593
|
js: {
|
|
2594
2594
|
default: "1731681780468-ttgfiK6Sl1GKegUe-wm4v.js",
|
|
2595
2595
|
simd: "1731681609027-RTOweJqdl8Tt39aAdyie9.js"
|
|
@@ -2598,7 +2598,7 @@ const Ga = 360, Za = "#125766", Xa = "https://cdn.youverify.co/1721901834404-q2n
|
|
|
2598
2598
|
default: "1731681817302-aVNwDW6DP2MsDNTbiav_V.wasm",
|
|
2599
2599
|
simd: "1731681739675-nvF1En4g5rAW4daq5g5DH.wasm"
|
|
2600
2600
|
}
|
|
2601
|
-
},
|
|
2601
|
+
}, Xa = [
|
|
2602
2602
|
0,
|
|
2603
2603
|
97,
|
|
2604
2604
|
115,
|
|
@@ -2645,7 +2645,7 @@ const Ga = 360, Za = "#125766", Xa = "https://cdn.youverify.co/1721901834404-q2n
|
|
|
2645
2645
|
function je(e, t) {
|
|
2646
2646
|
return Math.sqrt(e ** 2 + t ** 2);
|
|
2647
2647
|
}
|
|
2648
|
-
function
|
|
2648
|
+
function Ja(e) {
|
|
2649
2649
|
const t = e.slice();
|
|
2650
2650
|
for (let n = t.length - 1; n > 0; n--) {
|
|
2651
2651
|
const r = Math.floor(Math.random() * (n + 1));
|
|
@@ -2653,7 +2653,7 @@ function Qa(e) {
|
|
|
2653
2653
|
}
|
|
2654
2654
|
return t;
|
|
2655
2655
|
}
|
|
2656
|
-
async function
|
|
2656
|
+
async function Qa() {
|
|
2657
2657
|
var t, n, r;
|
|
2658
2658
|
let e = (t = (await navigator.mediaDevices.enumerateDevices()).find(
|
|
2659
2659
|
(o) => o.deviceId !== ""
|
|
@@ -2668,7 +2668,7 @@ const Se = (e, t) => {
|
|
|
2668
2668
|
for (const [n, r] of Object.entries(e))
|
|
2669
2669
|
if (r === t) return n;
|
|
2670
2670
|
return null;
|
|
2671
|
-
},
|
|
2671
|
+
}, ec = (e) => {
|
|
2672
2672
|
const t = Object.keys(fr);
|
|
2673
2673
|
for (const n of t)
|
|
2674
2674
|
if (new RegExp(`\\b${n}\\b`, "i").test(e))
|
|
@@ -2677,9 +2677,9 @@ const Se = (e, t) => {
|
|
|
2677
2677
|
key: "VALIDATION_ERROR",
|
|
2678
2678
|
message: "We detected an error during your test. Please TRY AGAIN"
|
|
2679
2679
|
};
|
|
2680
|
-
},
|
|
2680
|
+
}, tc = "https://cdn.svc.youverify.co", nc = (e) => e ? "https://identity.staging.svc.youverify.co" : "https://identity.svc.youverify.co";
|
|
2681
2681
|
function jo(e) {
|
|
2682
|
-
const t =
|
|
2682
|
+
const t = nc(e);
|
|
2683
2683
|
return { postData: async (o) => {
|
|
2684
2684
|
const {
|
|
2685
2685
|
faceImage: i,
|
|
@@ -2690,7 +2690,7 @@ function jo(e) {
|
|
|
2690
2690
|
} = o, d = new FormData();
|
|
2691
2691
|
d.append("files", i), d.append("files", u);
|
|
2692
2692
|
const l = await fetch(
|
|
2693
|
-
`${
|
|
2693
|
+
`${tc}/v1/uploads/media`,
|
|
2694
2694
|
{
|
|
2695
2695
|
method: "POST",
|
|
2696
2696
|
headers: {
|
|
@@ -2719,7 +2719,7 @@ function jo(e) {
|
|
|
2719
2719
|
throw f;
|
|
2720
2720
|
return (await f.json()).data;
|
|
2721
2721
|
}, fetchSessionToken: async (o) => {
|
|
2722
|
-
const { action: i = "detectLiveness", publicKey: s } = o, a = await
|
|
2722
|
+
const { action: i = "detectLiveness", publicKey: s } = o, a = await Qa(), c = new FormData();
|
|
2723
2723
|
c.append("publicMerchantID", s), c.append("action", i), c.append("livenessOperationMode", "Passive"), c.append("sendResultsToClient", "true"), c.append("deviceCorrelationId", a);
|
|
2724
2724
|
const u = await fetch(`${t}/v1/sdk/identity/liveness/token`, {
|
|
2725
2725
|
method: "POST",
|
|
@@ -2730,14 +2730,14 @@ function jo(e) {
|
|
|
2730
2730
|
return d.authToken;
|
|
2731
2731
|
} };
|
|
2732
2732
|
}
|
|
2733
|
-
const
|
|
2733
|
+
const rc = {
|
|
2734
2734
|
"complete-the-circle": {
|
|
2735
|
-
Icon:
|
|
2735
|
+
Icon: Ha,
|
|
2736
2736
|
name: "Complete The Circle ⭕️",
|
|
2737
2737
|
description: "First position your face in the camera frame. Then move your head in a circle to show all the angles of your face"
|
|
2738
2738
|
},
|
|
2739
2739
|
"yes-or-no": {
|
|
2740
|
-
Icon:
|
|
2740
|
+
Icon: Va,
|
|
2741
2741
|
name: "Yes or No ❓",
|
|
2742
2742
|
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"
|
|
2743
2743
|
},
|
|
@@ -2784,7 +2784,7 @@ const oc = {
|
|
|
2784
2784
|
publicKey: ""
|
|
2785
2785
|
});
|
|
2786
2786
|
let hr, pr = !1;
|
|
2787
|
-
function
|
|
2787
|
+
function oc(e) {
|
|
2788
2788
|
const {
|
|
2789
2789
|
publicKey: t,
|
|
2790
2790
|
tasks: n,
|
|
@@ -2800,19 +2800,19 @@ function ic(e) {
|
|
|
2800
2800
|
metadata: d,
|
|
2801
2801
|
presentation: l,
|
|
2802
2802
|
sandboxEnvironment: h = !0
|
|
2803
|
-
} = e, [f, v] =
|
|
2803
|
+
} = e, [f, v] = F(0), [y, _] = F(0), [m, g] = F(null), [E, $] = F(!1), { saveStream: C, savePhoto: M, savedPhoto: N, clearSavedPhoto: W, savedStreams: S } = Uo(), { postData: b } = jo(h), A = U(
|
|
2804
2804
|
() => y === n.length,
|
|
2805
2805
|
[n, y]
|
|
2806
|
-
),
|
|
2807
|
-
_((
|
|
2808
|
-
}, I = (
|
|
2809
|
-
const
|
|
2810
|
-
|
|
2811
|
-
const
|
|
2812
|
-
$e.detectFaces(
|
|
2806
|
+
), K = () => {
|
|
2807
|
+
_((H) => H + 1), v((H) => H + 1);
|
|
2808
|
+
}, I = (H) => {
|
|
2809
|
+
const k = new Image();
|
|
2810
|
+
k.crossOrigin = "Anonymous", k.src = Za, k.onload = () => {
|
|
2811
|
+
const x = Dn(k, k.width, k.height);
|
|
2812
|
+
$e.detectFaces(H, x);
|
|
2813
2813
|
};
|
|
2814
|
-
},
|
|
2815
|
-
if (!
|
|
2814
|
+
}, B = async () => {
|
|
2815
|
+
if (!N.current) {
|
|
2816
2816
|
u({
|
|
2817
2817
|
faceImage: "",
|
|
2818
2818
|
passed: !1,
|
|
@@ -2825,14 +2825,14 @@ function ic(e) {
|
|
|
2825
2825
|
return;
|
|
2826
2826
|
}
|
|
2827
2827
|
try {
|
|
2828
|
-
const
|
|
2829
|
-
faceImage:
|
|
2830
|
-
video: new Blob(
|
|
2828
|
+
const H = await b({
|
|
2829
|
+
faceImage: N.current,
|
|
2830
|
+
video: new Blob(S.current, { type: "video/mp4" }),
|
|
2831
2831
|
publicKey: t,
|
|
2832
2832
|
passed: !0,
|
|
2833
2833
|
metadata: d
|
|
2834
2834
|
});
|
|
2835
|
-
c(
|
|
2835
|
+
c(H), a();
|
|
2836
2836
|
} catch {
|
|
2837
2837
|
u({
|
|
2838
2838
|
faceImage: "",
|
|
@@ -2845,10 +2845,10 @@ function ic(e) {
|
|
|
2845
2845
|
}), a();
|
|
2846
2846
|
}
|
|
2847
2847
|
}, D = async () => {
|
|
2848
|
-
const
|
|
2849
|
-
hr =
|
|
2848
|
+
const H = await $e.loadDetector();
|
|
2849
|
+
hr = H, I(H), g(H);
|
|
2850
2850
|
};
|
|
2851
|
-
return
|
|
2851
|
+
return V(() => {
|
|
2852
2852
|
if (pr) {
|
|
2853
2853
|
g(hr);
|
|
2854
2854
|
return;
|
|
@@ -2862,20 +2862,20 @@ function ic(e) {
|
|
|
2862
2862
|
namespace: o,
|
|
2863
2863
|
user: i,
|
|
2864
2864
|
currentTaskIndex: f,
|
|
2865
|
-
completed:
|
|
2865
|
+
completed: A,
|
|
2866
2866
|
completedCount: y,
|
|
2867
|
-
nextTask:
|
|
2867
|
+
nextTask: K,
|
|
2868
2868
|
branding: s,
|
|
2869
2869
|
onRequestClose: a,
|
|
2870
2870
|
faceDetector: m,
|
|
2871
|
-
saveStream:
|
|
2872
|
-
savePhoto:
|
|
2873
|
-
clearSavedPhoto:
|
|
2874
|
-
onComplete:
|
|
2871
|
+
saveStream: C,
|
|
2872
|
+
savePhoto: M,
|
|
2873
|
+
clearSavedPhoto: W,
|
|
2874
|
+
onComplete: B,
|
|
2875
2875
|
onFailure: u,
|
|
2876
2876
|
presentation: l,
|
|
2877
|
-
imageCaptured:
|
|
2878
|
-
setImageCaptured:
|
|
2877
|
+
imageCaptured: E,
|
|
2878
|
+
setImageCaptured: $,
|
|
2879
2879
|
sandboxEnvironment: h,
|
|
2880
2880
|
publicKey: t
|
|
2881
2881
|
},
|
|
@@ -2886,24 +2886,24 @@ function ic(e) {
|
|
|
2886
2886
|
function fe() {
|
|
2887
2887
|
return te(Bo);
|
|
2888
2888
|
}
|
|
2889
|
-
const
|
|
2890
|
-
root:
|
|
2891
|
-
container:
|
|
2892
|
-
lhs:
|
|
2893
|
-
info:
|
|
2894
|
-
active:
|
|
2895
|
-
completed:
|
|
2896
|
-
rhs:
|
|
2897
|
-
profile:
|
|
2898
|
-
avatar:
|
|
2899
|
-
main:
|
|
2900
|
-
content:
|
|
2901
|
-
},
|
|
2902
|
-
root:
|
|
2903
|
-
container:
|
|
2904
|
-
brand:
|
|
2889
|
+
const ic = "_root_vqy7d_1", sc = "_container_vqy7d_4", ac = "_lhs_vqy7d_7", cc = "_info_vqy7d_11", lc = "_active_vqy7d_32", uc = "_completed_vqy7d_39", dc = "_rhs_vqy7d_62", fc = "_profile_vqy7d_65", hc = "_avatar_vqy7d_68", pc = "_main_vqy7d_81", mc = "_content_vqy7d_84", ne = {
|
|
2890
|
+
root: ic,
|
|
2891
|
+
container: sc,
|
|
2892
|
+
lhs: ac,
|
|
2893
|
+
info: cc,
|
|
2894
|
+
active: lc,
|
|
2895
|
+
completed: uc,
|
|
2896
|
+
rhs: dc,
|
|
2897
|
+
profile: fc,
|
|
2898
|
+
avatar: hc,
|
|
2899
|
+
main: pc,
|
|
2900
|
+
content: mc
|
|
2901
|
+
}, vc = "_root_135td_1", _c = "_container_135td_1", yc = "_brand_135td_1", jt = {
|
|
2902
|
+
root: vc,
|
|
2903
|
+
container: _c,
|
|
2904
|
+
brand: yc
|
|
2905
2905
|
};
|
|
2906
|
-
function
|
|
2906
|
+
function gc() {
|
|
2907
2907
|
const { branding: e } = fe();
|
|
2908
2908
|
return /* @__PURE__ */ p("div", { className: jt.root, children: /* @__PURE__ */ p("div", { className: jt.container, children: /* @__PURE__ */ p("div", { className: jt.brand, children: (e == null ? void 0 : e.logo) && /* @__PURE__ */ p("img", { className: "yvlw-h-10", src: e.logo, alt: "Logo" }) }) }) });
|
|
2909
2909
|
}
|
|
@@ -2922,10 +2922,10 @@ function qo() {
|
|
|
2922
2922
|
return n(o === "dark" ? "light" : "dark");
|
|
2923
2923
|
}, getColorScheme: t };
|
|
2924
2924
|
}
|
|
2925
|
-
const
|
|
2926
|
-
root:
|
|
2925
|
+
const wc = "_root_bcsvc_1", bc = {
|
|
2926
|
+
root: wc
|
|
2927
2927
|
};
|
|
2928
|
-
function
|
|
2928
|
+
function Ec() {
|
|
2929
2929
|
if (!(window.screen.width >= 900))
|
|
2930
2930
|
return 10 / 9;
|
|
2931
2931
|
}
|
|
@@ -2937,7 +2937,7 @@ function ut(e) {
|
|
|
2937
2937
|
}), u = async () => {
|
|
2938
2938
|
try {
|
|
2939
2939
|
const h = await navigator.mediaDevices.getUserMedia({
|
|
2940
|
-
video: { aspectRatio: { exact:
|
|
2940
|
+
video: { aspectRatio: { exact: Ec() } }
|
|
2941
2941
|
});
|
|
2942
2942
|
s.current = h, a(h), o.current && (o.current.srcObject = h);
|
|
2943
2943
|
} catch {
|
|
@@ -2947,7 +2947,7 @@ function ut(e) {
|
|
|
2947
2947
|
}, l = () => {
|
|
2948
2948
|
n(o), i.current = requestAnimationFrame(l);
|
|
2949
2949
|
};
|
|
2950
|
-
return
|
|
2950
|
+
return V(() => {
|
|
2951
2951
|
const h = o.current;
|
|
2952
2952
|
if (!h)
|
|
2953
2953
|
return;
|
|
@@ -2957,25 +2957,25 @@ function ut(e) {
|
|
|
2957
2957
|
return u(), h.addEventListener("canplay", f), () => {
|
|
2958
2958
|
h.removeEventListener("canplay", f), cancelAnimationFrame(i.current), d();
|
|
2959
2959
|
};
|
|
2960
|
-
}, []), /* @__PURE__ */ p("div", { className:
|
|
2960
|
+
}, []), /* @__PURE__ */ p("div", { className: bc.root, children: [
|
|
2961
2961
|
/* @__PURE__ */ p("video", { ref: o, autoPlay: !0, loop: !0, playsInline: !0 }),
|
|
2962
2962
|
t
|
|
2963
2963
|
] });
|
|
2964
2964
|
}
|
|
2965
|
-
const
|
|
2966
|
-
container:
|
|
2967
|
-
focused:
|
|
2968
|
-
progress:
|
|
2969
|
-
completed:
|
|
2970
|
-
marker:
|
|
2971
|
-
}, vr = 360,
|
|
2972
|
-
function
|
|
2965
|
+
const $c = "_container_mcmsr_1", Tc = "_focused_mcmsr_12", Cc = "_progress_mcmsr_15", kc = "_completed_mcmsr_36", Sc = "_marker_mcmsr_40", Ze = {
|
|
2966
|
+
container: $c,
|
|
2967
|
+
focused: Tc,
|
|
2968
|
+
progress: Cc,
|
|
2969
|
+
completed: kc,
|
|
2970
|
+
marker: Sc
|
|
2971
|
+
}, vr = 360, Fc = 50;
|
|
2972
|
+
function Mc(e) {
|
|
2973
2973
|
const {
|
|
2974
2974
|
visitedSections: t,
|
|
2975
2975
|
sectionsCount: n,
|
|
2976
2976
|
faceDetected: r,
|
|
2977
|
-
divisions: o =
|
|
2978
|
-
} = e, i =
|
|
2977
|
+
divisions: o = Fc
|
|
2978
|
+
} = e, i = U(() => {
|
|
2979
2979
|
const s = [Ze.container];
|
|
2980
2980
|
return r && s.push(Ze.focused), s.join(" ");
|
|
2981
2981
|
}, [r]);
|
|
@@ -3125,23 +3125,23 @@ function It(e = {}) {
|
|
|
3125
3125
|
d(g.faces);
|
|
3126
3126
|
} };
|
|
3127
3127
|
}
|
|
3128
|
-
const
|
|
3129
|
-
root:
|
|
3130
|
-
container:
|
|
3131
|
-
progress:
|
|
3132
|
-
intro:
|
|
3133
|
-
content:
|
|
3134
|
-
branding:
|
|
3135
|
-
instructionsContainer:
|
|
3136
|
-
instructions:
|
|
3137
|
-
},
|
|
3138
|
-
root:
|
|
3139
|
-
spinner:
|
|
3140
|
-
},
|
|
3141
|
-
container:
|
|
3142
|
-
spin:
|
|
3143
|
-
md:
|
|
3144
|
-
lg:
|
|
3128
|
+
const xc = "_root_5hgaj_1", Pc = "_container_5hgaj_4", Lc = "_progress_5hgaj_7", Nc = "_intro_5hgaj_12", Ac = "_content_5hgaj_15", Dc = "_branding_5hgaj_18", Ic = "_instructionsContainer_5hgaj_22", Rc = "_instructions_5hgaj_22", se = {
|
|
3129
|
+
root: xc,
|
|
3130
|
+
container: Pc,
|
|
3131
|
+
progress: Lc,
|
|
3132
|
+
intro: Nc,
|
|
3133
|
+
content: Ac,
|
|
3134
|
+
branding: Dc,
|
|
3135
|
+
instructionsContainer: Ic,
|
|
3136
|
+
instructions: Rc
|
|
3137
|
+
}, Oc = "_root_h5elg_1", Hc = "_spinner_h5elg_22", _r = {
|
|
3138
|
+
root: Oc,
|
|
3139
|
+
spinner: Hc
|
|
3140
|
+
}, Vc = "_container_1vep2_1", Wc = "_spin_1vep2_1", zc = "_md_1vep2_7", Uc = "_lg_1vep2_10", yr = {
|
|
3141
|
+
container: Vc,
|
|
3142
|
+
spin: Wc,
|
|
3143
|
+
md: zc,
|
|
3144
|
+
lg: Uc
|
|
3145
3145
|
};
|
|
3146
3146
|
function Ko(e) {
|
|
3147
3147
|
const { size: t = "md", message: n, className: r = "" } = e;
|
|
@@ -3164,7 +3164,7 @@ function $t(e) {
|
|
|
3164
3164
|
/* @__PURE__ */ p("h2", { children: r }),
|
|
3165
3165
|
/* @__PURE__ */ p("p", { className: "subtext", children: n }),
|
|
3166
3166
|
!c && /* @__PURE__ */ p("div", { className: "yvlw-mt-12", children: /* @__PURE__ */ p(
|
|
3167
|
-
|
|
3167
|
+
Zi,
|
|
3168
3168
|
{
|
|
3169
3169
|
onClick: () => i(),
|
|
3170
3170
|
className: "yvlw-flex yvlw-items-center yvlw-space-x-3",
|
|
@@ -3190,15 +3190,15 @@ function Rt(e) {
|
|
|
3190
3190
|
},
|
|
3191
3191
|
onReset: s = () => {
|
|
3192
3192
|
}
|
|
3193
|
-
} = e, [a, c] =
|
|
3193
|
+
} = e, [a, c] = F(!1), { completedCount: u, tasks: d, nextTask: l } = fe(), h = U(
|
|
3194
3194
|
() => u * 100 / d.length,
|
|
3195
3195
|
[u, d.length]
|
|
3196
3196
|
);
|
|
3197
|
-
return
|
|
3197
|
+
return V(() => {
|
|
3198
3198
|
!r && !o && (async () => {
|
|
3199
3199
|
await i(), c(!0);
|
|
3200
3200
|
})();
|
|
3201
|
-
}, []),
|
|
3201
|
+
}, []), V(() => {
|
|
3202
3202
|
r && (() => {
|
|
3203
3203
|
l();
|
|
3204
3204
|
})();
|
|
@@ -3266,40 +3266,40 @@ function Rt(e) {
|
|
|
3266
3266
|
}
|
|
3267
3267
|
function Ot(e = {}) {
|
|
3268
3268
|
const { timeout: t, onTimeout: n = () => {
|
|
3269
|
-
} } = e, [r, o] =
|
|
3269
|
+
} } = e, [r, o] = F(!1), i = w(null), s = z(() => {
|
|
3270
3270
|
t && i.current && clearTimeout(i.current);
|
|
3271
|
-
}, []), a =
|
|
3271
|
+
}, []), a = z(() => {
|
|
3272
3272
|
t && (i.current = setTimeout(() => {
|
|
3273
3273
|
o(!0), n();
|
|
3274
3274
|
}, t));
|
|
3275
|
-
}, []), c =
|
|
3275
|
+
}, []), c = z(() => {
|
|
3276
3276
|
o(!1), a();
|
|
3277
3277
|
}, []);
|
|
3278
|
-
return
|
|
3278
|
+
return V(() => s, []), {
|
|
3279
3279
|
timedOut: r,
|
|
3280
3280
|
reset: c,
|
|
3281
3281
|
start: a,
|
|
3282
3282
|
stop: s
|
|
3283
3283
|
};
|
|
3284
3284
|
}
|
|
3285
|
-
const
|
|
3286
|
-
function
|
|
3287
|
-
const { difficulty: t, timeout: n } = e, { saveStream: r } = fe(), [o, i] =
|
|
3285
|
+
const jc = 1, Bt = 8, Er = "Place face in frame";
|
|
3286
|
+
function Bc(e) {
|
|
3287
|
+
const { difficulty: t, timeout: n } = e, { saveStream: r } = fe(), [o, i] = F([]), [s, a] = F(Er), [c, u] = F(!1), [d, l] = F(!1), h = w(/* @__PURE__ */ new Set()), f = w(!1), v = w(null), {
|
|
3288
3288
|
reset: y,
|
|
3289
3289
|
start: _,
|
|
3290
3290
|
stop: m,
|
|
3291
3291
|
timedOut: g
|
|
3292
|
-
} = Ot({ timeout: n }),
|
|
3292
|
+
} = Ot({ timeout: n }), E = () => {
|
|
3293
3293
|
i([]), a(Er), u(!1), l(!1), h.current = /* @__PURE__ */ new Set(), f.current = !1, v.current = null, y();
|
|
3294
|
-
},
|
|
3295
|
-
const
|
|
3296
|
-
h.current.has(
|
|
3294
|
+
}, $ = (b) => {
|
|
3295
|
+
const A = b * Bt, K = Math.ceil((A + 1) / Ka);
|
|
3296
|
+
h.current.has(K) || (h.current.add(K), i(Array.from(h.current))), h.current.size >= Bt && (m(), setTimeout(() => {
|
|
3297
3297
|
l(!0);
|
|
3298
3298
|
}, 1e3));
|
|
3299
|
-
},
|
|
3300
|
-
let I = Math.atan2(
|
|
3299
|
+
}, C = (b, A) => {
|
|
3300
|
+
let I = Math.atan2(A, b) * (180 / Math.PI);
|
|
3301
3301
|
return I < 0 && (I += 360), I;
|
|
3302
|
-
},
|
|
3302
|
+
}, M = z(() => {
|
|
3303
3303
|
if (h.current.size === 0)
|
|
3304
3304
|
return 25;
|
|
3305
3305
|
switch (t) {
|
|
@@ -3310,22 +3310,22 @@ function qc(e) {
|
|
|
3310
3310
|
default:
|
|
3311
3311
|
return 10;
|
|
3312
3312
|
}
|
|
3313
|
-
}, []),
|
|
3314
|
-
const { keypoints:
|
|
3315
|
-
return Math.abs(
|
|
3316
|
-
}, { detectFaces:
|
|
3313
|
+
}, []), N = (b) => {
|
|
3314
|
+
const { keypoints: A, box: K } = b, I = { x: K.width * 0.5, y: K.height * 0.5 }, B = A[jc], D = { y: B.y - K.yMin, x: B.x - K.xMin }, H = I.x - D.x, k = D.y - I.y, x = M();
|
|
3315
|
+
return Math.abs(H) < x && Math.abs(k) < x ? null : C(H, k);
|
|
3316
|
+
}, { detectFaces: W } = It({
|
|
3317
3317
|
frameSize: 280,
|
|
3318
3318
|
validations: ["zoom", "in-frame"],
|
|
3319
|
-
onFace: (
|
|
3319
|
+
onFace: (b) => {
|
|
3320
3320
|
u(!0), a("Slowly move head around to complete circle");
|
|
3321
|
-
const
|
|
3322
|
-
|
|
3321
|
+
const A = N(b);
|
|
3322
|
+
A && $(A);
|
|
3323
3323
|
},
|
|
3324
|
-
onError: (
|
|
3325
|
-
a(
|
|
3324
|
+
onError: (b) => {
|
|
3325
|
+
a(b), i([]), h.current.clear(), v.current = null, f.current = !1;
|
|
3326
3326
|
}
|
|
3327
3327
|
});
|
|
3328
|
-
return /* @__PURE__ */ p(
|
|
3328
|
+
return /* @__PURE__ */ p(Y, { children: /* @__PURE__ */ p(
|
|
3329
3329
|
Rt,
|
|
3330
3330
|
{
|
|
3331
3331
|
instruction: {
|
|
@@ -3335,18 +3335,18 @@ function qc(e) {
|
|
|
3335
3335
|
name: "complete-the-circle",
|
|
3336
3336
|
completed: d,
|
|
3337
3337
|
failed: g,
|
|
3338
|
-
onReset:
|
|
3338
|
+
onReset: E,
|
|
3339
3339
|
onStart: _,
|
|
3340
|
-
children: /* @__PURE__ */ p(ut, { onStream: (
|
|
3340
|
+
children: /* @__PURE__ */ p(ut, { onStream: (b) => {
|
|
3341
3341
|
try {
|
|
3342
|
-
if (!
|
|
3342
|
+
if (!b.current || d)
|
|
3343
3343
|
return;
|
|
3344
|
-
const { videoWidth:
|
|
3345
|
-
|
|
3344
|
+
const { videoWidth: A } = b.current;
|
|
3345
|
+
W({ ref: b, frameSize: A });
|
|
3346
3346
|
} catch {
|
|
3347
3347
|
}
|
|
3348
3348
|
}, onRecord: r, children: /* @__PURE__ */ p(
|
|
3349
|
-
|
|
3349
|
+
Mc,
|
|
3350
3350
|
{
|
|
3351
3351
|
faceDetected: c,
|
|
3352
3352
|
sectionsCount: Bt,
|
|
@@ -3356,15 +3356,15 @@ function qc(e) {
|
|
|
3356
3356
|
}
|
|
3357
3357
|
) });
|
|
3358
3358
|
}
|
|
3359
|
-
const
|
|
3360
|
-
root:
|
|
3361
|
-
sticker:
|
|
3362
|
-
no:
|
|
3363
|
-
yes:
|
|
3359
|
+
const qc = "_root_thujo_1", Yc = "_sticker_thujo_4", Kc = "_no_thujo_7", Gc = "_yes_thujo_12", qt = {
|
|
3360
|
+
root: qc,
|
|
3361
|
+
sticker: Yc,
|
|
3362
|
+
no: Kc,
|
|
3363
|
+
yes: Gc
|
|
3364
3364
|
};
|
|
3365
|
-
function
|
|
3365
|
+
function Zc(e) {
|
|
3366
3366
|
const { show: t, stickers: n } = e;
|
|
3367
|
-
return /* @__PURE__ */ p(
|
|
3367
|
+
return /* @__PURE__ */ p(Y, { children: t && /* @__PURE__ */ p("div", { className: qt.root, children: n.map((r) => /* @__PURE__ */ p(
|
|
3368
3368
|
"div",
|
|
3369
3369
|
{
|
|
3370
3370
|
className: `${qt.sticker} ${qt[r]}`,
|
|
@@ -3373,32 +3373,32 @@ function Xc(e) {
|
|
|
3373
3373
|
`sticker-${r}`
|
|
3374
3374
|
)) }) });
|
|
3375
3375
|
}
|
|
3376
|
-
const
|
|
3376
|
+
const Xc = {
|
|
3377
3377
|
question: "Are you alive?",
|
|
3378
3378
|
errorMessage: "You have to be alive to proceed though",
|
|
3379
3379
|
answer: !0
|
|
3380
|
-
},
|
|
3381
|
-
function
|
|
3382
|
-
const { difficulty: t, questions: n = [
|
|
3380
|
+
}, Jc = "Wrong answer. Try again", $r = "Keep face in camera";
|
|
3381
|
+
function Qc(e) {
|
|
3382
|
+
const { difficulty: t, questions: n = [Xc], timeout: r } = e, [o, i] = F($r), [s, a] = F(!1), [c, u] = F(!1), { saveStream: d } = fe(), l = w("inactive"), h = w(0), f = w(!1), v = w(null), y = w(null), _ = w(null), m = () => {
|
|
3383
3383
|
v.current && clearTimeout(v.current), y.current && clearTimeout(y.current);
|
|
3384
3384
|
}, {
|
|
3385
3385
|
reset: g,
|
|
3386
|
-
start:
|
|
3387
|
-
stop:
|
|
3388
|
-
timedOut:
|
|
3386
|
+
start: E,
|
|
3387
|
+
stop: $,
|
|
3388
|
+
timedOut: C
|
|
3389
3389
|
} = Ot({
|
|
3390
3390
|
timeout: r,
|
|
3391
3391
|
onTimeout: m
|
|
3392
|
-
}),
|
|
3392
|
+
}), M = () => {
|
|
3393
3393
|
i($r), a(!1), u(!1), l.current = "inactive", h.current = 0, f.current = !1, g();
|
|
3394
|
-
},
|
|
3395
|
-
const { keypoints:
|
|
3396
|
-
return 90 - Math.atan2(
|
|
3397
|
-
},
|
|
3394
|
+
}, N = (I) => {
|
|
3395
|
+
const { keypoints: B } = I, D = B[1], H = B[9], k = D.x - H.x, x = D.y - H.y;
|
|
3396
|
+
return 90 - Math.atan2(x, k) * (180 / Math.PI);
|
|
3397
|
+
}, W = (I) => {
|
|
3398
3398
|
l.current = "inactive", i(n[I].question), v.current = setTimeout(() => {
|
|
3399
3399
|
l.current = "active";
|
|
3400
3400
|
}, 2e3);
|
|
3401
|
-
},
|
|
3401
|
+
}, S = U(() => {
|
|
3402
3402
|
switch (t) {
|
|
3403
3403
|
case "easy":
|
|
3404
3404
|
return 2;
|
|
@@ -3407,43 +3407,43 @@ function el(e) {
|
|
|
3407
3407
|
default:
|
|
3408
3408
|
return 4;
|
|
3409
3409
|
}
|
|
3410
|
-
}, []),
|
|
3410
|
+
}, []), b = (I) => {
|
|
3411
3411
|
try {
|
|
3412
|
-
if (l.current = "inactive", Math.abs(I) <
|
|
3412
|
+
if (l.current = "inactive", Math.abs(I) < S)
|
|
3413
3413
|
throw new Error("Tilt head further to answer");
|
|
3414
|
-
const
|
|
3415
|
-
if (
|
|
3416
|
-
h.current += 1, h.current === n.length ? (u(!0),
|
|
3414
|
+
const B = I > 0, D = n[h.current].answer;
|
|
3415
|
+
if (B === D)
|
|
3416
|
+
h.current += 1, h.current === n.length ? (u(!0), $()) : W(h.current);
|
|
3417
3417
|
else
|
|
3418
3418
|
throw new Error(
|
|
3419
|
-
n[h.current].errorMessage ||
|
|
3419
|
+
n[h.current].errorMessage || Jc
|
|
3420
3420
|
);
|
|
3421
|
-
} catch (
|
|
3422
|
-
i(
|
|
3423
|
-
|
|
3421
|
+
} catch (B) {
|
|
3422
|
+
i(B.message), y.current = setTimeout(() => {
|
|
3423
|
+
W(h.current);
|
|
3424
3424
|
}, 2e3);
|
|
3425
3425
|
}
|
|
3426
|
-
}, { detectFaces:
|
|
3426
|
+
}, { detectFaces: A } = It({
|
|
3427
3427
|
onFace: (I) => {
|
|
3428
|
-
if (f.current || (a(!0), f.current = !0,
|
|
3428
|
+
if (f.current || (a(!0), f.current = !0, W(h.current)), l.current === "inactive")
|
|
3429
3429
|
return;
|
|
3430
|
-
const
|
|
3431
|
-
|
|
3430
|
+
const B = N(I);
|
|
3431
|
+
b(B);
|
|
3432
3432
|
},
|
|
3433
3433
|
onError: (I) => {
|
|
3434
3434
|
i(I);
|
|
3435
3435
|
}
|
|
3436
|
-
}),
|
|
3436
|
+
}), K = (I) => {
|
|
3437
3437
|
try {
|
|
3438
3438
|
if (!I.current || c)
|
|
3439
3439
|
return;
|
|
3440
3440
|
_.current = I.current;
|
|
3441
|
-
const { videoWidth:
|
|
3442
|
-
|
|
3441
|
+
const { videoWidth: B } = I.current;
|
|
3442
|
+
A({ ref: I, frameSize: B });
|
|
3443
3443
|
} catch {
|
|
3444
3444
|
}
|
|
3445
3445
|
};
|
|
3446
|
-
return
|
|
3446
|
+
return V(() => m, []), /* @__PURE__ */ p(
|
|
3447
3447
|
Rt,
|
|
3448
3448
|
{
|
|
3449
3449
|
instruction: {
|
|
@@ -3451,15 +3451,15 @@ function el(e) {
|
|
|
3451
3451
|
description: s ? "" : "Move head left for No and right for Yes"
|
|
3452
3452
|
},
|
|
3453
3453
|
name: "yes-or-no",
|
|
3454
|
-
failed:
|
|
3455
|
-
onReset:
|
|
3456
|
-
onStart:
|
|
3454
|
+
failed: C,
|
|
3455
|
+
onReset: M,
|
|
3456
|
+
onStart: E,
|
|
3457
3457
|
completed: c,
|
|
3458
|
-
children: /* @__PURE__ */ p(ut, { onStream:
|
|
3458
|
+
children: /* @__PURE__ */ p(ut, { onStream: K, onRecord: d, children: /* @__PURE__ */ p(Zc, { show: s, stickers: ["yes", "no"] }) })
|
|
3459
3459
|
}
|
|
3460
3460
|
);
|
|
3461
3461
|
}
|
|
3462
|
-
function
|
|
3462
|
+
function el(e = {}) {
|
|
3463
3463
|
const { onChange: t = () => {
|
|
3464
3464
|
} } = e, n = !!window.DeviceOrientationEvent, r = (o) => {
|
|
3465
3465
|
t({
|
|
@@ -3468,14 +3468,14 @@ function tl(e = {}) {
|
|
|
3468
3468
|
gamma: o.gamma
|
|
3469
3469
|
});
|
|
3470
3470
|
};
|
|
3471
|
-
return
|
|
3471
|
+
return V(() => (window.addEventListener("deviceorientation", r), () => {
|
|
3472
3472
|
window.removeEventListener("deviceorientation", r);
|
|
3473
3473
|
}), []), {
|
|
3474
3474
|
canUse: n
|
|
3475
3475
|
};
|
|
3476
3476
|
}
|
|
3477
|
-
function
|
|
3478
|
-
const { total: t, onMessage: n, onComplete: r, difficulty: o } = e, i = w(null), s = w(!0), a = w(null), c = w(null), u = w(0), d = w(!1), l =
|
|
3477
|
+
function tl(e) {
|
|
3478
|
+
const { total: t, onMessage: n, onComplete: r, difficulty: o } = e, i = w(null), s = w(!0), a = w(null), c = w(null), u = w(0), d = w(!1), l = U(() => {
|
|
3479
3479
|
switch (o) {
|
|
3480
3480
|
case "easy":
|
|
3481
3481
|
return 6;
|
|
@@ -3494,7 +3494,7 @@ function nl(e) {
|
|
|
3494
3494
|
d.current = !0, n("Great, hang on..."), setTimeout(() => {
|
|
3495
3495
|
r();
|
|
3496
3496
|
}, 500);
|
|
3497
|
-
}, { canUse: f } =
|
|
3497
|
+
}, { canUse: f } = el({
|
|
3498
3498
|
onChange: (_) => {
|
|
3499
3499
|
c.current = _;
|
|
3500
3500
|
}
|
|
@@ -3517,25 +3517,25 @@ function nl(e) {
|
|
|
3517
3517
|
const { keypoints: m } = _, g = je(
|
|
3518
3518
|
m[6].x - m[8].x,
|
|
3519
3519
|
m[6].y - m[8].y
|
|
3520
|
-
),
|
|
3520
|
+
), $ = je(
|
|
3521
3521
|
m[2].x - m[1].x,
|
|
3522
3522
|
m[2].y - m[1].y
|
|
3523
3523
|
) / g * 10;
|
|
3524
|
-
if (
|
|
3524
|
+
if ($ > l) {
|
|
3525
3525
|
if (i.current || !s.current)
|
|
3526
3526
|
return;
|
|
3527
|
-
i.current =
|
|
3527
|
+
i.current = $, s.current = !1, a.current = setTimeout(() => {
|
|
3528
3528
|
i.current = null;
|
|
3529
3529
|
}, 3e3);
|
|
3530
3530
|
} else
|
|
3531
|
-
i.current && i.current -
|
|
3531
|
+
i.current && i.current - $ > l / 2 && (u.current += 1, i.current = null, a.current && clearTimeout(a.current)), s.current = !0;
|
|
3532
3532
|
h();
|
|
3533
3533
|
}, reset: () => {
|
|
3534
3534
|
i.current = null, s.current = !0, a.current = null, c.current = null, u.current = 0, d.current = !1;
|
|
3535
3535
|
} };
|
|
3536
3536
|
}
|
|
3537
|
-
function
|
|
3538
|
-
const { onMessage: t, onComplete: n, difficulty: r } = e, o = w(!1), i =
|
|
3537
|
+
function nl(e) {
|
|
3538
|
+
const { onMessage: t, onComplete: n, difficulty: r } = e, o = w(!1), i = U(() => {
|
|
3539
3539
|
switch (r) {
|
|
3540
3540
|
case "easy":
|
|
3541
3541
|
return 80;
|
|
@@ -3567,7 +3567,7 @@ function rl(e) {
|
|
|
3567
3567
|
} };
|
|
3568
3568
|
}
|
|
3569
3569
|
function Go(e) {
|
|
3570
|
-
const { total: t, onMessage: n, onComplete: r, difficulty: o } = e, i = w(!0), s = w(!1), a = w(null), c = w(0), u =
|
|
3570
|
+
const { total: t, onMessage: n, onComplete: r, difficulty: o } = e, i = w(!0), s = w(!1), a = w(null), c = w(0), u = U(() => {
|
|
3571
3571
|
switch (o) {
|
|
3572
3572
|
case "easy":
|
|
3573
3573
|
return {
|
|
@@ -3609,85 +3609,68 @@ function Go(e) {
|
|
|
3609
3609
|
const { keypoints: _ } = y, m = je(
|
|
3610
3610
|
_[6].x - _[8].x,
|
|
3611
3611
|
_[6].y - _[8].y
|
|
3612
|
-
),
|
|
3612
|
+
), E = je(
|
|
3613
3613
|
_[145].x - _[159].x,
|
|
3614
3614
|
_[145].y - _[159].y
|
|
3615
3615
|
) / m * 100;
|
|
3616
|
-
d(
|
|
3616
|
+
d(E), l(E), h();
|
|
3617
3617
|
}, reset: () => {
|
|
3618
3618
|
i.current = !0, s.current = !1, a.current = null, c.current = 0;
|
|
3619
3619
|
} };
|
|
3620
3620
|
}
|
|
3621
|
-
|
|
3622
|
-
|
|
3623
|
-
|
|
3624
|
-
|
|
3625
|
-
|
|
3626
|
-
|
|
3627
|
-
|
|
3628
|
-
|
|
3629
|
-
|
|
3630
|
-
};
|
|
3631
|
-
}
|
|
3632
|
-
var Xo = /* @__PURE__ */ ((e) => (e.open_mouth = "open_mouth", e.blink = "blink", e))(Xo || {});
|
|
3633
|
-
const Tr = Qa(Object.keys(Xo)), Cr = "Keep face in camera";
|
|
3634
|
-
function ol(e) {
|
|
3635
|
-
const { difficulty: t, maxBlinks: n = 3, maxNods: r = 3, timeout: o } = e, i = w(0), [s, a] = x(Cr), [c, u] = x(!1), [d, l] = x(null), h = w(!1), { requestDeviceOrientationPermission: f } = Zo(), { saveStream: v } = fe(), {
|
|
3636
|
-
reset: y,
|
|
3637
|
-
start: _,
|
|
3638
|
-
stop: m,
|
|
3639
|
-
timedOut: g
|
|
3640
|
-
} = Ot({ timeout: o }), b = () => {
|
|
3621
|
+
var Zo = /* @__PURE__ */ ((e) => (e.open_mouth = "open_mouth", e.blink = "blink", e))(Zo || {});
|
|
3622
|
+
const Tr = Ja(Object.keys(Zo)), Cr = "Keep face in camera";
|
|
3623
|
+
function rl(e) {
|
|
3624
|
+
const { difficulty: t, maxBlinks: n = 3, maxNods: r = 3, timeout: o } = e, i = w(0), [s, a] = F(Cr), [c, u] = F(!1), [d, l] = F(null), h = w(!1), { saveStream: f } = fe(), {
|
|
3625
|
+
reset: v,
|
|
3626
|
+
start: y,
|
|
3627
|
+
stop: _,
|
|
3628
|
+
timedOut: m
|
|
3629
|
+
} = Ot({ timeout: o }), g = () => {
|
|
3641
3630
|
if (i.current === Tr.length - 1) {
|
|
3642
|
-
u(!0),
|
|
3631
|
+
u(!0), _();
|
|
3643
3632
|
return;
|
|
3644
3633
|
}
|
|
3645
3634
|
i.current += 1;
|
|
3646
|
-
}, E =
|
|
3635
|
+
}, E = tl({
|
|
3647
3636
|
total: Math.floor(Math.random() * r + 1),
|
|
3648
3637
|
difficulty: t,
|
|
3649
|
-
onMessage: (
|
|
3650
|
-
onComplete:
|
|
3651
|
-
}),
|
|
3638
|
+
onMessage: (b) => a(b),
|
|
3639
|
+
onComplete: g
|
|
3640
|
+
}), $ = nl({
|
|
3652
3641
|
difficulty: t,
|
|
3653
|
-
onMessage: (
|
|
3654
|
-
onComplete:
|
|
3655
|
-
}),
|
|
3642
|
+
onMessage: (b) => a(b),
|
|
3643
|
+
onComplete: g
|
|
3644
|
+
}), C = Go({
|
|
3656
3645
|
total: Math.floor(Math.random() * n + 1),
|
|
3657
3646
|
difficulty: t,
|
|
3658
|
-
onMessage: (
|
|
3659
|
-
onComplete:
|
|
3660
|
-
}), { detectFaces:
|
|
3661
|
-
onFace: (
|
|
3647
|
+
onMessage: (b) => a(b),
|
|
3648
|
+
onComplete: g
|
|
3649
|
+
}), { detectFaces: M } = It({
|
|
3650
|
+
onFace: (b) => {
|
|
3662
3651
|
switch (h.current || (h.current = !0), Tr[i.current]) {
|
|
3663
3652
|
case "open_mouth":
|
|
3664
|
-
|
|
3653
|
+
$.evaluate(b);
|
|
3665
3654
|
break;
|
|
3666
3655
|
case "blink":
|
|
3667
|
-
|
|
3656
|
+
C.evaluate(b);
|
|
3668
3657
|
break;
|
|
3669
3658
|
}
|
|
3670
3659
|
},
|
|
3671
|
-
onError: (
|
|
3672
|
-
a(
|
|
3660
|
+
onError: (b) => {
|
|
3661
|
+
a(b);
|
|
3673
3662
|
}
|
|
3674
|
-
}),
|
|
3675
|
-
i.current = 0, a(Cr), u(!1), h.current = !1,
|
|
3676
|
-
},
|
|
3663
|
+
}), N = () => {
|
|
3664
|
+
i.current = 0, a(Cr), u(!1), h.current = !1, C.reset(), E.reset(), $.reset(), v();
|
|
3665
|
+
}, W = async (b) => {
|
|
3677
3666
|
try {
|
|
3678
|
-
if (!
|
|
3667
|
+
if (!b.current || c)
|
|
3679
3668
|
return;
|
|
3680
|
-
const { videoWidth:
|
|
3681
|
-
await
|
|
3669
|
+
const { videoWidth: A } = b.current;
|
|
3670
|
+
await M({ ref: b, frameSize: A, throttleInterval: 500 });
|
|
3682
3671
|
} catch {
|
|
3683
3672
|
}
|
|
3684
|
-
},
|
|
3685
|
-
try {
|
|
3686
|
-
await f();
|
|
3687
|
-
} catch (k) {
|
|
3688
|
-
const z = k;
|
|
3689
|
-
a(z.message), l(z);
|
|
3690
|
-
}
|
|
3673
|
+
}, S = async () => {
|
|
3691
3674
|
};
|
|
3692
3675
|
return /* @__PURE__ */ p(
|
|
3693
3676
|
Rt,
|
|
@@ -3697,54 +3680,48 @@ function ol(e) {
|
|
|
3697
3680
|
description: "Follow the directives as instructed"
|
|
3698
3681
|
},
|
|
3699
3682
|
name: "motions",
|
|
3700
|
-
failed:
|
|
3701
|
-
onReset:
|
|
3683
|
+
failed: m,
|
|
3684
|
+
onReset: N,
|
|
3702
3685
|
completed: c,
|
|
3703
3686
|
onStart: async () => {
|
|
3704
|
-
await
|
|
3687
|
+
await S(), y();
|
|
3705
3688
|
},
|
|
3706
|
-
children: d ? /* @__PURE__ */ p(
|
|
3689
|
+
children: d ? /* @__PURE__ */ p(Y, {}) : /* @__PURE__ */ p(ut, { onStream: W, onRecord: f })
|
|
3707
3690
|
}
|
|
3708
3691
|
);
|
|
3709
3692
|
}
|
|
3710
3693
|
const kr = "Keep face in camera";
|
|
3711
|
-
function
|
|
3712
|
-
const { difficulty: t, maxBlinks: n = 3, timeout: r } = e, [o, i] =
|
|
3713
|
-
reset:
|
|
3714
|
-
start:
|
|
3715
|
-
stop:
|
|
3716
|
-
timedOut:
|
|
3717
|
-
} = Ot({ timeout: r }),
|
|
3718
|
-
a(!0),
|
|
3719
|
-
},
|
|
3694
|
+
function ol(e) {
|
|
3695
|
+
const { difficulty: t, maxBlinks: n = 3, timeout: r } = e, [o, i] = F(kr), [s, a] = F(!1), [c, u] = F(null), d = w(!1), { saveStream: l } = fe(), {
|
|
3696
|
+
reset: h,
|
|
3697
|
+
start: f,
|
|
3698
|
+
stop: v,
|
|
3699
|
+
timedOut: y
|
|
3700
|
+
} = Ot({ timeout: r }), _ = () => {
|
|
3701
|
+
a(!0), v();
|
|
3702
|
+
}, m = Go({
|
|
3720
3703
|
total: Math.floor(Math.random() * n + 1),
|
|
3721
3704
|
difficulty: t,
|
|
3722
|
-
onMessage: (
|
|
3723
|
-
onComplete:
|
|
3724
|
-
}), { detectFaces:
|
|
3725
|
-
onFace: (
|
|
3726
|
-
d.current || (d.current = !0),
|
|
3705
|
+
onMessage: (M) => i(M),
|
|
3706
|
+
onComplete: _
|
|
3707
|
+
}), { detectFaces: g } = It({
|
|
3708
|
+
onFace: (M) => {
|
|
3709
|
+
d.current || (d.current = !0), m.evaluate(M);
|
|
3727
3710
|
},
|
|
3728
|
-
onError: (
|
|
3729
|
-
i(
|
|
3711
|
+
onError: (M) => {
|
|
3712
|
+
i(M);
|
|
3730
3713
|
}
|
|
3731
3714
|
}), E = () => {
|
|
3732
|
-
i(kr), a(!1), d.current = !1,
|
|
3733
|
-
},
|
|
3715
|
+
i(kr), a(!1), d.current = !1, m.reset(), h();
|
|
3716
|
+
}, $ = async (M) => {
|
|
3734
3717
|
try {
|
|
3735
|
-
if (!
|
|
3718
|
+
if (!M.current || s)
|
|
3736
3719
|
return;
|
|
3737
|
-
const { videoWidth:
|
|
3738
|
-
await
|
|
3720
|
+
const { videoWidth: N } = M.current;
|
|
3721
|
+
await g({ ref: M, frameSize: N });
|
|
3739
3722
|
} catch {
|
|
3740
3723
|
}
|
|
3741
|
-
},
|
|
3742
|
-
try {
|
|
3743
|
-
await l();
|
|
3744
|
-
} catch (F) {
|
|
3745
|
-
const R = F;
|
|
3746
|
-
i(R.message), u(R);
|
|
3747
|
-
}
|
|
3724
|
+
}, C = async () => {
|
|
3748
3725
|
};
|
|
3749
3726
|
return /* @__PURE__ */ p(
|
|
3750
3727
|
Rt,
|
|
@@ -3754,13 +3731,13 @@ function il(e) {
|
|
|
3754
3731
|
description: "Follow the directives as instructed"
|
|
3755
3732
|
},
|
|
3756
3733
|
name: "blink",
|
|
3757
|
-
failed:
|
|
3734
|
+
failed: y,
|
|
3758
3735
|
onReset: E,
|
|
3759
3736
|
completed: s,
|
|
3760
3737
|
onStart: async () => {
|
|
3761
|
-
await
|
|
3738
|
+
await C(), f();
|
|
3762
3739
|
},
|
|
3763
|
-
children: c ? /* @__PURE__ */ p(
|
|
3740
|
+
children: c ? /* @__PURE__ */ p(Y, {}) : /* @__PURE__ */ p(ut, { onStream: $, onRecord: l })
|
|
3764
3741
|
}
|
|
3765
3742
|
);
|
|
3766
3743
|
}
|
|
@@ -3772,20 +3749,20 @@ const Yt = {
|
|
|
3772
3749
|
if (e.length !== 6) return 0;
|
|
3773
3750
|
const t = vt(e[1], e[5]), n = vt(e[2], e[4]), r = vt(e[0], e[3]);
|
|
3774
3751
|
return (t + n) / (2 * r);
|
|
3775
|
-
},
|
|
3752
|
+
}, il = (e) => {
|
|
3776
3753
|
if (e.length < 12) return 0;
|
|
3777
3754
|
const t = e[9], n = e[3];
|
|
3778
3755
|
return vt(t, n);
|
|
3779
|
-
},
|
|
3756
|
+
}, sl = (e, t, n, r) => {
|
|
3780
3757
|
var l, h, f;
|
|
3781
3758
|
let o = !0, i = !0;
|
|
3782
3759
|
if (!r) {
|
|
3783
3760
|
const _ = Yt.LEFT_EYE.map(
|
|
3784
|
-
(
|
|
3761
|
+
(N) => e[N]
|
|
3785
3762
|
), m = Yt.RIGHT_EYE.map(
|
|
3786
|
-
(
|
|
3787
|
-
), g = Yt.MOUTH.map((
|
|
3788
|
-
o = (
|
|
3763
|
+
(N) => e[N]
|
|
3764
|
+
), g = Yt.MOUTH.map((N) => e[N]), E = Sr(_), $ = Sr(m), C = il(g);
|
|
3765
|
+
o = (E + $) / 2 > 1, i = C < 73.24, o || t("Please look at the camera!"), i || t("Please close your mouth!");
|
|
3789
3766
|
}
|
|
3790
3767
|
const s = 0.5, a = 0.12, c = ((l = r == null ? void 0 : r.find((v) => v.categoryName === "eyeBlinkLeft")) == null ? void 0 : l.score) ?? 0, u = ((h = r == null ? void 0 : r.find((v) => v.categoryName === "eyeBlinkRight")) == null ? void 0 : h.score) ?? 0, d = ((f = r == null ? void 0 : r.find((v) => v.categoryName === "jawOpen")) == null ? void 0 : f.score) ?? 0;
|
|
3791
3768
|
return o = c < s && u < s, o || t("Please look at the camera!"), i = d < a, i || t("Please close your mouth!"), {
|
|
@@ -3793,7 +3770,7 @@ const Yt = {
|
|
|
3793
3770
|
mouthClosed: i
|
|
3794
3771
|
};
|
|
3795
3772
|
};
|
|
3796
|
-
function
|
|
3773
|
+
function al(e = {}) {
|
|
3797
3774
|
const {
|
|
3798
3775
|
validations: t = ["zoom", "in-frame"],
|
|
3799
3776
|
frameSize: n,
|
|
@@ -3804,56 +3781,56 @@ function cl(e = {}) {
|
|
|
3804
3781
|
onMessage: i = () => {
|
|
3805
3782
|
},
|
|
3806
3783
|
livenessTimeout: s
|
|
3807
|
-
} = e, { faceDetector: a, savePhoto: c } = fe(), { checkFacialFeatures: u, checkZoomLevel: d, checkInFrame: l } = Yo(), h = w(null), f = w(null), v = w(!1), y = w(null), _ = w(!1), m = w([]), g =
|
|
3784
|
+
} = e, { faceDetector: a, savePhoto: c } = fe(), { checkFacialFeatures: u, checkZoomLevel: d, checkInFrame: l } = Yo(), h = w(null), f = w(null), v = w(!1), y = w(null), _ = w(!1), m = w([]), g = z(() => {
|
|
3808
3785
|
f.current && clearTimeout(f.current), y.current && clearTimeout(y.current), m.current.forEach(clearTimeout), _.current = !1, v.current = !0;
|
|
3809
|
-
}, []),
|
|
3786
|
+
}, []), E = w(null), $ = w(null), C = w([]), M = 10, N = 7.5, W = 2, S = w({
|
|
3810
3787
|
sharpness: 0,
|
|
3811
3788
|
data: null
|
|
3812
|
-
}),
|
|
3813
|
-
const
|
|
3814
|
-
if (!
|
|
3789
|
+
}), b = (k, x) => {
|
|
3790
|
+
const O = k.getContext("2d");
|
|
3791
|
+
if (!O || x.width === 0 || x.height === 0 || !O || x.width === 0 || x.height === 0)
|
|
3815
3792
|
return !1;
|
|
3816
|
-
const
|
|
3817
|
-
|
|
3818
|
-
|
|
3819
|
-
|
|
3820
|
-
|
|
3821
|
-
), { data:
|
|
3822
|
-
let
|
|
3823
|
-
for (let J = 0; J <
|
|
3824
|
-
0.299 *
|
|
3825
|
-
const Q =
|
|
3826
|
-
return
|
|
3827
|
-
},
|
|
3828
|
-
const
|
|
3829
|
-
if (!(
|
|
3830
|
-
for (const Z of
|
|
3793
|
+
const L = O.getImageData(
|
|
3794
|
+
x.xMin,
|
|
3795
|
+
x.yMin,
|
|
3796
|
+
x.width,
|
|
3797
|
+
x.height
|
|
3798
|
+
), { data: T } = L;
|
|
3799
|
+
let j = 0, Z = 0;
|
|
3800
|
+
for (let J = 0; J < T.length; J += 4)
|
|
3801
|
+
0.299 * T[J] + 0.587 * T[J + 1] + 0.114 * T[J + 2] > 250 && Z++;
|
|
3802
|
+
const Q = T.length / 4;
|
|
3803
|
+
return j = Z / Q, j > 0.01;
|
|
3804
|
+
}, A = (k, x, O, L) => {
|
|
3805
|
+
const T = x.current, j = T == null ? void 0 : T.parentElement;
|
|
3806
|
+
if (!(!T || !j))
|
|
3807
|
+
for (const Z of L)
|
|
3831
3808
|
switch (Z) {
|
|
3832
3809
|
case "zoom":
|
|
3833
|
-
d(
|
|
3810
|
+
d(k, Math.min(j.clientHeight, j.clientWidth));
|
|
3834
3811
|
break;
|
|
3835
3812
|
case "features":
|
|
3836
3813
|
u(
|
|
3837
|
-
|
|
3838
|
-
Math.min(
|
|
3814
|
+
k,
|
|
3815
|
+
Math.min(j.clientHeight, j.clientWidth)
|
|
3839
3816
|
);
|
|
3840
3817
|
break;
|
|
3841
3818
|
case "in-frame":
|
|
3842
|
-
let Q =
|
|
3843
|
-
Q || (Q = Math.min(
|
|
3819
|
+
let Q = O;
|
|
3820
|
+
Q || (Q = Math.min(j.clientHeight, j.clientWidth) * 0.7);
|
|
3844
3821
|
const J = Q + 200;
|
|
3845
|
-
l(
|
|
3846
|
-
x: (
|
|
3847
|
-
y: (
|
|
3822
|
+
l(k, {
|
|
3823
|
+
x: (j.clientWidth - J) / 2,
|
|
3824
|
+
y: (j.clientHeight - J) / 2,
|
|
3848
3825
|
width: J,
|
|
3849
3826
|
height: J,
|
|
3850
|
-
offsetX: (
|
|
3851
|
-
offsetY: (
|
|
3827
|
+
offsetX: (T.videoWidth - j.clientWidth) / 2,
|
|
3828
|
+
offsetY: (T.videoHeight - j.clientHeight) / 2
|
|
3852
3829
|
});
|
|
3853
3830
|
break;
|
|
3854
3831
|
}
|
|
3855
|
-
},
|
|
3856
|
-
const
|
|
3832
|
+
}, K = (k) => {
|
|
3833
|
+
const x = [
|
|
3857
3834
|
33,
|
|
3858
3835
|
// Left eye inner corner
|
|
3859
3836
|
133,
|
|
@@ -3866,128 +3843,128 @@ function cl(e = {}) {
|
|
|
3866
3843
|
// Right eye outer corner
|
|
3867
3844
|
386
|
|
3868
3845
|
// Right eye pupil area
|
|
3869
|
-
],
|
|
3870
|
-
for (const
|
|
3871
|
-
const
|
|
3872
|
-
if (
|
|
3846
|
+
], O = 0.5;
|
|
3847
|
+
for (const L of x) {
|
|
3848
|
+
const T = k[L];
|
|
3849
|
+
if (!T || T.score && T.score < O)
|
|
3873
3850
|
return !1;
|
|
3874
3851
|
}
|
|
3875
3852
|
return !0;
|
|
3876
|
-
}, I = (
|
|
3877
|
-
const
|
|
3878
|
-
if (!
|
|
3853
|
+
}, I = (k, x) => {
|
|
3854
|
+
const O = k.getContext("2d");
|
|
3855
|
+
if (!O || x.width === 0 || x.height === 0)
|
|
3879
3856
|
return !1;
|
|
3880
|
-
const
|
|
3881
|
-
|
|
3882
|
-
|
|
3883
|
-
|
|
3884
|
-
|
|
3885
|
-
), { data:
|
|
3886
|
-
let
|
|
3887
|
-
for (let Q = 0; Q <
|
|
3888
|
-
const J =
|
|
3889
|
-
|
|
3857
|
+
const L = O.getImageData(
|
|
3858
|
+
x.xMin,
|
|
3859
|
+
x.yMin,
|
|
3860
|
+
x.width,
|
|
3861
|
+
x.height
|
|
3862
|
+
), { data: T } = L;
|
|
3863
|
+
let j = 0;
|
|
3864
|
+
for (let Q = 0; Q < T.length; Q += 4) {
|
|
3865
|
+
const J = T[Q], ee = T[Q + 1], He = T[Q + 2], dt = 0.299 * J + 0.587 * ee + 0.114 * He;
|
|
3866
|
+
j += dt;
|
|
3890
3867
|
}
|
|
3891
|
-
return
|
|
3892
|
-
},
|
|
3893
|
-
const
|
|
3894
|
-
x:
|
|
3895
|
-
y:
|
|
3868
|
+
return j / (T.length / 4) < 60;
|
|
3869
|
+
}, B = (k) => {
|
|
3870
|
+
const x = {
|
|
3871
|
+
x: k.box.xMin + (k.box.width ?? 0) / 2,
|
|
3872
|
+
y: k.box.yMin + (k.box.height ?? 0) / 2
|
|
3896
3873
|
};
|
|
3897
|
-
if (
|
|
3898
|
-
let
|
|
3899
|
-
for (let ee = 1; ee <
|
|
3900
|
-
const He =
|
|
3901
|
-
Rn >= 2 && (
|
|
3874
|
+
if (C.current.push(x), C.current.length > M && C.current.shift(), C.current.length < M) return !1;
|
|
3875
|
+
let O = 0, L = 0, T = 0;
|
|
3876
|
+
for (let ee = 1; ee < C.current.length; ee++) {
|
|
3877
|
+
const He = C.current[ee - 1], dt = C.current[ee], Ye = dt.x - He.x, In = dt.y - He.y, Rn = Math.sqrt(Ye * Ye + In * In);
|
|
3878
|
+
Rn >= 2 && (O += Rn, ee > 1 && Math.sign(Ye) !== Math.sign(T) && Math.abs(Ye) > 3 && L++, T = Ye);
|
|
3902
3879
|
}
|
|
3903
|
-
const Z =
|
|
3880
|
+
const Z = O / (M - 1) > N, Q = L >= W, J = Z || Q;
|
|
3904
3881
|
return J && i("🚨 Head shake detected!"), J;
|
|
3905
|
-
}, D = (
|
|
3882
|
+
}, D = (k, x, O, L) => {
|
|
3906
3883
|
try {
|
|
3907
|
-
if (
|
|
3884
|
+
if (k.length === 0 || k.length > 1) {
|
|
3908
3885
|
f.current && (clearTimeout(f.current), f.current = null), i(
|
|
3909
|
-
|
|
3886
|
+
k.length > 1 ? "Please ensure only one face is visible" : "Detecting face..."
|
|
3910
3887
|
);
|
|
3911
3888
|
return;
|
|
3912
3889
|
}
|
|
3913
|
-
const
|
|
3914
|
-
let
|
|
3890
|
+
const T = k[0];
|
|
3891
|
+
let j = "", Z = !0;
|
|
3915
3892
|
try {
|
|
3916
|
-
|
|
3893
|
+
A(T, h, n, t);
|
|
3917
3894
|
} catch (ee) {
|
|
3918
|
-
|
|
3895
|
+
j = ee.message, Z = !1;
|
|
3919
3896
|
}
|
|
3920
|
-
|
|
3921
|
-
const { eyesOpen: Q, mouthClosed: J } =
|
|
3922
|
-
|
|
3897
|
+
B(T) && (j = "Please hold your head steady", Z = !1), L || (j = "Center your face in the frame", Z = !1), K(T.keypoints) || (j = "Please ensure your eyes are clearly visible. Remove glasses if necessary.", Z = !1);
|
|
3898
|
+
const { eyesOpen: Q, mouthClosed: J } = sl(
|
|
3899
|
+
T.keypoints,
|
|
3923
3900
|
// onError,
|
|
3924
3901
|
i,
|
|
3925
3902
|
!1,
|
|
3926
|
-
|
|
3903
|
+
O
|
|
3927
3904
|
);
|
|
3928
|
-
if (Q ? J || (
|
|
3929
|
-
f.current && (clearTimeout(f.current), f.current = null, m.current.forEach(clearTimeout)), i(
|
|
3905
|
+
if (Q ? J || (j = "Please close your mouth", Z = !1) : (f.current && (clearTimeout(f.current), f.current = null), Z = !1), !Z) {
|
|
3906
|
+
f.current && (clearTimeout(f.current), f.current = null, m.current.forEach(clearTimeout)), i(j), r(T, !1, O, !1);
|
|
3930
3907
|
return;
|
|
3931
3908
|
}
|
|
3932
3909
|
if (!f.current) {
|
|
3933
|
-
if (I(
|
|
3910
|
+
if (I(E.current, T.box)) {
|
|
3934
3911
|
i("Too dark – move to a well-lit area");
|
|
3935
3912
|
return;
|
|
3936
3913
|
}
|
|
3937
|
-
if (
|
|
3914
|
+
if (b(E.current, T.box)) {
|
|
3938
3915
|
i("Too much glare. Please avoid direct light on your face.");
|
|
3939
3916
|
return;
|
|
3940
3917
|
}
|
|
3941
|
-
i("Hold still..."),
|
|
3918
|
+
i("Hold still..."), S.current = { sharpness: 0, data: null }, m.current.forEach(clearTimeout);
|
|
3942
3919
|
const ee = setTimeout(() => i("Almost there..."), 400), He = setTimeout(
|
|
3943
3920
|
() => i("Detecting liveness..."),
|
|
3944
3921
|
700
|
|
3945
3922
|
);
|
|
3946
3923
|
m.current = [ee, He], f.current = setTimeout(() => {
|
|
3947
|
-
|
|
3924
|
+
S.current.data ? (c(S.current.data), r(T, !0, O, !0)) : o("Could not capture a clear photo. Please try again.");
|
|
3948
3925
|
}, 1e3);
|
|
3949
3926
|
}
|
|
3950
3927
|
if (f.current) {
|
|
3951
|
-
const ee =
|
|
3952
|
-
ee >
|
|
3928
|
+
const ee = qa(x);
|
|
3929
|
+
ee > S.current.sharpness && (S.current = {
|
|
3953
3930
|
sharpness: ee,
|
|
3954
|
-
data:
|
|
3931
|
+
data: x
|
|
3955
3932
|
});
|
|
3956
3933
|
}
|
|
3957
|
-
} catch (
|
|
3958
|
-
o(
|
|
3934
|
+
} catch (T) {
|
|
3935
|
+
o(T.message), k.length > 0 && r(k[0], !1, O, !1);
|
|
3959
3936
|
}
|
|
3960
3937
|
};
|
|
3961
|
-
return { detectFaces: async (
|
|
3938
|
+
return { detectFaces: async (k) => {
|
|
3962
3939
|
if (!a) return;
|
|
3963
|
-
h.current =
|
|
3964
|
-
const
|
|
3965
|
-
if (!
|
|
3966
|
-
|
|
3940
|
+
h.current = k.ref.current;
|
|
3941
|
+
const x = h.current;
|
|
3942
|
+
if (!x || x.videoWidth === 0) return;
|
|
3943
|
+
E.current || (E.current = document.createElement("canvas"), $.current = E.current.getContext("2d", {
|
|
3967
3944
|
willReadFrequently: !0
|
|
3968
3945
|
}));
|
|
3969
|
-
const
|
|
3970
|
-
if (!
|
|
3971
|
-
|
|
3972
|
-
const
|
|
3973
|
-
!_.current &&
|
|
3946
|
+
const O = E.current, L = $.current;
|
|
3947
|
+
if (!O || !L) return;
|
|
3948
|
+
O.width = x.videoWidth, O.height = x.videoHeight, L.drawImage(x, 0, 0, O.width, O.height);
|
|
3949
|
+
const T = L.getImageData(0, 0, O.width, O.height);
|
|
3950
|
+
!_.current && x.readyState >= 2 && !v.current && (_.current = !0, y.current = setTimeout(() => {
|
|
3974
3951
|
o("Liveness check TIMED OUT. Please try again."), g();
|
|
3975
3952
|
}, s));
|
|
3976
|
-
const { faces:
|
|
3953
|
+
const { faces: j, blendShapes: Z, inBox: Q } = await $e.detectFaces(
|
|
3977
3954
|
a,
|
|
3978
|
-
|
|
3955
|
+
T
|
|
3979
3956
|
);
|
|
3980
|
-
D(
|
|
3957
|
+
D(j, T, Z, Q);
|
|
3981
3958
|
}, cleanup: g };
|
|
3982
3959
|
}
|
|
3983
|
-
const
|
|
3984
|
-
container:
|
|
3985
|
-
progress:
|
|
3986
|
-
completed:
|
|
3987
|
-
marker:
|
|
3960
|
+
const cl = "_container_1ej18_1", ll = "_progress_1ej18_12", ul = "_completed_1ej18_33", dl = "_marker_1ej18_37", Kt = {
|
|
3961
|
+
container: cl,
|
|
3962
|
+
progress: ll,
|
|
3963
|
+
completed: ul,
|
|
3964
|
+
marker: dl
|
|
3988
3965
|
};
|
|
3989
|
-
function
|
|
3990
|
-
const { faceDetected: t } = e, n =
|
|
3966
|
+
function fl(e) {
|
|
3967
|
+
const { faceDetected: t } = e, n = U(() => {
|
|
3991
3968
|
const r = [Kt.container];
|
|
3992
3969
|
return t && r.push(Kt.focused), r.join(" ");
|
|
3993
3970
|
}, [t]);
|
|
@@ -4003,7 +3980,7 @@ const Gt = {
|
|
|
4003
3980
|
SpoofFace: "We detected a spoofing attempt",
|
|
4004
3981
|
FaceTrackingFailed: "We could not detect your face",
|
|
4005
3982
|
ExcessiveFaceBrightnessDetected: "We detected excessive light during the test, please wipe any oil or sweat that might cause a reflection on your face."
|
|
4006
|
-
},
|
|
3983
|
+
}, hl = {
|
|
4007
3984
|
None: "Processing...",
|
|
4008
3985
|
LookAtCamera: "Look at camera.",
|
|
4009
3986
|
FaceNotCentered: "Center your face in the camera.",
|
|
@@ -4023,7 +4000,7 @@ const Gt = {
|
|
|
4023
4000
|
Tip3: "You may be asked to turn your nose towards the green color.",
|
|
4024
4001
|
Continue: "Continue"
|
|
4025
4002
|
};
|
|
4026
|
-
function
|
|
4003
|
+
function pl(e) {
|
|
4027
4004
|
const {
|
|
4028
4005
|
onComplete: t = () => {
|
|
4029
4006
|
},
|
|
@@ -4034,65 +4011,65 @@ function ml(e) {
|
|
|
4034
4011
|
// onPictureReady = () => {},
|
|
4035
4012
|
} = e, { setColorScheme: o, getColorScheme: i } = qo(), s = w(null), a = w(!1), c = () => {
|
|
4036
4013
|
s.current && (s.current.callAttemptEnd(), s.current.delete(), s.current = null);
|
|
4037
|
-
}, u =
|
|
4014
|
+
}, u = z(() => {
|
|
4038
4015
|
c();
|
|
4039
4016
|
}, []), d = () => {
|
|
4040
4017
|
s.current && c(), s.current = null, a.current = !1;
|
|
4041
4018
|
}, l = (_) => {
|
|
4042
|
-
var
|
|
4019
|
+
var N, W;
|
|
4043
4020
|
const m = _.split(".");
|
|
4044
4021
|
let g = !1;
|
|
4045
4022
|
s.current.setToken(_);
|
|
4046
|
-
let
|
|
4023
|
+
let E = "", $ = "", C, M = 0;
|
|
4047
4024
|
if (m.length === 3) {
|
|
4048
|
-
const
|
|
4049
|
-
if (
|
|
4050
|
-
const
|
|
4051
|
-
if (
|
|
4052
|
-
s.current.setEndpoint(
|
|
4053
|
-
const I = JSON.parse(
|
|
4025
|
+
const S = JSON.parse(atob(m[1]));
|
|
4026
|
+
if (S.face) {
|
|
4027
|
+
const b = JSON.parse(S.face), A = /^https:\/\/[^/:]+\.(api\.cognitive\.microsoft|cognitiveservices\.azure)\.com$/;
|
|
4028
|
+
if (b.endpoint && (A.test(b.endpoint) || b.endpoint === "https://virginia.api.cognitive.microsoft.us")) {
|
|
4029
|
+
s.current.setEndpoint(b.endpoint);
|
|
4030
|
+
const I = JSON.parse(S["allowed-paths"]);
|
|
4054
4031
|
if (I) {
|
|
4055
|
-
const
|
|
4056
|
-
(
|
|
4057
|
-
)) == null ? void 0 :
|
|
4058
|
-
s.current.setSessionStartPath(
|
|
4059
|
-
const D = (
|
|
4060
|
-
(
|
|
4061
|
-
)) == null ? void 0 :
|
|
4032
|
+
const B = (N = I.find(
|
|
4033
|
+
(L) => L.path.toLocaleLowerCase().endsWith("/session/start")
|
|
4034
|
+
)) == null ? void 0 : N.path;
|
|
4035
|
+
s.current.setSessionStartPath(B);
|
|
4036
|
+
const D = (W = I.find(
|
|
4037
|
+
(L) => L.path.toLocaleLowerCase().endsWith("/session/attempt/end")
|
|
4038
|
+
)) == null ? void 0 : W.path;
|
|
4062
4039
|
s.current.setAttemptEndPath(D);
|
|
4063
|
-
const
|
|
4064
|
-
(
|
|
4040
|
+
const H = I.find(
|
|
4041
|
+
(L) => L.path.endsWith("/detectLiveness/singleModal")
|
|
4065
4042
|
);
|
|
4066
|
-
|
|
4067
|
-
const
|
|
4068
|
-
(
|
|
4043
|
+
H && ({ path: E, quota: M } = H, s.current.setLivenessPath(E));
|
|
4044
|
+
const k = I.find(
|
|
4045
|
+
(L) => L.path.endsWith("/detectLivenessWithVerify/singleModal")
|
|
4069
4046
|
);
|
|
4070
|
-
|
|
4071
|
-
|
|
4047
|
+
k && ({ path: $, quota: M } = k, s.current.setLivenessWithVerifyPath(
|
|
4048
|
+
$
|
|
4072
4049
|
));
|
|
4073
|
-
const
|
|
4050
|
+
const x = new Set(
|
|
4074
4051
|
I.map(
|
|
4075
|
-
(
|
|
4076
|
-
var
|
|
4077
|
-
return (
|
|
4052
|
+
(L) => {
|
|
4053
|
+
var T;
|
|
4054
|
+
return (T = L.path) == null ? void 0 : T.split("/")[1];
|
|
4078
4055
|
}
|
|
4079
4056
|
)
|
|
4080
4057
|
);
|
|
4081
|
-
if (
|
|
4082
|
-
const
|
|
4083
|
-
s.current.setApiVersion(
|
|
4058
|
+
if (x.size === 1 && (H || k)) {
|
|
4059
|
+
const L = x.values().next().value;
|
|
4060
|
+
s.current.setApiVersion(L), g = !0, C = b.clientClaims.livenessOperationMode;
|
|
4084
4061
|
}
|
|
4085
4062
|
}
|
|
4086
4063
|
}
|
|
4087
4064
|
}
|
|
4088
|
-
s.current.setOperationQuota(
|
|
4089
|
-
window.Module.LivenessOperationMode[
|
|
4090
|
-
),
|
|
4065
|
+
s.current.setOperationQuota(M), s.current.setOperationMode(
|
|
4066
|
+
window.Module.LivenessOperationMode[C]
|
|
4067
|
+
), S.sid && s.current.setSid(S.sid), S["azure-resource-id"] && s.current.setResourceId(S["azure-resource-id"]);
|
|
4091
4068
|
}
|
|
4092
4069
|
if (g)
|
|
4093
4070
|
s.current.initialize();
|
|
4094
4071
|
else {
|
|
4095
|
-
const
|
|
4072
|
+
const S = {
|
|
4096
4073
|
livenessError: Se(
|
|
4097
4074
|
window.Module.LivenessFailureReason,
|
|
4098
4075
|
window.Module.LivenessFailureReason.InvalidToken
|
|
@@ -4103,7 +4080,7 @@ function ml(e) {
|
|
|
4103
4080
|
)
|
|
4104
4081
|
};
|
|
4105
4082
|
r(
|
|
4106
|
-
|
|
4083
|
+
S.livenessError ? Gt[S.livenessError] || S.livenessError : "Something went wrong"
|
|
4107
4084
|
), u();
|
|
4108
4085
|
}
|
|
4109
4086
|
}, h = (_) => {
|
|
@@ -4113,7 +4090,7 @@ function ml(e) {
|
|
|
4113
4090
|
r(`Could not start liveness test: ${m.message}`), c();
|
|
4114
4091
|
}
|
|
4115
4092
|
}, f = (_) => {
|
|
4116
|
-
const { isActionValid: m, isFeedbackValid: g, feedback:
|
|
4093
|
+
const { isActionValid: m, isFeedbackValid: g, feedback: E } = _;
|
|
4117
4094
|
if (m)
|
|
4118
4095
|
switch (_.action) {
|
|
4119
4096
|
case window.Module.ActionRequiredFromApplication.BrightenDisplay:
|
|
@@ -4126,28 +4103,28 @@ function ml(e) {
|
|
|
4126
4103
|
break;
|
|
4127
4104
|
}
|
|
4128
4105
|
if (!a.current && g) {
|
|
4129
|
-
const
|
|
4106
|
+
const $ = Se(
|
|
4130
4107
|
window.Module.FeedbackForFace,
|
|
4131
|
-
|
|
4108
|
+
E
|
|
4132
4109
|
);
|
|
4133
4110
|
n(
|
|
4134
|
-
|
|
4111
|
+
$ && (hl[$] || "")
|
|
4135
4112
|
);
|
|
4136
4113
|
}
|
|
4137
|
-
if (
|
|
4114
|
+
if (E === window.Module.FeedbackForFace.AttentionNotNeeded) {
|
|
4138
4115
|
a.current = !0;
|
|
4139
|
-
const
|
|
4140
|
-
o(
|
|
4116
|
+
const $ = i();
|
|
4117
|
+
o($);
|
|
4141
4118
|
}
|
|
4142
4119
|
}, v = (_) => {
|
|
4143
|
-
var
|
|
4144
|
-
const { livenessResult: m, recognitionResult: g } = _,
|
|
4120
|
+
var C, M;
|
|
4121
|
+
const { livenessResult: m, recognitionResult: g } = _, E = ((C = m.failureReason) == null ? void 0 : C.value) !== 0 || ((M = g.failureReason) == null ? void 0 : M.value) !== 0, $ = /* @__PURE__ */ new Set([
|
|
4145
4122
|
"EnvironmentNotSupported",
|
|
4146
4123
|
"ExcessiveFaceBrightnessDetected",
|
|
4147
4124
|
"FaceEyeRegionNotVisible"
|
|
4148
4125
|
]);
|
|
4149
|
-
if (
|
|
4150
|
-
const
|
|
4126
|
+
if (E) {
|
|
4127
|
+
const N = {
|
|
4151
4128
|
livenessError: Se(
|
|
4152
4129
|
window.Module.LivenessFailureReason,
|
|
4153
4130
|
m.failureReason
|
|
@@ -4157,11 +4134,11 @@ function ml(e) {
|
|
|
4157
4134
|
g.failureReason
|
|
4158
4135
|
)
|
|
4159
4136
|
};
|
|
4160
|
-
|
|
4161
|
-
|
|
4137
|
+
N.livenessError && $.has(N.livenessError) ? t() : r(
|
|
4138
|
+
N.livenessError ? Gt[N.livenessError] || N.livenessError : "Something went wrong"
|
|
4162
4139
|
);
|
|
4163
4140
|
} else {
|
|
4164
|
-
const
|
|
4141
|
+
const N = {
|
|
4165
4142
|
livenessStatus: Se(
|
|
4166
4143
|
window.Module.LivenessStatus,
|
|
4167
4144
|
m.status
|
|
@@ -4176,7 +4153,7 @@ function ml(e) {
|
|
|
4176
4153
|
resultId: m.resultId,
|
|
4177
4154
|
digest: m.digest
|
|
4178
4155
|
};
|
|
4179
|
-
|
|
4156
|
+
N.livenessStatus === "RealFace" ? t() : N.livenessStatus === "SpoofFace" ? r(Gt[N.livenessStatus]) : r("Could not validate request");
|
|
4180
4157
|
}
|
|
4181
4158
|
u();
|
|
4182
4159
|
};
|
|
@@ -4188,20 +4165,20 @@ function ml(e) {
|
|
|
4188
4165
|
if (a.current)
|
|
4189
4166
|
m = s.current.generatePayloadAndResult();
|
|
4190
4167
|
else {
|
|
4191
|
-
const { videoWidth: g, videoHeight:
|
|
4168
|
+
const { videoWidth: g, videoHeight: E } = _, $ = Dn(_, g, E, void 0, {
|
|
4192
4169
|
willReadFrequently: !0
|
|
4193
|
-
}),
|
|
4170
|
+
}), C = window.Module._malloc($.data.byteLength);
|
|
4194
4171
|
try {
|
|
4195
|
-
window.Module.HEAPU8.set(
|
|
4196
|
-
const
|
|
4172
|
+
window.Module.HEAPU8.set($.data, C);
|
|
4173
|
+
const M = s.current.processFrame(
|
|
4197
4174
|
g,
|
|
4198
|
-
|
|
4199
|
-
|
|
4200
|
-
|
|
4175
|
+
E,
|
|
4176
|
+
$.data.byteLength,
|
|
4177
|
+
C
|
|
4201
4178
|
);
|
|
4202
|
-
|
|
4179
|
+
M.terminate ? m = !0 : M.isValid && f(M);
|
|
4203
4180
|
} finally {
|
|
4204
|
-
window.Module._free(
|
|
4181
|
+
window.Module._free(C);
|
|
4205
4182
|
}
|
|
4206
4183
|
}
|
|
4207
4184
|
m && v(s.current.getFaceAnalyzerResult());
|
|
@@ -4211,7 +4188,7 @@ function ml(e) {
|
|
|
4211
4188
|
};
|
|
4212
4189
|
}
|
|
4213
4190
|
const Fr = "Detecting face...";
|
|
4214
|
-
function
|
|
4191
|
+
function ml({
|
|
4215
4192
|
onImageCaptured: e,
|
|
4216
4193
|
fetchAzureSessionToken: t,
|
|
4217
4194
|
loadAzureSdk: n,
|
|
@@ -4219,85 +4196,85 @@ function vl({
|
|
|
4219
4196
|
onReset: o,
|
|
4220
4197
|
onFailure: i
|
|
4221
4198
|
}) {
|
|
4222
|
-
const [s, a] =
|
|
4223
|
-
|
|
4199
|
+
const [s, a] = F(Fr), [c, u] = F(!1), d = w("findingFace"), l = w(null), h = w(), f = w(!1), [v, y] = F(0), _ = w(!1), [m, g] = F(!1);
|
|
4200
|
+
V(() => {
|
|
4224
4201
|
y(Math.min(window.innerWidth, window.innerHeight) * 0.6);
|
|
4225
|
-
}, []),
|
|
4202
|
+
}, []), V(() => {
|
|
4226
4203
|
n(), t();
|
|
4227
4204
|
}, []);
|
|
4228
|
-
const
|
|
4229
|
-
onMessage: (
|
|
4230
|
-
d.current === "analyzingLiveness" && a(
|
|
4205
|
+
const E = pl({
|
|
4206
|
+
onMessage: (S) => {
|
|
4207
|
+
d.current === "analyzingLiveness" && a(S);
|
|
4231
4208
|
},
|
|
4232
4209
|
onComplete: () => {
|
|
4233
4210
|
d.current = "done", e(!0);
|
|
4234
4211
|
},
|
|
4235
|
-
onError: (
|
|
4236
|
-
const
|
|
4237
|
-
a(
|
|
4212
|
+
onError: (S) => {
|
|
4213
|
+
const b = ec(S);
|
|
4214
|
+
a(b.message), d.current = "done", u(!0), r && r(S), i({
|
|
4238
4215
|
faceImage: "",
|
|
4239
4216
|
passed: !1,
|
|
4240
4217
|
metadata: {},
|
|
4241
|
-
error:
|
|
4218
|
+
error: b
|
|
4242
4219
|
});
|
|
4243
4220
|
}
|
|
4244
|
-
}),
|
|
4245
|
-
_.current = !1, a(Fr), d.current = "findingFace", l.current = null,
|
|
4246
|
-
}, { detectFaces:
|
|
4221
|
+
}), $ = () => {
|
|
4222
|
+
_.current = !1, a(Fr), d.current = "findingFace", l.current = null, E.reset(), h.current && cancelAnimationFrame(h.current), u(!1), o();
|
|
4223
|
+
}, { detectFaces: C, cleanup: M } = al({
|
|
4247
4224
|
validations: ["zoom", "features"],
|
|
4248
4225
|
frameSize: v,
|
|
4249
4226
|
livenessTimeout: 1e4,
|
|
4250
|
-
onFace: async (
|
|
4251
|
-
f.current =
|
|
4227
|
+
onFace: async (S, b, A) => {
|
|
4228
|
+
f.current = b, b && d.current === "findingFace" && !_.current && A && (_.current = !0, g(!0));
|
|
4252
4229
|
},
|
|
4253
4230
|
onPhotoSaved: () => {
|
|
4254
4231
|
},
|
|
4255
|
-
onMessage: (
|
|
4256
|
-
d.current === "findingFace" && a(
|
|
4232
|
+
onMessage: (S) => {
|
|
4233
|
+
d.current === "findingFace" && a(S);
|
|
4257
4234
|
},
|
|
4258
|
-
onError: (
|
|
4259
|
-
a(
|
|
4235
|
+
onError: (S) => {
|
|
4236
|
+
a(S), u(!0), r && r(S);
|
|
4260
4237
|
}
|
|
4261
4238
|
});
|
|
4262
|
-
|
|
4239
|
+
V(
|
|
4263
4240
|
() => () => {
|
|
4264
|
-
|
|
4241
|
+
M();
|
|
4265
4242
|
},
|
|
4266
4243
|
[]
|
|
4267
4244
|
);
|
|
4268
|
-
const
|
|
4269
|
-
!l.current || l.current.paused || l.current.ended || (d.current === "findingFace" ?
|
|
4245
|
+
const N = () => {
|
|
4246
|
+
!l.current || l.current.paused || l.current.ended || (d.current === "findingFace" ? C({ ref: l }) : d.current === "analyzingLiveness" && E.processFrame(l.current), d.current !== "done" && (h.current = requestAnimationFrame(N)));
|
|
4270
4247
|
};
|
|
4271
|
-
|
|
4248
|
+
V(() => {
|
|
4272
4249
|
(async () => {
|
|
4273
4250
|
if (m) {
|
|
4274
|
-
g(!1),
|
|
4251
|
+
g(!1), M();
|
|
4275
4252
|
try {
|
|
4276
4253
|
await n();
|
|
4277
|
-
const
|
|
4278
|
-
if (
|
|
4279
|
-
|
|
4254
|
+
const b = await t();
|
|
4255
|
+
if (b)
|
|
4256
|
+
E.start(b), d.current = "analyzingLiveness";
|
|
4280
4257
|
else
|
|
4281
4258
|
throw new Error("Session token could not be retrieved.");
|
|
4282
|
-
} catch (
|
|
4283
|
-
const
|
|
4284
|
-
r && r(
|
|
4259
|
+
} catch (b) {
|
|
4260
|
+
const A = b instanceof Error ? b.message : "Failed to start liveness check.";
|
|
4261
|
+
r && r(A), i({
|
|
4285
4262
|
faceImage: "",
|
|
4286
4263
|
passed: !1,
|
|
4287
4264
|
metadata: {},
|
|
4288
4265
|
error: {
|
|
4289
4266
|
key: "session_token_error",
|
|
4290
|
-
message:
|
|
4267
|
+
message: A
|
|
4291
4268
|
}
|
|
4292
4269
|
}), u(!0);
|
|
4293
4270
|
}
|
|
4294
4271
|
}
|
|
4295
4272
|
})();
|
|
4296
4273
|
}, [m]);
|
|
4297
|
-
const
|
|
4298
|
-
|
|
4274
|
+
const W = (S) => {
|
|
4275
|
+
S.current && (l.current = S.current, N());
|
|
4299
4276
|
};
|
|
4300
|
-
return
|
|
4277
|
+
return V(
|
|
4301
4278
|
() => () => {
|
|
4302
4279
|
h.current && cancelAnimationFrame(h.current);
|
|
4303
4280
|
},
|
|
@@ -4308,12 +4285,12 @@ function vl({
|
|
|
4308
4285
|
Icon: Wo,
|
|
4309
4286
|
title: "Oops, task failed!",
|
|
4310
4287
|
description: s,
|
|
4311
|
-
onActionClick:
|
|
4288
|
+
onActionClick: $,
|
|
4312
4289
|
actionText: "Try Again"
|
|
4313
4290
|
}
|
|
4314
4291
|
) }) : /* @__PURE__ */ p("div", { className: se.root, children: /* @__PURE__ */ p("div", { className: `${se.container} view`, children: /* @__PURE__ */ p("div", { className: "yvlw-h-full yvlw-flex yvlw-flex-col", children: [
|
|
4315
|
-
/* @__PURE__ */ p("div", { children: /* @__PURE__ */ p(ut, { onStream:
|
|
4316
|
-
/* @__PURE__ */ p(
|
|
4292
|
+
/* @__PURE__ */ p("div", { children: /* @__PURE__ */ p(ut, { onStream: W, children: /* @__PURE__ */ p(Y, { children: [
|
|
4293
|
+
/* @__PURE__ */ p(fl, { faceDetected: f.current }),
|
|
4317
4294
|
d.current === "analyzingLiveness" && /* @__PURE__ */ p("div", { className: "yvlw-bg-black/20 yvlw-z-5" })
|
|
4318
4295
|
] }) }) }),
|
|
4319
4296
|
/* @__PURE__ */ p("div", { className: "yvlw-border-t dark:yvlw-border-gray-800 yvlw-border-gray-200", children: /* @__PURE__ */ p("div", { className: "yvlw-text-center yvlw-mx-auto yvlw-pt-4 yvlw-pb-6 yvlw-px-4", children: [
|
|
@@ -4329,14 +4306,14 @@ function vl({
|
|
|
4329
4306
|
] }) })
|
|
4330
4307
|
] }) }) }) });
|
|
4331
4308
|
}
|
|
4332
|
-
const
|
|
4309
|
+
const vl = () => {
|
|
4333
4310
|
if (window.isAzureSdkLoading)
|
|
4334
4311
|
return window.azureSdkLoadPromise;
|
|
4335
4312
|
window.isAzureSdkLoading = !0;
|
|
4336
4313
|
const e = new Promise((t, n) => {
|
|
4337
4314
|
let r = Ge.js.simd;
|
|
4338
4315
|
try {
|
|
4339
|
-
WebAssembly.validate(new Uint8Array(
|
|
4316
|
+
WebAssembly.validate(new Uint8Array(Xa)) || (r = Ge.js.default);
|
|
4340
4317
|
} catch {
|
|
4341
4318
|
r = Ge.js.simd;
|
|
4342
4319
|
}
|
|
@@ -4359,8 +4336,8 @@ const _l = () => {
|
|
|
4359
4336
|
return window.azureSdkLoadPromise = e, e;
|
|
4360
4337
|
};
|
|
4361
4338
|
let Ve = null;
|
|
4362
|
-
function
|
|
4363
|
-
var
|
|
4339
|
+
function _l() {
|
|
4340
|
+
var B;
|
|
4364
4341
|
const { toggleColorScheme: e, getColorScheme: t, setColorScheme: n } = qo(), {
|
|
4365
4342
|
user: r,
|
|
4366
4343
|
tasks: o,
|
|
@@ -4371,32 +4348,32 @@ function yl() {
|
|
|
4371
4348
|
faceDetector: u,
|
|
4372
4349
|
presentation: d,
|
|
4373
4350
|
clearSavedPhoto: l
|
|
4374
|
-
} = fe(), [h, f] =
|
|
4375
|
-
|
|
4351
|
+
} = fe(), [h, f] = F(!1), [v, y] = F(!1), [_, m] = F(null), [g, E] = F(!1), [$, C] = F(!1), [M, N] = F(0);
|
|
4352
|
+
V(() => {
|
|
4376
4353
|
const D = t();
|
|
4377
4354
|
n(D);
|
|
4378
4355
|
}, []);
|
|
4379
|
-
const { sandboxEnvironment:
|
|
4356
|
+
const { sandboxEnvironment: W, publicKey: S } = fe(), { fetchSessionToken: b } = jo(W), A = async () => (Ve || (Ve = b({ publicKey: S }).catch((D) => {
|
|
4380
4357
|
throw Ve = null, D;
|
|
4381
|
-
})), Ve),
|
|
4358
|
+
})), Ve), K = async () => {
|
|
4382
4359
|
try {
|
|
4383
|
-
f(!0), m(null), await a(), Ve = null, d === "page" &&
|
|
4360
|
+
f(!0), m(null), await a(), Ve = null, d === "page" && E(!0);
|
|
4384
4361
|
} catch (D) {
|
|
4385
4362
|
m(D.message);
|
|
4386
4363
|
} finally {
|
|
4387
4364
|
f(!1);
|
|
4388
4365
|
}
|
|
4389
|
-
}, I =
|
|
4366
|
+
}, I = z(
|
|
4390
4367
|
(D) => D === i ? ne.active : i > D ? ne.completed : "subtext",
|
|
4391
4368
|
[i]
|
|
4392
4369
|
);
|
|
4393
4370
|
return /* @__PURE__ */ p("div", { className: ne.root, children: /* @__PURE__ */ p("div", { className: ne.container, children: [
|
|
4394
4371
|
/* @__PURE__ */ p("div", { className: `${ne.lhs} divider`, children: [
|
|
4395
4372
|
/* @__PURE__ */ p("div", { className: ne.info, children: [
|
|
4396
|
-
/* @__PURE__ */ p(
|
|
4373
|
+
/* @__PURE__ */ p(gc, {}),
|
|
4397
4374
|
/* @__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." }) }),
|
|
4398
4375
|
/* @__PURE__ */ p("ol", { children: [
|
|
4399
|
-
o.map((D,
|
|
4376
|
+
o.map((D, H) => /* @__PURE__ */ p("li", { className: I(H), children: rc[D.id].name }, `task-${H}`)),
|
|
4400
4377
|
/* @__PURE__ */ p("li", { className: s ? ne.active : "", children: "Complete! 🎉" })
|
|
4401
4378
|
] })
|
|
4402
4379
|
] }),
|
|
@@ -4404,7 +4381,7 @@ function yl() {
|
|
|
4404
4381
|
/* @__PURE__ */ p("div", { children: "Powered by Youverify" }),
|
|
4405
4382
|
/* @__PURE__ */ p("div", { onClick: () => e(), role: "button", children: [
|
|
4406
4383
|
/* @__PURE__ */ p("div", { className: "dark:yvlw-hidden", children: /* @__PURE__ */ p(Vo, {}) }),
|
|
4407
|
-
/* @__PURE__ */ p("div", { className: "yvlw-hidden dark:yvlw-block", children: /* @__PURE__ */ p(
|
|
4384
|
+
/* @__PURE__ */ p("div", { className: "yvlw-hidden dark:yvlw-block", children: /* @__PURE__ */ p(Oa, {}) })
|
|
4408
4385
|
] })
|
|
4409
4386
|
] })
|
|
4410
4387
|
] }),
|
|
@@ -4423,7 +4400,7 @@ function yl() {
|
|
|
4423
4400
|
children: /* @__PURE__ */ p("div", { className: ne.completed, children: u ? /* @__PURE__ */ p(
|
|
4424
4401
|
$t,
|
|
4425
4402
|
{
|
|
4426
|
-
Icon:
|
|
4403
|
+
Icon: Wa,
|
|
4427
4404
|
title: "Liveness Check",
|
|
4428
4405
|
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. Please ensure to stay in a well lit area.",
|
|
4429
4406
|
actionText: "Start Liveness Test",
|
|
@@ -4435,7 +4412,7 @@ function yl() {
|
|
|
4435
4412
|
/* @__PURE__ */ p(
|
|
4436
4413
|
he,
|
|
4437
4414
|
{
|
|
4438
|
-
show: v &&
|
|
4415
|
+
show: v && !$,
|
|
4439
4416
|
as: "div",
|
|
4440
4417
|
leave: "yvlw-transform yvlw-transition yvlw-duration-300",
|
|
4441
4418
|
leaveFrom: "yvlw-translate-y-0 yvlw-opacity-100",
|
|
@@ -4444,46 +4421,46 @@ function yl() {
|
|
|
4444
4421
|
enterTo: "yvlw-translate-y-0 yvlw-opacity-100",
|
|
4445
4422
|
className: "yvlw-h-full yvlw-w-full",
|
|
4446
4423
|
children: /* @__PURE__ */ p("div", { className: ne.completed, children: /* @__PURE__ */ p(
|
|
4447
|
-
|
|
4424
|
+
ml,
|
|
4448
4425
|
{
|
|
4449
|
-
fetchAzureSessionToken:
|
|
4450
|
-
loadAzureSdk:
|
|
4426
|
+
fetchAzureSessionToken: A,
|
|
4427
|
+
loadAzureSdk: vl,
|
|
4451
4428
|
onImageCaptured: (D) => {
|
|
4452
|
-
m(null), D &&
|
|
4429
|
+
m(null), D && C(!0);
|
|
4453
4430
|
},
|
|
4454
4431
|
onError: (D) => m(D),
|
|
4455
4432
|
onReset: () => {
|
|
4456
|
-
Ve = null,
|
|
4433
|
+
Ve = null, C(!1), N((D) => D + 1), l();
|
|
4457
4434
|
},
|
|
4458
4435
|
onFailure: c
|
|
4459
4436
|
},
|
|
4460
|
-
|
|
4437
|
+
M
|
|
4461
4438
|
) })
|
|
4462
4439
|
}
|
|
4463
4440
|
),
|
|
4464
|
-
o.map((D,
|
|
4465
|
-
let
|
|
4441
|
+
o.map((D, H) => {
|
|
4442
|
+
let k;
|
|
4466
4443
|
switch (D.id) {
|
|
4467
4444
|
case "complete-the-circle":
|
|
4468
|
-
|
|
4445
|
+
k = /* @__PURE__ */ p(Bc, { ...D });
|
|
4469
4446
|
break;
|
|
4470
4447
|
case "yes-or-no":
|
|
4471
|
-
|
|
4448
|
+
k = /* @__PURE__ */ p(Qc, { ...D });
|
|
4472
4449
|
break;
|
|
4473
4450
|
case "motions":
|
|
4474
|
-
|
|
4451
|
+
k = /* @__PURE__ */ p(rl, { ...D });
|
|
4475
4452
|
break;
|
|
4476
4453
|
case "blink":
|
|
4477
|
-
|
|
4454
|
+
k = /* @__PURE__ */ p(ol, { ...D });
|
|
4478
4455
|
break;
|
|
4479
4456
|
default:
|
|
4480
|
-
|
|
4457
|
+
k = /* @__PURE__ */ p(Y, {});
|
|
4481
4458
|
break;
|
|
4482
4459
|
}
|
|
4483
4460
|
return /* @__PURE__ */ p(
|
|
4484
4461
|
he,
|
|
4485
4462
|
{
|
|
4486
|
-
show: v &&
|
|
4463
|
+
show: v && $ && !s && i === H,
|
|
4487
4464
|
appear: !0,
|
|
4488
4465
|
as: "div",
|
|
4489
4466
|
leave: "yvlw-transform yvlw-transition yvlw-duration-300",
|
|
@@ -4492,9 +4469,9 @@ function yl() {
|
|
|
4492
4469
|
enterFrom: "yvlw-translate-y-full yvlw-opacity-0",
|
|
4493
4470
|
enterTo: "yvlw-translate-y-0 yvlw-opacity-100",
|
|
4494
4471
|
className: "yvlw-h-full",
|
|
4495
|
-
children:
|
|
4472
|
+
children: k
|
|
4496
4473
|
},
|
|
4497
|
-
`task-${
|
|
4474
|
+
`task-${H}`
|
|
4498
4475
|
);
|
|
4499
4476
|
}),
|
|
4500
4477
|
/* @__PURE__ */ p(
|
|
@@ -4511,12 +4488,12 @@ function yl() {
|
|
|
4511
4488
|
children: /* @__PURE__ */ p("div", { className: ne.completed, children: /* @__PURE__ */ p(
|
|
4512
4489
|
$t,
|
|
4513
4490
|
{
|
|
4514
|
-
Icon:
|
|
4491
|
+
Icon: za,
|
|
4515
4492
|
title: g ? "All Set!" : "Completed",
|
|
4516
4493
|
description: g ? "You can now close or exit the window" : "Your Identity verification has been completed successfully. Thanks for your patience",
|
|
4517
4494
|
actionText: "Finish",
|
|
4518
4495
|
loading: h,
|
|
4519
|
-
onActionClick:
|
|
4496
|
+
onActionClick: K,
|
|
4520
4497
|
hideButton: g,
|
|
4521
4498
|
children: _ && /* @__PURE__ */ p("div", { className: "yvlw-mt-3", children: _ })
|
|
4522
4499
|
}
|
|
@@ -4527,7 +4504,7 @@ function yl() {
|
|
|
4527
4504
|
/* @__PURE__ */ p("div", { className: `${ne.rhs} divider`, children: r && /* @__PURE__ */ p("div", { className: `${ne.profile} divider`, children: [
|
|
4528
4505
|
/* @__PURE__ */ p("div", { children: /* @__PURE__ */ p("div", { className: ne.avatar, children: [
|
|
4529
4506
|
r.firstName.charAt(0).toUpperCase(),
|
|
4530
|
-
(
|
|
4507
|
+
(B = r.lastName) == null ? void 0 : B.charAt(0).toUpperCase()
|
|
4531
4508
|
] }) }),
|
|
4532
4509
|
/* @__PURE__ */ p("div", { children: [
|
|
4533
4510
|
/* @__PURE__ */ p("h4", { children: [
|
|
@@ -4540,7 +4517,7 @@ function yl() {
|
|
|
4540
4517
|
] }) })
|
|
4541
4518
|
] }) });
|
|
4542
4519
|
}
|
|
4543
|
-
function
|
|
4520
|
+
function yl(e) {
|
|
4544
4521
|
const {
|
|
4545
4522
|
tasks: t,
|
|
4546
4523
|
namespace: n,
|
|
@@ -4554,11 +4531,11 @@ function gl(e) {
|
|
|
4554
4531
|
publicKey: u,
|
|
4555
4532
|
metadata: d,
|
|
4556
4533
|
sandboxEnvironment: l
|
|
4557
|
-
} = e, [h, f] =
|
|
4534
|
+
} = e, [h, f] = F(e.show), v = () => {
|
|
4558
4535
|
f(!1), i();
|
|
4559
4536
|
};
|
|
4560
4537
|
return /* @__PURE__ */ p(
|
|
4561
|
-
|
|
4538
|
+
oc,
|
|
4562
4539
|
{
|
|
4563
4540
|
namespace: n,
|
|
4564
4541
|
publicKey: u,
|
|
@@ -4572,27 +4549,27 @@ function gl(e) {
|
|
|
4572
4549
|
presentation: c,
|
|
4573
4550
|
sandboxEnvironment: l,
|
|
4574
4551
|
children: /* @__PURE__ */ p(
|
|
4575
|
-
|
|
4552
|
+
xa,
|
|
4576
4553
|
{
|
|
4577
4554
|
id: n,
|
|
4578
4555
|
open: c === "page" ? !0 : h,
|
|
4579
4556
|
onClose: v,
|
|
4580
4557
|
transition: !0,
|
|
4581
|
-
className: `${
|
|
4558
|
+
className: `${Ra.root} ${pt.root} ${pt[c]}`,
|
|
4582
4559
|
style: {
|
|
4583
|
-
"--branding-color": (o == null ? void 0 : o.color) ??
|
|
4560
|
+
"--branding-color": (o == null ? void 0 : o.color) ?? Ga
|
|
4584
4561
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
4585
4562
|
},
|
|
4586
4563
|
children: [
|
|
4587
|
-
c === "modal" && /* @__PURE__ */ p("div", { onClick: v, role: "button", className: pt.close, children: /* @__PURE__ */ p(
|
|
4588
|
-
/* @__PURE__ */ p(Ho, { className: `${pt.container}`, children: /* @__PURE__ */ p(
|
|
4564
|
+
c === "modal" && /* @__PURE__ */ p("div", { onClick: v, role: "button", className: pt.close, children: /* @__PURE__ */ p(Ua, { className: "yvlw-text-white" }) }),
|
|
4565
|
+
/* @__PURE__ */ p(Ho, { className: `${pt.container}`, children: /* @__PURE__ */ p(_l, {}) })
|
|
4589
4566
|
]
|
|
4590
4567
|
}
|
|
4591
4568
|
)
|
|
4592
4569
|
}
|
|
4593
4570
|
);
|
|
4594
4571
|
}
|
|
4595
|
-
class
|
|
4572
|
+
class bl {
|
|
4596
4573
|
constructor(t) {
|
|
4597
4574
|
this.tasks = [], this.container = null, this.namespace = "liveness-web-sdk", this.loadedScripts = [];
|
|
4598
4575
|
const { presentation: n = "modal" } = t;
|
|
@@ -4638,7 +4615,7 @@ class El {
|
|
|
4638
4615
|
async start(t) {
|
|
4639
4616
|
t && (this.tasks = t), this.validateOptions(), this.container = document.createElement("div"), document.body.appendChild(this.container), ze(
|
|
4640
4617
|
/* @__PURE__ */ p(
|
|
4641
|
-
|
|
4618
|
+
yl,
|
|
4642
4619
|
{
|
|
4643
4620
|
namespace: this.namespace,
|
|
4644
4621
|
publicKey: this.props.publicKey,
|
|
@@ -4676,5 +4653,5 @@ class El {
|
|
|
4676
4653
|
// }
|
|
4677
4654
|
}
|
|
4678
4655
|
export {
|
|
4679
|
-
|
|
4656
|
+
bl as default
|
|
4680
4657
|
};
|