diff --git a/assets/index-599f893d.css b/assets/index-03f7a628.css similarity index 60% rename from assets/index-599f893d.css rename to assets/index-03f7a628.css index ac540ab..0df2a49 100644 --- a/assets/index-599f893d.css +++ b/assets/index-03f7a628.css @@ -1 +1 @@ -*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";-webkit-font-feature-settings:normal;font-feature-settings:normal;font-variation-settings:normal}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;-webkit-font-feature-settings:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-webkit-input-placeholder,textarea::-webkit-input-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}select{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");background-position:right .5rem center;background-repeat:no-repeat;background-size:1.5em 1.5em;padding-right:2.5rem;-webkit-print-color-adjust:exact;print-color-adjust:exact}[type=checkbox]:checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e")}[type=radio]:checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='3'/%3e%3c/svg%3e")}[type=checkbox]:indeterminate{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3e%3cpath stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8h8'/%3e%3c/svg%3e");border-color:transparent;background-color:currentColor;background-size:100% 100%;background-position:center;background-repeat:no-repeat}[type=text],input:where(:not([type])),[type=email],[type=url],[type=password],[type=number],[type=date],[type=datetime-local],[type=month],[type=search],[type=tel],[type=time],[type=week],[multiple],textarea,select{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;border-color:#6b7280;border-width:1px;border-radius:0;padding:.5rem .75rem;font-size:1rem;line-height:1.5rem;--tw-shadow: 0 0 #0000}[type=text]:focus,input:where(:not([type])):focus,[type=email]:focus,[type=url]:focus,[type=password]:focus,[type=number]:focus,[type=date]:focus,[type=datetime-local]:focus,[type=month]:focus,[type=search]:focus,[type=tel]:focus,[type=time]:focus,[type=week]:focus,[multiple]:focus,textarea:focus,select:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-inset: var(--tw-empty, );--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: #2563eb;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);border-color:#2563eb}input::-webkit-input-placeholder,textarea::-webkit-input-placeholder{color:#6b7280;opacity:1}input::placeholder,textarea::placeholder{color:#6b7280;opacity:1}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-date-and-time-value{min-height:1.5em;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit,::-webkit-datetime-edit-year-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-minute-field,::-webkit-datetime-edit-second-field,::-webkit-datetime-edit-millisecond-field,::-webkit-datetime-edit-meridiem-field{padding-top:0;padding-bottom:0}select{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");background-position:right .5rem center;background-repeat:no-repeat;background-size:1.5em 1.5em;padding-right:2.5rem;-webkit-print-color-adjust:exact;print-color-adjust:exact}[multiple],[size]:where(select:not([size="1"])){background-image:initial;background-position:initial;background-repeat:unset;background-size:initial;padding-right:.75rem;-webkit-print-color-adjust:unset;print-color-adjust:unset}[type=checkbox],[type=radio]{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0;-webkit-print-color-adjust:exact;print-color-adjust:exact;display:inline-block;vertical-align:middle;background-origin:border-box;-webkit-user-select:none;user-select:none;flex-shrink:0;height:1rem;width:1rem;color:#2563eb;background-color:#fff;border-color:#6b7280;border-width:1px;--tw-shadow: 0 0 #0000}[type=checkbox]{border-radius:0}[type=radio]{border-radius:100%}[type=checkbox]:focus,[type=radio]:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-inset: var(--tw-empty, );--tw-ring-offset-width: 2px;--tw-ring-offset-color: #fff;--tw-ring-color: #2563eb;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}[type=checkbox]:checked,[type=radio]:checked{border-color:transparent;background-color:currentColor;background-size:100% 100%;background-position:center;background-repeat:no-repeat}[type=checkbox]:checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e")}[type=radio]:checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='3'/%3e%3c/svg%3e")}[type=checkbox]:checked:hover,[type=checkbox]:checked:focus,[type=radio]:checked:hover,[type=radio]:checked:focus{border-color:transparent;background-color:currentColor}[type=checkbox]:indeterminate{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3e%3cpath stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8h8'/%3e%3c/svg%3e");border-color:transparent;background-color:currentColor;background-size:100% 100%;background-position:center;background-repeat:no-repeat}[type=checkbox]:indeterminate:hover,[type=checkbox]:indeterminate:focus{border-color:transparent;background-color:currentColor}[type=file]{background:unset;border-color:inherit;border-width:0;border-radius:0;padding:0;font-size:unset;line-height:inherit}[type=file]:focus{outline:1px solid ButtonText;outline:1px auto -webkit-focus-ring-color}*,: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: }::-webkit-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: }::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: }.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.pointer-events-none{pointer-events:none}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:-webkit-sticky;position:sticky}.-inset-y-px{top:-1px;bottom:-1px}.inset-y-0{top:0;bottom:0}.bottom-2{bottom:.5rem}.bottom-2\.5{bottom:.625rem}.left-0{left:0}.right-2{right:.5rem}.right-2\.5{right:.625rem}.top-0{top:0}.isolate{isolation:isolate}.-z-10{z-index:-10}.z-0{z-index:0}.z-50{z-index:50}.mx-8{margin-left:2rem;margin-right:2rem}.mx-auto{margin-left:auto;margin-right:auto}.my-2{margin-top:.5rem;margin-bottom:.5rem}.-mr-2{margin-right:-.5rem}.-mt-8{margin-top:-2rem}.mb-1{margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.ml-3{margin-left:.75rem}.ml-4{margin-left:1rem}.ml-40{margin-left:10rem}.ml-8{margin-left:2rem}.mr-2{margin-right:.5rem}.mt-1{margin-top:.25rem}.mt-10{margin-top:2.5rem}.mt-20{margin-top:5rem}.mt-4{margin-top:1rem}.mt-6{margin-top:1.5rem}.mt-8{margin-top:2rem}.block{display:block}.inline-block{display:inline-block}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.hidden{display:none}.h-16{height:4rem}.h-4{height:1rem}.h-6{height:1.5rem}.h-8{height:2rem}.h-full{height:100%}.h-screen{height:100vh}.min-h-\[44px\]{min-height:44px}.min-h-full{min-height:100%}.w-1\/2{width:50%}.w-4{width:1rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-8{width:2rem}.w-\[200\%\]{width:200%}.w-full{width:100%}.max-w-2xl{max-width:42rem}.max-w-7xl{max-width:80rem}.max-w-full{max-width:100%}.max-w-lg{max-width:32rem}.max-w-md{max-width:28rem}.flex-1{flex:1 1 0%}.flex-none{flex:none}.flex-shrink-0,.shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}.transform{-webkit-transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));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))}@-webkit-keyframes pulse{50%{opacity:.5}}@keyframes pulse{50%{opacity:.5}}.animate-pulse{-webkit-animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite;animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}.cursor-pointer{cursor:pointer}.list-disc{list-style-type:disc}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.items-center{align-items:center}.items-baseline{align-items:baseline}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-8{gap:2rem}.gap-x-2{-webkit-column-gap:.5rem;column-gap:.5rem}.gap-x-3{-webkit-column-gap:.75rem;column-gap:.75rem}.gap-x-6{-webkit-column-gap:1.5rem;column-gap:1.5rem}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.overflow-x-hidden{overflow-x:hidden}.rounded-3xl{border-radius:1.5rem}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.border{border-width:1px}.border-b-2{border-bottom-width:2px}.border-l-4{border-left-width:4px}.border-t{border-top-width:1px}.border-gray-200{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity))}.border-gray-300{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity))}.border-indigo-300{--tw-border-opacity: 1;border-color:rgb(165 180 252 / var(--tw-border-opacity))}.border-transparent{border-color:transparent}.border-x-captn-light-cream{--tw-border-opacity: 1;border-left-color:rgb(234 228 217 / var(--tw-border-opacity));border-right-color:rgb(234 228 217 / var(--tw-border-opacity))}.bg-captn-cta-green{--tw-bg-opacity: 1;background-color:rgb(13 163 127 / var(--tw-bg-opacity))}.bg-captn-cta-red{--tw-bg-opacity: 1;background-color:rgb(229 115 115 / var(--tw-bg-opacity))}.bg-captn-dark-blue{--tw-bg-opacity: 1;background-color:rgb(0 56 81 / var(--tw-bg-opacity))}.bg-captn-light-blue{--tw-bg-opacity: 1;background-color:rgb(111 170 188 / var(--tw-bg-opacity))}.bg-captn-light-cream{--tw-bg-opacity: 1;background-color:rgb(234 228 217 / var(--tw-bg-opacity))}.bg-indigo-50{--tw-bg-opacity: 1;background-color:rgb(238 242 255 / var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-yellow-400{--tw-bg-opacity: 1;background-color:rgb(250 204 21 / var(--tw-bg-opacity))}.bg-yellow-500{--tw-bg-opacity: 1;background-color:rgb(234 179 8 / var(--tw-bg-opacity))}.p-2{padding:.5rem}.p-4{padding:1rem}.p-8{padding:2rem}.px-0{padding-left:0;padding-right:0}.px-1{padding-left:.25rem;padding-right:.25rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-3\.5{padding-left:.875rem;padding-right:.875rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-2\.5{padding-top:.625rem;padding-bottom:.625rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-5{padding-top:1.25rem;padding-bottom:1.25rem}.py-8{padding-top:2rem;padding-bottom:2rem}.pb-24{padding-bottom:6rem}.pb-3{padding-bottom:.75rem}.pl-10{padding-left:2.5rem}.pl-3{padding-left:.75rem}.pr-2{padding-right:.5rem}.pr-4{padding-right:1rem}.pt-1{padding-top:.25rem}.pt-10{padding-top:2.5rem}.pt-2{padding-top:.5rem}.pt-8{padding-top:2rem}.text-center{text-align:center}.text-2xl{font-size:1.5rem;line-height:2rem}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-5xl{font-size:3rem;line-height:1}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.leading-6{line-height:1.5rem}.leading-7{line-height:1.75rem}.leading-8{line-height:2rem}.tracking-tight{letter-spacing:-.025em}.text-black{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity))}.text-captn-dark-blue{--tw-text-opacity: 1;color:rgb(0 56 81 / var(--tw-text-opacity))}.text-captn-light-cream{--tw-text-opacity: 1;color:rgb(234 228 217 / var(--tw-text-opacity))}.text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.text-gray-600{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}.text-gray-800{--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity))}.text-gray-900{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}.text-indigo-500{--tw-text-opacity: 1;color:rgb(99 102 241 / var(--tw-text-opacity))}.text-indigo-600{--tw-text-opacity: 1;color:rgb(79 70 229 / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.underline{text-decoration-line:underline}.opacity-70{opacity:.7}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.ring-1{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-inset{--tw-ring-inset: inset}.ring-gray-900\/10{--tw-ring-color: rgb(17 24 39 / .1)}.ring-white{--tw-ring-opacity: 1;--tw-ring-color: rgb(255 255 255 / var(--tw-ring-opacity))}.filter{-webkit-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);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-500{transition-duration:.5s}.\[clip-path\:inset\(0\)\]{-webkit-clip-path:inset(0);clip-path:inset(0)}@font-face{font-family:Panton-SemiBold;src:url(/fonts/47a8ea40a6adb66d377bd4931fa3e394.eot);src:url(/fonts/47a8ea40a6adb66d377bd4931fa3e394.eot?#iefix) format("embedded-opentype"),url(/fonts/47a8ea40a6adb66d377bd4931fa3e394.woff2) format("woff2"),url(/fonts/47a8ea40a6adb66d377bd4931fa3e394.woff) format("woff"),url(/fonts/47a8ea40a6adb66d377bd4931fa3e394.ttf) format("truetype"),url(/fonts/47a8ea40a6adb66d377bd4931fa3e394.svg#Panton-SemiBold) format("svg")}body{margin:0;font-family:Panton-SemiBold;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}code{font-family:source-code-pro,Menlo,Monaco,Consolas,Courier New,monospace}a{color:rgb(79 70 229 / var(--tw-text-opacity))}a:hover{color:rgb(99 102 241 / var(--tw-text-opacity))}.hover\:border-gray-300:hover{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity))}.hover\:bg-captn-cta-green-hover:hover{--tw-bg-opacity: 1;background-color:rgb(6 109 85 / var(--tw-bg-opacity))}.hover\:bg-captn-cta-red-hover:hover{--tw-bg-opacity: 1;background-color:rgb(239 83 80 / var(--tw-bg-opacity))}.hover\:bg-gray-100:hover{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.hover\:bg-gray-50:hover{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity))}.hover\:bg-yellow-400:hover{--tw-bg-opacity: 1;background-color:rgb(250 204 21 / var(--tw-bg-opacity))}.hover\:bg-yellow-500:hover{--tw-bg-opacity: 1;background-color:rgb(234 179 8 / var(--tw-bg-opacity))}.hover\:bg-yellow-600:hover{--tw-bg-opacity: 1;background-color:rgb(202 138 4 / var(--tw-bg-opacity))}.hover\:text-black\/70:hover{color:#000000b3}.hover\:text-gray-500:hover{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.hover\:text-gray-700:hover{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.hover\:text-gray-800:hover{--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity))}.hover\:text-indigo-500:hover{--tw-text-opacity: 1;color:rgb(99 102 241 / var(--tw-text-opacity))}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-4:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-inset:focus{--tw-ring-inset: inset}.focus\:ring-indigo-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(165 180 252 / var(--tw-ring-opacity))}.focus\:ring-indigo-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(99 102 241 / var(--tw-ring-opacity))}.focus\:ring-offset-2:focus{--tw-ring-offset-width: 2px}.focus-visible\:outline:focus-visible{outline-style:solid}.focus-visible\:outline-2:focus-visible{outline-width:2px}.focus-visible\:outline-offset-2:focus-visible{outline-offset:2px}.focus-visible\:outline-indigo-500:focus-visible{outline-color:#6366f1}.focus-visible\:outline-yellow-600:focus-visible{outline-color:#ca8a04}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-25:disabled{opacity:.25}@media (prefers-color-scheme: dark){.dark\:border-gray-600{--tw-border-opacity: 1;border-color:rgb(75 85 99 / var(--tw-border-opacity))}.dark\:border-white\/20{border-color:#fff3}.dark\:bg-captn-cta-green{--tw-bg-opacity: 1;background-color:rgb(13 163 127 / var(--tw-bg-opacity))}.dark\:bg-captn-dark-blue{--tw-bg-opacity: 1;background-color:rgb(0 56 81 / var(--tw-bg-opacity))}.dark\:bg-gray-800{--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}.dark\:text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.dark\:text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.dark\:placeholder-gray-400::-webkit-input-placeholder{--tw-placeholder-opacity: 1;color:rgb(156 163 175 / var(--tw-placeholder-opacity))}.dark\:placeholder-gray-400::placeholder{--tw-placeholder-opacity: 1;color:rgb(156 163 175 / var(--tw-placeholder-opacity))}.dark\:hover\:bg-captn-cta-green-hover:hover{--tw-bg-opacity: 1;background-color:rgb(6 109 85 / var(--tw-bg-opacity))}.dark\:hover\:bg-gray-700:hover{--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity))}}@media (min-width: 640px){.sm\:col-span-1{grid-column:span 1 / span 1}.sm\:col-span-2{grid-column:span 2 / span 2}.sm\:mx-auto{margin-left:auto;margin-right:auto}.sm\:ml-6{margin-left:1.5rem}.sm\:mt-0{margin-top:0}.sm\:mt-24{margin-top:6rem}.sm\:flex{display:flex}.sm\:grid{display:grid}.sm\:hidden{display:none}.sm\:w-full{width:100%}.sm\:max-w-md{max-width:28rem}.sm\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.sm\:gap-4{gap:1rem}.sm\:space-x-8>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(2rem * var(--tw-space-x-reverse));margin-left:calc(2rem * calc(1 - var(--tw-space-x-reverse)))}.sm\:divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse: 0;border-top-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(1px * var(--tw-divide-y-reverse))}.sm\:divide-gray-200>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(229 231 235 / var(--tw-divide-opacity))}.sm\:rounded-lg{border-radius:.5rem}.sm\:p-0{padding:0}.sm\:p-10{padding:2.5rem}.sm\:px-10{padding-left:2.5rem;padding-right:2.5rem}.sm\:px-6{padding-left:1.5rem;padding-right:1.5rem}.sm\:py-5{padding-top:1.25rem;padding-bottom:1.25rem}.sm\:pb-32{padding-bottom:8rem}.sm\:pt-16{padding-top:4rem}.sm\:text-6xl{font-size:3.75rem;line-height:1}}@media (min-width: 768px){.md\:mx-auto{margin-left:auto;margin-right:auto}.md\:w-\[calc\(100\%-\.5rem\)\]{width:calc(100% - .5rem)}.md\:max-w-2xl{max-width:42rem}.md\:rounded-3xl{border-radius:1.5rem}.md\:border-t-0{border-top-width:0px}.md\:border-transparent{border-color:transparent}.md\:\!bg-transparent{background-color:transparent!important}.md\:pl-16{padding-left:4rem}.md\:pl-2{padding-left:.5rem}.md\:pr-0{padding-right:0}.md\:pt-0{padding-top:0}.md\:\[clip-path\:inset\(0_round_theme\(borderRadius\.3xl\)\)\]{-webkit-clip-path:inset(0 round 1.5rem);clip-path:inset(0 round 1.5rem)}@media (prefers-color-scheme: dark){.md\:dark\:border-transparent{border-color:transparent}}}@media (min-width: 1024px){.lg\:m-8{margin:2rem}.lg\:mx-0{margin-left:0;margin-right:0}.lg\:mt-0{margin-top:0}.lg\:grid{display:grid}.lg\:w-screen{width:100vw}.lg\:max-w-4xl{max-width:56rem}.lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.lg\:gap-x-8{-webkit-column-gap:2rem;column-gap:2rem}.lg\:px-0{padding-left:0;padding-right:0}.lg\:px-16{padding-left:4rem;padding-right:4rem}.lg\:px-8{padding-left:2rem;padding-right:2rem}.lg\:py-32{padding-top:8rem;padding-bottom:8rem}.lg\:pt-4{padding-top:1rem}}@media (min-width: 1280px){.xl\:col-auto{grid-column:auto}} +*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";-webkit-font-feature-settings:normal;font-feature-settings:normal;font-variation-settings:normal}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;-webkit-font-feature-settings:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-webkit-input-placeholder,textarea::-webkit-input-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}select{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");background-position:right .5rem center;background-repeat:no-repeat;background-size:1.5em 1.5em;padding-right:2.5rem;-webkit-print-color-adjust:exact;print-color-adjust:exact}[type=checkbox]:checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e")}[type=radio]:checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='3'/%3e%3c/svg%3e")}[type=checkbox]:indeterminate{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3e%3cpath stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8h8'/%3e%3c/svg%3e");border-color:transparent;background-color:currentColor;background-size:100% 100%;background-position:center;background-repeat:no-repeat}[type=text],input:where(:not([type])),[type=email],[type=url],[type=password],[type=number],[type=date],[type=datetime-local],[type=month],[type=search],[type=tel],[type=time],[type=week],[multiple],textarea,select{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;border-color:#6b7280;border-width:1px;border-radius:0;padding:.5rem .75rem;font-size:1rem;line-height:1.5rem;--tw-shadow: 0 0 #0000}[type=text]:focus,input:where(:not([type])):focus,[type=email]:focus,[type=url]:focus,[type=password]:focus,[type=number]:focus,[type=date]:focus,[type=datetime-local]:focus,[type=month]:focus,[type=search]:focus,[type=tel]:focus,[type=time]:focus,[type=week]:focus,[multiple]:focus,textarea:focus,select:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-inset: var(--tw-empty, );--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: #2563eb;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);border-color:#2563eb}input::-webkit-input-placeholder,textarea::-webkit-input-placeholder{color:#6b7280;opacity:1}input::placeholder,textarea::placeholder{color:#6b7280;opacity:1}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-date-and-time-value{min-height:1.5em;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit,::-webkit-datetime-edit-year-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-minute-field,::-webkit-datetime-edit-second-field,::-webkit-datetime-edit-millisecond-field,::-webkit-datetime-edit-meridiem-field{padding-top:0;padding-bottom:0}select{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");background-position:right .5rem center;background-repeat:no-repeat;background-size:1.5em 1.5em;padding-right:2.5rem;-webkit-print-color-adjust:exact;print-color-adjust:exact}[multiple],[size]:where(select:not([size="1"])){background-image:initial;background-position:initial;background-repeat:unset;background-size:initial;padding-right:.75rem;-webkit-print-color-adjust:unset;print-color-adjust:unset}[type=checkbox],[type=radio]{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0;-webkit-print-color-adjust:exact;print-color-adjust:exact;display:inline-block;vertical-align:middle;background-origin:border-box;-webkit-user-select:none;user-select:none;flex-shrink:0;height:1rem;width:1rem;color:#2563eb;background-color:#fff;border-color:#6b7280;border-width:1px;--tw-shadow: 0 0 #0000}[type=checkbox]{border-radius:0}[type=radio]{border-radius:100%}[type=checkbox]:focus,[type=radio]:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-inset: var(--tw-empty, );--tw-ring-offset-width: 2px;--tw-ring-offset-color: #fff;--tw-ring-color: #2563eb;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}[type=checkbox]:checked,[type=radio]:checked{border-color:transparent;background-color:currentColor;background-size:100% 100%;background-position:center;background-repeat:no-repeat}[type=checkbox]:checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e")}[type=radio]:checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='3'/%3e%3c/svg%3e")}[type=checkbox]:checked:hover,[type=checkbox]:checked:focus,[type=radio]:checked:hover,[type=radio]:checked:focus{border-color:transparent;background-color:currentColor}[type=checkbox]:indeterminate{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3e%3cpath stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8h8'/%3e%3c/svg%3e");border-color:transparent;background-color:currentColor;background-size:100% 100%;background-position:center;background-repeat:no-repeat}[type=checkbox]:indeterminate:hover,[type=checkbox]:indeterminate:focus{border-color:transparent;background-color:currentColor}[type=file]{background:unset;border-color:inherit;border-width:0;border-radius:0;padding:0;font-size:unset;line-height:inherit}[type=file]:focus{outline:1px solid ButtonText;outline:1px auto -webkit-focus-ring-color}*,: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: }::-webkit-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: }::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: }.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.pointer-events-none{pointer-events:none}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:-webkit-sticky;position:sticky}.-inset-y-px{top:-1px;bottom:-1px}.inset-y-0{top:0;bottom:0}.bottom-2{bottom:.5rem}.bottom-2\.5{bottom:.625rem}.left-0{left:0}.right-2{right:.5rem}.right-2\.5{right:.625rem}.top-0{top:0}.isolate{isolation:isolate}.-z-10{z-index:-10}.z-0{z-index:0}.z-50{z-index:50}.mx-8{margin-left:2rem;margin-right:2rem}.mx-auto{margin-left:auto;margin-right:auto}.my-2{margin-top:.5rem;margin-bottom:.5rem}.-mr-2{margin-right:-.5rem}.-mt-8{margin-top:-2rem}.mb-1{margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.ml-3{margin-left:.75rem}.ml-4{margin-left:1rem}.ml-40{margin-left:10rem}.ml-8{margin-left:2rem}.mr-2{margin-right:.5rem}.mt-1{margin-top:.25rem}.mt-10{margin-top:2.5rem}.mt-20{margin-top:5rem}.mt-4{margin-top:1rem}.mt-6{margin-top:1.5rem}.mt-8{margin-top:2rem}.block{display:block}.inline-block{display:inline-block}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.hidden{display:none}.h-16{height:4rem}.h-4{height:1rem}.h-6{height:1.5rem}.h-8{height:2rem}.h-full{height:100%}.h-screen{height:100vh}.min-h-\[44px\]{min-height:44px}.min-h-full{min-height:100%}.w-1\/2{width:50%}.w-4{width:1rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-8{width:2rem}.w-\[200\%\]{width:200%}.w-full{width:100%}.max-w-2xl{max-width:42rem}.max-w-7xl{max-width:80rem}.max-w-full{max-width:100%}.max-w-lg{max-width:32rem}.max-w-md{max-width:28rem}.flex-1{flex:1 1 0%}.flex-none{flex:none}.flex-shrink-0,.shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}.transform{-webkit-transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));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))}@-webkit-keyframes pulse{50%{opacity:.5}}@keyframes pulse{50%{opacity:.5}}.animate-pulse{-webkit-animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite;animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}.cursor-pointer{cursor:pointer}.list-disc{list-style-type:disc}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.items-center{align-items:center}.items-baseline{align-items:baseline}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-8{gap:2rem}.gap-x-2{-webkit-column-gap:.5rem;column-gap:.5rem}.gap-x-3{-webkit-column-gap:.75rem;column-gap:.75rem}.gap-x-6{-webkit-column-gap:1.5rem;column-gap:1.5rem}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.overflow-x-hidden{overflow-x:hidden}.rounded-3xl{border-radius:1.5rem}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.border{border-width:1px}.border-b-2{border-bottom-width:2px}.border-l-4{border-left-width:4px}.border-t{border-top-width:1px}.border-gray-200{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity))}.border-gray-300{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity))}.border-indigo-300{--tw-border-opacity: 1;border-color:rgb(165 180 252 / var(--tw-border-opacity))}.border-transparent{border-color:transparent}.border-x-captn-light-cream{--tw-border-opacity: 1;border-left-color:rgb(234 228 217 / var(--tw-border-opacity));border-right-color:rgb(234 228 217 / var(--tw-border-opacity))}.bg-captn-cta-green{--tw-bg-opacity: 1;background-color:rgb(13 163 127 / var(--tw-bg-opacity))}.bg-captn-cta-red{--tw-bg-opacity: 1;background-color:rgb(229 115 115 / var(--tw-bg-opacity))}.bg-captn-dark-blue{--tw-bg-opacity: 1;background-color:rgb(0 56 81 / var(--tw-bg-opacity))}.bg-captn-light-blue{--tw-bg-opacity: 1;background-color:rgb(111 170 188 / var(--tw-bg-opacity))}.bg-captn-light-cream{--tw-bg-opacity: 1;background-color:rgb(234 228 217 / var(--tw-bg-opacity))}.bg-indigo-50{--tw-bg-opacity: 1;background-color:rgb(238 242 255 / var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-yellow-400{--tw-bg-opacity: 1;background-color:rgb(250 204 21 / var(--tw-bg-opacity))}.bg-yellow-500{--tw-bg-opacity: 1;background-color:rgb(234 179 8 / var(--tw-bg-opacity))}.p-2{padding:.5rem}.p-4{padding:1rem}.p-8{padding:2rem}.px-0{padding-left:0;padding-right:0}.px-1{padding-left:.25rem;padding-right:.25rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-3\.5{padding-left:.875rem;padding-right:.875rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-2\.5{padding-top:.625rem;padding-bottom:.625rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-5{padding-top:1.25rem;padding-bottom:1.25rem}.py-8{padding-top:2rem;padding-bottom:2rem}.pb-24{padding-bottom:6rem}.pb-3{padding-bottom:.75rem}.pl-10{padding-left:2.5rem}.pl-3{padding-left:.75rem}.pl-5{padding-left:1.25rem}.pr-2{padding-right:.5rem}.pr-4{padding-right:1rem}.pt-1{padding-top:.25rem}.pt-10{padding-top:2.5rem}.pt-2{padding-top:.5rem}.pt-8{padding-top:2rem}.text-center{text-align:center}.text-2xl{font-size:1.5rem;line-height:2rem}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-5xl{font-size:3rem;line-height:1}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.leading-6{line-height:1.5rem}.leading-7{line-height:1.75rem}.leading-8{line-height:2rem}.tracking-tight{letter-spacing:-.025em}.text-black{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity))}.text-captn-dark-blue{--tw-text-opacity: 1;color:rgb(0 56 81 / var(--tw-text-opacity))}.text-captn-light-cream{--tw-text-opacity: 1;color:rgb(234 228 217 / var(--tw-text-opacity))}.text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.text-gray-600{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}.text-gray-800{--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity))}.text-gray-900{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}.text-indigo-500{--tw-text-opacity: 1;color:rgb(99 102 241 / var(--tw-text-opacity))}.text-indigo-600{--tw-text-opacity: 1;color:rgb(79 70 229 / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.underline{text-decoration-line:underline}.opacity-70{opacity:.7}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.ring-1{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-inset{--tw-ring-inset: inset}.ring-gray-900\/10{--tw-ring-color: rgb(17 24 39 / .1)}.ring-white{--tw-ring-opacity: 1;--tw-ring-color: rgb(255 255 255 / var(--tw-ring-opacity))}.filter{-webkit-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);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-500{transition-duration:.5s}.\[clip-path\:inset\(0\)\]{-webkit-clip-path:inset(0);clip-path:inset(0)}@font-face{font-family:Panton-SemiBold;src:url(/fonts/47a8ea40a6adb66d377bd4931fa3e394.eot);src:url(/fonts/47a8ea40a6adb66d377bd4931fa3e394.eot?#iefix) format("embedded-opentype"),url(/fonts/47a8ea40a6adb66d377bd4931fa3e394.woff2) format("woff2"),url(/fonts/47a8ea40a6adb66d377bd4931fa3e394.woff) format("woff"),url(/fonts/47a8ea40a6adb66d377bd4931fa3e394.ttf) format("truetype"),url(/fonts/47a8ea40a6adb66d377bd4931fa3e394.svg#Panton-SemiBold) format("svg")}body{margin:0;font-family:Panton-SemiBold;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}code{font-family:source-code-pro,Menlo,Monaco,Consolas,Courier New,monospace}a{color:rgb(79 70 229 / var(--tw-text-opacity))}a:hover{color:rgb(99 102 241 / var(--tw-text-opacity))}.hover\:border-gray-300:hover{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity))}.hover\:bg-captn-cta-green-hover:hover{--tw-bg-opacity: 1;background-color:rgb(6 109 85 / var(--tw-bg-opacity))}.hover\:bg-captn-cta-red-hover:hover{--tw-bg-opacity: 1;background-color:rgb(239 83 80 / var(--tw-bg-opacity))}.hover\:bg-gray-100:hover{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.hover\:bg-gray-50:hover{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity))}.hover\:bg-yellow-400:hover{--tw-bg-opacity: 1;background-color:rgb(250 204 21 / var(--tw-bg-opacity))}.hover\:bg-yellow-500:hover{--tw-bg-opacity: 1;background-color:rgb(234 179 8 / var(--tw-bg-opacity))}.hover\:bg-yellow-600:hover{--tw-bg-opacity: 1;background-color:rgb(202 138 4 / var(--tw-bg-opacity))}.hover\:text-black\/70:hover{color:#000000b3}.hover\:text-gray-500:hover{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.hover\:text-gray-700:hover{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.hover\:text-gray-800:hover{--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity))}.hover\:text-indigo-500:hover{--tw-text-opacity: 1;color:rgb(99 102 241 / var(--tw-text-opacity))}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-4:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-inset:focus{--tw-ring-inset: inset}.focus\:ring-indigo-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(165 180 252 / var(--tw-ring-opacity))}.focus\:ring-indigo-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(99 102 241 / var(--tw-ring-opacity))}.focus\:ring-offset-2:focus{--tw-ring-offset-width: 2px}.focus-visible\:outline:focus-visible{outline-style:solid}.focus-visible\:outline-2:focus-visible{outline-width:2px}.focus-visible\:outline-offset-2:focus-visible{outline-offset:2px}.focus-visible\:outline-indigo-500:focus-visible{outline-color:#6366f1}.focus-visible\:outline-yellow-600:focus-visible{outline-color:#ca8a04}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-25:disabled{opacity:.25}@media (prefers-color-scheme: dark){.dark\:border-gray-600{--tw-border-opacity: 1;border-color:rgb(75 85 99 / var(--tw-border-opacity))}.dark\:border-white\/20{border-color:#fff3}.dark\:bg-captn-cta-green{--tw-bg-opacity: 1;background-color:rgb(13 163 127 / var(--tw-bg-opacity))}.dark\:bg-captn-dark-blue{--tw-bg-opacity: 1;background-color:rgb(0 56 81 / var(--tw-bg-opacity))}.dark\:bg-gray-800{--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}.dark\:text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.dark\:text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.dark\:placeholder-gray-400::-webkit-input-placeholder{--tw-placeholder-opacity: 1;color:rgb(156 163 175 / var(--tw-placeholder-opacity))}.dark\:placeholder-gray-400::placeholder{--tw-placeholder-opacity: 1;color:rgb(156 163 175 / var(--tw-placeholder-opacity))}.dark\:hover\:bg-captn-cta-green-hover:hover{--tw-bg-opacity: 1;background-color:rgb(6 109 85 / var(--tw-bg-opacity))}.dark\:hover\:bg-gray-700:hover{--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity))}}@media (min-width: 640px){.sm\:col-span-1{grid-column:span 1 / span 1}.sm\:col-span-2{grid-column:span 2 / span 2}.sm\:mx-auto{margin-left:auto;margin-right:auto}.sm\:ml-6{margin-left:1.5rem}.sm\:mt-0{margin-top:0}.sm\:mt-24{margin-top:6rem}.sm\:flex{display:flex}.sm\:grid{display:grid}.sm\:hidden{display:none}.sm\:w-full{width:100%}.sm\:max-w-md{max-width:28rem}.sm\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.sm\:gap-4{gap:1rem}.sm\:space-x-8>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(2rem * var(--tw-space-x-reverse));margin-left:calc(2rem * calc(1 - var(--tw-space-x-reverse)))}.sm\:divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse: 0;border-top-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(1px * var(--tw-divide-y-reverse))}.sm\:divide-gray-200>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(229 231 235 / var(--tw-divide-opacity))}.sm\:rounded-lg{border-radius:.5rem}.sm\:p-0{padding:0}.sm\:p-10{padding:2.5rem}.sm\:px-10{padding-left:2.5rem;padding-right:2.5rem}.sm\:px-6{padding-left:1.5rem;padding-right:1.5rem}.sm\:py-5{padding-top:1.25rem;padding-bottom:1.25rem}.sm\:pb-32{padding-bottom:8rem}.sm\:pt-16{padding-top:4rem}.sm\:text-6xl{font-size:3.75rem;line-height:1}}@media (min-width: 768px){.md\:mx-auto{margin-left:auto;margin-right:auto}.md\:w-\[calc\(100\%-\.5rem\)\]{width:calc(100% - .5rem)}.md\:max-w-2xl{max-width:42rem}.md\:rounded-3xl{border-radius:1.5rem}.md\:border-t-0{border-top-width:0px}.md\:border-transparent{border-color:transparent}.md\:\!bg-transparent{background-color:transparent!important}.md\:pl-16{padding-left:4rem}.md\:pl-2{padding-left:.5rem}.md\:pr-0{padding-right:0}.md\:pt-0{padding-top:0}.md\:\[clip-path\:inset\(0_round_theme\(borderRadius\.3xl\)\)\]{-webkit-clip-path:inset(0 round 1.5rem);clip-path:inset(0 round 1.5rem)}@media (prefers-color-scheme: dark){.md\:dark\:border-transparent{border-color:transparent}}}@media (min-width: 1024px){.lg\:m-8{margin:2rem}.lg\:mx-0{margin-left:0;margin-right:0}.lg\:mt-0{margin-top:0}.lg\:grid{display:grid}.lg\:w-screen{width:100vw}.lg\:max-w-4xl{max-width:56rem}.lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.lg\:gap-x-8{-webkit-column-gap:2rem;column-gap:2rem}.lg\:px-0{padding-left:0;padding-right:0}.lg\:px-16{padding-left:4rem;padding-right:4rem}.lg\:px-8{padding-left:2rem;padding-right:2rem}.lg\:py-32{padding-top:8rem;padding-bottom:8rem}.lg\:pt-4{padding-top:1rem}}@media (min-width: 1280px){.xl\:col-auto{grid-column:auto}} diff --git a/assets/index-1548f9fe.js b/assets/index-3a319c6a.js similarity index 97% rename from assets/index-1548f9fe.js rename to assets/index-3a319c6a.js index 6320bbe..980d3e2 100644 --- a/assets/index-1548f9fe.js +++ b/assets/index-3a319c6a.js @@ -66,4 +66,4 @@ Error generating stack: `+o.message+` `).forEach(function(s){i=s.indexOf(":"),n=s.substring(0,i).trim().toLowerCase(),r=s.substring(i+1).trim(),!(!n||t[n]&&XE[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},$h=Symbol("internals");function li(e){return e&&String(e).trim().toLowerCase()}function Jo(e){return e===!1||e==null?e:T.isArray(e)?e.map(Jo):String(e)}function ZE(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const ek=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function ga(e,t,n,r,i){if(T.isFunction(r))return r.call(this,t,n);if(i&&(t=n),!!T.isString(t)){if(T.isString(r))return t.indexOf(r)!==-1;if(T.isRegExp(r))return r.test(t)}}function tk(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function nk(e,t){const n=T.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(i,o,s){return this[r].call(this,t,i,o,s)},configurable:!0})})}class Tl{constructor(t){t&&this.set(t)}set(t,n,r){const i=this;function o(l,a,u){const c=li(a);if(!c)throw new Error("header name must be a non-empty string");const d=T.findKey(i,c);(!d||i[d]===void 0||u===!0||u===void 0&&i[d]!==!1)&&(i[d||a]=Jo(l))}const s=(l,a)=>T.forEach(l,(u,c)=>o(u,c,a));return T.isPlainObject(t)||t instanceof this.constructor?s(t,n):T.isString(t)&&(t=t.trim())&&!ek(t)?s(JE(t),n):t!=null&&o(n,t,r),this}get(t,n){if(t=li(t),t){const r=T.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return ZE(i);if(T.isFunction(n))return n.call(this,i,r);if(T.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=li(t),t){const r=T.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||ga(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let i=!1;function o(s){if(s=li(s),s){const l=T.findKey(r,s);l&&(!n||ga(r,r[l],l,n))&&(delete r[l],i=!0)}}return T.isArray(t)?t.forEach(o):o(t),i}clear(t){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const o=n[r];(!t||ga(this,this[o],o,t,!0))&&(delete this[o],i=!0)}return i}normalize(t){const n=this,r={};return T.forEach(this,(i,o)=>{const s=T.findKey(r,o);if(s){n[s]=Jo(i),delete n[o];return}const l=t?tk(o):String(o).trim();l!==o&&delete n[o],n[l]=Jo(i),r[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return T.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=t&&T.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(i=>r.set(i)),r}static accessor(t){const r=(this[$h]=this[$h]={accessors:{}}).accessors,i=this.prototype;function o(s){const l=li(s);r[l]||(nk(i,s),r[l]=!0)}return T.isArray(t)?t.forEach(o):o(t),this}}Tl.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);T.reduceDescriptors(Tl.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});T.freezeMethods(Tl);const Yt=Tl;function va(e,t){const n=this||vf,r=t||n,i=Yt.from(r.headers);let o=r.data;return T.forEach(e,function(l){o=l.call(n,o,i.normalize(),t?t.status:void 0)}),i.normalize(),o}function Ig(e){return!!(e&&e.__CANCEL__)}function lo(e,t,n){Z.call(this,e??"canceled",Z.ERR_CANCELED,t,n),this.name="CanceledError"}T.inherits(lo,Z,{__CANCEL__:!0});function rk(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new Z("Request failed with status code "+n.status,[Z.ERR_BAD_REQUEST,Z.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const ik=Lt.isStandardBrowserEnv?function(){return{write:function(n,r,i,o,s,l){const a=[];a.push(n+"="+encodeURIComponent(r)),T.isNumber(i)&&a.push("expires="+new Date(i).toGMTString()),T.isString(o)&&a.push("path="+o),T.isString(s)&&a.push("domain="+s),l===!0&&a.push("secure"),document.cookie=a.join("; ")},read:function(n){const r=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function ok(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function sk(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function Fg(e,t){return e&&!ok(t)?sk(e,t):t}const lk=Lt.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function i(o){let s=o;return t&&(n.setAttribute("href",s),s=n.href),n.setAttribute("href",s),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=i(window.location.href),function(s){const l=T.isString(s)?i(s):s;return l.protocol===r.protocol&&l.host===r.host}}():function(){return function(){return!0}}();function ak(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function uk(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,o=0,s;return t=t!==void 0?t:1e3,function(a){const u=Date.now(),c=r[o];s||(s=u),n[i]=a,r[i]=u;let d=o,f=0;for(;d!==i;)f+=n[d++],d=d%e;if(i=(i+1)%e,i===o&&(o=(o+1)%e),u-s{const o=i.loaded,s=i.lengthComputable?i.total:void 0,l=o-n,a=r(l),u=o<=s;n=o;const c={loaded:o,total:s,progress:s?o/s:void 0,bytes:l,rate:a||void 0,estimated:a&&s&&u?(s-o)/a:void 0,event:i};c[t?"download":"upload"]=!0,e(c)}}const ck=typeof XMLHttpRequest<"u",fk=ck&&function(e){return new Promise(function(n,r){let i=e.data;const o=Yt.from(e.headers).normalize(),s=e.responseType;let l;function a(){e.cancelToken&&e.cancelToken.unsubscribe(l),e.signal&&e.signal.removeEventListener("abort",l)}let u;T.isFormData(i)&&(Lt.isStandardBrowserEnv||Lt.isStandardBrowserWebWorkerEnv?o.setContentType(!1):o.getContentType(/^\s*multipart\/form-data/)?T.isString(u=o.getContentType())&&o.setContentType(u.replace(/^\s*(multipart\/form-data);+/,"$1")):o.setContentType("multipart/form-data"));let c=new XMLHttpRequest;if(e.auth){const m=e.auth.username||"",w=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.set("Authorization","Basic "+btoa(m+":"+w))}const d=Fg(e.baseURL,e.url);c.open(e.method.toUpperCase(),Ag(d,e.params,e.paramsSerializer),!0),c.timeout=e.timeout;function f(){if(!c)return;const m=Yt.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders()),k={data:!s||s==="text"||s==="json"?c.responseText:c.response,status:c.status,statusText:c.statusText,headers:m,config:e,request:c};rk(function(h){n(h),a()},function(h){r(h),a()},k),c=null}if("onloadend"in c?c.onloadend=f:c.onreadystatechange=function(){!c||c.readyState!==4||c.status===0&&!(c.responseURL&&c.responseURL.indexOf("file:")===0)||setTimeout(f)},c.onabort=function(){c&&(r(new Z("Request aborted",Z.ECONNABORTED,e,c)),c=null)},c.onerror=function(){r(new Z("Network Error",Z.ERR_NETWORK,e,c)),c=null},c.ontimeout=function(){let w=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const k=e.transitional||$g;e.timeoutErrorMessage&&(w=e.timeoutErrorMessage),r(new Z(w,k.clarifyTimeoutError?Z.ETIMEDOUT:Z.ECONNABORTED,e,c)),c=null},Lt.isStandardBrowserEnv){const m=lk(d)&&e.xsrfCookieName&&ik.read(e.xsrfCookieName);m&&o.set(e.xsrfHeaderName,m)}i===void 0&&o.setContentType(null),"setRequestHeader"in c&&T.forEach(o.toJSON(),function(w,k){c.setRequestHeader(k,w)}),T.isUndefined(e.withCredentials)||(c.withCredentials=!!e.withCredentials),s&&s!=="json"&&(c.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&c.addEventListener("progress",Lh(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&c.upload&&c.upload.addEventListener("progress",Lh(e.onUploadProgress)),(e.cancelToken||e.signal)&&(l=m=>{c&&(r(!m||m.type?new lo(null,e,c):m),c.abort(),c=null)},e.cancelToken&&e.cancelToken.subscribe(l),e.signal&&(e.signal.aborted?l():e.signal.addEventListener("abort",l)));const y=ak(d);if(y&&Lt.protocols.indexOf(y)===-1){r(new Z("Unsupported protocol "+y+":",Z.ERR_BAD_REQUEST,e));return}c.send(i||null)})},Bu={http:FE,xhr:fk};T.forEach(Bu,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Ih=e=>`- ${e}`,dk=e=>T.isFunction(e)||e===null||e===!1,Dg={getAdapter:e=>{e=T.isArray(e)?e:[e];const{length:t}=e;let n,r;const i={};for(let o=0;o`adapter ${l} `+(a===!1?"is not supported by the environment":"is not available in the build"));let s=t?o.length>1?`since : `+o.map(Ih).join(` -`):" "+Ih(o[0]):"as no adapter specified";throw new Z("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return r},adapters:Bu};function wa(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new lo(null,e)}function Fh(e){return wa(e),e.headers=Yt.from(e.headers),e.data=va.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Dg.getAdapter(e.adapter||vf.adapter)(e).then(function(r){return wa(e),r.data=va.call(e,e.transformResponse,r),r.headers=Yt.from(r.headers),r},function(r){return Ig(r)||(wa(e),r&&r.response&&(r.response.data=va.call(e,e.transformResponse,r.response),r.response.headers=Yt.from(r.response.headers))),Promise.reject(r)})}const Dh=e=>e instanceof Yt?e.toJSON():e;function zr(e,t){t=t||{};const n={};function r(u,c,d){return T.isPlainObject(u)&&T.isPlainObject(c)?T.merge.call({caseless:d},u,c):T.isPlainObject(c)?T.merge({},c):T.isArray(c)?c.slice():c}function i(u,c,d){if(T.isUndefined(c)){if(!T.isUndefined(u))return r(void 0,u,d)}else return r(u,c,d)}function o(u,c){if(!T.isUndefined(c))return r(void 0,c)}function s(u,c){if(T.isUndefined(c)){if(!T.isUndefined(u))return r(void 0,u)}else return r(void 0,c)}function l(u,c,d){if(d in t)return r(u,c);if(d in e)return r(void 0,u)}const a={url:o,method:o,data:o,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:l,headers:(u,c)=>i(Dh(u),Dh(c),!0)};return T.forEach(Object.keys(Object.assign({},e,t)),function(c){const d=a[c]||i,f=d(e[c],t[c],c);T.isUndefined(f)&&d!==l||(n[c]=f)}),n}const Mg="1.6.0",wf={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{wf[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Mh={};wf.transitional=function(t,n,r){function i(o,s){return"[Axios v"+Mg+"] Transitional option '"+o+"'"+s+(r?". "+r:"")}return(o,s,l)=>{if(t===!1)throw new Z(i(s," has been removed"+(n?" in "+n:"")),Z.ERR_DEPRECATED);return n&&!Mh[s]&&(Mh[s]=!0,console.warn(i(s," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,s,l):!0}};function hk(e,t,n){if(typeof e!="object")throw new Z("options must be an object",Z.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const o=r[i],s=t[o];if(s){const l=e[o],a=l===void 0||s(l,o,e);if(a!==!0)throw new Z("option "+o+" must be "+a,Z.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Z("Unknown option "+o,Z.ERR_BAD_OPTION)}}const Vu={assertOptions:hk,validators:wf},sn=Vu.validators;class _s{constructor(t){this.defaults=t,this.interceptors={request:new Ah,response:new Ah}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=zr(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:o}=n;r!==void 0&&Vu.assertOptions(r,{silentJSONParsing:sn.transitional(sn.boolean),forcedJSONParsing:sn.transitional(sn.boolean),clarifyTimeoutError:sn.transitional(sn.boolean)},!1),i!=null&&(T.isFunction(i)?n.paramsSerializer={serialize:i}:Vu.assertOptions(i,{encode:sn.function,serialize:sn.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s=o&&T.merge(o.common,o[n.method]);o&&T.forEach(["delete","get","head","post","put","patch","common"],m=>{delete o[m]}),n.headers=Yt.concat(s,o);const l=[];let a=!0;this.interceptors.request.forEach(function(w){typeof w.runWhen=="function"&&w.runWhen(n)===!1||(a=a&&w.synchronous,l.unshift(w.fulfilled,w.rejected))});const u=[];this.interceptors.response.forEach(function(w){u.push(w.fulfilled,w.rejected)});let c,d=0,f;if(!a){const m=[Fh.bind(this),void 0];for(m.unshift.apply(m,l),m.push.apply(m,u),f=m.length,c=Promise.resolve(n);d{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](i);r._listeners=null}),this.promise.then=i=>{let o;const s=new Promise(l=>{r.subscribe(l),o=l}).then(i);return s.cancel=function(){r.unsubscribe(o)},s},t(function(o,s,l){r.reason||(r.reason=new lo(o,s,l),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new xf(function(i){t=i}),cancel:t}}}const pk=xf;function mk(e){return function(n){return e.apply(null,n)}}function yk(e){return T.isObject(e)&&e.isAxiosError===!0}const Hu={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Hu).forEach(([e,t])=>{Hu[t]=e});const gk=Hu;function zg(e){const t=new Zo(e),n=Sg(Zo.prototype.request,t);return T.extend(n,Zo.prototype,t,{allOwnKeys:!0}),T.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return zg(zr(e,i))},n}const Oe=zg(vf);Oe.Axios=Zo;Oe.CanceledError=lo;Oe.CancelToken=pk;Oe.isCancel=Ig;Oe.VERSION=Mg;Oe.toFormData=Ol;Oe.AxiosError=Z;Oe.Cancel=Oe.CanceledError;Oe.all=function(t){return Promise.all(t)};Oe.spread=mk;Oe.isAxiosError=yk;Oe.mergeConfig=zr;Oe.AxiosHeaders=Yt;Oe.formToJSON=e=>Lg(T.isHTMLForm(e)?new FormData(e):e);Oe.getAdapter=Dg.getAdapter;Oe.HttpStatusCode=gk;Oe.default=Oe;const vk=Oe;function wk(e){return e==null?void 0:e.replace(/\/$/,"")}const xk=wk("https://backend.captn.ai")||"http://localhost:3001",Sf={apiUrl:xk};function Sk(e){function t(n){return`${e}:${n}`}return{getPrefixedKey:t,set(n,r){$o(),localStorage.setItem(t(n),JSON.stringify(r))},get(n){$o();const r=localStorage.getItem(t(n));try{return r?JSON.parse(r):void 0}catch{return}},remove(n){$o(),localStorage.removeItem(t(n))},clear(){$o(),Object.keys(localStorage).forEach(n=>{n.startsWith(e)&&localStorage.removeItem(n)})}}}const ao=Sk("wasp");function $o(){if(!window.localStorage)throw new Error("Local storage is not available.")}function Ek(e){return{all:e=e||new Map,on:function(t,n){var r=e.get(t);r?r.push(n):e.set(t,[n])},off:function(t,n){var r=e.get(t);r&&(n?r.splice(r.indexOf(n)>>>0,1):e.set(t,[]))},emit:function(t,n){var r=e.get(t);r&&r.slice().map(function(i){i(n)}),(r=e.get("*"))&&r.slice().map(function(i){i(t,n)})}}}const Xi=Ek(),Ut=vk.create({baseURL:Sf.apiUrl}),bl="authToken";let er=ao.get(bl);function kk(e){er=e,ao.set(bl,e),Xi.emit("authToken.set")}function Ck(){er=void 0,ao.remove(bl),Xi.emit("authToken.clear")}function Pk(){er=void 0,ao.clear(),Xi.emit("authToken.clear")}Ut.interceptors.request.use(e=>(er&&(e.headers.Authorization=`Bearer ${er}`),e));Ut.interceptors.response.use(void 0,e=>{var t;return((t=e.response)==null?void 0:t.status)===401&&Ck(),Promise.reject(e)});window.addEventListener("storage",e=>{e.key===ao.getPrefixedKey(bl)&&(e.newValue?(er=e.newValue,Xi.emit("authToken.set")):(er=void 0,Xi.emit("authToken.clear")))});function rr(e){var t;if(e!=null&&e.response){const n=(t=e.response)==null?void 0:t.data,r=e.response.status;throw new Rk(r,(n==null?void 0:n.message)??e.message,n)}else throw e}class Rk extends Error{constructor(n,r,i){super(r);Al(this,"statusCode");Al(this,"data");this.statusCode=n,this.data=i}}var Ef=(e=>(e.Get="GET",e.Post="POST",e.Put="PUT",e.Delete="DELETE",e))(Ef||{});async function Ug(e,t){try{const n=eE(t),r=await Ut.post(e.path,n);return wg(r.data)}catch(n){rr(n)}}function Bg(e){return{method:Ef.Post,path:`/${e}`}}function Ok(e){const t=new Map;function n(s){return t.get(s)||[]}function r(s,l){const a=e(s),u=n(a);t.set(a,[...u,{queryKey:s,updateQuery:l}])}function i(s){const l=e(s);return n(l).map(({updateQuery:a})=>a)}function o(s){const l=e(s),a=n(l).filter(({queryKey:u})=>u!==s);a.length>0?t.set(l,a):t.delete(l)}return{add:r,remove:o,getUpdateHandlers:i}}const Qu=new Map,kf=Ok(pn);function Tk(e,t){for(const n of t){let r=Qu.get(n);r||(r=new Set,Qu.set(n,r)),r.add(e)}}function bk(e){e.forEach(({queryKey:t,updateQuery:n})=>kf.add(t,n))}async function Nk(e,t){t.forEach(({queryKey:n})=>kf.remove(n)),await jk(e)}function _k(e){return kf.getUpdateHandlers(e)}async function Vg(){const e=await pf;e.resetQueries(),e.removeQueries()}async function jk(e){const t=await pf;$k(e).forEach(r=>t.invalidateQueries(r))}function Ak(e){return Array.from(Qu.get(e)||[])}function $k(e){return Array.from(new Set(e.flatMap(Ak)))}function Hg(e,t){const n=Bg(e);async function r(i,o){const s=await Ug(n,o);return _k(i).reduce((l,a)=>a(l),s)}return Qg(r,{relativeQueryPath:e,queryRoute:n,entitiesUsed:t}),r}function Qg(e,{relativeQueryPath:t,queryRoute:n,entitiesUsed:r}){e.queryCacheKey=[t],e.route=n,Tk(e.queryCacheKey,r)}const Lk=Ik();function Cf(e,t){return Mu(Lk,e,t)}function Ik(){const e="auth/me",t={method:Ef.Get,path:`/${e}`};async function n(){var r;try{const i=await Ut.get(t.path);return wg(i.data)}catch(i){if(((r=i.response)==null?void 0:r.status)===401)return null;rr(i)}}return Qg(n,{relativeQueryPath:e,queryRoute:t,entitiesUsed:["User"]}),n}const xa="inline-flex items-center border-b-2 border-indigo-300 px-1 pt-1 text-sm font-medium text-gray-900",Sa="inline-flex items-center border-b-2 border-transparent px-1 pt-1 text-sm font-medium text-gray-500 hover:border-gray-300 hover:text-gray-700",Ea=window.location.pathname;function Fk(){const{data:e}=Cf();return g.jsx($n,{as:"nav",className:"bg-captn-light-cream shadow sticky top-0 z-50 ",children:({open:t})=>g.jsxs(g.Fragment,{children:[g.jsx("div",{className:"mx-auto max-w-7xl px-4 sm:px-6 lg:px-16",children:g.jsxs("div",{className:"flex h-16 justify-between",children:[g.jsxs("div",{className:"flex",children:[g.jsx("div",{className:"flex flex-shrink-0 items-center",children:g.jsx("a",{href:"/",children:g.jsx("img",{className:"h-8 w-8",src:Xy,alt:"My SaaS App"})})}),g.jsxs("div",{className:"hidden sm:ml-6 sm:flex sm:space-x-8",children:[g.jsx("a",{href:"/",className:Ea==="/"?xa:Sa,children:"Home"}),g.jsx("a",{href:"/chat",className:Ea.includes("chat")?xa:Sa,children:"Chat"})]})]}),g.jsx("div",{className:"hidden sm:ml-6 sm:flex sm:space-x-8",children:g.jsxs("a",{href:e?"/account":"/login",className:Ea==="/account"?xa:Sa,children:[g.jsx(xS,{className:"h-6 w-6 mr-2"}),"Account"]})}),g.jsx("div",{className:"-mr-2 flex items-center sm:hidden",children:g.jsxs($n.Button,{className:"inline-flex items-center justify-center rounded-md p-2 text-gray-400 hover:bg-gray-100 hover:text-gray-500 focus:outline-none focus:ring-2 focus:ring-inset focus:ring-indigo-300",children:[g.jsx("span",{className:"sr-only",children:"Open menu"}),t?g.jsx(wS,{className:"block h-6 w-6","aria-hidden":"true"}):g.jsx(gS,{className:"block h-6 w-6","aria-hidden":"true"})]})})]})}),g.jsx($n.Panel,{className:"sm:hidden",children:g.jsxs("div",{className:"space-y-1 pt-2 pb-3",children:[g.jsx($n.Button,{as:"a",href:"/",className:"block border-l-4 border-indigo-300 bg-indigo-50 py-2 pl-3 pr-4 text-base font-medium text-indigo-500",children:"Landing Page"}),g.jsx($n.Button,{as:"a",href:"/pricing",className:"block border-l-4 border-transparent py-2 pl-3 pr-4 text-base font-medium text-gray-500 hover:border-gray-300 hover:bg-gray-50 hover:text-gray-700",children:"Pricing"}),g.jsx($n.Button,{as:"a",href:"/gpt",className:"block border-l-4 border-transparent py-2 pl-3 pr-4 text-base font-medium text-gray-500 hover:border-gray-300 hover:bg-gray-50 hover:text-gray-700",children:"GPT"}),g.jsx($n.Button,{as:"a",href:"/account",className:"block px-4 py-2 text-base font-medium text-gray-500 hover:bg-gray-100 hover:text-gray-800",children:"Account"})]})})]})})}function Dk({children:e}){return g.jsxs("div",{className:"relative flex-col z-0 flex h-screen w-full overflow-hidden",children:[g.jsx(Fk,{}),g.jsx("div",{className:"max-w-full px-0",children:e})]})}const ka=e=>t=>{const{data:n,isError:r,isSuccess:i,isLoading:o}=Cf();return i?n?g.jsx(e,{...t,user:n}):g.jsx(Cx,{to:"/login"}):o?g.jsx("span",{children:"Loading..."}):r?g.jsx("span",{children:"An error ocurred. Please refresh the page."}):g.jsx("span",{children:"An unknown error ocurred. Please refresh the page."})},Mk="/assets/captn-logo-large-8bedc952.png";function zk(){return g.jsx("div",{children:g.jsxs("div",{className:"mx-auto max-w-7xl pt-10 pb-24 sm:pb-32 lg:grid lg:grid-cols-2 lg:gap-x-8 lg:py-32 lg:px-8",children:[g.jsx("div",{className:"px-6 lg:px-0 lg:pt-4",children:g.jsx("div",{className:"mx-auto max-w-2xl",children:g.jsxs("div",{className:"max-w-lg",children:[g.jsx("h1",{className:" text-4xl font-bold tracking-tight text-captn-dark-blue sm:text-6xl",children:"Capt'n AI"}),g.jsx("p",{className:"mt-4 text-lg leading-8 text-captn-dark-blue",children:"Hey 🧙‍♂️! This is a sneak peek at my product's evolving homepage. Get ready for an amazing launch soon!"})]})})}),g.jsx("div",{className:"mt-20 sm:mt-24 lg:mx-0 md:mx-auto md:max-w-2xl lg:w-screen lg:mt-0 ",children:g.jsx("div",{className:"shadow-lg md:rounded-3xl relative isolate overflow-hidden",children:g.jsxs("div",{className:"bg-captn-light-blue [clip-path:inset(0)] md:[clip-path:inset(0_round_theme(borderRadius.3xl))]",children:[g.jsx("div",{className:"absolute -inset-y-px -z-10 ml-40 w-[200%] bg-captn-light-cream ring-1 ring-inset ring-white ","aria-hidden":"true"}),g.jsx("div",{className:"relative px-6 pt-8 sm:pt-16 md:pl-16 md:pr-0",children:g.jsx("img",{src:Mk})})]})})})]})})}var ie="colors",Qe="sizes",U="space",Uk={gap:U,gridGap:U,columnGap:U,gridColumnGap:U,rowGap:U,gridRowGap:U,inset:U,insetBlock:U,insetBlockEnd:U,insetBlockStart:U,insetInline:U,insetInlineEnd:U,insetInlineStart:U,margin:U,marginTop:U,marginRight:U,marginBottom:U,marginLeft:U,marginBlock:U,marginBlockEnd:U,marginBlockStart:U,marginInline:U,marginInlineEnd:U,marginInlineStart:U,padding:U,paddingTop:U,paddingRight:U,paddingBottom:U,paddingLeft:U,paddingBlock:U,paddingBlockEnd:U,paddingBlockStart:U,paddingInline:U,paddingInlineEnd:U,paddingInlineStart:U,top:U,right:U,bottom:U,left:U,scrollMargin:U,scrollMarginTop:U,scrollMarginRight:U,scrollMarginBottom:U,scrollMarginLeft:U,scrollMarginX:U,scrollMarginY:U,scrollMarginBlock:U,scrollMarginBlockEnd:U,scrollMarginBlockStart:U,scrollMarginInline:U,scrollMarginInlineEnd:U,scrollMarginInlineStart:U,scrollPadding:U,scrollPaddingTop:U,scrollPaddingRight:U,scrollPaddingBottom:U,scrollPaddingLeft:U,scrollPaddingX:U,scrollPaddingY:U,scrollPaddingBlock:U,scrollPaddingBlockEnd:U,scrollPaddingBlockStart:U,scrollPaddingInline:U,scrollPaddingInlineEnd:U,scrollPaddingInlineStart:U,fontSize:"fontSizes",background:ie,backgroundColor:ie,backgroundImage:ie,borderImage:ie,border:ie,borderBlock:ie,borderBlockEnd:ie,borderBlockStart:ie,borderBottom:ie,borderBottomColor:ie,borderColor:ie,borderInline:ie,borderInlineEnd:ie,borderInlineStart:ie,borderLeft:ie,borderLeftColor:ie,borderRight:ie,borderRightColor:ie,borderTop:ie,borderTopColor:ie,caretColor:ie,color:ie,columnRuleColor:ie,fill:ie,outline:ie,outlineColor:ie,stroke:ie,textDecorationColor:ie,fontFamily:"fonts",fontWeight:"fontWeights",lineHeight:"lineHeights",letterSpacing:"letterSpacings",blockSize:Qe,minBlockSize:Qe,maxBlockSize:Qe,inlineSize:Qe,minInlineSize:Qe,maxInlineSize:Qe,width:Qe,minWidth:Qe,maxWidth:Qe,height:Qe,minHeight:Qe,maxHeight:Qe,flexBasis:Qe,gridTemplateColumns:Qe,gridTemplateRows:Qe,borderWidth:"borderWidths",borderTopWidth:"borderWidths",borderRightWidth:"borderWidths",borderBottomWidth:"borderWidths",borderLeftWidth:"borderWidths",borderStyle:"borderStyles",borderTopStyle:"borderStyles",borderRightStyle:"borderStyles",borderBottomStyle:"borderStyles",borderLeftStyle:"borderStyles",borderRadius:"radii",borderTopLeftRadius:"radii",borderTopRightRadius:"radii",borderBottomRightRadius:"radii",borderBottomLeftRadius:"radii",boxShadow:"shadows",textShadow:"shadows",transition:"transitions",zIndex:"zIndices"},Bk=(e,t)=>typeof t=="function"?{"()":Function.prototype.toString.call(t)}:t,Gr=()=>{const e=Object.create(null);return(t,n,...r)=>{const i=(o=>JSON.stringify(o,Bk))(t);return i in e?e[i]:e[i]=n(t,...r)}},Wn=Symbol.for("sxs.internal"),Pf=(e,t)=>Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)),zh=e=>{for(const t in e)return!0;return!1},{hasOwnProperty:Vk}=Object.prototype,Wu=e=>e.includes("-")?e:e.replace(/[A-Z]/g,t=>"-"+t.toLowerCase()),Hk=/\s+(?![^()]*\))/,sr=e=>t=>e(...typeof t=="string"?String(t).split(Hk):[t]),Uh={appearance:e=>({WebkitAppearance:e,appearance:e}),backfaceVisibility:e=>({WebkitBackfaceVisibility:e,backfaceVisibility:e}),backdropFilter:e=>({WebkitBackdropFilter:e,backdropFilter:e}),backgroundClip:e=>({WebkitBackgroundClip:e,backgroundClip:e}),boxDecorationBreak:e=>({WebkitBoxDecorationBreak:e,boxDecorationBreak:e}),clipPath:e=>({WebkitClipPath:e,clipPath:e}),content:e=>({content:e.includes('"')||e.includes("'")||/^([A-Za-z]+\([^]*|[^]*-quote|inherit|initial|none|normal|revert|unset)$/.test(e)?e:`"${e}"`}),hyphens:e=>({WebkitHyphens:e,hyphens:e}),maskImage:e=>({WebkitMaskImage:e,maskImage:e}),maskSize:e=>({WebkitMaskSize:e,maskSize:e}),tabSize:e=>({MozTabSize:e,tabSize:e}),textSizeAdjust:e=>({WebkitTextSizeAdjust:e,textSizeAdjust:e}),userSelect:e=>({WebkitUserSelect:e,userSelect:e}),marginBlock:sr((e,t)=>({marginBlockStart:e,marginBlockEnd:t||e})),marginInline:sr((e,t)=>({marginInlineStart:e,marginInlineEnd:t||e})),maxSize:sr((e,t)=>({maxBlockSize:e,maxInlineSize:t||e})),minSize:sr((e,t)=>({minBlockSize:e,minInlineSize:t||e})),paddingBlock:sr((e,t)=>({paddingBlockStart:e,paddingBlockEnd:t||e})),paddingInline:sr((e,t)=>({paddingInlineStart:e,paddingInlineEnd:t||e}))},Ca=/([\d.]+)([^]*)/,Qk=(e,t)=>e.length?e.reduce((n,r)=>(n.push(...t.map(i=>i.includes("&")?i.replace(/&/g,/[ +>|~]/.test(r)&&/&.*&/.test(i)?`:is(${r})`:r):r+" "+i)),n),[]):t,Wk=(e,t)=>e in qk&&typeof t=="string"?t.replace(/^((?:[^]*[^\w-])?)(fit-content|stretch)((?:[^\w-][^]*)?)$/,(n,r,i,o)=>r+(i==="stretch"?`-moz-available${o};${Wu(e)}:${r}-webkit-fill-available`:`-moz-fit-content${o};${Wu(e)}:${r}fit-content`)+o):String(t),qk={blockSize:1,height:1,inlineSize:1,maxBlockSize:1,maxHeight:1,maxInlineSize:1,maxWidth:1,minBlockSize:1,minHeight:1,minInlineSize:1,minWidth:1,width:1},nn=e=>e?e+"-":"",Wg=(e,t,n)=>e.replace(/([+-])?((?:\d+(?:\.\d*)?|\.\d+)(?:[Ee][+-]?\d+)?)?(\$|--)([$\w-]+)/g,(r,i,o,s,l)=>s=="$"==!!o?r:(i||s=="--"?"calc(":"")+"var(--"+(s==="$"?nn(t)+(l.includes("$")?"":nn(n))+l.replace(/\$/g,"-"):l)+")"+(i||s=="--"?"*"+(i||"")+(o||"1")+")":"")),Kk=/\s*,\s*(?![^()]*\))/,Gk=Object.prototype.toString,Er=(e,t,n,r,i)=>{let o,s,l;const a=(u,c,d)=>{let f,y;const m=w=>{for(f in w){const h=f.charCodeAt(0)===64,v=h&&Array.isArray(w[f])?w[f]:[w[f]];for(y of v){const S=/[A-Z]/.test(p=f)?p:p.replace(/-[^]/g,P=>P[1].toUpperCase()),O=typeof y=="object"&&y&&y.toString===Gk&&(!r.utils[S]||!c.length);if(S in r.utils&&!O){const P=r.utils[S];if(P!==s){s=P,m(P(y)),s=null;continue}}else if(S in Uh){const P=Uh[S];if(P!==l){l=P,m(P(y)),l=null;continue}}if(h&&(k=f.slice(1)in r.media?"@media "+r.media[f.slice(1)]:f,f=k.replace(/\(\s*([\w-]+)\s*(=|<|<=|>|>=)\s*([\w-]+)\s*(?:(<|<=|>|>=)\s*([\w-]+)\s*)?\)/g,(P,E,C,F,L,q)=>{const K=Ca.test(E),W=.0625*(K?-1:1),[Y,J]=K?[F,E]:[E,F];return"("+(C[0]==="="?"":C[0]===">"===K?"max-":"min-")+Y+":"+(C[0]!=="="&&C.length===1?J.replace(Ca,(ae,ge,j)=>Number(ge)+W*(C===">"?1:-1)+j):J)+(L?") and ("+(L[0]===">"?"min-":"max-")+Y+":"+(L.length===1?q.replace(Ca,(ae,ge,j)=>Number(ge)+W*(L===">"?-1:1)+j):q):"")+")"})),O){const P=h?d.concat(f):[...d],E=h?[...c]:Qk(c,f.split(Kk));o!==void 0&&i(Bh(...o)),o=void 0,a(y,E,P)}else o===void 0&&(o=[[],c,d]),f=h||f.charCodeAt(0)!==36?f:`--${nn(r.prefix)}${f.slice(1).replace(/\$/g,"-")}`,y=O?y:typeof y=="number"?y&&S in Yk?String(y)+"px":String(y):Wg(Wk(S,y??""),r.prefix,r.themeMap[S]),o[0].push(`${h?`${f} `:`${Wu(f)}:`}${y}`)}}var k,p};m(u),o!==void 0&&i(Bh(...o)),o=void 0};a(e,t,n)},Bh=(e,t,n)=>`${n.map(r=>`${r}{`).join("")}${t.length?`${t.join(",")}{`:""}${e.join(";")}${t.length?"}":""}${Array(n.length?n.length+1:0).join("}")}`,Yk={animationDelay:1,animationDuration:1,backgroundSize:1,blockSize:1,border:1,borderBlock:1,borderBlockEnd:1,borderBlockEndWidth:1,borderBlockStart:1,borderBlockStartWidth:1,borderBlockWidth:1,borderBottom:1,borderBottomLeftRadius:1,borderBottomRightRadius:1,borderBottomWidth:1,borderEndEndRadius:1,borderEndStartRadius:1,borderInlineEnd:1,borderInlineEndWidth:1,borderInlineStart:1,borderInlineStartWidth:1,borderInlineWidth:1,borderLeft:1,borderLeftWidth:1,borderRadius:1,borderRight:1,borderRightWidth:1,borderSpacing:1,borderStartEndRadius:1,borderStartStartRadius:1,borderTop:1,borderTopLeftRadius:1,borderTopRightRadius:1,borderTopWidth:1,borderWidth:1,bottom:1,columnGap:1,columnRule:1,columnRuleWidth:1,columnWidth:1,containIntrinsicSize:1,flexBasis:1,fontSize:1,gap:1,gridAutoColumns:1,gridAutoRows:1,gridTemplateColumns:1,gridTemplateRows:1,height:1,inlineSize:1,inset:1,insetBlock:1,insetBlockEnd:1,insetBlockStart:1,insetInline:1,insetInlineEnd:1,insetInlineStart:1,left:1,letterSpacing:1,margin:1,marginBlock:1,marginBlockEnd:1,marginBlockStart:1,marginBottom:1,marginInline:1,marginInlineEnd:1,marginInlineStart:1,marginLeft:1,marginRight:1,marginTop:1,maxBlockSize:1,maxHeight:1,maxInlineSize:1,maxWidth:1,minBlockSize:1,minHeight:1,minInlineSize:1,minWidth:1,offsetDistance:1,offsetRotate:1,outline:1,outlineOffset:1,outlineWidth:1,overflowClipMargin:1,padding:1,paddingBlock:1,paddingBlockEnd:1,paddingBlockStart:1,paddingBottom:1,paddingInline:1,paddingInlineEnd:1,paddingInlineStart:1,paddingLeft:1,paddingRight:1,paddingTop:1,perspective:1,right:1,rowGap:1,scrollMargin:1,scrollMarginBlock:1,scrollMarginBlockEnd:1,scrollMarginBlockStart:1,scrollMarginBottom:1,scrollMarginInline:1,scrollMarginInlineEnd:1,scrollMarginInlineStart:1,scrollMarginLeft:1,scrollMarginRight:1,scrollMarginTop:1,scrollPadding:1,scrollPaddingBlock:1,scrollPaddingBlockEnd:1,scrollPaddingBlockStart:1,scrollPaddingBottom:1,scrollPaddingInline:1,scrollPaddingInlineEnd:1,scrollPaddingInlineStart:1,scrollPaddingLeft:1,scrollPaddingRight:1,scrollPaddingTop:1,shapeMargin:1,textDecoration:1,textDecorationThickness:1,textIndent:1,textUnderlineOffset:1,top:1,transitionDelay:1,transitionDuration:1,verticalAlign:1,width:1,wordSpacing:1},Vh=e=>String.fromCharCode(e+(e>25?39:97)),qn=e=>(t=>{let n,r="";for(n=Math.abs(t);n>52;n=n/52|0)r=Vh(n%52)+r;return Vh(n%52)+r})(((t,n)=>{let r=n.length;for(;r;)t=33*t^n.charCodeAt(--r);return t})(5381,JSON.stringify(e))>>>0),mi=["themed","global","styled","onevar","resonevar","allvar","inline"],Xk=e=>{if(e.href&&!e.href.startsWith(location.origin))return!1;try{return!!e.cssRules}catch{return!1}},Jk=e=>{let t;const n=()=>{const{cssRules:i}=t.sheet;return[].map.call(i,(o,s)=>{const{cssText:l}=o;let a="";if(l.startsWith("--sxs"))return"";if(i[s-1]&&(a=i[s-1].cssText).startsWith("--sxs")){if(!o.cssRules.length)return"";for(const u in t.rules)if(t.rules[u].group===o)return`--sxs{--sxs:${[...t.rules[u].cache].join(" ")}}${l}`;return o.cssRules.length?`${a}${l}`:""}return l}).join("")},r=()=>{if(t){const{rules:l,sheet:a}=t;if(!a.deleteRule){for(;Object(Object(a.cssRules)[0]).type===3;)a.cssRules.splice(0,1);a.cssRules=[]}for(const u in l)delete l[u]}const i=Object(e).styleSheets||[];for(const l of i)if(Xk(l)){for(let a=0,u=l.cssRules;u[a];++a){const c=Object(u[a]);if(c.type!==1)continue;const d=Object(u[a+1]);if(d.type!==4)continue;++a;const{cssText:f}=c;if(!f.startsWith("--sxs"))continue;const y=f.slice(14,-3).trim().split(/\s+/),m=mi[y[0]];m&&(t||(t={sheet:l,reset:r,rules:{},toString:n}),t.rules[m]={group:d,index:a,cache:new Set(y)})}if(t)break}if(!t){const l=(a,u)=>({type:u,cssRules:[],insertRule(c,d){this.cssRules.splice(d,0,l(c,{import:3,undefined:1}[(c.toLowerCase().match(/^@([a-z]+)/)||[])[1]]||4))},get cssText(){return a==="@media{}"?`@media{${[].map.call(this.cssRules,c=>c.cssText).join("")}}`:a}});t={sheet:e?(e.head||e).appendChild(document.createElement("style")).sheet:l("","text/css"),rules:{},reset:r,toString:n}}const{sheet:o,rules:s}=t;for(let l=mi.length-1;l>=0;--l){const a=mi[l];if(!s[a]){const u=mi[l+1],c=s[u]?s[u].index:o.cssRules.length;o.insertRule("@media{}",c),o.insertRule(`--sxs{--sxs:${l}}`,c),s[a]={group:o.cssRules[c+1],index:c,cache:new Set([l])}}Zk(s[a])}};return r(),t},Zk=e=>{const t=e.group;let n=t.cssRules.length;e.apply=r=>{try{t.insertRule(r,n),++n}catch{}}},ai=Symbol(),eC=Gr(),Hh=(e,t)=>eC(e,()=>(...n)=>{let r={type:null,composers:new Set};for(const i of n)if(i!=null)if(i[Wn]){r.type==null&&(r.type=i[Wn].type);for(const o of i[Wn].composers)r.composers.add(o)}else i.constructor!==Object||i.$$typeof?r.type==null&&(r.type=i):r.composers.add(tC(i,e));return r.type==null&&(r.type="span"),r.composers.size||r.composers.add(["PJLV",{},[],[],{},[]]),nC(e,r,t)}),tC=({variants:e,compoundVariants:t,defaultVariants:n,...r},i)=>{const o=`${nn(i.prefix)}c-${qn(r)}`,s=[],l=[],a=Object.create(null),u=[];for(const f in n)a[f]=String(n[f]);if(typeof e=="object"&&e)for(const f in e){c=a,d=f,Vk.call(c,d)||(a[f]="undefined");const y=e[f];for(const m in y){const w={[f]:String(m)};String(m)==="undefined"&&u.push(f);const k=y[m],p=[w,k,!zh(k)];s.push(p)}}var c,d;if(typeof t=="object"&&t)for(const f of t){let{css:y,...m}=f;y=typeof y=="object"&&y||{};for(const k in m)m[k]=String(m[k]);const w=[m,y,!zh(y)];l.push(w)}return[o,r,s,l,a,u]},nC=(e,t,n)=>{const[r,i,o,s]=rC(t.composers),l=typeof t.type=="function"||t.type.$$typeof?(d=>{function f(){for(let y=0;yf.rules[y]={apply:m=>f[ai].push([y,m])}),f})(n):null,a=(l||n).rules,u=`.${r}${i.length>1?`:where(.${i.slice(1).join(".")})`:""}`,c=d=>{d=typeof d=="object"&&d||iC;const{css:f,...y}=d,m={};for(const p in o)if(delete y[p],p in d){let h=d[p];typeof h=="object"&&h?m[p]={"@initial":o[p],...h}:(h=String(h),m[p]=h!=="undefined"||s.has(p)?h:o[p])}else m[p]=o[p];const w=new Set([...i]);for(const[p,h,v,S]of t.composers){n.rules.styled.cache.has(p)||(n.rules.styled.cache.add(p),Er(h,[`.${p}`],[],e,E=>{a.styled.apply(E)}));const O=Qh(v,m,e.media),P=Qh(S,m,e.media,!0);for(const E of O)if(E!==void 0)for(const[C,F,L]of E){const q=`${p}-${qn(F)}-${C}`;w.add(q);const K=(L?n.rules.resonevar:n.rules.onevar).cache,W=L?a.resonevar:a.onevar;K.has(q)||(K.add(q),Er(F,[`.${q}`],[],e,Y=>{W.apply(Y)}))}for(const E of P)if(E!==void 0)for(const[C,F]of E){const L=`${p}-${qn(F)}-${C}`;w.add(L),n.rules.allvar.cache.has(L)||(n.rules.allvar.cache.add(L),Er(F,[`.${L}`],[],e,q=>{a.allvar.apply(q)}))}}if(typeof f=="object"&&f){const p=`${r}-i${qn(f)}-css`;w.add(p),n.rules.inline.cache.has(p)||(n.rules.inline.cache.add(p),Er(f,[`.${p}`],[],e,h=>{a.inline.apply(h)}))}for(const p of String(d.className||"").trim().split(/\s+/))p&&w.add(p);const k=y.className=[...w].join(" ");return{type:t.type,className:k,selector:u,props:y,toString:()=>k,deferredInjector:l}};return Pf(c,{className:r,selector:u,[Wn]:t,toString:()=>(n.rules.styled.cache.has(r)||c(),r)})},rC=e=>{let t="";const n=[],r={},i=[];for(const[o,,,,s,l]of e){t===""&&(t=o),n.push(o),i.push(...l);for(const a in s){const u=s[a];(r[a]===void 0||u!=="undefined"||l.includes(u))&&(r[a]=u)}}return[t,n,r,new Set(i)]},Qh=(e,t,n,r)=>{const i=[];e:for(let[o,s,l]of e){if(l)continue;let a,u=0,c=!1;for(a in o){const d=o[a];let f=t[a];if(f!==d){if(typeof f!="object"||!f)continue e;{let y,m,w=0;for(const k in f){if(d===String(f[k])){if(k!=="@initial"){const p=k.slice(1);(m=m||[]).push(p in n?n[p]:k.replace(/^@media ?/,"")),c=!0}u+=w,y=!0}++w}if(m&&m.length&&(s={["@media "+m.join(", ")]:s}),!y)continue e}}}(i[u]=i[u]||[]).push([r?"cv":`${a}-${o[a]}`,s,c])}return i},iC={},oC=Gr(),sC=(e,t)=>oC(e,()=>(...n)=>{const r=()=>{for(let i of n){i=typeof i=="object"&&i||{};let o=qn(i);if(!t.rules.global.cache.has(o)){if(t.rules.global.cache.add(o),"@import"in i){let s=[].indexOf.call(t.sheet.cssRules,t.rules.themed.group)-1;for(let l of[].concat(i["@import"]))l=l.includes('"')||l.includes("'")?l:`"${l}"`,t.sheet.insertRule(`@import ${l};`,s++);delete i["@import"]}Er(i,[],[],e,s=>{t.rules.global.apply(s)})}}return""};return Pf(r,{toString:r})}),lC=Gr(),aC=(e,t)=>lC(e,()=>n=>{const r=`${nn(e.prefix)}k-${qn(n)}`,i=()=>{if(!t.rules.global.cache.has(r)){t.rules.global.cache.add(r);const o=[];Er(n,[],[],e,l=>o.push(l));const s=`@keyframes ${r}{${o.join("")}}`;t.rules.global.apply(s)}return r};return Pf(i,{get name(){return i()},toString:i})}),uC=class{constructor(e,t,n,r){this.token=e==null?"":String(e),this.value=t==null?"":String(t),this.scale=n==null?"":String(n),this.prefix=r==null?"":String(r)}get computedValue(){return"var("+this.variable+")"}get variable(){return"--"+nn(this.prefix)+nn(this.scale)+this.token}toString(){return this.computedValue}},cC=Gr(),fC=(e,t)=>cC(e,()=>(n,r)=>{r=typeof n=="object"&&n||Object(r);const i=`.${n=(n=typeof n=="string"?n:"")||`${nn(e.prefix)}t-${qn(r)}`}`,o={},s=[];for(const a in r){o[a]={};for(const u in r[a]){const c=`--${nn(e.prefix)}${a}-${u}`,d=Wg(String(r[a][u]),e.prefix,a);o[a][u]=new uC(u,d,a,e.prefix),s.push(`${c}:${d}`)}}const l=()=>{if(s.length&&!t.rules.themed.cache.has(n)){t.rules.themed.cache.add(n);const a=`${r===e.theme?":root,":""}.${n}{${s.join(";")}}`;t.rules.themed.apply(a)}return n};return{...o,get className(){return l()},selector:i,toString:l}}),dC=Gr(),Wh,hC=Gr(),qg=e=>{const t=(n=>{let r=!1;const i=dC(n,o=>{r=!0;const s="prefix"in(o=typeof o=="object"&&o||{})?String(o.prefix):"",l=typeof o.media=="object"&&o.media||{},a=typeof o.root=="object"?o.root||null:globalThis.document||null,u=typeof o.theme=="object"&&o.theme||{},c={prefix:s,media:l,theme:u,themeMap:typeof o.themeMap=="object"&&o.themeMap||{...Uk},utils:typeof o.utils=="object"&&o.utils||{}},d=Jk(a),f={css:Hh(c,d),globalCss:sC(c,d),keyframes:aC(c,d),createTheme:fC(c,d),reset(){d.reset(),f.theme.toString()},theme:{},sheet:d,config:c,prefix:s,getCssText:d.toString,toString:d.toString};return String(f.theme=f.createTheme(u)),f});return r||i.reset(),i})(e);return t.styled=(({config:n,sheet:r})=>hC(n,()=>{const i=Hh(n,r);return(...o)=>{const s=i(...o),l=s[Wn].type,a=z.forwardRef((u,c)=>{const d=u&&u.as||l,{props:f,deferredInjector:y}=s(u);return delete f.as,f.ref=c,y?z.createElement(z.Fragment,null,z.createElement(d,f),z.createElement(y,null)):z.createElement(d,f)});return a.className=s.className,a.displayName=`Styled.${l.displayName||l.name||l}`,a.selector=s.selector,a.toString=()=>s.selector,a[Wn]=s[Wn],a}}))(t),t},Kg=()=>Wh||(Wh=qg()),pC=(...e)=>Kg().createTheme(...e),mC=(...e)=>Kg().css(...e);const{styled:Ee,css:GP}=qg({theme:{colors:{waspYellow:"#ffcc00",gray700:"#a1a5ab",gray600:"#d1d5db",gray500:"gainsboro",gray400:"#f0f0f0",red:"#FED7D7",darkRed:"#fa3838",green:"#C6F6D5",brand:"$waspYellow",brandAccent:"#ffdb46",errorBackground:"$red",errorText:"#2D3748",successBackground:"$green",successText:"#2D3748",submitButtonText:"black",formErrorText:"$darkRed"},fontSizes:{sm:"0.875rem"}}});var uo=e=>e.type==="checkbox",kr=e=>e instanceof Date,qe=e=>e==null;const Gg=e=>typeof e=="object";var _e=e=>!qe(e)&&!Array.isArray(e)&&Gg(e)&&!kr(e),yC=e=>_e(e)&&e.target?uo(e.target)?e.target.checked:e.target.value:e,gC=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,vC=(e,t)=>e.has(gC(t)),wC=e=>{const t=e.constructor&&e.constructor.prototype;return _e(t)&&t.hasOwnProperty("isPrototypeOf")},Rf=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Vt(e){let t;const n=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(Rf&&(e instanceof Blob||e instanceof FileList))&&(n||_e(e)))if(t=n?[]:{},!n&&!wC(e))t=e;else for(const r in e)e.hasOwnProperty(r)&&(t[r]=Vt(e[r]));else return e;return t}var co=e=>Array.isArray(e)?e.filter(Boolean):[],Ce=e=>e===void 0,V=(e,t,n)=>{if(!t||!_e(e))return n;const r=co(t.split(/[,[\].]+?/)).reduce((i,o)=>qe(i)?i:i[o],e);return Ce(r)||r===e?Ce(e[t])?n:e[t]:r},Un=e=>typeof e=="boolean";const qh={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},Ot={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},Bt={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"};z.createContext(null);var xC=(e,t,n,r=!0)=>{const i={defaultValues:t._defaultValues};for(const o in e)Object.defineProperty(i,o,{get:()=>{const s=o;return t._proxyFormState[s]!==Ot.all&&(t._proxyFormState[s]=!r||Ot.all),n&&(n[s]=!0),e[s]}});return i},ht=e=>_e(e)&&!Object.keys(e).length,SC=(e,t,n,r)=>{n(e);const{name:i,...o}=e;return ht(o)||Object.keys(o).length>=Object.keys(t).length||Object.keys(o).find(s=>t[s]===(!r||Ot.all))},Pa=e=>Array.isArray(e)?e:[e];function EC(e){const t=z.useRef(e);t.current=e,z.useEffect(()=>{const n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}},[e.disabled])}var It=e=>typeof e=="string",kC=(e,t,n,r,i)=>It(e)?(r&&t.watch.add(e),V(n,e,i)):Array.isArray(e)?e.map(o=>(r&&t.watch.add(o),V(n,o))):(r&&(t.watchAll=!0),n),Of=e=>/^\w*$/.test(e),Yg=e=>co(e.replace(/["|']|\]/g,"").split(/\.|\[/));function fe(e,t,n){let r=-1;const i=Of(t)?[t]:Yg(t),o=i.length,s=o-1;for(;++rt?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:i||!0}}:{};const qu=(e,t,n)=>{for(const r of n||Object.keys(e)){const i=V(e,r);if(i){const{_f:o,...s}=i;if(o&&t(o.name)){if(o.ref.focus){o.ref.focus();break}else if(o.refs&&o.refs[0].focus){o.refs[0].focus();break}}else _e(s)&&qu(s,t)}}};var Kh=e=>({isOnSubmit:!e||e===Ot.onSubmit,isOnBlur:e===Ot.onBlur,isOnChange:e===Ot.onChange,isOnAll:e===Ot.all,isOnTouch:e===Ot.onTouched}),Gh=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length)))),PC=(e,t,n)=>{const r=co(V(e,n));return fe(r,"root",t[n]),fe(e,n,r),e},Tf=e=>e.type==="file",yn=e=>typeof e=="function",js=e=>{if(!Rf)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},es=e=>It(e),bf=e=>e.type==="radio",As=e=>e instanceof RegExp;const Yh={value:!1,isValid:!1},Xh={value:!0,isValid:!0};var Xg=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(n=>n&&n.checked&&!n.disabled).map(n=>n.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!Ce(e[0].attributes.value)?Ce(e[0].value)||e[0].value===""?Xh:{value:e[0].value,isValid:!0}:Xh:Yh}return Yh};const Jh={isValid:!1,value:null};var Jg=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,Jh):Jh;function Zh(e,t,n="validate"){if(es(e)||Array.isArray(e)&&e.every(es)||Un(e)&&!e)return{type:n,message:es(e)?e:"",ref:t}}var lr=e=>_e(e)&&!As(e)?e:{value:e,message:""},ep=async(e,t,n,r,i)=>{const{ref:o,refs:s,required:l,maxLength:a,minLength:u,min:c,max:d,pattern:f,validate:y,name:m,valueAsNumber:w,mount:k,disabled:p}=e._f,h=V(t,m);if(!k||p)return{};const v=s?s[0]:o,S=K=>{r&&v.reportValidity&&(v.setCustomValidity(Un(K)?"":K||""),v.reportValidity())},O={},P=bf(o),E=uo(o),C=P||E,F=(w||Tf(o))&&Ce(o.value)&&Ce(h)||js(o)&&o.value===""||h===""||Array.isArray(h)&&!h.length,L=CC.bind(null,m,n,O),q=(K,W,Y,J=Bt.maxLength,ae=Bt.minLength)=>{const ge=K?W:Y;O[m]={type:K?J:ae,message:ge,ref:o,...L(K?J:ae,ge)}};if(i?!Array.isArray(h)||!h.length:l&&(!C&&(F||qe(h))||Un(h)&&!h||E&&!Xg(s).isValid||P&&!Jg(s).isValid)){const{value:K,message:W}=es(l)?{value:!!l,message:l}:lr(l);if(K&&(O[m]={type:Bt.required,message:W,ref:v,...L(Bt.required,W)},!n))return S(W),O}if(!F&&(!qe(c)||!qe(d))){let K,W;const Y=lr(d),J=lr(c);if(!qe(h)&&!isNaN(h)){const ae=o.valueAsNumber||h&&+h;qe(Y.value)||(K=ae>Y.value),qe(J.value)||(W=aenew Date(new Date().toDateString()+" "+N),j=o.type=="time",A=o.type=="week";It(Y.value)&&h&&(K=j?ge(h)>ge(Y.value):A?h>Y.value:ae>new Date(Y.value)),It(J.value)&&h&&(W=j?ge(h)+K.value,J=!qe(W.value)&&h.length<+W.value;if((Y||J)&&(q(Y,K.message,W.message),!n))return S(O[m].message),O}if(f&&!F&&It(h)){const{value:K,message:W}=lr(f);if(As(K)&&!h.match(K)&&(O[m]={type:Bt.pattern,message:W,ref:o,...L(Bt.pattern,W)},!n))return S(W),O}if(y){if(yn(y)){const K=await y(h,t),W=Zh(K,v);if(W&&(O[m]={...W,...L(Bt.validate,W.message)},!n))return S(W.message),O}else if(_e(y)){let K={};for(const W in y){if(!ht(K)&&!n)break;const Y=Zh(await y[W](h,t),v,W);Y&&(K={...Y,...L(W,Y.message)},S(Y.message),n&&(O[m]=K))}if(!ht(K)&&(O[m]={ref:v,...K},!n))return O}}return S(!0),O};function RC(e,t){const n=t.slice(0,-1).length;let r=0;for(;r{for(const o of e)o.next&&o.next(i)},subscribe:i=>(e.push(i),{unsubscribe:()=>{e=e.filter(o=>o!==i)}}),unsubscribe:()=>{e=[]}}}var $s=e=>qe(e)||!Gg(e);function Bn(e,t){if($s(e)||$s(t))return e===t;if(kr(e)&&kr(t))return e.getTime()===t.getTime();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const i of n){const o=e[i];if(!r.includes(i))return!1;if(i!=="ref"){const s=t[i];if(kr(o)&&kr(s)||_e(o)&&_e(s)||Array.isArray(o)&&Array.isArray(s)?!Bn(o,s):o!==s)return!1}}return!0}var Zg=e=>e.type==="select-multiple",TC=e=>bf(e)||uo(e),Oa=e=>js(e)&&e.isConnected,ev=e=>{for(const t in e)if(yn(e[t]))return!0;return!1};function Ls(e,t={}){const n=Array.isArray(e);if(_e(e)||n)for(const r in e)Array.isArray(e[r])||_e(e[r])&&!ev(e[r])?(t[r]=Array.isArray(e[r])?[]:{},Ls(e[r],t[r])):qe(e[r])||(t[r]=!0);return t}function tv(e,t,n){const r=Array.isArray(e);if(_e(e)||r)for(const i in e)Array.isArray(e[i])||_e(e[i])&&!ev(e[i])?Ce(t)||$s(n[i])?n[i]=Array.isArray(e[i])?Ls(e[i],[]):{...Ls(e[i])}:tv(e[i],qe(t)?{}:t[i],n[i]):n[i]=!Bn(e[i],t[i]);return n}var Ta=(e,t)=>tv(e,t,Ls(t)),nv=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>Ce(e)?e:t?e===""?NaN:e&&+e:n&&It(e)?new Date(e):r?r(e):e;function ba(e){const t=e.ref;if(!(e.refs?e.refs.every(n=>n.disabled):t.disabled))return Tf(t)?t.files:bf(t)?Jg(e.refs).value:Zg(t)?[...t.selectedOptions].map(({value:n})=>n):uo(t)?Xg(e.refs).value:nv(Ce(t.value)?e.ref.value:t.value,e)}var bC=(e,t,n,r)=>{const i={};for(const o of e){const s=V(t,o);s&&fe(i,o,s._f)}return{criteriaMode:n,names:[...e],fields:i,shouldUseNativeValidation:r}},ui=e=>Ce(e)?e:As(e)?e.source:_e(e)?As(e.value)?e.value.source:e.value:e,NC=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function tp(e,t,n){const r=V(e,n);if(r||Of(n))return{error:r,name:n};const i=n.split(".");for(;i.length;){const o=i.join("."),s=V(t,o),l=V(e,o);if(s&&!Array.isArray(s)&&n!==o)return{name:n};if(l&&l.type)return{name:o,error:l};i.pop()}return{name:n}}var _C=(e,t,n,r,i)=>i.isOnAll?!1:!n&&i.isOnTouch?!(t||e):(n?r.isOnBlur:i.isOnBlur)?!e:(n?r.isOnChange:i.isOnChange)?e:!0,jC=(e,t)=>!co(V(e,t)).length&&Ie(e,t);const AC={mode:Ot.onSubmit,reValidateMode:Ot.onChange,shouldFocusError:!0};function $C(e={},t){let n={...AC,...e},r={submitCount:0,isDirty:!1,isLoading:yn(n.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},errors:{}},i={},o=_e(n.defaultValues)||_e(n.values)?Vt(n.defaultValues||n.values)||{}:{},s=n.shouldUnregister?{}:Vt(o),l={action:!1,mount:!1,watch:!1},a={mount:new Set,unMount:new Set,array:new Set,watch:new Set},u,c=0;const d={isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},f={values:Ra(),array:Ra(),state:Ra()},y=e.resetOptions&&e.resetOptions.keepDirtyValues,m=Kh(n.mode),w=Kh(n.reValidateMode),k=n.criteriaMode===Ot.all,p=x=>R=>{clearTimeout(c),c=setTimeout(x,R)},h=async x=>{if(d.isValid||x){const R=n.resolver?ht((await F()).errors):await q(i,!0);R!==r.isValid&&f.state.next({isValid:R})}},v=x=>d.isValidating&&f.state.next({isValidating:x}),S=(x,R=[],b,Q,D=!0,$=!0)=>{if(Q&&b){if(l.action=!0,$&&Array.isArray(V(i,x))){const G=b(V(i,x),Q.argA,Q.argB);D&&fe(i,x,G)}if($&&Array.isArray(V(r.errors,x))){const G=b(V(r.errors,x),Q.argA,Q.argB);D&&fe(r.errors,x,G),jC(r.errors,x)}if(d.touchedFields&&$&&Array.isArray(V(r.touchedFields,x))){const G=b(V(r.touchedFields,x),Q.argA,Q.argB);D&&fe(r.touchedFields,x,G)}d.dirtyFields&&(r.dirtyFields=Ta(o,s)),f.state.next({name:x,isDirty:W(x,R),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else fe(s,x,R)},O=(x,R)=>{fe(r.errors,x,R),f.state.next({errors:r.errors})},P=(x,R,b,Q)=>{const D=V(i,x);if(D){const $=V(s,x,Ce(b)?V(o,x):b);Ce($)||Q&&Q.defaultChecked||R?fe(s,x,R?$:ba(D._f)):ae(x,$),l.mount&&h()}},E=(x,R,b,Q,D)=>{let $=!1,G=!1;const ve={name:x};if(!b||Q){d.isDirty&&(G=r.isDirty,r.isDirty=ve.isDirty=W(),$=G!==ve.isDirty);const xe=Bn(V(o,x),R);G=V(r.dirtyFields,x),xe?Ie(r.dirtyFields,x):fe(r.dirtyFields,x,!0),ve.dirtyFields=r.dirtyFields,$=$||d.dirtyFields&&G!==!xe}if(b){const xe=V(r.touchedFields,x);xe||(fe(r.touchedFields,x,b),ve.touchedFields=r.touchedFields,$=$||d.touchedFields&&xe!==b)}return $&&D&&f.state.next(ve),$?ve:{}},C=(x,R,b,Q)=>{const D=V(r.errors,x),$=d.isValid&&Un(R)&&r.isValid!==R;if(e.delayError&&b?(u=p(()=>O(x,b)),u(e.delayError)):(clearTimeout(c),u=null,b?fe(r.errors,x,b):Ie(r.errors,x)),(b?!Bn(D,b):D)||!ht(Q)||$){const G={...Q,...$&&Un(R)?{isValid:R}:{},errors:r.errors,name:x};r={...r,...G},f.state.next(G)}v(!1)},F=async x=>n.resolver(s,n.context,bC(x||a.mount,i,n.criteriaMode,n.shouldUseNativeValidation)),L=async x=>{const{errors:R}=await F(x);if(x)for(const b of x){const Q=V(R,b);Q?fe(r.errors,b,Q):Ie(r.errors,b)}else r.errors=R;return R},q=async(x,R,b={valid:!0})=>{for(const Q in x){const D=x[Q];if(D){const{_f:$,...G}=D;if($){const ve=a.array.has($.name),xe=await ep(D,s,k,n.shouldUseNativeValidation&&!R,ve);if(xe[$.name]&&(b.valid=!1,R))break;!R&&(V(xe,$.name)?ve?PC(r.errors,xe,$.name):fe(r.errors,$.name,xe[$.name]):Ie(r.errors,$.name))}G&&await q(G,R,b)}}return b.valid},K=()=>{for(const x of a.unMount){const R=V(i,x);R&&(R._f.refs?R._f.refs.every(b=>!Oa(b)):!Oa(R._f.ref))&&he(x)}a.unMount=new Set},W=(x,R)=>(x&&R&&fe(s,x,R),!Bn(H(),o)),Y=(x,R,b)=>kC(x,a,{...l.mount?s:Ce(R)?o:It(x)?{[x]:R}:R},b,R),J=x=>co(V(l.mount?s:o,x,e.shouldUnregister?V(o,x,[]):[])),ae=(x,R,b={})=>{const Q=V(i,x);let D=R;if(Q){const $=Q._f;$&&(!$.disabled&&fe(s,x,nv(R,$)),D=js($.ref)&&qe(R)?"":R,Zg($.ref)?[...$.ref.options].forEach(G=>G.selected=D.includes(G.value)):$.refs?uo($.ref)?$.refs.length>1?$.refs.forEach(G=>(!G.defaultChecked||!G.disabled)&&(G.checked=Array.isArray(D)?!!D.find(ve=>ve===G.value):D===G.value)):$.refs[0]&&($.refs[0].checked=!!D):$.refs.forEach(G=>G.checked=G.value===D):Tf($.ref)?$.ref.value="":($.ref.value=D,$.ref.type||f.values.next({name:x,values:{...s}})))}(b.shouldDirty||b.shouldTouch)&&E(x,D,b.shouldTouch,b.shouldDirty,!0),b.shouldValidate&&N(x)},ge=(x,R,b)=>{for(const Q in R){const D=R[Q],$=`${x}.${Q}`,G=V(i,$);(a.array.has(x)||!$s(D)||G&&!G._f)&&!kr(D)?ge($,D,b):ae($,D,b)}},j=(x,R,b={})=>{const Q=V(i,x),D=a.array.has(x),$=Vt(R);fe(s,x,$),D?(f.array.next({name:x,values:{...s}}),(d.isDirty||d.dirtyFields)&&b.shouldDirty&&f.state.next({name:x,dirtyFields:Ta(o,s),isDirty:W(x,$)})):Q&&!Q._f&&!qe($)?ge(x,$,b):ae(x,$,b),Gh(x,a)&&f.state.next({...r}),f.values.next({name:x,values:{...s}}),!l.mount&&t()},A=async x=>{const R=x.target;let b=R.name,Q=!0;const D=V(i,b),$=()=>R.type?ba(D._f):yC(x);if(D){let G,ve;const xe=$(),ir=x.type===qh.BLUR||x.type===qh.FOCUS_OUT,sv=!NC(D._f)&&!n.resolver&&!V(r.errors,b)&&!D._f.deps||_C(ir,V(r.touchedFields,b),r.isSubmitted,w,m),_l=Gh(b,a,ir);fe(s,b,xe),ir?(D._f.onBlur&&D._f.onBlur(x),u&&u(0)):D._f.onChange&&D._f.onChange(x);const jl=E(b,xe,ir,!1),lv=!ht(jl)||_l;if(!ir&&f.values.next({name:b,type:x.type,values:{...s}}),sv)return d.isValid&&h(),lv&&f.state.next({name:b,..._l?{}:jl});if(!ir&&_l&&f.state.next({...r}),v(!0),n.resolver){const{errors:Ff}=await F([b]),av=tp(r.errors,i,b),Df=tp(Ff,i,av.name||b);G=Df.error,b=Df.name,ve=ht(Ff)}else G=(await ep(D,s,k,n.shouldUseNativeValidation))[b],Q=Number.isNaN(xe)||xe===V(s,b,xe),Q&&(G?ve=!1:d.isValid&&(ve=await q(i,!0)));Q&&(D._f.deps&&N(D._f.deps),C(b,ve,G,jl))}},N=async(x,R={})=>{let b,Q;const D=Pa(x);if(v(!0),n.resolver){const $=await L(Ce(x)?x:D);b=ht($),Q=x?!D.some(G=>V($,G)):b}else x?(Q=(await Promise.all(D.map(async $=>{const G=V(i,$);return await q(G&&G._f?{[$]:G}:G)}))).every(Boolean),!(!Q&&!r.isValid)&&h()):Q=b=await q(i);return f.state.next({...!It(x)||d.isValid&&b!==r.isValid?{}:{name:x},...n.resolver||!x?{isValid:b}:{},errors:r.errors,isValidating:!1}),R.shouldFocus&&!Q&&qu(i,$=>$&&V(r.errors,$),x?D:a.mount),Q},H=x=>{const R={...o,...l.mount?s:{}};return Ce(x)?R:It(x)?V(R,x):x.map(b=>V(R,b))},B=(x,R)=>({invalid:!!V((R||r).errors,x),isDirty:!!V((R||r).dirtyFields,x),isTouched:!!V((R||r).touchedFields,x),error:V((R||r).errors,x)}),te=x=>{x&&Pa(x).forEach(R=>Ie(r.errors,R)),f.state.next({errors:x?r.errors:{}})},se=(x,R,b)=>{const Q=(V(i,x,{_f:{}})._f||{}).ref;fe(r.errors,x,{...R,ref:Q}),f.state.next({name:x,errors:r.errors,isValid:!1}),b&&b.shouldFocus&&Q&&Q.focus&&Q.focus()},Te=(x,R)=>yn(x)?f.values.subscribe({next:b=>x(Y(void 0,R),b)}):Y(x,R,!0),he=(x,R={})=>{for(const b of x?Pa(x):a.mount)a.mount.delete(b),a.array.delete(b),R.keepValue||(Ie(i,b),Ie(s,b)),!R.keepError&&Ie(r.errors,b),!R.keepDirty&&Ie(r.dirtyFields,b),!R.keepTouched&&Ie(r.touchedFields,b),!n.shouldUnregister&&!R.keepDefaultValue&&Ie(o,b);f.values.next({values:{...s}}),f.state.next({...r,...R.keepDirty?{isDirty:W()}:{}}),!R.keepIsValid&&h()},ke=({disabled:x,name:R,field:b,fields:Q})=>{if(Un(x)){const D=x?void 0:V(s,R,ba(b?b._f:V(Q,R)._f));fe(s,R,D),E(R,D,!1,!1,!0)}},St=(x,R={})=>{let b=V(i,x);const Q=Un(R.disabled);return fe(i,x,{...b||{},_f:{...b&&b._f?b._f:{ref:{name:x}},name:x,mount:!0,...R}}),a.mount.add(x),b?ke({field:b,disabled:R.disabled,name:x}):P(x,!0,R.value),{...Q?{disabled:R.disabled}:{},...n.progressive?{required:!!R.required,min:ui(R.min),max:ui(R.max),minLength:ui(R.minLength),maxLength:ui(R.maxLength),pattern:ui(R.pattern)}:{},name:x,onChange:A,onBlur:A,ref:D=>{if(D){St(x,R),b=V(i,x);const $=Ce(D.value)&&D.querySelectorAll&&D.querySelectorAll("input,select,textarea")[0]||D,G=TC($),ve=b._f.refs||[];if(G?ve.find(xe=>xe===$):$===b._f.ref)return;fe(i,x,{_f:{...b._f,...G?{refs:[...ve.filter(Oa),$,...Array.isArray(V(o,x))?[{}]:[]],ref:{type:$.type,name:x}}:{ref:$}}}),P(x,!1,void 0,$)}else b=V(i,x,{}),b._f&&(b._f.mount=!1),(n.shouldUnregister||R.shouldUnregister)&&!(vC(a.array,x)&&l.action)&&a.unMount.add(x)}}},Xr=()=>n.shouldFocusError&&qu(i,x=>x&&V(r.errors,x),a.mount),$f=(x,R)=>async b=>{b&&(b.preventDefault&&b.preventDefault(),b.persist&&b.persist());let Q=Vt(s);if(f.state.next({isSubmitting:!0}),n.resolver){const{errors:D,values:$}=await F();r.errors=D,Q=$}else await q(i);Ie(r.errors,"root"),ht(r.errors)?(f.state.next({errors:{}}),await x(Q,b)):(R&&await R({...r.errors},b),Xr(),setTimeout(Xr)),f.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:ht(r.errors),submitCount:r.submitCount+1,errors:r.errors})},ov=(x,R={})=>{V(i,x)&&(Ce(R.defaultValue)?j(x,V(o,x)):(j(x,R.defaultValue),fe(o,x,R.defaultValue)),R.keepTouched||Ie(r.touchedFields,x),R.keepDirty||(Ie(r.dirtyFields,x),r.isDirty=R.defaultValue?W(x,V(o,x)):W()),R.keepError||(Ie(r.errors,x),d.isValid&&h()),f.state.next({...r}))},Lf=(x,R={})=>{const b=x?Vt(x):o,Q=Vt(b),D=x&&!ht(x)?Q:o;if(R.keepDefaultValues||(o=b),!R.keepValues){if(R.keepDirtyValues||y)for(const $ of a.mount)V(r.dirtyFields,$)?fe(D,$,V(s,$)):j($,V(D,$));else{if(Rf&&Ce(x))for(const $ of a.mount){const G=V(i,$);if(G&&G._f){const ve=Array.isArray(G._f.refs)?G._f.refs[0]:G._f.ref;if(js(ve)){const xe=ve.closest("form");if(xe){xe.reset();break}}}}i={}}s=e.shouldUnregister?R.keepDefaultValues?Vt(o):{}:Vt(D),f.array.next({values:{...D}}),f.values.next({values:{...D}})}a={mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},!l.mount&&t(),l.mount=!d.isValid||!!R.keepIsValid,l.watch=!!e.shouldUnregister,f.state.next({submitCount:R.keepSubmitCount?r.submitCount:0,isDirty:R.keepDirty?r.isDirty:!!(R.keepDefaultValues&&!Bn(x,o)),isSubmitted:R.keepIsSubmitted?r.isSubmitted:!1,dirtyFields:R.keepDirtyValues?r.dirtyFields:R.keepDefaultValues&&x?Ta(o,x):{},touchedFields:R.keepTouched?r.touchedFields:{},errors:R.keepErrors?r.errors:{},isSubmitSuccessful:R.keepIsSubmitSuccessful?r.isSubmitSuccessful:!1,isSubmitting:!1})},If=(x,R)=>Lf(yn(x)?x(s):x,R);return{control:{register:St,unregister:he,getFieldState:B,handleSubmit:$f,setError:se,_executeSchema:F,_getWatch:Y,_getDirty:W,_updateValid:h,_removeUnmounted:K,_updateFieldArray:S,_updateDisabledField:ke,_getFieldArray:J,_reset:Lf,_resetDefaultValues:()=>yn(n.defaultValues)&&n.defaultValues().then(x=>{If(x,n.resetOptions),f.state.next({isLoading:!1})}),_updateFormState:x=>{r={...r,...x}},_subjects:f,_proxyFormState:d,get _fields(){return i},get _formValues(){return s},get _state(){return l},set _state(x){l=x},get _defaultValues(){return o},get _names(){return a},set _names(x){a=x},get _formState(){return r},set _formState(x){r=x},get _options(){return n},set _options(x){n={...n,...x}}},trigger:N,register:St,handleSubmit:$f,watch:Te,setValue:j,getValues:H,reset:If,resetField:ov,clearErrors:te,unregister:he,setError:se,setFocus:(x,R={})=>{const b=V(i,x),Q=b&&b._f;if(Q){const D=Q.refs?Q.refs[0]:Q.ref;D.focus&&(D.focus(),R.shouldSelect&&D.select())}},getFieldState:B}}function Nf(e={}){const t=z.useRef(),n=z.useRef(),[r,i]=z.useState({isDirty:!1,isValidating:!1,isLoading:yn(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},errors:{},defaultValues:yn(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...$C(e,()=>i(s=>({...s}))),formState:r});const o=t.current.control;return o._options=e,EC({subject:o._subjects.state,next:s=>{SC(s,o._proxyFormState,o._updateFormState,!0)&&i({...o._formState})}}),z.useEffect(()=>{e.values&&!Bn(e.values,n.current)?(o._reset(e.values,o._options.resetOptions),n.current=e.values):o._resetDefaultValues()},[e.values,o]),z.useEffect(()=>{o._state.mount||(o._updateValid(),o._state.mount=!0),o._state.watch&&(o._state.watch=!1,o._subjects.state.next({...o._formState})),o._removeUnmounted()}),t.current.formState=xC(r,o),t.current}const _f=Ee("form",{marginTop:"1.5rem"}),Xt=Ee("div",{"& + div":{marginTop:"1.5rem"}}),Ur=Ee("label",{display:"block",fontSize:"$sm",fontWeight:"500",marginBottom:"0.5rem"}),rv={display:"block",lineHeight:"1.5rem",fontSize:"$sm",borderWidth:"1px",borderColor:"$gray600",backgroundColor:"#f8f4ff",boxShadow:"0 1px 2px 0 rgba(0, 0, 0, 0.05)","&:focus":{borderWidth:"1px",borderColor:"$gray700",boxShadow:"0 1px 2px 0 rgba(0, 0, 0, 0.05)"},"&:disabled":{opacity:.5,cursor:"not-allowed",backgroundColor:"$gray400",borderColor:"$gray400",color:"$gray500"},borderRadius:"0.375rem",width:"100%",paddingTop:"0.375rem",paddingBottom:"0.375rem",paddingLeft:"0.75rem",paddingRight:"0.75rem",margin:0},Br=Ee("input",rv),LC=Ee("textarea",rv),Vr=Ee("div",{display:"block",fontSize:"$sm",fontWeight:"500",color:"$formErrorText",marginTop:"0.5rem"}),jf=Ee("button",{display:"flex",justifyContent:"center",width:"100%",borderWidth:"1px",borderColor:"$brand",backgroundColor:"$brand",color:"$submitButtonText",padding:"0.5rem 0.75rem",boxShadow:"0 1px 2px 0 rgba(0, 0, 0, 0.05)",fontWeight:"600",fontSize:"$sm",lineHeight:"1.25rem",borderRadius:"0.375rem","&:hover":{backgroundColor:"$brandAccent",borderColor:"$brandAccent"},"&:disabled":{opacity:.5,cursor:"not-allowed",backgroundColor:"$gray400",borderColor:"$gray400",color:"$gray500"},transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"100ms"}),IC=mC({width:"1.25rem",height:"1.25rem"}),FC=()=>g.jsx("svg",{className:IC(),"aria-hidden":"true",fill:"currentColor",viewBox:"0 0 24 24",children:g.jsx("g",{id:"brand",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:g.jsx("g",{id:"google",fill:"#000000",fillRule:"nonzero",children:g.jsx("path",{d:"M11.99,13.9 L11.99,10.18 L21.35,10.18 C21.49,10.81 21.6,11.4 21.6,12.23 C21.6,17.94 17.77,22 12,22 C6.48,22 2,17.52 2,12 C2,6.48 6.48,2 12,2 C14.7,2 16.96,2.99 18.69,4.61 L15.85,7.37 C15.13,6.69 13.87,5.89 12,5.89 C8.69,5.89 5.99,8.64 5.99,12.01 C5.99,15.38 8.69,18.13 12,18.13 C15.83,18.13 17.24,15.48 17.5,13.91 L11.99,13.91 L11.99,13.9 Z",id:"Shape"})})})}),DC=Ee("a",{display:"flex",justifyContent:"center",cursor:"pointer",color:"inherit",backgroundColor:"#f0f0f0",borderRadius:"0.375rem",borderWidth:"1px",borderColor:"$gray600",fontSize:"13px",padding:"0.5rem 0.75rem",boxShadow:"0 1px 2px 0 rgba(0, 0, 0, 0.05)","&:visited":{color:"inherit"},"&:hover":{backgroundColor:"$gray500",color:"inherit"},transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"100ms"});async function MC(e){try{return(await Ut.post("/auth/email/signup",e)).data}catch(t){rr(t)}}async function iv(e){kk(e),await Vg()}async function np(e){try{const t=await Ut.post("/auth/email/login",e);await iv(t.data.token)}catch(t){rr(t)}}function zC({onError:e,showEmailVerificationPending:t,isEmailVerificationRequired:n,onLoginSuccess:r,isLogin:i}){async function o(s){try{i?(await np(s),r()):(await MC(s),n?t():(await np(s),r()))}catch(l){e(l)}}return{handleSubmit:o}}const UC=Ee("div",{position:"relative",marginTop:"1.5rem"}),BC=Ee("div",{position:"absolute",inset:"0px",display:"flex",alignItems:"center"}),VC=Ee("div",{width:"100%",borderTopWidth:"1px",borderColor:"$gray500"}),HC=Ee("div",{position:"relative",display:"flex",justifyContent:"center",fontSize:"$sm"}),QC=Ee("span",{backgroundColor:"white",paddingLeft:"0.5rem",paddingRight:"0.5rem"}),WC=Ee("div",{marginTop:"1.5rem"}),qC=Ee("div",{fontWeight:"500",fontSize:"$sm"}),KC=Ee("div",{marginTop:"0.5rem",display:"flex",variants:{direction:{horizontal:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(48px, 1fr))"},vertical:{flexDirection:"column",margin:"8px 0"}},gap:{small:{gap:"4px"},medium:{gap:"8px"},large:{gap:"16px"}}}}),GC=`${Sf.apiUrl}/auth/google/login`,YC=({state:e,socialButtonsDirection:t="horizontal",additionalSignupFields:n})=>{const{isLoading:r,setErrorMessage:i,setSuccessMessage:o,setIsLoading:s}=I.useContext(fo),l=e==="login",a=l?"Log in":"Sign up",u=io(),c=p=>{var h,v;i({title:p.message,description:(v=(h=p.data)==null?void 0:h.data)==null?void 0:v.message})},d=Nf(),{register:f,formState:{errors:y},handleSubmit:m}=d,{handleSubmit:w}=zC({isLogin:l,onError:c,showEmailVerificationPending(){d.reset(),o("You've signed up successfully! Check your email for the confirmation link.")},onLoginSuccess(){u.push("/chat")},isEmailVerificationRequired:!0});async function k(p){s(!0),i(null),o(null);try{await w(p)}finally{s(!1)}}return g.jsxs(g.Fragment,{children:[g.jsxs(WC,{children:[g.jsxs(qC,{children:[a," with"]}),g.jsx(KC,{gap:"large",direction:t,children:g.jsx(DC,{href:GC,children:g.jsx(FC,{})})})]}),g.jsxs(UC,{children:[g.jsx(BC,{children:g.jsx(VC,{})}),g.jsx(HC,{children:g.jsx(QC,{children:"Or continue with"})})]}),g.jsxs(_f,{onSubmit:m(k),children:[g.jsxs(Xt,{children:[g.jsx(Ur,{children:"E-mail"}),g.jsx(Br,{...f("email",{required:"Email is required"}),type:"email",disabled:r}),y.email&&g.jsx(Vr,{children:y.email.message})]}),g.jsxs(Xt,{children:[g.jsx(Ur,{children:"Password"}),g.jsx(Br,{...f("password",{required:"Password is required"}),type:"password",disabled:r}),y.password&&g.jsx(Vr,{children:y.password.message})]}),g.jsx(XC,{hookForm:d,formState:{isLoading:r},additionalSignupFields:n}),g.jsx(Xt,{children:g.jsx(jf,{type:"submit",disabled:r,children:a})})]})]})};function XC({hookForm:e,formState:{isLoading:t},additionalSignupFields:n}){const{register:r,formState:{errors:i}}=e;function o(s,l,a){return g.jsxs(Xt,{children:[g.jsx(Ur,{children:s.label}),g.jsx(l,{...r(s.name,s.validations),...a,disabled:t}),i[s.name]&&g.jsx(Vr,{children:i[s.name].message})]},s.name)}return ZC(n)?n(e,{isLoading:t}):n&&n.map(s=>{if(JC(s))return s(e,{isLoading:t});switch(s.type){case"input":return o(s,Br,{type:"text"});case"textarea":return o(s,LC);default:throw new Error(`Unsupported additional signup field type: ${s.type}`)}})}function JC(e){return typeof e=="function"}function ZC(e){return typeof e=="function"}const Af=Ee("div",{padding:"0.5rem 0.75rem",borderRadius:"0.375rem",marginTop:"1rem",background:"$gray400"}),eP=Ee(Af,{background:"$errorBackground",color:"$errorText"}),tP=Ee(Af,{background:"$successBackground",color:"$successText"});async function nP(e){try{return(await Ut.post("/auth/email/request-password-reset",e)).data}catch(t){rr(t)}}async function rP(e){try{return(await Ut.post("/auth/email/reset-password",e)).data}catch(t){rr(t)}}const iP=()=>{const{register:e,handleSubmit:t,reset:n,formState:{errors:r}}=Nf(),{isLoading:i,setErrorMessage:o,setSuccessMessage:s,setIsLoading:l}=I.useContext(fo),a=async u=>{var c,d;l(!0),o(null),s(null);try{await nP(u),n(),s("Check your email for a password reset link.")}catch(f){o({title:f.message,description:(d=(c=f.data)==null?void 0:c.data)==null?void 0:d.message})}finally{l(!1)}};return g.jsx(g.Fragment,{children:g.jsxs(_f,{onSubmit:t(a),children:[g.jsxs(Xt,{children:[g.jsx(Ur,{children:"E-mail"}),g.jsx(Br,{...e("email",{required:"Email is required"}),type:"email",disabled:i}),r.email&&g.jsx(Vr,{children:r.email.message})]}),g.jsx(Xt,{children:g.jsx(jf,{type:"submit",disabled:i,children:"Send password reset email"})})]})})},oP=()=>{const{register:e,handleSubmit:t,reset:n,formState:{errors:r}}=Nf(),{isLoading:i,setErrorMessage:o,setSuccessMessage:s,setIsLoading:l}=I.useContext(fo),a=Gy(),u=new URLSearchParams(a.search).get("token"),c=async d=>{var f,y;if(!u){o({title:"The token is missing from the URL. Please check the link you received in your email."});return}if(!d.password||d.password!==d.passwordConfirmation){o({title:"Passwords don't match!"});return}l(!0),o(null),s(null);try{await rP({password:d.password,token:u}),n(),s("Your password has been reset.")}catch(m){o({title:m.message,description:(y=(f=m.data)==null?void 0:f.data)==null?void 0:y.message})}finally{l(!1)}};return g.jsx(g.Fragment,{children:g.jsxs(_f,{onSubmit:t(c),children:[g.jsxs(Xt,{children:[g.jsx(Ur,{children:"New password"}),g.jsx(Br,{...e("password",{required:"Password is required"}),type:"password",disabled:i}),r.passwordConfirmation&&g.jsx(Vr,{children:r.passwordConfirmation.message})]}),g.jsxs(Xt,{children:[g.jsx(Ur,{children:"Confirm new password"}),g.jsx(Br,{...e("passwordConfirmation",{required:"Password confirmation is required"}),type:"password",disabled:i}),r.passwordConfirmation&&g.jsx(Vr,{children:r.passwordConfirmation.message})]}),g.jsx(Xt,{children:g.jsx(jf,{type:"submit",disabled:i,children:"Reset password"})})]})})};async function sP(e){try{return(await Ut.post("/auth/email/verify-email",e)).data}catch(t){rr(t)}}const lP=()=>{const{isLoading:e,setErrorMessage:t,setSuccessMessage:n,setIsLoading:r}=I.useContext(fo),i=Gy(),o=new URLSearchParams(i.search).get("token");async function s(){var l,a;if(!o){t({title:"The token is missing from the URL. Please check the link you received in your email."});return}r(!0),t(null),n(null);try{await sP({token:o}),n("Your email has been verified. You can now log in.")}catch(u){t({title:u.message,description:(a=(l=u.data)==null?void 0:l.data)==null?void 0:a.message})}finally{r(!1)}}return I.useEffect(()=>{s()},[i]),g.jsx(g.Fragment,{children:e&&g.jsx(Af,{children:"Verifying email..."})})},aP={height:"3rem"},uP=Ee("div",{display:"flex",flexDirection:"column"}),cP=Ee("h2",{fontSize:"1.875rem",fontWeight:"700",marginTop:"1.5rem"}),fo=I.createContext({isLoading:!1,setIsLoading:e=>{},setErrorMessage:e=>{},setSuccessMessage:e=>{}});function ho({state:e,appearance:t,logo:n,socialLayout:r="horizontal",additionalSignupFields:i}){const[o,s]=I.useState(null),[l,a]=I.useState(null),[u,c]=I.useState(!1),d=pC(t??{}),y={login:"Log in to your account",signup:"Create a new account","forgot-password":"Forgot your password?","reset-password":"Reset your password","verify-email":"Email verification"}[e],m=r==="vertical"?"vertical":"horizontal";return g.jsxs(uP,{className:d,children:[g.jsxs("div",{children:[n&&g.jsx("img",{style:aP,src:n,alt:"Your Company"}),g.jsx(cP,{children:y})]}),o&&g.jsxs(eP,{children:[o.title,o.description&&": ",o.description]}),l&&g.jsx(tP,{children:l}),g.jsxs(fo.Provider,{value:{isLoading:u,setIsLoading:c,setErrorMessage:s,setSuccessMessage:a},children:[(e==="login"||e==="signup")&&g.jsx(YC,{state:e,socialButtonsDirection:m,additionalSignupFields:i}),e==="forgot-password"&&g.jsx(iP,{}),e==="reset-password"&&g.jsx(oP,{}),e==="verify-email"&&g.jsx(lP,{})]})]})}var Yr=(e=>(e.Login="login",e.Signup="signup",e.ForgotPassword="forgot-password",e.ResetPassword="reset-password",e.VerifyEmail="verify-email",e))(Yr||{});function fP({appearance:e,logo:t,socialLayout:n}){return g.jsx(ho,{appearance:e,logo:t,socialLayout:n,state:Yr.Login})}function po({children:e}){return g.jsx("div",{className:"flex min-h-full flex-col justify-center mt-10 sm:px-6 lg:px-8",children:g.jsx("div",{className:"sm:mx-auto sm:w-full sm:max-w-md",children:g.jsx("div",{className:"bg-white py-8 px-4 shadow-xl ring-1 ring-gray-900/10 sm:rounded-lg sm:px-10",children:g.jsx("div",{className:"-mt-8",children:e})})})})}const dP={colors:{brand:"#0da37f",brandAccent:"#066d55",submitButtonText:"white"}};function hP(){const e=io(),{data:t}=Cf();return I.useEffect(()=>{t&&e.push("/")},[t,e]),g.jsxs(po,{children:[g.jsx(fP,{appearance:dP}),g.jsx("br",{}),g.jsxs("span",{className:"text-sm font-medium text-gray-900",children:["Don't have an account yet?"," ",g.jsx(Zn,{to:"/signup",className:"underline",children:"go to signup"}),"."]}),g.jsx("br",{}),g.jsxs("span",{className:"text-sm font-medium text-gray-900",children:["Forgot your password?"," ",g.jsx(Zn,{to:"/request-password-reset",className:"underline",children:"reset it"}),"."]})]})}function pP({appearance:e,logo:t,socialLayout:n,additionalFields:r}){return g.jsx(ho,{appearance:e,logo:t,socialLayout:n,state:Yr.Signup,additionalSignupFields:r})}function mP(){return g.jsxs(po,{children:[g.jsx(pP,{}),g.jsx("br",{}),g.jsxs("span",{className:"text-sm font-medium text-gray-900",children:["I already have an account (",g.jsx(Zn,{to:"/login",className:"underline",children:"go to login"}),")."]}),g.jsx("br",{})]})}function yP({appearance:e,logo:t,socialLayout:n}){return g.jsx(ho,{appearance:e,logo:t,socialLayout:n,state:Yr.ForgotPassword})}function gP(){return g.jsx(po,{children:g.jsx(yP,{})})}function vP({appearance:e,logo:t,socialLayout:n}){return g.jsx(ho,{appearance:e,logo:t,socialLayout:n,state:Yr.ResetPassword})}function wP(){return g.jsxs(po,{children:[g.jsx(vP,{}),g.jsx("br",{}),g.jsxs("span",{className:"text-sm font-medium text-gray-900",children:["If everything is okay, ",g.jsx(Zn,{to:"/login",children:"go to login"})]})]})}function xP({appearance:e,logo:t,socialLayout:n}){return g.jsx(ho,{appearance:e,logo:t,socialLayout:n,state:Yr.VerifyEmail})}function SP(){return g.jsxs(po,{children:[g.jsx(xP,{}),g.jsx("br",{}),g.jsxs("span",{className:"text-sm font-medium text-gray-900",children:["If everything is okay, ",g.jsx(Zn,{to:"/login",className:"underline",children:"go to login"})]})]})}function Nl(e,t){const n=Bg(e);async function r(o,s){bk(s);try{return await Ug(n,o)}finally{await Nk(t,s)}}const i=o=>r(o,[]);return i.internal=r,i}const EP=Nl("operations/stripe-payment",["User"]),kP=[{name:"Credits",id:"credits",href:"",price:"$2.95",description:"Buy credits to use for your projects.",features:["10 credits","Use them any time","No expiration date"],disabled:!0},{name:"Monthly Subscription",id:"monthly",href:"#",priceMonthly:"$9.99",description:"Get unlimited usage for your projects.",features:["Unlimited usage of all features","Priority support","Cancel any time"]}];function CP(){const[e,t]=I.useState(!1),n=async()=>{t(!0);try{const r=await EP();r!=null&&r.sessionUrl&&window.open(r.sessionUrl,"_self")}catch(r){alert("Something went wrong. Please try again."),console.error(r)}finally{t(!1)}};return g.jsx("div",{className:"mt-10 pb-24 sm:pb-32",children:g.jsx("div",{className:"mx-auto max-w-7xl px-6 lg:px-8",children:g.jsx("div",{className:"mx-auto grid max-w-md grid-cols-1 gap-8 lg:max-w-4xl lg:grid-cols-2",children:kP.map(r=>g.jsxs("div",{className:"flex flex-col justify-between rounded-3xl bg-white p-8 shadow-xl ring-1 ring-gray-900/10 sm:p-10",children:[g.jsxs("div",{children:[g.jsx("h3",{id:r.id,className:"text-base font-semibold leading-7 text-indigo-600",children:r.name}),g.jsxs("div",{className:"mt-4 flex items-baseline gap-x-2",children:[g.jsx("span",{className:"text-5xl font-bold tracking-tight text-gray-900",children:r.priceMonthly||r.price}),r.priceMonthly&&g.jsx("span",{className:"text-base font-semibold leading-7 text-gray-600",children:"/month"})]}),g.jsx("p",{className:"mt-6 text-base leading-7 text-gray-600",children:r.description}),g.jsx("ul",{role:"list",className:"mt-10 space-y-4 text-sm leading-6 text-gray-600",children:r.features.map(i=>g.jsxs("li",{className:"flex gap-x-3",children:[g.jsx(vS,{className:"h-6 w-5 flex-none text-indigo-600","aria-hidden":"true"}),i]},i))})]}),g.jsx("button",{onClick:n,"aria-describedby":r.id,disabled:r.disabled,className:`${r.disabled&&"disabled:opacity-25 disabled:cursor-not-allowed"} mt-8 block rounded-md bg-yellow-400 px-3.5 py-2 text-center text-sm font-semibold leading-6 text-black shadow-sm hover:bg-yellow-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-yellow-600`,children:e?"Loading...":"Buy Now"})]},r.id))})})})}async function PP(){Pk(),await Vg()}function RP({user:e}){return I.useState(!1),g.jsxs("div",{className:"mt-10 px-6 mx-auto w-1/2",children:[g.jsxs("div",{className:"overflow-hidden bg-white ring-1 ring-gray-900/10 shadow-lg sm:rounded-lg lg:m-8 ",children:[g.jsx("div",{className:"px-4 py-5 sm:px-6 lg:px-8",children:g.jsx("h3",{className:"text-base font-semibold leading-6 text-gray-900",children:"Account Information"})}),g.jsx("div",{className:"border-t border-gray-200 px-4 py-5 sm:p-0",children:g.jsx("dl",{className:"sm:divide-y sm:divide-gray-200",children:g.jsxs("div",{className:"py-4 sm:grid sm:grid-cols-3 sm:gap-4 sm:py-5 sm:px-6",children:[g.jsx("dt",{className:"text-sm font-medium text-gray-500",children:"Email address"}),g.jsx("dd",{className:"mt-1 text-sm text-gray-900 sm:col-span-2 sm:mt-0",children:e.email})]})})})]}),g.jsx("div",{className:"inline-flex w-full justify-end",children:g.jsx("button",{onClick:PP,className:"inline-flex justify-center mx-8 py-2 px-4 border border-transparent shadow-md text-sm font-medium rounded-md text-white bg-captn-cta-red hover:bg-captn-cta-red-hover focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500",children:"logout"})})]})}function OP({user:e}){const[t,n]=I.useState("loading"),r=io();return I.useEffect(()=>{function i(){return setTimeout(()=>{r.push("/account")},4e3)}const o=new URLSearchParams(window.location.search),s=o.get("canceled"),l=o.get("success");return o.get("credits"),s?n("canceled"):l?n("paid"):r.push("/account"),i(),()=>{clearTimeout(i())}},[]),g.jsx("div",{className:"flex min-h-full flex-col justify-center mt-10 sm:px-6 lg:px-8",children:g.jsx("div",{className:"sm:mx-auto sm:w-full sm:max-w-md",children:g.jsxs("div",{className:"bg-white py-8 px-4 shadow-xl ring-1 ring-gray-900/10 sm:rounded-lg sm:px-10",children:[g.jsx("h1",{children:t==="paid"?"🥳 Payment Successful!":t==="canceled"?"😢 Payment Canceled":t==="error"&&"🙄 Payment Error"}),t!=="loading"&&g.jsxs("span",{className:"text-center",children:["You are being redirected to your account page... ",g.jsx("br",{})]})]})})})}const TP=Hg("operations/get-chats",["Chat"]),bP=Hg("operations/get-conversations",["Conversation"]),NP=Nl("operations/create-chat",["Chat","Conversation"]),rp=Nl("operations/update-conversation",["Chat","Conversation"]),_P=Nl("operations/generate-open-airesponse",["Chat","Conversation"]),jP=({chats:e})=>e!=null&&e.length?g.jsx("div",{children:e.map((t,n)=>g.jsx(MP,{to:"/chat/:id?",params:{id:t.id},children:g.jsx("li",{children:g.jsxs("div",{className:"flex items-center p-2 text-gray-900 rounded-lg dark:text-white hover:bg-gray-100 dark:hover:bg-gray-700 group",children:[g.jsx("svg",{stroke:"currentColor",fill:"none",strokeWidth:"2",viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",className:"icon-sm",height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg",children:g.jsx("path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"})}),g.jsx("span",{className:"ml-3",children:t.id})]})},n)},t.id))}):g.jsx("div",{children:"No chats"}),AP=({conversations:e})=>e!=null&&e.length?g.jsx("div",{className:"w-full",children:e.map((t,n)=>{const r=t.role==="user"?"captn-light-blue":"captn-dark-blue",i=t.role==="user"?g.jsx("div",{style:{alignItems:"center",background:"#fff",borderRadius:"50%",color:"#444654",display:"flex",flexBasis:"40px",flexGrow:"0",flexShrink:"0",fontSize:"14px",height:"40px",justifyContent:"center",padding:"5px",position:"relative",width:"40px"},className:"flex",children:g.jsx("div",{children:"You"})}):g.jsx("img",{alt:"captn logo",src:Xy,className:"w-full h-full",style:{borderRadius:"50%"}});return g.jsx("div",{children:g.jsx("div",{style:{minHeight:"85px"},className:`flex items-center p-2 text-gray-900 dark:text-white group bg-${r}`,children:g.jsxs("div",{style:{maxWidth:"640px",margin:"auto"},className:`relative ml-3 block w-full p-4 pl-10 text-sm text-gray-900 border-${r} rounded-lg bg-${r} dark:bg-${r} dark:border-${r} dark:placeholder-gray-400 dark:text-white`,children:[g.jsx("span",{className:"absolute inline-block",style:{left:"-15px",top:"6px",height:" 45px",width:"45px"},children:i}),g.jsx("span",{className:"text-base",children:t.content})]})})},n)})}):g.jsx("div",{children:"No conversations"});function $P(e){I.useState(!1);const[t,n]=I.useState([{}]),[r,i]=I.useState(null),{data:o,isLoading:s}=Mu(TP),{data:l,isLoading:a}=Mu(bP,{chatId:Number(e.match.params.id)}),u=io(),c=async f=>{f.preventDefault();try{const y=await NP();n(y.conversation),i(y.id),u.push(`/chat/${y.chatId}`)}catch(y){window.alert("Error: "+y.message)}},d=async f=>{f.preventDefault(),console.log("conversationId"),console.log(r);try{const y=f.target,m=y.userQuery.value;y.reset();const w={conversation_id:l.id,conversations:[...l.conversation,{role:"user",content:m}]};await rp(w);const k=await _P({conversation:w.conversations}),p={conversation_id:l.id,conversations:[...w.conversations,{role:"assistant",content:k.content}]};await rp(p)}catch(y){window.alert("Error: "+y.message)}};return g.jsxs("div",{className:"relative z-0 flex h-full w-full overflow-hidden h-screen",children:[g.jsx("div",{id:"default-sidebar",style:{width:"260px"},className:"flex-shrink-0 overflow-x-hidden dark bg-captn-dark-blue gizmo:bg-black","aria-label":"Sidebar",children:g.jsxs("div",{className:"border-x-captn-light-cream h-full px-3 py-4 overflow-y-auto bg-captn-dark-blue dark:bg-captn-dark-blue",children:[g.jsx("div",{className:"mb-1 flex flex-row gap-2",children:g.jsxs("button",{onClick:c,className:"flex px-3 min-h-[44px] py-1 items-center gap-3 transition-colors duration-200 dark:text-white cursor-pointer text-sm rounded-md rounded-md text-white bg-captn-cta-green hover:bg-captn-cta-green-hover focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 flex-grow overflow-hidden",children:[g.jsxs("svg",{stroke:"currentColor",fill:"none",strokeWidth:"2",viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",className:"icon-sm shrink-0",height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg",children:[g.jsx("line",{x1:"12",y1:"5",x2:"12",y2:"19"}),g.jsx("line",{x1:"5",y1:"12",x2:"19",y2:"12"})]}),"New chat"]})}),g.jsx("div",{className:"flex-col flex-1 transition-opacity duration-500 -mr-2 pr-2 overflow-y-auto",children:g.jsx("ul",{className:"py-5 space-y-2 font-medium",children:o&&g.jsx(jP,{chats:o})})})]})}),g.jsx("div",{className:"relative flex h-full max-w-full flex-1 flex-col overflow-hidden bg-captn-light-blue",children:g.jsx("div",{className:"relative h-full w-full flex-1 overflow-auto transition-width",children:g.jsx("div",{className:"flex h-full flex-col",children:g.jsxs("div",{className:"flex-1 overflow-hidden",children:[g.jsx("div",{className:"flex h-full flex-col items-center justify-between pb-24 overflow-y-auto bg-captn-light-blue",style:{height:"85%"},children:l&&g.jsx(AP,{conversations:l.conversation})}),e.match.params.id?g.jsx("div",{className:"w-full pt-2 md:pt-0 border-t md:border-t-0 dark:border-white/20 md:border-transparent md:dark:border-transparent md:pl-2 gizmo:pl-0 gizmo:md:pl-0 md:w-[calc(100%-.5rem)] absolute bottom-100 left-0 md:bg-vert-light-gradient bg-white dark:bg-gray-800 md:!bg-transparent dark:md:bg-vert-dark-gradient",children:g.jsxs("form",{onSubmit:d,className:"",children:[g.jsx("label",{htmlFor:"search",className:"mb-2 text-sm font-medium text-gray-900 sr-only dark:text-white",children:"Search"}),g.jsxs("div",{className:"relative",children:[g.jsx("div",{className:"absolute inset-y-0 left-0 flex items-center pl-3 pointer-events-none",children:g.jsx("svg",{className:"w-4 h-4 text-gray-500 dark:text-gray-400","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20",children:g.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"m19 19-4-4m0-7A7 7 0 1 1 1 8a7 7 0 0 1 14 0Z"})})}),g.jsx("input",{type:"search",id:"userQuery",name:"search",className:"block w-full p-4 pl-10 text-sm text-gray-900 border border-gray-300 rounded-lg bg-captn-dark-blue focus:ring-blue-500 focus:border-blue-500 dark:bg-captn-dark-blue dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",placeholder:"Search",required:!0}),g.jsx("button",{type:"submit",className:"text-white absolute right-2.5 bottom-2.5 bg-captn-cta-green hover:bg-captn-cta-green-hover focus:ring-4 focus:outline-none focus:ring-blue-300 font-medium rounded-lg text-sm px-4 py-2 dark:bg-captn-cta-green dark:hover:bg-captn-cta-green-hover dark:focus:ring-blue-800",children:"Send"})]})]})}):g.jsx("p",{className:"text-captn-light-cream opacity-70",style:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",fontSize:"60px"},children:"Please initiate a new chat or select existing chats to resume your conversation."})]})})})})]})}function LP({pathToApiServerRouteHandlingOauthRedirect:e}){const t=io(),n=I.useRef(!0);return I.useEffect(()=>{if(!n.current)return;const r=IP(e);return FP(t,r),()=>{n.current=!1}},[t,e]),g.jsx("p",{children:"Completing login process..."})}function IP(e){const t=window.location.search;return`${Sf.apiUrl}${e}${t}`}async function FP(e,t){const n=await DP(t);n!==null?(await iv(n),e.push("/chat")):(console.error("Error obtaining JWT token"),e.push("/login"))}async function DP(e){var t;try{const n=await Ut.get(e);return((t=n==null?void 0:n.data)==null?void 0:t.token)||null}catch(n){return console.error(n),null}}function MP({to:e,params:t,search:n,hash:r,...i}){const o=I.useMemo(()=>kt(e,t,n,r),[e,t]);return g.jsx(Zn,{to:o,...i})}const zP={RootRoute:{to:"/",component:zk,build:e=>kt("/",void 0,e.search,e.hash)},LoginRoute:{to:"/login",component:hP,build:e=>kt("/login",void 0,e.search,e.hash)},SignupRoute:{to:"/signup",component:mP,build:e=>kt("/signup",void 0,e.search,e.hash)},RequestPasswordResetRoute:{to:"/request-password-reset",component:gP,build:e=>kt("/request-password-reset",void 0,e.search,e.hash)},PasswordResetRoute:{to:"/password-reset",component:wP,build:e=>kt("/password-reset",void 0,e.search,e.hash)},EmailVerificationRoute:{to:"/email-verification",component:SP,build:e=>kt("/email-verification",void 0,e.search,e.hash)},PricingRoute:{to:"/pricing",component:CP,build:e=>kt("/pricing",void 0,e.search,e.hash)},AccountRoute:{to:"/account",component:ka(RP),build:e=>kt("/account",void 0,e.search,e.hash)},CheckoutRoute:{to:"/checkout",component:ka(OP),build:e=>kt("/checkout",void 0,e.search,e.hash)},ChatRoute:{to:"/chat/:id?",component:ka($P),build:e=>kt("/chat/:id?",e.params,e.search,e.hash)}},UP=g.jsx(_x,{children:g.jsx(Dk,{children:g.jsxs(Nx,{children:[Object.entries(zP).map(([e,t])=>g.jsx(gh,{exact:!0,path:t.to,component:t.component},e)),g.jsx(gh,{exact:!0,path:"/auth/login/google",children:g.jsx(LP,{pathToApiServerRouteHandlingOauthRedirect:"/auth/google/callback"})})]})})});BP();async function BP(){nE(),await VP()}async function VP(){const e=await pf;Na.createRoot(document.getElementById("root")).render(g.jsx(z.StrictMode,{children:g.jsx(dw,{client:e,children:UP})}))} +`):" "+Ih(o[0]):"as no adapter specified";throw new Z("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return r},adapters:Bu};function wa(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new lo(null,e)}function Fh(e){return wa(e),e.headers=Yt.from(e.headers),e.data=va.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Dg.getAdapter(e.adapter||vf.adapter)(e).then(function(r){return wa(e),r.data=va.call(e,e.transformResponse,r),r.headers=Yt.from(r.headers),r},function(r){return Ig(r)||(wa(e),r&&r.response&&(r.response.data=va.call(e,e.transformResponse,r.response),r.response.headers=Yt.from(r.response.headers))),Promise.reject(r)})}const Dh=e=>e instanceof Yt?e.toJSON():e;function zr(e,t){t=t||{};const n={};function r(u,c,d){return T.isPlainObject(u)&&T.isPlainObject(c)?T.merge.call({caseless:d},u,c):T.isPlainObject(c)?T.merge({},c):T.isArray(c)?c.slice():c}function i(u,c,d){if(T.isUndefined(c)){if(!T.isUndefined(u))return r(void 0,u,d)}else return r(u,c,d)}function o(u,c){if(!T.isUndefined(c))return r(void 0,c)}function s(u,c){if(T.isUndefined(c)){if(!T.isUndefined(u))return r(void 0,u)}else return r(void 0,c)}function l(u,c,d){if(d in t)return r(u,c);if(d in e)return r(void 0,u)}const a={url:o,method:o,data:o,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:l,headers:(u,c)=>i(Dh(u),Dh(c),!0)};return T.forEach(Object.keys(Object.assign({},e,t)),function(c){const d=a[c]||i,f=d(e[c],t[c],c);T.isUndefined(f)&&d!==l||(n[c]=f)}),n}const Mg="1.6.0",wf={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{wf[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Mh={};wf.transitional=function(t,n,r){function i(o,s){return"[Axios v"+Mg+"] Transitional option '"+o+"'"+s+(r?". "+r:"")}return(o,s,l)=>{if(t===!1)throw new Z(i(s," has been removed"+(n?" in "+n:"")),Z.ERR_DEPRECATED);return n&&!Mh[s]&&(Mh[s]=!0,console.warn(i(s," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,s,l):!0}};function hk(e,t,n){if(typeof e!="object")throw new Z("options must be an object",Z.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const o=r[i],s=t[o];if(s){const l=e[o],a=l===void 0||s(l,o,e);if(a!==!0)throw new Z("option "+o+" must be "+a,Z.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Z("Unknown option "+o,Z.ERR_BAD_OPTION)}}const Vu={assertOptions:hk,validators:wf},sn=Vu.validators;class _s{constructor(t){this.defaults=t,this.interceptors={request:new Ah,response:new Ah}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=zr(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:o}=n;r!==void 0&&Vu.assertOptions(r,{silentJSONParsing:sn.transitional(sn.boolean),forcedJSONParsing:sn.transitional(sn.boolean),clarifyTimeoutError:sn.transitional(sn.boolean)},!1),i!=null&&(T.isFunction(i)?n.paramsSerializer={serialize:i}:Vu.assertOptions(i,{encode:sn.function,serialize:sn.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s=o&&T.merge(o.common,o[n.method]);o&&T.forEach(["delete","get","head","post","put","patch","common"],m=>{delete o[m]}),n.headers=Yt.concat(s,o);const l=[];let a=!0;this.interceptors.request.forEach(function(w){typeof w.runWhen=="function"&&w.runWhen(n)===!1||(a=a&&w.synchronous,l.unshift(w.fulfilled,w.rejected))});const u=[];this.interceptors.response.forEach(function(w){u.push(w.fulfilled,w.rejected)});let c,d=0,f;if(!a){const m=[Fh.bind(this),void 0];for(m.unshift.apply(m,l),m.push.apply(m,u),f=m.length,c=Promise.resolve(n);d{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](i);r._listeners=null}),this.promise.then=i=>{let o;const s=new Promise(l=>{r.subscribe(l),o=l}).then(i);return s.cancel=function(){r.unsubscribe(o)},s},t(function(o,s,l){r.reason||(r.reason=new lo(o,s,l),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new xf(function(i){t=i}),cancel:t}}}const pk=xf;function mk(e){return function(n){return e.apply(null,n)}}function yk(e){return T.isObject(e)&&e.isAxiosError===!0}const Hu={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Hu).forEach(([e,t])=>{Hu[t]=e});const gk=Hu;function zg(e){const t=new Zo(e),n=Sg(Zo.prototype.request,t);return T.extend(n,Zo.prototype,t,{allOwnKeys:!0}),T.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return zg(zr(e,i))},n}const Oe=zg(vf);Oe.Axios=Zo;Oe.CanceledError=lo;Oe.CancelToken=pk;Oe.isCancel=Ig;Oe.VERSION=Mg;Oe.toFormData=Ol;Oe.AxiosError=Z;Oe.Cancel=Oe.CanceledError;Oe.all=function(t){return Promise.all(t)};Oe.spread=mk;Oe.isAxiosError=yk;Oe.mergeConfig=zr;Oe.AxiosHeaders=Yt;Oe.formToJSON=e=>Lg(T.isHTMLForm(e)?new FormData(e):e);Oe.getAdapter=Dg.getAdapter;Oe.HttpStatusCode=gk;Oe.default=Oe;const vk=Oe;function wk(e){return e==null?void 0:e.replace(/\/$/,"")}const xk=wk("https://backend.captn.ai")||"http://localhost:3001",Sf={apiUrl:xk};function Sk(e){function t(n){return`${e}:${n}`}return{getPrefixedKey:t,set(n,r){$o(),localStorage.setItem(t(n),JSON.stringify(r))},get(n){$o();const r=localStorage.getItem(t(n));try{return r?JSON.parse(r):void 0}catch{return}},remove(n){$o(),localStorage.removeItem(t(n))},clear(){$o(),Object.keys(localStorage).forEach(n=>{n.startsWith(e)&&localStorage.removeItem(n)})}}}const ao=Sk("wasp");function $o(){if(!window.localStorage)throw new Error("Local storage is not available.")}function Ek(e){return{all:e=e||new Map,on:function(t,n){var r=e.get(t);r?r.push(n):e.set(t,[n])},off:function(t,n){var r=e.get(t);r&&(n?r.splice(r.indexOf(n)>>>0,1):e.set(t,[]))},emit:function(t,n){var r=e.get(t);r&&r.slice().map(function(i){i(n)}),(r=e.get("*"))&&r.slice().map(function(i){i(t,n)})}}}const Xi=Ek(),Ut=vk.create({baseURL:Sf.apiUrl}),bl="authToken";let er=ao.get(bl);function kk(e){er=e,ao.set(bl,e),Xi.emit("authToken.set")}function Ck(){er=void 0,ao.remove(bl),Xi.emit("authToken.clear")}function Pk(){er=void 0,ao.clear(),Xi.emit("authToken.clear")}Ut.interceptors.request.use(e=>(er&&(e.headers.Authorization=`Bearer ${er}`),e));Ut.interceptors.response.use(void 0,e=>{var t;return((t=e.response)==null?void 0:t.status)===401&&Ck(),Promise.reject(e)});window.addEventListener("storage",e=>{e.key===ao.getPrefixedKey(bl)&&(e.newValue?(er=e.newValue,Xi.emit("authToken.set")):(er=void 0,Xi.emit("authToken.clear")))});function rr(e){var t;if(e!=null&&e.response){const n=(t=e.response)==null?void 0:t.data,r=e.response.status;throw new Rk(r,(n==null?void 0:n.message)??e.message,n)}else throw e}class Rk extends Error{constructor(n,r,i){super(r);Al(this,"statusCode");Al(this,"data");this.statusCode=n,this.data=i}}var Ef=(e=>(e.Get="GET",e.Post="POST",e.Put="PUT",e.Delete="DELETE",e))(Ef||{});async function Ug(e,t){try{const n=eE(t),r=await Ut.post(e.path,n);return wg(r.data)}catch(n){rr(n)}}function Bg(e){return{method:Ef.Post,path:`/${e}`}}function Ok(e){const t=new Map;function n(s){return t.get(s)||[]}function r(s,l){const a=e(s),u=n(a);t.set(a,[...u,{queryKey:s,updateQuery:l}])}function i(s){const l=e(s);return n(l).map(({updateQuery:a})=>a)}function o(s){const l=e(s),a=n(l).filter(({queryKey:u})=>u!==s);a.length>0?t.set(l,a):t.delete(l)}return{add:r,remove:o,getUpdateHandlers:i}}const Qu=new Map,kf=Ok(pn);function Tk(e,t){for(const n of t){let r=Qu.get(n);r||(r=new Set,Qu.set(n,r)),r.add(e)}}function bk(e){e.forEach(({queryKey:t,updateQuery:n})=>kf.add(t,n))}async function Nk(e,t){t.forEach(({queryKey:n})=>kf.remove(n)),await jk(e)}function _k(e){return kf.getUpdateHandlers(e)}async function Vg(){const e=await pf;e.resetQueries(),e.removeQueries()}async function jk(e){const t=await pf;$k(e).forEach(r=>t.invalidateQueries(r))}function Ak(e){return Array.from(Qu.get(e)||[])}function $k(e){return Array.from(new Set(e.flatMap(Ak)))}function Hg(e,t){const n=Bg(e);async function r(i,o){const s=await Ug(n,o);return _k(i).reduce((l,a)=>a(l),s)}return Qg(r,{relativeQueryPath:e,queryRoute:n,entitiesUsed:t}),r}function Qg(e,{relativeQueryPath:t,queryRoute:n,entitiesUsed:r}){e.queryCacheKey=[t],e.route=n,Tk(e.queryCacheKey,r)}const Lk=Ik();function Cf(e,t){return Mu(Lk,e,t)}function Ik(){const e="auth/me",t={method:Ef.Get,path:`/${e}`};async function n(){var r;try{const i=await Ut.get(t.path);return wg(i.data)}catch(i){if(((r=i.response)==null?void 0:r.status)===401)return null;rr(i)}}return Qg(n,{relativeQueryPath:e,queryRoute:t,entitiesUsed:["User"]}),n}const xa="inline-flex items-center border-b-2 border-indigo-300 px-1 pt-1 text-sm font-medium text-gray-900",Sa="inline-flex items-center border-b-2 border-transparent px-1 pt-1 text-sm font-medium text-gray-500 hover:border-gray-300 hover:text-gray-700",Ea=window.location.pathname;function Fk(){const{data:e}=Cf();return g.jsx($n,{as:"nav",className:"bg-captn-light-cream shadow sticky top-0 z-50 ",children:({open:t})=>g.jsxs(g.Fragment,{children:[g.jsx("div",{className:"mx-auto max-w-7xl px-4 sm:px-6 lg:px-16",children:g.jsxs("div",{className:"flex h-16 justify-between",children:[g.jsxs("div",{className:"flex",children:[g.jsx("div",{className:"flex flex-shrink-0 items-center",children:g.jsx("a",{href:"/",children:g.jsx("img",{className:"h-8 w-8",src:Xy,alt:"My SaaS App"})})}),g.jsxs("div",{className:"hidden sm:ml-6 sm:flex sm:space-x-8",children:[g.jsx("a",{href:"/",className:Ea==="/"?xa:Sa,children:"Home"}),g.jsx("a",{href:"/chat",className:Ea.includes("chat")?xa:Sa,children:"Chat"})]})]}),g.jsx("div",{className:"hidden sm:ml-6 sm:flex sm:space-x-8",children:g.jsxs("a",{href:e?"/account":"/login",className:Ea==="/account"?xa:Sa,children:[g.jsx(xS,{className:"h-6 w-6 mr-2"}),"Account"]})}),g.jsx("div",{className:"-mr-2 flex items-center sm:hidden",children:g.jsxs($n.Button,{className:"inline-flex items-center justify-center rounded-md p-2 text-gray-400 hover:bg-gray-100 hover:text-gray-500 focus:outline-none focus:ring-2 focus:ring-inset focus:ring-indigo-300",children:[g.jsx("span",{className:"sr-only",children:"Open menu"}),t?g.jsx(wS,{className:"block h-6 w-6","aria-hidden":"true"}):g.jsx(gS,{className:"block h-6 w-6","aria-hidden":"true"})]})})]})}),g.jsx($n.Panel,{className:"sm:hidden",children:g.jsxs("div",{className:"space-y-1 pt-2 pb-3",children:[g.jsx($n.Button,{as:"a",href:"/",className:"block border-l-4 border-indigo-300 bg-indigo-50 py-2 pl-3 pr-4 text-base font-medium text-indigo-500",children:"Landing Page"}),g.jsx($n.Button,{as:"a",href:"/pricing",className:"block border-l-4 border-transparent py-2 pl-3 pr-4 text-base font-medium text-gray-500 hover:border-gray-300 hover:bg-gray-50 hover:text-gray-700",children:"Pricing"}),g.jsx($n.Button,{as:"a",href:"/gpt",className:"block border-l-4 border-transparent py-2 pl-3 pr-4 text-base font-medium text-gray-500 hover:border-gray-300 hover:bg-gray-50 hover:text-gray-700",children:"GPT"}),g.jsx($n.Button,{as:"a",href:"/account",className:"block px-4 py-2 text-base font-medium text-gray-500 hover:bg-gray-100 hover:text-gray-800",children:"Account"})]})})]})})}function Dk({children:e}){return g.jsxs("div",{className:"relative flex-col z-0 flex h-screen w-full overflow-hidden",children:[g.jsx(Fk,{}),g.jsx("div",{className:"max-w-full px-0",children:e})]})}const ka=e=>t=>{const{data:n,isError:r,isSuccess:i,isLoading:o}=Cf();return i?n?g.jsx(e,{...t,user:n}):g.jsx(Cx,{to:"/login"}):o?g.jsx("span",{children:"Loading..."}):r?g.jsx("span",{children:"An error ocurred. Please refresh the page."}):g.jsx("span",{children:"An unknown error ocurred. Please refresh the page."})},Mk="/assets/captn-logo-large-8bedc952.png";function zk(){return g.jsx("div",{children:g.jsxs("div",{className:"mx-auto max-w-7xl pt-10 pb-24 sm:pb-32 lg:grid lg:grid-cols-2 lg:gap-x-8 lg:py-32 lg:px-8",children:[g.jsx("div",{className:"px-6 lg:px-0 lg:pt-4",children:g.jsx("div",{className:"mx-auto max-w-2xl",children:g.jsxs("div",{className:"max-w-lg",children:[g.jsx("h1",{className:" text-4xl font-bold tracking-tight text-captn-dark-blue sm:text-6xl",children:"Capt'n AI"}),g.jsx("p",{className:"mt-4 text-lg leading-8 text-captn-dark-blue",children:"Hey 🧙‍♂️! This is a sneak peek at my product's evolving homepage. Get ready for an amazing launch soon!"})]})})}),g.jsx("div",{className:"mt-20 sm:mt-24 lg:mx-0 md:mx-auto md:max-w-2xl lg:w-screen lg:mt-0 ",children:g.jsx("div",{className:"shadow-lg md:rounded-3xl relative isolate overflow-hidden",children:g.jsxs("div",{className:"bg-captn-light-blue [clip-path:inset(0)] md:[clip-path:inset(0_round_theme(borderRadius.3xl))]",children:[g.jsx("div",{className:"absolute -inset-y-px -z-10 ml-40 w-[200%] bg-captn-light-cream ring-1 ring-inset ring-white ","aria-hidden":"true"}),g.jsx("div",{className:"relative px-6 pt-8 sm:pt-16 md:pl-16 md:pr-0",children:g.jsx("img",{src:Mk})})]})})})]})})}var ie="colors",Qe="sizes",U="space",Uk={gap:U,gridGap:U,columnGap:U,gridColumnGap:U,rowGap:U,gridRowGap:U,inset:U,insetBlock:U,insetBlockEnd:U,insetBlockStart:U,insetInline:U,insetInlineEnd:U,insetInlineStart:U,margin:U,marginTop:U,marginRight:U,marginBottom:U,marginLeft:U,marginBlock:U,marginBlockEnd:U,marginBlockStart:U,marginInline:U,marginInlineEnd:U,marginInlineStart:U,padding:U,paddingTop:U,paddingRight:U,paddingBottom:U,paddingLeft:U,paddingBlock:U,paddingBlockEnd:U,paddingBlockStart:U,paddingInline:U,paddingInlineEnd:U,paddingInlineStart:U,top:U,right:U,bottom:U,left:U,scrollMargin:U,scrollMarginTop:U,scrollMarginRight:U,scrollMarginBottom:U,scrollMarginLeft:U,scrollMarginX:U,scrollMarginY:U,scrollMarginBlock:U,scrollMarginBlockEnd:U,scrollMarginBlockStart:U,scrollMarginInline:U,scrollMarginInlineEnd:U,scrollMarginInlineStart:U,scrollPadding:U,scrollPaddingTop:U,scrollPaddingRight:U,scrollPaddingBottom:U,scrollPaddingLeft:U,scrollPaddingX:U,scrollPaddingY:U,scrollPaddingBlock:U,scrollPaddingBlockEnd:U,scrollPaddingBlockStart:U,scrollPaddingInline:U,scrollPaddingInlineEnd:U,scrollPaddingInlineStart:U,fontSize:"fontSizes",background:ie,backgroundColor:ie,backgroundImage:ie,borderImage:ie,border:ie,borderBlock:ie,borderBlockEnd:ie,borderBlockStart:ie,borderBottom:ie,borderBottomColor:ie,borderColor:ie,borderInline:ie,borderInlineEnd:ie,borderInlineStart:ie,borderLeft:ie,borderLeftColor:ie,borderRight:ie,borderRightColor:ie,borderTop:ie,borderTopColor:ie,caretColor:ie,color:ie,columnRuleColor:ie,fill:ie,outline:ie,outlineColor:ie,stroke:ie,textDecorationColor:ie,fontFamily:"fonts",fontWeight:"fontWeights",lineHeight:"lineHeights",letterSpacing:"letterSpacings",blockSize:Qe,minBlockSize:Qe,maxBlockSize:Qe,inlineSize:Qe,minInlineSize:Qe,maxInlineSize:Qe,width:Qe,minWidth:Qe,maxWidth:Qe,height:Qe,minHeight:Qe,maxHeight:Qe,flexBasis:Qe,gridTemplateColumns:Qe,gridTemplateRows:Qe,borderWidth:"borderWidths",borderTopWidth:"borderWidths",borderRightWidth:"borderWidths",borderBottomWidth:"borderWidths",borderLeftWidth:"borderWidths",borderStyle:"borderStyles",borderTopStyle:"borderStyles",borderRightStyle:"borderStyles",borderBottomStyle:"borderStyles",borderLeftStyle:"borderStyles",borderRadius:"radii",borderTopLeftRadius:"radii",borderTopRightRadius:"radii",borderBottomRightRadius:"radii",borderBottomLeftRadius:"radii",boxShadow:"shadows",textShadow:"shadows",transition:"transitions",zIndex:"zIndices"},Bk=(e,t)=>typeof t=="function"?{"()":Function.prototype.toString.call(t)}:t,Gr=()=>{const e=Object.create(null);return(t,n,...r)=>{const i=(o=>JSON.stringify(o,Bk))(t);return i in e?e[i]:e[i]=n(t,...r)}},Wn=Symbol.for("sxs.internal"),Pf=(e,t)=>Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)),zh=e=>{for(const t in e)return!0;return!1},{hasOwnProperty:Vk}=Object.prototype,Wu=e=>e.includes("-")?e:e.replace(/[A-Z]/g,t=>"-"+t.toLowerCase()),Hk=/\s+(?![^()]*\))/,sr=e=>t=>e(...typeof t=="string"?String(t).split(Hk):[t]),Uh={appearance:e=>({WebkitAppearance:e,appearance:e}),backfaceVisibility:e=>({WebkitBackfaceVisibility:e,backfaceVisibility:e}),backdropFilter:e=>({WebkitBackdropFilter:e,backdropFilter:e}),backgroundClip:e=>({WebkitBackgroundClip:e,backgroundClip:e}),boxDecorationBreak:e=>({WebkitBoxDecorationBreak:e,boxDecorationBreak:e}),clipPath:e=>({WebkitClipPath:e,clipPath:e}),content:e=>({content:e.includes('"')||e.includes("'")||/^([A-Za-z]+\([^]*|[^]*-quote|inherit|initial|none|normal|revert|unset)$/.test(e)?e:`"${e}"`}),hyphens:e=>({WebkitHyphens:e,hyphens:e}),maskImage:e=>({WebkitMaskImage:e,maskImage:e}),maskSize:e=>({WebkitMaskSize:e,maskSize:e}),tabSize:e=>({MozTabSize:e,tabSize:e}),textSizeAdjust:e=>({WebkitTextSizeAdjust:e,textSizeAdjust:e}),userSelect:e=>({WebkitUserSelect:e,userSelect:e}),marginBlock:sr((e,t)=>({marginBlockStart:e,marginBlockEnd:t||e})),marginInline:sr((e,t)=>({marginInlineStart:e,marginInlineEnd:t||e})),maxSize:sr((e,t)=>({maxBlockSize:e,maxInlineSize:t||e})),minSize:sr((e,t)=>({minBlockSize:e,minInlineSize:t||e})),paddingBlock:sr((e,t)=>({paddingBlockStart:e,paddingBlockEnd:t||e})),paddingInline:sr((e,t)=>({paddingInlineStart:e,paddingInlineEnd:t||e}))},Ca=/([\d.]+)([^]*)/,Qk=(e,t)=>e.length?e.reduce((n,r)=>(n.push(...t.map(i=>i.includes("&")?i.replace(/&/g,/[ +>|~]/.test(r)&&/&.*&/.test(i)?`:is(${r})`:r):r+" "+i)),n),[]):t,Wk=(e,t)=>e in qk&&typeof t=="string"?t.replace(/^((?:[^]*[^\w-])?)(fit-content|stretch)((?:[^\w-][^]*)?)$/,(n,r,i,o)=>r+(i==="stretch"?`-moz-available${o};${Wu(e)}:${r}-webkit-fill-available`:`-moz-fit-content${o};${Wu(e)}:${r}fit-content`)+o):String(t),qk={blockSize:1,height:1,inlineSize:1,maxBlockSize:1,maxHeight:1,maxInlineSize:1,maxWidth:1,minBlockSize:1,minHeight:1,minInlineSize:1,minWidth:1,width:1},nn=e=>e?e+"-":"",Wg=(e,t,n)=>e.replace(/([+-])?((?:\d+(?:\.\d*)?|\.\d+)(?:[Ee][+-]?\d+)?)?(\$|--)([$\w-]+)/g,(r,i,o,s,l)=>s=="$"==!!o?r:(i||s=="--"?"calc(":"")+"var(--"+(s==="$"?nn(t)+(l.includes("$")?"":nn(n))+l.replace(/\$/g,"-"):l)+")"+(i||s=="--"?"*"+(i||"")+(o||"1")+")":"")),Kk=/\s*,\s*(?![^()]*\))/,Gk=Object.prototype.toString,Er=(e,t,n,r,i)=>{let o,s,l;const a=(u,c,d)=>{let f,y;const m=w=>{for(f in w){const h=f.charCodeAt(0)===64,v=h&&Array.isArray(w[f])?w[f]:[w[f]];for(y of v){const S=/[A-Z]/.test(p=f)?p:p.replace(/-[^]/g,P=>P[1].toUpperCase()),O=typeof y=="object"&&y&&y.toString===Gk&&(!r.utils[S]||!c.length);if(S in r.utils&&!O){const P=r.utils[S];if(P!==s){s=P,m(P(y)),s=null;continue}}else if(S in Uh){const P=Uh[S];if(P!==l){l=P,m(P(y)),l=null;continue}}if(h&&(k=f.slice(1)in r.media?"@media "+r.media[f.slice(1)]:f,f=k.replace(/\(\s*([\w-]+)\s*(=|<|<=|>|>=)\s*([\w-]+)\s*(?:(<|<=|>|>=)\s*([\w-]+)\s*)?\)/g,(P,E,C,F,L,q)=>{const K=Ca.test(E),W=.0625*(K?-1:1),[Y,J]=K?[F,E]:[E,F];return"("+(C[0]==="="?"":C[0]===">"===K?"max-":"min-")+Y+":"+(C[0]!=="="&&C.length===1?J.replace(Ca,(ae,ge,j)=>Number(ge)+W*(C===">"?1:-1)+j):J)+(L?") and ("+(L[0]===">"?"min-":"max-")+Y+":"+(L.length===1?q.replace(Ca,(ae,ge,j)=>Number(ge)+W*(L===">"?-1:1)+j):q):"")+")"})),O){const P=h?d.concat(f):[...d],E=h?[...c]:Qk(c,f.split(Kk));o!==void 0&&i(Bh(...o)),o=void 0,a(y,E,P)}else o===void 0&&(o=[[],c,d]),f=h||f.charCodeAt(0)!==36?f:`--${nn(r.prefix)}${f.slice(1).replace(/\$/g,"-")}`,y=O?y:typeof y=="number"?y&&S in Yk?String(y)+"px":String(y):Wg(Wk(S,y??""),r.prefix,r.themeMap[S]),o[0].push(`${h?`${f} `:`${Wu(f)}:`}${y}`)}}var k,p};m(u),o!==void 0&&i(Bh(...o)),o=void 0};a(e,t,n)},Bh=(e,t,n)=>`${n.map(r=>`${r}{`).join("")}${t.length?`${t.join(",")}{`:""}${e.join(";")}${t.length?"}":""}${Array(n.length?n.length+1:0).join("}")}`,Yk={animationDelay:1,animationDuration:1,backgroundSize:1,blockSize:1,border:1,borderBlock:1,borderBlockEnd:1,borderBlockEndWidth:1,borderBlockStart:1,borderBlockStartWidth:1,borderBlockWidth:1,borderBottom:1,borderBottomLeftRadius:1,borderBottomRightRadius:1,borderBottomWidth:1,borderEndEndRadius:1,borderEndStartRadius:1,borderInlineEnd:1,borderInlineEndWidth:1,borderInlineStart:1,borderInlineStartWidth:1,borderInlineWidth:1,borderLeft:1,borderLeftWidth:1,borderRadius:1,borderRight:1,borderRightWidth:1,borderSpacing:1,borderStartEndRadius:1,borderStartStartRadius:1,borderTop:1,borderTopLeftRadius:1,borderTopRightRadius:1,borderTopWidth:1,borderWidth:1,bottom:1,columnGap:1,columnRule:1,columnRuleWidth:1,columnWidth:1,containIntrinsicSize:1,flexBasis:1,fontSize:1,gap:1,gridAutoColumns:1,gridAutoRows:1,gridTemplateColumns:1,gridTemplateRows:1,height:1,inlineSize:1,inset:1,insetBlock:1,insetBlockEnd:1,insetBlockStart:1,insetInline:1,insetInlineEnd:1,insetInlineStart:1,left:1,letterSpacing:1,margin:1,marginBlock:1,marginBlockEnd:1,marginBlockStart:1,marginBottom:1,marginInline:1,marginInlineEnd:1,marginInlineStart:1,marginLeft:1,marginRight:1,marginTop:1,maxBlockSize:1,maxHeight:1,maxInlineSize:1,maxWidth:1,minBlockSize:1,minHeight:1,minInlineSize:1,minWidth:1,offsetDistance:1,offsetRotate:1,outline:1,outlineOffset:1,outlineWidth:1,overflowClipMargin:1,padding:1,paddingBlock:1,paddingBlockEnd:1,paddingBlockStart:1,paddingBottom:1,paddingInline:1,paddingInlineEnd:1,paddingInlineStart:1,paddingLeft:1,paddingRight:1,paddingTop:1,perspective:1,right:1,rowGap:1,scrollMargin:1,scrollMarginBlock:1,scrollMarginBlockEnd:1,scrollMarginBlockStart:1,scrollMarginBottom:1,scrollMarginInline:1,scrollMarginInlineEnd:1,scrollMarginInlineStart:1,scrollMarginLeft:1,scrollMarginRight:1,scrollMarginTop:1,scrollPadding:1,scrollPaddingBlock:1,scrollPaddingBlockEnd:1,scrollPaddingBlockStart:1,scrollPaddingBottom:1,scrollPaddingInline:1,scrollPaddingInlineEnd:1,scrollPaddingInlineStart:1,scrollPaddingLeft:1,scrollPaddingRight:1,scrollPaddingTop:1,shapeMargin:1,textDecoration:1,textDecorationThickness:1,textIndent:1,textUnderlineOffset:1,top:1,transitionDelay:1,transitionDuration:1,verticalAlign:1,width:1,wordSpacing:1},Vh=e=>String.fromCharCode(e+(e>25?39:97)),qn=e=>(t=>{let n,r="";for(n=Math.abs(t);n>52;n=n/52|0)r=Vh(n%52)+r;return Vh(n%52)+r})(((t,n)=>{let r=n.length;for(;r;)t=33*t^n.charCodeAt(--r);return t})(5381,JSON.stringify(e))>>>0),mi=["themed","global","styled","onevar","resonevar","allvar","inline"],Xk=e=>{if(e.href&&!e.href.startsWith(location.origin))return!1;try{return!!e.cssRules}catch{return!1}},Jk=e=>{let t;const n=()=>{const{cssRules:i}=t.sheet;return[].map.call(i,(o,s)=>{const{cssText:l}=o;let a="";if(l.startsWith("--sxs"))return"";if(i[s-1]&&(a=i[s-1].cssText).startsWith("--sxs")){if(!o.cssRules.length)return"";for(const u in t.rules)if(t.rules[u].group===o)return`--sxs{--sxs:${[...t.rules[u].cache].join(" ")}}${l}`;return o.cssRules.length?`${a}${l}`:""}return l}).join("")},r=()=>{if(t){const{rules:l,sheet:a}=t;if(!a.deleteRule){for(;Object(Object(a.cssRules)[0]).type===3;)a.cssRules.splice(0,1);a.cssRules=[]}for(const u in l)delete l[u]}const i=Object(e).styleSheets||[];for(const l of i)if(Xk(l)){for(let a=0,u=l.cssRules;u[a];++a){const c=Object(u[a]);if(c.type!==1)continue;const d=Object(u[a+1]);if(d.type!==4)continue;++a;const{cssText:f}=c;if(!f.startsWith("--sxs"))continue;const y=f.slice(14,-3).trim().split(/\s+/),m=mi[y[0]];m&&(t||(t={sheet:l,reset:r,rules:{},toString:n}),t.rules[m]={group:d,index:a,cache:new Set(y)})}if(t)break}if(!t){const l=(a,u)=>({type:u,cssRules:[],insertRule(c,d){this.cssRules.splice(d,0,l(c,{import:3,undefined:1}[(c.toLowerCase().match(/^@([a-z]+)/)||[])[1]]||4))},get cssText(){return a==="@media{}"?`@media{${[].map.call(this.cssRules,c=>c.cssText).join("")}}`:a}});t={sheet:e?(e.head||e).appendChild(document.createElement("style")).sheet:l("","text/css"),rules:{},reset:r,toString:n}}const{sheet:o,rules:s}=t;for(let l=mi.length-1;l>=0;--l){const a=mi[l];if(!s[a]){const u=mi[l+1],c=s[u]?s[u].index:o.cssRules.length;o.insertRule("@media{}",c),o.insertRule(`--sxs{--sxs:${l}}`,c),s[a]={group:o.cssRules[c+1],index:c,cache:new Set([l])}}Zk(s[a])}};return r(),t},Zk=e=>{const t=e.group;let n=t.cssRules.length;e.apply=r=>{try{t.insertRule(r,n),++n}catch{}}},ai=Symbol(),eC=Gr(),Hh=(e,t)=>eC(e,()=>(...n)=>{let r={type:null,composers:new Set};for(const i of n)if(i!=null)if(i[Wn]){r.type==null&&(r.type=i[Wn].type);for(const o of i[Wn].composers)r.composers.add(o)}else i.constructor!==Object||i.$$typeof?r.type==null&&(r.type=i):r.composers.add(tC(i,e));return r.type==null&&(r.type="span"),r.composers.size||r.composers.add(["PJLV",{},[],[],{},[]]),nC(e,r,t)}),tC=({variants:e,compoundVariants:t,defaultVariants:n,...r},i)=>{const o=`${nn(i.prefix)}c-${qn(r)}`,s=[],l=[],a=Object.create(null),u=[];for(const f in n)a[f]=String(n[f]);if(typeof e=="object"&&e)for(const f in e){c=a,d=f,Vk.call(c,d)||(a[f]="undefined");const y=e[f];for(const m in y){const w={[f]:String(m)};String(m)==="undefined"&&u.push(f);const k=y[m],p=[w,k,!zh(k)];s.push(p)}}var c,d;if(typeof t=="object"&&t)for(const f of t){let{css:y,...m}=f;y=typeof y=="object"&&y||{};for(const k in m)m[k]=String(m[k]);const w=[m,y,!zh(y)];l.push(w)}return[o,r,s,l,a,u]},nC=(e,t,n)=>{const[r,i,o,s]=rC(t.composers),l=typeof t.type=="function"||t.type.$$typeof?(d=>{function f(){for(let y=0;yf.rules[y]={apply:m=>f[ai].push([y,m])}),f})(n):null,a=(l||n).rules,u=`.${r}${i.length>1?`:where(.${i.slice(1).join(".")})`:""}`,c=d=>{d=typeof d=="object"&&d||iC;const{css:f,...y}=d,m={};for(const p in o)if(delete y[p],p in d){let h=d[p];typeof h=="object"&&h?m[p]={"@initial":o[p],...h}:(h=String(h),m[p]=h!=="undefined"||s.has(p)?h:o[p])}else m[p]=o[p];const w=new Set([...i]);for(const[p,h,v,S]of t.composers){n.rules.styled.cache.has(p)||(n.rules.styled.cache.add(p),Er(h,[`.${p}`],[],e,E=>{a.styled.apply(E)}));const O=Qh(v,m,e.media),P=Qh(S,m,e.media,!0);for(const E of O)if(E!==void 0)for(const[C,F,L]of E){const q=`${p}-${qn(F)}-${C}`;w.add(q);const K=(L?n.rules.resonevar:n.rules.onevar).cache,W=L?a.resonevar:a.onevar;K.has(q)||(K.add(q),Er(F,[`.${q}`],[],e,Y=>{W.apply(Y)}))}for(const E of P)if(E!==void 0)for(const[C,F]of E){const L=`${p}-${qn(F)}-${C}`;w.add(L),n.rules.allvar.cache.has(L)||(n.rules.allvar.cache.add(L),Er(F,[`.${L}`],[],e,q=>{a.allvar.apply(q)}))}}if(typeof f=="object"&&f){const p=`${r}-i${qn(f)}-css`;w.add(p),n.rules.inline.cache.has(p)||(n.rules.inline.cache.add(p),Er(f,[`.${p}`],[],e,h=>{a.inline.apply(h)}))}for(const p of String(d.className||"").trim().split(/\s+/))p&&w.add(p);const k=y.className=[...w].join(" ");return{type:t.type,className:k,selector:u,props:y,toString:()=>k,deferredInjector:l}};return Pf(c,{className:r,selector:u,[Wn]:t,toString:()=>(n.rules.styled.cache.has(r)||c(),r)})},rC=e=>{let t="";const n=[],r={},i=[];for(const[o,,,,s,l]of e){t===""&&(t=o),n.push(o),i.push(...l);for(const a in s){const u=s[a];(r[a]===void 0||u!=="undefined"||l.includes(u))&&(r[a]=u)}}return[t,n,r,new Set(i)]},Qh=(e,t,n,r)=>{const i=[];e:for(let[o,s,l]of e){if(l)continue;let a,u=0,c=!1;for(a in o){const d=o[a];let f=t[a];if(f!==d){if(typeof f!="object"||!f)continue e;{let y,m,w=0;for(const k in f){if(d===String(f[k])){if(k!=="@initial"){const p=k.slice(1);(m=m||[]).push(p in n?n[p]:k.replace(/^@media ?/,"")),c=!0}u+=w,y=!0}++w}if(m&&m.length&&(s={["@media "+m.join(", ")]:s}),!y)continue e}}}(i[u]=i[u]||[]).push([r?"cv":`${a}-${o[a]}`,s,c])}return i},iC={},oC=Gr(),sC=(e,t)=>oC(e,()=>(...n)=>{const r=()=>{for(let i of n){i=typeof i=="object"&&i||{};let o=qn(i);if(!t.rules.global.cache.has(o)){if(t.rules.global.cache.add(o),"@import"in i){let s=[].indexOf.call(t.sheet.cssRules,t.rules.themed.group)-1;for(let l of[].concat(i["@import"]))l=l.includes('"')||l.includes("'")?l:`"${l}"`,t.sheet.insertRule(`@import ${l};`,s++);delete i["@import"]}Er(i,[],[],e,s=>{t.rules.global.apply(s)})}}return""};return Pf(r,{toString:r})}),lC=Gr(),aC=(e,t)=>lC(e,()=>n=>{const r=`${nn(e.prefix)}k-${qn(n)}`,i=()=>{if(!t.rules.global.cache.has(r)){t.rules.global.cache.add(r);const o=[];Er(n,[],[],e,l=>o.push(l));const s=`@keyframes ${r}{${o.join("")}}`;t.rules.global.apply(s)}return r};return Pf(i,{get name(){return i()},toString:i})}),uC=class{constructor(e,t,n,r){this.token=e==null?"":String(e),this.value=t==null?"":String(t),this.scale=n==null?"":String(n),this.prefix=r==null?"":String(r)}get computedValue(){return"var("+this.variable+")"}get variable(){return"--"+nn(this.prefix)+nn(this.scale)+this.token}toString(){return this.computedValue}},cC=Gr(),fC=(e,t)=>cC(e,()=>(n,r)=>{r=typeof n=="object"&&n||Object(r);const i=`.${n=(n=typeof n=="string"?n:"")||`${nn(e.prefix)}t-${qn(r)}`}`,o={},s=[];for(const a in r){o[a]={};for(const u in r[a]){const c=`--${nn(e.prefix)}${a}-${u}`,d=Wg(String(r[a][u]),e.prefix,a);o[a][u]=new uC(u,d,a,e.prefix),s.push(`${c}:${d}`)}}const l=()=>{if(s.length&&!t.rules.themed.cache.has(n)){t.rules.themed.cache.add(n);const a=`${r===e.theme?":root,":""}.${n}{${s.join(";")}}`;t.rules.themed.apply(a)}return n};return{...o,get className(){return l()},selector:i,toString:l}}),dC=Gr(),Wh,hC=Gr(),qg=e=>{const t=(n=>{let r=!1;const i=dC(n,o=>{r=!0;const s="prefix"in(o=typeof o=="object"&&o||{})?String(o.prefix):"",l=typeof o.media=="object"&&o.media||{},a=typeof o.root=="object"?o.root||null:globalThis.document||null,u=typeof o.theme=="object"&&o.theme||{},c={prefix:s,media:l,theme:u,themeMap:typeof o.themeMap=="object"&&o.themeMap||{...Uk},utils:typeof o.utils=="object"&&o.utils||{}},d=Jk(a),f={css:Hh(c,d),globalCss:sC(c,d),keyframes:aC(c,d),createTheme:fC(c,d),reset(){d.reset(),f.theme.toString()},theme:{},sheet:d,config:c,prefix:s,getCssText:d.toString,toString:d.toString};return String(f.theme=f.createTheme(u)),f});return r||i.reset(),i})(e);return t.styled=(({config:n,sheet:r})=>hC(n,()=>{const i=Hh(n,r);return(...o)=>{const s=i(...o),l=s[Wn].type,a=z.forwardRef((u,c)=>{const d=u&&u.as||l,{props:f,deferredInjector:y}=s(u);return delete f.as,f.ref=c,y?z.createElement(z.Fragment,null,z.createElement(d,f),z.createElement(y,null)):z.createElement(d,f)});return a.className=s.className,a.displayName=`Styled.${l.displayName||l.name||l}`,a.selector=s.selector,a.toString=()=>s.selector,a[Wn]=s[Wn],a}}))(t),t},Kg=()=>Wh||(Wh=qg()),pC=(...e)=>Kg().createTheme(...e),mC=(...e)=>Kg().css(...e);const{styled:Ee,css:GP}=qg({theme:{colors:{waspYellow:"#ffcc00",gray700:"#a1a5ab",gray600:"#d1d5db",gray500:"gainsboro",gray400:"#f0f0f0",red:"#FED7D7",darkRed:"#fa3838",green:"#C6F6D5",brand:"$waspYellow",brandAccent:"#ffdb46",errorBackground:"$red",errorText:"#2D3748",successBackground:"$green",successText:"#2D3748",submitButtonText:"black",formErrorText:"$darkRed"},fontSizes:{sm:"0.875rem"}}});var uo=e=>e.type==="checkbox",kr=e=>e instanceof Date,qe=e=>e==null;const Gg=e=>typeof e=="object";var _e=e=>!qe(e)&&!Array.isArray(e)&&Gg(e)&&!kr(e),yC=e=>_e(e)&&e.target?uo(e.target)?e.target.checked:e.target.value:e,gC=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,vC=(e,t)=>e.has(gC(t)),wC=e=>{const t=e.constructor&&e.constructor.prototype;return _e(t)&&t.hasOwnProperty("isPrototypeOf")},Rf=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Vt(e){let t;const n=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(Rf&&(e instanceof Blob||e instanceof FileList))&&(n||_e(e)))if(t=n?[]:{},!n&&!wC(e))t=e;else for(const r in e)e.hasOwnProperty(r)&&(t[r]=Vt(e[r]));else return e;return t}var co=e=>Array.isArray(e)?e.filter(Boolean):[],Ce=e=>e===void 0,V=(e,t,n)=>{if(!t||!_e(e))return n;const r=co(t.split(/[,[\].]+?/)).reduce((i,o)=>qe(i)?i:i[o],e);return Ce(r)||r===e?Ce(e[t])?n:e[t]:r},Un=e=>typeof e=="boolean";const qh={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},Ot={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},Bt={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"};z.createContext(null);var xC=(e,t,n,r=!0)=>{const i={defaultValues:t._defaultValues};for(const o in e)Object.defineProperty(i,o,{get:()=>{const s=o;return t._proxyFormState[s]!==Ot.all&&(t._proxyFormState[s]=!r||Ot.all),n&&(n[s]=!0),e[s]}});return i},ht=e=>_e(e)&&!Object.keys(e).length,SC=(e,t,n,r)=>{n(e);const{name:i,...o}=e;return ht(o)||Object.keys(o).length>=Object.keys(t).length||Object.keys(o).find(s=>t[s]===(!r||Ot.all))},Pa=e=>Array.isArray(e)?e:[e];function EC(e){const t=z.useRef(e);t.current=e,z.useEffect(()=>{const n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}},[e.disabled])}var It=e=>typeof e=="string",kC=(e,t,n,r,i)=>It(e)?(r&&t.watch.add(e),V(n,e,i)):Array.isArray(e)?e.map(o=>(r&&t.watch.add(o),V(n,o))):(r&&(t.watchAll=!0),n),Of=e=>/^\w*$/.test(e),Yg=e=>co(e.replace(/["|']|\]/g,"").split(/\.|\[/));function fe(e,t,n){let r=-1;const i=Of(t)?[t]:Yg(t),o=i.length,s=o-1;for(;++rt?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:i||!0}}:{};const qu=(e,t,n)=>{for(const r of n||Object.keys(e)){const i=V(e,r);if(i){const{_f:o,...s}=i;if(o&&t(o.name)){if(o.ref.focus){o.ref.focus();break}else if(o.refs&&o.refs[0].focus){o.refs[0].focus();break}}else _e(s)&&qu(s,t)}}};var Kh=e=>({isOnSubmit:!e||e===Ot.onSubmit,isOnBlur:e===Ot.onBlur,isOnChange:e===Ot.onChange,isOnAll:e===Ot.all,isOnTouch:e===Ot.onTouched}),Gh=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length)))),PC=(e,t,n)=>{const r=co(V(e,n));return fe(r,"root",t[n]),fe(e,n,r),e},Tf=e=>e.type==="file",yn=e=>typeof e=="function",js=e=>{if(!Rf)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},es=e=>It(e),bf=e=>e.type==="radio",As=e=>e instanceof RegExp;const Yh={value:!1,isValid:!1},Xh={value:!0,isValid:!0};var Xg=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(n=>n&&n.checked&&!n.disabled).map(n=>n.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!Ce(e[0].attributes.value)?Ce(e[0].value)||e[0].value===""?Xh:{value:e[0].value,isValid:!0}:Xh:Yh}return Yh};const Jh={isValid:!1,value:null};var Jg=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,Jh):Jh;function Zh(e,t,n="validate"){if(es(e)||Array.isArray(e)&&e.every(es)||Un(e)&&!e)return{type:n,message:es(e)?e:"",ref:t}}var lr=e=>_e(e)&&!As(e)?e:{value:e,message:""},ep=async(e,t,n,r,i)=>{const{ref:o,refs:s,required:l,maxLength:a,minLength:u,min:c,max:d,pattern:f,validate:y,name:m,valueAsNumber:w,mount:k,disabled:p}=e._f,h=V(t,m);if(!k||p)return{};const v=s?s[0]:o,S=K=>{r&&v.reportValidity&&(v.setCustomValidity(Un(K)?"":K||""),v.reportValidity())},O={},P=bf(o),E=uo(o),C=P||E,F=(w||Tf(o))&&Ce(o.value)&&Ce(h)||js(o)&&o.value===""||h===""||Array.isArray(h)&&!h.length,L=CC.bind(null,m,n,O),q=(K,W,Y,J=Bt.maxLength,ae=Bt.minLength)=>{const ge=K?W:Y;O[m]={type:K?J:ae,message:ge,ref:o,...L(K?J:ae,ge)}};if(i?!Array.isArray(h)||!h.length:l&&(!C&&(F||qe(h))||Un(h)&&!h||E&&!Xg(s).isValid||P&&!Jg(s).isValid)){const{value:K,message:W}=es(l)?{value:!!l,message:l}:lr(l);if(K&&(O[m]={type:Bt.required,message:W,ref:v,...L(Bt.required,W)},!n))return S(W),O}if(!F&&(!qe(c)||!qe(d))){let K,W;const Y=lr(d),J=lr(c);if(!qe(h)&&!isNaN(h)){const ae=o.valueAsNumber||h&&+h;qe(Y.value)||(K=ae>Y.value),qe(J.value)||(W=aenew Date(new Date().toDateString()+" "+N),j=o.type=="time",A=o.type=="week";It(Y.value)&&h&&(K=j?ge(h)>ge(Y.value):A?h>Y.value:ae>new Date(Y.value)),It(J.value)&&h&&(W=j?ge(h)+K.value,J=!qe(W.value)&&h.length<+W.value;if((Y||J)&&(q(Y,K.message,W.message),!n))return S(O[m].message),O}if(f&&!F&&It(h)){const{value:K,message:W}=lr(f);if(As(K)&&!h.match(K)&&(O[m]={type:Bt.pattern,message:W,ref:o,...L(Bt.pattern,W)},!n))return S(W),O}if(y){if(yn(y)){const K=await y(h,t),W=Zh(K,v);if(W&&(O[m]={...W,...L(Bt.validate,W.message)},!n))return S(W.message),O}else if(_e(y)){let K={};for(const W in y){if(!ht(K)&&!n)break;const Y=Zh(await y[W](h,t),v,W);Y&&(K={...Y,...L(W,Y.message)},S(Y.message),n&&(O[m]=K))}if(!ht(K)&&(O[m]={ref:v,...K},!n))return O}}return S(!0),O};function RC(e,t){const n=t.slice(0,-1).length;let r=0;for(;r{for(const o of e)o.next&&o.next(i)},subscribe:i=>(e.push(i),{unsubscribe:()=>{e=e.filter(o=>o!==i)}}),unsubscribe:()=>{e=[]}}}var $s=e=>qe(e)||!Gg(e);function Bn(e,t){if($s(e)||$s(t))return e===t;if(kr(e)&&kr(t))return e.getTime()===t.getTime();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const i of n){const o=e[i];if(!r.includes(i))return!1;if(i!=="ref"){const s=t[i];if(kr(o)&&kr(s)||_e(o)&&_e(s)||Array.isArray(o)&&Array.isArray(s)?!Bn(o,s):o!==s)return!1}}return!0}var Zg=e=>e.type==="select-multiple",TC=e=>bf(e)||uo(e),Oa=e=>js(e)&&e.isConnected,ev=e=>{for(const t in e)if(yn(e[t]))return!0;return!1};function Ls(e,t={}){const n=Array.isArray(e);if(_e(e)||n)for(const r in e)Array.isArray(e[r])||_e(e[r])&&!ev(e[r])?(t[r]=Array.isArray(e[r])?[]:{},Ls(e[r],t[r])):qe(e[r])||(t[r]=!0);return t}function tv(e,t,n){const r=Array.isArray(e);if(_e(e)||r)for(const i in e)Array.isArray(e[i])||_e(e[i])&&!ev(e[i])?Ce(t)||$s(n[i])?n[i]=Array.isArray(e[i])?Ls(e[i],[]):{...Ls(e[i])}:tv(e[i],qe(t)?{}:t[i],n[i]):n[i]=!Bn(e[i],t[i]);return n}var Ta=(e,t)=>tv(e,t,Ls(t)),nv=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>Ce(e)?e:t?e===""?NaN:e&&+e:n&&It(e)?new Date(e):r?r(e):e;function ba(e){const t=e.ref;if(!(e.refs?e.refs.every(n=>n.disabled):t.disabled))return Tf(t)?t.files:bf(t)?Jg(e.refs).value:Zg(t)?[...t.selectedOptions].map(({value:n})=>n):uo(t)?Xg(e.refs).value:nv(Ce(t.value)?e.ref.value:t.value,e)}var bC=(e,t,n,r)=>{const i={};for(const o of e){const s=V(t,o);s&&fe(i,o,s._f)}return{criteriaMode:n,names:[...e],fields:i,shouldUseNativeValidation:r}},ui=e=>Ce(e)?e:As(e)?e.source:_e(e)?As(e.value)?e.value.source:e.value:e,NC=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function tp(e,t,n){const r=V(e,n);if(r||Of(n))return{error:r,name:n};const i=n.split(".");for(;i.length;){const o=i.join("."),s=V(t,o),l=V(e,o);if(s&&!Array.isArray(s)&&n!==o)return{name:n};if(l&&l.type)return{name:o,error:l};i.pop()}return{name:n}}var _C=(e,t,n,r,i)=>i.isOnAll?!1:!n&&i.isOnTouch?!(t||e):(n?r.isOnBlur:i.isOnBlur)?!e:(n?r.isOnChange:i.isOnChange)?e:!0,jC=(e,t)=>!co(V(e,t)).length&&Ie(e,t);const AC={mode:Ot.onSubmit,reValidateMode:Ot.onChange,shouldFocusError:!0};function $C(e={},t){let n={...AC,...e},r={submitCount:0,isDirty:!1,isLoading:yn(n.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},errors:{}},i={},o=_e(n.defaultValues)||_e(n.values)?Vt(n.defaultValues||n.values)||{}:{},s=n.shouldUnregister?{}:Vt(o),l={action:!1,mount:!1,watch:!1},a={mount:new Set,unMount:new Set,array:new Set,watch:new Set},u,c=0;const d={isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},f={values:Ra(),array:Ra(),state:Ra()},y=e.resetOptions&&e.resetOptions.keepDirtyValues,m=Kh(n.mode),w=Kh(n.reValidateMode),k=n.criteriaMode===Ot.all,p=x=>R=>{clearTimeout(c),c=setTimeout(x,R)},h=async x=>{if(d.isValid||x){const R=n.resolver?ht((await F()).errors):await q(i,!0);R!==r.isValid&&f.state.next({isValid:R})}},v=x=>d.isValidating&&f.state.next({isValidating:x}),S=(x,R=[],b,Q,D=!0,$=!0)=>{if(Q&&b){if(l.action=!0,$&&Array.isArray(V(i,x))){const G=b(V(i,x),Q.argA,Q.argB);D&&fe(i,x,G)}if($&&Array.isArray(V(r.errors,x))){const G=b(V(r.errors,x),Q.argA,Q.argB);D&&fe(r.errors,x,G),jC(r.errors,x)}if(d.touchedFields&&$&&Array.isArray(V(r.touchedFields,x))){const G=b(V(r.touchedFields,x),Q.argA,Q.argB);D&&fe(r.touchedFields,x,G)}d.dirtyFields&&(r.dirtyFields=Ta(o,s)),f.state.next({name:x,isDirty:W(x,R),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else fe(s,x,R)},O=(x,R)=>{fe(r.errors,x,R),f.state.next({errors:r.errors})},P=(x,R,b,Q)=>{const D=V(i,x);if(D){const $=V(s,x,Ce(b)?V(o,x):b);Ce($)||Q&&Q.defaultChecked||R?fe(s,x,R?$:ba(D._f)):ae(x,$),l.mount&&h()}},E=(x,R,b,Q,D)=>{let $=!1,G=!1;const ve={name:x};if(!b||Q){d.isDirty&&(G=r.isDirty,r.isDirty=ve.isDirty=W(),$=G!==ve.isDirty);const xe=Bn(V(o,x),R);G=V(r.dirtyFields,x),xe?Ie(r.dirtyFields,x):fe(r.dirtyFields,x,!0),ve.dirtyFields=r.dirtyFields,$=$||d.dirtyFields&&G!==!xe}if(b){const xe=V(r.touchedFields,x);xe||(fe(r.touchedFields,x,b),ve.touchedFields=r.touchedFields,$=$||d.touchedFields&&xe!==b)}return $&&D&&f.state.next(ve),$?ve:{}},C=(x,R,b,Q)=>{const D=V(r.errors,x),$=d.isValid&&Un(R)&&r.isValid!==R;if(e.delayError&&b?(u=p(()=>O(x,b)),u(e.delayError)):(clearTimeout(c),u=null,b?fe(r.errors,x,b):Ie(r.errors,x)),(b?!Bn(D,b):D)||!ht(Q)||$){const G={...Q,...$&&Un(R)?{isValid:R}:{},errors:r.errors,name:x};r={...r,...G},f.state.next(G)}v(!1)},F=async x=>n.resolver(s,n.context,bC(x||a.mount,i,n.criteriaMode,n.shouldUseNativeValidation)),L=async x=>{const{errors:R}=await F(x);if(x)for(const b of x){const Q=V(R,b);Q?fe(r.errors,b,Q):Ie(r.errors,b)}else r.errors=R;return R},q=async(x,R,b={valid:!0})=>{for(const Q in x){const D=x[Q];if(D){const{_f:$,...G}=D;if($){const ve=a.array.has($.name),xe=await ep(D,s,k,n.shouldUseNativeValidation&&!R,ve);if(xe[$.name]&&(b.valid=!1,R))break;!R&&(V(xe,$.name)?ve?PC(r.errors,xe,$.name):fe(r.errors,$.name,xe[$.name]):Ie(r.errors,$.name))}G&&await q(G,R,b)}}return b.valid},K=()=>{for(const x of a.unMount){const R=V(i,x);R&&(R._f.refs?R._f.refs.every(b=>!Oa(b)):!Oa(R._f.ref))&&he(x)}a.unMount=new Set},W=(x,R)=>(x&&R&&fe(s,x,R),!Bn(H(),o)),Y=(x,R,b)=>kC(x,a,{...l.mount?s:Ce(R)?o:It(x)?{[x]:R}:R},b,R),J=x=>co(V(l.mount?s:o,x,e.shouldUnregister?V(o,x,[]):[])),ae=(x,R,b={})=>{const Q=V(i,x);let D=R;if(Q){const $=Q._f;$&&(!$.disabled&&fe(s,x,nv(R,$)),D=js($.ref)&&qe(R)?"":R,Zg($.ref)?[...$.ref.options].forEach(G=>G.selected=D.includes(G.value)):$.refs?uo($.ref)?$.refs.length>1?$.refs.forEach(G=>(!G.defaultChecked||!G.disabled)&&(G.checked=Array.isArray(D)?!!D.find(ve=>ve===G.value):D===G.value)):$.refs[0]&&($.refs[0].checked=!!D):$.refs.forEach(G=>G.checked=G.value===D):Tf($.ref)?$.ref.value="":($.ref.value=D,$.ref.type||f.values.next({name:x,values:{...s}})))}(b.shouldDirty||b.shouldTouch)&&E(x,D,b.shouldTouch,b.shouldDirty,!0),b.shouldValidate&&N(x)},ge=(x,R,b)=>{for(const Q in R){const D=R[Q],$=`${x}.${Q}`,G=V(i,$);(a.array.has(x)||!$s(D)||G&&!G._f)&&!kr(D)?ge($,D,b):ae($,D,b)}},j=(x,R,b={})=>{const Q=V(i,x),D=a.array.has(x),$=Vt(R);fe(s,x,$),D?(f.array.next({name:x,values:{...s}}),(d.isDirty||d.dirtyFields)&&b.shouldDirty&&f.state.next({name:x,dirtyFields:Ta(o,s),isDirty:W(x,$)})):Q&&!Q._f&&!qe($)?ge(x,$,b):ae(x,$,b),Gh(x,a)&&f.state.next({...r}),f.values.next({name:x,values:{...s}}),!l.mount&&t()},A=async x=>{const R=x.target;let b=R.name,Q=!0;const D=V(i,b),$=()=>R.type?ba(D._f):yC(x);if(D){let G,ve;const xe=$(),ir=x.type===qh.BLUR||x.type===qh.FOCUS_OUT,sv=!NC(D._f)&&!n.resolver&&!V(r.errors,b)&&!D._f.deps||_C(ir,V(r.touchedFields,b),r.isSubmitted,w,m),_l=Gh(b,a,ir);fe(s,b,xe),ir?(D._f.onBlur&&D._f.onBlur(x),u&&u(0)):D._f.onChange&&D._f.onChange(x);const jl=E(b,xe,ir,!1),lv=!ht(jl)||_l;if(!ir&&f.values.next({name:b,type:x.type,values:{...s}}),sv)return d.isValid&&h(),lv&&f.state.next({name:b,..._l?{}:jl});if(!ir&&_l&&f.state.next({...r}),v(!0),n.resolver){const{errors:Ff}=await F([b]),av=tp(r.errors,i,b),Df=tp(Ff,i,av.name||b);G=Df.error,b=Df.name,ve=ht(Ff)}else G=(await ep(D,s,k,n.shouldUseNativeValidation))[b],Q=Number.isNaN(xe)||xe===V(s,b,xe),Q&&(G?ve=!1:d.isValid&&(ve=await q(i,!0)));Q&&(D._f.deps&&N(D._f.deps),C(b,ve,G,jl))}},N=async(x,R={})=>{let b,Q;const D=Pa(x);if(v(!0),n.resolver){const $=await L(Ce(x)?x:D);b=ht($),Q=x?!D.some(G=>V($,G)):b}else x?(Q=(await Promise.all(D.map(async $=>{const G=V(i,$);return await q(G&&G._f?{[$]:G}:G)}))).every(Boolean),!(!Q&&!r.isValid)&&h()):Q=b=await q(i);return f.state.next({...!It(x)||d.isValid&&b!==r.isValid?{}:{name:x},...n.resolver||!x?{isValid:b}:{},errors:r.errors,isValidating:!1}),R.shouldFocus&&!Q&&qu(i,$=>$&&V(r.errors,$),x?D:a.mount),Q},H=x=>{const R={...o,...l.mount?s:{}};return Ce(x)?R:It(x)?V(R,x):x.map(b=>V(R,b))},B=(x,R)=>({invalid:!!V((R||r).errors,x),isDirty:!!V((R||r).dirtyFields,x),isTouched:!!V((R||r).touchedFields,x),error:V((R||r).errors,x)}),te=x=>{x&&Pa(x).forEach(R=>Ie(r.errors,R)),f.state.next({errors:x?r.errors:{}})},se=(x,R,b)=>{const Q=(V(i,x,{_f:{}})._f||{}).ref;fe(r.errors,x,{...R,ref:Q}),f.state.next({name:x,errors:r.errors,isValid:!1}),b&&b.shouldFocus&&Q&&Q.focus&&Q.focus()},Te=(x,R)=>yn(x)?f.values.subscribe({next:b=>x(Y(void 0,R),b)}):Y(x,R,!0),he=(x,R={})=>{for(const b of x?Pa(x):a.mount)a.mount.delete(b),a.array.delete(b),R.keepValue||(Ie(i,b),Ie(s,b)),!R.keepError&&Ie(r.errors,b),!R.keepDirty&&Ie(r.dirtyFields,b),!R.keepTouched&&Ie(r.touchedFields,b),!n.shouldUnregister&&!R.keepDefaultValue&&Ie(o,b);f.values.next({values:{...s}}),f.state.next({...r,...R.keepDirty?{isDirty:W()}:{}}),!R.keepIsValid&&h()},ke=({disabled:x,name:R,field:b,fields:Q})=>{if(Un(x)){const D=x?void 0:V(s,R,ba(b?b._f:V(Q,R)._f));fe(s,R,D),E(R,D,!1,!1,!0)}},St=(x,R={})=>{let b=V(i,x);const Q=Un(R.disabled);return fe(i,x,{...b||{},_f:{...b&&b._f?b._f:{ref:{name:x}},name:x,mount:!0,...R}}),a.mount.add(x),b?ke({field:b,disabled:R.disabled,name:x}):P(x,!0,R.value),{...Q?{disabled:R.disabled}:{},...n.progressive?{required:!!R.required,min:ui(R.min),max:ui(R.max),minLength:ui(R.minLength),maxLength:ui(R.maxLength),pattern:ui(R.pattern)}:{},name:x,onChange:A,onBlur:A,ref:D=>{if(D){St(x,R),b=V(i,x);const $=Ce(D.value)&&D.querySelectorAll&&D.querySelectorAll("input,select,textarea")[0]||D,G=TC($),ve=b._f.refs||[];if(G?ve.find(xe=>xe===$):$===b._f.ref)return;fe(i,x,{_f:{...b._f,...G?{refs:[...ve.filter(Oa),$,...Array.isArray(V(o,x))?[{}]:[]],ref:{type:$.type,name:x}}:{ref:$}}}),P(x,!1,void 0,$)}else b=V(i,x,{}),b._f&&(b._f.mount=!1),(n.shouldUnregister||R.shouldUnregister)&&!(vC(a.array,x)&&l.action)&&a.unMount.add(x)}}},Xr=()=>n.shouldFocusError&&qu(i,x=>x&&V(r.errors,x),a.mount),$f=(x,R)=>async b=>{b&&(b.preventDefault&&b.preventDefault(),b.persist&&b.persist());let Q=Vt(s);if(f.state.next({isSubmitting:!0}),n.resolver){const{errors:D,values:$}=await F();r.errors=D,Q=$}else await q(i);Ie(r.errors,"root"),ht(r.errors)?(f.state.next({errors:{}}),await x(Q,b)):(R&&await R({...r.errors},b),Xr(),setTimeout(Xr)),f.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:ht(r.errors),submitCount:r.submitCount+1,errors:r.errors})},ov=(x,R={})=>{V(i,x)&&(Ce(R.defaultValue)?j(x,V(o,x)):(j(x,R.defaultValue),fe(o,x,R.defaultValue)),R.keepTouched||Ie(r.touchedFields,x),R.keepDirty||(Ie(r.dirtyFields,x),r.isDirty=R.defaultValue?W(x,V(o,x)):W()),R.keepError||(Ie(r.errors,x),d.isValid&&h()),f.state.next({...r}))},Lf=(x,R={})=>{const b=x?Vt(x):o,Q=Vt(b),D=x&&!ht(x)?Q:o;if(R.keepDefaultValues||(o=b),!R.keepValues){if(R.keepDirtyValues||y)for(const $ of a.mount)V(r.dirtyFields,$)?fe(D,$,V(s,$)):j($,V(D,$));else{if(Rf&&Ce(x))for(const $ of a.mount){const G=V(i,$);if(G&&G._f){const ve=Array.isArray(G._f.refs)?G._f.refs[0]:G._f.ref;if(js(ve)){const xe=ve.closest("form");if(xe){xe.reset();break}}}}i={}}s=e.shouldUnregister?R.keepDefaultValues?Vt(o):{}:Vt(D),f.array.next({values:{...D}}),f.values.next({values:{...D}})}a={mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},!l.mount&&t(),l.mount=!d.isValid||!!R.keepIsValid,l.watch=!!e.shouldUnregister,f.state.next({submitCount:R.keepSubmitCount?r.submitCount:0,isDirty:R.keepDirty?r.isDirty:!!(R.keepDefaultValues&&!Bn(x,o)),isSubmitted:R.keepIsSubmitted?r.isSubmitted:!1,dirtyFields:R.keepDirtyValues?r.dirtyFields:R.keepDefaultValues&&x?Ta(o,x):{},touchedFields:R.keepTouched?r.touchedFields:{},errors:R.keepErrors?r.errors:{},isSubmitSuccessful:R.keepIsSubmitSuccessful?r.isSubmitSuccessful:!1,isSubmitting:!1})},If=(x,R)=>Lf(yn(x)?x(s):x,R);return{control:{register:St,unregister:he,getFieldState:B,handleSubmit:$f,setError:se,_executeSchema:F,_getWatch:Y,_getDirty:W,_updateValid:h,_removeUnmounted:K,_updateFieldArray:S,_updateDisabledField:ke,_getFieldArray:J,_reset:Lf,_resetDefaultValues:()=>yn(n.defaultValues)&&n.defaultValues().then(x=>{If(x,n.resetOptions),f.state.next({isLoading:!1})}),_updateFormState:x=>{r={...r,...x}},_subjects:f,_proxyFormState:d,get _fields(){return i},get _formValues(){return s},get _state(){return l},set _state(x){l=x},get _defaultValues(){return o},get _names(){return a},set _names(x){a=x},get _formState(){return r},set _formState(x){r=x},get _options(){return n},set _options(x){n={...n,...x}}},trigger:N,register:St,handleSubmit:$f,watch:Te,setValue:j,getValues:H,reset:If,resetField:ov,clearErrors:te,unregister:he,setError:se,setFocus:(x,R={})=>{const b=V(i,x),Q=b&&b._f;if(Q){const D=Q.refs?Q.refs[0]:Q.ref;D.focus&&(D.focus(),R.shouldSelect&&D.select())}},getFieldState:B}}function Nf(e={}){const t=z.useRef(),n=z.useRef(),[r,i]=z.useState({isDirty:!1,isValidating:!1,isLoading:yn(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},errors:{},defaultValues:yn(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...$C(e,()=>i(s=>({...s}))),formState:r});const o=t.current.control;return o._options=e,EC({subject:o._subjects.state,next:s=>{SC(s,o._proxyFormState,o._updateFormState,!0)&&i({...o._formState})}}),z.useEffect(()=>{e.values&&!Bn(e.values,n.current)?(o._reset(e.values,o._options.resetOptions),n.current=e.values):o._resetDefaultValues()},[e.values,o]),z.useEffect(()=>{o._state.mount||(o._updateValid(),o._state.mount=!0),o._state.watch&&(o._state.watch=!1,o._subjects.state.next({...o._formState})),o._removeUnmounted()}),t.current.formState=xC(r,o),t.current}const _f=Ee("form",{marginTop:"1.5rem"}),Xt=Ee("div",{"& + div":{marginTop:"1.5rem"}}),Ur=Ee("label",{display:"block",fontSize:"$sm",fontWeight:"500",marginBottom:"0.5rem"}),rv={display:"block",lineHeight:"1.5rem",fontSize:"$sm",borderWidth:"1px",borderColor:"$gray600",backgroundColor:"#f8f4ff",boxShadow:"0 1px 2px 0 rgba(0, 0, 0, 0.05)","&:focus":{borderWidth:"1px",borderColor:"$gray700",boxShadow:"0 1px 2px 0 rgba(0, 0, 0, 0.05)"},"&:disabled":{opacity:.5,cursor:"not-allowed",backgroundColor:"$gray400",borderColor:"$gray400",color:"$gray500"},borderRadius:"0.375rem",width:"100%",paddingTop:"0.375rem",paddingBottom:"0.375rem",paddingLeft:"0.75rem",paddingRight:"0.75rem",margin:0},Br=Ee("input",rv),LC=Ee("textarea",rv),Vr=Ee("div",{display:"block",fontSize:"$sm",fontWeight:"500",color:"$formErrorText",marginTop:"0.5rem"}),jf=Ee("button",{display:"flex",justifyContent:"center",width:"100%",borderWidth:"1px",borderColor:"$brand",backgroundColor:"$brand",color:"$submitButtonText",padding:"0.5rem 0.75rem",boxShadow:"0 1px 2px 0 rgba(0, 0, 0, 0.05)",fontWeight:"600",fontSize:"$sm",lineHeight:"1.25rem",borderRadius:"0.375rem","&:hover":{backgroundColor:"$brandAccent",borderColor:"$brandAccent"},"&:disabled":{opacity:.5,cursor:"not-allowed",backgroundColor:"$gray400",borderColor:"$gray400",color:"$gray500"},transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"100ms"}),IC=mC({width:"1.25rem",height:"1.25rem"}),FC=()=>g.jsx("svg",{className:IC(),"aria-hidden":"true",fill:"currentColor",viewBox:"0 0 24 24",children:g.jsx("g",{id:"brand",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:g.jsx("g",{id:"google",fill:"#000000",fillRule:"nonzero",children:g.jsx("path",{d:"M11.99,13.9 L11.99,10.18 L21.35,10.18 C21.49,10.81 21.6,11.4 21.6,12.23 C21.6,17.94 17.77,22 12,22 C6.48,22 2,17.52 2,12 C2,6.48 6.48,2 12,2 C14.7,2 16.96,2.99 18.69,4.61 L15.85,7.37 C15.13,6.69 13.87,5.89 12,5.89 C8.69,5.89 5.99,8.64 5.99,12.01 C5.99,15.38 8.69,18.13 12,18.13 C15.83,18.13 17.24,15.48 17.5,13.91 L11.99,13.91 L11.99,13.9 Z",id:"Shape"})})})}),DC=Ee("a",{display:"flex",justifyContent:"center",cursor:"pointer",color:"inherit",backgroundColor:"#f0f0f0",borderRadius:"0.375rem",borderWidth:"1px",borderColor:"$gray600",fontSize:"13px",padding:"0.5rem 0.75rem",boxShadow:"0 1px 2px 0 rgba(0, 0, 0, 0.05)","&:visited":{color:"inherit"},"&:hover":{backgroundColor:"$gray500",color:"inherit"},transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"100ms"});async function MC(e){try{return(await Ut.post("/auth/email/signup",e)).data}catch(t){rr(t)}}async function iv(e){kk(e),await Vg()}async function np(e){try{const t=await Ut.post("/auth/email/login",e);await iv(t.data.token)}catch(t){rr(t)}}function zC({onError:e,showEmailVerificationPending:t,isEmailVerificationRequired:n,onLoginSuccess:r,isLogin:i}){async function o(s){try{i?(await np(s),r()):(await MC(s),n?t():(await np(s),r()))}catch(l){e(l)}}return{handleSubmit:o}}const UC=Ee("div",{position:"relative",marginTop:"1.5rem"}),BC=Ee("div",{position:"absolute",inset:"0px",display:"flex",alignItems:"center"}),VC=Ee("div",{width:"100%",borderTopWidth:"1px",borderColor:"$gray500"}),HC=Ee("div",{position:"relative",display:"flex",justifyContent:"center",fontSize:"$sm"}),QC=Ee("span",{backgroundColor:"white",paddingLeft:"0.5rem",paddingRight:"0.5rem"}),WC=Ee("div",{marginTop:"1.5rem"}),qC=Ee("div",{fontWeight:"500",fontSize:"$sm"}),KC=Ee("div",{marginTop:"0.5rem",display:"flex",variants:{direction:{horizontal:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(48px, 1fr))"},vertical:{flexDirection:"column",margin:"8px 0"}},gap:{small:{gap:"4px"},medium:{gap:"8px"},large:{gap:"16px"}}}}),GC=`${Sf.apiUrl}/auth/google/login`,YC=({state:e,socialButtonsDirection:t="horizontal",additionalSignupFields:n})=>{const{isLoading:r,setErrorMessage:i,setSuccessMessage:o,setIsLoading:s}=I.useContext(fo),l=e==="login",a=l?"Log in":"Sign up",u=io(),c=p=>{var h,v;i({title:p.message,description:(v=(h=p.data)==null?void 0:h.data)==null?void 0:v.message})},d=Nf(),{register:f,formState:{errors:y},handleSubmit:m}=d,{handleSubmit:w}=zC({isLogin:l,onError:c,showEmailVerificationPending(){d.reset(),o("You've signed up successfully! Check your email for the confirmation link.")},onLoginSuccess(){u.push("/chat")},isEmailVerificationRequired:!0});async function k(p){s(!0),i(null),o(null);try{await w(p)}finally{s(!1)}}return g.jsxs(g.Fragment,{children:[g.jsxs(WC,{children:[g.jsxs(qC,{children:[a," with"]}),g.jsx(KC,{gap:"large",direction:t,children:g.jsx(DC,{href:GC,children:g.jsx(FC,{})})})]}),g.jsxs(UC,{children:[g.jsx(BC,{children:g.jsx(VC,{})}),g.jsx(HC,{children:g.jsx(QC,{children:"Or continue with"})})]}),g.jsxs(_f,{onSubmit:m(k),children:[g.jsxs(Xt,{children:[g.jsx(Ur,{children:"E-mail"}),g.jsx(Br,{...f("email",{required:"Email is required"}),type:"email",disabled:r}),y.email&&g.jsx(Vr,{children:y.email.message})]}),g.jsxs(Xt,{children:[g.jsx(Ur,{children:"Password"}),g.jsx(Br,{...f("password",{required:"Password is required"}),type:"password",disabled:r}),y.password&&g.jsx(Vr,{children:y.password.message})]}),g.jsx(XC,{hookForm:d,formState:{isLoading:r},additionalSignupFields:n}),g.jsx(Xt,{children:g.jsx(jf,{type:"submit",disabled:r,children:a})})]})]})};function XC({hookForm:e,formState:{isLoading:t},additionalSignupFields:n}){const{register:r,formState:{errors:i}}=e;function o(s,l,a){return g.jsxs(Xt,{children:[g.jsx(Ur,{children:s.label}),g.jsx(l,{...r(s.name,s.validations),...a,disabled:t}),i[s.name]&&g.jsx(Vr,{children:i[s.name].message})]},s.name)}return ZC(n)?n(e,{isLoading:t}):n&&n.map(s=>{if(JC(s))return s(e,{isLoading:t});switch(s.type){case"input":return o(s,Br,{type:"text"});case"textarea":return o(s,LC);default:throw new Error(`Unsupported additional signup field type: ${s.type}`)}})}function JC(e){return typeof e=="function"}function ZC(e){return typeof e=="function"}const Af=Ee("div",{padding:"0.5rem 0.75rem",borderRadius:"0.375rem",marginTop:"1rem",background:"$gray400"}),eP=Ee(Af,{background:"$errorBackground",color:"$errorText"}),tP=Ee(Af,{background:"$successBackground",color:"$successText"});async function nP(e){try{return(await Ut.post("/auth/email/request-password-reset",e)).data}catch(t){rr(t)}}async function rP(e){try{return(await Ut.post("/auth/email/reset-password",e)).data}catch(t){rr(t)}}const iP=()=>{const{register:e,handleSubmit:t,reset:n,formState:{errors:r}}=Nf(),{isLoading:i,setErrorMessage:o,setSuccessMessage:s,setIsLoading:l}=I.useContext(fo),a=async u=>{var c,d;l(!0),o(null),s(null);try{await nP(u),n(),s("Check your email for a password reset link.")}catch(f){o({title:f.message,description:(d=(c=f.data)==null?void 0:c.data)==null?void 0:d.message})}finally{l(!1)}};return g.jsx(g.Fragment,{children:g.jsxs(_f,{onSubmit:t(a),children:[g.jsxs(Xt,{children:[g.jsx(Ur,{children:"E-mail"}),g.jsx(Br,{...e("email",{required:"Email is required"}),type:"email",disabled:i}),r.email&&g.jsx(Vr,{children:r.email.message})]}),g.jsx(Xt,{children:g.jsx(jf,{type:"submit",disabled:i,children:"Send password reset email"})})]})})},oP=()=>{const{register:e,handleSubmit:t,reset:n,formState:{errors:r}}=Nf(),{isLoading:i,setErrorMessage:o,setSuccessMessage:s,setIsLoading:l}=I.useContext(fo),a=Gy(),u=new URLSearchParams(a.search).get("token"),c=async d=>{var f,y;if(!u){o({title:"The token is missing from the URL. Please check the link you received in your email."});return}if(!d.password||d.password!==d.passwordConfirmation){o({title:"Passwords don't match!"});return}l(!0),o(null),s(null);try{await rP({password:d.password,token:u}),n(),s("Your password has been reset.")}catch(m){o({title:m.message,description:(y=(f=m.data)==null?void 0:f.data)==null?void 0:y.message})}finally{l(!1)}};return g.jsx(g.Fragment,{children:g.jsxs(_f,{onSubmit:t(c),children:[g.jsxs(Xt,{children:[g.jsx(Ur,{children:"New password"}),g.jsx(Br,{...e("password",{required:"Password is required"}),type:"password",disabled:i}),r.passwordConfirmation&&g.jsx(Vr,{children:r.passwordConfirmation.message})]}),g.jsxs(Xt,{children:[g.jsx(Ur,{children:"Confirm new password"}),g.jsx(Br,{...e("passwordConfirmation",{required:"Password confirmation is required"}),type:"password",disabled:i}),r.passwordConfirmation&&g.jsx(Vr,{children:r.passwordConfirmation.message})]}),g.jsx(Xt,{children:g.jsx(jf,{type:"submit",disabled:i,children:"Reset password"})})]})})};async function sP(e){try{return(await Ut.post("/auth/email/verify-email",e)).data}catch(t){rr(t)}}const lP=()=>{const{isLoading:e,setErrorMessage:t,setSuccessMessage:n,setIsLoading:r}=I.useContext(fo),i=Gy(),o=new URLSearchParams(i.search).get("token");async function s(){var l,a;if(!o){t({title:"The token is missing from the URL. Please check the link you received in your email."});return}r(!0),t(null),n(null);try{await sP({token:o}),n("Your email has been verified. You can now log in.")}catch(u){t({title:u.message,description:(a=(l=u.data)==null?void 0:l.data)==null?void 0:a.message})}finally{r(!1)}}return I.useEffect(()=>{s()},[i]),g.jsx(g.Fragment,{children:e&&g.jsx(Af,{children:"Verifying email..."})})},aP={height:"3rem"},uP=Ee("div",{display:"flex",flexDirection:"column"}),cP=Ee("h2",{fontSize:"1.875rem",fontWeight:"700",marginTop:"1.5rem"}),fo=I.createContext({isLoading:!1,setIsLoading:e=>{},setErrorMessage:e=>{},setSuccessMessage:e=>{}});function ho({state:e,appearance:t,logo:n,socialLayout:r="horizontal",additionalSignupFields:i}){const[o,s]=I.useState(null),[l,a]=I.useState(null),[u,c]=I.useState(!1),d=pC(t??{}),y={login:"Log in to your account",signup:"Create a new account","forgot-password":"Forgot your password?","reset-password":"Reset your password","verify-email":"Email verification"}[e],m=r==="vertical"?"vertical":"horizontal";return g.jsxs(uP,{className:d,children:[g.jsxs("div",{children:[n&&g.jsx("img",{style:aP,src:n,alt:"Your Company"}),g.jsx(cP,{children:y})]}),o&&g.jsxs(eP,{children:[o.title,o.description&&": ",o.description]}),l&&g.jsx(tP,{children:l}),g.jsxs(fo.Provider,{value:{isLoading:u,setIsLoading:c,setErrorMessage:s,setSuccessMessage:a},children:[(e==="login"||e==="signup")&&g.jsx(YC,{state:e,socialButtonsDirection:m,additionalSignupFields:i}),e==="forgot-password"&&g.jsx(iP,{}),e==="reset-password"&&g.jsx(oP,{}),e==="verify-email"&&g.jsx(lP,{})]})]})}var Yr=(e=>(e.Login="login",e.Signup="signup",e.ForgotPassword="forgot-password",e.ResetPassword="reset-password",e.VerifyEmail="verify-email",e))(Yr||{});function fP({appearance:e,logo:t,socialLayout:n}){return g.jsx(ho,{appearance:e,logo:t,socialLayout:n,state:Yr.Login})}function po({children:e}){return g.jsx("div",{className:"flex min-h-full flex-col justify-center mt-10 sm:px-6 lg:px-8",children:g.jsx("div",{className:"sm:mx-auto sm:w-full sm:max-w-md",children:g.jsx("div",{className:"bg-white py-8 px-4 shadow-xl ring-1 ring-gray-900/10 sm:rounded-lg sm:px-10",children:g.jsx("div",{className:"-mt-8",children:e})})})})}const dP={colors:{brand:"#0da37f",brandAccent:"#066d55",submitButtonText:"white"}};function hP(){const e=io(),{data:t}=Cf();return I.useEffect(()=>{t&&e.push("/")},[t,e]),g.jsxs(po,{children:[g.jsx(fP,{appearance:dP}),g.jsx("br",{}),g.jsxs("span",{className:"text-sm font-medium text-gray-900",children:["Don't have an account yet?"," ",g.jsx(Zn,{to:"/signup",className:"underline",children:"go to signup"}),"."]}),g.jsx("br",{}),g.jsxs("span",{className:"text-sm font-medium text-gray-900",children:["Forgot your password?"," ",g.jsx(Zn,{to:"/request-password-reset",className:"underline",children:"reset it"}),"."]})]})}function pP({appearance:e,logo:t,socialLayout:n,additionalFields:r}){return g.jsx(ho,{appearance:e,logo:t,socialLayout:n,state:Yr.Signup,additionalSignupFields:r})}function mP(){return g.jsxs(po,{children:[g.jsx(pP,{}),g.jsx("br",{}),g.jsxs("span",{className:"text-sm font-medium text-gray-900",children:["I already have an account (",g.jsx(Zn,{to:"/login",className:"underline",children:"go to login"}),")."]}),g.jsx("br",{})]})}function yP({appearance:e,logo:t,socialLayout:n}){return g.jsx(ho,{appearance:e,logo:t,socialLayout:n,state:Yr.ForgotPassword})}function gP(){return g.jsx(po,{children:g.jsx(yP,{})})}function vP({appearance:e,logo:t,socialLayout:n}){return g.jsx(ho,{appearance:e,logo:t,socialLayout:n,state:Yr.ResetPassword})}function wP(){return g.jsxs(po,{children:[g.jsx(vP,{}),g.jsx("br",{}),g.jsxs("span",{className:"text-sm font-medium text-gray-900",children:["If everything is okay, ",g.jsx(Zn,{to:"/login",children:"go to login"})]})]})}function xP({appearance:e,logo:t,socialLayout:n}){return g.jsx(ho,{appearance:e,logo:t,socialLayout:n,state:Yr.VerifyEmail})}function SP(){return g.jsxs(po,{children:[g.jsx(xP,{}),g.jsx("br",{}),g.jsxs("span",{className:"text-sm font-medium text-gray-900",children:["If everything is okay, ",g.jsx(Zn,{to:"/login",className:"underline",children:"go to login"})]})]})}function Nl(e,t){const n=Bg(e);async function r(o,s){bk(s);try{return await Ug(n,o)}finally{await Nk(t,s)}}const i=o=>r(o,[]);return i.internal=r,i}const EP=Nl("operations/stripe-payment",["User"]),kP=[{name:"Credits",id:"credits",href:"",price:"$2.95",description:"Buy credits to use for your projects.",features:["10 credits","Use them any time","No expiration date"],disabled:!0},{name:"Monthly Subscription",id:"monthly",href:"#",priceMonthly:"$9.99",description:"Get unlimited usage for your projects.",features:["Unlimited usage of all features","Priority support","Cancel any time"]}];function CP(){const[e,t]=I.useState(!1),n=async()=>{t(!0);try{const r=await EP();r!=null&&r.sessionUrl&&window.open(r.sessionUrl,"_self")}catch(r){alert("Something went wrong. Please try again."),console.error(r)}finally{t(!1)}};return g.jsx("div",{className:"mt-10 pb-24 sm:pb-32",children:g.jsx("div",{className:"mx-auto max-w-7xl px-6 lg:px-8",children:g.jsx("div",{className:"mx-auto grid max-w-md grid-cols-1 gap-8 lg:max-w-4xl lg:grid-cols-2",children:kP.map(r=>g.jsxs("div",{className:"flex flex-col justify-between rounded-3xl bg-white p-8 shadow-xl ring-1 ring-gray-900/10 sm:p-10",children:[g.jsxs("div",{children:[g.jsx("h3",{id:r.id,className:"text-base font-semibold leading-7 text-indigo-600",children:r.name}),g.jsxs("div",{className:"mt-4 flex items-baseline gap-x-2",children:[g.jsx("span",{className:"text-5xl font-bold tracking-tight text-gray-900",children:r.priceMonthly||r.price}),r.priceMonthly&&g.jsx("span",{className:"text-base font-semibold leading-7 text-gray-600",children:"/month"})]}),g.jsx("p",{className:"mt-6 text-base leading-7 text-gray-600",children:r.description}),g.jsx("ul",{role:"list",className:"mt-10 space-y-4 text-sm leading-6 text-gray-600",children:r.features.map(i=>g.jsxs("li",{className:"flex gap-x-3",children:[g.jsx(vS,{className:"h-6 w-5 flex-none text-indigo-600","aria-hidden":"true"}),i]},i))})]}),g.jsx("button",{onClick:n,"aria-describedby":r.id,disabled:r.disabled,className:`${r.disabled&&"disabled:opacity-25 disabled:cursor-not-allowed"} mt-8 block rounded-md bg-yellow-400 px-3.5 py-2 text-center text-sm font-semibold leading-6 text-black shadow-sm hover:bg-yellow-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-yellow-600`,children:e?"Loading...":"Buy Now"})]},r.id))})})})}async function PP(){Pk(),await Vg()}function RP({user:e}){return I.useState(!1),g.jsxs("div",{className:"mt-10 px-6 mx-auto w-1/2",children:[g.jsxs("div",{className:"overflow-hidden bg-white ring-1 ring-gray-900/10 shadow-lg sm:rounded-lg lg:m-8 ",children:[g.jsx("div",{className:"px-4 py-5 sm:px-6 lg:px-8",children:g.jsx("h3",{className:"text-base font-semibold leading-6 text-gray-900",children:"Account Information"})}),g.jsx("div",{className:"border-t border-gray-200 px-4 py-5 sm:p-0",children:g.jsx("dl",{className:"sm:divide-y sm:divide-gray-200",children:g.jsxs("div",{className:"py-4 sm:grid sm:grid-cols-3 sm:gap-4 sm:py-5 sm:px-6",children:[g.jsx("dt",{className:"text-sm font-medium text-gray-500",children:"Email address"}),g.jsx("dd",{className:"mt-1 text-sm text-gray-900 sm:col-span-2 sm:mt-0",children:e.email})]})})})]}),g.jsx("div",{className:"inline-flex w-full justify-end",children:g.jsx("button",{onClick:PP,className:"inline-flex justify-center mx-8 py-2 px-4 border border-transparent shadow-md text-sm font-medium rounded-md text-white bg-captn-cta-red hover:bg-captn-cta-red-hover focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500",children:"logout"})})]})}function OP({user:e}){const[t,n]=I.useState("loading"),r=io();return I.useEffect(()=>{function i(){return setTimeout(()=>{r.push("/account")},4e3)}const o=new URLSearchParams(window.location.search),s=o.get("canceled"),l=o.get("success");return o.get("credits"),s?n("canceled"):l?n("paid"):r.push("/account"),i(),()=>{clearTimeout(i())}},[]),g.jsx("div",{className:"flex min-h-full flex-col justify-center mt-10 sm:px-6 lg:px-8",children:g.jsx("div",{className:"sm:mx-auto sm:w-full sm:max-w-md",children:g.jsxs("div",{className:"bg-white py-8 px-4 shadow-xl ring-1 ring-gray-900/10 sm:rounded-lg sm:px-10",children:[g.jsx("h1",{children:t==="paid"?"🥳 Payment Successful!":t==="canceled"?"😢 Payment Canceled":t==="error"&&"🙄 Payment Error"}),t!=="loading"&&g.jsxs("span",{className:"text-center",children:["You are being redirected to your account page... ",g.jsx("br",{})]})]})})})}const TP=Hg("operations/get-chats",["Chat"]),bP=Hg("operations/get-conversations",["Conversation"]),NP=Nl("operations/create-chat",["Chat","Conversation"]),rp=Nl("operations/update-conversation",["Chat","Conversation"]),_P=Nl("operations/generate-open-airesponse",["Chat","Conversation"]),jP=({chats:e})=>e!=null&&e.length?g.jsx("div",{children:e.map((t,n)=>g.jsx(MP,{to:"/chat/:id?",params:{id:t.id},children:g.jsx("li",{children:g.jsxs("div",{className:"flex items-center p-2 text-gray-900 rounded-lg dark:text-white hover:bg-gray-100 dark:hover:bg-gray-700 group",children:[g.jsx("svg",{stroke:"currentColor",fill:"none",strokeWidth:"2",viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",className:"icon-sm",height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg",children:g.jsx("path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"})}),g.jsx("span",{className:"ml-3",children:t.id})]})},n)},t.id))}):g.jsx("div",{children:"No chats"}),AP=({conversations:e})=>{if(!(e!=null&&e.length))return g.jsx("div",{children:"No conversations"});const t=e.filter(n=>n.role!=="system");return g.jsx("div",{className:"w-full",children:t.map((n,r)=>{const i=n.role==="user"?"captn-light-blue":"captn-dark-blue",o=n.role==="user"?g.jsx("div",{style:{alignItems:"center",background:"#fff",borderRadius:"50%",color:"#444654",display:"flex",flexBasis:"40px",flexGrow:"0",flexShrink:"0",fontSize:"14px",height:"40px",justifyContent:"center",padding:"5px",position:"relative",width:"40px"},className:"flex",children:g.jsx("div",{children:"You"})}):g.jsx("img",{alt:"captn logo",src:Xy,className:"w-full h-full",style:{borderRadius:"50%"}});return g.jsx("div",{children:g.jsx("div",{style:{minHeight:"85px"},className:`flex items-center p-2 text-gray-900 dark:text-white group bg-${i}`,children:g.jsxs("div",{style:{maxWidth:"840px",margin:"auto"},className:`relative ml-3 block w-full p-4 pl-10 text-sm text-gray-900 border-${i} rounded-lg bg-${i} dark:bg-${i} dark:border-${i} dark:placeholder-gray-400 dark:text-white`,children:[g.jsx("span",{className:"absolute inline-block",style:{left:"-15px",top:"6px",height:" 45px",width:"45px"},children:o}),g.jsx("span",{className:"text-base",children:n.content})]})})},r)})})};function $P(e){I.useState(!1);const[t,n]=I.useState([{}]),[r,i]=I.useState(null),{data:o,isLoading:s}=Mu(TP),{data:l,isLoading:a}=Mu(bP,{chatId:Number(e.match.params.id)}),u=io(),c=async f=>{f.preventDefault();try{const y=await NP();n(y.conversation),i(y.id),u.push(`/chat/${y.chatId}`)}catch(y){window.alert("Error: "+y.message)}},d=async f=>{f.preventDefault(),console.log("conversationId"),console.log(r);try{const y=f.target,m=y.userQuery.value;y.reset();const w={conversation_id:l.id,conversations:[...l.conversation,{role:"user",content:m}]};await rp(w);const k=await _P({conversation:w.conversations}),p={conversation_id:l.id,conversations:[...w.conversations,{role:"assistant",content:k.content}]};await rp(p)}catch(y){window.alert("Error: "+y.message)}};return g.jsxs("div",{className:"relative z-0 flex h-full w-full overflow-hidden h-screen",children:[g.jsx("div",{id:"default-sidebar",style:{width:"260px"},className:"flex-shrink-0 overflow-x-hidden dark bg-captn-dark-blue gizmo:bg-black","aria-label":"Sidebar",children:g.jsxs("div",{className:"border-x-captn-light-cream h-full px-3 py-4 overflow-y-auto bg-captn-dark-blue dark:bg-captn-dark-blue",children:[g.jsx("div",{className:"mb-1 flex flex-row gap-2",children:g.jsxs("button",{onClick:c,className:"flex px-3 min-h-[44px] py-1 items-center gap-3 transition-colors duration-200 dark:text-white cursor-pointer text-sm rounded-md rounded-md text-white bg-captn-cta-green hover:bg-captn-cta-green-hover focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 flex-grow overflow-hidden",children:[g.jsxs("svg",{stroke:"currentColor",fill:"none",strokeWidth:"2",viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",className:"icon-sm shrink-0",height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg",children:[g.jsx("line",{x1:"12",y1:"5",x2:"12",y2:"19"}),g.jsx("line",{x1:"5",y1:"12",x2:"19",y2:"12"})]}),"New chat"]})}),g.jsx("div",{className:"flex-col flex-1 transition-opacity duration-500 -mr-2 pr-2 overflow-y-auto",children:g.jsx("ul",{className:"py-5 space-y-2 font-medium",children:o&&g.jsx(jP,{chats:o})})})]})}),g.jsx("div",{className:"relative flex h-full max-w-full flex-1 flex-col overflow-hidden bg-captn-light-blue",children:g.jsx("div",{className:"relative h-full w-full flex-1 overflow-auto transition-width",children:g.jsx("div",{className:"flex h-full flex-col",children:g.jsxs("div",{className:"flex-1 overflow-hidden",children:[g.jsx("div",{className:"flex h-full flex-col items-center justify-between pb-24 overflow-y-auto bg-captn-light-blue",style:{height:"85%"},children:l&&g.jsx(AP,{conversations:l.conversation})}),e.match.params.id?g.jsx("div",{className:"w-full pt-2 md:pt-0 border-t md:border-t-0 dark:border-white/20 md:border-transparent md:dark:border-transparent md:pl-2 gizmo:pl-0 gizmo:md:pl-0 md:w-[calc(100%-.5rem)] absolute bottom-100 left-0 md:bg-vert-light-gradient bg-white dark:bg-gray-800 md:!bg-transparent dark:md:bg-vert-dark-gradient",children:g.jsxs("form",{onSubmit:d,className:"",children:[g.jsx("label",{htmlFor:"search",className:"mb-2 text-sm font-medium text-gray-900 sr-only dark:text-white",children:"Search"}),g.jsxs("div",{className:"relative",children:[g.jsx("div",{className:"absolute inset-y-0 left-0 flex items-center pl-3 pointer-events-none"}),g.jsx("input",{type:"search",id:"userQuery",name:"search",className:"block w-full p-4 pl-5 text-sm text-gray-900 border border-gray-300 rounded-lg bg-captn-dark-blue focus:ring-blue-500 focus:border-blue-500 dark:bg-captn-dark-blue dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",placeholder:"Send a message",required:!0}),g.jsx("button",{type:"submit",className:"text-white absolute right-2.5 bottom-2.5 bg-captn-cta-green hover:bg-captn-cta-green-hover focus:ring-4 focus:outline-none focus:ring-blue-300 font-medium rounded-lg text-sm px-4 py-2 dark:bg-captn-cta-green dark:hover:bg-captn-cta-green-hover dark:focus:ring-blue-800",children:"Send"})]})]})}):g.jsx("p",{className:"text-captn-light-cream opacity-70",style:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",fontSize:"60px"},children:"Please initiate a new chat or select existing chats to resume your conversation."})]})})})})]})}function LP({pathToApiServerRouteHandlingOauthRedirect:e}){const t=io(),n=I.useRef(!0);return I.useEffect(()=>{if(!n.current)return;const r=IP(e);return FP(t,r),()=>{n.current=!1}},[t,e]),g.jsx("p",{children:"Completing login process..."})}function IP(e){const t=window.location.search;return`${Sf.apiUrl}${e}${t}`}async function FP(e,t){const n=await DP(t);n!==null?(await iv(n),e.push("/chat")):(console.error("Error obtaining JWT token"),e.push("/login"))}async function DP(e){var t;try{const n=await Ut.get(e);return((t=n==null?void 0:n.data)==null?void 0:t.token)||null}catch(n){return console.error(n),null}}function MP({to:e,params:t,search:n,hash:r,...i}){const o=I.useMemo(()=>kt(e,t,n,r),[e,t]);return g.jsx(Zn,{to:o,...i})}const zP={RootRoute:{to:"/",component:zk,build:e=>kt("/",void 0,e.search,e.hash)},LoginRoute:{to:"/login",component:hP,build:e=>kt("/login",void 0,e.search,e.hash)},SignupRoute:{to:"/signup",component:mP,build:e=>kt("/signup",void 0,e.search,e.hash)},RequestPasswordResetRoute:{to:"/request-password-reset",component:gP,build:e=>kt("/request-password-reset",void 0,e.search,e.hash)},PasswordResetRoute:{to:"/password-reset",component:wP,build:e=>kt("/password-reset",void 0,e.search,e.hash)},EmailVerificationRoute:{to:"/email-verification",component:SP,build:e=>kt("/email-verification",void 0,e.search,e.hash)},PricingRoute:{to:"/pricing",component:CP,build:e=>kt("/pricing",void 0,e.search,e.hash)},AccountRoute:{to:"/account",component:ka(RP),build:e=>kt("/account",void 0,e.search,e.hash)},CheckoutRoute:{to:"/checkout",component:ka(OP),build:e=>kt("/checkout",void 0,e.search,e.hash)},ChatRoute:{to:"/chat/:id?",component:ka($P),build:e=>kt("/chat/:id?",e.params,e.search,e.hash)}},UP=g.jsx(_x,{children:g.jsx(Dk,{children:g.jsxs(Nx,{children:[Object.entries(zP).map(([e,t])=>g.jsx(gh,{exact:!0,path:t.to,component:t.component},e)),g.jsx(gh,{exact:!0,path:"/auth/login/google",children:g.jsx(LP,{pathToApiServerRouteHandlingOauthRedirect:"/auth/google/callback"})})]})})});BP();async function BP(){nE(),await VP()}async function VP(){const e=await pf;Na.createRoot(document.getElementById("root")).render(g.jsx(z.StrictMode,{children:g.jsx(dw,{client:e,children:UP})}))} diff --git a/index.html b/index.html index 812486d..28ff38e 100644 --- a/index.html +++ b/index.html @@ -17,8 +17,8 @@ Capt'n.ai - - + +