html_content = '''<!doctype html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <link rel="icon" type="image/svg+xml" href="/vanna.svg" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <link href="https://fonts.googleapis.com/css2?family=Roboto+Slab:wght@350&display=swap" rel="stylesheet">
    <script src="https://cdn.plot.ly/plotly-latest.min.js" type="text/javascript"></script>
    <title>Vanna.AI</title>
    <script type="module" crossorigin src="/assets/index-6dbc332b.js"></script>
    <link rel="stylesheet" href="/assets/index-6f848993.css">
  </head>
  <body class="bg-white dark:bg-slate-900">
    <div id="app"></div>
    
  </body>
</html>
'''

css_content = '''.nav-title{font-family:Roboto Slab,serif}*,: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;-o-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";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;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::-moz-placeholder,textarea::-moz-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}*,: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: }::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}.collapse{visibility:collapse}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.inset-x-px{left:1px;right:1px}.bottom-0{bottom:0}.bottom-px{bottom:1px}.left-0{left:0}.top-0{top:0}.z-10{z-index:10}.z-50{z-index:50}.z-\[60\]{z-index:60}.-m-1{margin:-.25rem}.-m-1\.5{margin:-.375rem}.m-3{margin:.75rem}.mx-auto{margin-left:auto;margin-right:auto}.mb-1{margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.mb-2\.5{margin-bottom:.625rem}.mb-auto{margin-bottom:auto}.ml-3{margin-left:.75rem}.ml-4{margin-left:1rem}.mr-1{margin-right:.25rem}.mr-1\.5{margin-right:.375rem}.mr-3{margin-right:.75rem}.mt-0{margin-top:0}.mt-0\.5{margin-top:.125rem}.mt-1{margin-top:.25rem}.mt-16{margin-top:4rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-5{margin-top:1.25rem}.mt-6{margin-top:1.5rem}.mt-auto{margin-top:auto}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.hidden{display:none}.h-1{height:.25rem}.h-1\.5{height:.375rem}.h-3{height:.75rem}.h-3\.5{height:.875rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-7{height:1.75rem}.h-8{height:2rem}.h-\[2\.375rem\]{height:2.375rem}.h-auto{height:auto}.h-full{height:100%}.h-px{height:1px}.h-screen{height:100vh}.min-h-\[15rem\]{min-height:15rem}.min-h-\[calc\(100\%-3\.5rem\)\]{min-height:calc(100% - 3.5rem)}.w-0{width:0px}.w-1{width:.25rem}.w-1\.5{width:.375rem}.w-28{width:7rem}.w-3{width:.75rem}.w-3\.5{width:.875rem}.w-4{width:1rem}.w-6{width:1.5rem}.w-64{width:16rem}.w-8{width:2rem}.w-\[2\.375rem\]{width:2.375rem}.w-\[3\.25rem\]{width:3.25rem}.w-full{width:100%}.w-px{width:1px}.min-w-full{min-width:100%}.max-w-2xl{max-width:42rem}.max-w-4xl{max-width:56rem}.max-w-7xl{max-width:80rem}.max-w-\[50rem\]{max-width:50rem}.max-w-\[85rem\]{max-width:85rem}.max-w-sm{max-width:24rem}.flex-1{flex:1 1 0%}.flex-auto{flex:1 1 auto}.flex-none{flex:none}.flex-shrink-0,.shrink-0{flex-shrink:0}.grow{flex-grow:1}.-translate-x-full{--tw-translate-x: -100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes bounce{0%,to{transform:translateY(-25%);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{transform:none;animation-timing-function:cubic-bezier(0,0,.2,1)}}.animate-bounce{animation:bounce 1s infinite}@keyframes ping{75%,to{transform:scale(2);opacity:0}}.animate-ping{animation:ping 1s cubic-bezier(0,0,.2,1) infinite}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-pointer{cursor:pointer}.resize{resize:both}.appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}.flex-col{flex-direction:column}.items-start{align-items:flex-start}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-1\.5{gap:.375rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-x-1{-moz-column-gap:.25rem;column-gap:.25rem}.gap-x-2{-moz-column-gap:.5rem;column-gap:.5rem}.gap-x-3{-moz-column-gap:.75rem;column-gap:.75rem}.-space-y-px>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(-1px * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(-1px * var(--tw-space-y-reverse))}.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-1\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.375rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.375rem * var(--tw-space-y-reverse))}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}.space-y-5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.25rem * var(--tw-space-y-reverse))}.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))}.divide-gray-200>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(229 231 235 / var(--tw-divide-opacity))}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.overflow-x-hidden{overflow-x:hidden}.overflow-y-hidden{overflow-y:hidden}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.whitespace-break-spaces{white-space:break-spaces}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-xl{border-radius:.75rem}.rounded-b-md{border-bottom-right-radius:.375rem;border-bottom-left-radius:.375rem}.border{border-width:1px}.border-2{border-width:2px}.border-\[3px\]{border-width:3px}.border-b{border-bottom-width:1px}.border-r{border-right-width:1px}.border-t{border-top-width:1px}.border-blue-600{--tw-border-opacity: 1;border-color:rgb(37 99 235 / var(--tw-border-opacity))}.border-current{border-color:currentColor}.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-green-200{--tw-border-opacity: 1;border-color:rgb(187 247 208 / var(--tw-border-opacity))}.border-red-200{--tw-border-opacity: 1;border-color:rgb(254 202 202 / var(--tw-border-opacity))}.border-transparent{border-color:transparent}.border-yellow-200{--tw-border-opacity: 1;border-color:rgb(254 240 138 / var(--tw-border-opacity))}.border-t-transparent{border-top-color:transparent}.bg-blue-500{--tw-bg-opacity: 1;background-color:rgb(59 130 246 / var(--tw-bg-opacity))}.bg-blue-600{--tw-bg-opacity: 1;background-color:rgb(37 99 235 / var(--tw-bg-opacity))}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.bg-gray-50{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity))}.bg-gray-600{--tw-bg-opacity: 1;background-color:rgb(75 85 99 / var(--tw-bg-opacity))}.bg-gray-900{--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity))}.bg-green-600{--tw-bg-opacity: 1;background-color:rgb(22 163 74 / var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-yellow-50{--tw-bg-opacity: 1;background-color:rgb(254 252 232 / var(--tw-bg-opacity))}.bg-opacity-50{--tw-bg-opacity: .5}.p-1{padding:.25rem}.p-1\.5{padding:.375rem}.p-2{padding:.5rem}.p-2\.5{padding:.625rem}.p-3{padding:.75rem}.p-4{padding:1rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-7{padding-left:1.75rem;padding-right:1.75rem}.py-10{padding-top:2.5rem;padding-bottom:2.5rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-2\.5{padding-top:.625rem;padding-bottom:.625rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-5{padding-top:1.25rem;padding-bottom:1.25rem}.pb-12{padding-bottom:3rem}.pl-7{padding-left:1.75rem}.pr-4{padding-right:1rem}.pr-9{padding-right:2.25rem}.text-left{text-align:left}.text-center{text-align:center}.text-start{text-align:start}.align-middle{vertical-align:middle}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-7xl{font-size:4.5rem;line-height:1}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.leading-none{line-height:1}.tracking-wide{letter-spacing:.025em}.text-blue-600{--tw-text-opacity: 1;color:rgb(37 99 235 / 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-700{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.text-gray-800{--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity))}.text-green-500{--tw-text-opacity: 1;color:rgb(34 197 94 / var(--tw-text-opacity))}.text-green-600{--tw-text-opacity: 1;color:rgb(22 163 74 / var(--tw-text-opacity))}.text-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity))}.text-slate-700{--tw-text-opacity: 1;color:rgb(51 65 85 / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.text-yellow-400{--tw-text-opacity: 1;color:rgb(250 204 21 / var(--tw-text-opacity))}.text-yellow-700{--tw-text-opacity: 1;color:rgb(161 98 7 / var(--tw-text-opacity))}.text-yellow-800{--tw-text-opacity: 1;color:rgb(133 77 14 / var(--tw-text-opacity))}.opacity-0{opacity:0}.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)}.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-transparent{--tw-ring-color: transparent}.ring-offset-white{--tw-ring-offset-color: #fff}.blur{--tw-blur: blur(8px);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{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{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.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}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.before\:inline-block:before{content:var(--tw-content);display:inline-block}.before\:h-6:before{content:var(--tw-content);height:1.5rem}.before\:w-6:before{content:var(--tw-content);width:1.5rem}.before\:translate-x-0:before{content:var(--tw-content);--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.before\:transform:before{content:var(--tw-content);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))}.before\:rounded-full:before{content:var(--tw-content);border-radius:9999px}.before\:bg-white:before{content:var(--tw-content);--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.before\:shadow:before{content:var(--tw-content);--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)}.before\:ring-0:before{content:var(--tw-content);--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(0px + 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)}.before\:transition:before{content:var(--tw-content);transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.before\:duration-200:before{content:var(--tw-content);transition-duration:.2s}.before\:ease-in-out:before{content:var(--tw-content);transition-timing-function:cubic-bezier(.4,0,.2,1)}.first\:mt-0:first-child{margin-top:0}.first\:rounded-t-lg:first-child{border-top-left-radius:.5rem;border-top-right-radius:.5rem}.last\:rounded-b-lg:last-child{border-bottom-right-radius:.5rem;border-bottom-left-radius:.5rem}.checked\:bg-blue-600:checked{--tw-bg-opacity: 1;background-color:rgb(37 99 235 / var(--tw-bg-opacity))}.checked\:bg-none:checked{background-image:none}.checked\:before\:translate-x-full:checked:before{content:var(--tw-content);--tw-translate-x: 100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.checked\:before\:bg-blue-200:checked:before{content:var(--tw-content);--tw-bg-opacity: 1;background-color:rgb(191 219 254 / var(--tw-bg-opacity))}.hover\:border-green-500:hover{--tw-border-opacity: 1;border-color:rgb(34 197 94 / var(--tw-border-opacity))}.hover\:border-red-500:hover{--tw-border-opacity: 1;border-color:rgb(239 68 68 / var(--tw-border-opacity))}.hover\:bg-blue-50:hover{--tw-bg-opacity: 1;background-color:rgb(239 246 255 / var(--tw-bg-opacity))}.hover\:bg-blue-500:hover{--tw-bg-opacity: 1;background-color:rgb(59 130 246 / var(--tw-bg-opacity))}.hover\:bg-blue-600:hover{--tw-bg-opacity: 1;background-color:rgb(37 99 235 / var(--tw-bg-opacity))}.hover\:bg-blue-700:hover{--tw-bg-opacity: 1;background-color:rgb(29 78 216 / 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-green-500:hover{--tw-bg-opacity: 1;background-color:rgb(34 197 94 / var(--tw-bg-opacity))}.hover\:bg-red-500:hover{--tw-bg-opacity: 1;background-color:rgb(239 68 68 / var(--tw-bg-opacity))}.hover\:text-blue-500:hover{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity))}.hover\:text-blue-600:hover{--tw-text-opacity: 1;color:rgb(37 99 235 / var(--tw-text-opacity))}.hover\:text-blue-800:hover{--tw-text-opacity: 1;color:rgb(30 64 175 / var(--tw-text-opacity))}.hover\:text-gray-400:hover{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.hover\:text-red-600:hover{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity))}.hover\:text-white:hover{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.focus\:z-10:focus{z-index:10}.focus\:border-blue-500:focus{--tw-border-opacity: 1;border-color:rgb(59 130 246 / var(--tw-border-opacity))}.focus\:border-blue-600:focus{--tw-border-opacity: 1;border-color:rgb(37 99 235 / var(--tw-border-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-blue-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(59 130 246 / var(--tw-ring-opacity))}.focus\:ring-blue-600:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(37 99 235 / var(--tw-ring-opacity))}.focus\:ring-gray-400:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(156 163 175 / var(--tw-ring-opacity))}.focus\:ring-green-200:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(187 247 208 / var(--tw-ring-opacity))}.focus\:ring-red-200:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(254 202 202 / var(--tw-ring-opacity))}.focus\:ring-red-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(239 68 68 / var(--tw-ring-opacity))}.focus\:ring-offset-2:focus{--tw-ring-offset-width: 2px}.focus\:ring-offset-white:focus{--tw-ring-offset-color: #fff}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:opacity-50:disabled{opacity:.5}.open.hs-overlay-open\:mt-7{margin-top:1.75rem}.open.hs-overlay-open\:translate-x-0{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.open.hs-overlay-open\:opacity-100{opacity:1}.open.hs-overlay-open\:duration-500{transition-duration:.5s}.open .hs-overlay-open\:mt-7{margin-top:1.75rem}.open .hs-overlay-open\:translate-x-0{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.open .hs-overlay-open\:opacity-100{opacity:1}.open .hs-overlay-open\:duration-500{transition-duration:.5s}@media (prefers-color-scheme: dark){.dark\:divide-gray-700>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(55 65 81 / var(--tw-divide-opacity))}.dark\:border-blue-500{--tw-border-opacity: 1;border-color:rgb(59 130 246 / var(--tw-border-opacity))}.dark\:border-gray-600{--tw-border-opacity: 1;border-color:rgb(75 85 99 / var(--tw-border-opacity))}.dark\:border-gray-700{--tw-border-opacity: 1;border-color:rgb(55 65 81 / var(--tw-border-opacity))}.dark\:bg-gray-700{--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity))}.dark\:bg-gray-800{--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}.dark\:bg-slate-800{--tw-bg-opacity: 1;background-color:rgb(30 41 59 / var(--tw-bg-opacity))}.dark\:bg-slate-900{--tw-bg-opacity: 1;background-color:rgb(15 23 42 / var(--tw-bg-opacity))}.dark\:bg-opacity-80{--tw-bg-opacity: .8}.dark\:text-blue-500{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity))}.dark\:text-gray-200{--tw-text-opacity: 1;color:rgb(229 231 235 / var(--tw-text-opacity))}.dark\:text-gray-300{--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity))}.dark\:text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.dark\:text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.dark\:text-slate-400{--tw-text-opacity: 1;color:rgb(148 163 184 / var(--tw-text-opacity))}.dark\:text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.dark\:placeholder-gray-400::-moz-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\:shadow-slate-700\/\[\.7\]{--tw-shadow-color: rgb(51 65 85 / .7);--tw-shadow: var(--tw-shadow-colored)}.dark\:before\:bg-gray-400:before{content:var(--tw-content);--tw-bg-opacity: 1;background-color:rgb(156 163 175 / var(--tw-bg-opacity))}.dark\:checked\:border-blue-500:checked{--tw-border-opacity: 1;border-color:rgb(59 130 246 / var(--tw-border-opacity))}.dark\:checked\:bg-blue-500:checked{--tw-bg-opacity: 1;background-color:rgb(59 130 246 / var(--tw-bg-opacity))}.dark\:checked\:bg-blue-600:checked{--tw-bg-opacity: 1;background-color:rgb(37 99 235 / var(--tw-bg-opacity))}.dark\:checked\:before\:bg-blue-200:checked:before{content:var(--tw-content);--tw-bg-opacity: 1;background-color:rgb(191 219 254 / var(--tw-bg-opacity))}.dark\:hover\:border-blue-400:hover{--tw-border-opacity: 1;border-color:rgb(96 165 250 / var(--tw-border-opacity))}.dark\:hover\:bg-gray-900:hover{--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity))}.dark\:hover\:bg-slate-800:hover{--tw-bg-opacity: 1;background-color:rgb(30 41 59 / var(--tw-bg-opacity))}.dark\:hover\:text-blue-400:hover{--tw-text-opacity: 1;color:rgb(96 165 250 / var(--tw-text-opacity))}.dark\:hover\:text-blue-500:hover{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity))}.dark\:hover\:text-red-500:hover{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity))}.dark\:hover\:text-slate-300:hover{--tw-text-opacity: 1;color:rgb(203 213 225 / var(--tw-text-opacity))}.dark\:hover\:text-white:hover{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.dark\:focus\:border-blue-500:focus{--tw-border-opacity: 1;border-color:rgb(59 130 246 / var(--tw-border-opacity))}.dark\:focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.dark\:focus\:ring-1: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(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)}.dark\:focus\:ring-blue-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(59 130 246 / var(--tw-ring-opacity))}.dark\:focus\:ring-gray-600:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(75 85 99 / var(--tw-ring-opacity))}.dark\:focus\:ring-gray-700:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(55 65 81 / var(--tw-ring-opacity))}.dark\:focus\:ring-red-600:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(220 38 38 / var(--tw-ring-opacity))}.dark\:focus\:ring-offset-gray-800:focus{--tw-ring-offset-color: #1f2937}}@media (min-width: 640px){.sm\:mx-auto{margin-left:auto;margin-right:auto}.sm\:mb-3{margin-bottom:.75rem}.sm\:mt-10{margin-top:2.5rem}.sm\:w-auto{width:auto}.sm\:w-full{width:100%}.sm\:max-w-lg{max-width:32rem}.sm\:flex-row{flex-direction:row}.sm\:gap-3{gap:.75rem}.sm\:gap-x-4{-moz-column-gap:1rem;column-gap:1rem}.sm\:p-4{padding:1rem}.sm\:px-6{padding-left:1.5rem;padding-right:1.5rem}.sm\:py-4{padding-top:1rem;padding-bottom:1rem}.sm\:py-6{padding-top:1.5rem;padding-bottom:1.5rem}.sm\:text-3xl{font-size:1.875rem;line-height:2.25rem}.sm\:text-4xl{font-size:2.25rem;line-height:2.5rem}.sm\:text-9xl{font-size:8rem;line-height:1}}@media (min-width: 768px){.md\:flex{display:flex}.md\:items-center{align-items:center}.md\:justify-between{justify-content:space-between}.md\:p-10{padding:2.5rem}.md\:p-5{padding:1.25rem}}@media (min-width: 1024px){.lg\:bottom-0{bottom:0}.lg\:right-auto{right:auto}.lg\:block{display:block}.lg\:hidden{display:none}.lg\:translate-x-0{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.lg\:px-8{padding-left:2rem;padding-right:2rem}.lg\:py-14{padding-top:3.5rem;padding-bottom:3.5rem}.lg\:pl-64{padding-left:16rem}}
'''

js_content = '''var Yr=Object.defineProperty;var Kr=(o,e,n)=>e in o?Yr(o,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):o[e]=n;var vn=(o,e,n)=>(Kr(o,typeof e!="symbol"?e+"":e,n),n);(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))t(r);new MutationObserver(r=>{for(const i of r)if(i.type==="childList")for(const s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&t(s)}).observe(document,{childList:!0,subtree:!0});function n(r){const i={};return r.integrity&&(i.integrity=r.integrity),r.referrerPolicy&&(i.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?i.credentials="include":r.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function t(r){if(r.ep)return;r.ep=!0;const i=n(r);fetch(r.href,i)}})();function K(){}function Xr(o,e){for(const n in e)o[n]=e[n];return o}function Ar(o){return o()}function Vn(){return Object.create(null)}function gt(o){o.forEach(Ar)}function Mt(o){return typeof o=="function"}function ye(o,e){return o!=o?e==e:o!==e||o&&typeof o=="object"||typeof o=="function"}let en;function Gn(o,e){return o===e?!0:(en||(en=document.createElement("a")),en.href=e,o===en.href)}function eo(o){return Object.keys(o).length===0}function Mr(o,...e){if(o==null){for(const t of e)t(void 0);return K}const n=o.subscribe(...e);return n.unsubscribe?()=>n.unsubscribe():n}function pt(o){let e;return Mr(o,n=>e=n)(),e}function et(o,e,n){o.$$.on_destroy.push(Mr(e,n))}function on(o,e,n,t){if(o){const r=Dr(o,e,n,t);return o[0](r)}}function Dr(o,e,n,t){return o[1]&&t?Xr(n.ctx.slice(),o[1](t(e))):n.ctx}function sn(o,e,n,t){if(o[2]&&t){const r=o[2](t(n));if(e.dirty===void 0)return r;if(typeof r=="object"){const i=[],s=Math.max(e.dirty.length,r.length);for(let a=0;a<s;a+=1)i[a]=e.dirty[a]|r[a];return i}return e.dirty|r}return e.dirty}function ln(o,e,n,t,r,i){if(r){const s=Dr(e,n,t,i);o.p(s,r)}}function an(o){if(o.ctx.length>32){const e=[],n=o.ctx.length/32;for(let t=0;t<n;t++)e[t]=-1;return e}return-1}function v(o,e){o.appendChild(e)}function N(o,e,n){o.insertBefore(e,n||null)}function B(o){o.parentNode&&o.parentNode.removeChild(o)}function tt(o,e){for(let n=0;n<o.length;n+=1)o[n]&&o[n].d(e)}function C(o){return document.createElement(o)}function Ke(o){return document.createElementNS("http://www.w3.org/2000/svg",o)}function ge(o){return document.createTextNode(o)}function F(){return ge(" ")}function ze(){return ge("")}function Le(o,e,n,t){return o.addEventListener(e,n,t),()=>o.removeEventListener(e,n,t)}function m(o,e,n){n==null?o.removeAttribute(e):o.getAttribute(e)!==n&&o.setAttribute(e,n)}function to(o){let e;return{p(...n){e=n,e.forEach(t=>o.push(t))},r(){e.forEach(n=>o.splice(o.indexOf(n),1))}}}function no(o){return Array.from(o.childNodes)}function Ne(o,e){e=""+e,o.data!==e&&(o.data=e)}function mt(o,e){o.value=e??""}function tn(o,e,n,t){n==null?o.style.removeProperty(e):o.style.setProperty(e,n,t?"important":"")}let Ut;function Gt(o){Ut=o}function ro(){if(!Ut)throw new Error("Function called outside component initialization");return Ut}function Rr(o){ro().$$.on_mount.push(o)}const At=[],wn=[];let Dt=[];const $n=[],oo=Promise.resolve();let kn=!1;function io(){kn||(kn=!0,oo.then(Hr))}function xn(o){Dt.push(o)}function so(o){$n.push(o)}const _n=new Set;let Pt=0;function Hr(){if(Pt!==0)return;const o=Ut;do{try{for(;Pt<At.length;){const e=At[Pt];Pt++,Gt(e),lo(e.$$)}}catch(e){throw At.length=0,Pt=0,e}for(Gt(null),At.length=0,Pt=0;wn.length;)wn.pop()();for(let e=0;e<Dt.length;e+=1){const n=Dt[e];_n.has(n)||(_n.add(n),n())}Dt.length=0}while(At.length);for(;$n.length;)$n.pop()();kn=!1,_n.clear(),Gt(o)}function lo(o){if(o.fragment!==null){o.update(),gt(o.before_update);const e=o.dirty;o.dirty=[-1],o.fragment&&o.fragment.p(o.ctx,e),o.after_update.forEach(xn)}}function ao(o){const e=[],n=[];Dt.forEach(t=>o.indexOf(t)===-1?e.push(t):n.push(t)),n.forEach(t=>t()),Dt=e}const nn=new Set;let xt;function je(){xt={r:0,c:[],p:xt}}function Pe(){xt.r||gt(xt.c),xt=xt.p}function E(o,e){o&&o.i&&(nn.delete(o),o.i(e))}function M(o,e,n,t){if(o&&o.o){if(nn.has(o))return;nn.add(o),xt.c.push(()=>{nn.delete(o),t&&(n&&o.d(1),t())}),o.o(e)}else t&&t()}function xe(o){return(o==null?void 0:o.length)!==void 0?o:Array.from(o)}function co(o,e,n){const t=o.$$.props[e];t!==void 0&&(o.$$.bound[t]=n,n(o.$$.ctx[t]))}function Q(o){o&&o.c()}function Z(o,e,n){const{fragment:t,after_update:r}=o.$$;t&&t.m(e,n),xn(()=>{const i=o.$$.on_mount.map(Ar).filter(Mt);o.$$.on_destroy?o.$$.on_destroy.push(...i):gt(i),o.$$.on_mount=[]}),r.forEach(xn)}function U(o,e){const n=o.$$;n.fragment!==null&&(ao(n.after_update),gt(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function uo(o,e){o.$$.dirty[0]===-1&&(At.push(o),io(),o.$$.dirty.fill(0)),o.$$.dirty[e/31|0]|=1<<e%31}function _e(o,e,n,t,r,i,s,a=[-1]){const c=Ut;Gt(o);const l=o.$$={fragment:null,ctx:[],props:i,update:K,not_equal:r,bound:Vn(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(c?c.$$.context:[])),callbacks:Vn(),dirty:a,skip_bound:!1,root:e.target||c.$$.root};s&&s(l.root);let d=!1;if(l.ctx=n?n(o,e.props||{},(y,L,...O)=>{const P=O.length?O[0]:L;return l.ctx&&r(l.ctx[y],l.ctx[y]=P)&&(!l.skip_bound&&l.bound[y]&&l.bound[y](P),d&&uo(o,y)),L}):[],l.update(),d=!0,gt(l.before_update),l.fragment=t?t(l.ctx):!1,e.target){if(e.hydrate){const y=no(e.target);l.fragment&&l.fragment.l(y),y.forEach(B)}else l.fragment&&l.fragment.c();e.intro&&E(o.$$.fragment),Z(o,e.target,e.anchor),Hr()}Gt(c)}class we{constructor(){vn(this,"$$");vn(this,"$$set")}$destroy(){U(this,1),this.$destroy=K}$on(e,n){if(!Mt(n))return K;const t=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return t.push(n),()=>{const r=t.indexOf(n);r!==-1&&t.splice(r,1)}}$set(e){this.$$set&&!eo(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const fo="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(fo);function Zn(o,e,n){const t=o.slice();return t[4]=e[n],t[6]=n,t}function Un(o){let e;return{c(){e=C("span"),e.innerHTML="",m(e,"class","inline")},m(n,t){N(n,e,t)},d(n){n&&B(e)}}}function Qn(o){let e,n=o[4]+"",t,r,i,s,a=o[6]<o[0]&&Un();return{c(){e=C("span"),t=ge(n),i=F(),a&&a.c(),s=ze(),m(e,"class",r=o[6]<o[0]?"inline":"hidden")},m(c,l){N(c,e,l),v(e,t),N(c,i,l),a&&a.m(c,l),N(c,s,l)},p(c,l){l&1&&r!==(r=c[6]<c[0]?"inline":"hidden")&&m(e,"class",r),c[6]<c[0]?a||(a=Un(),a.c(),a.m(s.parentNode,s)):a&&(a.d(1),a=null)},d(c){c&&(B(e),B(i),B(s)),a&&a.d(c)}}}function po(o){let e,n=xe(o[1]),t=[];for(let r=0;r<n.length;r+=1)t[r]=Qn(Zn(o,n,r));return{c(){for(let r=0;r<t.length;r+=1)t[r].c();e=ze()},m(r,i){for(let s=0;s<t.length;s+=1)t[s]&&t[s].m(r,i);N(r,e,i)},p(r,[i]){if(i&3){n=xe(r[1]);let s;for(s=0;s<n.length;s+=1){const a=Zn(r,n,s);t[s]?t[s].p(a,i):(t[s]=Qn(a),t[s].c(),t[s].m(e.parentNode,e))}for(;s<t.length;s+=1)t[s].d(1);t.length=n.length}},i:K,o:K,d(r){r&&B(e),tt(t,r)}}}function mo(o,e,n){let{text:t}=e,r=t.split(" "),i=0;return setInterval(()=>{i<r.length&&n(0,i++,i)},100),o.$$set=a=>{"text"in a&&n(2,t=a.text)},[i,r,t]}class go extends we{constructor(e){super(),_e(this,e,mo,po,ye,{text:2})}}const qt=[];function lt(o,e=K){let n;const t=new Set;function r(a){if(ye(o,a)&&(o=a,n)){const c=!qt.length;for(const l of t)l[1](),qt.push(l,o);if(c){for(let l=0;l<qt.length;l+=2)qt[l][0](qt[l+1]);qt.length=0}}}function i(a){r(a(o))}function s(a,c=K){const l=[a,c];return t.add(l),t.size===1&&(n=e(r,i)||K),a(o),()=>{t.delete(l),t.size===0&&n&&(n(),n=null)}}return{set:r,update:i,subscribe:s}}let Rt=lt(""),Ht=lt([]),Sn=lt(null),cn=lt(null),un=lt(!1),Zt=lt(!1),Wt=lt("chat"),On=lt([]),Qt=lt(""),Br=lt(!1),St=lt({logo:"",title:"Welcome to Vanna.AI",subtitle:"Loading...",show_training_data:!0,suggested_questions:!0,sql:!0,table:!0,csv_download:!0,chart:!0,redraw_chart:!0,auto_fix_sql:!0,ask_results_correct:!0,followup_questions:!0,summarization:!0});function fn(){Ht.set([]),un.set(!1),Zt.set(!1)}async function Cn(o){fn();let e=pt(St);ue({type:"user_question",question:o}),un.set(!0);const n=await Se("generate_sql","GET",{question:o});if(ue(n),n.type!=="sql")return;window.location.hash=n.id,Rt.set(n.id),Qt.set(n.text);const t=await Se("run_sql","GET",{id:n.id});if(ue(t),t.type!=="df")return;const r=await Se("generate_plotly_figure","GET",{id:t.id});if(ue(r),r.type==="plotly_figure"){if(On.update(i=>[...i,{question:o,id:r.id}]),e.summarization){const i=await Se("generate_summary","GET",{id:r.id});ue(i)}ue({type:"feedback_question"}),ue({type:"feedback_buttons"})}}async function ho(o){let e=pt(St);if(ue(o),o.type!=="sql")return;window.location.hash=o.id,Rt.set(o.id),Qt.set(o.text);const n=await Se("run_sql","GET",{id:o.id});if(ue(n),n.type!=="df")return;const t=await Se("generate_plotly_figure","GET",{id:n.id});if(ue(t),t.type==="plotly_figure"){if(e.summarization){const r=await Se("generate_summary","GET",{id:t.id});ue(r)}ue({type:"feedback_question"}),ue({type:"feedback_buttons"})}}function yo(o){ue({type:"user_question",question:"Re-run the SQL"}),Se("run_sql","GET",{id:o}).then(ue).then(e=>{e.type==="df"&&Se("generate_plotly_figure","GET",{id:e.id}).then(ue).then(n=>{n.type==="plotly_figure"&&Se("generate_followup_questions","GET",{id:n.id}).then(ue)})})}function bo(){Se("get_question_history","GET",[]).then(xo)}function vo(){Se("get_config","GET",[]).then(ko)}function Nr(){window.location.hash="training-data",Wt.set("training-data"),Se("get_training_data","GET",[]).then(rn)}function Ir(){window.location.hash="",Wt.set("chat"),fn(),pt(Sn)===null&&Se("generate_questions","GET",[]).then($o)}function _o(o){window.location.hash=o,Wt.set("chat"),fn(),un.set(!0),Se("load_question","GET",{id:o}).then(ue)}function wo(o){cn.set(null),Se("remove_training_data","POST",{id:o}).then(e=>{Se("get_training_data","GET",[]).then(rn)})}function ue(o){return Ht.update(e=>[...e,o]),Oo(),o}function rn(o){return cn.set(o),o.type==="df"&&JSON.parse(o.df).length===0&&Wt.set("no-training-data"),o}function $o(o){return Sn.set(o),o}function ko(o){return o.type==="config"&&St.set(o.config),o}function xo(o){return o.type==="question_history"&&On.set(o.questions),o}function So(o,e){cn.set(null);let n={};n[e]=o,Se("train","POST",n).then(rn).then(t=>{t.type!=="error"&&Se("get_training_data","GET",[]).then(rn)})}async function Se(o,e,n){try{Zt.set(!0);let t="",r;if(e==="GET")t=Object.entries(n).filter(([s,a])=>s!=="endpoint"&&s!=="addMessage").map(([s,a])=>`${encodeURIComponent(s)}=${encodeURIComponent(a)}`).join("&"),r=await fetch(`/api/v0/${o}?${t}`);else{let s=JSON.stringify(n);r=await fetch(`/api/v0/${o}`,{method:"POST",headers:{"Content-Type":"application/json"},body:s})}if(!r.ok)throw new Error("The server returned an error. See the server logs for more details.");const i=await r.json();return Zt.set(!1),i}catch(t){return Zt.set(!1),{type:"error",error:String(t)}}}function Oo(){setTimeout(()=>{window.scrollTo({top:document.body.scrollHeight,behavior:"smooth"})},100)}function Co(){let o=pt(Ht),e=o.find(n=>n.type==="user_question");if(e&&e.type==="user_question"){let n=o.find(t=>t.type==="sql");if(n&&n.type==="sql")return{question:e.question,sql:n.text}}return null}function dn(o){Ht.update(e=>e.filter(n=>n.type!==o))}function Lo(o){Se("fix_sql","POST",{id:pt(Rt),error:o}).then(ho)}function Eo(o){let n=pt(Ht).find(t=>t.type==="user_question");n&&n.type==="user_question"&&(Se("update_sql","POST",{id:pt(Rt),sql:o}).then(ue).then(t=>{t.type==="sql"&&(Qt.set(t.text),Se("run_sql","GET",{id:t.id}).then(ue).then(r=>{r.type==="df"?JSON.parse(r.df).length>1?Se("generate_plotly_figure","GET",{id:r.id}).then(ue).then(s=>{ue({type:"feedback_question"}),ue({type:"feedback_buttons"})}):(ue({type:"feedback_question"}),ue({type:"feedback_buttons"})):(ue({type:"feedback_question"}),ue({type:"feedback_buttons"}))}))}),dn("user_sql"))}function To(){ue({type:"chart_modification"})}function jo(){dn("feedback_buttons"),ue({type:"feedback_correct"});let o=Co();o&&(Se("train","POST",o),Se("generate_followup_questions","GET",{id:pt(Rt)}).then(ue))}function Wn(){dn("feedback_buttons"),ue({type:"feedback_incorrect"}),ue({type:"user_sql"})}function Po(o){dn("chart_modification"),ue({type:"user_question",question:"Update the chart with these instructions: "+o}),Se("generate_plotly_figure","GET",{id:pt(Rt),chart_instructions:o}).then(ue)}function Fn(o,e,n){const t=o.slice();return t[3]=e[n],t}function Jn(o){let e,n,t,r;return{c(){e=C("li"),n=C("button"),n.innerHTML=`<svg class="w-3.5 h-3.5" fill="none" stroke="currentColor" stroke-width="1.5" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" aria-hidden="true"><path stroke-linecap="round" stroke-linejoin="round" d="M4.26 10.147a60.436 60.436 0 00-.491 6.347A48.627 48.627 0 0112 20.904a48.627 48.627 0 018.232-4.41 60.46 60.46 0 00-.491-6.347m-15.482 0a50.57 50.57 0 00-2.658-.813A59.905 59.905 0 0112 3.493a59.902 59.902 0 0110.399 5.84c-.896.248-1.783.52-2.658.814m-15.482 0A50.697 50.697 0 0112 13.489a50.702 50.702 0 017.74-3.342M6.75 15a.75.75 0 100-1.5.75.75 0 000 1.5zm0 0v-3.675A55.378 55.378 0 0112 8.443m-7.007 11.55A5.981 5.981 0 006.75 15.75v-1.5"></path></svg>
              Training Data`,m(n,"class","flex items-center gap-x-3 py-2 px-3 text-sm text-slate-700 rounded-md hover:bg-gray-100 dark:hover:bg-gray-900 dark:text-slate-400 dark:hover:text-slate-300 border-t border-b border-gray-200 dark:border-gray-700 w-full")},m(i,s){N(i,e,s),v(e,n),t||(r=Le(n,"click",Nr),t=!0)},d(i){i&&B(e),t=!1,r()}}}function Yn(o){let e,n,t,r,i,s=o[3].question+"",a,c,l,d;function y(){return o[2](o[3])}return{c(){e=C("li"),n=C("button"),t=Ke("svg"),r=Ke("path"),i=F(),a=ge(s),c=F(),m(r,"stroke-linecap","round"),m(r,"stroke-linejoin","round"),m(r,"d","M7.5 8.25h9m-9 3H12m-9.75 1.51c0 1.6 1.123 2.994 2.707 3.227 1.129.166 2.27.293 3.423.379.35.026.67.21.865.501L12 21l2.755-4.133a1.14 1.14 0 01.865-.501 48.172 48.172 0 003.423-.379c1.584-.233 2.707-1.626 2.707-3.228V6.741c0-1.602-1.123-2.995-2.707-3.228A48.394 48.394 0 0012 3c-2.392 0-4.744.175-7.043.513C3.373 3.746 2.25 5.14 2.25 6.741v6.018z"),m(t,"class","w-3.5 h-3.5"),m(t,"fill","none"),m(t,"stroke","currentColor"),m(t,"stroke-width","1.5"),m(t,"viewBox","0 0 24 24"),m(t,"xmlns","http://www.w3.org/2000/svg"),m(t,"aria-hidden","true"),m(n,"class","flex items-center text-left gap-x-3 py-2 px-3 text-sm text-slate-700 rounded-md hover:bg-gray-100 dark:hover:bg-gray-900 dark:text-slate-400 dark:hover:text-slate-300")},m(L,O){N(L,e,O),v(e,n),v(n,t),v(t,r),v(n,i),v(n,a),v(e,c),l||(d=Le(n,"click",y),l=!0)},p(L,O){o=L,O&2&&s!==(s=o[3].question+"")&&Ne(a,s)},d(L){L&&B(e),l=!1,d()}}}function qo(o){let e,n,t,r,i,s,a,c,l,d,y,L,O,P,q,_,p,g,w=o[0].show_training_data&&Jn(),D=xe(o[1]),A=[];for(let x=0;x<D.length;x+=1)A[x]=Yn(Fn(o,D,x));return{c(){e=C("div"),n=C("nav"),t=C("div"),r=C("img"),s=F(),a=C("div"),a.innerHTML='<button type="button" class="w-8 h-8 inline-flex justify-center items-center gap-2 rounded-md text-gray-700 align-middle focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-white focus:ring-blue-600 transition-all dark:text-gray-400 dark:focus:ring-offset-gray-800" data-hs-overlay="#application-sidebar" aria-controls="application-sidebar" aria-label="Toggle navigation"><svg class="w-4 h-4" width="16" height="16" fill="currentColor" viewBox="0 0 16 16"><path d="M2.146 2.854a.5.5 0 1 1 .708-.708L8 7.293l5.146-5.147a.5.5 0 0 1 .708.708L8.707 8l5.147 5.146a.5.5 0 0 1-.708.708L8 8.707l-5.146 5.147a.5.5 0 0 1-.708-.708L7.293 8 2.146 2.854Z"></path></svg> <span class="sr-only">Sidebar</span></button>',c=F(),l=C("div"),d=C("ul"),w&&w.c(),y=F(),L=C("li"),O=C("button"),O.innerHTML=`<svg class="w-3.5 h-3.5" xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" viewBox="0 0 16 16"><path fill-rule="evenodd" clip-rule="evenodd" d="M8 2C8.47339 2 8.85714 2.38376 8.85714 2.85714V7.14286L13.1429 7.14286C13.6162 7.14286 14 7.52661 14 8C14 8.47339 13.6162 8.85714 13.1429 8.85714L8.85714 8.85715V13.1429C8.85714 13.6162 8.47339 14 8 14C7.52661 14 7.14286 13.6162 7.14286 13.1429V8.85715L2.85714 8.85715C2.38376 8.85715 2 8.4734 2 8.00001C2 7.52662 2.38376 7.14287 2.85714 7.14287L7.14286 7.14286V2.85714C7.14286 2.38376 7.52661 2 8 2Z" fill="currentColor"></path></svg>
              New question`,P=F();for(let x=0;x<A.length;x+=1)A[x].c();q=F(),_=C("div"),_.innerHTML=`<div class="py-2.5 px-7"><p class="inline-flex items-center gap-x-2 text-xs text-green-600"><span class="block w-1.5 h-1.5 rounded-full bg-green-600"></span>
            Connected</p></div> <div class="p-4 border-t border-gray-200 dark:border-gray-700"><a class="flex justify-between items-center gap-x-3 py-2 px-3 text-sm text-slate-700 rounded-md hover:bg-gray-100 dark:hover:bg-gray-900 dark:text-slate-400 dark:hover:text-slate-300" href="#replace">Sign out
            <svg class="w-3.5 h-3.5" xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" viewBox="0 0 16 16"><path fill-rule="evenodd" d="M10 3.5a.5.5 0 0 0-.5-.5h-8a.5.5 0 0 0-.5.5v9a.5.5 0 0 0 .5.5h8a.5.5 0 0 0 .5-.5v-2a.5.5 0 0 1 1 0v2A1.5 1.5 0 0 1 9.5 14h-8A1.5 1.5 0 0 1 0 12.5v-9A1.5 1.5 0 0 1 1.5 2h8A1.5 1.5 0 0 1 11 3.5v2a.5.5 0 0 1-1 0v-2z"></path><path fill-rule="evenodd" d="M4.146 8.354a.5.5 0 0 1 0-.708l3-3a.5.5 0 1 1 .708.708L5.707 7.5H14.5a.5.5 0 0 1 0 1H5.707l2.147 2.146a.5.5 0 0 1-.708.708l-3-3z"></path></svg></a></div>`,m(r,"class","w-28 h-auto"),Gn(r.src,i=o[0].logo)||m(r,"src",i),m(r,"alt","Vanna Logo"),m(a,"class","lg:hidden"),m(t,"class","flex items-center justify-between py-4 pr-4 pl-7"),m(O,"class","flex items-center gap-x-3 py-2 px-3 text-sm text-slate-700 rounded-md hover:bg-gray-100 dark:hover:bg-gray-900 dark:text-slate-400 dark:hover:text-slate-300"),m(d,"class","space-y-1.5 p-4"),m(l,"class","h-full"),m(_,"class","mt-auto"),m(n,"class","hs-accordion-group w-full h-full flex flex-col"),m(n,"data-hs-accordion-always-open",""),m(e,"id","application-sidebar"),m(e,"class","hs-overlay hs-overlay-open:translate-x-0 -translate-x-full transition-all duration-300 transform hidden fixed top-0 left-0 bottom-0 z-[60] w-64 bg-white border-r border-gray-200 overflow-y-auto scrollbar-y lg:block lg:translate-x-0 lg:right-auto lg:bottom-0 dark:scrollbar-y dark:bg-slate-900 dark:border-gray-700")},m(x,u){N(x,e,u),v(e,n),v(n,t),v(t,r),v(t,s),v(t,a),v(n,c),v(n,l),v(l,d),w&&w.m(d,null),v(d,y),v(d,L),v(L,O),v(d,P);for(let f=0;f<A.length;f+=1)A[f]&&A[f].m(d,null);v(n,q),v(n,_),p||(g=Le(O,"click",Ir),p=!0)},p(x,[u]){if(u&1&&!Gn(r.src,i=x[0].logo)&&m(r,"src",i),x[0].show_training_data?w||(w=Jn(),w.c(),w.m(d,y)):w&&(w.d(1),w=null),u&2){D=xe(x[1]);let f;for(f=0;f<D.length;f+=1){const k=Fn(x,D,f);A[f]?A[f].p(k,u):(A[f]=Yn(k),A[f].c(),A[f].m(d,null))}for(;f<A.length;f+=1)A[f].d(1);A.length=D.length}},i:K,o:K,d(x){x&&B(e),w&&w.d(),tt(A,x),p=!1,g()}}}function Ao(o,e,n){let t,r;return et(o,St,s=>n(0,t=s)),et(o,On,s=>n(1,r=s)),[t,r,s=>{_o(s.id)}]}class Mo extends we{constructor(e){super(),_e(this,e,Ao,qo,ye,{})}}var Do={exports:{}};/*! For license information please see preline.js.LICENSE.txt */(function(o,e){(function(n,t){o.exports=t()})(self,function(){return(()=>{var n={661:(s,a,c)=>{function l(q){return l=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(_){return typeof _}:function(_){return _&&typeof Symbol=="function"&&_.constructor===Symbol&&_!==Symbol.prototype?"symbol":typeof _},l(q)}function d(q,_){for(var p=0;p<_.length;p++){var g=_[p];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(q,g.key,g)}}function y(q,_){return y=Object.setPrototypeOf||function(p,g){return p.__proto__=g,p},y(q,_)}function L(q,_){if(_&&(l(_)==="object"||typeof _=="function"))return _;if(_!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(p){if(p===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p}(q)}function O(q){return O=Object.setPrototypeOf?Object.getPrototypeOf:function(_){return _.__proto__||Object.getPrototypeOf(_)},O(q)}var P=function(q){(function(x,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");x.prototype=Object.create(u&&u.prototype,{constructor:{value:x,writable:!0,configurable:!0}}),Object.defineProperty(x,"prototype",{writable:!1}),u&&y(x,u)})(A,q);var _,p,g,w,D=(g=A,w=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var x,u=O(g);if(w){var f=O(this).constructor;x=Reflect.construct(u,arguments,f)}else x=u.apply(this,arguments);return L(this,x)});function A(){return function(x,u){if(!(x instanceof u))throw new TypeError("Cannot call a class as a function")}(this,A),D.call(this,".hs-accordion")}return _=A,(p=[{key:"init",value:function(){var x=this;document.addEventListener("click",function(u){var f=u.target,k=f.closest(x.selector),T=f.closest(".hs-accordion-toggle"),S=f.closest(".hs-accordion-group");k&&S&&T&&(x._hideAll(k),x.show(k))})}},{key:"show",value:function(x){var u=this;if(x.classList.contains("active"))return this.hide(x);x.classList.add("active");var f=x.querySelector(".hs-accordion-content");f.style.display="block",f.style.height=0,setTimeout(function(){f.style.height="".concat(f.scrollHeight,"px")}),this.afterTransition(f,function(){x.classList.contains("active")&&(f.style.height="",u._fireEvent("open",x),u._dispatch("open.hs.accordion",x,x))})}},{key:"hide",value:function(x){var u=this,f=x.querySelector(".hs-accordion-content");f.style.height="".concat(f.scrollHeight,"px"),setTimeout(function(){f.style.height=0}),this.afterTransition(f,function(){x.classList.contains("active")||(f.style.display="",u._fireEvent("hide",x),u._dispatch("hide.hs.accordion",x,x))}),x.classList.remove("active")}},{key:"_hideAll",value:function(x){var u=this,f=x.closest(".hs-accordion-group");f.hasAttribute("data-hs-accordion-always-open")||f.querySelectorAll(this.selector).forEach(function(k){x!==k&&u.hide(k)})}}])&&d(_.prototype,p),Object.defineProperty(_,"prototype",{writable:!1}),A}(c(765).Z);window.HSAccordion=new P,document.addEventListener("load",window.HSAccordion.init())},795:(s,a,c)=>{function l(_){return l=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(p){return typeof p}:function(p){return p&&typeof Symbol=="function"&&p.constructor===Symbol&&p!==Symbol.prototype?"symbol":typeof p},l(_)}function d(_,p){(p==null||p>_.length)&&(p=_.length);for(var g=0,w=new Array(p);g<p;g++)w[g]=_[g];return w}function y(_,p){for(var g=0;g<p.length;g++){var w=p[g];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(_,w.key,w)}}function L(_,p){return L=Object.setPrototypeOf||function(g,w){return g.__proto__=w,g},L(_,p)}function O(_,p){if(p&&(l(p)==="object"||typeof p=="function"))return p;if(p!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(g){if(g===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g}(_)}function P(_){return P=Object.setPrototypeOf?Object.getPrototypeOf:function(p){return p.__proto__||Object.getPrototypeOf(p)},P(_)}var q=function(_){(function(u,f){if(typeof f!="function"&&f!==null)throw new TypeError("Super expression must either be null or a function");u.prototype=Object.create(f&&f.prototype,{constructor:{value:u,writable:!0,configurable:!0}}),Object.defineProperty(u,"prototype",{writable:!1}),f&&L(u,f)})(x,_);var p,g,w,D,A=(w=x,D=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var u,f=P(w);if(D){var k=P(this).constructor;u=Reflect.construct(f,arguments,k)}else u=f.apply(this,arguments);return O(this,u)});function x(){return function(u,f){if(!(u instanceof f))throw new TypeError("Cannot call a class as a function")}(this,x),A.call(this,"[data-hs-collapse]")}return p=x,(g=[{key:"init",value:function(){var u=this;document.addEventListener("click",function(f){var k=f.target.closest(u.selector);if(k){var T=document.querySelectorAll(k.getAttribute("data-hs-collapse"));u.toggle(T)}})}},{key:"toggle",value:function(u){var f,k=this;u.length&&(f=u,function(T){if(Array.isArray(T))return d(T)}(f)||function(T){if(typeof Symbol<"u"&&T[Symbol.iterator]!=null||T["@@iterator"]!=null)return Array.from(T)}(f)||function(T,S){if(T){if(typeof T=="string")return d(T,S);var j=Object.prototype.toString.call(T).slice(8,-1);return j==="Object"&&T.constructor&&(j=T.constructor.name),j==="Map"||j==="Set"?Array.from(T):j==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(j)?d(T,S):void 0}}(f)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()).forEach(function(T){T.classList.contains("hidden")?k.show(T):k.hide(T)})}},{key:"show",value:function(u){var f=this;u.classList.add("open"),u.classList.remove("hidden"),u.style.height=0,document.querySelectorAll(this.selector).forEach(function(k){u.closest(k.getAttribute("data-hs-collapse"))&&k.classList.add("open")}),u.style.height="".concat(u.scrollHeight,"px"),this.afterTransition(u,function(){u.classList.contains("open")&&(u.style.height="",f._fireEvent("open",u),f._dispatch("open.hs.collapse",u,u))})}},{key:"hide",value:function(u){var f=this;u.style.height="".concat(u.scrollHeight,"px"),setTimeout(function(){u.style.height=0}),u.classList.remove("open"),this.afterTransition(u,function(){u.classList.contains("open")||(u.classList.add("hidden"),u.style.height=null,f._fireEvent("hide",u),f._dispatch("hide.hs.collapse",u,u),u.querySelectorAll(".hs-mega-menu-content.block").forEach(function(k){k.classList.remove("block"),k.classList.add("hidden")}))}),document.querySelectorAll(this.selector).forEach(function(k){u.closest(k.getAttribute("data-hs-collapse"))&&k.classList.remove("open")})}}])&&y(p.prototype,g),Object.defineProperty(p,"prototype",{writable:!1}),x}(c(765).Z);window.HSCollapse=new q,document.addEventListener("load",window.HSCollapse.init())},682:(s,a,c)=>{var l=c(714),d=c(765);const y={historyIndex:-1,addHistory:function(D){this.historyIndex=D},existsInHistory:function(D){return D>this.historyIndex},clearHistory:function(){this.historyIndex=-1}};function L(D){return L=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(A){return typeof A}:function(A){return A&&typeof Symbol=="function"&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A},L(D)}function O(D){return function(A){if(Array.isArray(A))return P(A)}(D)||function(A){if(typeof Symbol<"u"&&A[Symbol.iterator]!=null||A["@@iterator"]!=null)return Array.from(A)}(D)||function(A,x){if(A){if(typeof A=="string")return P(A,x);var u=Object.prototype.toString.call(A).slice(8,-1);return u==="Object"&&A.constructor&&(u=A.constructor.name),u==="Map"||u==="Set"?Array.from(A):u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u)?P(A,x):void 0}}(D)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function P(D,A){(A==null||A>D.length)&&(A=D.length);for(var x=0,u=new Array(A);x<A;x++)u[x]=D[x];return u}function q(D,A){for(var x=0;x<A.length;x++){var u=A[x];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(D,u.key,u)}}function _(D,A){return _=Object.setPrototypeOf||function(x,u){return x.__proto__=u,x},_(D,A)}function p(D,A){if(A&&(L(A)==="object"||typeof A=="function"))return A;if(A!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(x){if(x===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return x}(D)}function g(D){return g=Object.setPrototypeOf?Object.getPrototypeOf:function(A){return A.__proto__||Object.getPrototypeOf(A)},g(D)}var w=function(D){(function(S,j){if(typeof j!="function"&&j!==null)throw new TypeError("Super expression must either be null or a function");S.prototype=Object.create(j&&j.prototype,{constructor:{value:S,writable:!0,configurable:!0}}),Object.defineProperty(S,"prototype",{writable:!1}),j&&_(S,j)})(T,D);var A,x,u,f,k=(u=T,f=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var S,j=g(u);if(f){var H=g(this).constructor;S=Reflect.construct(j,arguments,H)}else S=j.apply(this,arguments);return p(this,S)});function T(){var S;return function(j,H){if(!(j instanceof H))throw new TypeError("Cannot call a class as a function")}(this,T),(S=k.call(this,".hs-dropdown")).positions={top:"top","top-left":"top-start","top-right":"top-end",bottom:"bottom","bottom-left":"bottom-start","bottom-right":"bottom-end",right:"right","right-top":"right-start","right-bottom":"right-end",left:"left","left-top":"left-start","left-bottom":"left-end"},S.absoluteStrategyModifiers=function(j){return[{name:"applyStyles",fn:function(H){var I=(window.getComputedStyle(j).getPropertyValue("--strategy")||"absolute").replace(" ",""),W=(window.getComputedStyle(j).getPropertyValue("--adaptive")||"adaptive").replace(" ","");H.state.elements.popper.style.position=I,H.state.elements.popper.style.transform=W==="adaptive"?H.state.styles.popper.transform:null,H.state.elements.popper.style.top=null,H.state.elements.popper.style.bottom=null,H.state.elements.popper.style.left=null,H.state.elements.popper.style.right=null,H.state.elements.popper.style.margin=0}},{name:"computeStyles",options:{adaptive:!1}}]},S._history=y,S}return A=T,x=[{key:"init",value:function(){var S=this;document.addEventListener("click",function(j){var H=j.target,I=H.closest(S.selector),W=H.closest(".hs-dropdown-menu");if(I&&I.classList.contains("open")||S._closeOthers(I),W){var J=(window.getComputedStyle(I).getPropertyValue("--auto-close")||"").replace(" ","");if((J=="false"||J=="inside")&&!I.parentElement.closest(S.selector))return}I&&(I.classList.contains("open")?S.close(I):S.open(I))}),document.addEventListener("mousemove",function(j){var H=j.target,I=H.closest(S.selector);if(H.closest(".hs-dropdown-menu"),I){var W=(window.getComputedStyle(I).getPropertyValue("--trigger")||"click").replace(" ","");if(W!=="hover")return;I&&I.classList.contains("open")||S._closeOthers(I),W!=="hover"||I.classList.contains("open")||/iPad|iPhone|iPod/.test(navigator.platform)||navigator.maxTouchPoints&&navigator.maxTouchPoints>2&&/MacIntel/.test(navigator.platform)||navigator.maxTouchPoints&&navigator.maxTouchPoints>2&&/MacIntel/.test(navigator.platform)||S._hover(H)}}),document.addEventListener("keydown",this._keyboardSupport.bind(this)),window.addEventListener("resize",function(){document.querySelectorAll(".hs-dropdown.open").forEach(function(j){S.close(j,!0)})})}},{key:"_closeOthers",value:function(){var S=this,j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,H=document.querySelectorAll("".concat(this.selector,".open"));H.forEach(function(I){if(!j||j.closest(".hs-dropdown.open")!==I){var W=(window.getComputedStyle(I).getPropertyValue("--auto-close")||"").replace(" ","");W!="false"&&W!="outside"&&S.close(I)}})}},{key:"_hover",value:function(S){var j=this,H=S.closest(this.selector);this.open(H),document.addEventListener("mousemove",function I(W){W.target.closest(j.selector)&&W.target.closest(j.selector)!==H.parentElement.closest(j.selector)||(j.close(H),document.removeEventListener("mousemove",I,!0))},!0)}},{key:"close",value:function(S){var j=this,H=arguments.length>1&&arguments[1]!==void 0&&arguments[1],I=S.querySelector(".hs-dropdown-menu"),W=function(){S.classList.contains("open")||(I.classList.remove("block"),I.classList.add("hidden"),I.style.inset=null,I.style.position=null,S._popper&&S._popper.destroy())};H||this.afterTransition(S.querySelector("[data-hs-dropdown-transition]")||I,function(){W()}),I.style.margin=null,S.classList.remove("open"),H&&W(),this._fireEvent("close",S),this._dispatch("close.hs.dropdown",S,S);var J=I.querySelectorAll(".hs-dropdown.open");J.forEach(function(Oe){j.close(Oe,!0)})}},{key:"open",value:function(S){var j=S.querySelector(".hs-dropdown-menu"),H=(window.getComputedStyle(S).getPropertyValue("--placement")||"").replace(" ",""),I=(window.getComputedStyle(S).getPropertyValue("--strategy")||"fixed").replace(" ",""),W=((window.getComputedStyle(S).getPropertyValue("--adaptive")||"adaptive").replace(" ",""),parseInt((window.getComputedStyle(S).getPropertyValue("--offset")||"10").replace(" ","")));if(I!=="static"){S._popper&&S._popper.destroy();var J=(0,l.fi)(S,j,{placement:this.positions[H]||"bottom-start",strategy:I,modifiers:[].concat(O(I!=="fixed"?this.absoluteStrategyModifiers(S):[]),[{name:"offset",options:{offset:[0,W]}}])});S._popper=J}j.style.margin=null,j.classList.add("block"),j.classList.remove("hidden"),setTimeout(function(){S.classList.add("open")}),this._fireEvent("open",S),this._dispatch("open.hs.dropdown",S,S)}},{key:"_keyboardSupport",value:function(S){var j=document.querySelector(".hs-dropdown.open");if(j)return S.keyCode===27?(S.preventDefault(),this._esc(j)):S.keyCode===40?(S.preventDefault(),this._down(j)):S.keyCode===38?(S.preventDefault(),this._up(j)):S.keyCode===36?(S.preventDefault(),this._start(j)):S.keyCode===35?(S.preventDefault(),this._end(j)):void this._byChar(j,S.key)}},{key:"_esc",value:function(S){this.close(S)}},{key:"_up",value:function(S){var j=S.querySelector(".hs-dropdown-menu"),H=O(j.querySelectorAll("a")).reverse().filter(function(J){return!J.disabled}),I=j.querySelector("a:focus"),W=H.findIndex(function(J){return J===I});W+1<H.length&&W++,H[W].focus()}},{key:"_down",value:function(S){var j=S.querySelector(".hs-dropdown-menu"),H=O(j.querySelectorAll("a")).filter(function(J){return!J.disabled}),I=j.querySelector("a:focus"),W=H.findIndex(function(J){return J===I});W+1<H.length&&W++,H[W].focus()}},{key:"_start",value:function(S){var j=O(S.querySelector(".hs-dropdown-menu").querySelectorAll("a")).filter(function(H){return!H.disabled});j.length&&j[0].focus()}},{key:"_end",value:function(S){var j=O(S.querySelector(".hs-dropdown-menu").querySelectorAll("a")).reverse().filter(function(H){return!H.disabled});j.length&&j[0].focus()}},{key:"_byChar",value:function(S,j){var H=this,I=O(S.querySelector(".hs-dropdown-menu").querySelectorAll("a")),W=function(){return I.findIndex(function(Oe,ae){return Oe.innerText.toLowerCase().charAt(0)===j.toLowerCase()&&H._history.existsInHistory(ae)})},J=W();J===-1&&(this._history.clearHistory(),J=W()),J!==-1&&(I[J].focus(),this._history.addHistory(J))}},{key:"toggle",value:function(S){S.classList.contains("open")?this.close(S):this.open(S)}}],x&&q(A.prototype,x),Object.defineProperty(A,"prototype",{writable:!1}),T}(d.Z);window.HSDropdown=new w,document.addEventListener("load",window.HSDropdown.init())},284:(s,a,c)=>{function l(_){return l=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(p){return typeof p}:function(p){return p&&typeof Symbol=="function"&&p.constructor===Symbol&&p!==Symbol.prototype?"symbol":typeof p},l(_)}function d(_,p){(p==null||p>_.length)&&(p=_.length);for(var g=0,w=new Array(p);g<p;g++)w[g]=_[g];return w}function y(_,p){for(var g=0;g<p.length;g++){var w=p[g];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(_,w.key,w)}}function L(_,p){return L=Object.setPrototypeOf||function(g,w){return g.__proto__=w,g},L(_,p)}function O(_,p){if(p&&(l(p)==="object"||typeof p=="function"))return p;if(p!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(g){if(g===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g}(_)}function P(_){return P=Object.setPrototypeOf?Object.getPrototypeOf:function(p){return p.__proto__||Object.getPrototypeOf(p)},P(_)}var q=function(_){(function(u,f){if(typeof f!="function"&&f!==null)throw new TypeError("Super expression must either be null or a function");u.prototype=Object.create(f&&f.prototype,{constructor:{value:u,writable:!0,configurable:!0}}),Object.defineProperty(u,"prototype",{writable:!1}),f&&L(u,f)})(x,_);var p,g,w,D,A=(w=x,D=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var u,f=P(w);if(D){var k=P(this).constructor;u=Reflect.construct(f,arguments,k)}else u=f.apply(this,arguments);return O(this,u)});function x(){var u;return function(f,k){if(!(f instanceof k))throw new TypeError("Cannot call a class as a function")}(this,x),(u=A.call(this,"[data-hs-overlay]")).openNextOverlay=!1,u}return p=x,(g=[{key:"init",value:function(){var u=this;document.addEventListener("click",function(f){var k=f.target.closest(u.selector),T=f.target.closest("[data-hs-overlay-close]"),S=f.target.getAttribute("aria-overlay")==="true";return T?u.close(T.closest(".hs-overlay.open")):k?u.toggle(document.querySelector(k.getAttribute("data-hs-overlay"))):void(S&&u._onBackdropClick(f.target))}),document.addEventListener("keydown",function(f){if(f.keyCode===27){var k=document.querySelector(".hs-overlay.open");if(!k)return;setTimeout(function(){k.getAttribute("data-hs-overlay-keyboard")!=="false"&&u.close(k)})}})}},{key:"toggle",value:function(u){u&&(u.classList.contains("hidden")?this.open(u):this.close(u))}},{key:"open",value:function(u){var f=this;if(u){var k=document.querySelector(".hs-overlay.open"),T=this.getClassProperty(u,"--body-scroll","false")!=="true";if(k)return this.openNextOverlay=!0,this.close(k).then(function(){f.open(u),f.openNextOverlay=!1});T&&(document.body.style.overflow="hidden"),this._buildBackdrop(u),this._checkTimer(u),this._autoHide(u),u.classList.remove("hidden"),u.setAttribute("aria-overlay","true"),u.setAttribute("tabindex","-1"),setTimeout(function(){u.classList.contains("hidden")||(u.classList.add("open"),f._fireEvent("open",u),f._dispatch("open.hs.overlay",u,u),f._focusInput(u))},50)}}},{key:"close",value:function(u){var f=this;return new Promise(function(k){u&&(u.classList.remove("open"),u.removeAttribute("aria-overlay"),u.removeAttribute("tabindex","-1"),f.afterTransition(u,function(){u.classList.contains("open")||(u.classList.add("hidden"),f._destroyBackdrop(),f._fireEvent("close",u),f._dispatch("close.hs.overlay",u,u),document.body.style.overflow="",k(u))}))})}},{key:"_autoHide",value:function(u){var f=this,k=parseInt(this.getClassProperty(u,"--auto-hide","0"));k&&(u.autoHide=setTimeout(function(){f.close(u)},k))}},{key:"_checkTimer",value:function(u){u.autoHide&&(clearTimeout(u.autoHide),delete u.autoHide)}},{key:"_onBackdropClick",value:function(u){this.getClassProperty(u,"--overlay-backdrop","true")!=="static"&&this.close(u)}},{key:"_buildBackdrop",value:function(u){var f,k=this,T=u.getAttribute("data-hs-overlay-backdrop-container")||!1,S=document.createElement("div"),j="transition duration fixed inset-0 z-50 bg-gray-900 bg-opacity-50 dark:bg-opacity-80 hs-overlay-backdrop",H=function(J,Oe){var ae=typeof Symbol<"u"&&J[Symbol.iterator]||J["@@iterator"];if(!ae){if(Array.isArray(J)||(ae=function(be,ft){if(be){if(typeof be=="string")return d(be,ft);var Qe=Object.prototype.toString.call(be).slice(8,-1);return Qe==="Object"&&be.constructor&&(Qe=be.constructor.name),Qe==="Map"||Qe==="Set"?Array.from(be):Qe==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Qe)?d(be,ft):void 0}}(J))||Oe&&J&&typeof J.length=="number"){ae&&(J=ae);var rt=0,nt=function(){};return{s:nt,n:function(){return rt>=J.length?{done:!0}:{done:!1,value:J[rt++]}},e:function(be){throw be},f:nt}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Ge,Ue=!0,ht=!1;return{s:function(){ae=ae.call(J)},n:function(){var be=ae.next();return Ue=be.done,be},e:function(be){ht=!0,Ge=be},f:function(){try{Ue||ae.return==null||ae.return()}finally{if(ht)throw Ge}}}}(u.classList.values());try{for(H.s();!(f=H.n()).done;){var I=f.value;I.startsWith("hs-overlay-backdrop-open:")&&(j+=" ".concat(I))}}catch(J){H.e(J)}finally{H.f()}var W=this.getClassProperty(u,"--overlay-backdrop","true")!=="static";this.getClassProperty(u,"--overlay-backdrop","true")==="false"||(T&&((S=document.querySelector(T).cloneNode(!0)).classList.remove("hidden"),j=S.classList,S.classList=""),W&&S.addEventListener("click",function(){return k.close(u)},!0),S.setAttribute("data-hs-overlay-backdrop-template",""),document.body.appendChild(S),setTimeout(function(){S.classList=j}))}},{key:"_destroyBackdrop",value:function(){var u=document.querySelector("[data-hs-overlay-backdrop-template]");u&&(this.openNextOverlay&&(u.style.transitionDuration="".concat(1.8*parseFloat(window.getComputedStyle(u).transitionDuration.replace(/[^\d.-]/g,"")),"s")),u.classList.add("opacity-0"),this.afterTransition(u,function(){u.remove()}))}},{key:"_focusInput",value:function(u){var f=u.querySelector("[autofocus]");f&&f.focus()}}])&&y(p.prototype,g),Object.defineProperty(p,"prototype",{writable:!1}),x}(c(765).Z);window.HSOverlay=new q,document.addEventListener("load",window.HSOverlay.init())},181:(s,a,c)=>{function l(q){return l=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(_){return typeof _}:function(_){return _&&typeof Symbol=="function"&&_.constructor===Symbol&&_!==Symbol.prototype?"symbol":typeof _},l(q)}function d(q,_){for(var p=0;p<_.length;p++){var g=_[p];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(q,g.key,g)}}function y(q,_){return y=Object.setPrototypeOf||function(p,g){return p.__proto__=g,p},y(q,_)}function L(q,_){if(_&&(l(_)==="object"||typeof _=="function"))return _;if(_!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(p){if(p===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p}(q)}function O(q){return O=Object.setPrototypeOf?Object.getPrototypeOf:function(_){return _.__proto__||Object.getPrototypeOf(_)},O(q)}var P=function(q){(function(x,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");x.prototype=Object.create(u&&u.prototype,{constructor:{value:x,writable:!0,configurable:!0}}),Object.defineProperty(x,"prototype",{writable:!1}),u&&y(x,u)})(A,q);var _,p,g,w,D=(g=A,w=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var x,u=O(g);if(w){var f=O(this).constructor;x=Reflect.construct(u,arguments,f)}else x=u.apply(this,arguments);return L(this,x)});function A(){return function(x,u){if(!(x instanceof u))throw new TypeError("Cannot call a class as a function")}(this,A),D.call(this,"[data-hs-remove-element]")}return _=A,(p=[{key:"init",value:function(){var x=this;document.addEventListener("click",function(u){var f=u.target.closest(x.selector);if(f){var k=document.querySelector(f.getAttribute("data-hs-remove-element"));k&&(k.classList.add("hs-removing"),x.afterTransition(k,function(){k.remove()}))}})}}])&&d(_.prototype,p),Object.defineProperty(_,"prototype",{writable:!1}),A}(c(765).Z);window.HSRemoveElement=new P,document.addEventListener("load",window.HSRemoveElement.init())},778:(s,a,c)=>{function l(q){return l=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(_){return typeof _}:function(_){return _&&typeof Symbol=="function"&&_.constructor===Symbol&&_!==Symbol.prototype?"symbol":typeof _},l(q)}function d(q,_){for(var p=0;p<_.length;p++){var g=_[p];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(q,g.key,g)}}function y(q,_){return y=Object.setPrototypeOf||function(p,g){return p.__proto__=g,p},y(q,_)}function L(q,_){if(_&&(l(_)==="object"||typeof _=="function"))return _;if(_!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(p){if(p===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p}(q)}function O(q){return O=Object.setPrototypeOf?Object.getPrototypeOf:function(_){return _.__proto__||Object.getPrototypeOf(_)},O(q)}var P=function(q){(function(x,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");x.prototype=Object.create(u&&u.prototype,{constructor:{value:x,writable:!0,configurable:!0}}),Object.defineProperty(x,"prototype",{writable:!1}),u&&y(x,u)})(A,q);var _,p,g,w,D=(g=A,w=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var x,u=O(g);if(w){var f=O(this).constructor;x=Reflect.construct(u,arguments,f)}else x=u.apply(this,arguments);return L(this,x)});function A(){var x;return function(u,f){if(!(u instanceof f))throw new TypeError("Cannot call a class as a function")}(this,A),(x=D.call(this,"[data-hs-scrollspy] ")).activeSection=null,x}return _=A,(p=[{key:"init",value:function(){var x=this;document.querySelectorAll(this.selector).forEach(function(u){var f=document.querySelector(u.getAttribute("data-hs-scrollspy")),k=u.querySelectorAll("[href]"),T=f.children,S=u.getAttribute("data-hs-scrollspy-scrollable-parent")?document.querySelector(u.getAttribute("data-hs-scrollspy-scrollable-parent")):document;Array.from(T).forEach(function(j){j.getAttribute("id")&&S.addEventListener("scroll",function(H){return x._update({$scrollspyEl:u,$scrollspyContentEl:f,links:k,$sectionEl:j,sections:T,ev:H})})}),k.forEach(function(j){j.addEventListener("click",function(H){H.preventDefault(),j.getAttribute("href")!=="javascript:;"&&x._scrollTo({$scrollspyEl:u,$scrollableEl:S,$link:j})})})})}},{key:"_update",value:function(x){var u=x.ev,f=x.$scrollspyEl,k=(x.sections,x.links),T=x.$sectionEl,S=parseInt(this.getClassProperty(f,"--scrollspy-offset","0")),j=this.getClassProperty(T,"--scrollspy-offset")||S,H=u.target===document?0:parseInt(u.target.getBoundingClientRect().top),I=parseInt(T.getBoundingClientRect().top)-j-H,W=T.offsetHeight;if(I<=0&&I+W>0){if(this.activeSection===T)return;k.forEach(function(rt){rt.classList.remove("active")});var J=f.querySelector('[href="#'.concat(T.getAttribute("id"),'"]'));if(J){J.classList.add("active");var Oe=J.closest("[data-hs-scrollspy-group]");if(Oe){var ae=Oe.querySelector("[href]");ae&&ae.classList.add("active")}}this.activeSection=T}}},{key:"_scrollTo",value:function(x){var u=x.$scrollspyEl,f=x.$scrollableEl,k=x.$link,T=document.querySelector(k.getAttribute("href")),S=parseInt(this.getClassProperty(u,"--scrollspy-offset","0")),j=this.getClassProperty(T,"--scrollspy-offset")||S,H=f===document?0:f.offsetTop,I=T.offsetTop-j-H,W=f===document?window:f;this._fireEvent("scroll",u),this._dispatch("scroll.hs.scrollspy",u,u),window.history.replaceState(null,null,k.getAttribute("href")),W.scrollTo({top:I,left:0,behavior:"smooth"})}}])&&d(_.prototype,p),Object.defineProperty(_,"prototype",{writable:!1}),A}(c(765).Z);window.HSScrollspy=new P,document.addEventListener("load",window.HSScrollspy.init())},51:(s,a,c)=>{function l(p){return l=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(g){return typeof g}:function(g){return g&&typeof Symbol=="function"&&g.constructor===Symbol&&g!==Symbol.prototype?"symbol":typeof g},l(p)}function d(p){return function(g){if(Array.isArray(g))return y(g)}(p)||function(g){if(typeof Symbol<"u"&&g[Symbol.iterator]!=null||g["@@iterator"]!=null)return Array.from(g)}(p)||function(g,w){if(g){if(typeof g=="string")return y(g,w);var D=Object.prototype.toString.call(g).slice(8,-1);return D==="Object"&&g.constructor&&(D=g.constructor.name),D==="Map"||D==="Set"?Array.from(g):D==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(D)?y(g,w):void 0}}(p)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function y(p,g){(g==null||g>p.length)&&(g=p.length);for(var w=0,D=new Array(g);w<g;w++)D[w]=p[w];return D}function L(p,g){for(var w=0;w<g.length;w++){var D=g[w];D.enumerable=D.enumerable||!1,D.configurable=!0,"value"in D&&(D.writable=!0),Object.defineProperty(p,D.key,D)}}function O(p,g){return O=Object.setPrototypeOf||function(w,D){return w.__proto__=D,w},O(p,g)}function P(p,g){if(g&&(l(g)==="object"||typeof g=="function"))return g;if(g!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(w){if(w===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return w}(p)}function q(p){return q=Object.setPrototypeOf?Object.getPrototypeOf:function(g){return g.__proto__||Object.getPrototypeOf(g)},q(p)}var _=function(p){(function(f,k){if(typeof k!="function"&&k!==null)throw new TypeError("Super expression must either be null or a function");f.prototype=Object.create(k&&k.prototype,{constructor:{value:f,writable:!0,configurable:!0}}),Object.defineProperty(f,"prototype",{writable:!1}),k&&O(f,k)})(u,p);var g,w,D,A,x=(D=u,A=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var f,k=q(D);if(A){var T=q(this).constructor;f=Reflect.construct(k,arguments,T)}else f=k.apply(this,arguments);return P(this,f)});function u(){return function(f,k){if(!(f instanceof k))throw new TypeError("Cannot call a class as a function")}(this,u),x.call(this,"[data-hs-tab]")}return g=u,(w=[{key:"init",value:function(){var f=this;document.addEventListener("keydown",this._keyboardSupport.bind(this)),document.addEventListener("click",function(k){var T=k.target.closest(f.selector);T&&f.open(T)}),document.querySelectorAll("[hs-data-tab-select]").forEach(function(k){var T=document.querySelector(k.getAttribute("hs-data-tab-select"));T&&T.addEventListener("change",function(S){var j=document.querySelector('[data-hs-tab="'.concat(S.target.value,'"]'));j&&f.open(j)})})}},{key:"open",value:function(f){var k=document.querySelector(f.getAttribute("data-hs-tab")),T=d(f.parentElement.children),S=d(k.parentElement.children),j=f.closest("[hs-data-tab-select]"),H=j?document.querySelector(j.getAttribute("data-hs-tab")):null;T.forEach(function(I){return I.classList.remove("active")}),S.forEach(function(I){return I.classList.add("hidden")}),f.classList.add("active"),k.classList.remove("hidden"),this._fireEvent("change",f),this._dispatch("change.hs.tab",f,f),H&&(H.value=f.getAttribute("data-hs-tab"))}},{key:"_keyboardSupport",value:function(f){var k=f.target.closest(this.selector);if(k){var T=k.closest('[role="tablist"]').getAttribute("data-hs-tabs-vertical")==="true";return(T?f.keyCode===38:f.keyCode===37)?(f.preventDefault(),this._left(k)):(T?f.keyCode===40:f.keyCode===39)?(f.preventDefault(),this._right(k)):f.keyCode===36?(f.preventDefault(),this._start(k)):f.keyCode===35?(f.preventDefault(),this._end(k)):void 0}}},{key:"_right",value:function(f){var k=f.closest('[role="tablist"]');if(k){var T=d(k.querySelectorAll(this.selector)).filter(function(H){return!H.disabled}),S=k.querySelector("button:focus"),j=T.findIndex(function(H){return H===S});j+1<T.length?j++:j=0,T[j].focus(),this.open(T[j])}}},{key:"_left",value:function(f){var k=f.closest('[role="tablist"]');if(k){var T=d(k.querySelectorAll(this.selector)).filter(function(H){return!H.disabled}).reverse(),S=k.querySelector("button:focus"),j=T.findIndex(function(H){return H===S});j+1<T.length?j++:j=0,T[j].focus(),this.open(T[j])}}},{key:"_start",value:function(f){var k=f.closest('[role="tablist"]');if(k){var T=d(k.querySelectorAll(this.selector)).filter(function(S){return!S.disabled});T.length&&(T[0].focus(),this.open(T[0]))}}},{key:"_end",value:function(f){var k=f.closest('[role="tablist"]');if(k){var T=d(k.querySelectorAll(this.selector)).reverse().filter(function(S){return!S.disabled});T.length&&(T[0].focus(),this.open(T[0]))}}}])&&L(g.prototype,w),Object.defineProperty(g,"prototype",{writable:!1}),u}(c(765).Z);window.HSTabs=new _,document.addEventListener("load",window.HSTabs.init())},185:(s,a,c)=>{var l=c(765),d=c(714);function y(p){return y=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(g){return typeof g}:function(g){return g&&typeof Symbol=="function"&&g.constructor===Symbol&&g!==Symbol.prototype?"symbol":typeof g},y(p)}function L(p,g){for(var w=0;w<g.length;w++){var D=g[w];D.enumerable=D.enumerable||!1,D.configurable=!0,"value"in D&&(D.writable=!0),Object.defineProperty(p,D.key,D)}}function O(p,g){return O=Object.setPrototypeOf||function(w,D){return w.__proto__=D,w},O(p,g)}function P(p,g){if(g&&(y(g)==="object"||typeof g=="function"))return g;if(g!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(w){if(w===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return w}(p)}function q(p){return q=Object.setPrototypeOf?Object.getPrototypeOf:function(g){return g.__proto__||Object.getPrototypeOf(g)},q(p)}var _=function(p){(function(f,k){if(typeof k!="function"&&k!==null)throw new TypeError("Super expression must either be null or a function");f.prototype=Object.create(k&&k.prototype,{constructor:{value:f,writable:!0,configurable:!0}}),Object.defineProperty(f,"prototype",{writable:!1}),k&&O(f,k)})(u,p);var g,w,D,A,x=(D=u,A=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var f,k=q(D);if(A){var T=q(this).constructor;f=Reflect.construct(k,arguments,T)}else f=k.apply(this,arguments);return P(this,f)});function u(){return function(f,k){if(!(f instanceof k))throw new TypeError("Cannot call a class as a function")}(this,u),x.call(this,".hs-tooltip")}return g=u,(w=[{key:"init",value:function(){var f=this;document.addEventListener("click",function(k){var T=k.target.closest(f.selector);T&&f.getClassProperty(T,"--trigger")==="focus"&&f._focus(T),T&&f.getClassProperty(T,"--trigger")==="click"&&f._click(T)}),document.addEventListener("mousemove",function(k){var T=k.target.closest(f.selector);T&&f.getClassProperty(T,"--trigger")!=="focus"&&f.getClassProperty(T,"--trigger")!=="click"&&f._hover(T)})}},{key:"_hover",value:function(f){var k=this;if(!f.classList.contains("show")){var T=f.querySelector(".hs-tooltip-toggle"),S=f.querySelector(".hs-tooltip-content"),j=this.getClassProperty(f,"--placement");(0,d.fi)(T,S,{placement:j||"top",strategy:"fixed",modifiers:[{name:"offset",options:{offset:[0,5]}}]}),this.show(f),f.addEventListener("mouseleave",function H(I){I.relatedTarget.closest(k.selector)&&I.relatedTarget.closest(k.selector)==f||(k.hide(f),f.removeEventListener("mouseleave",H,!0))},!0)}}},{key:"_focus",value:function(f){var k=this,T=f.querySelector(".hs-tooltip-toggle"),S=f.querySelector(".hs-tooltip-content"),j=this.getClassProperty(f,"--placement"),H=this.getClassProperty(f,"--strategy");(0,d.fi)(T,S,{placement:j||"top",strategy:H||"fixed",modifiers:[{name:"offset",options:{offset:[0,5]}}]}),this.show(f),f.addEventListener("blur",function I(){k.hide(f),f.removeEventListener("blur",I,!0)},!0)}},{key:"_click",value:function(f){var k=this;if(!f.classList.contains("show")){var T=f.querySelector(".hs-tooltip-toggle"),S=f.querySelector(".hs-tooltip-content"),j=this.getClassProperty(f,"--placement"),H=this.getClassProperty(f,"--strategy");(0,d.fi)(T,S,{placement:j||"top",strategy:H||"fixed",modifiers:[{name:"offset",options:{offset:[0,5]}}]}),this.show(f);var I=function W(J){setTimeout(function(){k.hide(f),f.removeEventListener("click",W,!0),f.removeEventListener("blur",W,!0)})};f.addEventListener("blur",I,!0),f.addEventListener("click",I,!0)}}},{key:"show",value:function(f){var k=this;f.querySelector(".hs-tooltip-content").classList.remove("hidden"),setTimeout(function(){f.classList.add("show"),k._fireEvent("show",f),k._dispatch("show.hs.tooltip",f,f)})}},{key:"hide",value:function(f){var k=f.querySelector(".hs-tooltip-content");f.classList.remove("show"),this._fireEvent("hide",f),this._dispatch("hide.hs.tooltip",f,f),this.afterTransition(k,function(){f.classList.contains("show")||k.classList.add("hidden")})}}])&&L(g.prototype,w),Object.defineProperty(g,"prototype",{writable:!1}),u}(l.Z);window.HSTooltip=new _,document.addEventListener("load",window.HSTooltip.init())},765:(s,a,c)=>{function l(y,L){for(var O=0;O<L.length;O++){var P=L[O];P.enumerable=P.enumerable||!1,P.configurable=!0,"value"in P&&(P.writable=!0),Object.defineProperty(y,P.key,P)}}c.d(a,{Z:()=>d});var d=function(){function y(P,q){(function(_,p){if(!(_ instanceof p))throw new TypeError("Cannot call a class as a function")})(this,y),this.$collection=[],this.selector=P,this.config=q,this.events={}}var L,O;return L=y,O=[{key:"_fireEvent",value:function(P){var q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;this.events.hasOwnProperty(P)&&this.events[P](q)}},{key:"_dispatch",value:function(P,q){var _=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,p=new CustomEvent(P,{detail:{payload:_},bubbles:!0,cancelable:!0,composed:!1});q.dispatchEvent(p)}},{key:"on",value:function(P,q){this.events[P]=q}},{key:"afterTransition",value:function(P,q){window.getComputedStyle(P,null).getPropertyValue("transition")!=="all 0s ease 0s"?P.addEventListener("transitionend",function _(){q(),P.removeEventListener("transitionend",_,!0)},!0):q()}},{key:"getClassProperty",value:function(P,q){var _=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"",p=(window.getComputedStyle(P).getPropertyValue(q)||_).replace(" ","");return p}}],O&&l(L.prototype,O),Object.defineProperty(L,"prototype",{writable:!1}),y}()},714:(s,a,c)=>{function l(b){if(b==null)return window;if(b.toString()!=="[object Window]"){var h=b.ownerDocument;return h&&h.defaultView||window}return b}function d(b){return b instanceof l(b).Element||b instanceof Element}function y(b){return b instanceof l(b).HTMLElement||b instanceof HTMLElement}function L(b){return typeof ShadowRoot<"u"&&(b instanceof l(b).ShadowRoot||b instanceof ShadowRoot)}c.d(a,{fi:()=>Wr});var O=Math.max,P=Math.min,q=Math.round;function _(b,h){h===void 0&&(h=!1);var $=b.getBoundingClientRect(),R=1,G=1;if(y(b)&&h){var z=b.offsetHeight,V=b.offsetWidth;V>0&&(R=q($.width)/V||1),z>0&&(G=q($.height)/z||1)}return{width:$.width/R,height:$.height/G,top:$.top/G,right:$.right/R,bottom:$.bottom/G,left:$.left/R,x:$.left/R,y:$.top/G}}function p(b){var h=l(b);return{scrollLeft:h.pageXOffset,scrollTop:h.pageYOffset}}function g(b){return b?(b.nodeName||"").toLowerCase():null}function w(b){return((d(b)?b.ownerDocument:b.document)||window.document).documentElement}function D(b){return _(w(b)).left+p(b).scrollLeft}function A(b){return l(b).getComputedStyle(b)}function x(b){var h=A(b),$=h.overflow,R=h.overflowX,G=h.overflowY;return/auto|scroll|overlay|hidden/.test($+G+R)}function u(b,h,$){$===void 0&&($=!1);var R,G,z=y(h),V=y(h)&&function(te){var Ae=te.getBoundingClientRect(),se=q(Ae.width)/te.offsetWidth||1,he=q(Ae.height)/te.offsetHeight||1;return se!==1||he!==1}(h),Y=w(h),X=_(b,V),ne={scrollLeft:0,scrollTop:0},re={x:0,y:0};return(z||!z&&!$)&&((g(h)!=="body"||x(Y))&&(ne=(R=h)!==l(R)&&y(R)?{scrollLeft:(G=R).scrollLeft,scrollTop:G.scrollTop}:p(R)),y(h)?((re=_(h,!0)).x+=h.clientLeft,re.y+=h.clientTop):Y&&(re.x=D(Y))),{x:X.left+ne.scrollLeft-re.x,y:X.top+ne.scrollTop-re.y,width:X.width,height:X.height}}function f(b){var h=_(b),$=b.offsetWidth,R=b.offsetHeight;return Math.abs(h.width-$)<=1&&($=h.width),Math.abs(h.height-R)<=1&&(R=h.height),{x:b.offsetLeft,y:b.offsetTop,width:$,height:R}}function k(b){return g(b)==="html"?b:b.assignedSlot||b.parentNode||(L(b)?b.host:null)||w(b)}function T(b){return["html","body","#document"].indexOf(g(b))>=0?b.ownerDocument.body:y(b)&&x(b)?b:T(k(b))}function S(b,h){var $;h===void 0&&(h=[]);var R=T(b),G=R===(($=b.ownerDocument)==null?void 0:$.body),z=l(R),V=G?[z].concat(z.visualViewport||[],x(R)?R:[]):R,Y=h.concat(V);return G?Y:Y.concat(S(k(V)))}function j(b){return["table","td","th"].indexOf(g(b))>=0}function H(b){return y(b)&&A(b).position!=="fixed"?b.offsetParent:null}function I(b){for(var h=l(b),$=H(b);$&&j($)&&A($).position==="static";)$=H($);return $&&(g($)==="html"||g($)==="body"&&A($).position==="static")?h:$||function(R){var G=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1;if(navigator.userAgent.indexOf("Trident")!==-1&&y(R)&&A(R).position==="fixed")return null;for(var z=k(R);y(z)&&["html","body"].indexOf(g(z))<0;){var V=A(z);if(V.transform!=="none"||V.perspective!=="none"||V.contain==="paint"||["transform","perspective"].indexOf(V.willChange)!==-1||G&&V.willChange==="filter"||G&&V.filter&&V.filter!=="none")return z;z=z.parentNode}return null}(b)||h}var W="top",J="bottom",Oe="right",ae="left",rt="auto",nt=[W,J,Oe,ae],Ge="start",Ue="end",ht="viewport",be="popper",ft=nt.reduce(function(b,h){return b.concat([h+"-"+Ge,h+"-"+Ue])},[]),Qe=[].concat(nt,[rt]).reduce(function(b,h){return b.concat([h,h+"-"+Ge,h+"-"+Ue])},[]),yt=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Bt(b){var h=new Map,$=new Set,R=[];function G(z){$.add(z.name),[].concat(z.requires||[],z.requiresIfExists||[]).forEach(function(V){if(!$.has(V)){var Y=h.get(V);Y&&G(Y)}}),R.push(z)}return b.forEach(function(z){h.set(z.name,z)}),b.forEach(function(z){$.has(z.name)||G(z)}),R}var Nt={placement:"bottom",modifiers:[],strategy:"absolute"};function qe(){for(var b=arguments.length,h=new Array(b),$=0;$<b;$++)h[$]=arguments[$];return!h.some(function(R){return!(R&&typeof R.getBoundingClientRect=="function")})}function bt(b){b===void 0&&(b={});var h=b,$=h.defaultModifiers,R=$===void 0?[]:$,G=h.defaultOptions,z=G===void 0?Nt:G;return function(V,Y,X){X===void 0&&(X=z);var ne,re,te={placement:"bottom",orderedModifiers:[],options:Object.assign({},Nt,z),modifiersData:{},elements:{reference:V,popper:Y},attributes:{},styles:{}},Ae=[],se=!1,he={state:te,setOptions:function(ie){var Me=typeof ie=="function"?ie(te.options):ie;pe(),te.options=Object.assign({},z,te.options,Me),te.scrollParents={reference:d(V)?S(V):V.contextElement?S(V.contextElement):[],popper:S(Y)};var ke,fe,ve=function(le){var ce=Bt(le);return yt.reduce(function(de,me){return de.concat(ce.filter(function($e){return $e.phase===me}))},[])}((ke=[].concat(R,te.options.modifiers),fe=ke.reduce(function(le,ce){var de=le[ce.name];return le[ce.name]=de?Object.assign({},de,ce,{options:Object.assign({},de.options,ce.options),data:Object.assign({},de.data,ce.data)}):ce,le},{}),Object.keys(fe).map(function(le){return fe[le]})));return te.orderedModifiers=ve.filter(function(le){return le.enabled}),te.orderedModifiers.forEach(function(le){var ce=le.name,de=le.options,me=de===void 0?{}:de,$e=le.effect;if(typeof $e=="function"){var Be=$e({state:te,name:ce,instance:he,options:me});Ae.push(Be||function(){})}}),he.update()},forceUpdate:function(){if(!se){var ie=te.elements,Me=ie.reference,ke=ie.popper;if(qe(Me,ke)){te.rects={reference:u(Me,I(ke),te.options.strategy==="fixed"),popper:f(ke)},te.reset=!1,te.placement=te.options.placement,te.orderedModifiers.forEach(function($e){return te.modifiersData[$e.name]=Object.assign({},$e.data)});for(var fe=0;fe<te.orderedModifiers.length;fe++)if(te.reset!==!0){var ve=te.orderedModifiers[fe],le=ve.fn,ce=ve.options,de=ce===void 0?{}:ce,me=ve.name;typeof le=="function"&&(te=le({state:te,options:de,name:me,instance:he})||te)}else te.reset=!1,fe=-1}}},update:(ne=function(){return new Promise(function(ie){he.forceUpdate(),ie(te)})},function(){return re||(re=new Promise(function(ie){Promise.resolve().then(function(){re=void 0,ie(ne())})})),re}),destroy:function(){pe(),se=!0}};if(!qe(V,Y))return he;function pe(){Ae.forEach(function(ie){return ie()}),Ae=[]}return he.setOptions(X).then(function(ie){!se&&X.onFirstUpdate&&X.onFirstUpdate(ie)}),he}}var De={passive:!0};function Ve(b){return b.split("-")[0]}function Ee(b){return b.split("-")[1]}function Te(b){return["top","bottom"].indexOf(b)>=0?"x":"y"}function ee(b){var h,$=b.reference,R=b.element,G=b.placement,z=G?Ve(G):null,V=G?Ee(G):null,Y=$.x+$.width/2-R.width/2,X=$.y+$.height/2-R.height/2;switch(z){case W:h={x:Y,y:$.y-R.height};break;case J:h={x:Y,y:$.y+$.height};break;case Oe:h={x:$.x+$.width,y:X};break;case ae:h={x:$.x-R.width,y:X};break;default:h={x:$.x,y:$.y}}var ne=z?Te(z):null;if(ne!=null){var re=ne==="y"?"height":"width";switch(V){case Ge:h[ne]=h[ne]-($[re]/2-R[re]/2);break;case Ue:h[ne]=h[ne]+($[re]/2-R[re]/2)}}return h}var He={top:"auto",right:"auto",bottom:"auto",left:"auto"};function oe(b){var h,$=b.popper,R=b.popperRect,G=b.placement,z=b.variation,V=b.offsets,Y=b.position,X=b.gpuAcceleration,ne=b.adaptive,re=b.roundOffsets,te=b.isFixed,Ae=V.x,se=Ae===void 0?0:Ae,he=V.y,pe=he===void 0?0:he,ie=typeof re=="function"?re({x:se,y:pe}):{x:se,y:pe};se=ie.x,pe=ie.y;var Me=V.hasOwnProperty("x"),ke=V.hasOwnProperty("y"),fe=ae,ve=W,le=window;if(ne){var ce=I($),de="clientHeight",me="clientWidth";ce===l($)&&A(ce=w($)).position!=="static"&&Y==="absolute"&&(de="scrollHeight",me="scrollWidth"),ce=ce,(G===W||(G===ae||G===Oe)&&z===Ue)&&(ve=J,pe-=(te&&le.visualViewport?le.visualViewport.height:ce[de])-R.height,pe*=X?1:-1),G!==ae&&(G!==W&&G!==J||z!==Ue)||(fe=Oe,se-=(te&&le.visualViewport?le.visualViewport.width:ce[me])-R.width,se*=X?1:-1)}var $e,Be=Object.assign({position:Y},ne&&He),Ie=re===!0?function(Fe){var ot=Fe.x,dt=Fe.y,Je=window.devicePixelRatio||1;return{x:q(ot*Je)/Je||0,y:q(dt*Je)/Je||0}}({x:se,y:pe}):{x:se,y:pe};return se=Ie.x,pe=Ie.y,X?Object.assign({},Be,(($e={})[ve]=ke?"0":"",$e[fe]=Me?"0":"",$e.transform=(le.devicePixelRatio||1)<=1?"translate("+se+"px, "+pe+"px)":"translate3d("+se+"px, "+pe+"px, 0)",$e)):Object.assign({},Be,((h={})[ve]=ke?pe+"px":"",h[fe]=Me?se+"px":"",h.transform="",h))}var wt={left:"right",right:"left",bottom:"top",top:"bottom"};function Ft(b){return b.replace(/left|right|bottom|top/g,function(h){return wt[h]})}var Qr={start:"end",end:"start"};function En(b){return b.replace(/start|end/g,function(h){return Qr[h]})}function Tn(b,h){var $=h.getRootNode&&h.getRootNode();if(b.contains(h))return!0;if($&&L($)){var R=h;do{if(R&&b.isSameNode(R))return!0;R=R.parentNode||R.host}while(R)}return!1}function pn(b){return Object.assign({},b,{left:b.x,top:b.y,right:b.x+b.width,bottom:b.y+b.height})}function jn(b,h){return h===ht?pn(function($){var R=l($),G=w($),z=R.visualViewport,V=G.clientWidth,Y=G.clientHeight,X=0,ne=0;return z&&(V=z.width,Y=z.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(X=z.offsetLeft,ne=z.offsetTop)),{width:V,height:Y,x:X+D($),y:ne}}(b)):d(h)?function($){var R=_($);return R.top=R.top+$.clientTop,R.left=R.left+$.clientLeft,R.bottom=R.top+$.clientHeight,R.right=R.left+$.clientWidth,R.width=$.clientWidth,R.height=$.clientHeight,R.x=R.left,R.y=R.top,R}(h):pn(function($){var R,G=w($),z=p($),V=(R=$.ownerDocument)==null?void 0:R.body,Y=O(G.scrollWidth,G.clientWidth,V?V.scrollWidth:0,V?V.clientWidth:0),X=O(G.scrollHeight,G.clientHeight,V?V.scrollHeight:0,V?V.clientHeight:0),ne=-z.scrollLeft+D($),re=-z.scrollTop;return A(V||G).direction==="rtl"&&(ne+=O(G.clientWidth,V?V.clientWidth:0)-Y),{width:Y,height:X,x:ne,y:re}}(w(b)))}function Pn(b){return Object.assign({},{top:0,right:0,bottom:0,left:0},b)}function qn(b,h){return h.reduce(function($,R){return $[R]=b,$},{})}function It(b,h){h===void 0&&(h={});var $=h,R=$.placement,G=R===void 0?b.placement:R,z=$.boundary,V=z===void 0?"clippingParents":z,Y=$.rootBoundary,X=Y===void 0?ht:Y,ne=$.elementContext,re=ne===void 0?be:ne,te=$.altBoundary,Ae=te!==void 0&&te,se=$.padding,he=se===void 0?0:se,pe=Pn(typeof he!="number"?he:qn(he,nt)),ie=re===be?"reference":be,Me=b.rects.popper,ke=b.elements[Ae?ie:re],fe=function(Ie,Fe,ot){var dt=Fe==="clippingParents"?function(Ce){var vt=S(k(Ce)),Ye=["absolute","fixed"].indexOf(A(Ce).position)>=0&&y(Ce)?I(Ce):Ce;return d(Ye)?vt.filter(function(We){return d(We)&&Tn(We,Ye)&&g(We)!=="body"}):[]}(Ie):[].concat(Fe),Je=[].concat(dt,[ot]),Ze=Je[0],Re=Je.reduce(function(Ce,vt){var Ye=jn(Ie,vt);return Ce.top=O(Ye.top,Ce.top),Ce.right=P(Ye.right,Ce.right),Ce.bottom=P(Ye.bottom,Ce.bottom),Ce.left=O(Ye.left,Ce.left),Ce},jn(Ie,Ze));return Re.width=Re.right-Re.left,Re.height=Re.bottom-Re.top,Re.x=Re.left,Re.y=Re.top,Re}(d(ke)?ke:ke.contextElement||w(b.elements.popper),V,X),ve=_(b.elements.reference),le=ee({reference:ve,element:Me,strategy:"absolute",placement:G}),ce=pn(Object.assign({},Me,le)),de=re===be?ce:ve,me={top:fe.top-de.top+pe.top,bottom:de.bottom-fe.bottom+pe.bottom,left:fe.left-de.left+pe.left,right:de.right-fe.right+pe.right},$e=b.modifiersData.offset;if(re===be&&$e){var Be=$e[G];Object.keys(me).forEach(function(Ie){var Fe=[Oe,J].indexOf(Ie)>=0?1:-1,ot=[W,J].indexOf(Ie)>=0?"y":"x";me[Ie]+=Be[ot]*Fe})}return me}function zt(b,h,$){return O(b,P(h,$))}function An(b,h,$){return $===void 0&&($={x:0,y:0}),{top:b.top-h.height-$.y,right:b.right-h.width+$.x,bottom:b.bottom-h.height+$.y,left:b.left-h.width-$.x}}function Mn(b){return[W,Oe,J,ae].some(function(h){return b[h]>=0})}var Wr=bt({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(b){var h=b.state,$=b.instance,R=b.options,G=R.scroll,z=G===void 0||G,V=R.resize,Y=V===void 0||V,X=l(h.elements.popper),ne=[].concat(h.scrollParents.reference,h.scrollParents.popper);return z&&ne.forEach(function(re){re.addEventListener("scroll",$.update,De)}),Y&&X.addEventListener("resize",$.update,De),function(){z&&ne.forEach(function(re){re.removeEventListener("scroll",$.update,De)}),Y&&X.removeEventListener("resize",$.update,De)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(b){var h=b.state,$=b.name;h.modifiersData[$]=ee({reference:h.rects.reference,element:h.rects.popper,strategy:"absolute",placement:h.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(b){var h=b.state,$=b.options,R=$.gpuAcceleration,G=R===void 0||R,z=$.adaptive,V=z===void 0||z,Y=$.roundOffsets,X=Y===void 0||Y,ne={placement:Ve(h.placement),variation:Ee(h.placement),popper:h.elements.popper,popperRect:h.rects.popper,gpuAcceleration:G,isFixed:h.options.strategy==="fixed"};h.modifiersData.popperOffsets!=null&&(h.styles.popper=Object.assign({},h.styles.popper,oe(Object.assign({},ne,{offsets:h.modifiersData.popperOffsets,position:h.options.strategy,adaptive:V,roundOffsets:X})))),h.modifiersData.arrow!=null&&(h.styles.arrow=Object.assign({},h.styles.arrow,oe(Object.assign({},ne,{offsets:h.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:X})))),h.attributes.popper=Object.assign({},h.attributes.popper,{"data-popper-placement":h.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(b){var h=b.state;Object.keys(h.elements).forEach(function($){var R=h.styles[$]||{},G=h.attributes[$]||{},z=h.elements[$];y(z)&&g(z)&&(Object.assign(z.style,R),Object.keys(G).forEach(function(V){var Y=G[V];Y===!1?z.removeAttribute(V):z.setAttribute(V,Y===!0?"":Y)}))})},effect:function(b){var h=b.state,$={popper:{position:h.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(h.elements.popper.style,$.popper),h.styles=$,h.elements.arrow&&Object.assign(h.elements.arrow.style,$.arrow),function(){Object.keys(h.elements).forEach(function(R){var G=h.elements[R],z=h.attributes[R]||{},V=Object.keys(h.styles.hasOwnProperty(R)?h.styles[R]:$[R]).reduce(function(Y,X){return Y[X]="",Y},{});y(G)&&g(G)&&(Object.assign(G.style,V),Object.keys(z).forEach(function(Y){G.removeAttribute(Y)}))})}},requires:["computeStyles"]},{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(b){var h=b.state,$=b.options,R=b.name,G=$.offset,z=G===void 0?[0,0]:G,V=Qe.reduce(function(re,te){return re[te]=function(Ae,se,he){var pe=Ve(Ae),ie=[ae,W].indexOf(pe)>=0?-1:1,Me=typeof he=="function"?he(Object.assign({},se,{placement:Ae})):he,ke=Me[0],fe=Me[1];return ke=ke||0,fe=(fe||0)*ie,[ae,Oe].indexOf(pe)>=0?{x:fe,y:ke}:{x:ke,y:fe}}(te,h.rects,z),re},{}),Y=V[h.placement],X=Y.x,ne=Y.y;h.modifiersData.popperOffsets!=null&&(h.modifiersData.popperOffsets.x+=X,h.modifiersData.popperOffsets.y+=ne),h.modifiersData[R]=V}},{name:"flip",enabled:!0,phase:"main",fn:function(b){var h=b.state,$=b.options,R=b.name;if(!h.modifiersData[R]._skip){for(var G=$.mainAxis,z=G===void 0||G,V=$.altAxis,Y=V===void 0||V,X=$.fallbackPlacements,ne=$.padding,re=$.boundary,te=$.rootBoundary,Ae=$.altBoundary,se=$.flipVariations,he=se===void 0||se,pe=$.allowedAutoPlacements,ie=h.options.placement,Me=Ve(ie),ke=X||(Me!==ie&&he?function(We){if(Ve(We)===rt)return[];var it=Ft(We);return[En(We),it,En(it)]}(ie):[Ft(ie)]),fe=[ie].concat(ke).reduce(function(We,it){return We.concat(Ve(it)===rt?function(Ct,_t){_t===void 0&&(_t={});var st=_t,Jt=st.placement,Yt=st.boundary,Lt=st.rootBoundary,mn=st.padding,gn=st.flipVariations,Et=st.allowedAutoPlacements,hn=Et===void 0?Qe:Et,Vt=Ee(Jt),Kt=Vt?gn?ft:ft.filter(function(at){return Ee(at)===Vt}):nt,Tt=Kt.filter(function(at){return hn.indexOf(at)>=0});Tt.length===0&&(Tt=Kt);var jt=Tt.reduce(function(at,$t){return at[$t]=It(Ct,{placement:$t,boundary:Yt,rootBoundary:Lt,padding:mn})[Ve($t)],at},{});return Object.keys(jt).sort(function(at,$t){return jt[at]-jt[$t]})}(h,{placement:it,boundary:re,rootBoundary:te,padding:ne,flipVariations:he,allowedAutoPlacements:pe}):it)},[]),ve=h.rects.reference,le=h.rects.popper,ce=new Map,de=!0,me=fe[0],$e=0;$e<fe.length;$e++){var Be=fe[$e],Ie=Ve(Be),Fe=Ee(Be)===Ge,ot=[W,J].indexOf(Ie)>=0,dt=ot?"width":"height",Je=It(h,{placement:Be,boundary:re,rootBoundary:te,altBoundary:Ae,padding:ne}),Ze=ot?Fe?Oe:ae:Fe?J:W;ve[dt]>le[dt]&&(Ze=Ft(Ze));var Re=Ft(Ze),Ce=[];if(z&&Ce.push(Je[Ie]<=0),Y&&Ce.push(Je[Ze]<=0,Je[Re]<=0),Ce.every(function(We){return We})){me=Be,de=!1;break}ce.set(Be,Ce)}if(de)for(var vt=function(We){var it=fe.find(function(Ct){var _t=ce.get(Ct);if(_t)return _t.slice(0,We).every(function(st){return st})});if(it)return me=it,"break"},Ye=he?3:1;Ye>0&&vt(Ye)!=="break";Ye--);h.placement!==me&&(h.modifiersData[R]._skip=!0,h.placement=me,h.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(b){var h=b.state,$=b.options,R=b.name,G=$.mainAxis,z=G===void 0||G,V=$.altAxis,Y=V!==void 0&&V,X=$.boundary,ne=$.rootBoundary,re=$.altBoundary,te=$.padding,Ae=$.tether,se=Ae===void 0||Ae,he=$.tetherOffset,pe=he===void 0?0:he,ie=It(h,{boundary:X,rootBoundary:ne,padding:te,altBoundary:re}),Me=Ve(h.placement),ke=Ee(h.placement),fe=!ke,ve=Te(Me),le=ve==="x"?"y":"x",ce=h.modifiersData.popperOffsets,de=h.rects.reference,me=h.rects.popper,$e=typeof pe=="function"?pe(Object.assign({},h.rects,{placement:h.placement})):pe,Be=typeof $e=="number"?{mainAxis:$e,altAxis:$e}:Object.assign({mainAxis:0,altAxis:0},$e),Ie=h.modifiersData.offset?h.modifiersData.offset[h.placement]:null,Fe={x:0,y:0};if(ce){if(z){var ot,dt=ve==="y"?W:ae,Je=ve==="y"?J:Oe,Ze=ve==="y"?"height":"width",Re=ce[ve],Ce=Re+ie[dt],vt=Re-ie[Je],Ye=se?-me[Ze]/2:0,We=ke===Ge?de[Ze]:me[Ze],it=ke===Ge?-me[Ze]:-de[Ze],Ct=h.elements.arrow,_t=se&&Ct?f(Ct):{width:0,height:0},st=h.modifiersData["arrow#persistent"]?h.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},Jt=st[dt],Yt=st[Je],Lt=zt(0,de[Ze],_t[Ze]),mn=fe?de[Ze]/2-Ye-Lt-Jt-Be.mainAxis:We-Lt-Jt-Be.mainAxis,gn=fe?-de[Ze]/2+Ye+Lt+Yt+Be.mainAxis:it+Lt+Yt+Be.mainAxis,Et=h.elements.arrow&&I(h.elements.arrow),hn=Et?ve==="y"?Et.clientTop||0:Et.clientLeft||0:0,Vt=(ot=Ie==null?void 0:Ie[ve])!=null?ot:0,Kt=Re+gn-Vt,Tt=zt(se?P(Ce,Re+mn-Vt-hn):Ce,Re,se?O(vt,Kt):vt);ce[ve]=Tt,Fe[ve]=Tt-Re}if(Y){var jt,at=ve==="x"?W:ae,$t=ve==="x"?J:Oe,kt=ce[le],Xt=le==="y"?"height":"width",Dn=kt+ie[at],Rn=kt-ie[$t],yn=[W,ae].indexOf(Me)!==-1,Hn=(jt=Ie==null?void 0:Ie[le])!=null?jt:0,Bn=yn?Dn:kt-de[Xt]-me[Xt]-Hn+Be.altAxis,Nn=yn?kt+de[Xt]+me[Xt]-Hn-Be.altAxis:Rn,In=se&&yn?function(Fr,Jr,bn){var zn=zt(Fr,Jr,bn);return zn>bn?bn:zn}(Bn,kt,Nn):zt(se?Bn:Dn,kt,se?Nn:Rn);ce[le]=In,Fe[le]=In-kt}h.modifiersData[R]=Fe}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(b){var h,$=b.state,R=b.name,G=b.options,z=$.elements.arrow,V=$.modifiersData.popperOffsets,Y=Ve($.placement),X=Te(Y),ne=[ae,Oe].indexOf(Y)>=0?"height":"width";if(z&&V){var re=function(me,$e){return Pn(typeof(me=typeof me=="function"?me(Object.assign({},$e.rects,{placement:$e.placement})):me)!="number"?me:qn(me,nt))}(G.padding,$),te=f(z),Ae=X==="y"?W:ae,se=X==="y"?J:Oe,he=$.rects.reference[ne]+$.rects.reference[X]-V[X]-$.rects.popper[ne],pe=V[X]-$.rects.reference[X],ie=I(z),Me=ie?X==="y"?ie.clientHeight||0:ie.clientWidth||0:0,ke=he/2-pe/2,fe=re[Ae],ve=Me-te[ne]-re[se],le=Me/2-te[ne]/2+ke,ce=zt(fe,le,ve),de=X;$.modifiersData[R]=((h={})[de]=ce,h.centerOffset=ce-le,h)}},effect:function(b){var h=b.state,$=b.options.element,R=$===void 0?"[data-popper-arrow]":$;R!=null&&(typeof R!="string"||(R=h.elements.popper.querySelector(R)))&&Tn(h.elements.popper,R)&&(h.elements.arrow=R)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(b){var h=b.state,$=b.name,R=h.rects.reference,G=h.rects.popper,z=h.modifiersData.preventOverflow,V=It(h,{elementContext:"reference"}),Y=It(h,{altBoundary:!0}),X=An(V,R),ne=An(Y,G,z),re=Mn(X),te=Mn(ne);h.modifiersData[$]={referenceClippingOffsets:X,popperEscapeOffsets:ne,isReferenceHidden:re,hasPopperEscaped:te},h.attributes.popper=Object.assign({},h.attributes.popper,{"data-popper-reference-hidden":re,"data-popper-escaped":te})}}]})}},t={};function r(s){var a=t[s];if(a!==void 0)return a.exports;var c=t[s]={exports:{}};return n[s](c,c.exports,r),c.exports}r.d=(s,a)=>{for(var c in a)r.o(a,c)&&!r.o(s,c)&&Object.defineProperty(s,c,{enumerable:!0,get:a[c]})},r.o=(s,a)=>Object.prototype.hasOwnProperty.call(s,a),r.r=s=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(s,"__esModule",{value:!0})};var i={};return r.r(i),r(661),r(795),r(682),r(284),r(181),r(778),r(51),r(185),i})()})})(Do);function Ro(o){let e=o[0].title+"",n;return{c(){n=ge(e)},m(t,r){N(t,n,r)},p(t,r){r&1&&e!==(e=t[0].title+"")&&Ne(n,e)},d(t){t&&B(n)}}}function Ho(o){let e,n;return{c(){e=ge("Welcome to "),n=C("span"),n.textContent="Vanna.AI",m(n,"class","nav-title")},m(t,r){N(t,e,r),N(t,n,r)},p:K,d(t){t&&(B(e),B(n))}}}function Bo(o){let e,n,t,r,i=o[0].subtitle+"",s;function a(d,y){return d[0].title=="Welcome to Vanna.AI"?Ho:Ro}let c=a(o),l=c(o);return{c(){e=C("div"),n=C("h1"),l.c(),t=F(),r=C("p"),s=ge(i),m(n,"class","text-3xl font-bold text-gray-800 sm:text-4xl dark:text-white"),m(r,"class","mt-3 text-gray-600 dark:text-gray-400"),m(e,"class","max-w-4xl px-4 sm:px-6 lg:px-8 mx-auto text-center")},m(d,y){N(d,e,y),v(e,n),l.m(n,null),v(e,t),v(e,r),v(r,s)},p(d,[y]){c===(c=a(d))&&l?l.p(d,y):(l.d(1),l=c(d),l&&(l.c(),l.m(n,null))),y&1&&i!==(i=d[0].subtitle+"")&&Ne(s,i)},i:K,o:K,d(d){d&&B(e),l.d()}}}function No(o,e,n){let t;return et(o,St,r=>n(0,t=r)),[t]}class Io extends we{constructor(e){super(),_e(this,e,No,Bo,ye,{})}}function zo(o){let e,n;const t=o[1].default,r=on(t,o,o[0],null);return{c(){e=C("p"),r&&r.c(),m(e,"class","text-gray-800 dark:text-gray-200")},m(i,s){N(i,e,s),r&&r.m(e,null),n=!0},p(i,[s]){r&&r.p&&(!n||s&1)&&ln(r,t,i,i[0],n?sn(t,i[0],s,null):an(i[0]),null)},i(i){n||(E(r,i),n=!0)},o(i){M(r,i),n=!1},d(i){i&&B(e),r&&r.d(i)}}}function Vo(o,e,n){let{$$slots:t={},$$scope:r}=e;return o.$$set=i=>{"$$scope"in i&&n(0,r=i.$$scope)},[r,t]}class ut extends we{constructor(e){super(),_e(this,e,Vo,zo,ye,{})}}function Go(o){let e;return{c(){e=ge(o[0])},m(n,t){N(n,e,t)},p(n,t){t&1&&Ne(e,n[0])},d(n){n&&B(e)}}}function Zo(o){let e,n,t,r,i,s,a,c,l;a=new ut({props:{$$slots:{default:[Go]},$$scope:{ctx:o}}});const d=o[1].default,y=on(d,o,o[2],null);return{c(){e=C("li"),n=C("div"),t=C("div"),r=C("span"),r.innerHTML='<span class="text-sm font-medium text-white leading-none">You</span>',i=F(),s=C("div"),Q(a.$$.fragment),c=F(),y&&y.c(),m(r,"class","flex-shrink-0 inline-flex items-center justify-center h-[2.375rem] w-[2.375rem] rounded-full bg-gray-600"),m(s,"class","grow mt-2 space-y-3"),m(t,"class","max-w-2xl flex gap-x-2 sm:gap-x-4"),m(n,"class","max-w-4xl px-4 sm:px-6 lg:px-8 mx-auto"),m(e,"class","py-2 sm:py-4")},m(L,O){N(L,e,O),v(e,n),v(n,t),v(t,r),v(t,i),v(t,s),Z(a,s,null),v(s,c),y&&y.m(s,null),l=!0},p(L,[O]){const P={};O&5&&(P.$$scope={dirty:O,ctx:L}),a.$set(P),y&&y.p&&(!l||O&4)&&ln(y,d,L,L[2],l?sn(d,L[2],O,null):an(L[2]),null)},i(L){l||(E(a.$$.fragment,L),E(y,L),l=!0)},o(L){M(a.$$.fragment,L),M(y,L),l=!1},d(L){L&&B(e),U(a),y&&y.d(L)}}}function Uo(o,e,n){let{$$slots:t={},$$scope:r}=e,{message:i}=e;return o.$$set=s=>{"message"in s&&n(0,i=s.message),"$$scope"in s&&n(2,r=s.$$scope)},[i,t,r]}class Ot extends we{constructor(e){super(),_e(this,e,Uo,Zo,ye,{message:0})}}function Qo(o){let e,n,t;return{c(){e=C("button"),e.innerHTML='<svg class="flex-shrink-0 size-4" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 2a3 3 0 0 0-3 3v7a3 3 0 0 0 6 0V5a3 3 0 0 0-3-3Z"></path><path d="M19 10v2a7 7 0 0 1-14 0v-2"></path><line x1="12" x2="12" y1="19" y2="22"></line></svg>',m(e,"type","button"),m(e,"class","inline-flex flex-shrink-0 justify-center items-center size-8 rounded-lg text-gray-500 hover:text-blue-600 focus:z-10 focus:outline-none focus:ring-2 focus:ring-blue-500 dark:hover:text-blue-500 dark:focus:outline-none dark:focus:ring-1 dark:focus:ring-gray-600")},m(r,i){N(r,e,i),n||(t=Le(e,"click",o[1]),n=!0)},p:K,d(r){r&&B(e),n=!1,t()}}}function Wo(o){let e;return{c(){e=C("button"),e.innerHTML='<svg class="flex-shrink-0 size-4" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 2a3 3 0 0 0-3 3v7a3 3 0 0 0 6 0V5a3 3 0 0 0-3-3Z"></path><path d="M19 10v2a7 7 0 0 1-14 0v-2"></path><line x1="12" x2="12" y1="19" y2="22"></line></svg>',m(e,"type","button"),m(e,"class","animate-ping animate-pulse inline-flex flex-shrink-0 justify-center items-center size-8 rounded-lg text-red-500 hover:text-red-600 focus:z-10 focus:outline-none focus:ring-2 focus:ring-red-500 dark:hover:text-red-500 dark:focus:outline-none dark:focus:ring-1 dark:focus:ring-red-600")},m(n,t){N(n,e,t)},p:K,d(n){n&&B(e)}}}function Fo(o){let e;function n(i,s){return i[0]?Wo:Qo}let t=n(o),r=t(o);return{c(){r.c(),e=ze()},m(i,s){r.m(i,s),N(i,e,s)},p(i,[s]){t===(t=n(i))&&r?r.p(i,s):(r.d(1),r=t(i),r&&(r.c(),r.m(e.parentNode,e)))},i:K,o:K,d(i){i&&B(e),r.d(i)}}}function Jo(o,e,n){let{newMessage:t}=e,r=!1;function i(){if(n(0,r=!0),Br.set(!0),"webkitSpeechRecognition"in window)var s=new window.webkitSpeechRecognition;else var s=new window.SpeechRecognition;s.lang="en-US",s.start(),s.onresult=a=>{const c=a.results[0][0].transcript;console.log(c),n(2,t=c),n(0,r=!1)},s.onend=()=>{n(0,r=!1)},s.onerror=()=>{n(0,r=!1)}}return o.$$set=s=>{"newMessage"in s&&n(2,t=s.newMessage)},[r,i,t]}class Yo extends we{constructor(e){super(),_e(this,e,Jo,Fo,ye,{newMessage:2})}}function Ko(o){let e,n,t,r,i,s,a,c,l,d,y,L,O,P,q;function _(g){o[5](g)}let p={};return o[0]!==void 0&&(p.newMessage=o[0]),l=new Yo({props:p}),wn.push(()=>co(l,"newMessage",_)),{c(){e=C("div"),n=C("input"),t=F(),r=C("div"),i=C("div"),s=C("div"),s.innerHTML="",a=F(),c=C("div"),Q(l.$$.fragment),y=F(),L=C("button"),L.innerHTML='<svg class="h-3.5 w-3.5" xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" viewBox="0 0 16 16"><path d="M15.964.686a.5.5 0 0 0-.65-.65L.767 5.855H.766l-.452.18a.5.5 0 0 0-.082.887l.41.26.001.002 4.995 3.178 3.178 4.995.002.002.26.41a.5.5 0 0 0 .886-.083l6-15Zm-1.833 1.89L6.637 10.07l-.215-.338a.5.5 0 0 0-.154-.154l-.338-.215 7.494-7.494 1.178-.471-.47 1.178Z"></path></svg>',m(n,"type","text"),m(n,"class","p-4 pb-12 block w-full bg-gray-100 border-gray-200 rounded-md text-sm focus:border-blue-500 focus:ring-blue-500 dark:bg-slate-800 dark:border-gray-700 dark:text-gray-400"),m(n,"placeholder","Ask me a question about your data that I can turn into SQL."),m(s,"class","flex items-center"),m(L,"type","button"),m(L,"class","inline-flex flex-shrink-0 justify-center items-center h-8 w-8 rounded-md text-white bg-blue-600 hover:bg-blue-500 focus:z-10 focus:outline-none focus:ring-2 focus:ring-blue-500 transition-all"),m(c,"class","flex items-center gap-x-1"),m(i,"class","flex justify-between items-center"),m(r,"class","absolute bottom-px inset-x-px p-2 rounded-b-md bg-gray-100 dark:bg-slate-800"),m(e,"class","relative")},m(g,w){N(g,e,w),v(e,n),mt(n,o[0]),v(e,t),v(e,r),v(r,i),v(i,s),v(i,a),v(i,c),Z(l,c,null),v(c,y),v(c,L),O=!0,P||(q=[Le(n,"input",o[4]),Le(n,"keydown",o[1]),Le(L,"click",o[2])],P=!0)},p(g,[w]){w&1&&n.value!==g[0]&&mt(n,g[0]);const D={};!d&&w&1&&(d=!0,D.newMessage=g[0],so(()=>d=!1)),l.$set(D)},i(g){O||(E(l.$$.fragment,g),O=!0)},o(g){M(l.$$.fragment,g),O=!1},d(g){g&&B(e),U(l),P=!1,gt(q)}}}function Xo(o,e,n){let{onSubmit:t}=e,r="";function i(l){l.key==="Enter"&&(t(r),l.preventDefault())}function s(){t(r)}function a(){r=this.value,n(0,r)}function c(l){r=l,n(0,r)}return o.$$set=l=>{"onSubmit"in l&&n(3,t=l.onSubmit)},[r,i,s,t,a,c]}class ei extends we{constructor(e){super(),_e(this,e,Xo,Ko,ye,{onSubmit:3})}}function ti(o){let e;return{c(){e=C("div"),e.innerHTML='<button type="button" class="p-2 inline-flex justify-center items-center gap-1.5 rounded-md border font-medium bg-white text-gray-700 shadow-sm align-middle hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-white focus:ring-blue-600 transition-all text-xs dark:bg-slate-900 dark:hover:bg-slate-800 dark:border-gray-700 dark:text-gray-400 dark:hover:text-white dark:focus:ring-offset-gray-800" data-hs-overlay="#application-sidebar" aria-controls="application-sidebar" aria-label="Toggle navigation"><svg class="w-3.5 h-3.5" width="16" height="16" fill="currentColor" viewBox="0 0 16 16"><path fill-rule="evenodd" d="M2.5 12a.5.5 0 0 1 .5-.5h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5zm0-4a.5.5 0 0 1 .5-.5h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5zm0-4a.5.5 0 0 1 .5-.5h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5z"></path></svg> <span>Sidebar</span></button>',m(e,"class","lg:hidden flex justify-end mb-2 sm:mb-3")},m(n,t){N(n,e,t)},p:K,i:K,o:K,d(n){n&&B(e)}}}class ni extends we{constructor(e){super(),_e(this,e,null,ti,ye,{})}}function ri(o){let e,n,t,r;return{c(){e=C("button"),n=ge(o[0]),m(e,"type","button"),m(e,"class","mb-2.5 mr-1.5 py-2 px-3 inline-flex justify-center items-center gap-x-2 rounded-md border border-blue-600 bg-white text-blue-600 align-middle hover:bg-blue-50 text-sm dark:bg-slate-900 dark:text-blue-500 dark:border-blue-500 dark:hover:text-blue-400 dark:hover:border-blue-400")},m(i,s){N(i,e,s),v(e,n),t||(r=Le(e,"click",o[1]),t=!0)},p(i,[s]){s&1&&Ne(n,i[0])},i:K,o:K,d(i){i&&B(e),t=!1,r()}}}function oi(o,e,n){let{message:t}=e,{onSubmit:r}=e;function i(){r(t)}return o.$$set=s=>{"message"in s&&n(0,t=s.message),"onSubmit"in s&&n(2,r=s.onSubmit)},[t,i,r]}class ct extends we{constructor(e){super(),_e(this,e,oi,ri,ye,{message:0,onSubmit:2})}}function ii(o){let e,n,t,r,i,s,a,c,l,d,y;return{c(){e=C("span"),n=Ke("svg"),t=Ke("defs"),r=Ke("linearGradient"),i=Ke("stop"),s=Ke("stop"),a=Ke("g"),c=Ke("g"),l=Ke("path"),d=Ke("path"),m(i,"offset","0"),m(i,"stop-color","#009efd"),m(s,"offset","1"),m(s,"stop-color","#2af598"),m(r,"gradientTransform","matrix(1.09331 0 0 1.09331 -47.1838 -88.8946)"),m(r,"gradientUnits","userSpaceOnUse"),m(r,"id","LinearGradient"),m(r,"x1","237.82"),m(r,"x2","785.097"),m(r,"y1","549.609"),m(r,"y2","549.609"),m(l,"d","M117.718 228.798C117.718 119.455 206.358 30.8151 315.701 30.8151L708.299 30.8151C817.642 30.8151 906.282 119.455 906.282 228.798L906.282 795.202C906.282 904.545 817.642 993.185 708.299 993.185L315.701 993.185C206.358 993.185 117.718 904.545 117.718 795.202L117.718 228.798Z"),m(l,"fill","#0f172a"),m(l,"fill-rule","nonzero"),m(l,"opacity","1"),m(l,"stroke","#374151"),m(l,"stroke-linecap","butt"),m(l,"stroke-linejoin","round"),m(l,"stroke-width","20"),m(d,"d","M212.828 215.239C213.095 281.169 213.629 413.028 213.629 413.028C213.629 413.028 511.51 808.257 513.993 809.681C612.915 677.809 810.759 414.065 810.759 414.065C810.759 414.065 811.034 280.901 811.172 214.319C662.105 362.973 662.105 362.973 513.038 511.627C362.933 363.433 362.933 363.433 212.828 215.239Z"),m(d,"fill","url(#LinearGradient)"),m(d,"fill-rule","nonzero"),m(d,"opacity","1"),m(d,"stroke","none"),m(c,"opacity","1"),m(a,"id","Layer-1"),m(n,"height","100%"),m(n,"stroke-miterlimit","10"),tn(n,"fill-rule","nonzero"),tn(n,"clip-rule","evenodd"),tn(n,"stroke-linecap","round"),tn(n,"stroke-linejoin","round"),m(n,"version","1.1"),m(n,"viewBox","0 0 1024 1024"),m(n,"width","100%"),m(n,"xml:space","preserve"),m(n,"xmlns","http://www.w3.org/2000/svg"),m(e,"class",y="flex-shrink-0 w-[2.375rem] h-[2.375rem] "+o[0])},m(L,O){N(L,e,O),v(e,n),v(n,t),v(t,r),v(r,i),v(r,s),v(n,a),v(a,c),v(c,l),v(c,d)},p(L,[O]){O&1&&y!==(y="flex-shrink-0 w-[2.375rem] h-[2.375rem] "+L[0])&&m(e,"class",y)},i:K,o:K,d(L){L&&B(e)}}}function si(o,e,n){let t,{animate:r=!1}=e;return o.$$set=i=>{"animate"in i&&n(1,r=i.animate)},o.$$.update=()=>{o.$$.dirty&2&&n(0,t=r?"animate-bounce":"")},[t,r]}class zr extends we{constructor(e){super(),_e(this,e,si,ii,ye,{animate:1})}}function li(o){let e,n,t,r,i;n=new zr({});const s=o[1].default,a=on(s,o,o[0],null);return{c(){e=C("li"),Q(n.$$.fragment),t=F(),r=C("div"),a&&a.c(),m(r,"class","space-y-3 overflow-x-auto overflow-y-hidden whitespace-break-spaces"),m(e,"class","max-w-4xl py-2 px-4 sm:px-6 lg:px-8 mx-auto flex gap-x-2 sm:gap-x-4")},m(c,l){N(c,e,l),Z(n,e,null),v(e,t),v(e,r),a&&a.m(r,null),i=!0},p(c,[l]){a&&a.p&&(!i||l&1)&&ln(a,s,c,c[0],i?sn(s,c[0],l,null):an(c[0]),null)},i(c){i||(E(n.$$.fragment,c),E(a,c),i=!0)},o(c){M(n.$$.fragment,c),M(a,c),i=!1},d(c){c&&B(e),U(n),a&&a.d(c)}}}function ai(o,e,n){let{$$slots:t={},$$scope:r}=e;return o.$$set=i=>{"$$scope"in i&&n(0,r=i.$$scope)},[r,t]}class Xe extends we{constructor(e){super(),_e(this,e,ai,li,ye,{})}}function ci(o){let e;return{c(){e=ge("Thinking...")},m(n,t){N(n,e,t)},d(n){n&&B(e)}}}function ui(o){let e,n,t,r,i,s;return n=new zr({props:{animate:!0}}),i=new ut({props:{$$slots:{default:[ci]},$$scope:{ctx:o}}}),{c(){e=C("li"),Q(n.$$.fragment),t=F(),r=C("div"),Q(i.$$.fragment),m(r,"class","space-y-3"),m(e,"class","max-w-4xl py-2 px-4 sm:px-6 lg:px-8 mx-auto flex gap-x-2 sm:gap-x-4")},m(a,c){N(a,e,c),Z(n,e,null),v(e,t),v(e,r),Z(i,r,null),s=!0},p(a,[c]){const l={};c&1&&(l.$$scope={dirty:c,ctx:a}),i.$set(l)},i(a){s||(E(n.$$.fragment,a),E(i.$$.fragment,a),s=!0)},o(a){M(n.$$.fragment,a),M(i.$$.fragment,a),s=!1},d(a){a&&B(e),U(n),U(i)}}}class fi extends we{constructor(e){super(),_e(this,e,null,ui,ye,{})}}function di(o){let e,n,t,r,i,s,a,c,l,d,y;return{c(){e=C("ul"),n=C("li"),t=C("div"),r=C("span"),r.textContent="CSV",i=F(),s=C("a"),a=Ke("svg"),c=Ke("path"),l=Ke("path"),d=ge(`
          Download`),m(r,"class","mr-3 flex-1 w-0 truncate"),m(c,"d","M.5 9.9a.5.5 0 0 1 .5.5v2.5a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-2.5a.5.5 0 0 1 1 0v2.5a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2v-2.5a.5.5 0 0 1 .5-.5z"),m(l,"d","M7.646 11.854a.5.5 0 0 0 .708 0l3-3a.5.5 0 0 0-.708-.708L8.5 10.293V1.5a.5.5 0 0 0-1 0v8.793L5.354 8.146a.5.5 0 1 0-.708.708l3 3z"),m(a,"class","flex-shrink-0 w-3 h-3"),m(a,"width","16"),m(a,"height","16"),m(a,"viewBox","0 0 16 16"),m(a,"fill","currentColor"),m(s,"class","flex items-center gap-x-2 text-gray-500 hover:text-blue-500 whitespace-nowrap"),m(s,"href",y="/api/v0/download_csv?id="+o[0]),m(t,"class","w-full flex justify-between truncate"),m(n,"class","flex items-center gap-x-2 p-3 text-sm bg-white border text-gray-800 first:rounded-t-lg first:mt-0 last:rounded-b-lg dark:bg-slate-900 dark:border-gray-700 dark:text-gray-200"),m(e,"class","flex flex-col justify-end text-start -space-y-px")},m(L,O){N(L,e,O),v(e,n),v(n,t),v(t,r),v(t,i),v(t,s),v(s,a),v(a,c),v(a,l),v(s,d)},p(L,[O]){O&1&&y!==(y="/api/v0/download_csv?id="+L[0])&&m(s,"href",y)},i:K,o:K,d(L){L&&B(e)}}}function pi(o,e,n){let{id:t}=e;return o.$$set=r=>{"id"in r&&n(0,t=r.id)},[t]}class mi extends we{constructor(e){super(),_e(this,e,pi,di,ye,{id:0})}}function Kn(o,e,n){const t=o.slice();return t[5]=e[n],t}function Xn(o,e,n){const t=o.slice();return t[8]=e[n],t}function er(o,e,n){const t=o.slice();return t[8]=e[n],t}function tr(o){let e,n,t,r;return{c(){e=C("th"),n=C("div"),t=C("span"),t.textContent=`${o[8]}`,r=F(),m(t,"class","text-xs font-semibold uppercase tracking-wide text-gray-800 dark:text-gray-200"),m(n,"class","flex items-center gap-x-2"),m(e,"scope","col"),m(e,"class","px-6 py-3 text-left")},m(i,s){N(i,e,s),v(e,n),v(n,t),v(e,r)},p:K,d(i){i&&B(e)}}}function nr(o){let e,n,t;return{c(){e=C("td"),n=C("div"),t=C("span"),t.textContent=`${o[5][o[8]]}`,m(t,"class","text-gray-800 dark:text-gray-200"),m(n,"class","px-6 py-3"),m(e,"class","h-px w-px whitespace-nowrap")},m(r,i){N(r,e,i),v(e,n),v(n,t)},p:K,d(r){r&&B(e)}}}function rr(o){let e,n,t=xe(o[3]),r=[];for(let i=0;i<t.length;i+=1)r[i]=nr(Xn(o,t,i));return{c(){e=C("tr");for(let i=0;i<r.length;i+=1)r[i].c();n=F()},m(i,s){N(i,e,s);for(let a=0;a<r.length;a+=1)r[a]&&r[a].m(e,null);v(e,n)},p(i,s){if(s&12){t=xe(i[3]);let a;for(a=0;a<t.length;a+=1){const c=Xn(i,t,a);r[a]?r[a].p(c,s):(r[a]=nr(c),r[a].c(),r[a].m(e,n))}for(;a<r.length;a+=1)r[a].d(1);r.length=t.length}},d(i){i&&B(e),tt(r,i)}}}function or(o){let e,n;return e=new mi({props:{id:o[0]}}),{c(){Q(e.$$.fragment)},m(t,r){Z(e,t,r),n=!0},p(t,r){const i={};r&1&&(i.id=t[0]),e.$set(i)},i(t){n||(E(e.$$.fragment,t),n=!0)},o(t){M(e.$$.fragment,t),n=!1},d(t){U(e,t)}}}function gi(o){let e,n,t,r,i,s,a,c,l,d,y,L=xe(o[3]),O=[];for(let p=0;p<L.length;p+=1)O[p]=tr(er(o,L,p));let P=xe(o[2]),q=[];for(let p=0;p<P.length;p+=1)q[p]=rr(Kn(o,P,p));let _=o[1].csv_download&&or(o);return{c(){e=C("div"),n=C("div"),t=C("div"),r=C("table"),i=C("thead"),s=C("tr");for(let p=0;p<O.length;p+=1)O[p].c();a=F(),c=C("tbody");for(let p=0;p<q.length;p+=1)q[p].c();l=F(),_&&_.c(),d=ze(),m(i,"class","bg-gray-50 dark:bg-slate-800"),m(c,"class","divide-y divide-gray-200 dark:divide-gray-700"),m(r,"class","min-w-full divide-y divide-gray-200 dark:divide-gray-700"),m(t,"class","p-1.5 min-w-full inline-block align-middle"),m(n,"class","-m-1.5 overflow-x-auto"),m(e,"class","bg-white border border-gray-200 rounded-xl shadow-sm overflow-hidden dark:bg-slate-900 dark:border-gray-700")},m(p,g){N(p,e,g),v(e,n),v(n,t),v(t,r),v(r,i),v(i,s);for(let w=0;w<O.length;w+=1)O[w]&&O[w].m(s,null);v(r,a),v(r,c);for(let w=0;w<q.length;w+=1)q[w]&&q[w].m(c,null);N(p,l,g),_&&_.m(p,g),N(p,d,g),y=!0},p(p,[g]){if(g&8){L=xe(p[3]);let w;for(w=0;w<L.length;w+=1){const D=er(p,L,w);O[w]?O[w].p(D,g):(O[w]=tr(D),O[w].c(),O[w].m(s,null))}for(;w<O.length;w+=1)O[w].d(1);O.length=L.length}if(g&12){P=xe(p[2]);let w;for(w=0;w<P.length;w+=1){const D=Kn(p,P,w);q[w]?q[w].p(D,g):(q[w]=rr(D),q[w].c(),q[w].m(c,null))}for(;w<q.length;w+=1)q[w].d(1);q.length=P.length}p[1].csv_download?_?(_.p(p,g),g&2&&E(_,1)):(_=or(p),_.c(),E(_,1),_.m(d.parentNode,d)):_&&(je(),M(_,1,1,()=>{_=null}),Pe())},i(p){y||(E(_),y=!0)},o(p){M(_),y=!1},d(p){p&&(B(e),B(l),B(d)),tt(O,p),tt(q,p),_&&_.d(p)}}}function hi(o,e,n){let t;et(o,St,c=>n(1,t=c));let{id:r}=e,{df:i}=e,s=JSON.parse(i),a=s.length>0?Object.keys(s[0]):[];return o.$$set=c=>{"id"in c&&n(0,r=c.id),"df"in c&&n(4,i=c.df)},[r,t,s,a,i]}class Vr extends we{constructor(e){super(),_e(this,e,hi,gi,ye,{id:0,df:4})}}function yi(o){let e;return{c(){e=C("div"),m(e,"id",o[0])},m(n,t){N(n,e,t)},p:K,i:K,o:K,d(n){n&&B(e)}}}function bi(o,e,n){let{fig:t}=e,r=JSON.parse(t),i=Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,15);return Rr(()=>{Plotly.newPlot(document.getElementById(i),r,{responsive:!0})}),o.$$set=s=>{"fig"in s&&n(1,t=s.fig)},[i,t]}class Gr extends we{constructor(e){super(),_e(this,e,bi,yi,ye,{fig:1})}}function vi(o){let e,n,t,r;return{c(){e=C("button"),n=ge(o[0]),m(e,"type","button"),m(e,"class","mb-2.5 mr-1.5 py-3 px-4 inline-flex justify-center items-center gap-2 rounded-md border-2 border-green-200 font-semibold text-green-500 hover:text-white hover:bg-green-500 hover:border-green-500 focus:outline-none focus:ring-2 focus:ring-green-200 focus:ring-offset-2 transition-all text-sm dark:focus:ring-offset-gray-800")},m(i,s){N(i,e,s),v(e,n),t||(r=Le(e,"click",o[1]),t=!0)},p(i,[s]){s&1&&Ne(n,i[0])},i:K,o:K,d(i){i&&B(e),t=!1,r()}}}function _i(o,e,n){let{message:t}=e,{onSubmit:r}=e;function i(){r(t)}return o.$$set=s=>{"message"in s&&n(0,t=s.message),"onSubmit"in s&&n(2,r=s.onSubmit)},[t,i,r]}class Zr extends we{constructor(e){super(),_e(this,e,_i,vi,ye,{message:0,onSubmit:2})}}function wi(o){let e,n,t,r,i,s,a,c,l;return{c(){e=C("div"),n=C("div"),t=C("div"),t.innerHTML='<svg class="h-4 w-4 text-yellow-400 mt-0.5" xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" viewBox="0 0 16 16"><path d="M8.982 1.566a1.13 1.13 0 0 0-1.96 0L.165 13.233c-.457.778.091 1.767.98 1.767h13.713c.889 0 1.438-.99.98-1.767L8.982 1.566zM8 5c.535 0 .954.462.9.995l-.35 3.507a.552.552 0 0 1-1.1 0L7.1 5.995A.905.905 0 0 1 8 5zm.002 6a1 1 0 1 1 0 2 1 1 0 0 1 0-2z"></path></svg>',r=F(),i=C("div"),s=C("h3"),s.textContent="Error",a=F(),c=C("div"),l=ge(o[0]),m(t,"class","flex-shrink-0"),m(s,"class","text-sm text-yellow-800 font-semibold"),m(c,"class","mt-1 text-sm text-yellow-700"),m(i,"class","ml-4"),m(n,"class","flex"),m(e,"class","bg-yellow-50 border border-yellow-200 rounded-md p-4"),m(e,"role","alert")},m(d,y){N(d,e,y),v(e,n),v(n,t),v(n,r),v(n,i),v(i,s),v(i,a),v(i,c),v(c,l)},p(d,[y]){y&1&&Ne(l,d[0])},i:K,o:K,d(d){d&&B(e)}}}function $i(o,e,n){let{message:t}=e;return o.$$set=r=>{"message"in r&&n(0,t=r.message)},[t]}let Ln=class extends we{constructor(e){super(),_e(this,e,$i,wi,ye,{message:0})}};function ki(o){let e,n;const t=o[1].default,r=on(t,o,o[0],null);return{c(){e=C("div"),r&&r.c(),m(e,"class","font-mono whitespace-pre-wrap")},m(i,s){N(i,e,s),r&&r.m(e,null),n=!0},p(i,[s]){r&&r.p&&(!n||s&1)&&ln(r,t,i,i[0],n?sn(t,i[0],s,null):an(i[0]),null)},i(i){n||(E(r,i),n=!0)},o(i){M(r,i),n=!1},d(i){i&&B(e),r&&r.d(i)}}}function xi(o,e,n){let{$$slots:t={},$$scope:r}=e;return o.$$set=i=>{"$$scope"in i&&n(0,r=i.$$scope)},[r,t]}class Ur extends we{constructor(e){super(),_e(this,e,xi,ki,ye,{})}}function Si(o){let e;return{c(){e=ge(o[1])},m(n,t){N(n,e,t)},p(n,t){t&2&&Ne(e,n[1])},d(n){n&&B(e)}}}function Oi(o){let e,n,t,r,i,s,a,c;return t=new ct({props:{message:"Run SQL",onSubmit:o[3]}}),i=new ut({props:{$$slots:{default:[Si]},$$scope:{ctx:o}}}),{c(){e=C("textarea"),n=F(),Q(t.$$.fragment),r=F(),Q(i.$$.fragment),m(e,"rows","6"),m(e,"class","block p-2.5 w-full text-blue-600 hover:text-blue-500 dark:text-blue-500 dark:hover:text-blue-400 bg-gray-50 rounded-lg border border-gray-300 focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500 font-mono"),m(e,"placeholder","SELECT col1, col2, col3 FROM ...")},m(l,d){N(l,e,d),mt(e,o[1]),N(l,n,d),Z(t,l,d),N(l,r,d),Z(i,l,d),s=!0,a||(c=Le(e,"input",o[2]),a=!0)},p(l,[d]){d&2&&mt(e,l[1]);const y={};d&3&&(y.onSubmit=l[3]),t.$set(y);const L={};d&18&&(L.$$scope={dirty:d,ctx:l}),i.$set(L)},i(l){s||(E(t.$$.fragment,l),E(i.$$.fragment,l),s=!0)},o(l){M(t.$$.fragment,l),M(i.$$.fragment,l),s=!1},d(l){l&&(B(e),B(n),B(r)),U(t,l),U(i,l),a=!1,c()}}}function Ci(o,e,n){let t;et(o,Qt,a=>n(1,t=a));let{onSubmit:r}=e;function i(){t=this.value,Qt.set(t)}const s=()=>r(t);return o.$$set=a=>{"onSubmit"in a&&n(0,r=a.onSubmit)},[r,t,i,s]}class Li extends we{constructor(e){super(),_e(this,e,Ci,Oi,ye,{onSubmit:0})}}function Ei(o){let e,n,t,r,i,s;return t=new ct({props:{message:o[3],onSubmit:o[5]}}),{c(){e=C("textarea"),n=F(),Q(t.$$.fragment),m(e,"rows","6"),m(e,"class","block p-2.5 w-full text-blue-600 hover:text-blue-500 dark:text-blue-500 dark:hover:text-blue-400 bg-gray-50 rounded-lg border border-gray-300 focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500 font-mono"),m(e,"placeholder",o[2])},m(a,c){N(a,e,c),mt(e,o[0]),N(a,n,c),Z(t,a,c),r=!0,i||(s=Le(e,"input",o[4]),i=!0)},p(a,[c]){(!r||c&4)&&m(e,"placeholder",a[2]),c&1&&mt(e,a[0]);const l={};c&8&&(l.message=a[3]),c&3&&(l.onSubmit=a[5]),t.$set(l)},i(a){r||(E(t.$$.fragment,a),r=!0)},o(a){M(t.$$.fragment,a),r=!1},d(a){a&&(B(e),B(n)),U(t,a),i=!1,s()}}}function Ti(o,e,n){let{onSubmit:t}=e,{currentValue:r}=e,{placeholder:i}=e,{buttonText:s}=e;function a(){r=this.value,n(0,r)}const c=()=>t(r);return o.$$set=l=>{"onSubmit"in l&&n(1,t=l.onSubmit),"currentValue"in l&&n(0,r=l.currentValue),"placeholder"in l&&n(2,i=l.placeholder),"buttonText"in l&&n(3,s=l.buttonText)},[r,t,i,s,a,c]}class ji extends we{constructor(e){super(),_e(this,e,Ti,Ei,ye,{onSubmit:1,currentValue:0,placeholder:2,buttonText:3})}}function Pi(o){let e,n;return e=new ct({props:{message:"Play",onSubmit:o[2]}}),{c(){Q(e.$$.fragment)},m(t,r){Z(e,t,r),n=!0},p(t,[r]){const i={};r&1&&(i.onSubmit=t[2]),e.$set(i)},i(t){n||(E(e.$$.fragment,t),n=!0)},o(t){M(e.$$.fragment,t),n=!1},d(t){U(e,t)}}}function ir(o){if("speechSynthesis"in window){const e=new SpeechSynthesisUtterance(o);e.lang="en-US",e.volume=1,e.rate=1,e.pitch=1,window.speechSynthesis.speak(e)}else console.error("SpeechSynthesis API is not supported in this browser.")}function qi(o,e,n){let t;et(o,Br,s=>n(1,t=s));let{message:r}=e;const i=()=>ir(r);return o.$$set=s=>{"message"in s&&n(0,r=s.message)},o.$$.update=()=>{o.$$.dirty&3&&t&&ir(r)},[r,t,i]}class Ai extends we{constructor(e){super(),_e(this,e,qi,Pi,ye,{message:0})}}function sr(o,e,n){const t=o.slice();return t[11]=e[n],t}function lr(o,e,n){const t=o.slice();return t[14]=e[n],t}function ar(o,e,n){const t=o.slice();return t[17]=e[n],t}function cr(o,e,n){const t=o.slice();return t[17]=e[n],t}function ur(o){let e,n;return e=new Xe({props:{$$slots:{default:[Di]},$$scope:{ctx:o}}}),{c(){Q(e.$$.fragment)},m(t,r){Z(e,t,r),n=!0},p(t,r){const i={};r&4194305&&(i.$$scope={dirty:r,ctx:t}),e.$set(i)},i(t){n||(E(e.$$.fragment,t),n=!0)},o(t){M(e.$$.fragment,t),n=!1},d(t){U(e,t)}}}function fr(o){let e,n;return e=new ct({props:{message:o[17],onSubmit:Cn}}),{c(){Q(e.$$.fragment)},m(t,r){Z(e,t,r),n=!0},p(t,r){const i={};r&1&&(i.message=t[17]),e.$set(i)},i(t){n||(E(e.$$.fragment,t),n=!0)},o(t){M(e.$$.fragment,t),n=!1},d(t){U(e,t)}}}function Mi(o){let e=o[0].header+"",n,t,r,i,s=xe(o[0].questions),a=[];for(let l=0;l<s.length;l+=1)a[l]=fr(cr(o,s,l));const c=l=>M(a[l],1,1,()=>{a[l]=null});return{c(){n=ge(e),t=F();for(let l=0;l<a.length;l+=1)a[l].c();r=ze()},m(l,d){N(l,n,d),N(l,t,d);for(let y=0;y<a.length;y+=1)a[y]&&a[y].m(l,d);N(l,r,d),i=!0},p(l,d){if((!i||d&1)&&e!==(e=l[0].header+"")&&Ne(n,e),d&1){s=xe(l[0].questions);let y;for(y=0;y<s.length;y+=1){const L=cr(l,s,y);a[y]?(a[y].p(L,d),E(a[y],1)):(a[y]=fr(L),a[y].c(),E(a[y],1),a[y].m(r.parentNode,r))}for(je(),y=s.length;y<a.length;y+=1)c(y);Pe()}},i(l){if(!i){for(let d=0;d<s.length;d+=1)E(a[d]);i=!0}},o(l){a=a.filter(Boolean);for(let d=0;d<a.length;d+=1)M(a[d]);i=!1},d(l){l&&(B(n),B(t),B(r)),tt(a,l)}}}function Di(o){let e,n;return e=new ut({props:{$$slots:{default:[Mi]},$$scope:{ctx:o}}}),{c(){Q(e.$$.fragment)},m(t,r){Z(e,t,r),n=!0},p(t,r){const i={};r&4194305&&(i.$$scope={dirty:r,ctx:t}),e.$set(i)},i(t){n||(E(e.$$.fragment,t),n=!0)},o(t){M(e.$$.fragment,t),n=!1},d(t){U(e,t)}}}function Ri(o){let e,n;return e=new Xe({props:{$$slots:{default:[es]},$$scope:{ctx:o}}}),{c(){Q(e.$$.fragment)},m(t,r){Z(e,t,r),n=!0},p(t,r){const i={};r&4194308&&(i.$$scope={dirty:r,ctx:t}),e.$set(i)},i(t){n||(E(e.$$.fragment,t),n=!0)},o(t){M(e.$$.fragment,t),n=!1},d(t){U(e,t)}}}function Hi(o){let e,n;return e=new Xe({props:{$$slots:{default:[ns]},$$scope:{ctx:o}}}),{c(){Q(e.$$.fragment)},m(t,r){Z(e,t,r),n=!0},p(t,r){const i={};r&4194308&&(i.$$scope={dirty:r,ctx:t}),e.$set(i)},i(t){n||(E(e.$$.fragment,t),n=!0)},o(t){M(e.$$.fragment,t),n=!1},d(t){U(e,t)}}}function Bi(o){let e,n;return e=new Ot({props:{message:"Put your SQL here",$$slots:{default:[rs]},$$scope:{ctx:o}}}),{c(){Q(e.$$.fragment)},m(t,r){Z(e,t,r),n=!0},p(t,r){const i={};r&4194304&&(i.$$scope={dirty:r,ctx:t}),e.$set(i)},i(t){n||(E(e.$$.fragment,t),n=!0)},o(t){M(e.$$.fragment,t),n=!1},d(t){U(e,t)}}}function Ni(o){let e,n,t,r,i,s,a,c;return e=new Ot({props:{message:o[14].question}}),t=new Xe({props:{$$slots:{default:[ss]},$$scope:{ctx:o}}}),i=new Xe({props:{$$slots:{default:[ls]},$$scope:{ctx:o}}}),a=new Xe({props:{$$slots:{default:[as]},$$scope:{ctx:o}}}),{c(){Q(e.$$.fragment),n=F(),Q(t.$$.fragment),r=F(),Q(i.$$.fragment),s=F(),Q(a.$$.fragment)},m(l,d){Z(e,l,d),N(l,n,d),Z(t,l,d),N(l,r,d),Z(i,l,d),N(l,s,d),Z(a,l,d),c=!0},p(l,d){const y={};d&4&&(y.message=l[14].question),e.$set(y);const L={};d&4194308&&(L.$$scope={dirty:d,ctx:l}),t.$set(L);const O={};d&4194308&&(O.$$scope={dirty:d,ctx:l}),i.$set(O);const P={};d&4194308&&(P.$$scope={dirty:d,ctx:l}),a.$set(P)},i(l){c||(E(e.$$.fragment,l),E(t.$$.fragment,l),E(i.$$.fragment,l),E(a.$$.fragment,l),c=!0)},o(l){M(e.$$.fragment,l),M(t.$$.fragment,l),M(i.$$.fragment,l),M(a.$$.fragment,l),c=!1},d(l){l&&(B(n),B(r),B(s)),U(e,l),U(t,l),U(i,l),U(a,l)}}}function Ii(o){let e,n;return e=new Xe({props:{$$slots:{default:[cs]},$$scope:{ctx:o}}}),{c(){Q(e.$$.fragment)},m(t,r){Z(e,t,r),n=!0},p(t,r){const i={};r&4194316&&(i.$$scope={dirty:r,ctx:t}),e.$set(i)},i(t){n||(E(e.$$.fragment,t),n=!0)},o(t){M(e.$$.fragment,t),n=!1},d(t){U(e,t)}}}function zi(o){let e,n;return e=new Xe({props:{$$slots:{default:[us]},$$scope:{ctx:o}}}),{c(){Q(e.$$.fragment)},m(t,r){Z(e,t,r),n=!0},p(t,r){const i={};r&4194308&&(i.$$scope={dirty:r,ctx:t}),e.$set(i)},i(t){n||(E(e.$$.fragment,t),n=!0)},o(t){M(e.$$.fragment,t),n=!1},d(t){U(e,t)}}}function Vi(o){let e,n;return e=new Ot({props:{message:"No, the results were not correct."}}),{c(){Q(e.$$.fragment)},m(t,r){Z(e,t,r),n=!0},p:K,i(t){n||(E(e.$$.fragment,t),n=!0)},o(t){M(e.$$.fragment,t),n=!1},d(t){U(e,t)}}}function Gi(o){let e,n;return e=new Ot({props:{message:"Yes, the results were correct."}}),{c(){Q(e.$$.fragment)},m(t,r){Z(e,t,r),n=!0},p:K,i(t){n||(E(e.$$.fragment,t),n=!0)},o(t){M(e.$$.fragment,t),n=!1},d(t){U(e,t)}}}function Zi(o){let e,n,t=o[3].ask_results_correct&&pr(o);return{c(){t&&t.c(),e=ze()},m(r,i){t&&t.m(r,i),N(r,e,i),n=!0},p(r,i){r[3].ask_results_correct?t?i&8&&E(t,1):(t=pr(r),t.c(),E(t,1),t.m(e.parentNode,e)):t&&(je(),M(t,1,1,()=>{t=null}),Pe())},i(r){n||(E(t),n=!0)},o(r){M(t),n=!1},d(r){r&&B(e),t&&t.d(r)}}}function Ui(o){let e,n,t=o[3].ask_results_correct&&mr(o);return{c(){t&&t.c(),e=ze()},m(r,i){t&&t.m(r,i),N(r,e,i),n=!0},p(r,i){r[3].ask_results_correct?t?i&8&&E(t,1):(t=mr(r),t.c(),E(t,1),t.m(e.parentNode,e)):t&&(je(),M(t,1,1,()=>{t=null}),Pe())},i(r){n||(E(t),n=!0)},o(r){M(t),n=!1},d(r){r&&B(e),t&&t.d(r)}}}function Qi(o){let e,n;return e=new Ot({props:{message:"Change the chart based on these instructions",$$slots:{default:[ms]},$$scope:{ctx:o}}}),{c(){Q(e.$$.fragment)},m(t,r){Z(e,t,r),n=!0},p(t,r){const i={};r&4194304&&(i.$$scope={dirty:r,ctx:t}),e.$set(i)},i(t){n||(E(e.$$.fragment,t),n=!0)},o(t){M(e.$$.fragment,t),n=!1},d(t){U(e,t)}}}function Wi(o){let e,n,t=o[3].chart&&gr(o);return{c(){t&&t.c(),e=ze()},m(r,i){t&&t.m(r,i),N(r,e,i),n=!0},p(r,i){r[3].chart?t?(t.p(r,i),i&8&&E(t,1)):(t=gr(r),t.c(),E(t,1),t.m(e.parentNode,e)):t&&(je(),M(t,1,1,()=>{t=null}),Pe())},i(r){n||(E(t),n=!0)},o(r){M(t),n=!1},d(r){r&&B(e),t&&t.d(r)}}}function Fi(o){let e,n,t=o[3].table&&yr(o);return{c(){t&&t.c(),e=ze()},m(r,i){t&&t.m(r,i),N(r,e,i),n=!0},p(r,i){r[3].table?t?(t.p(r,i),i&8&&E(t,1)):(t=yr(r),t.c(),E(t,1),t.m(e.parentNode,e)):t&&(je(),M(t,1,1,()=>{t=null}),Pe())},i(r){n||(E(t),n=!0)},o(r){M(t),n=!1},d(r){r&&B(e),t&&t.d(r)}}}function Ji(o){let e,n;return e=new Xe({props:{$$slots:{default:[vs]},$$scope:{ctx:o}}}),{c(){Q(e.$$.fragment)},m(t,r){Z(e,t,r),n=!0},p(t,r){const i={};r&4194308&&(i.$$scope={dirty:r,ctx:t}),e.$set(i)},i(t){n||(E(e.$$.fragment,t),n=!0)},o(t){M(e.$$.fragment,t),n=!1},d(t){U(e,t)}}}function Yi(o){let e,n,t=o[3].sql==!0&&vr(o);return{c(){t&&t.c(),e=ze()},m(r,i){t&&t.m(r,i),N(r,e,i),n=!0},p(r,i){r[3].sql==!0?t?(t.p(r,i),i&8&&E(t,1)):(t=vr(r),t.c(),E(t,1),t.m(e.parentNode,e)):t&&(je(),M(t,1,1,()=>{t=null}),Pe())},i(r){n||(E(t),n=!0)},o(r){M(t),n=!1},d(r){r&&B(e),t&&t.d(r)}}}function Ki(o){let e,n;return e=new Ot({props:{message:o[14].question}}),{c(){Q(e.$$.fragment)},m(t,r){Z(e,t,r),n=!0},p(t,r){const i={};r&4&&(i.message=t[14].question),e.$set(i)},i(t){n||(E(e.$$.fragment,t),n=!0)},o(t){M(e.$$.fragment,t),n=!1},d(t){U(e,t)}}}function Xi(o){let e=JSON.stringify(o[14])+"",n;return{c(){n=ge(e)},m(t,r){N(t,n,r)},p(t,r){r&4&&e!==(e=JSON.stringify(t[14])+"")&&Ne(n,e)},d(t){t&&B(n)}}}function es(o){let e,n;return e=new ut({props:{$$slots:{default:[Xi]},$$scope:{ctx:o}}}),{c(){Q(e.$$.fragment)},m(t,r){Z(e,t,r),n=!0},p(t,r){const i={};r&4194308&&(i.$$scope={dirty:r,ctx:t}),e.$set(i)},i(t){n||(E(e.$$.fragment,t),n=!0)},o(t){M(e.$$.fragment,t),n=!1},d(t){U(e,t)}}}function ts(o){let e=o[14].text+"",n;return{c(){n=ge(e)},m(t,r){N(t,n,r)},p(t,r){r&4&&e!==(e=t[14].text+"")&&Ne(n,e)},d(t){t&&B(n)}}}function ns(o){let e,n,t,r;return e=new ut({props:{$$slots:{default:[ts]},$$scope:{ctx:o}}}),t=new Ai({props:{message:o[14].text}}),{c(){Q(e.$$.fragment),n=F(),Q(t.$$.fragment)},m(i,s){Z(e,i,s),N(i,n,s),Z(t,i,s),r=!0},p(i,s){const a={};s&4194308&&(a.$$scope={dirty:s,ctx:i}),e.$set(a);const c={};s&4&&(c.message=i[14].text),t.$set(c)},i(i){r||(E(e.$$.fragment,i),E(t.$$.fragment,i),r=!0)},o(i){M(e.$$.fragment,i),M(t.$$.fragment,i),r=!1},d(i){i&&B(n),U(e,i),U(t,i)}}}function rs(o){let e,n;return e=new Li({props:{onSubmit:Eo}}),{c(){Q(e.$$.fragment)},m(t,r){Z(e,t,r),n=!0},p:K,i(t){n||(E(e.$$.fragment,t),n=!0)},o(t){M(e.$$.fragment,t),n=!1},d(t){U(e,t)}}}function os(o){let e=o[14].sql+"",n;return{c(){n=ge(e)},m(t,r){N(t,n,r)},p(t,r){r&4&&e!==(e=t[14].sql+"")&&Ne(n,e)},d(t){t&&B(n)}}}function is(o){let e,n;return e=new Ur({props:{$$slots:{default:[os]},$$scope:{ctx:o}}}),{c(){Q(e.$$.fragment)},m(t,r){Z(e,t,r),n=!0},p(t,r){const i={};r&4194308&&(i.$$scope={dirty:r,ctx:t}),e.$set(i)},i(t){n||(E(e.$$.fragment,t),n=!0)},o(t){M(e.$$.fragment,t),n=!1},d(t){U(e,t)}}}function ss(o){let e,n;return e=new ut({props:{$$slots:{default:[is]},$$scope:{ctx:o}}}),{c(){Q(e.$$.fragment)},m(t,r){Z(e,t,r),n=!0},p(t,r){const i={};r&4194308&&(i.$$scope={dirty:r,ctx:t}),e.$set(i)},i(t){n||(E(e.$$.fragment,t),n=!0)},o(t){M(e.$$.fragment,t),n=!1},d(t){U(e,t)}}}function ls(o){let e,n;return e=new Vr({props:{id:o[14].id,df:o[14].df}}),{c(){Q(e.$$.fragment)},m(t,r){Z(e,t,r),n=!0},p(t,r){const i={};r&4&&(i.id=t[14].id),r&4&&(i.df=t[14].df),e.$set(i)},i(t){n||(E(e.$$.fragment,t),n=!0)},o(t){M(e.$$.fragment,t),n=!1},d(t){U(e,t)}}}function as(o){let e,n;return e=new Gr({props:{fig:o[14].fig}}),{c(){Q(e.$$.fragment)},m(t,r){Z(e,t,r),n=!0},p(t,r){const i={};r&4&&(i.fig=t[14].fig),e.$set(i)},i(t){n||(E(e.$$.fragment,t),n=!0)},o(t){M(e.$$.fragment,t),n=!1},d(t){U(e,t)}}}function dr(o){let e,n;function t(){return o[9](o[14])}return e=new ct({props:{message:"Auto Fix",onSubmit:t}}),{c(){Q(e.$$.fragment)},m(r,i){Z(e,r,i),n=!0},p(r,i){o=r;const s={};i&4&&(s.onSubmit=t),e.$set(s)},i(r){n||(E(e.$$.fragment,r),n=!0)},o(r){M(e.$$.fragment,r),n=!1},d(r){U(e,r)}}}function cs(o){let e,n,t,r,i,s;e=new Ln({props:{message:o[14].error}}),t=new ct({props:{message:"Manually Fix",onSubmit:o[8]}});let a=o[3].auto_fix_sql&&dr(o);return{c(){Q(e.$$.fragment),n=F(),Q(t.$$.fragment),r=F(),a&&a.c(),i=ze()},m(c,l){Z(e,c,l),N(c,n,l),Z(t,c,l),N(c,r,l),a&&a.m(c,l),N(c,i,l),s=!0},p(c,l){const d={};l&4&&(d.message=c[14].error),e.$set(d),c[3].auto_fix_sql?a?(a.p(c,l),l&8&&E(a,1)):(a=dr(c),a.c(),E(a,1),a.m(i.parentNode,i)):a&&(je(),M(a,1,1,()=>{a=null}),Pe())},i(c){s||(E(e.$$.fragment,c),E(t.$$.fragment,c),E(a),s=!0)},o(c){M(e.$$.fragment,c),M(t.$$.fragment,c),M(a),s=!1},d(c){c&&(B(n),B(r),B(i)),U(e,c),U(t,c),a&&a.d(c)}}}function us(o){let e,n;return e=new Ln({props:{message:o[14].error}}),{c(){Q(e.$$.fragment)},m(t,r){Z(e,t,r),n=!0},p(t,r){const i={};r&4&&(i.message=t[14].error),e.$set(i)},i(t){n||(E(e.$$.fragment,t),n=!0)},o(t){M(e.$$.fragment,t),n=!1},d(t){U(e,t)}}}function pr(o){let e,n;return e=new Ot({props:{message:"",$$slots:{default:[fs]},$$scope:{ctx:o}}}),{c(){Q(e.$$.fragment)},m(t,r){Z(e,t,r),n=!0},i(t){n||(E(e.$$.fragment,t),n=!0)},o(t){M(e.$$.fragment,t),n=!1},d(t){U(e,t)}}}function fs(o){let e,n,t,r;return e=new ct({props:{message:"Yes",onSubmit:o[6]}}),t=new ct({props:{message:"No",onSubmit:o[7]}}),{c(){Q(e.$$.fragment),n=F(),Q(t.$$.fragment)},m(i,s){Z(e,i,s),N(i,n,s),Z(t,i,s),r=!0},p:K,i(i){r||(E(e.$$.fragment,i),E(t.$$.fragment,i),r=!0)},o(i){M(e.$$.fragment,i),M(t.$$.fragment,i),r=!1},d(i){i&&B(n),U(e,i),U(t,i)}}}function mr(o){let e,n;return e=new Xe({props:{$$slots:{default:[ps]},$$scope:{ctx:o}}}),{c(){Q(e.$$.fragment)},m(t,r){Z(e,t,r),n=!0},i(t){n||(E(e.$$.fragment,t),n=!0)},o(t){M(e.$$.fragment,t),n=!1},d(t){U(e,t)}}}function ds(o){let e;return{c(){e=ge("Were the results correct?")},m(n,t){N(n,e,t)},d(n){n&&B(e)}}}function ps(o){let e,n;return e=new ut({props:{$$slots:{default:[ds]},$$scope:{ctx:o}}}),{c(){Q(e.$$.fragment)},m(t,r){Z(e,t,r),n=!0},p(t,r){const i={};r&4194304&&(i.$$scope={dirty:r,ctx:t}),e.$set(i)},i(t){n||(E(e.$$.fragment,t),n=!0)},o(t){M(e.$$.fragment,t),n=!1},d(t){U(e,t)}}}function ms(o){let e,n;return e=new ji({props:{onSubmit:o[5],placeholder:"Make the line red",buttonText:"Update Chart",currentValue:""}}),{c(){Q(e.$$.fragment)},m(t,r){Z(e,t,r),n=!0},p:K,i(t){n||(E(e.$$.fragment,t),n=!0)},o(t){M(e.$$.fragment,t),n=!1},d(t){U(e,t)}}}function gr(o){let e,n,t,r;e=new Xe({props:{$$slots:{default:[gs]},$$scope:{ctx:o}}});let i=o[3].redraw_chart&&hr(o);return{c(){Q(e.$$.fragment),n=F(),i&&i.c(),t=ze()},m(s,a){Z(e,s,a),N(s,n,a),i&&i.m(s,a),N(s,t,a),r=!0},p(s,a){const c={};a&4194308&&(c.$$scope={dirty:a,ctx:s}),e.$set(c),s[3].redraw_chart?i?a&8&&E(i,1):(i=hr(s),i.c(),E(i,1),i.m(t.parentNode,t)):i&&(je(),M(i,1,1,()=>{i=null}),Pe())},i(s){r||(E(e.$$.fragment,s),E(i),r=!0)},o(s){M(e.$$.fragment,s),M(i),r=!1},d(s){s&&(B(n),B(t)),U(e,s),i&&i.d(s)}}}function gs(o){let e,n;return e=new Gr({props:{fig:o[14].fig}}),{c(){Q(e.$$.fragment)},m(t,r){Z(e,t,r),n=!0},p(t,r){const i={};r&4&&(i.fig=t[14].fig),e.$set(i)},i(t){n||(E(e.$$.fragment,t),n=!0)},o(t){M(e.$$.fragment,t),n=!1},d(t){U(e,t)}}}function hr(o){let e,n;return e=new Xe({props:{$$slots:{default:[hs]},$$scope:{ctx:o}}}),{c(){Q(e.$$.fragment)},m(t,r){Z(e,t,r),n=!0},i(t){n||(E(e.$$.fragment,t),n=!0)},o(t){M(e.$$.fragment,t),n=!1},d(t){U(e,t)}}}function hs(o){let e,n;return e=new ct({props:{message:"Redraw Chart",onSubmit:To}}),{c(){Q(e.$$.fragment)},m(t,r){Z(e,t,r),n=!0},p:K,i(t){n||(E(e.$$.fragment,t),n=!0)},o(t){M(e.$$.fragment,t),n=!1},d(t){U(e,t)}}}function yr(o){let e,n;return e=new Xe({props:{$$slots:{default:[ys]},$$scope:{ctx:o}}}),{c(){Q(e.$$.fragment)},m(t,r){Z(e,t,r),n=!0},p(t,r){const i={};r&4194308&&(i.$$scope={dirty:r,ctx:t}),e.$set(i)},i(t){n||(E(e.$$.fragment,t),n=!0)},o(t){M(e.$$.fragment,t),n=!1},d(t){U(e,t)}}}function ys(o){let e,n;return e=new Vr({props:{id:o[14].id,df:o[14].df}}),{c(){Q(e.$$.fragment)},m(t,r){Z(e,t,r),n=!0},p(t,r){const i={};r&4&&(i.id=t[14].id),r&4&&(i.df=t[14].df),e.$set(i)},i(t){n||(E(e.$$.fragment,t),n=!0)},o(t){M(e.$$.fragment,t),n=!1},d(t){U(e,t)}}}function br(o){let e,n;return e=new ct({props:{message:o[17],onSubmit:Cn}}),{c(){Q(e.$$.fragment)},m(t,r){Z(e,t,r),n=!0},p(t,r){const i={};r&4&&(i.message=t[17]),e.$set(i)},i(t){n||(E(e.$$.fragment,t),n=!0)},o(t){M(e.$$.fragment,t),n=!1},d(t){U(e,t)}}}function bs(o){let e=o[14].header+"",n,t,r,i,s=xe(o[14].questions),a=[];for(let l=0;l<s.length;l+=1)a[l]=br(ar(o,s,l));const c=l=>M(a[l],1,1,()=>{a[l]=null});return{c(){n=ge(e),t=F();for(let l=0;l<a.length;l+=1)a[l].c();r=ze()},m(l,d){N(l,n,d),N(l,t,d);for(let y=0;y<a.length;y+=1)a[y]&&a[y].m(l,d);N(l,r,d),i=!0},p(l,d){if((!i||d&4)&&e!==(e=l[14].header+"")&&Ne(n,e),d&4){s=xe(l[14].questions);let y;for(y=0;y<s.length;y+=1){const L=ar(l,s,y);a[y]?(a[y].p(L,d),E(a[y],1)):(a[y]=br(L),a[y].c(),E(a[y],1),a[y].m(r.parentNode,r))}for(je(),y=s.length;y<a.length;y+=1)c(y);Pe()}},i(l){if(!i){for(let d=0;d<s.length;d+=1)E(a[d]);i=!0}},o(l){a=a.filter(Boolean);for(let d=0;d<a.length;d+=1)M(a[d]);i=!1},d(l){l&&(B(n),B(t),B(r)),tt(a,l)}}}function vs(o){let e,n;return e=new ut({props:{$$slots:{default:[bs]},$$scope:{ctx:o}}}),{c(){Q(e.$$.fragment)},m(t,r){Z(e,t,r),n=!0},p(t,r){const i={};r&4194308&&(i.$$scope={dirty:r,ctx:t}),e.$set(i)},i(t){n||(E(e.$$.fragment,t),n=!0)},o(t){M(e.$$.fragment,t),n=!1},d(t){U(e,t)}}}function vr(o){let e,n;return e=new Xe({props:{$$slots:{default:[$s]},$$scope:{ctx:o}}}),{c(){Q(e.$$.fragment)},m(t,r){Z(e,t,r),n=!0},p(t,r){const i={};r&4194308&&(i.$$scope={dirty:r,ctx:t}),e.$set(i)},i(t){n||(E(e.$$.fragment,t),n=!0)},o(t){M(e.$$.fragment,t),n=!1},d(t){U(e,t)}}}function _s(o){let e,n;return e=new go({props:{text:o[14].text}}),{c(){Q(e.$$.fragment)},m(t,r){Z(e,t,r),n=!0},p(t,r){const i={};r&4&&(i.text=t[14].text),e.$set(i)},i(t){n||(E(e.$$.fragment,t),n=!0)},o(t){M(e.$$.fragment,t),n=!1},d(t){U(e,t)}}}function ws(o){let e,n;return e=new Ur({props:{$$slots:{default:[_s]},$$scope:{ctx:o}}}),{c(){Q(e.$$.fragment)},m(t,r){Z(e,t,r),n=!0},p(t,r){const i={};r&4194308&&(i.$$scope={dirty:r,ctx:t}),e.$set(i)},i(t){n||(E(e.$$.fragment,t),n=!0)},o(t){M(e.$$.fragment,t),n=!1},d(t){U(e,t)}}}function $s(o){let e,n;return e=new ut({props:{$$slots:{default:[ws]},$$scope:{ctx:o}}}),{c(){Q(e.$$.fragment)},m(t,r){Z(e,t,r),n=!0},p(t,r){const i={};r&4194308&&(i.$$scope={dirty:r,ctx:t}),e.$set(i)},i(t){n||(E(e.$$.fragment,t),n=!0)},o(t){M(e.$$.fragment,t),n=!1},d(t){U(e,t)}}}function _r(o){let e,n,t,r;const i=[Ki,Yi,Ji,Fi,Wi,Qi,Ui,Zi,Gi,Vi,zi,Ii,Ni,Bi,Hi,Ri],s=[];function a(c,l){return c[14].type==="user_question"?0:c[14].type==="sql"?1:c[14].type==="question_list"?2:c[14].type==="df"?3:c[14].type==="plotly_figure"?4:c[14].type==="chart_modification"?5:c[14].type==="feedback_question"?6:c[14].type==="feedback_buttons"?7:c[14].type==="feedback_correct"?8:c[14].type==="feedback_incorrect"?9:c[14].type==="error"?10:c[14].type==="sql_error"?11:c[14].type==="question_cache"?12:c[14].type==="user_sql"?13:c[14].type==="text"?14:15}return e=a(o),n=s[e]=i[e](o),{c(){n.c(),t=ze()},m(c,l){s[e].m(c,l),N(c,t,l),r=!0},p(c,l){let d=e;e=a(c),e===d?s[e].p(c,l):(je(),M(s[d],1,1,()=>{s[d]=null}),Pe(),n=s[e],n?n.p(c,l):(n=s[e]=i[e](c),n.c()),E(n,1),n.m(t.parentNode,t))},i(c){r||(E(n),r=!0)},o(c){M(n),r=!1},d(c){c&&B(t),s[e].d(c)}}}function wr(o){let e,n;return e=new fi({}),{c(){Q(e.$$.fragment)},m(t,r){Z(e,t,r),n=!0},i(t){n||(E(e.$$.fragment,t),n=!0)},o(t){M(e.$$.fragment,t),n=!1},d(t){U(e,t)}}}function ks(o){let e,n;return e=new ei({props:{onSubmit:Cn}}),{c(){Q(e.$$.fragment)},m(t,r){Z(e,t,r),n=!0},p:K,i(t){n||(E(e.$$.fragment,t),n=!0)},o(t){M(e.$$.fragment,t),n=!1},d(t){U(e,t)}}}function xs(o){let e,n,t,r;e=new Zr({props:{message:"New Question",onSubmit:fn}});let i=xe(o[2]),s=[];for(let c=0;c<i.length;c+=1)s[c]=kr(sr(o,i,c));const a=c=>M(s[c],1,1,()=>{s[c]=null});return{c(){Q(e.$$.fragment),n=F();for(let c=0;c<s.length;c+=1)s[c].c();t=ze()},m(c,l){Z(e,c,l),N(c,n,l);for(let d=0;d<s.length;d+=1)s[d]&&s[d].m(c,l);N(c,t,l),r=!0},p(c,l){if(l&4){i=xe(c[2]);let d;for(d=0;d<i.length;d+=1){const y=sr(c,i,d);s[d]?(s[d].p(y,l),E(s[d],1)):(s[d]=kr(y),s[d].c(),E(s[d],1),s[d].m(t.parentNode,t))}for(je(),d=i.length;d<s.length;d+=1)a(d);Pe()}},i(c){if(!r){E(e.$$.fragment,c);for(let l=0;l<i.length;l+=1)E(s[l]);r=!0}},o(c){M(e.$$.fragment,c),s=s.filter(Boolean);for(let l=0;l<s.length;l+=1)M(s[l]);r=!1},d(c){c&&(B(n),B(t)),U(e,c),tt(s,c)}}}function $r(o){let e,n;function t(){return o[10](o[11])}return e=new Zr({props:{message:"Re-Run SQL",onSubmit:t}}),{c(){Q(e.$$.fragment)},m(r,i){Z(e,r,i),n=!0},p(r,i){o=r;const s={};i&4&&(s.onSubmit=t),e.$set(s)},i(r){n||(E(e.$$.fragment,r),n=!0)},o(r){M(e.$$.fragment,r),n=!1},d(r){U(e,r)}}}function kr(o){let e,n,t=o[11].type==="question_cache"&&$r(o);return{c(){t&&t.c(),e=ze()},m(r,i){t&&t.m(r,i),N(r,e,i),n=!0},p(r,i){r[11].type==="question_cache"?t?(t.p(r,i),i&4&&E(t,1)):(t=$r(r),t.c(),E(t,1),t.m(e.parentNode,e)):t&&(je(),M(t,1,1,()=>{t=null}),Pe())},i(r){n||(E(t),n=!0)},o(r){M(t),n=!1},d(r){r&&B(e),t&&t.d(r)}}}function Ss(o){let e,n,t,r,i,s,a,c,l,d,y,L,O,P;t=new Io({});let q=o[0]&&o[0].type=="question_list"&&!o[1]&&ur(o),_=xe(o[2]),p=[];for(let u=0;u<_.length;u+=1)p[u]=_r(lr(o,_,u));const g=u=>M(p[u],1,1,()=>{p[u]=null});let w=o[4]&&wr();d=new ni({});const D=[xs,ks],A=[];function x(u,f){return u[1]?0:1}return L=x(o),O=A[L]=D[L](o),{c(){e=C("div"),n=C("div"),Q(t.$$.fragment),r=F(),q&&q.c(),i=F(),s=C("ul");for(let u=0;u<p.length;u+=1)p[u].c();a=F(),w&&w.c(),c=F(),l=C("footer"),Q(d.$$.fragment),y=F(),O.c(),m(s,"class","mt-16 space-y-5"),m(n,"class","py-10 lg:py-14"),m(l,"class","max-w-4xl mx-auto sticky bottom-0 z-10 p-3 sm:py-6"),m(e,"class","relative h-screen w-full lg:pl-64")},m(u,f){N(u,e,f),v(e,n),Z(t,n,null),v(n,r),q&&q.m(n,null),v(n,i),v(n,s);for(let k=0;k<p.length;k+=1)p[k]&&p[k].m(s,null);v(s,a),w&&w.m(s,null),v(e,c),v(e,l),Z(d,l,null),v(l,y),A[L].m(l,null),P=!0},p(u,[f]){if(u[0]&&u[0].type=="question_list"&&!u[1]?q?(q.p(u,f),f&3&&E(q,1)):(q=ur(u),q.c(),E(q,1),q.m(n,i)):q&&(je(),M(q,1,1,()=>{q=null}),Pe()),f&12){_=xe(u[2]);let T;for(T=0;T<_.length;T+=1){const S=lr(u,_,T);p[T]?(p[T].p(S,f),E(p[T],1)):(p[T]=_r(S),p[T].c(),E(p[T],1),p[T].m(s,a))}for(je(),T=_.length;T<p.length;T+=1)g(T);Pe()}u[4]?w?f&16&&E(w,1):(w=wr(),w.c(),E(w,1),w.m(s,null)):w&&(je(),M(w,1,1,()=>{w=null}),Pe());let k=L;L=x(u),L===k?A[L].p(u,f):(je(),M(A[k],1,1,()=>{A[k]=null}),Pe(),O=A[L],O?O.p(u,f):(O=A[L]=D[L](u),O.c()),E(O,1),O.m(l,null))},i(u){if(!P){E(t.$$.fragment,u),E(q);for(let f=0;f<_.length;f+=1)E(p[f]);E(w),E(d.$$.fragment,u),E(O),P=!0}},o(u){M(t.$$.fragment,u),M(q),p=p.filter(Boolean);for(let f=0;f<p.length;f+=1)M(p[f]);M(w),M(d.$$.fragment,u),M(O),P=!1},d(u){u&&B(e),U(t),q&&q.d(),tt(p,u),w&&w.d(),U(d),A[L].d()}}}function Os(o,e,n){let t,r,i,s,a;return et(o,Sn,P=>n(0,t=P)),et(o,un,P=>n(1,r=P)),et(o,Ht,P=>n(2,i=P)),et(o,St,P=>n(3,s=P)),et(o,Zt,P=>n(4,a=P)),[t,r,i,s,a,P=>{Po(P)},()=>{jo()},()=>{Wn()},()=>{Wn()},P=>{Lo(P.error)},P=>P.type==="question_cache"?yo(P.id):void 0]}class Cs extends we{constructor(e){super(),_e(this,e,Os,Ss,ye,{})}}function Ls(o){let e,n,t,r,i,s,a,c,l,d,y,L,O,P,q,_,p,g,w;return{c(){e=C("div"),n=C("div"),t=C("div"),r=C("div"),i=C("h3"),i.textContent="Are you sure?",s=F(),a=C("button"),a.innerHTML='<span class="sr-only">Close</span> <svg class="w-3.5 h-3.5" width="8" height="8" viewBox="0 0 8 8" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0.258206 1.00652C0.351976 0.912791 0.479126 0.860131 0.611706 0.860131C0.744296 0.860131 0.871447 0.912791 0.965207 1.00652L3.61171 3.65302L6.25822 1.00652C6.30432 0.958771 6.35952 0.920671 6.42052 0.894471C6.48152 0.868271 6.54712 0.854471 6.61352 0.853901C6.67992 0.853321 6.74572 0.865971 6.80722 0.891111C6.86862 0.916251 6.92442 0.953381 6.97142 1.00032C7.01832 1.04727 7.05552 1.1031 7.08062 1.16454C7.10572 1.22599 7.11842 1.29183 7.11782 1.35822C7.11722 1.42461 7.10342 1.49022 7.07722 1.55122C7.05102 1.61222 7.01292 1.6674 6.96522 1.71352L4.31871 4.36002L6.96522 7.00648C7.05632 7.10078 7.10672 7.22708 7.10552 7.35818C7.10442 7.48928 7.05182 7.61468 6.95912 7.70738C6.86642 7.80018 6.74102 7.85268 6.60992 7.85388C6.47882 7.85498 6.35252 7.80458 6.25822 7.71348L3.61171 5.06702L0.965207 7.71348C0.870907 7.80458 0.744606 7.85498 0.613506 7.85388C0.482406 7.85268 0.357007 7.80018 0.264297 7.70738C0.171597 7.61468 0.119017 7.48928 0.117877 7.35818C0.116737 7.22708 0.167126 7.10078 0.258206 7.00648L2.90471 4.36002L0.258206 1.71352C0.164476 1.61976 0.111816 1.4926 0.111816 1.36002C0.111816 1.22744 0.164476 1.10028 0.258206 1.00652Z" fill="currentColor"></path></svg>',c=F(),l=C("div"),d=C("p"),y=ge(o[0]),L=F(),O=C("div"),P=C("button"),P.textContent="Close",q=F(),_=C("button"),p=ge(o[1]),m(i,"class","font-bold text-gray-800 dark:text-white"),m(a,"type","button"),m(a,"class","hs-dropdown-toggle inline-flex flex-shrink-0 justify-center items-center h-8 w-8 rounded-md text-gray-500 hover:text-gray-400 focus:outline-none focus:ring-2 focus:ring-gray-400 focus:ring-offset-2 focus:ring-offset-white transition-all text-sm dark:focus:ring-gray-700 dark:focus:ring-offset-gray-800"),m(a,"data-hs-overlay","#hs-vertically-centered-modal"),m(r,"class","flex justify-between items-center py-3 px-4 border-b dark:border-gray-700"),m(d,"class","text-gray-800 dark:text-gray-400"),m(l,"class","p-4 overflow-y-auto"),m(P,"type","button"),m(P,"class","hs-dropdown-toggle py-3 px-4 inline-flex justify-center items-center gap-2 rounded-md border font-medium bg-white text-gray-700 shadow-sm align-middle hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-white focus:ring-blue-600 transition-all text-sm dark:bg-slate-900 dark:hover:bg-slate-800 dark:border-gray-700 dark:text-gray-400 dark:hover:text-white dark:focus:ring-offset-gray-800"),m(P,"data-hs-overlay","#hs-vertically-centered-modal"),m(_,"class","py-3 px-4 inline-flex justify-center items-center gap-2 rounded-md border border-transparent font-semibold bg-blue-500 text-white hover:bg-blue-600 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2 transition-all text-sm dark:focus:ring-offset-gray-800"),m(O,"class","flex justify-end items-center gap-x-2 py-3 px-4 border-t dark:border-gray-700"),m(t,"class","flex flex-col bg-white border shadow-sm rounded-xl dark:bg-gray-800 dark:border-gray-700 dark:shadow-slate-700/[.7]"),m(n,"class","hs-overlay-open:mt-7 hs-overlay-open:opacity-100 hs-overlay-open:duration-500 mt-0 opacity-0 ease-out transition-all sm:max-w-lg sm:w-full m-3 sm:mx-auto min-h-[calc(100%-3.5rem)] flex items-center"),m(e,"class","hs-overlay open w-full h-full fixed top-0 left-0 z-[60] overflow-x-hidden overflow-y-auto")},m(D,A){N(D,e,A),v(e,n),v(n,t),v(t,r),v(r,i),v(r,s),v(r,a),v(t,c),v(t,l),v(l,d),v(d,y),v(t,L),v(t,O),v(O,P),v(O,q),v(O,_),v(_,p),g||(w=[Le(a,"click",function(){Mt(o[2])&&o[2].apply(this,arguments)}),Le(P,"click",function(){Mt(o[2])&&o[2].apply(this,arguments)}),Le(_,"click",function(){Mt(o[3])&&o[3].apply(this,arguments)})],g=!0)},p(D,[A]){o=D,A&1&&Ne(y,o[0]),A&2&&Ne(p,o[1])},i:K,o:K,d(D){D&&B(e),g=!1,gt(w)}}}function Es(o,e,n){let{message:t}=e,{buttonLabel:r}=e,{onClose:i}=e,{onConfirm:s}=e;return o.$$set=a=>{"message"in a&&n(0,t=a.message),"buttonLabel"in a&&n(1,r=a.buttonLabel),"onClose"in a&&n(2,i=a.onClose),"onConfirm"in a&&n(3,s=a.onConfirm)},[t,r,i,s]}class Ts extends we{constructor(e){super(),_e(this,e,Es,Ls,ye,{message:0,buttonLabel:1,onClose:2,onConfirm:3})}}function xr(o,e,n){const t=o.slice();return t[10]=e[n].name,t[11]=e[n].description,t[12]=e[n].example,t}function Sr(o){let e,n,t,r,i,s,a,c,l,d,y,L;return d=to(o[7][0]),{c(){e=C("div"),n=C("div"),t=C("input"),r=F(),i=C("label"),s=C("span"),s.textContent=`${o[10]}`,a=F(),c=C("span"),c.textContent=`${o[11]}`,l=F(),m(t,"id","hs-radio-"+o[10]),t.__value=o[10],mt(t,t.__value),m(t,"name","hs-radio-with-description"),m(t,"type","radio"),m(t,"class","border-gray-200 rounded-full text-blue-600 focus:ring-blue-500 dark:bg-gray-800 dark:border-gray-700 dark:checked:bg-blue-500 dark:checked:border-blue-500 dark:focus:ring-offset-gray-800"),m(t,"aria-describedby","hs-radio-delete-description"),m(n,"class","flex items-center h-5 mt-1"),m(s,"class","block text-sm font-semibold text-gray-800 dark:text-gray-300"),m(c,"id","hs-radio-ddl-description"),m(c,"class","block text-sm text-gray-600 dark:text-gray-500"),m(i,"for","hs-radio-"+o[10]),m(i,"class","ml-3"),m(e,"class","relative flex items-start"),d.p(t)},m(O,P){N(O,e,P),v(e,n),v(n,t),t.checked=t.__value===o[0],v(e,r),v(e,i),v(i,s),v(i,a),v(i,c),v(e,l),y||(L=Le(t,"change",o[6]),y=!0)},p(O,P){P&1&&(t.checked=t.__value===O[0])},d(O){O&&B(e),d.r(),y=!1,L()}}}function js(o){let e,n,t,r,i,s,a,c,l,d,y,L,O,P,q,_,p,g,w,D,A,x,u,f,k,T=xe(o[3]),S=[];for(let j=0;j<T.length;j+=1)S[j]=Sr(xr(o,T,j));return{c(){var j;e=C("div"),n=C("div"),t=C("div"),r=C("div"),i=C("h2"),i.textContent="Add Training Data",s=F(),a=C("button"),a.innerHTML='<span class="sr-only">Close</span> <svg class="w-3.5 h-3.5" width="8" height="8" viewBox="0 0 8 8" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0.258206 1.00652C0.351976 0.912791 0.479126 0.860131 0.611706 0.860131C0.744296 0.860131 0.871447 0.912791 0.965207 1.00652L3.61171 3.65302L6.25822 1.00652C6.30432 0.958771 6.35952 0.920671 6.42052 0.894471C6.48152 0.868271 6.54712 0.854471 6.61352 0.853901C6.67992 0.853321 6.74572 0.865971 6.80722 0.891111C6.86862 0.916251 6.92442 0.953381 6.97142 1.00032C7.01832 1.04727 7.05552 1.1031 7.08062 1.16454C7.10572 1.22599 7.11842 1.29183 7.11782 1.35822C7.11722 1.42461 7.10342 1.49022 7.07722 1.55122C7.05102 1.61222 7.01292 1.6674 6.96522 1.71352L4.31871 4.36002L6.96522 7.00648C7.05632 7.10078 7.10672 7.22708 7.10552 7.35818C7.10442 7.48928 7.05182 7.61468 6.95912 7.70738C6.86642 7.80018 6.74102 7.85268 6.60992 7.85388C6.47882 7.85498 6.35252 7.80458 6.25822 7.71348L3.61171 5.06702L0.965207 7.71348C0.870907 7.80458 0.744606 7.85498 0.613506 7.85388C0.482406 7.85268 0.357007 7.80018 0.264297 7.70738C0.171597 7.61468 0.119017 7.48928 0.117877 7.35818C0.116737 7.22708 0.167126 7.10078 0.258206 7.00648L2.90471 4.36002L0.258206 1.71352C0.164476 1.61976 0.111816 1.4926 0.111816 1.36002C0.111816 1.22744 0.164476 1.10028 0.258206 1.00652Z" fill="currentColor"></path></svg>',c=F(),l=C("span"),l.textContent="Training Data Type",d=F(),y=C("div");for(let H=0;H<S.length;H+=1)S[H].c();L=F(),O=C("div"),P=C("label"),q=ge("Your "),_=ge(o[0]),p=F(),g=C("div"),w=C("textarea"),A=F(),x=C("div"),u=C("button"),u.textContent="Save",m(i,"class","text-xl text-gray-800 font-bold sm:text-3xl dark:text-white"),m(a,"type","button"),m(a,"class","hs-dropdown-toggle inline-flex flex-shrink-0 justify-center items-center h-8 w-8 rounded-md text-gray-500 hover:text-gray-400 focus:outline-none focus:ring-2 focus:ring-gray-400 focus:ring-offset-2 focus:ring-offset-white transition-all text-sm dark:focus:ring-gray-700 dark:focus:ring-offset-gray-800"),m(a,"data-hs-overlay","#hs-vertically-centered-modal"),m(r,"class","flex justify-between items-center py-3 px-4 border-b dark:border-gray-700 mb-2"),m(l,"class","block mb-2 text-sm font-medium dark:text-white"),m(y,"class","grid space-y-3 mb-1"),m(P,"for","hs-feedback-post-comment-textarea-1"),m(P,"class","block mt-2 mb-2 text-sm font-medium dark:text-white"),m(w,"id","hs-feedback-post-comment-textarea-1"),m(w,"name","hs-feedback-post-comment-textarea-1"),m(w,"rows","3"),m(w,"class","py-3 px-4 block w-full border border-gray-200 rounded-md text-sm focus:border-blue-500 focus:ring-blue-500 sm:p-4 dark:bg-gray-800 dark:border-gray-700 dark:text-gray-400"),m(w,"placeholder",D=((j=o[3].find(o[8]))==null?void 0:j.example)??"No example available"),m(g,"class","mt-1"),m(O,"class","mt-2 border-t dark:border-gray-700"),m(u,"class","py-3 px-4 inline-flex justify-center items-center gap-2 rounded-md border border-transparent font-semibold bg-blue-500 text-white hover:bg-blue-600 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2 transition-all dark:focus:ring-offset-gray-800"),m(x,"class","mt-6 grid"),m(t,"class","mt-5 p-4 relative z-10 bg-white border rounded-xl sm:mt-10 md:p-10 dark:bg-gray-800 dark:border-gray-700"),m(n,"class","mx-auto max-w-2xl"),m(e,"class","max-w-[85rem] px-4 py-10 sm:px-6 lg:px-8 lg:py-14 mx-auto")},m(j,H){N(j,e,H),v(e,n),v(n,t),v(t,r),v(r,i),v(r,s),v(r,a),v(t,c),v(t,l),v(t,d),v(t,y);for(let I=0;I<S.length;I+=1)S[I]&&S[I].m(y,null);v(t,L),v(t,O),v(O,P),v(P,q),v(P,_),v(O,p),v(O,g),v(g,w),mt(w,o[2]),v(t,A),v(t,x),v(x,u),f||(k=[Le(a,"click",function(){Mt(o[1])&&o[1].apply(this,arguments)}),Le(w,"input",o[9]),Le(u,"click",o[4])],f=!0)},p(j,[H]){var I;if(o=j,H&9){T=xe(o[3]);let W;for(W=0;W<T.length;W+=1){const J=xr(o,T,W);S[W]?S[W].p(J,H):(S[W]=Sr(J),S[W].c(),S[W].m(y,null))}for(;W<S.length;W+=1)S[W].d(1);S.length=T.length}H&1&&Ne(_,o[0]),H&1&&D!==(D=((I=o[3].find(o[8]))==null?void 0:I.example)??"No example available")&&m(w,"placeholder",D),H&4&&mt(w,o[2])},i:K,o:K,d(j){j&&B(e),tt(S,j),f=!1,gt(k)}}}function Ps(o,e,n){let{onDismiss:t}=e,{onTrain:r}=e,{selectedTrainingDataType:i="SQL"}=e,s=[{name:"DDL",description:"These are the CREATE TABLE statements that define your database structure.",example:"CREATE TABLE table_name (column_1 datatype, column_2 datatype, column_3 datatype);"},{name:"Documentation",description:"This can be any text-based documentation. Keep the chunks small and focused on a single topic.",example:"Our definition of ABC is XYZ."},{name:"SQL",description:"This can be any SQL statement that works. The more the merrier.",example:"SELECT column_1, column_2 FROM table_name;"}],a="";const c=()=>{r(a,i.toLowerCase())},l=[[]];function d(){i=this.__value,n(0,i)}const y=O=>O.name===i;function L(){a=this.value,n(2,a)}return o.$$set=O=>{"onDismiss"in O&&n(1,t=O.onDismiss),"onTrain"in O&&n(5,r=O.onTrain),"selectedTrainingDataType"in O&&n(0,i=O.selectedTrainingDataType)},[i,t,a,s,c,r,d,l,y,L]}class qs extends we{constructor(e){super(),_e(this,e,Ps,js,ye,{onDismiss:1,onTrain:5,selectedTrainingDataType:0})}}function Or(o,e,n){const t=o.slice();return t[21]=e[n],t}function Cr(o,e,n){const t=o.slice();return t[24]=e[n],t}function Lr(o,e,n){const t=o.slice();return t[24]=e[n],t}function Er(o){let e,n;return e=new qs({props:{onDismiss:o[13],onTrain:o[0]}}),{c(){Q(e.$$.fragment)},m(t,r){Z(e,t,r),n=!0},p(t,r){const i={};r&1&&(i.onTrain=t[0]),e.$set(i)},i(t){n||(E(e.$$.fragment,t),n=!0)},o(t){M(e.$$.fragment,t),n=!1},d(t){U(e,t)}}}function As(o){let e;return{c(){e=ge("Action")},m(n,t){N(n,e,t)},p:K,d(n){n&&B(e)}}}function Ms(o){let e=o[24]+"",n;return{c(){n=ge(e)},m(t,r){N(t,n,r)},p:K,d(t){t&&B(n)}}}function Tr(o){let e,n,t,r;function i(c,l){return c[24]!="id"?Ms:As}let a=i(o)(o);return{c(){e=C("th"),n=C("div"),t=C("span"),a.c(),r=F(),m(t,"class","text-xs font-semibold uppercase tracking-wide text-gray-800 dark:text-gray-200"),m(n,"class","flex items-center gap-x-2"),m(e,"scope","col"),m(e,"class","px-6 py-3 text-left")},m(c,l){N(c,e,l),v(e,n),v(n,t),a.m(t,null),v(e,r)},p(c,l){a.p(c,l)},d(c){c&&B(e),a.d()}}}function Ds(o){let e,n,t;function r(){return o[18](o[21],o[24])}return{c(){e=C("button"),e.textContent="Delete",m(e,"type","button"),m(e,"class","py-2 px-3 inline-flex justify-center items-center gap-2 rounded-md border-2 border-red-200 font-semibold text-red-500 hover:text-white hover:bg-red-500 hover:border-red-500 focus:outline-none focus:ring-2 focus:ring-red-200 focus:ring-offset-2 transition-all text-sm dark:focus:ring-offset-gray-800")},m(i,s){N(i,e,s),n||(t=Le(e,"click",r),n=!0)},p(i,s){o=i},d(i){i&&B(e),n=!1,t()}}}function Rs(o){let e,n=o[21][o[24]]+"",t;return{c(){e=C("span"),t=ge(n),m(e,"class","text-gray-800 dark:text-gray-200")},m(r,i){N(r,e,i),v(e,t)},p(r,i){i&16&&n!==(n=r[21][r[24]]+"")&&Ne(t,n)},d(r){r&&B(e)}}}function jr(o){let e,n;function t(s,a){return s[24]!="id"?Rs:Ds}let i=t(o)(o);return{c(){e=C("td"),n=C("div"),i.c(),m(n,"class","px-6 py-3"),m(e,"class","h-px w-px ")},m(s,a){N(s,e,a),v(e,n),i.m(n,null)},p(s,a){i.p(s,a)},d(s){s&&B(e),i.d()}}}function Pr(o){let e,n,t=xe(o[8]),r=[];for(let i=0;i<t.length;i+=1)r[i]=jr(Cr(o,t,i));return{c(){e=C("tr");for(let i=0;i<r.length;i+=1)r[i].c();n=F()},m(i,s){N(i,e,s);for(let a=0;a<r.length;a+=1)r[a]&&r[a].m(e,null);v(e,n)},p(i,s){if(s&304){t=xe(i[8]);let a;for(a=0;a<t.length;a+=1){const c=Cr(i,t,a);r[a]?r[a].p(c,s):(r[a]=jr(c),r[a].c(),r[a].m(e,n))}for(;a<r.length;a+=1)r[a].d(1);r.length=t.length}},d(i){i&&B(e),tt(r,i)}}}function qr(o){let e,n;return e=new Ts({props:{message:"Are you sure you want to delete this?",buttonLabel:"Delete",onClose:o[19],onConfirm:o[20]}}),{c(){Q(e.$$.fragment)},m(t,r){Z(e,t,r),n=!0},p(t,r){const i={};r&32&&(i.onClose=t[19]),r&34&&(i.onConfirm=t[20]),e.$set(i)},i(t){n||(E(e.$$.fragment,t),n=!0)},o(t){M(e.$$.fragment,t),n=!1},d(t){U(e,t)}}}function Hs(o){let e,n,t,r,i,s,a,c,l,d,y,L,O,P,q,_,p,g,w,D,A,x,u,f,k,T,S,j=o[2]+1+"",H,I,W=Math.min(o[3],o[7].length)+"",J,Oe,ae,rt,nt,Ge,Ue,ht,be,ft,Qe,yt,Bt,Nt,qe=o[6]&&Er(o),bt=xe(o[8]),De=[];for(let ee=0;ee<bt.length;ee+=1)De[ee]=Tr(Lr(o,bt,ee));let Ve=xe(o[4]),Ee=[];for(let ee=0;ee<Ve.length;ee+=1)Ee[ee]=Pr(Or(o,Ve,ee));let Te=o[5]!=null&&qr(o);return{c(){qe&&qe.c(),e=F(),n=C("div"),t=C("div"),r=C("div"),i=C("div"),s=C("div"),a=C("div"),c=C("div"),c.innerHTML='<h2 class="text-xl font-semibold text-gray-800 dark:text-gray-200">Training Data</h2> <p class="text-sm text-gray-600 dark:text-gray-400">Add or remove training data. Good training data is the key to accuracy.</p>',l=F(),d=C("div"),y=C("div"),L=C("button"),L.textContent="View all",O=F(),P=C("button"),P.innerHTML=`<svg class="w-3 h-3" xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="none"><path d="M2.63452 7.50001L13.6345 7.5M8.13452 13V2" stroke="currentColor" stroke-width="2" stroke-linecap="round"></path></svg>
                    Add training data`,q=F(),_=C("table"),p=C("thead"),g=C("tr");for(let ee=0;ee<De.length;ee+=1)De[ee].c();w=F(),D=C("tbody");for(let ee=0;ee<Ee.length;ee+=1)Ee[ee].c();A=F(),x=C("div"),u=C("div"),f=C("p"),f.textContent="Showing:",k=F(),T=C("div"),S=C("span"),H=ge(j),I=ge(" - "),J=ge(W),Oe=F(),ae=C("p"),ae.textContent=`of ${o[7].length}`,rt=F(),nt=C("div"),Ge=C("div"),Ue=C("button"),Ue.innerHTML=`<svg class="w-3 h-3" xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" viewBox="0 0 16 16"><path fill-rule="evenodd" d="M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z"></path></svg>
                    Prev`,ht=F(),be=C("button"),be.innerHTML=`Next
                    <svg class="w-3 h-3" xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" viewBox="0 0 16 16"><path fill-rule="evenodd" d="M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z"></path></svg>`,ft=F(),Te&&Te.c(),Qe=ze(),m(L,"class","py-2 px-3 inline-flex justify-center items-center gap-2 rounded-md border font-medium bg-white text-gray-700 shadow-sm align-middle hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-white focus:ring-blue-600 transition-all text-sm dark:bg-slate-900 dark:hover:bg-slate-800 dark:border-gray-700 dark:text-gray-400 dark:hover:text-white dark:focus:ring-offset-gray-800"),m(P,"class","py-2 px-3 inline-flex justify-center items-center gap-2 rounded-md border border-transparent font-semibold bg-blue-500 text-white hover:bg-blue-600 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2 transition-all text-sm dark:focus:ring-offset-gray-800"),m(y,"class","inline-flex gap-x-2"),m(a,"class","px-6 py-4 grid gap-3 md:flex md:justify-between md:items-center border-b border-gray-200 dark:border-gray-700"),m(p,"class","bg-gray-50 dark:bg-slate-800"),m(D,"class","divide-y divide-gray-200 dark:divide-gray-700"),m(_,"class","min-w-full divide-y divide-gray-200 dark:divide-gray-700"),m(f,"class","text-sm text-gray-600 dark:text-gray-400"),m(S,"class","py-2 px-3 pr-9 block w-full border-gray-200 rounded-md text-sm focus:border-blue-500 focus:ring-blue-500 dark:bg-slate-900 dark:border-gray-700 dark:text-gray-400"),m(T,"class","max-w-sm space-y-3"),m(ae,"class","text-sm text-gray-600 dark:text-gray-400"),m(u,"class","inline-flex items-center gap-x-2"),m(Ue,"type","button"),m(Ue,"class","py-2 px-3 inline-flex justify-center items-center gap-2 rounded-md border font-medium bg-white text-gray-700 shadow-sm align-middle hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-white focus:ring-blue-600 transition-all text-sm dark:bg-slate-900 dark:hover:bg-slate-800 dark:border-gray-700 dark:text-gray-400 dark:hover:text-white dark:focus:ring-offset-gray-800"),m(be,"type","button"),m(be,"class","py-2 px-3 inline-flex justify-center items-center gap-2 rounded-md border font-medium bg-white text-gray-700 shadow-sm align-middle hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-white focus:ring-blue-600 transition-all text-sm dark:bg-slate-900 dark:hover:bg-slate-800 dark:border-gray-700 dark:text-gray-400 dark:hover:text-white dark:focus:ring-offset-gray-800"),m(Ge,"class","inline-flex gap-x-2"),m(x,"class","px-6 py-4 grid gap-3 md:flex md:justify-between md:items-center border-t border-gray-200 dark:border-gray-700"),m(s,"class","bg-white border border-gray-200 rounded-xl shadow-sm overflow-hidden dark:bg-slate-900 dark:border-gray-700"),m(i,"class","p-1.5 min-w-full inline-block align-middle"),m(r,"class","-m-1.5 overflow-x-auto"),m(t,"class","flex flex-col"),m(n,"class","max-w-[85rem] px-4 py-10 sm:px-6 lg:px-8 lg:py-14 mx-auto")},m(ee,He){qe&&qe.m(ee,He),N(ee,e,He),N(ee,n,He),v(n,t),v(t,r),v(r,i),v(i,s),v(s,a),v(a,c),v(a,l),v(a,d),v(d,y),v(y,L),v(y,O),v(y,P),v(s,q),v(s,_),v(_,p),v(p,g);for(let oe=0;oe<De.length;oe+=1)De[oe]&&De[oe].m(g,null);v(_,w),v(_,D);for(let oe=0;oe<Ee.length;oe+=1)Ee[oe]&&Ee[oe].m(D,null);v(s,A),v(s,x),v(x,u),v(u,f),v(u,k),v(u,T),v(T,S),v(S,H),v(S,I),v(S,J),v(u,Oe),v(u,ae),v(x,rt),v(x,nt),v(nt,Ge),v(Ge,Ue),v(Ge,ht),v(Ge,be),N(ee,ft,He),Te&&Te.m(ee,He),N(ee,Qe,He),yt=!0,Bt||(Nt=[Le(L,"click",o[11]),Le(P,"click",o[12]),Le(Ue,"click",o[9]),Le(be,"click",o[10])],Bt=!0)},p(ee,[He]){if(ee[6]?qe?(qe.p(ee,He),He&64&&E(qe,1)):(qe=Er(ee),qe.c(),E(qe,1),qe.m(e.parentNode,e)):qe&&(je(),M(qe,1,1,()=>{qe=null}),Pe()),He&256){bt=xe(ee[8]);let oe;for(oe=0;oe<bt.length;oe+=1){const wt=Lr(ee,bt,oe);De[oe]?De[oe].p(wt,He):(De[oe]=Tr(wt),De[oe].c(),De[oe].m(g,null))}for(;oe<De.length;oe+=1)De[oe].d(1);De.length=bt.length}if(He&304){Ve=xe(ee[4]);let oe;for(oe=0;oe<Ve.length;oe+=1){const wt=Or(ee,Ve,oe);Ee[oe]?Ee[oe].p(wt,He):(Ee[oe]=Pr(wt),Ee[oe].c(),Ee[oe].m(D,null))}for(;oe<Ee.length;oe+=1)Ee[oe].d(1);Ee.length=Ve.length}(!yt||He&4)&&j!==(j=ee[2]+1+"")&&Ne(H,j),(!yt||He&8)&&W!==(W=Math.min(ee[3],ee[7].length)+"")&&Ne(J,W),ee[5]!=null?Te?(Te.p(ee,He),He&32&&E(Te,1)):(Te=qr(ee),Te.c(),E(Te,1),Te.m(Qe.parentNode,Qe)):Te&&(je(),M(Te,1,1,()=>{Te=null}),Pe())},i(ee){yt||(E(qe),E(Te),yt=!0)},o(ee){M(qe),M(Te),yt=!1},d(ee){ee&&(B(e),B(n),B(ft),B(Qe)),qe&&qe.d(ee),tt(De,ee),tt(Ee,ee),Te&&Te.d(ee),Bt=!1,gt(Nt)}}}function Bs(o,e,n){let{df:t}=e,{onTrain:r}=e,{removeTrainingData:i}=e,s=JSON.parse(t),a=s.length>0?Object.keys(s[0]):[],c=10,l=1,d=Math.ceil(s.length/c),y=(l-1)*c,L=l*c,O=s.slice(y,L);const P=()=>{l>1&&n(16,l--,l)},q=()=>{l<d&&n(16,l++,l)},_=()=>{n(16,l=1),n(15,c=s.length)};let p=null,g=!1;const w=()=>{n(6,g=!0)},D=()=>{n(6,g=!1)},A=(f,k)=>{n(5,p=f[k])},x=()=>{n(5,p=null)},u=()=>{p&&i(p)};return o.$$set=f=>{"df"in f&&n(14,t=f.df),"onTrain"in f&&n(0,r=f.onTrain),"removeTrainingData"in f&&n(1,i=f.removeTrainingData)},o.$$.update=()=>{o.$$.dirty&98304&&n(2,y=(l-1)*c),o.$$.dirty&98304&&n(3,L=l*c),o.$$.dirty&12&&n(4,O=s.slice(y,L)),o.$$.dirty&32768&&n(17,d=Math.ceil(s.length/c)),o.$$.dirty&196608&&console.log(l,d)},[r,i,y,L,O,p,g,s,a,P,q,_,w,D,t,c,l,d,A,x,u]}class Ns extends we{constructor(e){super(),_e(this,e,Bs,Hs,ye,{df:14,onTrain:0,removeTrainingData:1})}}function Is(o){let e;return{c(){e=C("div"),e.innerHTML='<div class="flex flex-auto flex-col justify-center items-center p-4 md:p-5"><div class="flex justify-center"><div class="animate-spin inline-block w-6 h-6 border-[3px] border-current border-t-transparent text-blue-600 rounded-full" role="status" aria-label="loading"><span class="sr-only">Loading...</span></div></div></div>',m(e,"class","min-h-[15rem] flex flex-col bg-white border shadow-sm rounded-xl dark:bg-gray-800 dark:border-gray-700 dark:shadow-slate-700/[.7]")},m(n,t){N(n,e,t)},p:K,i:K,o:K,d(n){n&&B(e)}}}function zs(o){let e,n,t,r;const i=[Gs,Vs],s=[];function a(c,l){return c[0].type==="df"?0:c[0].type==="error"?1:-1}return~(e=a(o))&&(n=s[e]=i[e](o)),{c(){n&&n.c(),t=ze()},m(c,l){~e&&s[e].m(c,l),N(c,t,l),r=!0},p(c,l){let d=e;e=a(c),e===d?~e&&s[e].p(c,l):(n&&(je(),M(s[d],1,1,()=>{s[d]=null}),Pe()),~e?(n=s[e],n?n.p(c,l):(n=s[e]=i[e](c),n.c()),E(n,1),n.m(t.parentNode,t)):n=null)},i(c){r||(E(n),r=!0)},o(c){M(n),r=!1},d(c){c&&B(t),~e&&s[e].d(c)}}}function Vs(o){let e,n;return e=new Ln({props:{message:o[0].error}}),{c(){Q(e.$$.fragment)},m(t,r){Z(e,t,r),n=!0},p(t,r){const i={};r&1&&(i.message=t[0].error),e.$set(i)},i(t){n||(E(e.$$.fragment,t),n=!0)},o(t){M(e.$$.fragment,t),n=!1},d(t){U(e,t)}}}function Gs(o){let e,n;return e=new Ns({props:{df:o[0].df,removeTrainingData:wo,onTrain:So}}),{c(){Q(e.$$.fragment)},m(t,r){Z(e,t,r),n=!0},p(t,r){const i={};r&1&&(i.df=t[0].df),e.$set(i)},i(t){n||(E(e.$$.fragment,t),n=!0)},o(t){M(e.$$.fragment,t),n=!1},d(t){U(e,t)}}}function Zs(o){let e,n,t,r,i;const s=[zs,Is],a=[];function c(l,d){return l[0]!==null?0:1}return t=c(o),r=a[t]=s[t](o),{c(){e=C("div"),n=C("div"),r.c(),m(n,"class","py-10 lg:py-14"),m(e,"class","relative h-screen w-full lg:pl-64")},m(l,d){N(l,e,d),v(e,n),a[t].m(n,null),i=!0},p(l,[d]){let y=t;t=c(l),t===y?a[t].p(l,d):(je(),M(a[y],1,1,()=>{a[y]=null}),Pe(),r=a[t],r?r.p(l,d):(r=a[t]=s[t](l),r.c()),E(r,1),r.m(n,null))},i(l){i||(E(r),i=!0)},o(l){M(r),i=!1},d(l){l&&B(e),a[t].d()}}}function Us(o,e,n){let t;return et(o,cn,r=>n(0,t=r)),[t]}class Qs extends we{constructor(e){super(),_e(this,e,Us,Zs,ye,{})}}function Ws(o){let e;return{c(){e=C("body"),e.innerHTML=`<div class="max-w-[50rem] flex flex-col mx-auto size-full"><header class="mb-auto flex justify-center z-50 w-full py-4"><nav class="px-4 sm:px-6 lg:px-8" aria-label="Global"><span class="flex-none text-xl font-semibold sm:text-3xl dark:text-white">Vanna.AI</span></nav></header> <div class="text-center py-10 px-4 sm:px-6 lg:px-8"><h1 class="block text-7xl font-bold text-gray-800 sm:text-9xl dark:text-white">No Training Data</h1> <h1 class="block text-2xl font-bold text-white">Did you read the docs?</h1> <p class="mt-3 text-gray-600 dark:text-gray-400">Oops, something went wrong.</p> <p class="text-gray-600 dark:text-gray-400">You need some training data before you can use Vanna</p> <div class="mt-5 flex flex-col justify-center items-center gap-2 sm:flex-row sm:gap-3"><a class="w-full sm:w-auto py-3 px-4 inline-flex justify-center items-center gap-x-2 text-sm font-semibold rounded-lg border border-transparent bg-blue-600 text-white hover:bg-blue-700 disabled:opacity-50 disabled:pointer-events-none dark:focus:outline-none dark:focus:ring-1 dark:focus:ring-gray-600" href="https://github.com/htmlstreamofficial/preline/tree/main/examples/html" target="_blank"><svg class="flex-shrink-0 size-4" xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" viewBox="0 0 16 16"><path d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.012 8.012 0 0 0 16 8c0-4.42-3.58-8-8-8z"></path></svg>
            Get the source code</a> <a class="w-full sm:w-auto py-3 px-4 inline-flex justify-center items-center gap-x-2 text-sm font-semibold rounded-lg border border-transparent text-blue-600 hover:text-blue-800 disabled:opacity-50 disabled:pointer-events-none dark:text-blue-500 dark:hover:text-blue-400 dark:focus:outline-none dark:focus:ring-1 dark:focus:ring-gray-600" href="../examples.html"><svg class="flex-shrink-0 size-4" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m15 18-6-6 6-6"></path></svg>
            Back to examples</a></div></div> <footer class="mt-auto text-center py-5"><div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8"><p class="text-sm text-gray-500">© All Rights Reserved. 2022.</p></div></footer></div>`,m(e,"class","flex h-full")},m(n,t){N(n,e,t)},p:K,i:K,o:K,d(n){n&&B(e)}}}class Fs extends we{constructor(e){super(),_e(this,e,null,Ws,ye,{})}}function Js(o){let e,n;return e=new Fs({}),{c(){Q(e.$$.fragment)},m(t,r){Z(e,t,r),n=!0},i(t){n||(E(e.$$.fragment,t),n=!0)},o(t){M(e.$$.fragment,t),n=!1},d(t){U(e,t)}}}function Ys(o){let e,n;return e=new Qs({}),{c(){Q(e.$$.fragment)},m(t,r){Z(e,t,r),n=!0},i(t){n||(E(e.$$.fragment,t),n=!0)},o(t){M(e.$$.fragment,t),n=!1},d(t){U(e,t)}}}function Ks(o){let e,n;return e=new Cs({}),{c(){Q(e.$$.fragment)},m(t,r){Z(e,t,r),n=!0},i(t){n||(E(e.$$.fragment,t),n=!0)},o(t){M(e.$$.fragment,t),n=!1},d(t){U(e,t)}}}function Xs(o){let e,n,t,r,i,s;n=new Mo({});const a=[Ks,Ys,Js],c=[];function l(d,y){return d[0]==="chat"?0:d[0]==="training-data"?1:d[0]==="no-training-data"?2:-1}return~(r=l(o))&&(i=c[r]=a[r](o)),{c(){e=C("main"),Q(n.$$.fragment),t=F(),i&&i.c()},m(d,y){N(d,e,y),Z(n,e,null),v(e,t),~r&&c[r].m(e,null),s=!0},p(d,[y]){let L=r;r=l(d),r!==L&&(i&&(je(),M(c[L],1,1,()=>{c[L]=null}),Pe()),~r?(i=c[r],i||(i=c[r]=a[r](d),i.c()),E(i,1),i.m(e,null)):i=null)},i(d){s||(E(n.$$.fragment,d),E(i),s=!0)},o(d){M(n.$$.fragment,d),M(i),s=!1},d(d){d&&B(e),U(n),~r&&c[r].d()}}}function el(o,e,n){let t;return et(o,Wt,r=>n(0,t=r)),Rr(async()=>{vo(),bo(),new URL(window.location.href).hash.slice(1)==="training-data"?Nr():Ir()}),[t]}class tl extends we{constructor(e){super(),_e(this,e,el,Xs,ye,{})}}new tl({target:document.getElementById("app")});
'''