@baishuyun/chat-sdk 0.0.12 → 0.0.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,663 @@
1
+ (function(Gr,jo){typeof exports=="object"&&typeof module!="undefined"?jo(exports):typeof define=="function"&&define.amd?define(["exports"],jo):(Gr=typeof globalThis!="undefined"?globalThis:Gr||self,jo(Gr["bs-chat-sdk"]={}))})(this,function(Gr){"use strict";var Fpe=Object.defineProperty;var zpe=(Gr,jo,Jf)=>jo in Gr?Fpe(Gr,jo,{enumerable:!0,configurable:!0,writable:!0,value:Jf}):Gr[jo]=Jf;var Ge=(Gr,jo,Jf)=>zpe(Gr,typeof jo!="symbol"?jo+"":jo,Jf);var eO,tO,nO,rO,N4;var jo=document.createElement("style");jo.textContent=`/*! tailwindcss v4.1.18 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-pan-x:initial;--tw-pan-y:initial;--tw-pinch-zoom:initial;--tw-space-y-reverse:0;--tw-border-style:solid;--tw-gradient-position:initial;--tw-gradient-from:#0000;--tw-gradient-via:#0000;--tw-gradient-to:#0000;--tw-gradient-stops:initial;--tw-gradient-via-stops:initial;--tw-gradient-from-position:0%;--tw-gradient-via-position:50%;--tw-gradient-to-position:100%;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-duration:initial;--tw-ease:initial;--tw-content:"";--tw-space-x-reverse:0;--tw-animation-delay:0s;--tw-animation-direction:normal;--tw-animation-duration:initial;--tw-animation-fill-mode:none;--tw-animation-iteration-count:1;--tw-enter-blur:0;--tw-enter-opacity:1;--tw-enter-rotate:0;--tw-enter-scale:1;--tw-enter-translate-x:0;--tw-enter-translate-y:0;--tw-exit-blur:0;--tw-exit-opacity:1;--tw-exit-rotate:0;--tw-exit-scale:1;--tw-exit-translate-x:0;--tw-exit-translate-y:0}}}@layer theme{:root,:host{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-green-500:oklch(72.3% .219 149.579);--color-gray-50:oklch(98.5% .002 247.839);--color-gray-200:oklch(92.8% .006 264.531);--color-gray-500:oklch(55.1% .027 264.364);--color-gray-600:oklch(44.6% .03 256.802);--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-sm:24rem;--container-lg:32rem;--container-4xl:56rem;--text-xs:.75rem;--text-xs--line-height:calc(1/.75);--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--text-base:1rem;--text-base--line-height: 1.5 ;--text-lg:1.125rem;--text-lg--line-height:calc(1.75/1.125);--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--tracking-tight:-.025em;--tracking-widest:.1em;--leading-normal:1.5;--ease-out:cubic-bezier(0,0,.2,1);--ease-in-out:cubic-bezier(.4,0,.2,1);--animate-spin:spin 1s linear infinite;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono);--radius:.625rem;--tw-space-y-reverse:0;--tw-border-style:solid;--tw-shadow:0 0 #0000;--tw-inset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-translate-x:0;--tw-translate-y:0;--tw-animation-delay:0s;--tw-animation-direction:normal;--tw-animation-fill-mode:none;--tw-animation-iteration-count:1;--tw-enter-blur:0;--tw-enter-opacity:1;--tw-enter-rotate:0;--tw-enter-scale:1;--tw-enter-translate-x:0;--tw-enter-translate-y:0;--tw-exit-blur:0;--tw-exit-opacity:1;--tw-exit-rotate:0;--tw-exit-scale:1;--tw-exit-translate-x:0;--tw-exit-translate-y:0;--background:oklch(100% 0 0);--foreground:oklch(12.9% .042 264.695);--card:oklch(100% 0 0);--card-foreground:oklch(12.9% .042 264.695);--popover:oklch(100% 0 0);--popover-foreground:oklch(12.9% .042 264.695);--primary:oklch(20.8% .042 265.755);--primary-foreground:oklch(98.4% .003 247.858);--secondary:oklch(96.8% .007 247.896);--secondary-foreground:oklch(20.8% .042 265.755);--muted:oklch(96.8% .007 247.896);--muted-foreground:oklch(55.4% .046 257.417);--accent:oklch(96.8% .007 247.896);--accent-foreground:oklch(20.8% .042 265.755);--destructive:oklch(57.7% .245 27.325);--border:oklch(92.9% .013 255.508);--input:oklch(92.9% .013 255.508);--ring:oklch(70.4% .04 256.788);--chart-1:oklch(64.6% .222 41.116);--chart-2:oklch(60% .118 184.704);--chart-3:oklch(39.8% .07 227.392);--chart-4:oklch(82.8% .189 84.429);--chart-5:oklch(76.9% .188 70.08);--sidebar:oklch(98.4% .003 247.858);--sidebar-foreground:oklch(12.9% .042 264.695);--sidebar-primary:oklch(20.8% .042 265.755);--sidebar-primary-foreground:oklch(98.4% .003 247.858);--sidebar-accent:oklch(96.8% .007 247.896);--sidebar-accent-foreground:oklch(20.8% .042 265.755);--sidebar-border:oklch(92.9% .013 255.508);--sidebar-ring:oklch(70.4% .04 256.788)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}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;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}*{border-color:var(--border);outline-color:#90a1b980}@supports (color:color-mix(in lab,red,red)){*{outline-color:color-mix(in oklab,var(--ring)50%,transparent)}}body{background-color:var(--background);color:var(--foreground)}html{font-size:14px}}@layer components;@layer utilities{.pointer-events-auto{pointer-events:auto}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.inset-0{inset:calc(var(--spacing)*0)}.inset-x-0{inset-inline:calc(var(--spacing)*0)}.-top-4{top:calc(var(--spacing)*-4)}.-top-\\[6px\\]{top:-6px}.top-0\\.5{top:calc(var(--spacing)*.5)}.top-1\\/2{top:50%}.top-\\[3px\\]{top:3px}.top-\\[8px\\]{top:8px}.top-\\[50\\%\\]{top:50%}.top-full{top:100%}.-right-\\[6px\\]{right:-6px}.right-0{right:calc(var(--spacing)*0)}.right-0\\.5{right:calc(var(--spacing)*.5)}.right-2{right:calc(var(--spacing)*2)}.bottom-0{bottom:calc(var(--spacing)*0)}.bottom-\\[30px\\]{bottom:30px}.-left-4{left:calc(var(--spacing)*-4)}.-left-\\[4px\\]{left:-4px}.left-0{left:calc(var(--spacing)*0)}.left-1\\/2{left:50%}.left-2{left:calc(var(--spacing)*2)}.left-\\[50\\%\\]{left:50%}.z-10{z-index:10}.z-50{z-index:50}.z-\\[5\\]{z-index:5}.order-first{order:-9999}.order-last{order:9999}.container{width:100%}@media (min-width:40rem){.container{max-width:40rem}}@media (min-width:48rem){.container{max-width:48rem}}@media (min-width:64rem){.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:96rem){.container{max-width:96rem}}.m-64{margin:calc(var(--spacing)*64)}.m-96{margin:calc(var(--spacing)*96)}.m-128{margin:calc(var(--spacing)*128)}.m-160{margin:calc(var(--spacing)*160)}.m-256{margin:calc(var(--spacing)*256)}.m-288{margin:calc(var(--spacing)*288)}.m-320{margin:calc(var(--spacing)*320)}.m-640{margin:calc(var(--spacing)*640)}.m-768{margin:calc(var(--spacing)*768)}.m-\\[20px\\]{margin:20px}.-mx-1{margin-inline:calc(var(--spacing)*-1)}.mx-\\[12px\\]{margin-inline:12px}.mx-auto{margin-inline:auto}.my-1{margin-block:calc(var(--spacing)*1)}.my-4{margin-block:calc(var(--spacing)*4)}.prose{color:var(--tw-prose-body);max-width:65ch}.prose :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-lead);margin-top:1.2em;margin-bottom:1.2em;font-size:1.25em;line-height:1.6}.prose :where(a):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-links);font-weight:500;text-decoration:underline}.prose :where(strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-bold);font-weight:600}.prose :where(a strong):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(blockquote strong):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(thead th strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em;padding-inline-start:1.625em;list-style-type:decimal}.prose :where(ol[type=A]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=A s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=I]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type=I s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type="1"]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:decimal}.prose :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em;padding-inline-start:1.625em;list-style-type:disc}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{color:var(--tw-prose-counters);font-weight:400}.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{color:var(--tw-prose-bullets)}.prose :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);margin-top:1.25em;font-weight:600}.prose :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){border-color:var(--tw-prose-hr);border-top-width:1px;margin-top:3em;margin-bottom:3em}.prose :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-quotes);border-inline-start-width:.25rem;border-inline-start-color:var(--tw-prose-quote-borders);quotes:"“""”""‘""’";margin-top:1.6em;margin-bottom:1.6em;padding-inline-start:1em;font-style:italic;font-weight:500}.prose :where(blockquote p:first-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:open-quote}.prose :where(blockquote p:last-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:close-quote}.prose :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);margin-top:0;margin-bottom:.888889em;font-size:2.25em;font-weight:800;line-height:1.11111}.prose :where(h1 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:900}.prose :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);margin-top:2em;margin-bottom:1em;font-size:1.5em;font-weight:700;line-height:1.33333}.prose :where(h2 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:800}.prose :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);margin-top:1.6em;margin-bottom:.6em;font-size:1.25em;font-weight:600;line-height:1.6}.prose :where(h3 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:700}.prose :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);margin-top:1.5em;margin-bottom:.5em;font-weight:600;line-height:1.5}.prose :where(h4 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:700}.prose :where(img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em;display:block}.prose :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-kbd);box-shadow:0 0 0 1px var(--tw-prose-kbd-shadows),0 3px 0 var(--tw-prose-kbd-shadows);padding-top:.1875em;padding-inline-end:.375em;padding-bottom:.1875em;border-radius:.3125rem;padding-inline-start:.375em;font-family:inherit;font-size:.875em;font-weight:500}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-code);font-size:.875em;font-weight:600}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):before,.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:"\`"}.prose :where(a code):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(h1 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.875em}.prose :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.9em}.prose :where(h4 code):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(blockquote code):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(thead th code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-pre-code);background-color:var(--tw-prose-pre-bg);padding-top:.857143em;padding-inline-end:1.14286em;padding-bottom:.857143em;border-radius:.375rem;margin-top:1.71429em;margin-bottom:1.71429em;padding-inline-start:1.14286em;font-size:.875em;font-weight:400;line-height:1.71429;overflow-x:auto}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:inherit;color:inherit;font-size:inherit;font-family:inherit;line-height:inherit;background-color:#0000;border-width:0;border-radius:0;padding:0}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):before,.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:none}.prose :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){table-layout:auto;width:100%;margin-top:2em;margin-bottom:2em;font-size:.875em;line-height:1.71429}.prose :where(thead):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-th-borders)}.prose :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);vertical-align:bottom;padding-inline-end:.571429em;padding-bottom:.571429em;padding-inline-start:.571429em;font-weight:600}.prose :where(tbody tr):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-td-borders)}.prose :where(tbody tr:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:0}.prose :where(tbody td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:baseline}.prose :where(tfoot):not(:where([class~=not-prose],[class~=not-prose] *)){border-top-width:1px;border-top-color:var(--tw-prose-th-borders)}.prose :where(tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:top}.prose :where(th,td):not(:where([class~=not-prose],[class~=not-prose] *)){text-align:start}.prose :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-captions);margin-top:.857143em;font-size:.875em;line-height:1.42857}.prose{--tw-prose-body:oklch(37.3% .034 259.733);--tw-prose-headings:oklch(21% .034 264.665);--tw-prose-lead:oklch(44.6% .03 256.802);--tw-prose-links:oklch(21% .034 264.665);--tw-prose-bold:oklch(21% .034 264.665);--tw-prose-counters:oklch(55.1% .027 264.364);--tw-prose-bullets:oklch(87.2% .01 258.338);--tw-prose-hr:oklch(92.8% .006 264.531);--tw-prose-quotes:oklch(21% .034 264.665);--tw-prose-quote-borders:oklch(92.8% .006 264.531);--tw-prose-captions:oklch(55.1% .027 264.364);--tw-prose-kbd:oklch(21% .034 264.665);--tw-prose-kbd-shadows:oklab(21% -.00316127 -.0338527/.1);--tw-prose-code:oklch(21% .034 264.665);--tw-prose-pre-code:oklch(92.8% .006 264.531);--tw-prose-pre-bg:oklch(27.8% .033 256.848);--tw-prose-th-borders:oklch(87.2% .01 258.338);--tw-prose-td-borders:oklch(92.8% .006 264.531);--tw-prose-invert-body:oklch(87.2% .01 258.338);--tw-prose-invert-headings:#fff;--tw-prose-invert-lead:oklch(70.7% .022 261.325);--tw-prose-invert-links:#fff;--tw-prose-invert-bold:#fff;--tw-prose-invert-counters:oklch(70.7% .022 261.325);--tw-prose-invert-bullets:oklch(44.6% .03 256.802);--tw-prose-invert-hr:oklch(37.3% .034 259.733);--tw-prose-invert-quotes:oklch(96.7% .003 264.542);--tw-prose-invert-quote-borders:oklch(37.3% .034 259.733);--tw-prose-invert-captions:oklch(70.7% .022 261.325);--tw-prose-invert-kbd:#fff;--tw-prose-invert-kbd-shadows:#ffffff1a;--tw-prose-invert-code:#fff;--tw-prose-invert-pre-code:oklch(87.2% .01 258.338);--tw-prose-invert-pre-bg:#00000080;--tw-prose-invert-th-borders:oklch(44.6% .03 256.802);--tw-prose-invert-td-borders:oklch(37.3% .034 259.733);font-size:1rem;line-height:1.75}.prose :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;margin-bottom:.5em}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.375em}.prose :where(.prose>ul>li p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(.prose>ul>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ul>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}.prose :where(.prose>ol>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ol>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}.prose :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;padding-inline-start:1.625em}.prose :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.571429em;padding-inline-end:.571429em;padding-bottom:.571429em;padding-inline-start:.571429em}.prose :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(.prose>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(.prose>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0}.mt-2{margin-top:calc(var(--spacing)*2)}.mt-\\[2px\\]{margin-top:2px}.mt-\\[4px\\]{margin-top:4px}.mt-\\[20px\\]{margin-top:20px}.mr-\\[10px\\]{margin-right:10px}.mb-2{margin-bottom:calc(var(--spacing)*2)}.mb-\\[10px\\]{margin-bottom:10px}.ml-\\[16px\\]{margin-left:16px}.ml-auto{margin-left:auto}.box-border{box-sizing:border-box}.block{display:block}.contents{display:contents}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline-block{display:inline-block}.inline-flex{display:inline-flex}.table{display:table}.field-sizing-content{field-sizing:content}.field-sizing-fixed{field-sizing:fixed}.aspect-square{aspect-ratio:1}.size-0\\.5{width:calc(var(--spacing)*.5);height:calc(var(--spacing)*.5)}.size-4{width:calc(var(--spacing)*4);height:calc(var(--spacing)*4)}.size-6{width:calc(var(--spacing)*6);height:calc(var(--spacing)*6)}.size-8{width:calc(var(--spacing)*8);height:calc(var(--spacing)*8)}.size-16{width:calc(var(--spacing)*16);height:calc(var(--spacing)*16)}.size-\\[30px\\]{width:30px;height:30px}.size-\\[36px\\]{width:36px;height:36px}.size-full{width:100%;height:100%}.h-2{height:calc(var(--spacing)*2)}.h-3\\.5{height:calc(var(--spacing)*3.5)}.h-4{height:calc(var(--spacing)*4)}.h-5{height:calc(var(--spacing)*5)}.h-6{height:calc(var(--spacing)*6)}.h-8{height:calc(var(--spacing)*8)}.h-9{height:calc(var(--spacing)*9)}.h-10{height:calc(var(--spacing)*10)}.h-\\[1px\\]{height:1px}.h-\\[2px\\]{height:2px}.h-\\[5px\\]{height:5px}.h-\\[8px\\]{height:8px}.h-\\[16px\\]{height:16px}.h-\\[24px\\]{height:24px}.h-\\[26px\\]{height:26px}.h-\\[30px\\]{height:30px}.h-\\[31px\\]{height:31px}.h-\\[32px\\]{height:32px}.h-\\[34px\\]{height:34px}.h-\\[36px\\]{height:36px}.h-\\[40px\\]{height:40px}.h-\\[52px\\]{height:52px}.h-\\[56px\\]{height:56px}.h-\\[calc\\(100\\%-62px\\)\\]{height:calc(100% - 62px)}.h-\\[calc\\(100\\%-90px\\)\\]{height:calc(100% - 90px)}.h-\\[var\\(--radix-select-trigger-height\\)\\]{height:var(--radix-select-trigger-height)}.h-auto{height:auto}.h-full{height:100%}.h-px{height:1px}.max-h-\\[--radix-select-content-available-height\\]{max-height:--radix-select-content-available-height}.max-h-\\[6lh\\]{max-height:6lh}.max-h-\\[var\\(--radix-dropdown-menu-content-available-height\\)\\]{max-height:var(--radix-dropdown-menu-content-available-height)}.min-h-0{min-height:calc(var(--spacing)*0)}.min-h-96{min-height:calc(var(--spacing)*96)}.min-h-\\[60px\\]{min-height:60px}.w-2{width:calc(var(--spacing)*2)}.w-3\\.5{width:calc(var(--spacing)*3.5)}.w-4{width:calc(var(--spacing)*4)}.w-5{width:calc(var(--spacing)*5)}.w-\\[2px\\]{width:2px}.w-\\[5px\\]{width:5px}.w-\\[8px\\]{width:8px}.w-\\[16px\\]{width:16px}.w-\\[24px\\]{width:24px}.w-\\[26px\\]{width:26px}.w-\\[36px\\]{width:36px}.w-\\[38px\\]{width:38px}.w-\\[40px\\]{width:40px}.w-\\[94px\\]{width:94px}.w-\\[100px\\]{width:100px}.w-\\[115px\\]{width:115px}.w-\\[160px\\]{width:160px}.w-\\[200px\\]{width:200px}.w-\\[300px\\]{width:300px}.w-\\[308px\\]{width:308px}.w-\\[328px\\]{width:328px}.w-\\[360px\\]{width:360px}.w-\\[380px\\]{width:380px}.w-\\[400px\\]{width:400px}.w-\\[420px\\]{width:420px}.w-\\[480px\\]{width:480px}.w-\\[500px\\]{width:500px}.w-\\[calc\\(100\\%-24px\\)\\]{width:calc(100% - 24px)}.w-\\[calc\\(100\\%-40px\\)\\]{width:calc(100% - 40px)}.w-auto{width:auto}.w-fit{width:fit-content}.w-full{width:100%}.max-w-4xl{max-width:var(--container-4xl)}.max-w-\\[40px\\]{max-width:40px}.max-w-\\[288px\\]{max-width:288px}.max-w-\\[350px\\]{max-width:350px}.max-w-\\[480px\\]{max-width:480px}.max-w-\\[calc\\(100\\%-2\\.5rem\\)\\]{max-width:calc(100% - 2.5rem)}.max-w-full{max-width:100%}.max-w-lg{max-width:var(--container-lg)}.max-w-sm{max-width:var(--container-sm)}.min-w-0{min-width:calc(var(--spacing)*0)}.min-w-\\[8rem\\]{min-width:8rem}.min-w-\\[100px\\]{min-width:100px}.min-w-\\[200px\\]{min-width:200px}.min-w-\\[var\\(--radix-select-trigger-width\\)\\]{min-width:var(--radix-select-trigger-width)}.flex-0{flex:0}.flex-1{flex:1}.flex-shrink-0,.shrink-0{flex-shrink:0}.flex-grow-1,.grow{flex-grow:1}.grow-0{flex-grow:0}.origin-\\[--radix-dropdown-menu-content-transform-origin\\]{transform-origin:--radix-dropdown-menu-content-transform-origin}.origin-\\[--radix-select-content-transform-origin\\]{transform-origin:--radix-select-content-transform-origin}.origin-\\[--radix-tooltip-content-transform-origin\\]{transform-origin:--radix-tooltip-content-transform-origin}.-translate-x-1\\/2{--tw-translate-x: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-x-\\[-50\\%\\]{--tw-translate-x:-50%;translate:var(--tw-translate-x)var(--tw-translate-y)}.-translate-y-1\\/2{--tw-translate-y: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-y-\\[-50\\%\\]{--tw-translate-y:-50%;translate:var(--tw-translate-x)var(--tw-translate-y)}.scale-0{--tw-scale-x:0%;--tw-scale-y:0%;--tw-scale-z:0%;scale:var(--tw-scale-x)var(--tw-scale-y)}.scale-100{--tw-scale-x:100%;--tw-scale-y:100%;--tw-scale-z:100%;scale:var(--tw-scale-x)var(--tw-scale-y)}.scale-\\[1\\.01\\]{scale:1.01}.-rotate-45{rotate:-45deg}.rotate-180{rotate:180deg}.transform{transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,)}.animate-in{animation:enter var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.animate-spin{animation:var(--animate-spin)}.cursor-default{cursor:default}.cursor-grab{cursor:grab}.cursor-grabbing{cursor:grabbing}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.cursor-text{cursor:text}.touch-pan-y{--tw-pan-y:pan-y;touch-action:var(--tw-pan-x,)var(--tw-pan-y,)var(--tw-pinch-zoom,)}.resize{resize:both}.resize-none{resize:none}.grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.flex-row{flex-direction:row}.flex-wrap{flex-wrap:wrap}.place-content-center{place-content:center}.content-center{align-content:center}.items-center{align-items:center}.items-end{align-items:flex-end}.items-start{align-items:flex-start}.\\!justify-between{justify-content:space-between!important}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-start{justify-content:flex-start}.gap-0{gap:calc(var(--spacing)*0)}.gap-1{gap:calc(var(--spacing)*1)}.gap-1\\.5{gap:calc(var(--spacing)*1.5)}.gap-2{gap:calc(var(--spacing)*2)}.gap-2\\.5{gap:calc(var(--spacing)*2.5)}.gap-3{gap:calc(var(--spacing)*3)}.gap-4{gap:calc(var(--spacing)*4)}.gap-\\[2px\\]{gap:2px}.gap-\\[6px\\]{gap:6px}.gap-\\[8px\\]{gap:8px}.gap-\\[10px\\]{gap:10px}.gap-\\[12px\\]{gap:12px}.gap-\\[22px\\]{gap:22px}:where(.space-y-1\\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*1.5)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*1.5)*calc(1 - var(--tw-space-y-reverse)))}.self-start{align-self:flex-start}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-hidden{overflow:hidden}.overflow-visible{overflow:visible}.overflow-x-auto{overflow-x:auto}.overflow-x-hidden{overflow-x:hidden}.overflow-x-scroll{overflow-x:scroll}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.625rem}.rounded-\\[2px\\]{border-radius:2px}.rounded-\\[4px\\]{border-radius:4px}.rounded-\\[5px\\]{border-radius:5px}.rounded-\\[6px\\]{border-radius:6px}.rounded-\\[9\\.5px\\]{border-radius:9.5px}.rounded-\\[10px\\]{border-radius:10px}.rounded-\\[18px\\]{border-radius:18px}.rounded-\\[100px\\]{border-radius:100px}.rounded-\\[calc\\(var\\(--radius\\)-5px\\)\\]{border-radius:calc(var(--radius) - 5px)}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius)}.rounded-md{border-radius:calc(var(--radius) - 2px)}.rounded-none{border-radius:0}.rounded-sm{border-radius:calc(var(--radius) - 4px)}.rounded-xl{border-radius:calc(var(--radius) + 4px)}.border{border-style:var(--tw-border-style);border-width:1px}.border-0{border-style:var(--tw-border-style);border-width:0}.border-0\\!{border-style:var(--tw-border-style)!important;border-width:0!important}.border-2{border-style:var(--tw-border-style);border-width:2px}.border-t-0\\!{border-top-style:var(--tw-border-style)!important;border-top-width:0!important}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-none{--tw-border-style:none;border-style:none}.border-none\\!{--tw-border-style:none!important;border-style:none!important}.border-solid{--tw-border-style:solid;border-style:solid}.border-\\[\\#0265ff\\]{border-color:#0265ff}.border-\\[\\#E0E0E0\\]{border-color:#e0e0e0}.border-\\[\\#EFF0F6\\]{border-color:#eff0f6}.border-\\[\\#e0e0e0\\]{border-color:#e0e0e0}.border-\\[var\\(--e0e0e0\\,\\#E0E0E0\\)\\]{border-color:var(--e0e0e0,#e0e0e0)}.border-input{border-color:var(--input)}.border-primary{border-color:var(--primary)}.border-transparent{border-color:#0000}.\\!bg-\\[\\#E5E6EB\\]{background-color:#e5e6eb!important}.bg-\\[\\#2E60FF\\]{background-color:#2e60ff}.bg-\\[\\#0265FF\\],.bg-\\[\\#0265ff\\]{background-color:#0265ff}.bg-\\[\\#333\\]{background-color:#333}.bg-\\[\\#999\\]{background-color:#999}.bg-\\[\\#525867\\]{background-color:#525867}.bg-\\[\\#E0E0E0\\]{background-color:#e0e0e0}.bg-\\[\\#EFF0F6\\]{background-color:#eff0f6}.bg-\\[\\#F0F6FF\\]{background-color:#f0f6ff}.bg-\\[\\#F5F7FA\\]{background-color:#f5f7fa}.bg-\\[\\#f0f0f0\\]{background-color:#f0f0f0}.bg-\\[\\#fafafa\\]{background-color:#fafafa}.bg-\\[\\#fff\\]{background-color:#fff}.bg-background{background-color:var(--background)}.bg-black\\/30{background-color:#0000004d}@supports (color:color-mix(in lab,red,red)){.bg-black\\/30{background-color:color-mix(in oklab,var(--color-black)30%,transparent)}}.bg-black\\/50{background-color:#00000080}@supports (color:color-mix(in lab,red,red)){.bg-black\\/50{background-color:color-mix(in oklab,var(--color-black)50%,transparent)}}.bg-card{background-color:var(--card)}.bg-destructive{background-color:var(--destructive)}.bg-gray-200{background-color:var(--color-gray-200)}.bg-muted{background-color:var(--muted)}.bg-popover{background-color:var(--popover)}.bg-primary{background-color:var(--primary)}.bg-secondary{background-color:var(--secondary)}.bg-transparent{background-color:#0000}.bg-white{background-color:var(--color-white)}.bg-linear-to-t{--tw-gradient-position:to top}@supports (background-image:linear-gradient(in lab,red,red)){.bg-linear-to-t{--tw-gradient-position:to top in oklab}}.bg-linear-to-t{background-image:linear-gradient(var(--tw-gradient-stops))}.bg-gradient-to-b{--tw-gradient-position:to bottom in oklab;background-image:linear-gradient(var(--tw-gradient-stops))}.bg-gradient-to-l{--tw-gradient-position:to left in oklab;background-image:linear-gradient(var(--tw-gradient-stops))}.bg-gradient-to-r{--tw-gradient-position:to right in oklab;background-image:linear-gradient(var(--tw-gradient-stops))}.bg-\\[linear-gradient\\(180deg\\,\\#DBE9FF_0\\%\\,\\#E9FFFD_100\\%\\)\\]{background-image:linear-gradient(#dbe9ff,#e9fffd)}.from-\\[\\#84B4FF\\]{--tw-gradient-from:#84b4ff;--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.from-black\\/80{--tw-gradient-from:#000c}@supports (color:color-mix(in lab,red,red)){.from-black\\/80{--tw-gradient-from:color-mix(in oklab,var(--color-black)80%,transparent)}}.from-black\\/80{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.from-white{--tw-gradient-from:var(--color-white);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.via-white{--tw-gradient-via:var(--color-white);--tw-gradient-via-stops:var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-via)var(--tw-gradient-via-position),var(--tw-gradient-to)var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-via-stops)}.via-\\[63\\.57\\%\\]{--tw-gradient-via-position:63.57%}.to-\\[\\#B1FAFF\\]{--tw-gradient-to:#b1faff;--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-transparent{--tw-gradient-to:transparent;--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.bg-center{background-position:50%}.bg-no-repeat{background-repeat:no-repeat}.fill-\\[\\#333\\]{fill:#333}.fill-\\[\\#525867\\]{fill:#525867}.fill-current{fill:currentColor}.object-cover{object-fit:cover}.p-0{padding:calc(var(--spacing)*0)}.p-1{padding:calc(var(--spacing)*1)}.p-2\\.5{padding:calc(var(--spacing)*2.5)}.p-4{padding:calc(var(--spacing)*4)}.p-6{padding:calc(var(--spacing)*6)}.p-9{padding:calc(var(--spacing)*9)}.p-\\[1px\\]{padding:1px}.p-\\[2px\\]{padding:2px}.p-\\[4px\\]{padding:4px}.p-\\[10px\\]{padding:10px}.p-\\[12px\\]{padding:12px}.px-0{padding-inline:calc(var(--spacing)*0)}.px-1{padding-inline:calc(var(--spacing)*1)}.px-1\\.5{padding-inline:calc(var(--spacing)*1.5)}.px-2{padding-inline:calc(var(--spacing)*2)}.px-2\\.5{padding-inline:calc(var(--spacing)*2.5)}.px-3{padding-inline:calc(var(--spacing)*3)}.px-4{padding-inline:calc(var(--spacing)*4)}.px-5{padding-inline:calc(var(--spacing)*5)}.px-8{padding-inline:calc(var(--spacing)*8)}.px-\\[6px\\]{padding-inline:6px}.px-\\[10px\\]{padding-inline:10px}.px-\\[12px\\]{padding-inline:12px}.px-\\[16px\\]{padding-inline:16px}.px-\\[20px\\]{padding-inline:20px}.\\!py-\\[7px\\]{padding-block:7px!important}.py-0{padding-block:calc(var(--spacing)*0)}.py-0\\.5{padding-block:calc(var(--spacing)*.5)}.py-1{padding-block:calc(var(--spacing)*1)}.py-1\\.5{padding-block:calc(var(--spacing)*1.5)}.py-2{padding-block:calc(var(--spacing)*2)}.py-3{padding-block:calc(var(--spacing)*3)}.py-4{padding-block:calc(var(--spacing)*4)}.py-\\[6px\\]{padding-block:6px}.py-\\[7px\\]{padding-block:7px}.py-\\[8px\\]{padding-block:8px}.py-\\[10px\\]{padding-block:10px}.pt-0{padding-top:calc(var(--spacing)*0)}.pt-3{padding-top:calc(var(--spacing)*3)}.pt-6{padding-top:calc(var(--spacing)*6)}.pr-2{padding-right:calc(var(--spacing)*2)}.pr-3{padding-right:calc(var(--spacing)*3)}.pr-8{padding-right:calc(var(--spacing)*8)}.pb-0{padding-bottom:calc(var(--spacing)*0)}.pb-3{padding-bottom:calc(var(--spacing)*3)}.pb-\\[20px\\]{padding-bottom:20px}.pl-2{padding-left:calc(var(--spacing)*2)}.pl-3{padding-left:calc(var(--spacing)*3)}.pl-6{padding-left:calc(var(--spacing)*6)}.pl-8{padding-left:calc(var(--spacing)*8)}.pl-\\[36px\\]{padding-left:36px}.pl-\\[38px\\]{padding-left:38px}.text-center{text-align:center}.text-left{text-align:left}.text-right{text-align:right}.font-\\[\\'Alibaba_PuHuiTi_2\\.0\\:55_Regular\\'\\,sans-serif\\]{font-family:"Alibaba PuHuiTi 2.0:55 Regular",sans-serif}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\\[10px\\]{font-size:10px}.text-\\[12px\\]{font-size:12px}.text-\\[13px\\]{font-size:13px}.text-\\[14px\\]{font-size:14px}.text-\\[16px\\]{font-size:16px}.text-\\[18px\\]{font-size:18px}.leading-5{--tw-leading:calc(var(--spacing)*5);line-height:calc(var(--spacing)*5)}.leading-\\[16px\\]{--tw-leading:16px;line-height:16px}.leading-\\[20px\\]{--tw-leading:20px;line-height:20px}.leading-\\[normal\\]{--tw-leading:normal;line-height:normal}.leading-none{--tw-leading:1;line-height:1}.leading-normal{--tw-leading:var(--leading-normal);line-height:var(--leading-normal)}.font-\\[400\\]{--tw-font-weight:400;font-weight:400}.font-\\[500\\]{--tw-font-weight:500;font-weight:500}.font-\\[700\\]{--tw-font-weight:700;font-weight:700}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-tight{--tw-tracking:var(--tracking-tight);letter-spacing:var(--tracking-tight)}.tracking-widest{--tw-tracking:var(--tracking-widest);letter-spacing:var(--tracking-widest)}.break-words{overflow-wrap:break-word}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.\\!text-\\[\\#666\\]{color:#666!important}.\\!text-\\[\\#12111\\]{color:#12111!important}.\\!text-\\[\\#121111\\]{color:#121111!important}.text-\\[\\#4D609F\\],.text-\\[\\#4d609f\\]{color:#4d609f}.text-\\[\\#6F829E\\],.text-\\[\\#6f829e\\]{color:#6f829e}.text-\\[\\#0265FF\\],.text-\\[\\#0265ff\\]{color:#0265ff}.text-\\[\\#666\\]{color:#666}.text-\\[\\#999\\]{color:#999}.text-\\[\\#12111\\]{color:#12111}.text-\\[\\#030303\\]{color:#030303}.text-\\[\\#121111\\]{color:#121111}.text-\\[\\#999999\\]{color:#999}.text-\\[\\#C2C2C2\\]{color:#c2c2c2}.text-\\[666\\]{color:666}.text-black{color:var(--color-black)}.text-card-foreground{color:var(--card-foreground)}.text-current{color:currentColor}.text-foreground{color:var(--foreground)}.text-gray-500{color:var(--color-gray-500)}.text-gray-600{color:var(--color-gray-600)}.text-green-500{color:var(--color-green-500)}.text-muted-foreground{color:var(--muted-foreground)}.text-popover-foreground{color:var(--popover-foreground)}.text-primary{color:var(--primary)}.text-primary-foreground{color:var(--primary-foreground)}.text-secondary-foreground{color:var(--secondary-foreground)}.text-white{color:var(--color-white)}.italic{font-style:italic}.underline{text-decoration-line:underline}.underline-offset-4{text-underline-offset:4px}.opacity-0{opacity:0}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.opacity-80{opacity:.8}.opacity-100{opacity:1}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-2xl{--tw-shadow:0 25px 50px -12px var(--tw-shadow-color,#00000040);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-\\[0px_0px_10px_0px_rgba\\(0\\,0\\,0\\,0\\.04\\)\\]{--tw-shadow:0px 0px 10px 0px var(--tw-shadow-color,#0000000a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-\\[0px_0px_10px_0px_rgba\\(0\\,0\\,0\\,0\\.06\\)\\]{--tw-shadow:0px 0px 10px 0px var(--tw-shadow-color,#0000000f);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-\\[0px_0px_14px_0px_rgba\\(0\\,0\\,0\\,0\\.1\\)\\]{--tw-shadow:0px 0px 14px 0px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a),0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a),0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-none{--tw-shadow:0 0 #0000;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-xs{--tw-shadow:0 1px 2px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-0{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(0px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-offset-background{--tw-ring-offset-color:var(--background)}.outline-hidden{--tw-outline-style:none;outline-style:none}@media (forced-colors:active){.outline-hidden{outline-offset:2px;outline:2px solid #0000}}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.blur-\\[7px\\]{--tw-blur:blur(7px);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-\\[color\\,box-shadow\\]{transition-property:color,box-shadow;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-shadow{transition-property:box-shadow;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-100{--tw-duration:.1s;transition-duration:.1s}.duration-200{--tw-duration:.2s;transition-duration:.2s}.ease-in-out{--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.ease-out{--tw-ease:var(--ease-out);transition-timing-function:var(--ease-out)}.will-change-scroll{will-change:scroll-position}.animate-in{--tw-enter-opacity:initial;--tw-enter-scale:initial;--tw-enter-rotate:initial;--tw-enter-translate-x:initial;--tw-enter-translate-y:initial;animation-name:enter;animation-duration:.15s}.outline-none{--tw-outline-style:none;outline-style:none}.select-none{-webkit-user-select:none;user-select:none}.\\[-ms-overflow-style\\:none\\]{-ms-overflow-style:none}.\\[scrollbar-width\\:none\\]{scrollbar-width:none}.duration-100{animation-duration:.1s}.duration-200{animation-duration:.2s}.ease-in-out{animation-timing-function:cubic-bezier(.4,0,.2,1)}.ease-out{animation-timing-function:cubic-bezier(0,0,.2,1)}.fade-in-0{--tw-enter-opacity:0}.zoom-in-95{--tw-enter-scale:.95}@media (hover:hover){.group-hover\\:text-\\[\\#0265FF\\]:is(:where(.group):hover *){color:#0265ff}.group-hover\\:opacity-100:is(:where(.group):hover *){opacity:1}}.group-has-\\[\\>input\\]\\/input-group\\:pt-2\\.5:is(:where(.group\\/input-group):has(>input) *){padding-top:calc(var(--spacing)*2.5)}.group-has-\\[\\>input\\]\\/input-group\\:pb-2\\.5:is(:where(.group\\/input-group):has(>input) *){padding-bottom:calc(var(--spacing)*2.5)}.group-data-\\[disabled\\=true\\]\\/input-group\\:opacity-50:is(:where(.group\\/input-group)[data-disabled=true] *){opacity:.5}.group-\\[\\.is-assistant\\]\\:bg-secondary:is(:where(.group).is-assistant *){background-color:var(--secondary)}.group-\\[\\.is-assistant\\]\\:text-foreground:is(:where(.group).is-assistant *){color:var(--foreground)}.group-\\[\\.is-user\\]\\:bg-primary:is(:where(.group).is-user *){background-color:var(--primary)}.group-\\[\\.is-user\\]\\:text-primary-foreground:is(:where(.group).is-user *){color:var(--primary-foreground)}.peer-disabled\\:cursor-not-allowed:is(:where(.peer):disabled~*){cursor:not-allowed}.peer-disabled\\:opacity-70:is(:where(.peer):disabled~*){opacity:.7}.file\\:border-0::file-selector-button{border-style:var(--tw-border-style);border-width:0}.file\\:bg-transparent::file-selector-button{background-color:#0000}.file\\:text-sm::file-selector-button{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.file\\:font-medium::file-selector-button{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.file\\:text-foreground::file-selector-button{color:var(--foreground)}.placeholder\\:text-\\[\\#999\\]::placeholder{color:#999}.placeholder\\:text-muted-foreground::placeholder{color:var(--muted-foreground)}.before\\:absolute:before{content:var(--tw-content);position:absolute}.before\\:inset-0:before{content:var(--tw-content);inset:calc(var(--spacing)*0)}.before\\:z-0:before{content:var(--tw-content);z-index:0}.before\\:bg-\\[linear-gradient\\(180deg\\,\\#267AFF_0\\%\\,\\#B2EEFF_100\\%\\)\\]:before{content:var(--tw-content);background-image:linear-gradient(#267aff,#b2eeff)}.before\\:opacity-0:before{content:var(--tw-content);opacity:0}.before\\:transition-opacity:before{content:var(--tw-content);transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.before\\:duration-200:before{content:var(--tw-content);--tw-duration:.2s;transition-duration:.2s}.before\\:ease-out:before{content:var(--tw-content);--tw-ease:var(--ease-out);transition-timing-function:var(--ease-out)}.before\\:content-\\[\\'\\'\\]:before{--tw-content:"";content:var(--tw-content)}.before\\:duration-200:before{content:var(--tw-content);animation-duration:.2s}.before\\:ease-out:before{content:var(--tw-content);animation-timing-function:cubic-bezier(0,0,.2,1)}.focus-within\\:border-border:focus-within{border-color:var(--border)}@media (hover:hover){.hover\\:border-\\[\\#0265FF\\]:hover,.hover\\:border-\\[\\#0265ff\\]:hover{border-color:#0265ff}.hover\\:border-\\[\\#E0E0E0\\]:hover,.hover\\:border-\\[\\#e0e0e0\\]:hover{border-color:#e0e0e0}.hover\\:border-transparent:hover{border-color:#0000}.hover\\:\\!bg-\\[\\#EFF0F6\\]:hover{background-color:#eff0f6!important}.hover\\:\\!bg-\\[\\#ffffff\\]:hover{background-color:#fff!important}.hover\\:bg-\\[\\#0265FF\\]:hover{background-color:#0265ff}.hover\\:bg-\\[\\#0265FF\\]\\/90:hover{background-color:#0265ffe6}.hover\\:bg-\\[\\#0265ff\\]\\/80:hover{background-color:#0265ffcc}.hover\\:bg-\\[\\#EFF0F6\\]:hover,.hover\\:bg-\\[\\#eff0f6\\]:hover{background-color:#eff0f6}.hover\\:bg-\\[\\#f0f0f0\\]:hover{background-color:#f0f0f0}.hover\\:bg-\\[\\#f5f9ff\\]:hover{background-color:#f5f9ff}.hover\\:bg-\\[\\#fafafa\\]:hover{background-color:#fafafa}.hover\\:bg-accent:hover{background-color:var(--accent)}.hover\\:bg-destructive\\/80:hover{background-color:#e40014cc}@supports (color:color-mix(in lab,red,red)){.hover\\:bg-destructive\\/80:hover{background-color:color-mix(in oklab,var(--destructive)80%,transparent)}}.hover\\:bg-destructive\\/90:hover{background-color:#e40014e6}@supports (color:color-mix(in lab,red,red)){.hover\\:bg-destructive\\/90:hover{background-color:color-mix(in oklab,var(--destructive)90%,transparent)}}.hover\\:bg-gray-50:hover{background-color:var(--color-gray-50)}.hover\\:bg-primary\\/80:hover{background-color:#0f172bcc}@supports (color:color-mix(in lab,red,red)){.hover\\:bg-primary\\/80:hover{background-color:color-mix(in oklab,var(--primary)80%,transparent)}}.hover\\:bg-primary\\/90:hover{background-color:#0f172be6}@supports (color:color-mix(in lab,red,red)){.hover\\:bg-primary\\/90:hover{background-color:color-mix(in oklab,var(--primary)90%,transparent)}}.hover\\:bg-secondary\\/80:hover{background-color:#f1f5f9cc}@supports (color:color-mix(in lab,red,red)){.hover\\:bg-secondary\\/80:hover{background-color:color-mix(in oklab,var(--secondary)80%,transparent)}}.hover\\:bg-white:hover{background-color:var(--color-white)}.hover\\:text-\\[\\#0265FF\\]:hover,.hover\\:text-\\[\\#0265ff\\]:hover{color:#0265ff}.hover\\:text-\\[\\#0265ff\\]\\/80:hover{color:#0265ffcc}.hover\\:text-\\[\\#333\\]:hover{color:#333}.hover\\:text-\\[\\#121111\\]:hover{color:#121111}.hover\\:text-accent-foreground:hover{color:var(--accent-foreground)}.hover\\:text-foreground:hover{color:var(--foreground)}.hover\\:text-white:hover{color:var(--color-white)}.hover\\:underline:hover{text-decoration-line:underline}.hover\\:opacity-70:hover{opacity:.7}.hover\\:opacity-90:hover{opacity:.9}.hover\\:shadow-\\[0px_14px_14px_0px_rgba\\(0\\,0\\,0\\,0\\.14\\)\\]:hover{--tw-shadow:0px 14px 14px 0px var(--tw-shadow-color,#00000024);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.hover\\:shadow-md:hover{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a),0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.hover\\:before\\:opacity-100:hover:before{content:var(--tw-content);opacity:1}}.focus\\:border-\\[\\#0265ff\\]:focus{border-color:#0265ff}.focus\\:bg-accent:focus{background-color:var(--accent)}.focus\\:text-accent-foreground:focus{color:var(--accent-foreground)}.focus\\:ring-1:focus{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(1px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus\\:ring-2:focus{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus\\:ring-ring:focus{--tw-ring-color:var(--ring)}.focus\\:ring-offset-2:focus{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}.focus\\:outline-none:focus{--tw-outline-style:none;outline-style:none}.focus-visible\\:ring-0:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(0px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-visible\\:ring-1:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(1px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-visible\\:ring-2:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-visible\\:ring-\\[\\#0265FF\\]:focus-visible{--tw-ring-color:#0265ff}.focus-visible\\:ring-ring:focus-visible{--tw-ring-color:var(--ring)}.focus-visible\\:ring-offset-0:focus-visible{--tw-ring-offset-width:0px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}.focus-visible\\:ring-offset-1:focus-visible{--tw-ring-offset-width:1px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}.focus-visible\\:ring-offset-2:focus-visible{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}.focus-visible\\:outline-none:focus-visible{--tw-outline-style:none;outline-style:none}.disabled\\:pointer-events-none:disabled{pointer-events:none}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:border-\\[\\#C2C2C2\\]:disabled{border-color:#c2c2c2}.disabled\\:bg-\\[\\#E5E6EB\\]:disabled{background-color:#e5e6eb}.disabled\\:bg-\\[\\#F0F0F0\\]:disabled{background-color:#f0f0f0}.disabled\\:text-white:disabled{color:var(--color-white)}.disabled\\:\\!opacity-100:disabled{opacity:1!important}.disabled\\:opacity-50:disabled{opacity:.5}.disabled\\:opacity-95:disabled{opacity:.95}.disabled\\:opacity-100:disabled{opacity:1}.has-\\[\\[data-slot\\=input-group-control\\]\\:focus-visible\\]\\:ring-1:has([data-slot=input-group-control]:focus-visible){--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(1px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.has-\\[\\[data-slot\\=input-group-control\\]\\:focus-visible\\]\\:ring-ring:has([data-slot=input-group-control]:focus-visible){--tw-ring-color:var(--ring)}.has-\\[\\[data-slot\\]\\[aria-invalid\\=true\\]\\]\\:border-destructive:has([data-slot][aria-invalid=true]){border-color:var(--destructive)}.has-\\[\\[data-slot\\]\\[aria-invalid\\=true\\]\\]\\:ring-destructive\\/20:has([data-slot][aria-invalid=true]){--tw-ring-color:#e4001433}@supports (color:color-mix(in lab,red,red)){.has-\\[\\[data-slot\\]\\[aria-invalid\\=true\\]\\]\\:ring-destructive\\/20:has([data-slot][aria-invalid=true]){--tw-ring-color:color-mix(in oklab,var(--destructive)20%,transparent)}}.has-\\[\\>\\[data-align\\=block-end\\]\\]\\:h-auto:has(>[data-align=block-end]){height:auto}.has-\\[\\>\\[data-align\\=block-end\\]\\]\\:flex-col:has(>[data-align=block-end]){flex-direction:column}.has-\\[\\>\\[data-align\\=block-start\\]\\]\\:h-auto:has(>[data-align=block-start]){height:auto}.has-\\[\\>\\[data-align\\=block-start\\]\\]\\:flex-col:has(>[data-align=block-start]){flex-direction:column}.has-\\[\\>button\\]\\:mr-\\[-0\\.4rem\\]:has(>button){margin-right:-.4rem}.has-\\[\\>button\\]\\:ml-\\[-0\\.45rem\\]:has(>button){margin-left:-.45rem}.has-\\[\\>kbd\\]\\:mr-\\[-0\\.35rem\\]:has(>kbd){margin-right:-.35rem}.has-\\[\\>kbd\\]\\:ml-\\[-0\\.35rem\\]:has(>kbd){margin-left:-.35rem}.has-\\[\\>svg\\]\\:p-0:has(>svg){padding:calc(var(--spacing)*0)}.has-\\[\\>svg\\]\\:px-2:has(>svg){padding-inline:calc(var(--spacing)*2)}.has-\\[\\>svg\\]\\:px-2\\.5:has(>svg){padding-inline:calc(var(--spacing)*2.5)}.has-\\[\\>textarea\\]\\:h-auto:has(>textarea){height:auto}.aria-expanded\\:bg-accent[aria-expanded=true]{background-color:var(--accent)}.aria-expanded\\:text-foreground[aria-expanded=true]{color:var(--foreground)}.data-\\[disabled\\]\\:pointer-events-none[data-disabled]{pointer-events:none}.data-\\[disabled\\]\\:opacity-50[data-disabled]{opacity:.5}.data-\\[placeholder\\]\\:text-muted-foreground[data-placeholder]{color:var(--muted-foreground)}.data-\\[side\\=bottom\\]\\:translate-y-1[data-side=bottom]{--tw-translate-y:calc(var(--spacing)*1);translate:var(--tw-translate-x)var(--tw-translate-y)}.data-\\[side\\=bottom\\]\\:slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y:calc(2*var(--spacing)*-1)}.data-\\[side\\=left\\]\\:-translate-x-1[data-side=left]{--tw-translate-x:calc(var(--spacing)*-1);translate:var(--tw-translate-x)var(--tw-translate-y)}.data-\\[side\\=left\\]\\:slide-in-from-right-2[data-side=left]{--tw-enter-translate-x:calc(2*var(--spacing))}.data-\\[side\\=right\\]\\:translate-x-1[data-side=right]{--tw-translate-x:calc(var(--spacing)*1);translate:var(--tw-translate-x)var(--tw-translate-y)}.data-\\[side\\=right\\]\\:slide-in-from-left-2[data-side=right]{--tw-enter-translate-x:calc(2*var(--spacing)*-1)}.data-\\[side\\=top\\]\\:-translate-y-1[data-side=top]{--tw-translate-y:calc(var(--spacing)*-1);translate:var(--tw-translate-x)var(--tw-translate-y)}.data-\\[side\\=top\\]\\:slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y:calc(2*var(--spacing))}.data-\\[state\\=active\\]\\:bg-background[data-state=active]{background-color:var(--background)}.data-\\[state\\=active\\]\\:text-foreground[data-state=active]{color:var(--foreground)}.data-\\[state\\=active\\]\\:shadow[data-state=active]{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.data-\\[state\\=checked\\]\\:border-\\[\\#0265FF\\][data-state=checked],.data-\\[state\\=checked\\]\\:border-\\[\\#0265ff\\][data-state=checked]{border-color:#0265ff}.data-\\[state\\=checked\\]\\:border-\\[\\#E0E0E0\\][data-state=checked]{border-color:#e0e0e0}.data-\\[state\\=checked\\]\\:bg-\\[\\#0265FF\\][data-state=checked],.data-\\[state\\=checked\\]\\:bg-\\[\\#0265ff\\][data-state=checked]{background-color:#0265ff}.data-\\[state\\=checked\\]\\:bg-primary[data-state=checked]{background-color:var(--primary)}.data-\\[state\\=checked\\]\\:bg-white[data-state=checked]{background-color:var(--color-white)}.data-\\[state\\=checked\\]\\:text-\\[\\#0265FF\\][data-state=checked]{color:#0265ff}.data-\\[state\\=checked\\]\\:text-primary-foreground[data-state=checked]{color:var(--primary-foreground)}.disabled\\:data-\\[state\\=checked\\]\\:border-\\[\\#C2C2C2\\]:disabled[data-state=checked]{border-color:#c2c2c2}.disabled\\:data-\\[state\\=checked\\]\\:bg-\\[\\#C2C2C2\\]:disabled[data-state=checked]{background-color:#c2c2c2}.data-\\[state\\=closed\\]\\:animate-out[data-state=closed]{animation:exit var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none);--tw-exit-opacity:initial;--tw-exit-scale:initial;--tw-exit-rotate:initial;--tw-exit-translate-x:initial;--tw-exit-translate-y:initial;animation-name:exit;animation-duration:.15s}.data-\\[state\\=closed\\]\\:fade-out-0[data-state=closed]{--tw-exit-opacity:0}.data-\\[state\\=closed\\]\\:slide-out-to-left-1\\/2[data-state=closed]{--tw-exit-translate-x: -50% }.data-\\[state\\=closed\\]\\:slide-out-to-top-\\[48\\%\\][data-state=closed]{--tw-exit-translate-y: -48% }.data-\\[state\\=closed\\]\\:zoom-out-95[data-state=closed]{--tw-exit-scale:.95}.data-\\[state\\=open\\]\\:animate-in[data-state=open]{animation:enter var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.data-\\[state\\=open\\]\\:bg-accent[data-state=open]{background-color:var(--accent)}.data-\\[state\\=open\\]\\:animate-in[data-state=open]{--tw-enter-opacity:initial;--tw-enter-scale:initial;--tw-enter-rotate:initial;--tw-enter-translate-x:initial;--tw-enter-translate-y:initial;animation-name:enter;animation-duration:.15s}.data-\\[state\\=open\\]\\:fade-in-0[data-state=open]{--tw-enter-opacity:0}.data-\\[state\\=open\\]\\:slide-in-from-left-1\\/2[data-state=open]{--tw-enter-translate-x: -50% }.data-\\[state\\=open\\]\\:slide-in-from-top-\\[48\\%\\][data-state=open]{--tw-enter-translate-y: -48% }.data-\\[state\\=open\\]\\:zoom-in-95[data-state=open]{--tw-enter-scale:.95}@media (min-width:40rem){.sm\\:max-w-\\[min\\(fit-content\\,80\\%\\)\\]{max-width:min(fit-content,80%)}.sm\\:flex-row{flex-direction:row}.sm\\:justify-end{justify-content:flex-end}.sm\\:gap-2{gap:calc(var(--spacing)*2)}:where(.sm\\:space-x-2>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing)*2)*var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing)*2)*calc(1 - var(--tw-space-x-reverse)))}.sm\\:rounded-lg{border-radius:var(--radius)}.sm\\:text-left{text-align:left}}@media (min-width:48rem){.md\\:px-4{padding-inline:calc(var(--spacing)*4)}.md\\:text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}}.dark\\:border-0:is(.dark *){border-style:var(--tw-border-style);border-width:0}.dark\\:border-transparent\\!:is(.dark *){border-color:#0000!important}.dark\\:bg-input\\/30:is(.dark *){background-color:#e2e8f04d}@supports (color:color-mix(in lab,red,red)){.dark\\:bg-input\\/30:is(.dark *){background-color:color-mix(in oklab,var(--input)30%,transparent)}}.dark\\:bg-transparent:is(.dark *){background-color:#0000}.dark\\:has-\\[\\[data-slot\\]\\[aria-invalid\\=true\\]\\]\\:ring-destructive\\/40:is(.dark *):has([data-slot][aria-invalid=true]){--tw-ring-color:#e4001466}@supports (color:color-mix(in lab,red,red)){.dark\\:has-\\[\\[data-slot\\]\\[aria-invalid\\=true\\]\\]\\:ring-destructive\\/40:is(.dark *):has([data-slot][aria-invalid=true]){--tw-ring-color:color-mix(in oklab,var(--destructive)40%,transparent)}}.\\[\\&_button\\:first-child\\]\\:rounded-bl-xl button:first-child{border-bottom-left-radius:calc(var(--radius) + 4px)}.\\[\\&_code\\]\\:whitespace-pre-wrap code{white-space:pre-wrap}.\\[\\&_pre\\]\\:max-w-full pre{max-width:100%}.\\[\\&_pre\\]\\:overflow-x-auto pre{overflow-x:auto}.\\[\\&_svg\\]\\:pointer-events-none svg{pointer-events:none}.\\[\\&_svg\\]\\:size-4 svg{width:calc(var(--spacing)*4);height:calc(var(--spacing)*4)}.\\[\\&_svg\\]\\:shrink-0 svg{flex-shrink:0}.\\[\\&_svg\\:not\\(\\[class\\*\\=\\'size-\\'\\]\\)\\]\\:size-4 svg:not([class*=size-]){width:calc(var(--spacing)*4);height:calc(var(--spacing)*4)}.\\[\\&\\:\\:-webkit-scrollbar\\]\\:hidden::-webkit-scrollbar{display:none}.\\[\\.border-b\\]\\:pb-3.border-b{padding-bottom:calc(var(--spacing)*3)}.\\[\\.border-t\\]\\:pt-3.border-t{padding-top:calc(var(--spacing)*3)}.\\[\\&\\>\\*\\:first-child\\]\\:mt-0>:first-child{margin-top:calc(var(--spacing)*0)}.\\[\\&\\>\\*\\:last-child\\]\\:mb-0>:last-child{margin-bottom:calc(var(--spacing)*0)}.\\[\\&\\>button\\]\\:hidden>button{display:none}.has-\\[\\>\\[data-align\\=block-end\\]\\]\\:\\[\\&\\>input\\]\\:pt-3:has(>[data-align=block-end])>input{padding-top:calc(var(--spacing)*3)}.has-\\[\\>\\[data-align\\=block-start\\]\\]\\:\\[\\&\\>input\\]\\:pb-3:has(>[data-align=block-start])>input{padding-bottom:calc(var(--spacing)*3)}.has-\\[\\>\\[data-align\\=inline-end\\]\\]\\:\\[\\&\\>input\\]\\:pr-2:has(>[data-align=inline-end])>input{padding-right:calc(var(--spacing)*2)}.has-\\[\\>\\[data-align\\=inline-start\\]\\]\\:\\[\\&\\>input\\]\\:pl-2:has(>[data-align=inline-start])>input{padding-left:calc(var(--spacing)*2)}.\\[\\&\\>kbd\\]\\:rounded-\\[calc\\(var\\(--radius\\)-5px\\)\\]>kbd{border-radius:calc(var(--radius) - 5px)}.\\[\\&\\>span\\]\\:line-clamp-1>span{-webkit-line-clamp:1;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.\\[\\&\\>svg\\]\\:size-4>svg{width:calc(var(--spacing)*4);height:calc(var(--spacing)*4)}.\\[\\&\\>svg\\]\\:shrink-0>svg{flex-shrink:0}.\\[\\&\\>svg\\:not\\(\\[class\\*\\=\\'size-\\'\\]\\)\\]\\:size-3\\.5>svg:not([class*=size-]){width:calc(var(--spacing)*3.5);height:calc(var(--spacing)*3.5)}.\\[\\&\\>svg\\:not\\(\\[class\\*\\=\\'size-\\'\\]\\)\\]\\:size-4>svg:not([class*=size-]){width:calc(var(--spacing)*4);height:calc(var(--spacing)*4)}}@property --tw-animation-delay{syntax:"*";inherits:false;initial-value:0s}@property --tw-animation-direction{syntax:"*";inherits:false;initial-value:normal}@property --tw-animation-duration{syntax:"*";inherits:false}@property --tw-animation-fill-mode{syntax:"*";inherits:false;initial-value:none}@property --tw-animation-iteration-count{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-blur{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-opacity{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-rotate{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-scale{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-blur{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-opacity{syntax:"*";inherits:false;initial-value:1}@property --tw-exit-rotate{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-scale{syntax:"*";inherits:false;initial-value:1}@property --tw-exit-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-translate-y{syntax:"*";inherits:false;initial-value:0}.dark{--background:oklch(12.9% .042 264.695);--foreground:oklch(98.4% .003 247.858);--card:oklch(20.8% .042 265.755);--card-foreground:oklch(98.4% .003 247.858);--popover:oklch(20.8% .042 265.755);--popover-foreground:oklch(98.4% .003 247.858);--primary:oklch(92.9% .013 255.508);--primary-foreground:oklch(20.8% .042 265.755);--secondary:oklch(27.9% .041 260.031);--secondary-foreground:oklch(98.4% .003 247.858);--muted:oklch(27.9% .041 260.031);--muted-foreground:oklch(70.4% .04 256.788);--accent:oklch(27.9% .041 260.031);--accent-foreground:#eff0f6;--destructive:oklch(70.4% .191 22.216);--border:oklch(100% 0 0/.1);--input:oklch(100% 0 0/.15);--ring:oklch(55.1% .027 264.364);--chart-1:oklch(48.8% .243 264.376);--chart-2:oklch(69.6% .17 162.48);--chart-3:oklch(76.9% .188 70.08);--chart-4:oklch(62.7% .265 303.9);--chart-5:oklch(64.5% .246 16.439);--sidebar:oklch(20.8% .042 265.755);--sidebar-foreground:oklch(98.4% .003 247.858);--sidebar-primary:oklch(48.8% .243 264.376);--sidebar-primary-foreground:oklch(98.4% .003 247.858);--sidebar-accent:oklch(27.9% .041 260.031);--sidebar-accent-foreground:oklch(98.4% .003 247.858);--sidebar-border:oklch(100% 0 0/.1);--sidebar-ring:oklch(55.1% .027 264.364)}.prose{--tw-prose-body:#121111}.scrollbar-hide::-webkit-scrollbar{display:none}.scrollbar-hide{-ms-overflow-style:none;scrollbar-width:none}::-webkit-scrollbar{width:8px;height:8px}::-webkit-scrollbar-thumb{background-color:#b5b5b5;border-radius:4px}::-webkit-scrollbar-track{background:0 0}::-webkit-scrollbar-button{width:0;height:0;display:none}@keyframes enter{0%{opacity:var(--tw-enter-opacity,1);transform:translate3d(var(--tw-enter-translate-x,0),var(--tw-enter-translate-y,0),0)scale3d(var(--tw-enter-scale,1),var(--tw-enter-scale,1),var(--tw-enter-scale,1))rotate(var(--tw-enter-rotate,0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity,1);transform:translate3d(var(--tw-exit-translate-x,0),var(--tw-exit-translate-y,0),0)scale3d(var(--tw-exit-scale,1),var(--tw-exit-scale,1),var(--tw-exit-scale,1))rotate(var(--tw-exit-rotate,0))}}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-pan-x{syntax:"*";inherits:false}@property --tw-pan-y{syntax:"*";inherits:false}@property --tw-pinch-zoom{syntax:"*";inherits:false}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-gradient-position{syntax:"*";inherits:false}@property --tw-gradient-from{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-via{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-to{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-stops{syntax:"*";inherits:false}@property --tw-gradient-via-stops{syntax:"*";inherits:false}@property --tw-gradient-from-position{syntax:"<length-percentage>";inherits:false;initial-value:0%}@property --tw-gradient-via-position{syntax:"<length-percentage>";inherits:false;initial-value:50%}@property --tw-gradient-to-position{syntax:"<length-percentage>";inherits:false;initial-value:100%}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@property --tw-content{syntax:"*";inherits:false;initial-value:""}@property --tw-space-x-reverse{syntax:"*";inherits:false;initial-value:0}@keyframes spin{to{transform:rotate(360deg)}}
2
+ /*$vite$:1*/`,document.head.appendChild(jo);function Jf(e,t){for(var n=0;n<t.length;n++){const a=t[n];if(typeof a!="string"&&!Array.isArray(a)){for(const i in a)if(i!=="default"&&!(i in e)){const l=Object.getOwnPropertyDescriptor(a,i);l&&Object.defineProperty(e,i,l.get?l:{enumerable:!0,get:()=>a[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var Nv=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function Wu(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var C3={exports:{}},Eh={},S3={exports:{}},gn={};/**
3
+ * @license React
4
+ * react.production.min.js
5
+ *
6
+ * Copyright (c) Facebook, Inc. and its affiliates.
7
+ *
8
+ * This source code is licensed under the MIT license found in the
9
+ * LICENSE file in the root directory of this source tree.
10
+ */var lw;function BD(){if(lw)return gn;lw=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),u=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),y=Symbol.iterator;function k(X){return X===null||typeof X!="object"?null:(X=y&&X[y]||X["@@iterator"],typeof X=="function"?X:null)}var b={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_=Object.assign,R={};function M(X,ie,$){this.props=X,this.context=ie,this.refs=R,this.updater=$||b}M.prototype.isReactComponent={},M.prototype.setState=function(X,ie){if(typeof X!="object"&&typeof X!="function"&&X!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,X,ie,"setState")},M.prototype.forceUpdate=function(X){this.updater.enqueueForceUpdate(this,X,"forceUpdate")};function L(){}L.prototype=M.prototype;function P(X,ie,$){this.props=X,this.context=ie,this.refs=R,this.updater=$||b}var F=P.prototype=new L;F.constructor=P,_(F,M.prototype),F.isPureReactComponent=!0;var D=Array.isArray,V=Object.prototype.hasOwnProperty,H={current:null},Z={key:!0,ref:!0,__self:!0,__source:!0};function q(X,ie,$){var Ue,Ke={},De=null,Ee=null;if(ie!=null)for(Ue in ie.ref!==void 0&&(Ee=ie.ref),ie.key!==void 0&&(De=""+ie.key),ie)V.call(ie,Ue)&&!Z.hasOwnProperty(Ue)&&(Ke[Ue]=ie[Ue]);var Ze=arguments.length-2;if(Ze===1)Ke.children=$;else if(1<Ze){for(var Qe=Array(Ze),qe=0;qe<Ze;qe++)Qe[qe]=arguments[qe+2];Ke.children=Qe}if(X&&X.defaultProps)for(Ue in Ze=X.defaultProps,Ze)Ke[Ue]===void 0&&(Ke[Ue]=Ze[Ue]);return{$$typeof:e,type:X,key:De,ref:Ee,props:Ke,_owner:H.current}}function ae(X,ie){return{$$typeof:e,type:X.type,key:ie,ref:X.ref,props:X.props,_owner:X._owner}}function _e(X){return typeof X=="object"&&X!==null&&X.$$typeof===e}function ge(X){var ie={"=":"=0",":":"=2"};return"$"+X.replace(/[=:]/g,function($){return ie[$]})}var he=/\/+/g;function we(X,ie){return typeof X=="object"&&X!==null&&X.key!=null?ge(""+X.key):ie.toString(36)}function Ne(X,ie,$,Ue,Ke){var De=typeof X;(De==="undefined"||De==="boolean")&&(X=null);var Ee=!1;if(X===null)Ee=!0;else switch(De){case"string":case"number":Ee=!0;break;case"object":switch(X.$$typeof){case e:case t:Ee=!0}}if(Ee)return Ee=X,Ke=Ke(Ee),X=Ue===""?"."+we(Ee,0):Ue,D(Ke)?($="",X!=null&&($=X.replace(he,"$&/")+"/"),Ne(Ke,ie,$,"",function(qe){return qe})):Ke!=null&&(_e(Ke)&&(Ke=ae(Ke,$+(!Ke.key||Ee&&Ee.key===Ke.key?"":(""+Ke.key).replace(he,"$&/")+"/")+X)),ie.push(Ke)),1;if(Ee=0,Ue=Ue===""?".":Ue+":",D(X))for(var Ze=0;Ze<X.length;Ze++){De=X[Ze];var Qe=Ue+we(De,Ze);Ee+=Ne(De,ie,$,Qe,Ke)}else if(Qe=k(X),typeof Qe=="function")for(X=Qe.call(X),Ze=0;!(De=X.next()).done;)De=De.value,Qe=Ue+we(De,Ze++),Ee+=Ne(De,ie,$,Qe,Ke);else if(De==="object")throw ie=String(X),Error("Objects are not valid as a React child (found: "+(ie==="[object Object]"?"object with keys {"+Object.keys(X).join(", ")+"}":ie)+"). If you meant to render a collection of children, use an array instead.");return Ee}function xe(X,ie,$){if(X==null)return X;var Ue=[],Ke=0;return Ne(X,Ue,"","",function(De){return ie.call($,De,Ke++)}),Ue}function Te(X){if(X._status===-1){var ie=X._result;ie=ie(),ie.then(function($){(X._status===0||X._status===-1)&&(X._status=1,X._result=$)},function($){(X._status===0||X._status===-1)&&(X._status=2,X._result=$)}),X._status===-1&&(X._status=0,X._result=ie)}if(X._status===1)return X._result.default;throw X._result}var ve={current:null},K={transition:null},ye={ReactCurrentDispatcher:ve,ReactCurrentBatchConfig:K,ReactCurrentOwner:H};function U(){throw Error("act(...) is not supported in production builds of React.")}return gn.Children={map:xe,forEach:function(X,ie,$){xe(X,function(){ie.apply(this,arguments)},$)},count:function(X){var ie=0;return xe(X,function(){ie++}),ie},toArray:function(X){return xe(X,function(ie){return ie})||[]},only:function(X){if(!_e(X))throw Error("React.Children.only expected to receive a single React element child.");return X}},gn.Component=M,gn.Fragment=n,gn.Profiler=i,gn.PureComponent=P,gn.StrictMode=a,gn.Suspense=h,gn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ye,gn.act=U,gn.cloneElement=function(X,ie,$){if(X==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+X+".");var Ue=_({},X.props),Ke=X.key,De=X.ref,Ee=X._owner;if(ie!=null){if(ie.ref!==void 0&&(De=ie.ref,Ee=H.current),ie.key!==void 0&&(Ke=""+ie.key),X.type&&X.type.defaultProps)var Ze=X.type.defaultProps;for(Qe in ie)V.call(ie,Qe)&&!Z.hasOwnProperty(Qe)&&(Ue[Qe]=ie[Qe]===void 0&&Ze!==void 0?Ze[Qe]:ie[Qe])}var Qe=arguments.length-2;if(Qe===1)Ue.children=$;else if(1<Qe){Ze=Array(Qe);for(var qe=0;qe<Qe;qe++)Ze[qe]=arguments[qe+2];Ue.children=Ze}return{$$typeof:e,type:X.type,key:Ke,ref:De,props:Ue,_owner:Ee}},gn.createContext=function(X){return X={$$typeof:u,_currentValue:X,_currentValue2:X,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},X.Provider={$$typeof:l,_context:X},X.Consumer=X},gn.createElement=q,gn.createFactory=function(X){var ie=q.bind(null,X);return ie.type=X,ie},gn.createRef=function(){return{current:null}},gn.forwardRef=function(X){return{$$typeof:f,render:X}},gn.isValidElement=_e,gn.lazy=function(X){return{$$typeof:x,_payload:{_status:-1,_result:X},_init:Te}},gn.memo=function(X,ie){return{$$typeof:g,type:X,compare:ie===void 0?null:ie}},gn.startTransition=function(X){var ie=K.transition;K.transition={};try{X()}finally{K.transition=ie}},gn.unstable_act=U,gn.useCallback=function(X,ie){return ve.current.useCallback(X,ie)},gn.useContext=function(X){return ve.current.useContext(X)},gn.useDebugValue=function(){},gn.useDeferredValue=function(X){return ve.current.useDeferredValue(X)},gn.useEffect=function(X,ie){return ve.current.useEffect(X,ie)},gn.useId=function(){return ve.current.useId()},gn.useImperativeHandle=function(X,ie,$){return ve.current.useImperativeHandle(X,ie,$)},gn.useInsertionEffect=function(X,ie){return ve.current.useInsertionEffect(X,ie)},gn.useLayoutEffect=function(X,ie){return ve.current.useLayoutEffect(X,ie)},gn.useMemo=function(X,ie){return ve.current.useMemo(X,ie)},gn.useReducer=function(X,ie,$){return ve.current.useReducer(X,ie,$)},gn.useRef=function(X){return ve.current.useRef(X)},gn.useState=function(X){return ve.current.useState(X)},gn.useSyncExternalStore=function(X,ie,$){return ve.current.useSyncExternalStore(X,ie,$)},gn.useTransition=function(){return ve.current.useTransition()},gn.version="18.3.1",gn}var _h={exports:{}};/**
11
+ * @license React
12
+ * react.development.js
13
+ *
14
+ * Copyright (c) Facebook, Inc. and its affiliates.
15
+ *
16
+ * This source code is licensed under the MIT license found in the
17
+ * LICENSE file in the root directory of this source tree.
18
+ */_h.exports;var uw;function HD(){return uw||(uw=1,function(e,t){process.env.NODE_ENV!=="production"&&function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__!="undefined"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var n="18.3.1",a=Symbol.for("react.element"),i=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),h=Symbol.for("react.provider"),g=Symbol.for("react.context"),x=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),k=Symbol.for("react.suspense_list"),b=Symbol.for("react.memo"),_=Symbol.for("react.lazy"),R=Symbol.for("react.offscreen"),M=Symbol.iterator,L="@@iterator";function P(j){if(j===null||typeof j!="object")return null;var Y=M&&j[M]||j[L];return typeof Y=="function"?Y:null}var F={current:null},D={transition:null},V={current:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1},H={current:null},Z={},q=null;function ae(j){q=j}Z.setExtraStackFrame=function(j){q=j},Z.getCurrentStack=null,Z.getStackAddendum=function(){var j="";q&&(j+=q);var Y=Z.getCurrentStack;return Y&&(j+=Y()||""),j};var _e=!1,ge=!1,he=!1,we=!1,Ne=!1,xe={ReactCurrentDispatcher:F,ReactCurrentBatchConfig:D,ReactCurrentOwner:H};xe.ReactDebugCurrentFrame=Z,xe.ReactCurrentActQueue=V;function Te(j){{for(var Y=arguments.length,de=new Array(Y>1?Y-1:0),be=1;be<Y;be++)de[be-1]=arguments[be];K("warn",j,de)}}function ve(j){{for(var Y=arguments.length,de=new Array(Y>1?Y-1:0),be=1;be<Y;be++)de[be-1]=arguments[be];K("error",j,de)}}function K(j,Y,de){{var be=xe.ReactDebugCurrentFrame,He=be.getStackAddendum();He!==""&&(Y+="%s",de=de.concat([He]));var Mt=de.map(function(Xe){return String(Xe)});Mt.unshift("Warning: "+Y),Function.prototype.apply.call(console[j],console,Mt)}}var ye={};function U(j,Y){{var de=j.constructor,be=de&&(de.displayName||de.name)||"ReactClass",He=be+"."+Y;if(ye[He])return;ve("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",Y,be),ye[He]=!0}}var X={isMounted:function(j){return!1},enqueueForceUpdate:function(j,Y,de){U(j,"forceUpdate")},enqueueReplaceState:function(j,Y,de,be){U(j,"replaceState")},enqueueSetState:function(j,Y,de,be){U(j,"setState")}},ie=Object.assign,$={};Object.freeze($);function Ue(j,Y,de){this.props=j,this.context=Y,this.refs=$,this.updater=de||X}Ue.prototype.isReactComponent={},Ue.prototype.setState=function(j,Y){if(typeof j!="object"&&typeof j!="function"&&j!=null)throw new Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,j,Y,"setState")},Ue.prototype.forceUpdate=function(j){this.updater.enqueueForceUpdate(this,j,"forceUpdate")};{var Ke={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},De=function(j,Y){Object.defineProperty(Ue.prototype,j,{get:function(){Te("%s(...) is deprecated in plain JavaScript React classes. %s",Y[0],Y[1])}})};for(var Ee in Ke)Ke.hasOwnProperty(Ee)&&De(Ee,Ke[Ee])}function Ze(){}Ze.prototype=Ue.prototype;function Qe(j,Y,de){this.props=j,this.context=Y,this.refs=$,this.updater=de||X}var qe=Qe.prototype=new Ze;qe.constructor=Qe,ie(qe,Ue.prototype),qe.isPureReactComponent=!0;function tt(){var j={current:null};return Object.seal(j),j}var Et=Array.isArray;function bt(j){return Et(j)}function ct(j){{var Y=typeof Symbol=="function"&&Symbol.toStringTag,de=Y&&j[Symbol.toStringTag]||j.constructor.name||"Object";return de}}function yt(j){try{return Pt(j),!1}catch(Y){return!0}}function Pt(j){return""+j}function St(j){if(yt(j))return ve("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",ct(j)),Pt(j)}function jn(j,Y,de){var be=j.displayName;if(be)return be;var He=Y.displayName||Y.name||"";return He!==""?de+"("+He+")":de}function Hn(j){return j.displayName||"Context"}function Be(j){if(j==null)return null;if(typeof j.tag=="number"&&ve("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof j=="function")return j.displayName||j.name||null;if(typeof j=="string")return j;switch(j){case l:return"Fragment";case i:return"Portal";case f:return"Profiler";case u:return"StrictMode";case y:return"Suspense";case k:return"SuspenseList"}if(typeof j=="object")switch(j.$$typeof){case g:var Y=j;return Hn(Y)+".Consumer";case h:var de=j;return Hn(de._context)+".Provider";case x:return jn(j,j.render,"ForwardRef");case b:var be=j.displayName||null;return be!==null?be:Be(j.type)||"Memo";case _:{var He=j,Mt=He._payload,Xe=He._init;try{return Be(Xe(Mt))}catch(Dt){return null}}}return null}var At=Object.prototype.hasOwnProperty,Pn={key:!0,ref:!0,__self:!0,__source:!0},Wt,hr,$n;$n={};function me(j){if(At.call(j,"ref")){var Y=Object.getOwnPropertyDescriptor(j,"ref").get;if(Y&&Y.isReactWarning)return!1}return j.ref!==void 0}function Me(j){if(At.call(j,"key")){var Y=Object.getOwnPropertyDescriptor(j,"key").get;if(Y&&Y.isReactWarning)return!1}return j.key!==void 0}function dt(j,Y){var de=function(){Wt||(Wt=!0,ve("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",Y))};de.isReactWarning=!0,Object.defineProperty(j,"key",{get:de,configurable:!0})}function It(j,Y){var de=function(){hr||(hr=!0,ve("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",Y))};de.isReactWarning=!0,Object.defineProperty(j,"ref",{get:de,configurable:!0})}function Ae(j){if(typeof j.ref=="string"&&H.current&&j.__self&&H.current.stateNode!==j.__self){var Y=Be(H.current.type);$n[Y]||(ve('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',Y,j.ref),$n[Y]=!0)}}var Ye=function(j,Y,de,be,He,Mt,Xe){var Dt={$$typeof:a,type:j,key:Y,ref:de,props:Xe,_owner:Mt};return Dt._store={},Object.defineProperty(Dt._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(Dt,"_self",{configurable:!1,enumerable:!1,writable:!1,value:be}),Object.defineProperty(Dt,"_source",{configurable:!1,enumerable:!1,writable:!1,value:He}),Object.freeze&&(Object.freeze(Dt.props),Object.freeze(Dt)),Dt};function Nt(j,Y,de){var be,He={},Mt=null,Xe=null,Dt=null,cn=null;if(Y!=null){me(Y)&&(Xe=Y.ref,Ae(Y)),Me(Y)&&(St(Y.key),Mt=""+Y.key),Dt=Y.__self===void 0?null:Y.__self,cn=Y.__source===void 0?null:Y.__source;for(be in Y)At.call(Y,be)&&!Pn.hasOwnProperty(be)&&(He[be]=Y[be])}var Sn=arguments.length-2;if(Sn===1)He.children=de;else if(Sn>1){for(var rr=Array(Sn),Wn=0;Wn<Sn;Wn++)rr[Wn]=arguments[Wn+2];Object.freeze&&Object.freeze(rr),He.children=rr}if(j&&j.defaultProps){var rn=j.defaultProps;for(be in rn)He[be]===void 0&&(He[be]=rn[be])}if(Mt||Xe){var qn=typeof j=="function"?j.displayName||j.name||"Unknown":j;Mt&&dt(He,qn),Xe&&It(He,qn)}return Ye(j,Mt,Xe,Dt,cn,H.current,He)}function xt(j,Y){var de=Ye(j.type,Y,j.ref,j._self,j._source,j._owner,j.props);return de}function Kt(j,Y,de){if(j==null)throw new Error("React.cloneElement(...): The argument must be a React element, but you passed "+j+".");var be,He=ie({},j.props),Mt=j.key,Xe=j.ref,Dt=j._self,cn=j._source,Sn=j._owner;if(Y!=null){me(Y)&&(Xe=Y.ref,Sn=H.current),Me(Y)&&(St(Y.key),Mt=""+Y.key);var rr;j.type&&j.type.defaultProps&&(rr=j.type.defaultProps);for(be in Y)At.call(Y,be)&&!Pn.hasOwnProperty(be)&&(Y[be]===void 0&&rr!==void 0?He[be]=rr[be]:He[be]=Y[be])}var Wn=arguments.length-2;if(Wn===1)He.children=de;else if(Wn>1){for(var rn=Array(Wn),qn=0;qn<Wn;qn++)rn[qn]=arguments[qn+2];He.children=rn}return Ye(j.type,Mt,Xe,Dt,cn,Sn,He)}function ln(j){return typeof j=="object"&&j!==null&&j.$$typeof===a}var Qt=".",Qn=":";function dn(j){var Y=/[=:]/g,de={"=":"=0",":":"=2"},be=j.replace(Y,function(He){return de[He]});return"$"+be}var En=!1,Rn=/\/+/g;function fa(j){return j.replace(Rn,"$&/")}function Fr(j,Y){return typeof j=="object"&&j!==null&&j.key!=null?(St(j.key),dn(""+j.key)):Y.toString(36)}function Jr(j,Y,de,be,He){var Mt=typeof j;(Mt==="undefined"||Mt==="boolean")&&(j=null);var Xe=!1;if(j===null)Xe=!0;else switch(Mt){case"string":case"number":Xe=!0;break;case"object":switch(j.$$typeof){case a:case i:Xe=!0}}if(Xe){var Dt=j,cn=He(Dt),Sn=be===""?Qt+Fr(Dt,0):be;if(bt(cn)){var rr="";Sn!=null&&(rr=fa(Sn)+"/"),Jr(cn,Y,rr,"",function(Rm){return Rm})}else cn!=null&&(ln(cn)&&(cn.key&&(!Dt||Dt.key!==cn.key)&&St(cn.key),cn=xt(cn,de+(cn.key&&(!Dt||Dt.key!==cn.key)?fa(""+cn.key)+"/":"")+Sn)),Y.push(cn));return 1}var Wn,rn,qn=0,xr=be===""?Qt:be+Qn;if(bt(j))for(var hl=0;hl<j.length;hl++)Wn=j[hl],rn=xr+Fr(Wn,hl),qn+=Jr(Wn,Y,de,rn,He);else{var Fd=P(j);if(typeof Fd=="function"){var ks=j;Fd===ks.entries&&(En||Te("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),En=!0);for(var zd=Fd.call(ks),su,Tm=0;!(su=zd.next()).done;)Wn=su.value,rn=xr+Fr(Wn,Tm++),qn+=Jr(Wn,Y,de,rn,He)}else if(Mt==="object"){var Hp=String(j);throw new Error("Objects are not valid as a React child (found: "+(Hp==="[object Object]"?"object with keys {"+Object.keys(j).join(", ")+"}":Hp)+"). If you meant to render a collection of children, use an array instead.")}}return qn}function Rr(j,Y,de){if(j==null)return j;var be=[],He=0;return Jr(j,be,"","",function(Mt){return Y.call(de,Mt,He++)}),be}function vi(j){var Y=0;return Rr(j,function(){Y++}),Y}function Bi(j,Y,de){Rr(j,function(){Y.apply(this,arguments)},de)}function Xr(j){return Rr(j,function(Y){return Y})||[]}function yi(j){if(!ln(j))throw new Error("React.Children.only expected to receive a single React element child.");return j}function _t(j){var Y={$$typeof:g,_currentValue:j,_currentValue2:j,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};Y.Provider={$$typeof:h,_context:Y};var de=!1,be=!1,He=!1;{var Mt={$$typeof:g,_context:Y};Object.defineProperties(Mt,{Provider:{get:function(){return be||(be=!0,ve("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),Y.Provider},set:function(Xe){Y.Provider=Xe}},_currentValue:{get:function(){return Y._currentValue},set:function(Xe){Y._currentValue=Xe}},_currentValue2:{get:function(){return Y._currentValue2},set:function(Xe){Y._currentValue2=Xe}},_threadCount:{get:function(){return Y._threadCount},set:function(Xe){Y._threadCount=Xe}},Consumer:{get:function(){return de||(de=!0,ve("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),Y.Consumer}},displayName:{get:function(){return Y.displayName},set:function(Xe){He||(Te("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",Xe),He=!0)}}}),Y.Consumer=Mt}return Y._currentRenderer=null,Y._currentRenderer2=null,Y}var _n=-1,Ar=0,yr=1,Ia=2;function Nr(j){if(j._status===_n){var Y=j._result,de=Y();if(de.then(function(Mt){if(j._status===Ar||j._status===_n){var Xe=j;Xe._status=yr,Xe._result=Mt}},function(Mt){if(j._status===Ar||j._status===_n){var Xe=j;Xe._status=Ia,Xe._result=Mt}}),j._status===_n){var be=j;be._status=Ar,be._result=de}}if(j._status===yr){var He=j._result;return He===void 0&&ve(`lazy: Expected the result of a dynamic import() call. Instead received: %s
19
+
20
+ Your code should look like:
21
+ const MyComponent = lazy(() => import('./MyComponent'))
22
+
23
+ Did you accidentally put curly braces around the import?`,He),"default"in He||ve(`lazy: Expected the result of a dynamic import() call. Instead received: %s
24
+
25
+ Your code should look like:
26
+ const MyComponent = lazy(() => import('./MyComponent'))`,He),He.default}else throw j._result}function So(j){var Y={_status:_n,_result:j},de={$$typeof:_,_payload:Y,_init:Nr};{var be,He;Object.defineProperties(de,{defaultProps:{configurable:!0,get:function(){return be},set:function(Mt){ve("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),be=Mt,Object.defineProperty(de,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return He},set:function(Mt){ve("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),He=Mt,Object.defineProperty(de,"propTypes",{enumerable:!0})}}})}return de}function tr(j){j!=null&&j.$$typeof===b?ve("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof j!="function"?ve("forwardRef requires a render function but was given %s.",j===null?"null":typeof j):j.length!==0&&j.length!==2&&ve("forwardRef render functions accept exactly two parameters: props and ref. %s",j.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),j!=null&&(j.defaultProps!=null||j.propTypes!=null)&&ve("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?");var Y={$$typeof:x,render:j};{var de;Object.defineProperty(Y,"displayName",{enumerable:!1,configurable:!0,get:function(){return de},set:function(be){de=be,!j.name&&!j.displayName&&(j.displayName=be)}})}return Y}var J;J=Symbol.for("react.module.reference");function Oe(j){return!!(typeof j=="string"||typeof j=="function"||j===l||j===f||Ne||j===u||j===y||j===k||we||j===R||_e||ge||he||typeof j=="object"&&j!==null&&(j.$$typeof===_||j.$$typeof===b||j.$$typeof===h||j.$$typeof===g||j.$$typeof===x||j.$$typeof===J||j.getModuleId!==void 0))}function et(j,Y){Oe(j)||ve("memo: The first argument must be a component. Instead received: %s",j===null?"null":typeof j);var de={$$typeof:b,type:j,compare:Y===void 0?null:Y};{var be;Object.defineProperty(de,"displayName",{enumerable:!1,configurable:!0,get:function(){return be},set:function(He){be=He,!j.name&&!j.displayName&&(j.displayName=He)}})}return de}function ut(){var j=F.current;return j===null&&ve(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
27
+ 1. You might have mismatching versions of React and the renderer (such as React DOM)
28
+ 2. You might be breaking the Rules of Hooks
29
+ 3. You might have more than one copy of React in the same app
30
+ See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`),j}function Gt(j){var Y=ut();if(j._context!==void 0){var de=j._context;de.Consumer===j?ve("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?"):de.Provider===j&&ve("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return Y.useContext(j)}function Ht(j){var Y=ut();return Y.useState(j)}function un(j,Y,de){var be=ut();return be.useReducer(j,Y,de)}function an(j){var Y=ut();return Y.useRef(j)}function Mr(j,Y){var de=ut();return de.useEffect(j,Y)}function nr(j,Y){var de=ut();return de.useInsertionEffect(j,Y)}function ir(j,Y){var de=ut();return de.useLayoutEffect(j,Y)}function pa(j,Y){var de=ut();return de.useCallback(j,Y)}function xi(j,Y){var de=ut();return de.useMemo(j,Y)}function wi(j,Y,de){var be=ut();return be.useImperativeHandle(j,Y,de)}function Yt(j,Y){{var de=ut();return de.useDebugValue(j,Y)}}function en(){var j=ut();return j.useTransition()}function bi(j){var Y=ut();return Y.useDeferredValue(j)}function tu(){var j=ut();return j.useId()}function nu(j,Y,de){var be=ut();return be.useSyncExternalStore(j,Y,de)}var sl=0,fc,ll,eo,Id,Da,Up,Bp;function pc(){}pc.__reactDisabledLog=!0;function ul(){{if(sl===0){fc=console.log,ll=console.info,eo=console.warn,Id=console.error,Da=console.group,Up=console.groupCollapsed,Bp=console.groupEnd;var j={configurable:!0,enumerable:!0,value:pc,writable:!0};Object.defineProperties(console,{info:j,log:j,warn:j,error:j,group:j,groupCollapsed:j,groupEnd:j})}sl++}}function ko(){{if(sl--,sl===0){var j={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:ie({},j,{value:fc}),info:ie({},j,{value:ll}),warn:ie({},j,{value:eo}),error:ie({},j,{value:Id}),group:ie({},j,{value:Da}),groupCollapsed:ie({},j,{value:Up}),groupEnd:ie({},j,{value:Bp})})}sl<0&&ve("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Ci=xe.ReactCurrentDispatcher,Si;function hc(j,Y,de){{if(Si===void 0)try{throw Error()}catch(He){var be=He.stack.trim().match(/\n( *(at )?)/);Si=be&&be[1]||""}return`
31
+ `+Si+j}}var ru=!1,cl;{var mc=typeof WeakMap=="function"?WeakMap:Map;cl=new mc}function gc(j,Y){if(!j||ru)return"";{var de=cl.get(j);if(de!==void 0)return de}var be;ru=!0;var He=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var Mt;Mt=Ci.current,Ci.current=null,ul();try{if(Y){var Xe=function(){throw Error()};if(Object.defineProperty(Xe.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Xe,[])}catch(xr){be=xr}Reflect.construct(j,[],Xe)}else{try{Xe.call()}catch(xr){be=xr}j.call(Xe.prototype)}}else{try{throw Error()}catch(xr){be=xr}j()}}catch(xr){if(xr&&be&&typeof xr.stack=="string"){for(var Dt=xr.stack.split(`
32
+ `),cn=be.stack.split(`
33
+ `),Sn=Dt.length-1,rr=cn.length-1;Sn>=1&&rr>=0&&Dt[Sn]!==cn[rr];)rr--;for(;Sn>=1&&rr>=0;Sn--,rr--)if(Dt[Sn]!==cn[rr]){if(Sn!==1||rr!==1)do if(Sn--,rr--,rr<0||Dt[Sn]!==cn[rr]){var Wn=`
34
+ `+Dt[Sn].replace(" at new "," at ");return j.displayName&&Wn.includes("<anonymous>")&&(Wn=Wn.replace("<anonymous>",j.displayName)),typeof j=="function"&&cl.set(j,Wn),Wn}while(Sn>=1&&rr>=0);break}}}finally{ru=!1,Ci.current=Mt,ko(),Error.prepareStackTrace=He}var rn=j?j.displayName||j.name:"",qn=rn?hc(rn):"";return typeof j=="function"&&cl.set(j,qn),qn}function Cs(j,Y,de){return gc(j,!1)}function Em(j){var Y=j.prototype;return!!(Y&&Y.isReactComponent)}function Ss(j,Y,de){if(j==null)return"";if(typeof j=="function")return gc(j,Em(j));if(typeof j=="string")return hc(j);switch(j){case y:return hc("Suspense");case k:return hc("SuspenseList")}if(typeof j=="object")switch(j.$$typeof){case x:return Cs(j.render);case b:return Ss(j.type,Y,de);case _:{var be=j,He=be._payload,Mt=be._init;try{return Ss(Mt(He),Y,de)}catch(Xe){}}}return""}var An={},vc=xe.ReactDebugCurrentFrame;function Cn(j){if(j){var Y=j._owner,de=Ss(j.type,j._source,Y?Y.type:null);vc.setExtraStackFrame(de)}else vc.setExtraStackFrame(null)}function Dd(j,Y,de,be,He){{var Mt=Function.call.bind(At);for(var Xe in j)if(Mt(j,Xe)){var Dt=void 0;try{if(typeof j[Xe]!="function"){var cn=Error((be||"React class")+": "+de+" type `"+Xe+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof j[Xe]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw cn.name="Invariant Violation",cn}Dt=j[Xe](Y,Xe,be,de,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Sn){Dt=Sn}Dt&&!(Dt instanceof Error)&&(Cn(He),ve("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",be||"React class",de,Xe,typeof Dt),Cn(null)),Dt instanceof Error&&!(Dt.message in An)&&(An[Dt.message]=!0,Cn(He),ve("Failed %s type: %s",de,Dt.message),Cn(null))}}}function Hi(j){if(j){var Y=j._owner,de=Ss(j.type,j._source,Y?Y.type:null);ae(de)}else ae(null)}var Bt;Bt=!1;function yc(){if(H.current){var j=Be(H.current.type);if(j)return`
35
+
36
+ Check the render method of \``+j+"`."}return""}function ha(j){if(j!==void 0){var Y=j.fileName.replace(/^.*[\\\/]/,""),de=j.lineNumber;return`
37
+
38
+ Check your code at `+Y+":"+de+"."}return""}function Vi(j){return j!=null?ha(j.__source):""}var ja={};function $i(j){var Y=yc();if(!Y){var de=typeof j=="string"?j:j.displayName||j.name;de&&(Y=`
39
+
40
+ Check the top-level render call using <`+de+">.")}return Y}function sr(j,Y){if(!(!j._store||j._store.validated||j.key!=null)){j._store.validated=!0;var de=$i(Y);if(!ja[de]){ja[de]=!0;var be="";j&&j._owner&&j._owner!==H.current&&(be=" It was passed a child from "+Be(j._owner.type)+"."),Hi(j),ve('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',de,be),Hi(null)}}}function Zn(j,Y){if(typeof j=="object"){if(bt(j))for(var de=0;de<j.length;de++){var be=j[de];ln(be)&&sr(be,Y)}else if(ln(j))j._store&&(j._store.validated=!0);else if(j){var He=P(j);if(typeof He=="function"&&He!==j.entries)for(var Mt=He.call(j),Xe;!(Xe=Mt.next()).done;)ln(Xe.value)&&sr(Xe.value,Y)}}}function dl(j){{var Y=j.type;if(Y==null||typeof Y=="string")return;var de;if(typeof Y=="function")de=Y.propTypes;else if(typeof Y=="object"&&(Y.$$typeof===x||Y.$$typeof===b))de=Y.propTypes;else return;if(de){var be=Be(Y);Dd(de,j.props,"prop",be,j)}else if(Y.PropTypes!==void 0&&!Bt){Bt=!0;var He=Be(Y);ve("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",He||"Unknown")}typeof Y.getDefaultProps=="function"&&!Y.getDefaultProps.isReactClassApproved&&ve("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Kr(j){{for(var Y=Object.keys(j.props),de=0;de<Y.length;de++){var be=Y[de];if(be!=="children"&&be!=="key"){Hi(j),ve("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",be),Hi(null);break}}j.ref!==null&&(Hi(j),ve("Invalid attribute `ref` supplied to `React.Fragment`."),Hi(null))}}function Pa(j,Y,de){var be=Oe(j);if(!be){var He="";(j===void 0||typeof j=="object"&&j!==null&&Object.keys(j).length===0)&&(He+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var Mt=Vi(Y);Mt?He+=Mt:He+=yc();var Xe;j===null?Xe="null":bt(j)?Xe="array":j!==void 0&&j.$$typeof===a?(Xe="<"+(Be(j.type)||"Unknown")+" />",He=" Did you accidentally export a JSX literal instead of a component?"):Xe=typeof j,ve("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Xe,He)}var Dt=Nt.apply(this,arguments);if(Dt==null)return Dt;if(be)for(var cn=2;cn<arguments.length;cn++)Zn(arguments[cn],j);return j===l?Kr(Dt):dl(Dt),Dt}var Wo=!1;function au(j){var Y=Pa.bind(null,j);return Y.type=j,Wo||(Wo=!0,Te("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")),Object.defineProperty(Y,"type",{enumerable:!1,get:function(){return Te("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:j}),j}}),Y}function jd(j,Y,de){for(var be=Kt.apply(this,arguments),He=2;He<arguments.length;He++)Zn(arguments[He],be.type);return dl(be),be}function Pd(j,Y){var de=D.transition;D.transition={};var be=D.transition;D.transition._updatedFibers=new Set;try{j()}finally{if(D.transition=de,de===null&&be._updatedFibers){var He=be._updatedFibers.size;He>10&&Te("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."),be._updatedFibers.clear()}}}var fl=!1,ou=null;function _m(j){if(ou===null)try{var Y=("require"+Math.random()).slice(0,7),de=e&&e[Y];ou=de.call(e,"timers").setImmediate}catch(be){ou=function(He){fl===!1&&(fl=!0,typeof MessageChannel=="undefined"&&ve("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var Mt=new MessageChannel;Mt.port1.onmessage=He,Mt.port2.postMessage(void 0)}}return ou(j)}var qo=0,ki=!1;function Zi(j){{var Y=qo;qo++,V.current===null&&(V.current=[]);var de=V.isBatchingLegacy,be;try{if(V.isBatchingLegacy=!0,be=j(),!de&&V.didScheduleLegacyUpdate){var He=V.current;He!==null&&(V.didScheduleLegacyUpdate=!1,pl(He))}}catch(rn){throw Go(Y),rn}finally{V.isBatchingLegacy=de}if(be!==null&&typeof be=="object"&&typeof be.then=="function"){var Mt=be,Xe=!1,Dt={then:function(rn,qn){Xe=!0,Mt.then(function(xr){Go(Y),qo===0?xc(xr,rn,qn):rn(xr)},function(xr){Go(Y),qn(xr)})}};return!ki&&typeof Promise!="undefined"&&Promise.resolve().then(function(){}).then(function(){Xe||(ki=!0,ve("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),Dt}else{var cn=be;if(Go(Y),qo===0){var Sn=V.current;Sn!==null&&(pl(Sn),V.current=null);var rr={then:function(rn,qn){V.current===null?(V.current=[],xc(cn,rn,qn)):rn(cn)}};return rr}else{var Wn={then:function(rn,qn){rn(cn)}};return Wn}}}}function Go(j){j!==qo-1&&ve("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),qo=j}function xc(j,Y,de){{var be=V.current;if(be!==null)try{pl(be),_m(function(){be.length===0?(V.current=null,Y(j)):xc(j,Y,de)})}catch(He){de(He)}else Y(j)}}var wc=!1;function pl(j){if(!wc){wc=!0;var Y=0;try{for(;Y<j.length;Y++){var de=j[Y];do de=de(!0);while(de!==null)}j.length=0}catch(be){throw j=j.slice(Y+1),be}finally{wc=!1}}}var iu=Pa,bc=jd,Cc=au,Ei={map:Rr,forEach:Bi,count:vi,toArray:Xr,only:yi};t.Children=Ei,t.Component=Ue,t.Fragment=l,t.Profiler=f,t.PureComponent=Qe,t.StrictMode=u,t.Suspense=y,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=xe,t.act=Zi,t.cloneElement=bc,t.createContext=_t,t.createElement=iu,t.createFactory=Cc,t.createRef=tt,t.forwardRef=tr,t.isValidElement=ln,t.lazy=So,t.memo=et,t.startTransition=Pd,t.unstable_act=Zi,t.useCallback=pa,t.useContext=Gt,t.useDebugValue=Yt,t.useDeferredValue=bi,t.useEffect=Mr,t.useId=tu,t.useImperativeHandle=wi,t.useInsertionEffect=nr,t.useLayoutEffect=ir,t.useMemo=xi,t.useReducer=un,t.useRef=an,t.useState=Ht,t.useSyncExternalStore=nu,t.useTransition=en,t.version=n,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__!="undefined"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()}(_h,_h.exports)),_h.exports}process.env.NODE_ENV==="production"?S3.exports=BD():S3.exports=HD();var O=S3.exports;const Po=Wu(O),k3=Jf({__proto__:null,default:Po},[O]);/**
41
+ * @license React
42
+ * react-jsx-runtime.production.min.js
43
+ *
44
+ * Copyright (c) Facebook, Inc. and its affiliates.
45
+ *
46
+ * This source code is licensed under the MIT license found in the
47
+ * LICENSE file in the root directory of this source tree.
48
+ */var cw;function VD(){if(cw)return Eh;cw=1;var e=O,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function u(f,h,g){var x,y={},k=null,b=null;g!==void 0&&(k=""+g),h.key!==void 0&&(k=""+h.key),h.ref!==void 0&&(b=h.ref);for(x in h)a.call(h,x)&&!l.hasOwnProperty(x)&&(y[x]=h[x]);if(f&&f.defaultProps)for(x in h=f.defaultProps,h)y[x]===void 0&&(y[x]=h[x]);return{$$typeof:t,type:f,key:k,ref:b,props:y,_owner:i.current}}return Eh.Fragment=n,Eh.jsx=u,Eh.jsxs=u,Eh}var Th={};/**
49
+ * @license React
50
+ * react-jsx-runtime.development.js
51
+ *
52
+ * Copyright (c) Facebook, Inc. and its affiliates.
53
+ *
54
+ * This source code is licensed under the MIT license found in the
55
+ * LICENSE file in the root directory of this source tree.
56
+ */var dw;function $D(){return dw||(dw=1,process.env.NODE_ENV!=="production"&&function(){var e=O,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),f=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),x=Symbol.for("react.suspense_list"),y=Symbol.for("react.memo"),k=Symbol.for("react.lazy"),b=Symbol.for("react.offscreen"),_=Symbol.iterator,R="@@iterator";function M(J){if(J===null||typeof J!="object")return null;var Oe=_&&J[_]||J[R];return typeof Oe=="function"?Oe:null}var L=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function P(J){{for(var Oe=arguments.length,et=new Array(Oe>1?Oe-1:0),ut=1;ut<Oe;ut++)et[ut-1]=arguments[ut];F("error",J,et)}}function F(J,Oe,et){{var ut=L.ReactDebugCurrentFrame,Gt=ut.getStackAddendum();Gt!==""&&(Oe+="%s",et=et.concat([Gt]));var Ht=et.map(function(un){return String(un)});Ht.unshift("Warning: "+Oe),Function.prototype.apply.call(console[J],console,Ht)}}var D=!1,V=!1,H=!1,Z=!1,q=!1,ae;ae=Symbol.for("react.module.reference");function _e(J){return!!(typeof J=="string"||typeof J=="function"||J===a||J===l||q||J===i||J===g||J===x||Z||J===b||D||V||H||typeof J=="object"&&J!==null&&(J.$$typeof===k||J.$$typeof===y||J.$$typeof===u||J.$$typeof===f||J.$$typeof===h||J.$$typeof===ae||J.getModuleId!==void 0))}function ge(J,Oe,et){var ut=J.displayName;if(ut)return ut;var Gt=Oe.displayName||Oe.name||"";return Gt!==""?et+"("+Gt+")":et}function he(J){return J.displayName||"Context"}function we(J){if(J==null)return null;if(typeof J.tag=="number"&&P("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof J=="function")return J.displayName||J.name||null;if(typeof J=="string")return J;switch(J){case a:return"Fragment";case n:return"Portal";case l:return"Profiler";case i:return"StrictMode";case g:return"Suspense";case x:return"SuspenseList"}if(typeof J=="object")switch(J.$$typeof){case f:var Oe=J;return he(Oe)+".Consumer";case u:var et=J;return he(et._context)+".Provider";case h:return ge(J,J.render,"ForwardRef");case y:var ut=J.displayName||null;return ut!==null?ut:we(J.type)||"Memo";case k:{var Gt=J,Ht=Gt._payload,un=Gt._init;try{return we(un(Ht))}catch(an){return null}}}return null}var Ne=Object.assign,xe=0,Te,ve,K,ye,U,X,ie;function $(){}$.__reactDisabledLog=!0;function Ue(){{if(xe===0){Te=console.log,ve=console.info,K=console.warn,ye=console.error,U=console.group,X=console.groupCollapsed,ie=console.groupEnd;var J={configurable:!0,enumerable:!0,value:$,writable:!0};Object.defineProperties(console,{info:J,log:J,warn:J,error:J,group:J,groupCollapsed:J,groupEnd:J})}xe++}}function Ke(){{if(xe--,xe===0){var J={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Ne({},J,{value:Te}),info:Ne({},J,{value:ve}),warn:Ne({},J,{value:K}),error:Ne({},J,{value:ye}),group:Ne({},J,{value:U}),groupCollapsed:Ne({},J,{value:X}),groupEnd:Ne({},J,{value:ie})})}xe<0&&P("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var De=L.ReactCurrentDispatcher,Ee;function Ze(J,Oe,et){{if(Ee===void 0)try{throw Error()}catch(Gt){var ut=Gt.stack.trim().match(/\n( *(at )?)/);Ee=ut&&ut[1]||""}return`
57
+ `+Ee+J}}var Qe=!1,qe;{var tt=typeof WeakMap=="function"?WeakMap:Map;qe=new tt}function Et(J,Oe){if(!J||Qe)return"";{var et=qe.get(J);if(et!==void 0)return et}var ut;Qe=!0;var Gt=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var Ht;Ht=De.current,De.current=null,Ue();try{if(Oe){var un=function(){throw Error()};if(Object.defineProperty(un.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(un,[])}catch(Yt){ut=Yt}Reflect.construct(J,[],un)}else{try{un.call()}catch(Yt){ut=Yt}J.call(un.prototype)}}else{try{throw Error()}catch(Yt){ut=Yt}J()}}catch(Yt){if(Yt&&ut&&typeof Yt.stack=="string"){for(var an=Yt.stack.split(`
58
+ `),Mr=ut.stack.split(`
59
+ `),nr=an.length-1,ir=Mr.length-1;nr>=1&&ir>=0&&an[nr]!==Mr[ir];)ir--;for(;nr>=1&&ir>=0;nr--,ir--)if(an[nr]!==Mr[ir]){if(nr!==1||ir!==1)do if(nr--,ir--,ir<0||an[nr]!==Mr[ir]){var pa=`
60
+ `+an[nr].replace(" at new "," at ");return J.displayName&&pa.includes("<anonymous>")&&(pa=pa.replace("<anonymous>",J.displayName)),typeof J=="function"&&qe.set(J,pa),pa}while(nr>=1&&ir>=0);break}}}finally{Qe=!1,De.current=Ht,Ke(),Error.prepareStackTrace=Gt}var xi=J?J.displayName||J.name:"",wi=xi?Ze(xi):"";return typeof J=="function"&&qe.set(J,wi),wi}function bt(J,Oe,et){return Et(J,!1)}function ct(J){var Oe=J.prototype;return!!(Oe&&Oe.isReactComponent)}function yt(J,Oe,et){if(J==null)return"";if(typeof J=="function")return Et(J,ct(J));if(typeof J=="string")return Ze(J);switch(J){case g:return Ze("Suspense");case x:return Ze("SuspenseList")}if(typeof J=="object")switch(J.$$typeof){case h:return bt(J.render);case y:return yt(J.type,Oe,et);case k:{var ut=J,Gt=ut._payload,Ht=ut._init;try{return yt(Ht(Gt),Oe,et)}catch(un){}}}return""}var Pt=Object.prototype.hasOwnProperty,St={},jn=L.ReactDebugCurrentFrame;function Hn(J){if(J){var Oe=J._owner,et=yt(J.type,J._source,Oe?Oe.type:null);jn.setExtraStackFrame(et)}else jn.setExtraStackFrame(null)}function Be(J,Oe,et,ut,Gt){{var Ht=Function.call.bind(Pt);for(var un in J)if(Ht(J,un)){var an=void 0;try{if(typeof J[un]!="function"){var Mr=Error((ut||"React class")+": "+et+" type `"+un+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof J[un]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Mr.name="Invariant Violation",Mr}an=J[un](Oe,un,ut,et,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(nr){an=nr}an&&!(an instanceof Error)&&(Hn(Gt),P("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",ut||"React class",et,un,typeof an),Hn(null)),an instanceof Error&&!(an.message in St)&&(St[an.message]=!0,Hn(Gt),P("Failed %s type: %s",et,an.message),Hn(null))}}}var At=Array.isArray;function Pn(J){return At(J)}function Wt(J){{var Oe=typeof Symbol=="function"&&Symbol.toStringTag,et=Oe&&J[Symbol.toStringTag]||J.constructor.name||"Object";return et}}function hr(J){try{return $n(J),!1}catch(Oe){return!0}}function $n(J){return""+J}function me(J){if(hr(J))return P("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Wt(J)),$n(J)}var Me=L.ReactCurrentOwner,dt={key:!0,ref:!0,__self:!0,__source:!0},It,Ae;function Ye(J){if(Pt.call(J,"ref")){var Oe=Object.getOwnPropertyDescriptor(J,"ref").get;if(Oe&&Oe.isReactWarning)return!1}return J.ref!==void 0}function Nt(J){if(Pt.call(J,"key")){var Oe=Object.getOwnPropertyDescriptor(J,"key").get;if(Oe&&Oe.isReactWarning)return!1}return J.key!==void 0}function xt(J,Oe){typeof J.ref=="string"&&Me.current}function Kt(J,Oe){{var et=function(){It||(It=!0,P("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",Oe))};et.isReactWarning=!0,Object.defineProperty(J,"key",{get:et,configurable:!0})}}function ln(J,Oe){{var et=function(){Ae||(Ae=!0,P("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",Oe))};et.isReactWarning=!0,Object.defineProperty(J,"ref",{get:et,configurable:!0})}}var Qt=function(J,Oe,et,ut,Gt,Ht,un){var an={$$typeof:t,type:J,key:Oe,ref:et,props:un,_owner:Ht};return an._store={},Object.defineProperty(an._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(an,"_self",{configurable:!1,enumerable:!1,writable:!1,value:ut}),Object.defineProperty(an,"_source",{configurable:!1,enumerable:!1,writable:!1,value:Gt}),Object.freeze&&(Object.freeze(an.props),Object.freeze(an)),an};function Qn(J,Oe,et,ut,Gt){{var Ht,un={},an=null,Mr=null;et!==void 0&&(me(et),an=""+et),Nt(Oe)&&(me(Oe.key),an=""+Oe.key),Ye(Oe)&&(Mr=Oe.ref,xt(Oe,Gt));for(Ht in Oe)Pt.call(Oe,Ht)&&!dt.hasOwnProperty(Ht)&&(un[Ht]=Oe[Ht]);if(J&&J.defaultProps){var nr=J.defaultProps;for(Ht in nr)un[Ht]===void 0&&(un[Ht]=nr[Ht])}if(an||Mr){var ir=typeof J=="function"?J.displayName||J.name||"Unknown":J;an&&Kt(un,ir),Mr&&ln(un,ir)}return Qt(J,an,Mr,Gt,ut,Me.current,un)}}var dn=L.ReactCurrentOwner,En=L.ReactDebugCurrentFrame;function Rn(J){if(J){var Oe=J._owner,et=yt(J.type,J._source,Oe?Oe.type:null);En.setExtraStackFrame(et)}else En.setExtraStackFrame(null)}var fa;fa=!1;function Fr(J){return typeof J=="object"&&J!==null&&J.$$typeof===t}function Jr(){{if(dn.current){var J=we(dn.current.type);if(J)return`
61
+
62
+ Check the render method of \``+J+"`."}return""}}function Rr(J){return""}var vi={};function Bi(J){{var Oe=Jr();if(!Oe){var et=typeof J=="string"?J:J.displayName||J.name;et&&(Oe=`
63
+
64
+ Check the top-level render call using <`+et+">.")}return Oe}}function Xr(J,Oe){{if(!J._store||J._store.validated||J.key!=null)return;J._store.validated=!0;var et=Bi(Oe);if(vi[et])return;vi[et]=!0;var ut="";J&&J._owner&&J._owner!==dn.current&&(ut=" It was passed a child from "+we(J._owner.type)+"."),Rn(J),P('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',et,ut),Rn(null)}}function yi(J,Oe){{if(typeof J!="object")return;if(Pn(J))for(var et=0;et<J.length;et++){var ut=J[et];Fr(ut)&&Xr(ut,Oe)}else if(Fr(J))J._store&&(J._store.validated=!0);else if(J){var Gt=M(J);if(typeof Gt=="function"&&Gt!==J.entries)for(var Ht=Gt.call(J),un;!(un=Ht.next()).done;)Fr(un.value)&&Xr(un.value,Oe)}}}function _t(J){{var Oe=J.type;if(Oe==null||typeof Oe=="string")return;var et;if(typeof Oe=="function")et=Oe.propTypes;else if(typeof Oe=="object"&&(Oe.$$typeof===h||Oe.$$typeof===y))et=Oe.propTypes;else return;if(et){var ut=we(Oe);Be(et,J.props,"prop",ut,J)}else if(Oe.PropTypes!==void 0&&!fa){fa=!0;var Gt=we(Oe);P("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",Gt||"Unknown")}typeof Oe.getDefaultProps=="function"&&!Oe.getDefaultProps.isReactClassApproved&&P("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function _n(J){{for(var Oe=Object.keys(J.props),et=0;et<Oe.length;et++){var ut=Oe[et];if(ut!=="children"&&ut!=="key"){Rn(J),P("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",ut),Rn(null);break}}J.ref!==null&&(Rn(J),P("Invalid attribute `ref` supplied to `React.Fragment`."),Rn(null))}}var Ar={};function yr(J,Oe,et,ut,Gt,Ht){{var un=_e(J);if(!un){var an="";(J===void 0||typeof J=="object"&&J!==null&&Object.keys(J).length===0)&&(an+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var Mr=Rr();Mr?an+=Mr:an+=Jr();var nr;J===null?nr="null":Pn(J)?nr="array":J!==void 0&&J.$$typeof===t?(nr="<"+(we(J.type)||"Unknown")+" />",an=" Did you accidentally export a JSX literal instead of a component?"):nr=typeof J,P("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",nr,an)}var ir=Qn(J,Oe,et,Gt,Ht);if(ir==null)return ir;if(un){var pa=Oe.children;if(pa!==void 0)if(ut)if(Pn(pa)){for(var xi=0;xi<pa.length;xi++)yi(pa[xi],J);Object.freeze&&Object.freeze(pa)}else P("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else yi(pa,J)}if(Pt.call(Oe,"key")){var wi=we(J),Yt=Object.keys(Oe).filter(function(tu){return tu!=="key"}),en=Yt.length>0?"{key: someKey, "+Yt.join(": ..., ")+": ...}":"{key: someKey}";if(!Ar[wi+en]){var bi=Yt.length>0?"{"+Yt.join(": ..., ")+": ...}":"{}";P(`A props object containing a "key" prop is being spread into JSX:
65
+ let props = %s;
66
+ <%s {...props} />
67
+ React keys must be passed directly to JSX without using spread:
68
+ let props = %s;
69
+ <%s key={someKey} {...props} />`,en,wi,bi,wi),Ar[wi+en]=!0}}return J===a?_n(ir):_t(ir),ir}}function Ia(J,Oe,et){return yr(J,Oe,et,!0)}function Nr(J,Oe,et){return yr(J,Oe,et,!1)}var So=Nr,tr=Ia;Th.Fragment=a,Th.jsx=So,Th.jsxs=tr}()),Th}process.env.NODE_ENV==="production"?C3.exports=VD():C3.exports=$D();var C=C3.exports,E3={exports:{}},Fo={},Mv={exports:{}},_3={};/**
70
+ * @license React
71
+ * scheduler.production.min.js
72
+ *
73
+ * Copyright (c) Facebook, Inc. and its affiliates.
74
+ *
75
+ * This source code is licensed under the MIT license found in the
76
+ * LICENSE file in the root directory of this source tree.
77
+ */var fw;function ZD(){return fw||(fw=1,function(e){function t(K,ye){var U=K.length;K.push(ye);e:for(;0<U;){var X=U-1>>>1,ie=K[X];if(0<i(ie,ye))K[X]=ye,K[U]=ie,U=X;else break e}}function n(K){return K.length===0?null:K[0]}function a(K){if(K.length===0)return null;var ye=K[0],U=K.pop();if(U!==ye){K[0]=U;e:for(var X=0,ie=K.length,$=ie>>>1;X<$;){var Ue=2*(X+1)-1,Ke=K[Ue],De=Ue+1,Ee=K[De];if(0>i(Ke,U))De<ie&&0>i(Ee,Ke)?(K[X]=Ee,K[De]=U,X=De):(K[X]=Ke,K[Ue]=U,X=Ue);else if(De<ie&&0>i(Ee,U))K[X]=Ee,K[De]=U,X=De;else break e}}return ye}function i(K,ye){var U=K.sortIndex-ye.sortIndex;return U!==0?U:K.id-ye.id}if(typeof performance=="object"&&typeof performance.now=="function"){var l=performance;e.unstable_now=function(){return l.now()}}else{var u=Date,f=u.now();e.unstable_now=function(){return u.now()-f}}var h=[],g=[],x=1,y=null,k=3,b=!1,_=!1,R=!1,M=typeof setTimeout=="function"?setTimeout:null,L=typeof clearTimeout=="function"?clearTimeout:null,P=typeof setImmediate!="undefined"?setImmediate:null;typeof navigator!="undefined"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function F(K){for(var ye=n(g);ye!==null;){if(ye.callback===null)a(g);else if(ye.startTime<=K)a(g),ye.sortIndex=ye.expirationTime,t(h,ye);else break;ye=n(g)}}function D(K){if(R=!1,F(K),!_)if(n(h)!==null)_=!0,Te(V);else{var ye=n(g);ye!==null&&ve(D,ye.startTime-K)}}function V(K,ye){_=!1,R&&(R=!1,L(q),q=-1),b=!0;var U=k;try{for(F(ye),y=n(h);y!==null&&(!(y.expirationTime>ye)||K&&!ge());){var X=y.callback;if(typeof X=="function"){y.callback=null,k=y.priorityLevel;var ie=X(y.expirationTime<=ye);ye=e.unstable_now(),typeof ie=="function"?y.callback=ie:y===n(h)&&a(h),F(ye)}else a(h);y=n(h)}if(y!==null)var $=!0;else{var Ue=n(g);Ue!==null&&ve(D,Ue.startTime-ye),$=!1}return $}finally{y=null,k=U,b=!1}}var H=!1,Z=null,q=-1,ae=5,_e=-1;function ge(){return!(e.unstable_now()-_e<ae)}function he(){if(Z!==null){var K=e.unstable_now();_e=K;var ye=!0;try{ye=Z(!0,K)}finally{ye?we():(H=!1,Z=null)}}else H=!1}var we;if(typeof P=="function")we=function(){P(he)};else if(typeof MessageChannel!="undefined"){var Ne=new MessageChannel,xe=Ne.port2;Ne.port1.onmessage=he,we=function(){xe.postMessage(null)}}else we=function(){M(he,0)};function Te(K){Z=K,H||(H=!0,we())}function ve(K,ye){q=M(function(){K(e.unstable_now())},ye)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(K){K.callback=null},e.unstable_continueExecution=function(){_||b||(_=!0,Te(V))},e.unstable_forceFrameRate=function(K){0>K||125<K?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ae=0<K?Math.floor(1e3/K):5},e.unstable_getCurrentPriorityLevel=function(){return k},e.unstable_getFirstCallbackNode=function(){return n(h)},e.unstable_next=function(K){switch(k){case 1:case 2:case 3:var ye=3;break;default:ye=k}var U=k;k=ye;try{return K()}finally{k=U}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(K,ye){switch(K){case 1:case 2:case 3:case 4:case 5:break;default:K=3}var U=k;k=K;try{return ye()}finally{k=U}},e.unstable_scheduleCallback=function(K,ye,U){var X=e.unstable_now();switch(typeof U=="object"&&U!==null?(U=U.delay,U=typeof U=="number"&&0<U?X+U:X):U=X,K){case 1:var ie=-1;break;case 2:ie=250;break;case 5:ie=1073741823;break;case 4:ie=1e4;break;default:ie=5e3}return ie=U+ie,K={id:x++,callback:ye,priorityLevel:K,startTime:U,expirationTime:ie,sortIndex:-1},U>X?(K.sortIndex=U,t(g,K),n(h)===null&&K===n(g)&&(R?(L(q),q=-1):R=!0,ve(D,U-X))):(K.sortIndex=ie,t(h,K),_||b||(_=!0,Te(V))),K},e.unstable_shouldYield=ge,e.unstable_wrapCallback=function(K){var ye=k;return function(){var U=k;k=ye;try{return K.apply(this,arguments)}finally{k=U}}}}(_3)),_3}var T3={};/**
78
+ * @license React
79
+ * scheduler.development.js
80
+ *
81
+ * Copyright (c) Facebook, Inc. and its affiliates.
82
+ *
83
+ * This source code is licensed under the MIT license found in the
84
+ * LICENSE file in the root directory of this source tree.
85
+ */var pw;function WD(){return pw||(pw=1,function(e){process.env.NODE_ENV!=="production"&&function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__!="undefined"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var t=!1,n=5;function a(Ae,Ye){var Nt=Ae.length;Ae.push(Ye),u(Ae,Ye,Nt)}function i(Ae){return Ae.length===0?null:Ae[0]}function l(Ae){if(Ae.length===0)return null;var Ye=Ae[0],Nt=Ae.pop();return Nt!==Ye&&(Ae[0]=Nt,f(Ae,Nt,0)),Ye}function u(Ae,Ye,Nt){for(var xt=Nt;xt>0;){var Kt=xt-1>>>1,ln=Ae[Kt];if(h(ln,Ye)>0)Ae[Kt]=Ye,Ae[xt]=ln,xt=Kt;else return}}function f(Ae,Ye,Nt){for(var xt=Nt,Kt=Ae.length,ln=Kt>>>1;xt<ln;){var Qt=(xt+1)*2-1,Qn=Ae[Qt],dn=Qt+1,En=Ae[dn];if(h(Qn,Ye)<0)dn<Kt&&h(En,Qn)<0?(Ae[xt]=En,Ae[dn]=Ye,xt=dn):(Ae[xt]=Qn,Ae[Qt]=Ye,xt=Qt);else if(dn<Kt&&h(En,Ye)<0)Ae[xt]=En,Ae[dn]=Ye,xt=dn;else return}}function h(Ae,Ye){var Nt=Ae.sortIndex-Ye.sortIndex;return Nt!==0?Nt:Ae.id-Ye.id}var g=1,x=2,y=3,k=4,b=5;function _(Ae,Ye){}var R=typeof performance=="object"&&typeof performance.now=="function";if(R){var M=performance;e.unstable_now=function(){return M.now()}}else{var L=Date,P=L.now();e.unstable_now=function(){return L.now()-P}}var F=1073741823,D=-1,V=250,H=5e3,Z=1e4,q=F,ae=[],_e=[],ge=1,he=null,we=y,Ne=!1,xe=!1,Te=!1,ve=typeof setTimeout=="function"?setTimeout:null,K=typeof clearTimeout=="function"?clearTimeout:null,ye=typeof setImmediate!="undefined"?setImmediate:null;typeof navigator!="undefined"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function U(Ae){for(var Ye=i(_e);Ye!==null;){if(Ye.callback===null)l(_e);else if(Ye.startTime<=Ae)l(_e),Ye.sortIndex=Ye.expirationTime,a(ae,Ye);else return;Ye=i(_e)}}function X(Ae){if(Te=!1,U(Ae),!xe)if(i(ae)!==null)xe=!0,$n(ie);else{var Ye=i(_e);Ye!==null&&me(X,Ye.startTime-Ae)}}function ie(Ae,Ye){xe=!1,Te&&(Te=!1,Me()),Ne=!0;var Nt=we;try{var xt;if(!t)return $(Ae,Ye)}finally{he=null,we=Nt,Ne=!1}}function $(Ae,Ye){var Nt=Ye;for(U(Nt),he=i(ae);he!==null&&!(he.expirationTime>Nt&&(!Ae||jn()));){var xt=he.callback;if(typeof xt=="function"){he.callback=null,we=he.priorityLevel;var Kt=he.expirationTime<=Nt,ln=xt(Kt);Nt=e.unstable_now(),typeof ln=="function"?he.callback=ln:he===i(ae)&&l(ae),U(Nt)}else l(ae);he=i(ae)}if(he!==null)return!0;var Qt=i(_e);return Qt!==null&&me(X,Qt.startTime-Nt),!1}function Ue(Ae,Ye){switch(Ae){case g:case x:case y:case k:case b:break;default:Ae=y}var Nt=we;we=Ae;try{return Ye()}finally{we=Nt}}function Ke(Ae){var Ye;switch(we){case g:case x:case y:Ye=y;break;default:Ye=we;break}var Nt=we;we=Ye;try{return Ae()}finally{we=Nt}}function De(Ae){var Ye=we;return function(){var Nt=we;we=Ye;try{return Ae.apply(this,arguments)}finally{we=Nt}}}function Ee(Ae,Ye,Nt){var xt=e.unstable_now(),Kt;if(typeof Nt=="object"&&Nt!==null){var ln=Nt.delay;typeof ln=="number"&&ln>0?Kt=xt+ln:Kt=xt}else Kt=xt;var Qt;switch(Ae){case g:Qt=D;break;case x:Qt=V;break;case b:Qt=q;break;case k:Qt=Z;break;case y:default:Qt=H;break}var Qn=Kt+Qt,dn={id:ge++,callback:Ye,priorityLevel:Ae,startTime:Kt,expirationTime:Qn,sortIndex:-1};return Kt>xt?(dn.sortIndex=Kt,a(_e,dn),i(ae)===null&&dn===i(_e)&&(Te?Me():Te=!0,me(X,Kt-xt))):(dn.sortIndex=Qn,a(ae,dn),!xe&&!Ne&&(xe=!0,$n(ie))),dn}function Ze(){}function Qe(){!xe&&!Ne&&(xe=!0,$n(ie))}function qe(){return i(ae)}function tt(Ae){Ae.callback=null}function Et(){return we}var bt=!1,ct=null,yt=-1,Pt=n,St=-1;function jn(){var Ae=e.unstable_now()-St;return!(Ae<Pt)}function Hn(){}function Be(Ae){if(Ae<0||Ae>125){console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported");return}Ae>0?Pt=Math.floor(1e3/Ae):Pt=n}var At=function(){if(ct!==null){var Ae=e.unstable_now();St=Ae;var Ye=!0,Nt=!0;try{Nt=ct(Ye,Ae)}finally{Nt?Pn():(bt=!1,ct=null)}}else bt=!1},Pn;if(typeof ye=="function")Pn=function(){ye(At)};else if(typeof MessageChannel!="undefined"){var Wt=new MessageChannel,hr=Wt.port2;Wt.port1.onmessage=At,Pn=function(){hr.postMessage(null)}}else Pn=function(){ve(At,0)};function $n(Ae){ct=Ae,bt||(bt=!0,Pn())}function me(Ae,Ye){yt=ve(function(){Ae(e.unstable_now())},Ye)}function Me(){K(yt),yt=-1}var dt=Hn,It=null;e.unstable_IdlePriority=b,e.unstable_ImmediatePriority=g,e.unstable_LowPriority=k,e.unstable_NormalPriority=y,e.unstable_Profiling=It,e.unstable_UserBlockingPriority=x,e.unstable_cancelCallback=tt,e.unstable_continueExecution=Qe,e.unstable_forceFrameRate=Be,e.unstable_getCurrentPriorityLevel=Et,e.unstable_getFirstCallbackNode=qe,e.unstable_next=Ke,e.unstable_pauseExecution=Ze,e.unstable_requestPaint=dt,e.unstable_runWithPriority=Ue,e.unstable_scheduleCallback=Ee,e.unstable_shouldYield=jn,e.unstable_wrapCallback=De,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__!="undefined"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()}(T3)),T3}var hw;function mw(){return hw||(hw=1,process.env.NODE_ENV==="production"?Mv.exports=ZD():Mv.exports=WD()),Mv.exports}/**
86
+ * @license React
87
+ * react-dom.production.min.js
88
+ *
89
+ * Copyright (c) Facebook, Inc. and its affiliates.
90
+ *
91
+ * This source code is licensed under the MIT license found in the
92
+ * LICENSE file in the root directory of this source tree.
93
+ */var gw;function qD(){if(gw)return Fo;gw=1;var e=O,t=mw();function n(s){for(var c="https://reactjs.org/docs/error-decoder.html?invariant="+s,m=1;m<arguments.length;m++)c+="&args[]="+encodeURIComponent(arguments[m]);return"Minified React error #"+s+"; visit "+c+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var a=new Set,i={};function l(s,c){u(s,c),u(s+"Capture",c)}function u(s,c){for(i[s]=c,s=0;s<c.length;s++)a.add(c[s])}var f=!(typeof window=="undefined"||typeof window.document=="undefined"||typeof window.document.createElement=="undefined"),h=Object.prototype.hasOwnProperty,g=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,x={},y={};function k(s){return h.call(y,s)?!0:h.call(x,s)?!1:g.test(s)?y[s]=!0:(x[s]=!0,!1)}function b(s,c,m,w){if(m!==null&&m.type===0)return!1;switch(typeof c){case"function":case"symbol":return!0;case"boolean":return w?!1:m!==null?!m.acceptsBooleans:(s=s.toLowerCase().slice(0,5),s!=="data-"&&s!=="aria-");default:return!1}}function _(s,c,m,w){if(c===null||typeof c=="undefined"||b(s,c,m,w))return!0;if(w)return!1;if(m!==null)switch(m.type){case 3:return!c;case 4:return c===!1;case 5:return isNaN(c);case 6:return isNaN(c)||1>c}return!1}function R(s,c,m,w,E,A,z){this.acceptsBooleans=c===2||c===3||c===4,this.attributeName=w,this.attributeNamespace=E,this.mustUseProperty=m,this.propertyName=s,this.type=c,this.sanitizeURL=A,this.removeEmptyString=z}var M={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(s){M[s]=new R(s,0,!1,s,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(s){var c=s[0];M[c]=new R(c,1,!1,s[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(s){M[s]=new R(s,2,!1,s.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(s){M[s]=new R(s,2,!1,s,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(s){M[s]=new R(s,3,!1,s.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(s){M[s]=new R(s,3,!0,s,null,!1,!1)}),["capture","download"].forEach(function(s){M[s]=new R(s,4,!1,s,null,!1,!1)}),["cols","rows","size","span"].forEach(function(s){M[s]=new R(s,6,!1,s,null,!1,!1)}),["rowSpan","start"].forEach(function(s){M[s]=new R(s,5,!1,s.toLowerCase(),null,!1,!1)});var L=/[\-:]([a-z])/g;function P(s){return s[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(s){var c=s.replace(L,P);M[c]=new R(c,1,!1,s,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(s){var c=s.replace(L,P);M[c]=new R(c,1,!1,s,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(s){var c=s.replace(L,P);M[c]=new R(c,1,!1,s,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(s){M[s]=new R(s,1,!1,s.toLowerCase(),null,!1,!1)}),M.xlinkHref=new R("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(s){M[s]=new R(s,1,!1,s.toLowerCase(),null,!0,!0)});function F(s,c,m,w){var E=M.hasOwnProperty(c)?M[c]:null;(E!==null?E.type!==0:w||!(2<c.length)||c[0]!=="o"&&c[0]!=="O"||c[1]!=="n"&&c[1]!=="N")&&(_(c,m,E,w)&&(m=null),w||E===null?k(c)&&(m===null?s.removeAttribute(c):s.setAttribute(c,""+m)):E.mustUseProperty?s[E.propertyName]=m===null?E.type===3?!1:"":m:(c=E.attributeName,w=E.attributeNamespace,m===null?s.removeAttribute(c):(E=E.type,m=E===3||E===4&&m===!0?"":""+m,w?s.setAttributeNS(w,c,m):s.setAttribute(c,m))))}var D=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,V=Symbol.for("react.element"),H=Symbol.for("react.portal"),Z=Symbol.for("react.fragment"),q=Symbol.for("react.strict_mode"),ae=Symbol.for("react.profiler"),_e=Symbol.for("react.provider"),ge=Symbol.for("react.context"),he=Symbol.for("react.forward_ref"),we=Symbol.for("react.suspense"),Ne=Symbol.for("react.suspense_list"),xe=Symbol.for("react.memo"),Te=Symbol.for("react.lazy"),ve=Symbol.for("react.offscreen"),K=Symbol.iterator;function ye(s){return s===null||typeof s!="object"?null:(s=K&&s[K]||s["@@iterator"],typeof s=="function"?s:null)}var U=Object.assign,X;function ie(s){if(X===void 0)try{throw Error()}catch(m){var c=m.stack.trim().match(/\n( *(at )?)/);X=c&&c[1]||""}return`
94
+ `+X+s}var $=!1;function Ue(s,c){if(!s||$)return"";$=!0;var m=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(c)if(c=function(){throw Error()},Object.defineProperty(c.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(c,[])}catch(fe){var w=fe}Reflect.construct(s,[],c)}else{try{c.call()}catch(fe){w=fe}s.call(c.prototype)}else{try{throw Error()}catch(fe){w=fe}s()}}catch(fe){if(fe&&w&&typeof fe.stack=="string"){for(var E=fe.stack.split(`
95
+ `),A=w.stack.split(`
96
+ `),z=E.length-1,G=A.length-1;1<=z&&0<=G&&E[z]!==A[G];)G--;for(;1<=z&&0<=G;z--,G--)if(E[z]!==A[G]){if(z!==1||G!==1)do if(z--,G--,0>G||E[z]!==A[G]){var Q=`
97
+ `+E[z].replace(" at new "," at ");return s.displayName&&Q.includes("<anonymous>")&&(Q=Q.replace("<anonymous>",s.displayName)),Q}while(1<=z&&0<=G);break}}}finally{$=!1,Error.prepareStackTrace=m}return(s=s?s.displayName||s.name:"")?ie(s):""}function Ke(s){switch(s.tag){case 5:return ie(s.type);case 16:return ie("Lazy");case 13:return ie("Suspense");case 19:return ie("SuspenseList");case 0:case 2:case 15:return s=Ue(s.type,!1),s;case 11:return s=Ue(s.type.render,!1),s;case 1:return s=Ue(s.type,!0),s;default:return""}}function De(s){if(s==null)return null;if(typeof s=="function")return s.displayName||s.name||null;if(typeof s=="string")return s;switch(s){case Z:return"Fragment";case H:return"Portal";case ae:return"Profiler";case q:return"StrictMode";case we:return"Suspense";case Ne:return"SuspenseList"}if(typeof s=="object")switch(s.$$typeof){case ge:return(s.displayName||"Context")+".Consumer";case _e:return(s._context.displayName||"Context")+".Provider";case he:var c=s.render;return s=s.displayName,s||(s=c.displayName||c.name||"",s=s!==""?"ForwardRef("+s+")":"ForwardRef"),s;case xe:return c=s.displayName||null,c!==null?c:De(s.type)||"Memo";case Te:c=s._payload,s=s._init;try{return De(s(c))}catch(m){}}return null}function Ee(s){var c=s.type;switch(s.tag){case 24:return"Cache";case 9:return(c.displayName||"Context")+".Consumer";case 10:return(c._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return s=c.render,s=s.displayName||s.name||"",c.displayName||(s!==""?"ForwardRef("+s+")":"ForwardRef");case 7:return"Fragment";case 5:return c;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return De(c);case 8:return c===q?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof c=="function")return c.displayName||c.name||null;if(typeof c=="string")return c}return null}function Ze(s){switch(typeof s){case"boolean":case"number":case"string":case"undefined":return s;case"object":return s;default:return""}}function Qe(s){var c=s.type;return(s=s.nodeName)&&s.toLowerCase()==="input"&&(c==="checkbox"||c==="radio")}function qe(s){var c=Qe(s)?"checked":"value",m=Object.getOwnPropertyDescriptor(s.constructor.prototype,c),w=""+s[c];if(!s.hasOwnProperty(c)&&typeof m!="undefined"&&typeof m.get=="function"&&typeof m.set=="function"){var E=m.get,A=m.set;return Object.defineProperty(s,c,{configurable:!0,get:function(){return E.call(this)},set:function(z){w=""+z,A.call(this,z)}}),Object.defineProperty(s,c,{enumerable:m.enumerable}),{getValue:function(){return w},setValue:function(z){w=""+z},stopTracking:function(){s._valueTracker=null,delete s[c]}}}}function tt(s){s._valueTracker||(s._valueTracker=qe(s))}function Et(s){if(!s)return!1;var c=s._valueTracker;if(!c)return!0;var m=c.getValue(),w="";return s&&(w=Qe(s)?s.checked?"true":"false":s.value),s=w,s!==m?(c.setValue(s),!0):!1}function bt(s){if(s=s||(typeof document!="undefined"?document:void 0),typeof s=="undefined")return null;try{return s.activeElement||s.body}catch(c){return s.body}}function ct(s,c){var m=c.checked;return U({},c,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:m!=null?m:s._wrapperState.initialChecked})}function yt(s,c){var m=c.defaultValue==null?"":c.defaultValue,w=c.checked!=null?c.checked:c.defaultChecked;m=Ze(c.value!=null?c.value:m),s._wrapperState={initialChecked:w,initialValue:m,controlled:c.type==="checkbox"||c.type==="radio"?c.checked!=null:c.value!=null}}function Pt(s,c){c=c.checked,c!=null&&F(s,"checked",c,!1)}function St(s,c){Pt(s,c);var m=Ze(c.value),w=c.type;if(m!=null)w==="number"?(m===0&&s.value===""||s.value!=m)&&(s.value=""+m):s.value!==""+m&&(s.value=""+m);else if(w==="submit"||w==="reset"){s.removeAttribute("value");return}c.hasOwnProperty("value")?Hn(s,c.type,m):c.hasOwnProperty("defaultValue")&&Hn(s,c.type,Ze(c.defaultValue)),c.checked==null&&c.defaultChecked!=null&&(s.defaultChecked=!!c.defaultChecked)}function jn(s,c,m){if(c.hasOwnProperty("value")||c.hasOwnProperty("defaultValue")){var w=c.type;if(!(w!=="submit"&&w!=="reset"||c.value!==void 0&&c.value!==null))return;c=""+s._wrapperState.initialValue,m||c===s.value||(s.value=c),s.defaultValue=c}m=s.name,m!==""&&(s.name=""),s.defaultChecked=!!s._wrapperState.initialChecked,m!==""&&(s.name=m)}function Hn(s,c,m){(c!=="number"||bt(s.ownerDocument)!==s)&&(m==null?s.defaultValue=""+s._wrapperState.initialValue:s.defaultValue!==""+m&&(s.defaultValue=""+m))}var Be=Array.isArray;function At(s,c,m,w){if(s=s.options,c){c={};for(var E=0;E<m.length;E++)c["$"+m[E]]=!0;for(m=0;m<s.length;m++)E=c.hasOwnProperty("$"+s[m].value),s[m].selected!==E&&(s[m].selected=E),E&&w&&(s[m].defaultSelected=!0)}else{for(m=""+Ze(m),c=null,E=0;E<s.length;E++){if(s[E].value===m){s[E].selected=!0,w&&(s[E].defaultSelected=!0);return}c!==null||s[E].disabled||(c=s[E])}c!==null&&(c.selected=!0)}}function Pn(s,c){if(c.dangerouslySetInnerHTML!=null)throw Error(n(91));return U({},c,{value:void 0,defaultValue:void 0,children:""+s._wrapperState.initialValue})}function Wt(s,c){var m=c.value;if(m==null){if(m=c.children,c=c.defaultValue,m!=null){if(c!=null)throw Error(n(92));if(Be(m)){if(1<m.length)throw Error(n(93));m=m[0]}c=m}c==null&&(c=""),m=c}s._wrapperState={initialValue:Ze(m)}}function hr(s,c){var m=Ze(c.value),w=Ze(c.defaultValue);m!=null&&(m=""+m,m!==s.value&&(s.value=m),c.defaultValue==null&&s.defaultValue!==m&&(s.defaultValue=m)),w!=null&&(s.defaultValue=""+w)}function $n(s){var c=s.textContent;c===s._wrapperState.initialValue&&c!==""&&c!==null&&(s.value=c)}function me(s){switch(s){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Me(s,c){return s==null||s==="http://www.w3.org/1999/xhtml"?me(c):s==="http://www.w3.org/2000/svg"&&c==="foreignObject"?"http://www.w3.org/1999/xhtml":s}var dt,It=function(s){return typeof MSApp!="undefined"&&MSApp.execUnsafeLocalFunction?function(c,m,w,E){MSApp.execUnsafeLocalFunction(function(){return s(c,m,w,E)})}:s}(function(s,c){if(s.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in s)s.innerHTML=c;else{for(dt=dt||document.createElement("div"),dt.innerHTML="<svg>"+c.valueOf().toString()+"</svg>",c=dt.firstChild;s.firstChild;)s.removeChild(s.firstChild);for(;c.firstChild;)s.appendChild(c.firstChild)}});function Ae(s,c){if(c){var m=s.firstChild;if(m&&m===s.lastChild&&m.nodeType===3){m.nodeValue=c;return}}s.textContent=c}var Ye={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Nt=["Webkit","ms","Moz","O"];Object.keys(Ye).forEach(function(s){Nt.forEach(function(c){c=c+s.charAt(0).toUpperCase()+s.substring(1),Ye[c]=Ye[s]})});function xt(s,c,m){return c==null||typeof c=="boolean"||c===""?"":m||typeof c!="number"||c===0||Ye.hasOwnProperty(s)&&Ye[s]?(""+c).trim():c+"px"}function Kt(s,c){s=s.style;for(var m in c)if(c.hasOwnProperty(m)){var w=m.indexOf("--")===0,E=xt(m,c[m],w);m==="float"&&(m="cssFloat"),w?s.setProperty(m,E):s[m]=E}}var ln=U({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Qt(s,c){if(c){if(ln[s]&&(c.children!=null||c.dangerouslySetInnerHTML!=null))throw Error(n(137,s));if(c.dangerouslySetInnerHTML!=null){if(c.children!=null)throw Error(n(60));if(typeof c.dangerouslySetInnerHTML!="object"||!("__html"in c.dangerouslySetInnerHTML))throw Error(n(61))}if(c.style!=null&&typeof c.style!="object")throw Error(n(62))}}function Qn(s,c){if(s.indexOf("-")===-1)return typeof c.is=="string";switch(s){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var dn=null;function En(s){return s=s.target||s.srcElement||window,s.correspondingUseElement&&(s=s.correspondingUseElement),s.nodeType===3?s.parentNode:s}var Rn=null,fa=null,Fr=null;function Jr(s){if(s=Tt(s)){if(typeof Rn!="function")throw Error(n(280));var c=s.stateNode;c&&(c=wr(c),Rn(s.stateNode,s.type,c))}}function Rr(s){fa?Fr?Fr.push(s):Fr=[s]:fa=s}function vi(){if(fa){var s=fa,c=Fr;if(Fr=fa=null,Jr(s),c)for(s=0;s<c.length;s++)Jr(c[s])}}function Bi(s,c){return s(c)}function Xr(){}var yi=!1;function _t(s,c,m){if(yi)return s(c,m);yi=!0;try{return Bi(s,c,m)}finally{yi=!1,(fa!==null||Fr!==null)&&(Xr(),vi())}}function _n(s,c){var m=s.stateNode;if(m===null)return null;var w=wr(m);if(w===null)return null;m=w[c];e:switch(c){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(w=!w.disabled)||(s=s.type,w=!(s==="button"||s==="input"||s==="select"||s==="textarea")),s=!w;break e;default:s=!1}if(s)return null;if(m&&typeof m!="function")throw Error(n(231,c,typeof m));return m}var Ar=!1;if(f)try{var yr={};Object.defineProperty(yr,"passive",{get:function(){Ar=!0}}),window.addEventListener("test",yr,yr),window.removeEventListener("test",yr,yr)}catch(s){Ar=!1}function Ia(s,c,m,w,E,A,z,G,Q){var fe=Array.prototype.slice.call(arguments,3);try{c.apply(m,fe)}catch(je){this.onError(je)}}var Nr=!1,So=null,tr=!1,J=null,Oe={onError:function(s){Nr=!0,So=s}};function et(s,c,m,w,E,A,z,G,Q){Nr=!1,So=null,Ia.apply(Oe,arguments)}function ut(s,c,m,w,E,A,z,G,Q){if(et.apply(this,arguments),Nr){if(Nr){var fe=So;Nr=!1,So=null}else throw Error(n(198));tr||(tr=!0,J=fe)}}function Gt(s){var c=s,m=s;if(s.alternate)for(;c.return;)c=c.return;else{s=c;do c=s,c.flags&4098&&(m=c.return),s=c.return;while(s)}return c.tag===3?m:null}function Ht(s){if(s.tag===13){var c=s.memoizedState;if(c===null&&(s=s.alternate,s!==null&&(c=s.memoizedState)),c!==null)return c.dehydrated}return null}function un(s){if(Gt(s)!==s)throw Error(n(188))}function an(s){var c=s.alternate;if(!c){if(c=Gt(s),c===null)throw Error(n(188));return c!==s?null:s}for(var m=s,w=c;;){var E=m.return;if(E===null)break;var A=E.alternate;if(A===null){if(w=E.return,w!==null){m=w;continue}break}if(E.child===A.child){for(A=E.child;A;){if(A===m)return un(E),s;if(A===w)return un(E),c;A=A.sibling}throw Error(n(188))}if(m.return!==w.return)m=E,w=A;else{for(var z=!1,G=E.child;G;){if(G===m){z=!0,m=E,w=A;break}if(G===w){z=!0,w=E,m=A;break}G=G.sibling}if(!z){for(G=A.child;G;){if(G===m){z=!0,m=A,w=E;break}if(G===w){z=!0,w=A,m=E;break}G=G.sibling}if(!z)throw Error(n(189))}}if(m.alternate!==w)throw Error(n(190))}if(m.tag!==3)throw Error(n(188));return m.stateNode.current===m?s:c}function Mr(s){return s=an(s),s!==null?nr(s):null}function nr(s){if(s.tag===5||s.tag===6)return s;for(s=s.child;s!==null;){var c=nr(s);if(c!==null)return c;s=s.sibling}return null}var ir=t.unstable_scheduleCallback,pa=t.unstable_cancelCallback,xi=t.unstable_shouldYield,wi=t.unstable_requestPaint,Yt=t.unstable_now,en=t.unstable_getCurrentPriorityLevel,bi=t.unstable_ImmediatePriority,tu=t.unstable_UserBlockingPriority,nu=t.unstable_NormalPriority,sl=t.unstable_LowPriority,fc=t.unstable_IdlePriority,ll=null,eo=null;function Id(s){if(eo&&typeof eo.onCommitFiberRoot=="function")try{eo.onCommitFiberRoot(ll,s,void 0,(s.current.flags&128)===128)}catch(c){}}var Da=Math.clz32?Math.clz32:pc,Up=Math.log,Bp=Math.LN2;function pc(s){return s>>>=0,s===0?32:31-(Up(s)/Bp|0)|0}var ul=64,ko=4194304;function Ci(s){switch(s&-s){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return s&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return s&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return s}}function Si(s,c){var m=s.pendingLanes;if(m===0)return 0;var w=0,E=s.suspendedLanes,A=s.pingedLanes,z=m&268435455;if(z!==0){var G=z&~E;G!==0?w=Ci(G):(A&=z,A!==0&&(w=Ci(A)))}else z=m&~E,z!==0?w=Ci(z):A!==0&&(w=Ci(A));if(w===0)return 0;if(c!==0&&c!==w&&!(c&E)&&(E=w&-w,A=c&-c,E>=A||E===16&&(A&4194240)!==0))return c;if(w&4&&(w|=m&16),c=s.entangledLanes,c!==0)for(s=s.entanglements,c&=w;0<c;)m=31-Da(c),E=1<<m,w|=s[m],c&=~E;return w}function hc(s,c){switch(s){case 1:case 2:case 4:return c+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return c+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function ru(s,c){for(var m=s.suspendedLanes,w=s.pingedLanes,E=s.expirationTimes,A=s.pendingLanes;0<A;){var z=31-Da(A),G=1<<z,Q=E[z];Q===-1?(!(G&m)||G&w)&&(E[z]=hc(G,c)):Q<=c&&(s.expiredLanes|=G),A&=~G}}function cl(s){return s=s.pendingLanes&-1073741825,s!==0?s:s&1073741824?1073741824:0}function mc(){var s=ul;return ul<<=1,!(ul&4194240)&&(ul=64),s}function gc(s){for(var c=[],m=0;31>m;m++)c.push(s);return c}function Cs(s,c,m){s.pendingLanes|=c,c!==536870912&&(s.suspendedLanes=0,s.pingedLanes=0),s=s.eventTimes,c=31-Da(c),s[c]=m}function Em(s,c){var m=s.pendingLanes&~c;s.pendingLanes=c,s.suspendedLanes=0,s.pingedLanes=0,s.expiredLanes&=c,s.mutableReadLanes&=c,s.entangledLanes&=c,c=s.entanglements;var w=s.eventTimes;for(s=s.expirationTimes;0<m;){var E=31-Da(m),A=1<<E;c[E]=0,w[E]=-1,s[E]=-1,m&=~A}}function Ss(s,c){var m=s.entangledLanes|=c;for(s=s.entanglements;m;){var w=31-Da(m),E=1<<w;E&c|s[w]&c&&(s[w]|=c),m&=~E}}var An=0;function vc(s){return s&=-s,1<s?4<s?s&268435455?16:536870912:4:1}var Cn,Dd,Hi,Bt,yc,ha=!1,Vi=[],ja=null,$i=null,sr=null,Zn=new Map,dl=new Map,Kr=[],Pa="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Wo(s,c){switch(s){case"focusin":case"focusout":ja=null;break;case"dragenter":case"dragleave":$i=null;break;case"mouseover":case"mouseout":sr=null;break;case"pointerover":case"pointerout":Zn.delete(c.pointerId);break;case"gotpointercapture":case"lostpointercapture":dl.delete(c.pointerId)}}function au(s,c,m,w,E,A){return s===null||s.nativeEvent!==A?(s={blockedOn:c,domEventName:m,eventSystemFlags:w,nativeEvent:A,targetContainers:[E]},c!==null&&(c=Tt(c),c!==null&&Dd(c)),s):(s.eventSystemFlags|=w,c=s.targetContainers,E!==null&&c.indexOf(E)===-1&&c.push(E),s)}function jd(s,c,m,w,E){switch(c){case"focusin":return ja=au(ja,s,c,m,w,E),!0;case"dragenter":return $i=au($i,s,c,m,w,E),!0;case"mouseover":return sr=au(sr,s,c,m,w,E),!0;case"pointerover":var A=E.pointerId;return Zn.set(A,au(Zn.get(A)||null,s,c,m,w,E)),!0;case"gotpointercapture":return A=E.pointerId,dl.set(A,au(dl.get(A)||null,s,c,m,w,E)),!0}return!1}function Pd(s){var c=pu(s.target);if(c!==null){var m=Gt(c);if(m!==null){if(c=m.tag,c===13){if(c=Ht(m),c!==null){s.blockedOn=c,yc(s.priority,function(){Hi(m)});return}}else if(c===3&&m.stateNode.current.memoizedState.isDehydrated){s.blockedOn=m.tag===3?m.stateNode.containerInfo:null;return}}}s.blockedOn=null}function fl(s){if(s.blockedOn!==null)return!1;for(var c=s.targetContainers;0<c.length;){var m=bc(s.domEventName,s.eventSystemFlags,c[0],s.nativeEvent);if(m===null){m=s.nativeEvent;var w=new m.constructor(m.type,m);dn=w,m.target.dispatchEvent(w),dn=null}else return c=Tt(m),c!==null&&Dd(c),s.blockedOn=m,!1;c.shift()}return!0}function ou(s,c,m){fl(s)&&m.delete(c)}function _m(){ha=!1,ja!==null&&fl(ja)&&(ja=null),$i!==null&&fl($i)&&($i=null),sr!==null&&fl(sr)&&(sr=null),Zn.forEach(ou),dl.forEach(ou)}function qo(s,c){s.blockedOn===c&&(s.blockedOn=null,ha||(ha=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,_m)))}function ki(s){function c(E){return qo(E,s)}if(0<Vi.length){qo(Vi[0],s);for(var m=1;m<Vi.length;m++){var w=Vi[m];w.blockedOn===s&&(w.blockedOn=null)}}for(ja!==null&&qo(ja,s),$i!==null&&qo($i,s),sr!==null&&qo(sr,s),Zn.forEach(c),dl.forEach(c),m=0;m<Kr.length;m++)w=Kr[m],w.blockedOn===s&&(w.blockedOn=null);for(;0<Kr.length&&(m=Kr[0],m.blockedOn===null);)Pd(m),m.blockedOn===null&&Kr.shift()}var Zi=D.ReactCurrentBatchConfig,Go=!0;function xc(s,c,m,w){var E=An,A=Zi.transition;Zi.transition=null;try{An=1,pl(s,c,m,w)}finally{An=E,Zi.transition=A}}function wc(s,c,m,w){var E=An,A=Zi.transition;Zi.transition=null;try{An=4,pl(s,c,m,w)}finally{An=E,Zi.transition=A}}function pl(s,c,m,w){if(Go){var E=bc(s,c,m,w);if(E===null)Qp(s,c,w,iu,m),Wo(s,w);else if(jd(E,s,c,m,w))w.stopPropagation();else if(Wo(s,w),c&4&&-1<Pa.indexOf(s)){for(;E!==null;){var A=Tt(E);if(A!==null&&Cn(A),A=bc(s,c,m,w),A===null&&Qp(s,c,w,iu,m),A===E)break;E=A}E!==null&&w.stopPropagation()}else Qp(s,c,w,null,m)}}var iu=null;function bc(s,c,m,w){if(iu=null,s=En(w),s=pu(s),s!==null)if(c=Gt(s),c===null)s=null;else if(m=c.tag,m===13){if(s=Ht(c),s!==null)return s;s=null}else if(m===3){if(c.stateNode.current.memoizedState.isDehydrated)return c.tag===3?c.stateNode.containerInfo:null;s=null}else c!==s&&(s=null);return iu=s,null}function Cc(s){switch(s){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(en()){case bi:return 1;case tu:return 4;case nu:case sl:return 16;case fc:return 536870912;default:return 16}default:return 16}}var Ei=null,j=null,Y=null;function de(){if(Y)return Y;var s,c=j,m=c.length,w,E="value"in Ei?Ei.value:Ei.textContent,A=E.length;for(s=0;s<m&&c[s]===E[s];s++);var z=m-s;for(w=1;w<=z&&c[m-w]===E[A-w];w++);return Y=E.slice(s,1<w?1-w:void 0)}function be(s){var c=s.keyCode;return"charCode"in s?(s=s.charCode,s===0&&c===13&&(s=13)):s=c,s===10&&(s=13),32<=s||s===13?s:0}function He(){return!0}function Mt(){return!1}function Xe(s){function c(m,w,E,A,z){this._reactName=m,this._targetInst=E,this.type=w,this.nativeEvent=A,this.target=z,this.currentTarget=null;for(var G in s)s.hasOwnProperty(G)&&(m=s[G],this[G]=m?m(A):A[G]);return this.isDefaultPrevented=(A.defaultPrevented!=null?A.defaultPrevented:A.returnValue===!1)?He:Mt,this.isPropagationStopped=Mt,this}return U(c.prototype,{preventDefault:function(){this.defaultPrevented=!0;var m=this.nativeEvent;m&&(m.preventDefault?m.preventDefault():typeof m.returnValue!="unknown"&&(m.returnValue=!1),this.isDefaultPrevented=He)},stopPropagation:function(){var m=this.nativeEvent;m&&(m.stopPropagation?m.stopPropagation():typeof m.cancelBubble!="unknown"&&(m.cancelBubble=!0),this.isPropagationStopped=He)},persist:function(){},isPersistent:He}),c}var Dt={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(s){return s.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},cn=Xe(Dt),Sn=U({},Dt,{view:0,detail:0}),rr=Xe(Sn),Wn,rn,qn,xr=U({},Sn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Mm,button:0,buttons:0,relatedTarget:function(s){return s.relatedTarget===void 0?s.fromElement===s.srcElement?s.toElement:s.fromElement:s.relatedTarget},movementX:function(s){return"movementX"in s?s.movementX:(s!==qn&&(qn&&s.type==="mousemove"?(Wn=s.screenX-qn.screenX,rn=s.screenY-qn.screenY):rn=Wn=0,qn=s),Wn)},movementY:function(s){return"movementY"in s?s.movementY:rn}}),hl=Xe(xr),Fd=U({},xr,{dataTransfer:0}),ks=Xe(Fd),zd=U({},Sn,{relatedTarget:0}),su=Xe(zd),Tm=U({},Dt,{animationName:0,elapsedTime:0,pseudoElement:0}),Hp=Xe(Tm),Rm=U({},Dt,{clipboardData:function(s){return"clipboardData"in s?s.clipboardData:window.clipboardData}}),M4=Xe(Rm),Am=U({},Dt,{data:0}),Nm=Xe(Am),O4={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},L4={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},V7={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Es(s){var c=this.nativeEvent;return c.getModifierState?c.getModifierState(s):(s=V7[s])?!!c[s]:!1}function Mm(){return Es}var Om=U({},Sn,{key:function(s){if(s.key){var c=O4[s.key]||s.key;if(c!=="Unidentified")return c}return s.type==="keypress"?(s=be(s),s===13?"Enter":String.fromCharCode(s)):s.type==="keydown"||s.type==="keyup"?L4[s.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Mm,charCode:function(s){return s.type==="keypress"?be(s):0},keyCode:function(s){return s.type==="keydown"||s.type==="keyup"?s.keyCode:0},which:function(s){return s.type==="keypress"?be(s):s.type==="keydown"||s.type==="keyup"?s.keyCode:0}}),Lm=Xe(Om),Im=U({},xr,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),I4=Xe(Im),Vp=U({},Sn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Mm}),D4=Xe(Vp),to=U({},Dt,{propertyName:0,elapsedTime:0,pseudoElement:0}),_s=Xe(to),zr=U({},xr,{deltaX:function(s){return"deltaX"in s?s.deltaX:"wheelDeltaX"in s?-s.wheelDeltaX:0},deltaY:function(s){return"deltaY"in s?s.deltaY:"wheelDeltaY"in s?-s.wheelDeltaY:"wheelDelta"in s?-s.wheelDelta:0},deltaZ:0,deltaMode:0}),Ts=Xe(zr),Dm=[9,13,27,32],Sc=f&&"CompositionEvent"in window,Ud=null;f&&"documentMode"in document&&(Ud=document.documentMode);var Bd=f&&"TextEvent"in window&&!Ud,j4=f&&(!Sc||Ud&&8<Ud&&11>=Ud),P4=" ",$p=!1;function F4(s,c){switch(s){case"keyup":return Dm.indexOf(c.keyCode)!==-1;case"keydown":return c.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function z4(s){return s=s.detail,typeof s=="object"&&"data"in s?s.data:null}var kc=!1;function U4(s,c){switch(s){case"compositionend":return z4(c);case"keypress":return c.which!==32?null:($p=!0,P4);case"textInput":return s=c.data,s===P4&&$p?null:s;default:return null}}function $7(s,c){if(kc)return s==="compositionend"||!Sc&&F4(s,c)?(s=de(),Y=j=Ei=null,kc=!1,s):null;switch(s){case"paste":return null;case"keypress":if(!(c.ctrlKey||c.altKey||c.metaKey)||c.ctrlKey&&c.altKey){if(c.char&&1<c.char.length)return c.char;if(c.which)return String.fromCharCode(c.which)}return null;case"compositionend":return j4&&c.locale!=="ko"?null:c.data;default:return null}}var Z7={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function B4(s){var c=s&&s.nodeName&&s.nodeName.toLowerCase();return c==="input"?!!Z7[s.type]:c==="textarea"}function jm(s,c,m,w){Rr(w),c=qd(c,"onChange"),0<c.length&&(m=new cn("onChange","change",null,m,w),s.push({event:m,listeners:c}))}var Wi=null,lu=null;function H4(s){du(s,0)}function Hd(s){var c=Ti(s);if(Et(c))return s}function W7(s,c){if(s==="change")return c}var V4=!1;if(f){var Pm;if(f){var Fm="oninput"in document;if(!Fm){var $4=document.createElement("div");$4.setAttribute("oninput","return;"),Fm=typeof $4.oninput=="function"}Pm=Fm}else Pm=!1;V4=Pm&&(!document.documentMode||9<document.documentMode)}function Z4(){Wi&&(Wi.detachEvent("onpropertychange",W4),lu=Wi=null)}function W4(s){if(s.propertyName==="value"&&Hd(lu)){var c=[];jm(c,lu,s,En(s)),_t(H4,c)}}function q7(s,c,m){s==="focusin"?(Z4(),Wi=c,lu=m,Wi.attachEvent("onpropertychange",W4)):s==="focusout"&&Z4()}function q4(s){if(s==="selectionchange"||s==="keyup"||s==="keydown")return Hd(lu)}function G7(s,c){if(s==="click")return Hd(c)}function G4(s,c){if(s==="input"||s==="change")return Hd(c)}function Y7(s,c){return s===c&&(s!==0||1/s===1/c)||s!==s&&c!==c}var _i=typeof Object.is=="function"?Object.is:Y7;function Vd(s,c){if(_i(s,c))return!0;if(typeof s!="object"||s===null||typeof c!="object"||c===null)return!1;var m=Object.keys(s),w=Object.keys(c);if(m.length!==w.length)return!1;for(w=0;w<m.length;w++){var E=m[w];if(!h.call(c,E)||!_i(s[E],c[E]))return!1}return!0}function Y4(s){for(;s&&s.firstChild;)s=s.firstChild;return s}function Zp(s,c){var m=Y4(s);s=0;for(var w;m;){if(m.nodeType===3){if(w=s+m.textContent.length,s<=c&&w>=c)return{node:m,offset:c-s};s=w}e:{for(;m;){if(m.nextSibling){m=m.nextSibling;break e}m=m.parentNode}m=void 0}m=Y4(m)}}function ml(s,c){return s&&c?s===c?!0:s&&s.nodeType===3?!1:c&&c.nodeType===3?ml(s,c.parentNode):"contains"in s?s.contains(c):s.compareDocumentPosition?!!(s.compareDocumentPosition(c)&16):!1:!1}function $d(){for(var s=window,c=bt();c instanceof s.HTMLIFrameElement;){try{var m=typeof c.contentWindow.location.href=="string"}catch(w){m=!1}if(m)s=c.contentWindow;else break;c=bt(s.document)}return c}function Wp(s){var c=s&&s.nodeName&&s.nodeName.toLowerCase();return c&&(c==="input"&&(s.type==="text"||s.type==="search"||s.type==="tel"||s.type==="url"||s.type==="password")||c==="textarea"||s.contentEditable==="true")}function Ec(s){var c=$d(),m=s.focusedElem,w=s.selectionRange;if(c!==m&&m&&m.ownerDocument&&ml(m.ownerDocument.documentElement,m)){if(w!==null&&Wp(m)){if(c=w.start,s=w.end,s===void 0&&(s=c),"selectionStart"in m)m.selectionStart=c,m.selectionEnd=Math.min(s,m.value.length);else if(s=(c=m.ownerDocument||document)&&c.defaultView||window,s.getSelection){s=s.getSelection();var E=m.textContent.length,A=Math.min(w.start,E);w=w.end===void 0?A:Math.min(w.end,E),!s.extend&&A>w&&(E=w,w=A,A=E),E=Zp(m,A);var z=Zp(m,w);E&&z&&(s.rangeCount!==1||s.anchorNode!==E.node||s.anchorOffset!==E.offset||s.focusNode!==z.node||s.focusOffset!==z.offset)&&(c=c.createRange(),c.setStart(E.node,E.offset),s.removeAllRanges(),A>w?(s.addRange(c),s.extend(z.node,z.offset)):(c.setEnd(z.node,z.offset),s.addRange(c)))}}for(c=[],s=m;s=s.parentNode;)s.nodeType===1&&c.push({element:s,left:s.scrollLeft,top:s.scrollTop});for(typeof m.focus=="function"&&m.focus(),m=0;m<c.length;m++)s=c[m],s.element.scrollLeft=s.left,s.element.scrollTop=s.top}}var J7=f&&"documentMode"in document&&11>=document.documentMode,_c=null,zm=null,Zd=null,Um=!1;function Bm(s,c,m){var w=m.window===m?m.document:m.nodeType===9?m:m.ownerDocument;Um||_c==null||_c!==bt(w)||(w=_c,"selectionStart"in w&&Wp(w)?w={start:w.selectionStart,end:w.selectionEnd}:(w=(w.ownerDocument&&w.ownerDocument.defaultView||window).getSelection(),w={anchorNode:w.anchorNode,anchorOffset:w.anchorOffset,focusNode:w.focusNode,focusOffset:w.focusOffset}),Zd&&Vd(Zd,w)||(Zd=w,w=qd(zm,"onSelect"),0<w.length&&(c=new cn("onSelect","select",null,c,m),s.push({event:c,listeners:w}),c.target=_c)))}function qp(s,c){var m={};return m[s.toLowerCase()]=c.toLowerCase(),m["Webkit"+s]="webkit"+c,m["Moz"+s]="moz"+c,m}var uu={animationend:qp("Animation","AnimationEnd"),animationiteration:qp("Animation","AnimationIteration"),animationstart:qp("Animation","AnimationStart"),transitionend:qp("Transition","TransitionEnd")},ma={},Hm={};f&&(Hm=document.createElement("div").style,"AnimationEvent"in window||(delete uu.animationend.animation,delete uu.animationiteration.animation,delete uu.animationstart.animation),"TransitionEvent"in window||delete uu.transitionend.transition);function Gp(s){if(ma[s])return ma[s];if(!uu[s])return s;var c=uu[s],m;for(m in c)if(c.hasOwnProperty(m)&&m in Hm)return ma[s]=c[m];return s}var J4=Gp("animationend"),X4=Gp("animationiteration"),K4=Gp("animationstart"),Q4=Gp("transitionend"),Vm=new Map,Yp="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Yo(s,c){Vm.set(s,c),l(c,[s])}for(var $m=0;$m<Yp.length;$m++){var cu=Yp[$m],X7=cu.toLowerCase(),K7=cu[0].toUpperCase()+cu.slice(1);Yo(X7,"on"+K7)}Yo(J4,"onAnimationEnd"),Yo(X4,"onAnimationIteration"),Yo(K4,"onAnimationStart"),Yo("dblclick","onDoubleClick"),Yo("focusin","onFocus"),Yo("focusout","onBlur"),Yo(Q4,"onTransitionEnd"),u("onMouseEnter",["mouseout","mouseover"]),u("onMouseLeave",["mouseout","mouseover"]),u("onPointerEnter",["pointerout","pointerover"]),u("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Wd="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Zm=new Set("cancel close invalid load scroll toggle".split(" ").concat(Wd));function Jp(s,c,m){var w=s.type||"unknown-event";s.currentTarget=m,ut(w,c,void 0,s),s.currentTarget=null}function du(s,c){c=(c&4)!==0;for(var m=0;m<s.length;m++){var w=s[m],E=w.event;w=w.listeners;e:{var A=void 0;if(c)for(var z=w.length-1;0<=z;z--){var G=w[z],Q=G.instance,fe=G.currentTarget;if(G=G.listener,Q!==A&&E.isPropagationStopped())break e;Jp(E,G,fe),A=Q}else for(z=0;z<w.length;z++){if(G=w[z],Q=G.instance,fe=G.currentTarget,G=G.listener,Q!==A&&E.isPropagationStopped())break e;Jp(E,G,fe),A=Q}}}if(tr)throw s=J,tr=!1,J=null,s}function Fn(s,c){var m=c[Jd];m===void 0&&(m=c[Jd]=new Set);var w=s+"__bubble";m.has(w)||(e2(c,s,2,!1),m.add(w))}function Xp(s,c,m){var w=0;c&&(w|=4),e2(m,s,w,c)}var Kp="_reactListening"+Math.random().toString(36).slice(2);function Tc(s){if(!s[Kp]){s[Kp]=!0,a.forEach(function(m){m!=="selectionchange"&&(Zm.has(m)||Xp(m,!1,s),Xp(m,!0,s))});var c=s.nodeType===9?s:s.ownerDocument;c===null||c[Kp]||(c[Kp]=!0,Xp("selectionchange",!1,c))}}function e2(s,c,m,w){switch(Cc(c)){case 1:var E=xc;break;case 4:E=wc;break;default:E=pl}m=E.bind(null,c,m,s),E=void 0,!Ar||c!=="touchstart"&&c!=="touchmove"&&c!=="wheel"||(E=!0),w?E!==void 0?s.addEventListener(c,m,{capture:!0,passive:E}):s.addEventListener(c,m,!0):E!==void 0?s.addEventListener(c,m,{passive:E}):s.addEventListener(c,m,!1)}function Qp(s,c,m,w,E){var A=w;if(!(c&1)&&!(c&2)&&w!==null)e:for(;;){if(w===null)return;var z=w.tag;if(z===3||z===4){var G=w.stateNode.containerInfo;if(G===E||G.nodeType===8&&G.parentNode===E)break;if(z===4)for(z=w.return;z!==null;){var Q=z.tag;if((Q===3||Q===4)&&(Q=z.stateNode.containerInfo,Q===E||Q.nodeType===8&&Q.parentNode===E))return;z=z.return}for(;G!==null;){if(z=pu(G),z===null)return;if(Q=z.tag,Q===5||Q===6){w=A=z;continue e}G=G.parentNode}}w=w.return}_t(function(){var fe=A,je=En(m),Fe=[];e:{var Ie=Vm.get(s);if(Ie!==void 0){var ot=cn,ft=s;switch(s){case"keypress":if(be(m)===0)break e;case"keydown":case"keyup":ot=Lm;break;case"focusin":ft="focus",ot=su;break;case"focusout":ft="blur",ot=su;break;case"beforeblur":case"afterblur":ot=su;break;case"click":if(m.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":ot=hl;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ot=ks;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ot=D4;break;case J4:case X4:case K4:ot=Hp;break;case Q4:ot=_s;break;case"scroll":ot=rr;break;case"wheel":ot=Ts;break;case"copy":case"cut":case"paste":ot=M4;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ot=I4}var vt=(c&4)!==0,jr=!vt&&s==="scroll",oe=vt?Ie!==null?Ie+"Capture":null:Ie;vt=[];for(var ne=fe,ue;ne!==null;){ue=ne;var Pe=ue.stateNode;if(ue.tag===5&&Pe!==null&&(ue=Pe,oe!==null&&(Pe=_n(ne,oe),Pe!=null&&vt.push(Rc(ne,Pe,ue)))),jr)break;ne=ne.return}0<vt.length&&(Ie=new ot(Ie,ft,null,m,je),Fe.push({event:Ie,listeners:vt}))}}if(!(c&7)){e:{if(Ie=s==="mouseover"||s==="pointerover",ot=s==="mouseout"||s==="pointerout",Ie&&m!==dn&&(ft=m.relatedTarget||m.fromElement)&&(pu(ft)||ft[Rs]))break e;if((ot||Ie)&&(Ie=je.window===je?je:(Ie=je.ownerDocument)?Ie.defaultView||Ie.parentWindow:window,ot?(ft=m.relatedTarget||m.toElement,ot=fe,ft=ft?pu(ft):null,ft!==null&&(jr=Gt(ft),ft!==jr||ft.tag!==5&&ft.tag!==6)&&(ft=null)):(ot=null,ft=fe),ot!==ft)){if(vt=hl,Pe="onMouseLeave",oe="onMouseEnter",ne="mouse",(s==="pointerout"||s==="pointerover")&&(vt=I4,Pe="onPointerLeave",oe="onPointerEnter",ne="pointer"),jr=ot==null?Ie:Ti(ot),ue=ft==null?Ie:Ti(ft),Ie=new vt(Pe,ne+"leave",ot,m,je),Ie.target=jr,Ie.relatedTarget=ue,Pe=null,pu(je)===fe&&(vt=new vt(oe,ne+"enter",ft,m,je),vt.target=ue,vt.relatedTarget=jr,Pe=vt),jr=Pe,ot&&ft)t:{for(vt=ot,oe=ft,ne=0,ue=vt;ue;ue=gl(ue))ne++;for(ue=0,Pe=oe;Pe;Pe=gl(Pe))ue++;for(;0<ne-ue;)vt=gl(vt),ne--;for(;0<ue-ne;)oe=gl(oe),ue--;for(;ne--;){if(vt===oe||oe!==null&&vt===oe.alternate)break t;vt=gl(vt),oe=gl(oe)}vt=null}else vt=null;ot!==null&&t2(Fe,Ie,ot,vt,!1),ft!==null&&jr!==null&&t2(Fe,jr,ft,vt,!0)}}e:{if(Ie=fe?Ti(fe):window,ot=Ie.nodeName&&Ie.nodeName.toLowerCase(),ot==="select"||ot==="input"&&Ie.type==="file")var pt=W7;else if(B4(Ie))if(V4)pt=G4;else{pt=q4;var Lt=q7}else(ot=Ie.nodeName)&&ot.toLowerCase()==="input"&&(Ie.type==="checkbox"||Ie.type==="radio")&&(pt=G7);if(pt&&(pt=pt(s,fe))){jm(Fe,pt,m,je);break e}Lt&&Lt(s,Ie,fe),s==="focusout"&&(Lt=Ie._wrapperState)&&Lt.controlled&&Ie.type==="number"&&Hn(Ie,"number",Ie.value)}switch(Lt=fe?Ti(fe):window,s){case"focusin":(B4(Lt)||Lt.contentEditable==="true")&&(_c=Lt,zm=fe,Zd=null);break;case"focusout":Zd=zm=_c=null;break;case"mousedown":Um=!0;break;case"contextmenu":case"mouseup":case"dragend":Um=!1,Bm(Fe,m,je);break;case"selectionchange":if(J7)break;case"keydown":case"keyup":Bm(Fe,m,je)}var jt;if(Sc)e:{switch(s){case"compositionstart":var Ut="onCompositionStart";break e;case"compositionend":Ut="onCompositionEnd";break e;case"compositionupdate":Ut="onCompositionUpdate";break e}Ut=void 0}else kc?F4(s,m)&&(Ut="onCompositionEnd"):s==="keydown"&&m.keyCode===229&&(Ut="onCompositionStart");Ut&&(j4&&m.locale!=="ko"&&(kc||Ut!=="onCompositionStart"?Ut==="onCompositionEnd"&&kc&&(jt=de()):(Ei=je,j="value"in Ei?Ei.value:Ei.textContent,kc=!0)),Lt=qd(fe,Ut),0<Lt.length&&(Ut=new Nm(Ut,s,null,m,je),Fe.push({event:Ut,listeners:Lt}),jt?Ut.data=jt:(jt=z4(m),jt!==null&&(Ut.data=jt)))),(jt=Bd?U4(s,m):$7(s,m))&&(fe=qd(fe,"onBeforeInput"),0<fe.length&&(je=new Nm("onBeforeInput","beforeinput",null,m,je),Fe.push({event:je,listeners:fe}),je.data=jt))}du(Fe,c)})}function Rc(s,c,m){return{instance:s,listener:c,currentTarget:m}}function qd(s,c){for(var m=c+"Capture",w=[];s!==null;){var E=s,A=E.stateNode;E.tag===5&&A!==null&&(E=A,A=_n(s,m),A!=null&&w.unshift(Rc(s,A,E)),A=_n(s,c),A!=null&&w.push(Rc(s,A,E))),s=s.return}return w}function gl(s){if(s===null)return null;do s=s.return;while(s&&s.tag!==5);return s||null}function t2(s,c,m,w,E){for(var A=c._reactName,z=[];m!==null&&m!==w;){var G=m,Q=G.alternate,fe=G.stateNode;if(Q!==null&&Q===w)break;G.tag===5&&fe!==null&&(G=fe,E?(Q=_n(m,A),Q!=null&&z.unshift(Rc(m,Q,G))):E||(Q=_n(m,A),Q!=null&&z.push(Rc(m,Q,G)))),m=m.return}z.length!==0&&s.push({event:c,listeners:z})}var n2=/\r\n?/g,Q7=/\u0000|\uFFFD/g;function r2(s){return(typeof s=="string"?s:""+s).replace(n2,`
98
+ `).replace(Q7,"")}function e1(s,c,m){if(c=r2(c),r2(s)!==c&&m)throw Error(n(425))}function vl(){}var Gd=null,fu=null;function t1(s,c){return s==="textarea"||s==="noscript"||typeof c.children=="string"||typeof c.children=="number"||typeof c.dangerouslySetInnerHTML=="object"&&c.dangerouslySetInnerHTML!==null&&c.dangerouslySetInnerHTML.__html!=null}var n1=typeof setTimeout=="function"?setTimeout:void 0,Wm=typeof clearTimeout=="function"?clearTimeout:void 0,a2=typeof Promise=="function"?Promise:void 0,Ac=typeof queueMicrotask=="function"?queueMicrotask:typeof a2!="undefined"?function(s){return a2.resolve(null).then(s).catch(r1)}:n1;function r1(s){setTimeout(function(){throw s})}function Nc(s,c){var m=c,w=0;do{var E=m.nextSibling;if(s.removeChild(m),E&&E.nodeType===8)if(m=E.data,m==="/$"){if(w===0){s.removeChild(E),ki(c);return}w--}else m!=="$"&&m!=="$?"&&m!=="$!"||w++;m=E}while(m);ki(c)}function qi(s){for(;s!=null;s=s.nextSibling){var c=s.nodeType;if(c===1||c===3)break;if(c===8){if(c=s.data,c==="$"||c==="$!"||c==="$?")break;if(c==="/$")return null}}return s}function o2(s){s=s.previousSibling;for(var c=0;s;){if(s.nodeType===8){var m=s.data;if(m==="$"||m==="$!"||m==="$?"){if(c===0)return s;c--}else m==="/$"&&c++}s=s.previousSibling}return null}var yl=Math.random().toString(36).slice(2),Gi="__reactFiber$"+yl,Yd="__reactProps$"+yl,Rs="__reactContainer$"+yl,Jd="__reactEvents$"+yl,Mc="__reactListeners$"+yl,e6="__reactHandles$"+yl;function pu(s){var c=s[Gi];if(c)return c;for(var m=s.parentNode;m;){if(c=m[Rs]||m[Gi]){if(m=c.alternate,c.child!==null||m!==null&&m.child!==null)for(s=o2(s);s!==null;){if(m=s[Gi])return m;s=o2(s)}return c}s=m,m=s.parentNode}return null}function Tt(s){return s=s[Gi]||s[Rs],!s||s.tag!==5&&s.tag!==6&&s.tag!==13&&s.tag!==3?null:s}function Ti(s){if(s.tag===5||s.tag===6)return s.stateNode;throw Error(n(33))}function wr(s){return s[Yd]||null}var yn=[],Jo=-1;function Xo(s){return{current:s}}function ar(s){0>Jo||(s.current=yn[Jo],yn[Jo]=null,Jo--)}function kt(s,c){Jo++,yn[Jo]=s.current,s.current=c}var Aa={},Er=Xo(Aa),Qr=Xo(!1),no=Aa;function ro(s,c){var m=s.type.contextTypes;if(!m)return Aa;var w=s.stateNode;if(w&&w.__reactInternalMemoizedUnmaskedChildContext===c)return w.__reactInternalMemoizedMaskedChildContext;var E={},A;for(A in m)E[A]=c[A];return w&&(s=s.stateNode,s.__reactInternalMemoizedUnmaskedChildContext=c,s.__reactInternalMemoizedMaskedChildContext=E),E}function Ur(s){return s=s.childContextTypes,s!=null}function Oc(){ar(Qr),ar(Er)}function i2(s,c,m){if(Er.current!==Aa)throw Error(n(168));kt(Er,c),kt(Qr,m)}function Xd(s,c,m){var w=s.stateNode;if(c=c.childContextTypes,typeof w.getChildContext!="function")return m;w=w.getChildContext();for(var E in w)if(!(E in c))throw Error(n(108,Ee(s)||"Unknown",E));return U({},m,w)}function oa(s){return s=(s=s.stateNode)&&s.__reactInternalMemoizedMergedChildContext||Aa,no=Er.current,kt(Er,s),kt(Qr,Qr.current),!0}function a1(s,c,m){var w=s.stateNode;if(!w)throw Error(n(169));m?(s=Xd(s,c,no),w.__reactInternalMemoizedMergedChildContext=s,ar(Qr),ar(Er),kt(Er,s)):ar(Qr),kt(Qr,m)}var Yi=null,Lc=!1,As=!1;function o1(s){Yi===null?Yi=[s]:Yi.push(s)}function xl(s){Lc=!0,o1(s)}function Ji(){if(!As&&Yi!==null){As=!0;var s=0,c=An;try{var m=Yi;for(An=1;s<m.length;s++){var w=m[s];do w=w(!0);while(w!==null)}Yi=null,Lc=!1}catch(E){throw Yi!==null&&(Yi=Yi.slice(s+1)),ir(bi,Ji),E}finally{An=c,As=!1}}return null}var wl=[],bl=0,Cl=null,Ns=0,Br=[],Ko=0,Eo=null,Xi=1,Ki="";function hu(s,c){wl[bl++]=Ns,wl[bl++]=Cl,Cl=s,Ns=c}function s2(s,c,m){Br[Ko++]=Xi,Br[Ko++]=Ki,Br[Ko++]=Eo,Eo=s;var w=Xi;s=Ki;var E=32-Da(w)-1;w&=~(1<<E),m+=1;var A=32-Da(c)+E;if(30<A){var z=E-E%5;A=(w&(1<<z)-1).toString(32),w>>=z,E-=z,Xi=1<<32-Da(c)+E|m<<E|w,Ki=A+s}else Xi=1<<A|m<<E|w,Ki=s}function i1(s){s.return!==null&&(hu(s,1),s2(s,1,0))}function s1(s){for(;s===Cl;)Cl=wl[--bl],wl[bl]=null,Ns=wl[--bl],wl[bl]=null;for(;s===Eo;)Eo=Br[--Ko],Br[Ko]=null,Ki=Br[--Ko],Br[Ko]=null,Xi=Br[--Ko],Br[Ko]=null}var ao=null,oo=null,mr=!1,Qo=null;function qm(s,c){var m=ai(5,null,null,0);m.elementType="DELETED",m.stateNode=c,m.return=s,c=s.deletions,c===null?(s.deletions=[m],s.flags|=16):c.push(m)}function l2(s,c){switch(s.tag){case 5:var m=s.type;return c=c.nodeType!==1||m.toLowerCase()!==c.nodeName.toLowerCase()?null:c,c!==null?(s.stateNode=c,ao=s,oo=qi(c.firstChild),!0):!1;case 6:return c=s.pendingProps===""||c.nodeType!==3?null:c,c!==null?(s.stateNode=c,ao=s,oo=null,!0):!1;case 13:return c=c.nodeType!==8?null:c,c!==null?(m=Eo!==null?{id:Xi,overflow:Ki}:null,s.memoizedState={dehydrated:c,treeContext:m,retryLane:1073741824},m=ai(18,null,null,0),m.stateNode=c,m.return=s,s.child=m,ao=s,oo=null,!0):!1;default:return!1}}function Gm(s){return(s.mode&1)!==0&&(s.flags&128)===0}function Ym(s){if(mr){var c=oo;if(c){var m=c;if(!l2(s,c)){if(Gm(s))throw Error(n(418));c=qi(m.nextSibling);var w=ao;c&&l2(s,c)?qm(w,m):(s.flags=s.flags&-4097|2,mr=!1,ao=s)}}else{if(Gm(s))throw Error(n(418));s.flags=s.flags&-4097|2,mr=!1,ao=s}}}function ea(s){for(s=s.return;s!==null&&s.tag!==5&&s.tag!==3&&s.tag!==13;)s=s.return;ao=s}function l1(s){if(s!==ao)return!1;if(!mr)return ea(s),mr=!0,!1;var c;if((c=s.tag!==3)&&!(c=s.tag!==5)&&(c=s.type,c=c!=="head"&&c!=="body"&&!t1(s.type,s.memoizedProps)),c&&(c=oo)){if(Gm(s))throw Kd(),Error(n(418));for(;c;)qm(s,c),c=qi(c.nextSibling)}if(ea(s),s.tag===13){if(s=s.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(n(317));e:{for(s=s.nextSibling,c=0;s;){if(s.nodeType===8){var m=s.data;if(m==="/$"){if(c===0){oo=qi(s.nextSibling);break e}c--}else m!=="$"&&m!=="$!"&&m!=="$?"||c++}s=s.nextSibling}oo=null}}else oo=ao?qi(s.stateNode.nextSibling):null;return!0}function Kd(){for(var s=oo;s;)s=qi(s.nextSibling)}function Sl(){oo=ao=null,mr=!1}function Ms(s){Qo===null?Qo=[s]:Qo.push(s)}var t6=D.ReactCurrentBatchConfig;function mu(s,c,m){if(s=m.ref,s!==null&&typeof s!="function"&&typeof s!="object"){if(m._owner){if(m=m._owner,m){if(m.tag!==1)throw Error(n(309));var w=m.stateNode}if(!w)throw Error(n(147,s));var E=w,A=""+s;return c!==null&&c.ref!==null&&typeof c.ref=="function"&&c.ref._stringRef===A?c.ref:(c=function(z){var G=E.refs;z===null?delete G[A]:G[A]=z},c._stringRef=A,c)}if(typeof s!="string")throw Error(n(284));if(!m._owner)throw Error(n(290,s))}return s}function u1(s,c){throw s=Object.prototype.toString.call(c),Error(n(31,s==="[object Object]"?"object with keys {"+Object.keys(c).join(", ")+"}":s))}function u2(s){var c=s._init;return c(s._payload)}function gu(s){function c(oe,ne){if(s){var ue=oe.deletions;ue===null?(oe.deletions=[ne],oe.flags|=16):ue.push(ne)}}function m(oe,ne){if(!s)return null;for(;ne!==null;)c(oe,ne),ne=ne.sibling;return null}function w(oe,ne){for(oe=new Map;ne!==null;)ne.key!==null?oe.set(ne.key,ne):oe.set(ne.index,ne),ne=ne.sibling;return oe}function E(oe,ne){return oe=Ml(oe,ne),oe.index=0,oe.sibling=null,oe}function A(oe,ne,ue){return oe.index=ue,s?(ue=oe.alternate,ue!==null?(ue=ue.index,ue<ne?(oe.flags|=2,ne):ue):(oe.flags|=2,ne)):(oe.flags|=1048576,ne)}function z(oe){return s&&oe.alternate===null&&(oe.flags|=2),oe}function G(oe,ne,ue,Pe){return ne===null||ne.tag!==6?(ne=_g(ue,oe.mode,Pe),ne.return=oe,ne):(ne=E(ne,ue),ne.return=oe,ne)}function Q(oe,ne,ue,Pe){var pt=ue.type;return pt===Z?je(oe,ne,ue.props.children,Pe,ue.key):ne!==null&&(ne.elementType===pt||typeof pt=="object"&&pt!==null&&pt.$$typeof===Te&&u2(pt)===ne.type)?(Pe=E(ne,ue.props),Pe.ref=mu(oe,ne,ue),Pe.return=oe,Pe):(Pe=Af(ue.type,ue.key,ue.props,null,oe.mode,Pe),Pe.ref=mu(oe,ne,ue),Pe.return=oe,Pe)}function fe(oe,ne,ue,Pe){return ne===null||ne.tag!==4||ne.stateNode.containerInfo!==ue.containerInfo||ne.stateNode.implementation!==ue.implementation?(ne=H1(ue,oe.mode,Pe),ne.return=oe,ne):(ne=E(ne,ue.children||[]),ne.return=oe,ne)}function je(oe,ne,ue,Pe,pt){return ne===null||ne.tag!==7?(ne=Ps(ue,oe.mode,Pe,pt),ne.return=oe,ne):(ne=E(ne,ue),ne.return=oe,ne)}function Fe(oe,ne,ue){if(typeof ne=="string"&&ne!==""||typeof ne=="number")return ne=_g(""+ne,oe.mode,ue),ne.return=oe,ne;if(typeof ne=="object"&&ne!==null){switch(ne.$$typeof){case V:return ue=Af(ne.type,ne.key,ne.props,null,oe.mode,ue),ue.ref=mu(oe,null,ne),ue.return=oe,ue;case H:return ne=H1(ne,oe.mode,ue),ne.return=oe,ne;case Te:var Pe=ne._init;return Fe(oe,Pe(ne._payload),ue)}if(Be(ne)||ye(ne))return ne=Ps(ne,oe.mode,ue,null),ne.return=oe,ne;u1(oe,ne)}return null}function Ie(oe,ne,ue,Pe){var pt=ne!==null?ne.key:null;if(typeof ue=="string"&&ue!==""||typeof ue=="number")return pt!==null?null:G(oe,ne,""+ue,Pe);if(typeof ue=="object"&&ue!==null){switch(ue.$$typeof){case V:return ue.key===pt?Q(oe,ne,ue,Pe):null;case H:return ue.key===pt?fe(oe,ne,ue,Pe):null;case Te:return pt=ue._init,Ie(oe,ne,pt(ue._payload),Pe)}if(Be(ue)||ye(ue))return pt!==null?null:je(oe,ne,ue,Pe,null);u1(oe,ue)}return null}function ot(oe,ne,ue,Pe,pt){if(typeof Pe=="string"&&Pe!==""||typeof Pe=="number")return oe=oe.get(ue)||null,G(ne,oe,""+Pe,pt);if(typeof Pe=="object"&&Pe!==null){switch(Pe.$$typeof){case V:return oe=oe.get(Pe.key===null?ue:Pe.key)||null,Q(ne,oe,Pe,pt);case H:return oe=oe.get(Pe.key===null?ue:Pe.key)||null,fe(ne,oe,Pe,pt);case Te:var Lt=Pe._init;return ot(oe,ne,ue,Lt(Pe._payload),pt)}if(Be(Pe)||ye(Pe))return oe=oe.get(ue)||null,je(ne,oe,Pe,pt,null);u1(ne,Pe)}return null}function ft(oe,ne,ue,Pe){for(var pt=null,Lt=null,jt=ne,Ut=ne=0,la=null;jt!==null&&Ut<ue.length;Ut++){jt.index>Ut?(la=jt,jt=null):la=jt.sibling;var On=Ie(oe,jt,ue[Ut],Pe);if(On===null){jt===null&&(jt=la);break}s&&jt&&On.alternate===null&&c(oe,jt),ne=A(On,ne,Ut),Lt===null?pt=On:Lt.sibling=On,Lt=On,jt=la}if(Ut===ue.length)return m(oe,jt),mr&&hu(oe,Ut),pt;if(jt===null){for(;Ut<ue.length;Ut++)jt=Fe(oe,ue[Ut],Pe),jt!==null&&(ne=A(jt,ne,Ut),Lt===null?pt=jt:Lt.sibling=jt,Lt=jt);return mr&&hu(oe,Ut),pt}for(jt=w(oe,jt);Ut<ue.length;Ut++)la=ot(jt,oe,Ut,ue[Ut],Pe),la!==null&&(s&&la.alternate!==null&&jt.delete(la.key===null?Ut:la.key),ne=A(la,ne,Ut),Lt===null?pt=la:Lt.sibling=la,Lt=la);return s&&jt.forEach(function(Il){return c(oe,Il)}),mr&&hu(oe,Ut),pt}function vt(oe,ne,ue,Pe){var pt=ye(ue);if(typeof pt!="function")throw Error(n(150));if(ue=pt.call(ue),ue==null)throw Error(n(151));for(var Lt=pt=null,jt=ne,Ut=ne=0,la=null,On=ue.next();jt!==null&&!On.done;Ut++,On=ue.next()){jt.index>Ut?(la=jt,jt=null):la=jt.sibling;var Il=Ie(oe,jt,On.value,Pe);if(Il===null){jt===null&&(jt=la);break}s&&jt&&Il.alternate===null&&c(oe,jt),ne=A(Il,ne,Ut),Lt===null?pt=Il:Lt.sibling=Il,Lt=Il,jt=la}if(On.done)return m(oe,jt),mr&&hu(oe,Ut),pt;if(jt===null){for(;!On.done;Ut++,On=ue.next())On=Fe(oe,On.value,Pe),On!==null&&(ne=A(On,ne,Ut),Lt===null?pt=On:Lt.sibling=On,Lt=On);return mr&&hu(oe,Ut),pt}for(jt=w(oe,jt);!On.done;Ut++,On=ue.next())On=ot(jt,oe,Ut,On.value,Pe),On!==null&&(s&&On.alternate!==null&&jt.delete(On.key===null?Ut:On.key),ne=A(On,ne,Ut),Lt===null?pt=On:Lt.sibling=On,Lt=On);return s&&jt.forEach(function(Z2){return c(oe,Z2)}),mr&&hu(oe,Ut),pt}function jr(oe,ne,ue,Pe){if(typeof ue=="object"&&ue!==null&&ue.type===Z&&ue.key===null&&(ue=ue.props.children),typeof ue=="object"&&ue!==null){switch(ue.$$typeof){case V:e:{for(var pt=ue.key,Lt=ne;Lt!==null;){if(Lt.key===pt){if(pt=ue.type,pt===Z){if(Lt.tag===7){m(oe,Lt.sibling),ne=E(Lt,ue.props.children),ne.return=oe,oe=ne;break e}}else if(Lt.elementType===pt||typeof pt=="object"&&pt!==null&&pt.$$typeof===Te&&u2(pt)===Lt.type){m(oe,Lt.sibling),ne=E(Lt,ue.props),ne.ref=mu(oe,Lt,ue),ne.return=oe,oe=ne;break e}m(oe,Lt);break}else c(oe,Lt);Lt=Lt.sibling}ue.type===Z?(ne=Ps(ue.props.children,oe.mode,Pe,ue.key),ne.return=oe,oe=ne):(Pe=Af(ue.type,ue.key,ue.props,null,oe.mode,Pe),Pe.ref=mu(oe,ne,ue),Pe.return=oe,oe=Pe)}return z(oe);case H:e:{for(Lt=ue.key;ne!==null;){if(ne.key===Lt)if(ne.tag===4&&ne.stateNode.containerInfo===ue.containerInfo&&ne.stateNode.implementation===ue.implementation){m(oe,ne.sibling),ne=E(ne,ue.children||[]),ne.return=oe,oe=ne;break e}else{m(oe,ne);break}else c(oe,ne);ne=ne.sibling}ne=H1(ue,oe.mode,Pe),ne.return=oe,oe=ne}return z(oe);case Te:return Lt=ue._init,jr(oe,ne,Lt(ue._payload),Pe)}if(Be(ue))return ft(oe,ne,ue,Pe);if(ye(ue))return vt(oe,ne,ue,Pe);u1(oe,ue)}return typeof ue=="string"&&ue!==""||typeof ue=="number"?(ue=""+ue,ne!==null&&ne.tag===6?(m(oe,ne.sibling),ne=E(ne,ue),ne.return=oe,oe=ne):(m(oe,ne),ne=_g(ue,oe.mode,Pe),ne.return=oe,oe=ne),z(oe)):m(oe,ne)}return jr}var Or=gu(!0),nt=gu(!1),_o=Xo(null),io=null,Ic=null,Jm=null;function Xm(){Jm=Ic=io=null}function Km(s){var c=_o.current;ar(_o),s._currentValue=c}function Qm(s,c,m){for(;s!==null;){var w=s.alternate;if((s.childLanes&c)!==c?(s.childLanes|=c,w!==null&&(w.childLanes|=c)):w!==null&&(w.childLanes&c)!==c&&(w.childLanes|=c),s===m)break;s=s.return}}function br(s,c){io=s,Jm=Ic=null,s=s.dependencies,s!==null&&s.firstContext!==null&&(s.lanes&c&&(Vr=!0),s.firstContext=null)}function ei(s){var c=s._currentValue;if(Jm!==s)if(s={context:s,memoizedValue:c,next:null},Ic===null){if(io===null)throw Error(n(308));Ic=s,io.dependencies={lanes:0,firstContext:s}}else Ic=Ic.next=s;return c}var vu=null;function eg(s){vu===null?vu=[s]:vu.push(s)}function tg(s,c,m,w){var E=c.interleaved;return E===null?(m.next=m,eg(c)):(m.next=E.next,E.next=m),c.interleaved=m,To(s,w)}function To(s,c){s.lanes|=c;var m=s.alternate;for(m!==null&&(m.lanes|=c),m=s,s=s.return;s!==null;)s.childLanes|=c,m=s.alternate,m!==null&&(m.childLanes|=c),m=s,s=s.return;return m.tag===3?m.stateNode:null}var Ro=!1;function ng(s){s.updateQueue={baseState:s.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function c2(s,c){s=s.updateQueue,c.updateQueue===s&&(c.updateQueue={baseState:s.baseState,firstBaseUpdate:s.firstBaseUpdate,lastBaseUpdate:s.lastBaseUpdate,shared:s.shared,effects:s.effects})}function Os(s,c){return{eventTime:s,lane:c,tag:0,payload:null,callback:null,next:null}}function kl(s,c,m){var w=s.updateQueue;if(w===null)return null;if(w=w.shared,xn&2){var E=w.pending;return E===null?c.next=c:(c.next=E.next,E.next=c),w.pending=c,To(s,m)}return E=w.interleaved,E===null?(c.next=c,eg(w)):(c.next=E.next,E.next=c),w.interleaved=c,To(s,m)}function c1(s,c,m){if(c=c.updateQueue,c!==null&&(c=c.shared,(m&4194240)!==0)){var w=c.lanes;w&=s.pendingLanes,m|=w,c.lanes=m,Ss(s,m)}}function d2(s,c){var m=s.updateQueue,w=s.alternate;if(w!==null&&(w=w.updateQueue,m===w)){var E=null,A=null;if(m=m.firstBaseUpdate,m!==null){do{var z={eventTime:m.eventTime,lane:m.lane,tag:m.tag,payload:m.payload,callback:m.callback,next:null};A===null?E=A=z:A=A.next=z,m=m.next}while(m!==null);A===null?E=A=c:A=A.next=c}else E=A=c;m={baseState:w.baseState,firstBaseUpdate:E,lastBaseUpdate:A,shared:w.shared,effects:w.effects},s.updateQueue=m;return}s=m.lastBaseUpdate,s===null?m.firstBaseUpdate=c:s.next=c,m.lastBaseUpdate=c}function Qd(s,c,m,w){var E=s.updateQueue;Ro=!1;var A=E.firstBaseUpdate,z=E.lastBaseUpdate,G=E.shared.pending;if(G!==null){E.shared.pending=null;var Q=G,fe=Q.next;Q.next=null,z===null?A=fe:z.next=fe,z=Q;var je=s.alternate;je!==null&&(je=je.updateQueue,G=je.lastBaseUpdate,G!==z&&(G===null?je.firstBaseUpdate=fe:G.next=fe,je.lastBaseUpdate=Q))}if(A!==null){var Fe=E.baseState;z=0,je=fe=Q=null,G=A;do{var Ie=G.lane,ot=G.eventTime;if((w&Ie)===Ie){je!==null&&(je=je.next={eventTime:ot,lane:0,tag:G.tag,payload:G.payload,callback:G.callback,next:null});e:{var ft=s,vt=G;switch(Ie=c,ot=m,vt.tag){case 1:if(ft=vt.payload,typeof ft=="function"){Fe=ft.call(ot,Fe,Ie);break e}Fe=ft;break e;case 3:ft.flags=ft.flags&-65537|128;case 0:if(ft=vt.payload,Ie=typeof ft=="function"?ft.call(ot,Fe,Ie):ft,Ie==null)break e;Fe=U({},Fe,Ie);break e;case 2:Ro=!0}}G.callback!==null&&G.lane!==0&&(s.flags|=64,Ie=E.effects,Ie===null?E.effects=[G]:Ie.push(G))}else ot={eventTime:ot,lane:Ie,tag:G.tag,payload:G.payload,callback:G.callback,next:null},je===null?(fe=je=ot,Q=Fe):je=je.next=ot,z|=Ie;if(G=G.next,G===null){if(G=E.shared.pending,G===null)break;Ie=G,G=Ie.next,Ie.next=null,E.lastBaseUpdate=Ie,E.shared.pending=null}}while(!0);if(je===null&&(Q=Fe),E.baseState=Q,E.firstBaseUpdate=fe,E.lastBaseUpdate=je,c=E.shared.interleaved,c!==null){E=c;do z|=E.lane,E=E.next;while(E!==c)}else A===null&&(E.shared.lanes=0);rs|=z,s.lanes=z,s.memoizedState=Fe}}function rg(s,c,m){if(s=c.effects,c.effects=null,s!==null)for(c=0;c<s.length;c++){var w=s[c],E=w.callback;if(E!==null){if(w.callback=null,w=m,typeof E!="function")throw Error(n(191,E));E.call(w)}}}var ef={},Qi=Xo(ef),tf=Xo(ef),nf=Xo(ef);function yu(s){if(s===ef)throw Error(n(174));return s}function ag(s,c){switch(kt(nf,c),kt(tf,s),kt(Qi,ef),s=c.nodeType,s){case 9:case 11:c=(c=c.documentElement)?c.namespaceURI:Me(null,"");break;default:s=s===8?c.parentNode:c,c=s.namespaceURI||null,s=s.tagName,c=Me(c,s)}ar(Qi),kt(Qi,c)}function xu(){ar(Qi),ar(tf),ar(nf)}function f2(s){yu(nf.current);var c=yu(Qi.current),m=Me(c,s.type);c!==m&&(kt(tf,s),kt(Qi,m))}function d1(s){tf.current===s&&(ar(Qi),ar(tf))}var Cr=Xo(0);function f1(s){for(var c=s;c!==null;){if(c.tag===13){var m=c.memoizedState;if(m!==null&&(m=m.dehydrated,m===null||m.data==="$?"||m.data==="$!"))return c}else if(c.tag===19&&c.memoizedProps.revealOrder!==void 0){if(c.flags&128)return c}else if(c.child!==null){c.child.return=c,c=c.child;continue}if(c===s)break;for(;c.sibling===null;){if(c.return===null||c.return===s)return null;c=c.return}c.sibling.return=c.return,c=c.sibling}return null}var rf=[];function Rt(){for(var s=0;s<rf.length;s++)rf[s]._workInProgressVersionPrimary=null;rf.length=0}var on=D.ReactCurrentDispatcher,Nn=D.ReactCurrentBatchConfig,Gn=0,Mn=null,Hr=null,ia=null,p1=!1,af=!1,wu=0,Le=0;function Tn(){throw Error(n(321))}function Ft(s,c){if(c===null)return!1;for(var m=0;m<c.length&&m<s.length;m++)if(!_i(s[m],c[m]))return!1;return!0}function El(s,c,m,w,E,A){if(Gn=A,Mn=c,c.memoizedState=null,c.updateQueue=null,c.lanes=0,on.current=s===null||s.memoizedState===null?R1:df,s=m(w,E),af){A=0;do{if(af=!1,wu=0,25<=A)throw Error(n(301));A+=1,ia=Hr=null,c.updateQueue=null,on.current=A1,s=m(w,E)}while(af)}if(on.current=Eu,c=Hr!==null&&Hr.next!==null,Gn=0,ia=Hr=Mn=null,p1=!1,c)throw Error(n(300));return s}function Ri(){var s=wu!==0;return wu=0,s}function Na(){var s={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ia===null?Mn.memoizedState=ia=s:ia=ia.next=s,ia}function Lr(){if(Hr===null){var s=Mn.alternate;s=s!==null?s.memoizedState:null}else s=Hr.next;var c=ia===null?Mn.memoizedState:ia.next;if(c!==null)ia=c,Hr=s;else{if(s===null)throw Error(n(310));Hr=s,s={memoizedState:Hr.memoizedState,baseState:Hr.baseState,baseQueue:Hr.baseQueue,queue:Hr.queue,next:null},ia===null?Mn.memoizedState=ia=s:ia=ia.next=s}return ia}function Ls(s,c){return typeof c=="function"?c(s):c}function _l(s){var c=Lr(),m=c.queue;if(m===null)throw Error(n(311));m.lastRenderedReducer=s;var w=Hr,E=w.baseQueue,A=m.pending;if(A!==null){if(E!==null){var z=E.next;E.next=A.next,A.next=z}w.baseQueue=E=A,m.pending=null}if(E!==null){A=E.next,w=w.baseState;var G=z=null,Q=null,fe=A;do{var je=fe.lane;if((Gn&je)===je)Q!==null&&(Q=Q.next={lane:0,action:fe.action,hasEagerState:fe.hasEagerState,eagerState:fe.eagerState,next:null}),w=fe.hasEagerState?fe.eagerState:s(w,fe.action);else{var Fe={lane:je,action:fe.action,hasEagerState:fe.hasEagerState,eagerState:fe.eagerState,next:null};Q===null?(G=Q=Fe,z=w):Q=Q.next=Fe,Mn.lanes|=je,rs|=je}fe=fe.next}while(fe!==null&&fe!==A);Q===null?z=w:Q.next=G,_i(w,c.memoizedState)||(Vr=!0),c.memoizedState=w,c.baseState=z,c.baseQueue=Q,m.lastRenderedState=w}if(s=m.interleaved,s!==null){E=s;do A=E.lane,Mn.lanes|=A,rs|=A,E=E.next;while(E!==s)}else E===null&&(m.lanes=0);return[c.memoizedState,m.dispatch]}function bu(s){var c=Lr(),m=c.queue;if(m===null)throw Error(n(311));m.lastRenderedReducer=s;var w=m.dispatch,E=m.pending,A=c.memoizedState;if(E!==null){m.pending=null;var z=E=E.next;do A=s(A,z.action),z=z.next;while(z!==E);_i(A,c.memoizedState)||(Vr=!0),c.memoizedState=A,c.baseQueue===null&&(c.baseState=A),m.lastRenderedState=A}return[A,w]}function h1(){}function m1(s,c){var m=Mn,w=Lr(),E=c(),A=!_i(w.memoizedState,E);if(A&&(w.memoizedState=E,Vr=!0),w=w.queue,of(y1.bind(null,m,w,s),[s]),w.getSnapshot!==c||A||ia!==null&&ia.memoizedState.tag&1){if(m.flags|=2048,Cu(9,v1.bind(null,m,w,E,c),void 0,null),ta===null)throw Error(n(349));Gn&30||g1(m,c,E)}return E}function g1(s,c,m){s.flags|=16384,s={getSnapshot:c,value:m},c=Mn.updateQueue,c===null?(c={lastEffect:null,stores:null},Mn.updateQueue=c,c.stores=[s]):(m=c.stores,m===null?c.stores=[s]:m.push(s))}function v1(s,c,m,w){c.value=m,c.getSnapshot=w,x1(c)&&w1(s)}function y1(s,c,m){return m(function(){x1(c)&&w1(s)})}function x1(s){var c=s.getSnapshot;s=s.value;try{var m=c();return!_i(s,m)}catch(w){return!0}}function w1(s){var c=To(s,1);c!==null&&Ba(c,s,1,-1)}function b1(s){var c=Na();return typeof s=="function"&&(s=s()),c.memoizedState=c.baseState=s,s={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ls,lastRenderedState:s},c.queue=s,s=s.dispatch=ku.bind(null,Mn,s),[c.memoizedState,s]}function Cu(s,c,m,w){return s={tag:s,create:c,destroy:m,deps:w,next:null},c=Mn.updateQueue,c===null?(c={lastEffect:null,stores:null},Mn.updateQueue=c,c.lastEffect=s.next=s):(m=c.lastEffect,m===null?c.lastEffect=s.next=s:(w=m.next,m.next=s,s.next=w,c.lastEffect=s)),s}function C1(){return Lr().memoizedState}function Dc(s,c,m,w){var E=Na();Mn.flags|=s,E.memoizedState=Cu(1|c,m,void 0,w===void 0?null:w)}function jc(s,c,m,w){var E=Lr();w=w===void 0?null:w;var A=void 0;if(Hr!==null){var z=Hr.memoizedState;if(A=z.destroy,w!==null&&Ft(w,z.deps)){E.memoizedState=Cu(c,m,A,w);return}}Mn.flags|=s,E.memoizedState=Cu(1|c,m,A,w)}function S1(s,c){return Dc(8390656,8,s,c)}function of(s,c){return jc(2048,8,s,c)}function k1(s,c){return jc(4,2,s,c)}function sf(s,c){return jc(4,4,s,c)}function Su(s,c){if(typeof c=="function")return s=s(),c(s),function(){c(null)};if(c!=null)return s=s(),c.current=s,function(){c.current=null}}function E1(s,c,m){return m=m!=null?m.concat([s]):null,jc(4,4,Su.bind(null,c,s),m)}function lf(){}function _1(s,c){var m=Lr();c=c===void 0?null:c;var w=m.memoizedState;return w!==null&&c!==null&&Ft(c,w[1])?w[0]:(m.memoizedState=[s,c],s)}function T1(s,c){var m=Lr();c=c===void 0?null:c;var w=m.memoizedState;return w!==null&&c!==null&&Ft(c,w[1])?w[0]:(s=s(),m.memoizedState=[s,c],s)}function og(s,c,m){return Gn&21?(_i(m,c)||(m=mc(),Mn.lanes|=m,rs|=m,s.baseState=!0),c):(s.baseState&&(s.baseState=!1,Vr=!0),s.memoizedState=m)}function uf(s,c){var m=An;An=m!==0&&4>m?m:4,s(!0);var w=Nn.transition;Nn.transition={};try{s(!1),c()}finally{An=m,Nn.transition=w}}function ig(){return Lr().memoizedState}function cf(s,c,m){var w=as(s);if(m={lane:w,action:m,hasEagerState:!1,eagerState:null,next:null},so(s))p2(c,m);else if(m=tg(s,c,m,w),m!==null){var E=Wr();Ba(m,s,w,E),er(m,c,w)}}function ku(s,c,m){var w=as(s),E={lane:w,action:m,hasEagerState:!1,eagerState:null,next:null};if(so(s))p2(c,E);else{var A=s.alternate;if(s.lanes===0&&(A===null||A.lanes===0)&&(A=c.lastRenderedReducer,A!==null))try{var z=c.lastRenderedState,G=A(z,m);if(E.hasEagerState=!0,E.eagerState=G,_i(G,z)){var Q=c.interleaved;Q===null?(E.next=E,eg(c)):(E.next=Q.next,Q.next=E),c.interleaved=E;return}}catch(fe){}finally{}m=tg(s,c,E,w),m!==null&&(E=Wr(),Ba(m,s,w,E),er(m,c,w))}}function so(s){var c=s.alternate;return s===Mn||c!==null&&c===Mn}function p2(s,c){af=p1=!0;var m=s.pending;m===null?c.next=c:(c.next=m.next,m.next=c),s.pending=c}function er(s,c,m){if(m&4194240){var w=c.lanes;w&=s.pendingLanes,m|=w,c.lanes=m,Ss(s,m)}}var Eu={readContext:ei,useCallback:Tn,useContext:Tn,useEffect:Tn,useImperativeHandle:Tn,useInsertionEffect:Tn,useLayoutEffect:Tn,useMemo:Tn,useReducer:Tn,useRef:Tn,useState:Tn,useDebugValue:Tn,useDeferredValue:Tn,useTransition:Tn,useMutableSource:Tn,useSyncExternalStore:Tn,useId:Tn,unstable_isNewReconciler:!1},R1={readContext:ei,useCallback:function(s,c){return Na().memoizedState=[s,c===void 0?null:c],s},useContext:ei,useEffect:S1,useImperativeHandle:function(s,c,m){return m=m!=null?m.concat([s]):null,Dc(4194308,4,Su.bind(null,c,s),m)},useLayoutEffect:function(s,c){return Dc(4194308,4,s,c)},useInsertionEffect:function(s,c){return Dc(4,2,s,c)},useMemo:function(s,c){var m=Na();return c=c===void 0?null:c,s=s(),m.memoizedState=[s,c],s},useReducer:function(s,c,m){var w=Na();return c=m!==void 0?m(c):c,w.memoizedState=w.baseState=c,s={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:s,lastRenderedState:c},w.queue=s,s=s.dispatch=cf.bind(null,Mn,s),[w.memoizedState,s]},useRef:function(s){var c=Na();return s={current:s},c.memoizedState=s},useState:b1,useDebugValue:lf,useDeferredValue:function(s){return Na().memoizedState=s},useTransition:function(){var s=b1(!1),c=s[0];return s=uf.bind(null,s[1]),Na().memoizedState=s,[c,s]},useMutableSource:function(){},useSyncExternalStore:function(s,c,m){var w=Mn,E=Na();if(mr){if(m===void 0)throw Error(n(407));m=m()}else{if(m=c(),ta===null)throw Error(n(349));Gn&30||g1(w,c,m)}E.memoizedState=m;var A={value:m,getSnapshot:c};return E.queue=A,S1(y1.bind(null,w,A,s),[s]),w.flags|=2048,Cu(9,v1.bind(null,w,A,m,c),void 0,null),m},useId:function(){var s=Na(),c=ta.identifierPrefix;if(mr){var m=Ki,w=Xi;m=(w&~(1<<32-Da(w)-1)).toString(32)+m,c=":"+c+"R"+m,m=wu++,0<m&&(c+="H"+m.toString(32)),c+=":"}else m=Le++,c=":"+c+"r"+m.toString(32)+":";return s.memoizedState=c},unstable_isNewReconciler:!1},df={readContext:ei,useCallback:_1,useContext:ei,useEffect:of,useImperativeHandle:E1,useInsertionEffect:k1,useLayoutEffect:sf,useMemo:T1,useReducer:_l,useRef:C1,useState:function(){return _l(Ls)},useDebugValue:lf,useDeferredValue:function(s){var c=Lr();return og(c,Hr.memoizedState,s)},useTransition:function(){var s=_l(Ls)[0],c=Lr().memoizedState;return[s,c]},useMutableSource:h1,useSyncExternalStore:m1,useId:ig,unstable_isNewReconciler:!1},A1={readContext:ei,useCallback:_1,useContext:ei,useEffect:of,useImperativeHandle:E1,useInsertionEffect:k1,useLayoutEffect:sf,useMemo:T1,useReducer:bu,useRef:C1,useState:function(){return bu(Ls)},useDebugValue:lf,useDeferredValue:function(s){var c=Lr();return Hr===null?c.memoizedState=s:og(c,Hr.memoizedState,s)},useTransition:function(){var s=bu(Ls)[0],c=Lr().memoizedState;return[s,c]},useMutableSource:h1,useSyncExternalStore:m1,useId:ig,unstable_isNewReconciler:!1};function Ai(s,c){if(s&&s.defaultProps){c=U({},c),s=s.defaultProps;for(var m in s)c[m]===void 0&&(c[m]=s[m]);return c}return c}function sg(s,c,m,w){c=s.memoizedState,m=m(w,c),m=m==null?c:U({},c,m),s.memoizedState=m,s.lanes===0&&(s.updateQueue.baseState=m)}var N1={isMounted:function(s){return(s=s._reactInternals)?Gt(s)===s:!1},enqueueSetState:function(s,c,m){s=s._reactInternals;var w=Wr(),E=as(s),A=Os(w,E);A.payload=c,m!=null&&(A.callback=m),c=kl(s,A,E),c!==null&&(Ba(c,s,E,w),c1(c,s,E))},enqueueReplaceState:function(s,c,m){s=s._reactInternals;var w=Wr(),E=as(s),A=Os(w,E);A.tag=1,A.payload=c,m!=null&&(A.callback=m),c=kl(s,A,E),c!==null&&(Ba(c,s,E,w),c1(c,s,E))},enqueueForceUpdate:function(s,c){s=s._reactInternals;var m=Wr(),w=as(s),E=Os(m,w);E.tag=2,c!=null&&(E.callback=c),c=kl(s,E,w),c!==null&&(Ba(c,s,w,m),c1(c,s,w))}};function h2(s,c,m,w,E,A,z){return s=s.stateNode,typeof s.shouldComponentUpdate=="function"?s.shouldComponentUpdate(w,A,z):c.prototype&&c.prototype.isPureReactComponent?!Vd(m,w)||!Vd(E,A):!0}function M1(s,c,m){var w=!1,E=Aa,A=c.contextType;return typeof A=="object"&&A!==null?A=ei(A):(E=Ur(c)?no:Er.current,w=c.contextTypes,A=(w=w!=null)?ro(s,E):Aa),c=new c(m,A),s.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=N1,s.stateNode=c,c._reactInternals=s,w&&(s=s.stateNode,s.__reactInternalMemoizedUnmaskedChildContext=E,s.__reactInternalMemoizedMaskedChildContext=A),c}function m2(s,c,m,w){s=c.state,typeof c.componentWillReceiveProps=="function"&&c.componentWillReceiveProps(m,w),typeof c.UNSAFE_componentWillReceiveProps=="function"&&c.UNSAFE_componentWillReceiveProps(m,w),c.state!==s&&N1.enqueueReplaceState(c,c.state,null)}function ff(s,c,m,w){var E=s.stateNode;E.props=m,E.state=s.memoizedState,E.refs={},ng(s);var A=c.contextType;typeof A=="object"&&A!==null?E.context=ei(A):(A=Ur(c)?no:Er.current,E.context=ro(s,A)),E.state=s.memoizedState,A=c.getDerivedStateFromProps,typeof A=="function"&&(sg(s,c,A,m),E.state=s.memoizedState),typeof c.getDerivedStateFromProps=="function"||typeof E.getSnapshotBeforeUpdate=="function"||typeof E.UNSAFE_componentWillMount!="function"&&typeof E.componentWillMount!="function"||(c=E.state,typeof E.componentWillMount=="function"&&E.componentWillMount(),typeof E.UNSAFE_componentWillMount=="function"&&E.UNSAFE_componentWillMount(),c!==E.state&&N1.enqueueReplaceState(E,E.state,null),Qd(s,m,E,w),E.state=s.memoizedState),typeof E.componentDidMount=="function"&&(s.flags|=4194308)}function _u(s,c){try{var m="",w=c;do m+=Ke(w),w=w.return;while(w);var E=m}catch(A){E=`
99
+ Error generating stack: `+A.message+`
100
+ `+A.stack}return{value:s,source:c,stack:E,digest:null}}function lg(s,c,m){return{value:s,source:null,stack:m!=null?m:null,digest:c!=null?c:null}}function ug(s,c){try{console.error(c.value)}catch(m){setTimeout(function(){throw m})}}var O1=typeof WeakMap=="function"?WeakMap:Map;function g2(s,c,m){m=Os(-1,m),m.tag=3,m.payload={element:null};var w=c.value;return m.callback=function(){Hc||(Hc=!0,Au=w),ug(s,c)},m}function cg(s,c,m){m=Os(-1,m),m.tag=3;var w=s.type.getDerivedStateFromError;if(typeof w=="function"){var E=c.value;m.payload=function(){return w(E)},m.callback=function(){ug(s,c)}}var A=s.stateNode;return A!==null&&typeof A.componentDidCatch=="function"&&(m.callback=function(){ug(s,c),typeof w!="function"&&(Al===null?Al=new Set([this]):Al.add(this));var z=c.stack;this.componentDidCatch(c.value,{componentStack:z!==null?z:""})}),m}function dg(s,c,m){var w=s.pingCache;if(w===null){w=s.pingCache=new O1;var E=new Set;w.set(c,E)}else E=w.get(c),E===void 0&&(E=new Set,w.set(c,E));E.has(m)||(E.add(m),s=l6.bind(null,s,c,m),c.then(s,s))}function v2(s){do{var c;if((c=s.tag===13)&&(c=s.memoizedState,c=c!==null?c.dehydrated!==null:!0),c)return s;s=s.return}while(s!==null);return null}function Tl(s,c,m,w,E){return s.mode&1?(s.flags|=65536,s.lanes=E,s):(s===c?s.flags|=65536:(s.flags|=128,m.flags|=131072,m.flags&=-52805,m.tag===1&&(m.alternate===null?m.tag=17:(c=Os(-1,1),c.tag=2,kl(m,c,1))),m.lanes|=1),s)}var pf=D.ReactCurrentOwner,Vr=!1;function ga(s,c,m,w){c.child=s===null?nt(c,null,m,w):Or(c,s.child,m,w)}function lo(s,c,m,w,E){m=m.render;var A=c.ref;return br(c,E),w=El(s,c,m,w,A,E),m=Ri(),s!==null&&!Vr?(c.updateQueue=s.updateQueue,c.flags&=-2053,s.lanes&=~E,ni(s,c,E)):(mr&&m&&i1(c),c.flags|=1,ga(s,c,w,E),c.child)}function Tu(s,c,m,w,E){if(s===null){var A=m.type;return typeof A=="function"&&!Eg(A)&&A.defaultProps===void 0&&m.compare===null&&m.defaultProps===void 0?(c.tag=15,c.type=A,Xt(s,c,A,w,E)):(s=Af(m.type,null,w,c,c.mode,E),s.ref=c.ref,s.return=c,c.child=s)}if(A=s.child,!(s.lanes&E)){var z=A.memoizedProps;if(m=m.compare,m=m!==null?m:Vd,m(z,w)&&s.ref===c.ref)return ni(s,c,E)}return c.flags|=1,s=Ml(A,w),s.ref=c.ref,s.return=c,c.child=s}function Xt(s,c,m,w,E){if(s!==null){var A=s.memoizedProps;if(Vd(A,w)&&s.ref===c.ref)if(Vr=!1,c.pendingProps=w=A,(s.lanes&E)!==0)s.flags&131072&&(Vr=!0);else return c.lanes=s.lanes,ni(s,c,E)}return y2(s,c,m,w,E)}function hf(s,c,m){var w=c.pendingProps,E=w.children,A=s!==null?s.memoizedState:null;if(w.mode==="hidden")if(!(c.mode&1))c.memoizedState={baseLanes:0,cachePool:null,transitions:null},kt(zc,Ao),Ao|=m;else{if(!(m&1073741824))return s=A!==null?A.baseLanes|m:m,c.lanes=c.childLanes=1073741824,c.memoizedState={baseLanes:s,cachePool:null,transitions:null},c.updateQueue=null,kt(zc,Ao),Ao|=s,null;c.memoizedState={baseLanes:0,cachePool:null,transitions:null},w=A!==null?A.baseLanes:m,kt(zc,Ao),Ao|=w}else A!==null?(w=A.baseLanes|m,c.memoizedState=null):w=m,kt(zc,Ao),Ao|=w;return ga(s,c,E,m),c.child}function fg(s,c){var m=c.ref;(s===null&&m!==null||s!==null&&s.ref!==m)&&(c.flags|=512,c.flags|=2097152)}function y2(s,c,m,w,E){var A=Ur(m)?no:Er.current;return A=ro(c,A),br(c,E),m=El(s,c,m,w,A,E),w=Ri(),s!==null&&!Vr?(c.updateQueue=s.updateQueue,c.flags&=-2053,s.lanes&=~E,ni(s,c,E)):(mr&&w&&i1(c),c.flags|=1,ga(s,c,m,E),c.child)}function x2(s,c,m,w,E){if(Ur(m)){var A=!0;oa(c)}else A=!1;if(br(c,E),c.stateNode===null)ti(s,c),M1(c,m,w),ff(c,m,w,E),w=!0;else if(s===null){var z=c.stateNode,G=c.memoizedProps;z.props=G;var Q=z.context,fe=m.contextType;typeof fe=="object"&&fe!==null?fe=ei(fe):(fe=Ur(m)?no:Er.current,fe=ro(c,fe));var je=m.getDerivedStateFromProps,Fe=typeof je=="function"||typeof z.getSnapshotBeforeUpdate=="function";Fe||typeof z.UNSAFE_componentWillReceiveProps!="function"&&typeof z.componentWillReceiveProps!="function"||(G!==w||Q!==fe)&&m2(c,z,w,fe),Ro=!1;var Ie=c.memoizedState;z.state=Ie,Qd(c,w,z,E),Q=c.memoizedState,G!==w||Ie!==Q||Qr.current||Ro?(typeof je=="function"&&(sg(c,m,je,w),Q=c.memoizedState),(G=Ro||h2(c,m,G,w,Ie,Q,fe))?(Fe||typeof z.UNSAFE_componentWillMount!="function"&&typeof z.componentWillMount!="function"||(typeof z.componentWillMount=="function"&&z.componentWillMount(),typeof z.UNSAFE_componentWillMount=="function"&&z.UNSAFE_componentWillMount()),typeof z.componentDidMount=="function"&&(c.flags|=4194308)):(typeof z.componentDidMount=="function"&&(c.flags|=4194308),c.memoizedProps=w,c.memoizedState=Q),z.props=w,z.state=Q,z.context=fe,w=G):(typeof z.componentDidMount=="function"&&(c.flags|=4194308),w=!1)}else{z=c.stateNode,c2(s,c),G=c.memoizedProps,fe=c.type===c.elementType?G:Ai(c.type,G),z.props=fe,Fe=c.pendingProps,Ie=z.context,Q=m.contextType,typeof Q=="object"&&Q!==null?Q=ei(Q):(Q=Ur(m)?no:Er.current,Q=ro(c,Q));var ot=m.getDerivedStateFromProps;(je=typeof ot=="function"||typeof z.getSnapshotBeforeUpdate=="function")||typeof z.UNSAFE_componentWillReceiveProps!="function"&&typeof z.componentWillReceiveProps!="function"||(G!==Fe||Ie!==Q)&&m2(c,z,w,Q),Ro=!1,Ie=c.memoizedState,z.state=Ie,Qd(c,w,z,E);var ft=c.memoizedState;G!==Fe||Ie!==ft||Qr.current||Ro?(typeof ot=="function"&&(sg(c,m,ot,w),ft=c.memoizedState),(fe=Ro||h2(c,m,fe,w,Ie,ft,Q)||!1)?(je||typeof z.UNSAFE_componentWillUpdate!="function"&&typeof z.componentWillUpdate!="function"||(typeof z.componentWillUpdate=="function"&&z.componentWillUpdate(w,ft,Q),typeof z.UNSAFE_componentWillUpdate=="function"&&z.UNSAFE_componentWillUpdate(w,ft,Q)),typeof z.componentDidUpdate=="function"&&(c.flags|=4),typeof z.getSnapshotBeforeUpdate=="function"&&(c.flags|=1024)):(typeof z.componentDidUpdate!="function"||G===s.memoizedProps&&Ie===s.memoizedState||(c.flags|=4),typeof z.getSnapshotBeforeUpdate!="function"||G===s.memoizedProps&&Ie===s.memoizedState||(c.flags|=1024),c.memoizedProps=w,c.memoizedState=ft),z.props=w,z.state=ft,z.context=Q,w=fe):(typeof z.componentDidUpdate!="function"||G===s.memoizedProps&&Ie===s.memoizedState||(c.flags|=4),typeof z.getSnapshotBeforeUpdate!="function"||G===s.memoizedProps&&Ie===s.memoizedState||(c.flags|=1024),w=!1)}return mf(s,c,m,w,A,E)}function mf(s,c,m,w,E,A){fg(s,c);var z=(c.flags&128)!==0;if(!w&&!z)return E&&a1(c,m,!1),ni(s,c,A);w=c.stateNode,pf.current=c;var G=z&&typeof m.getDerivedStateFromError!="function"?null:w.render();return c.flags|=1,s!==null&&z?(c.child=Or(c,s.child,null,A),c.child=Or(c,null,G,A)):ga(s,c,G,A),c.memoizedState=w.state,E&&a1(c,m,!0),c.child}function Pc(s){var c=s.stateNode;c.pendingContext?i2(s,c.pendingContext,c.pendingContext!==c.context):c.context&&i2(s,c.context,!1),ag(s,c.containerInfo)}function w2(s,c,m,w,E){return Sl(),Ms(E),c.flags|=256,ga(s,c,m,w),c.child}var L1={dehydrated:null,treeContext:null,retryLane:0};function pg(s){return{baseLanes:s,cachePool:null,transitions:null}}function I1(s,c,m){var w=c.pendingProps,E=Cr.current,A=!1,z=(c.flags&128)!==0,G;if((G=z)||(G=s!==null&&s.memoizedState===null?!1:(E&2)!==0),G?(A=!0,c.flags&=-129):(s===null||s.memoizedState!==null)&&(E|=1),kt(Cr,E&1),s===null)return Ym(c),s=c.memoizedState,s!==null&&(s=s.dehydrated,s!==null)?(c.mode&1?s.data==="$!"?c.lanes=8:c.lanes=1073741824:c.lanes=1,null):(z=w.children,s=w.fallback,A?(w=c.mode,A=c.child,z={mode:"hidden",children:z},!(w&1)&&A!==null?(A.childLanes=0,A.pendingProps=z):A=Ol(z,w,0,null),s=Ps(s,w,m,null),A.return=c,s.return=c,A.sibling=s,c.child=A,c.child.memoizedState=pg(m),c.memoizedState=L1,s):hg(c,z));if(E=s.memoizedState,E!==null&&(G=E.dehydrated,G!==null))return b2(s,c,z,w,G,E,m);if(A){A=w.fallback,z=c.mode,E=s.child,G=E.sibling;var Q={mode:"hidden",children:w.children};return!(z&1)&&c.child!==E?(w=c.child,w.childLanes=0,w.pendingProps=Q,c.deletions=null):(w=Ml(E,Q),w.subtreeFlags=E.subtreeFlags&14680064),G!==null?A=Ml(G,A):(A=Ps(A,z,m,null),A.flags|=2),A.return=c,w.return=c,w.sibling=A,c.child=w,w=A,A=c.child,z=s.child.memoizedState,z=z===null?pg(m):{baseLanes:z.baseLanes|m,cachePool:null,transitions:z.transitions},A.memoizedState=z,A.childLanes=s.childLanes&~m,c.memoizedState=L1,w}return A=s.child,s=A.sibling,w=Ml(A,{mode:"visible",children:w.children}),!(c.mode&1)&&(w.lanes=m),w.return=c,w.sibling=null,s!==null&&(m=c.deletions,m===null?(c.deletions=[s],c.flags|=16):m.push(s)),c.child=w,c.memoizedState=null,w}function hg(s,c){return c=Ol({mode:"visible",children:c},s.mode,0,null),c.return=s,s.child=c}function gf(s,c,m,w){return w!==null&&Ms(w),Or(c,s.child,null,m),s=hg(c,c.pendingProps.children),s.flags|=2,c.memoizedState=null,s}function b2(s,c,m,w,E,A,z){if(m)return c.flags&256?(c.flags&=-257,w=lg(Error(n(422))),gf(s,c,z,w)):c.memoizedState!==null?(c.child=s.child,c.flags|=128,null):(A=w.fallback,E=c.mode,w=Ol({mode:"visible",children:w.children},E,0,null),A=Ps(A,E,z,null),A.flags|=2,w.return=c,A.return=c,w.sibling=A,c.child=w,c.mode&1&&Or(c,s.child,null,z),c.child.memoizedState=pg(z),c.memoizedState=L1,A);if(!(c.mode&1))return gf(s,c,z,null);if(E.data==="$!"){if(w=E.nextSibling&&E.nextSibling.dataset,w)var G=w.dgst;return w=G,A=Error(n(419)),w=lg(A,w,void 0),gf(s,c,z,w)}if(G=(z&s.childLanes)!==0,Vr||G){if(w=ta,w!==null){switch(z&-z){case 4:E=2;break;case 16:E=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:E=32;break;case 536870912:E=268435456;break;default:E=0}E=E&(w.suspendedLanes|z)?0:E,E!==0&&E!==A.retryLane&&(A.retryLane=E,To(s,E),Ba(w,s,E,-1))}return kg(),w=lg(Error(n(421))),gf(s,c,z,w)}return E.data==="$?"?(c.flags|=128,c.child=s.child,c=u6.bind(null,s),E._reactRetry=c,null):(s=A.treeContext,oo=qi(E.nextSibling),ao=c,mr=!0,Qo=null,s!==null&&(Br[Ko++]=Xi,Br[Ko++]=Ki,Br[Ko++]=Eo,Xi=s.id,Ki=s.overflow,Eo=c),c=hg(c,w.children),c.flags|=4096,c)}function mg(s,c,m){s.lanes|=c;var w=s.alternate;w!==null&&(w.lanes|=c),Qm(s.return,c,m)}function Fa(s,c,m,w,E){var A=s.memoizedState;A===null?s.memoizedState={isBackwards:c,rendering:null,renderingStartTime:0,last:w,tail:m,tailMode:E}:(A.isBackwards=c,A.rendering=null,A.renderingStartTime=0,A.last=w,A.tail=m,A.tailMode=E)}function es(s,c,m){var w=c.pendingProps,E=w.revealOrder,A=w.tail;if(ga(s,c,w.children,m),w=Cr.current,w&2)w=w&1|2,c.flags|=128;else{if(s!==null&&s.flags&128)e:for(s=c.child;s!==null;){if(s.tag===13)s.memoizedState!==null&&mg(s,m,c);else if(s.tag===19)mg(s,m,c);else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===c)break e;for(;s.sibling===null;){if(s.return===null||s.return===c)break e;s=s.return}s.sibling.return=s.return,s=s.sibling}w&=1}if(kt(Cr,w),!(c.mode&1))c.memoizedState=null;else switch(E){case"forwards":for(m=c.child,E=null;m!==null;)s=m.alternate,s!==null&&f1(s)===null&&(E=m),m=m.sibling;m=E,m===null?(E=c.child,c.child=null):(E=m.sibling,m.sibling=null),Fa(c,!1,E,m,A);break;case"backwards":for(m=null,E=c.child,c.child=null;E!==null;){if(s=E.alternate,s!==null&&f1(s)===null){c.child=E;break}s=E.sibling,E.sibling=m,m=E,E=s}Fa(c,!0,m,null,A);break;case"together":Fa(c,!1,null,null,void 0);break;default:c.memoizedState=null}return c.child}function ti(s,c){!(c.mode&1)&&s!==null&&(s.alternate=null,c.alternate=null,c.flags|=2)}function ni(s,c,m){if(s!==null&&(c.dependencies=s.dependencies),rs|=c.lanes,!(m&c.childLanes))return null;if(s!==null&&c.child!==s.child)throw Error(n(153));if(c.child!==null){for(s=c.child,m=Ml(s,s.pendingProps),c.child=m,m.return=c;s.sibling!==null;)s=s.sibling,m=m.sibling=Ml(s,s.pendingProps),m.return=c;m.sibling=null}return c.child}function vf(s,c,m){switch(c.tag){case 3:Pc(c),Sl();break;case 5:f2(c);break;case 1:Ur(c.type)&&oa(c);break;case 4:ag(c,c.stateNode.containerInfo);break;case 10:var w=c.type._context,E=c.memoizedProps.value;kt(_o,w._currentValue),w._currentValue=E;break;case 13:if(w=c.memoizedState,w!==null)return w.dehydrated!==null?(kt(Cr,Cr.current&1),c.flags|=128,null):m&c.child.childLanes?I1(s,c,m):(kt(Cr,Cr.current&1),s=ni(s,c,m),s!==null?s.sibling:null);kt(Cr,Cr.current&1);break;case 19:if(w=(m&c.childLanes)!==0,s.flags&128){if(w)return es(s,c,m);c.flags|=128}if(E=c.memoizedState,E!==null&&(E.rendering=null,E.tail=null,E.lastEffect=null),kt(Cr,Cr.current),w)break;return null;case 22:case 23:return c.lanes=0,hf(s,c,m)}return ni(s,c,m)}var ri,$r,C2,S2;ri=function(s,c){for(var m=c.child;m!==null;){if(m.tag===5||m.tag===6)s.appendChild(m.stateNode);else if(m.tag!==4&&m.child!==null){m.child.return=m,m=m.child;continue}if(m===c)break;for(;m.sibling===null;){if(m.return===null||m.return===c)return;m=m.return}m.sibling.return=m.return,m=m.sibling}},$r=function(){},C2=function(s,c,m,w){var E=s.memoizedProps;if(E!==w){s=c.stateNode,yu(Qi.current);var A=null;switch(m){case"input":E=ct(s,E),w=ct(s,w),A=[];break;case"select":E=U({},E,{value:void 0}),w=U({},w,{value:void 0}),A=[];break;case"textarea":E=Pn(s,E),w=Pn(s,w),A=[];break;default:typeof E.onClick!="function"&&typeof w.onClick=="function"&&(s.onclick=vl)}Qt(m,w);var z;m=null;for(fe in E)if(!w.hasOwnProperty(fe)&&E.hasOwnProperty(fe)&&E[fe]!=null)if(fe==="style"){var G=E[fe];for(z in G)G.hasOwnProperty(z)&&(m||(m={}),m[z]="")}else fe!=="dangerouslySetInnerHTML"&&fe!=="children"&&fe!=="suppressContentEditableWarning"&&fe!=="suppressHydrationWarning"&&fe!=="autoFocus"&&(i.hasOwnProperty(fe)?A||(A=[]):(A=A||[]).push(fe,null));for(fe in w){var Q=w[fe];if(G=E!=null?E[fe]:void 0,w.hasOwnProperty(fe)&&Q!==G&&(Q!=null||G!=null))if(fe==="style")if(G){for(z in G)!G.hasOwnProperty(z)||Q&&Q.hasOwnProperty(z)||(m||(m={}),m[z]="");for(z in Q)Q.hasOwnProperty(z)&&G[z]!==Q[z]&&(m||(m={}),m[z]=Q[z])}else m||(A||(A=[]),A.push(fe,m)),m=Q;else fe==="dangerouslySetInnerHTML"?(Q=Q?Q.__html:void 0,G=G?G.__html:void 0,Q!=null&&G!==Q&&(A=A||[]).push(fe,Q)):fe==="children"?typeof Q!="string"&&typeof Q!="number"||(A=A||[]).push(fe,""+Q):fe!=="suppressContentEditableWarning"&&fe!=="suppressHydrationWarning"&&(i.hasOwnProperty(fe)?(Q!=null&&fe==="onScroll"&&Fn("scroll",s),A||G===Q||(A=[])):(A=A||[]).push(fe,Q))}m&&(A=A||[]).push("style",m);var fe=A;(c.updateQueue=fe)&&(c.flags|=4)}},S2=function(s,c,m,w){m!==w&&(c.flags|=4)};function yf(s,c){if(!mr)switch(s.tailMode){case"hidden":c=s.tail;for(var m=null;c!==null;)c.alternate!==null&&(m=c),c=c.sibling;m===null?s.tail=null:m.sibling=null;break;case"collapsed":m=s.tail;for(var w=null;m!==null;)m.alternate!==null&&(w=m),m=m.sibling;w===null?c||s.tail===null?s.tail=null:s.tail.sibling=null:w.sibling=null}}function sa(s){var c=s.alternate!==null&&s.alternate.child===s.child,m=0,w=0;if(c)for(var E=s.child;E!==null;)m|=E.lanes|E.childLanes,w|=E.subtreeFlags&14680064,w|=E.flags&14680064,E.return=s,E=E.sibling;else for(E=s.child;E!==null;)m|=E.lanes|E.childLanes,w|=E.subtreeFlags,w|=E.flags,E.return=s,E=E.sibling;return s.subtreeFlags|=w,s.childLanes=m,c}function k2(s,c,m){var w=c.pendingProps;switch(s1(c),c.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return sa(c),null;case 1:return Ur(c.type)&&Oc(),sa(c),null;case 3:return w=c.stateNode,xu(),ar(Qr),ar(Er),Rt(),w.pendingContext&&(w.context=w.pendingContext,w.pendingContext=null),(s===null||s.child===null)&&(l1(c)?c.flags|=4:s===null||s.memoizedState.isDehydrated&&!(c.flags&256)||(c.flags|=1024,Qo!==null&&(Nu(Qo),Qo=null))),$r(s,c),sa(c),null;case 5:d1(c);var E=yu(nf.current);if(m=c.type,s!==null&&c.stateNode!=null)C2(s,c,m,w,E),s.ref!==c.ref&&(c.flags|=512,c.flags|=2097152);else{if(!w){if(c.stateNode===null)throw Error(n(166));return sa(c),null}if(s=yu(Qi.current),l1(c)){w=c.stateNode,m=c.type;var A=c.memoizedProps;switch(w[Gi]=c,w[Yd]=A,s=(c.mode&1)!==0,m){case"dialog":Fn("cancel",w),Fn("close",w);break;case"iframe":case"object":case"embed":Fn("load",w);break;case"video":case"audio":for(E=0;E<Wd.length;E++)Fn(Wd[E],w);break;case"source":Fn("error",w);break;case"img":case"image":case"link":Fn("error",w),Fn("load",w);break;case"details":Fn("toggle",w);break;case"input":yt(w,A),Fn("invalid",w);break;case"select":w._wrapperState={wasMultiple:!!A.multiple},Fn("invalid",w);break;case"textarea":Wt(w,A),Fn("invalid",w)}Qt(m,A),E=null;for(var z in A)if(A.hasOwnProperty(z)){var G=A[z];z==="children"?typeof G=="string"?w.textContent!==G&&(A.suppressHydrationWarning!==!0&&e1(w.textContent,G,s),E=["children",G]):typeof G=="number"&&w.textContent!==""+G&&(A.suppressHydrationWarning!==!0&&e1(w.textContent,G,s),E=["children",""+G]):i.hasOwnProperty(z)&&G!=null&&z==="onScroll"&&Fn("scroll",w)}switch(m){case"input":tt(w),jn(w,A,!0);break;case"textarea":tt(w),$n(w);break;case"select":case"option":break;default:typeof A.onClick=="function"&&(w.onclick=vl)}w=E,c.updateQueue=w,w!==null&&(c.flags|=4)}else{z=E.nodeType===9?E:E.ownerDocument,s==="http://www.w3.org/1999/xhtml"&&(s=me(m)),s==="http://www.w3.org/1999/xhtml"?m==="script"?(s=z.createElement("div"),s.innerHTML="<script><\/script>",s=s.removeChild(s.firstChild)):typeof w.is=="string"?s=z.createElement(m,{is:w.is}):(s=z.createElement(m),m==="select"&&(z=s,w.multiple?z.multiple=!0:w.size&&(z.size=w.size))):s=z.createElementNS(s,m),s[Gi]=c,s[Yd]=w,ri(s,c,!1,!1),c.stateNode=s;e:{switch(z=Qn(m,w),m){case"dialog":Fn("cancel",s),Fn("close",s),E=w;break;case"iframe":case"object":case"embed":Fn("load",s),E=w;break;case"video":case"audio":for(E=0;E<Wd.length;E++)Fn(Wd[E],s);E=w;break;case"source":Fn("error",s),E=w;break;case"img":case"image":case"link":Fn("error",s),Fn("load",s),E=w;break;case"details":Fn("toggle",s),E=w;break;case"input":yt(s,w),E=ct(s,w),Fn("invalid",s);break;case"option":E=w;break;case"select":s._wrapperState={wasMultiple:!!w.multiple},E=U({},w,{value:void 0}),Fn("invalid",s);break;case"textarea":Wt(s,w),E=Pn(s,w),Fn("invalid",s);break;default:E=w}Qt(m,E),G=E;for(A in G)if(G.hasOwnProperty(A)){var Q=G[A];A==="style"?Kt(s,Q):A==="dangerouslySetInnerHTML"?(Q=Q?Q.__html:void 0,Q!=null&&It(s,Q)):A==="children"?typeof Q=="string"?(m!=="textarea"||Q!=="")&&Ae(s,Q):typeof Q=="number"&&Ae(s,""+Q):A!=="suppressContentEditableWarning"&&A!=="suppressHydrationWarning"&&A!=="autoFocus"&&(i.hasOwnProperty(A)?Q!=null&&A==="onScroll"&&Fn("scroll",s):Q!=null&&F(s,A,Q,z))}switch(m){case"input":tt(s),jn(s,w,!1);break;case"textarea":tt(s),$n(s);break;case"option":w.value!=null&&s.setAttribute("value",""+Ze(w.value));break;case"select":s.multiple=!!w.multiple,A=w.value,A!=null?At(s,!!w.multiple,A,!1):w.defaultValue!=null&&At(s,!!w.multiple,w.defaultValue,!0);break;default:typeof E.onClick=="function"&&(s.onclick=vl)}switch(m){case"button":case"input":case"select":case"textarea":w=!!w.autoFocus;break e;case"img":w=!0;break e;default:w=!1}}w&&(c.flags|=4)}c.ref!==null&&(c.flags|=512,c.flags|=2097152)}return sa(c),null;case 6:if(s&&c.stateNode!=null)S2(s,c,s.memoizedProps,w);else{if(typeof w!="string"&&c.stateNode===null)throw Error(n(166));if(m=yu(nf.current),yu(Qi.current),l1(c)){if(w=c.stateNode,m=c.memoizedProps,w[Gi]=c,(A=w.nodeValue!==m)&&(s=ao,s!==null))switch(s.tag){case 3:e1(w.nodeValue,m,(s.mode&1)!==0);break;case 5:s.memoizedProps.suppressHydrationWarning!==!0&&e1(w.nodeValue,m,(s.mode&1)!==0)}A&&(c.flags|=4)}else w=(m.nodeType===9?m:m.ownerDocument).createTextNode(w),w[Gi]=c,c.stateNode=w}return sa(c),null;case 13:if(ar(Cr),w=c.memoizedState,s===null||s.memoizedState!==null&&s.memoizedState.dehydrated!==null){if(mr&&oo!==null&&c.mode&1&&!(c.flags&128))Kd(),Sl(),c.flags|=98560,A=!1;else if(A=l1(c),w!==null&&w.dehydrated!==null){if(s===null){if(!A)throw Error(n(318));if(A=c.memoizedState,A=A!==null?A.dehydrated:null,!A)throw Error(n(317));A[Gi]=c}else Sl(),!(c.flags&128)&&(c.memoizedState=null),c.flags|=4;sa(c),A=!1}else Qo!==null&&(Nu(Qo),Qo=null),A=!0;if(!A)return c.flags&65536?c:null}return c.flags&128?(c.lanes=m,c):(w=w!==null,w!==(s!==null&&s.memoizedState!==null)&&w&&(c.child.flags|=8192,c.mode&1&&(s===null||Cr.current&1?Dr===0&&(Dr=3):kg())),c.updateQueue!==null&&(c.flags|=4),sa(c),null);case 4:return xu(),$r(s,c),s===null&&Tc(c.stateNode.containerInfo),sa(c),null;case 10:return Km(c.type._context),sa(c),null;case 17:return Ur(c.type)&&Oc(),sa(c),null;case 19:if(ar(Cr),A=c.memoizedState,A===null)return sa(c),null;if(w=(c.flags&128)!==0,z=A.rendering,z===null)if(w)yf(A,!1);else{if(Dr!==0||s!==null&&s.flags&128)for(s=c.child;s!==null;){if(z=f1(s),z!==null){for(c.flags|=128,yf(A,!1),w=z.updateQueue,w!==null&&(c.updateQueue=w,c.flags|=4),c.subtreeFlags=0,w=m,m=c.child;m!==null;)A=m,s=w,A.flags&=14680066,z=A.alternate,z===null?(A.childLanes=0,A.lanes=s,A.child=null,A.subtreeFlags=0,A.memoizedProps=null,A.memoizedState=null,A.updateQueue=null,A.dependencies=null,A.stateNode=null):(A.childLanes=z.childLanes,A.lanes=z.lanes,A.child=z.child,A.subtreeFlags=0,A.deletions=null,A.memoizedProps=z.memoizedProps,A.memoizedState=z.memoizedState,A.updateQueue=z.updateQueue,A.type=z.type,s=z.dependencies,A.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext}),m=m.sibling;return kt(Cr,Cr.current&1|2),c.child}s=s.sibling}A.tail!==null&&Yt()>Bc&&(c.flags|=128,w=!0,yf(A,!1),c.lanes=4194304)}else{if(!w)if(s=f1(z),s!==null){if(c.flags|=128,w=!0,m=s.updateQueue,m!==null&&(c.updateQueue=m,c.flags|=4),yf(A,!0),A.tail===null&&A.tailMode==="hidden"&&!z.alternate&&!mr)return sa(c),null}else 2*Yt()-A.renderingStartTime>Bc&&m!==1073741824&&(c.flags|=128,w=!0,yf(A,!1),c.lanes=4194304);A.isBackwards?(z.sibling=c.child,c.child=z):(m=A.last,m!==null?m.sibling=z:c.child=z,A.last=z)}return A.tail!==null?(c=A.tail,A.rendering=c,A.tail=c.sibling,A.renderingStartTime=Yt(),c.sibling=null,m=Cr.current,kt(Cr,w?m&1|2:m&1),c):(sa(c),null);case 22:case 23:return Sg(),w=c.memoizedState!==null,s!==null&&s.memoizedState!==null!==w&&(c.flags|=8192),w&&c.mode&1?Ao&1073741824&&(sa(c),c.subtreeFlags&6&&(c.flags|=8192)):sa(c),null;case 24:return null;case 25:return null}throw Error(n(156,c.tag))}function D1(s,c){switch(s1(c),c.tag){case 1:return Ur(c.type)&&Oc(),s=c.flags,s&65536?(c.flags=s&-65537|128,c):null;case 3:return xu(),ar(Qr),ar(Er),Rt(),s=c.flags,s&65536&&!(s&128)?(c.flags=s&-65537|128,c):null;case 5:return d1(c),null;case 13:if(ar(Cr),s=c.memoizedState,s!==null&&s.dehydrated!==null){if(c.alternate===null)throw Error(n(340));Sl()}return s=c.flags,s&65536?(c.flags=s&-65537|128,c):null;case 19:return ar(Cr),null;case 4:return xu(),null;case 10:return Km(c.type._context),null;case 22:case 23:return Sg(),null;case 24:return null;default:return null}}var xf=!1,Ma=!1,n6=typeof WeakSet=="function"?WeakSet:Set,lt=null;function Fc(s,c){var m=s.ref;if(m!==null)if(typeof m=="function")try{m(null)}catch(w){gr(s,c,w)}else m.current=null}function j1(s,c,m){try{m()}catch(w){gr(s,c,w)}}var E2=!1;function _2(s,c){if(Gd=Go,s=$d(),Wp(s)){if("selectionStart"in s)var m={start:s.selectionStart,end:s.selectionEnd};else e:{m=(m=s.ownerDocument)&&m.defaultView||window;var w=m.getSelection&&m.getSelection();if(w&&w.rangeCount!==0){m=w.anchorNode;var E=w.anchorOffset,A=w.focusNode;w=w.focusOffset;try{m.nodeType,A.nodeType}catch(Pe){m=null;break e}var z=0,G=-1,Q=-1,fe=0,je=0,Fe=s,Ie=null;t:for(;;){for(var ot;Fe!==m||E!==0&&Fe.nodeType!==3||(G=z+E),Fe!==A||w!==0&&Fe.nodeType!==3||(Q=z+w),Fe.nodeType===3&&(z+=Fe.nodeValue.length),(ot=Fe.firstChild)!==null;)Ie=Fe,Fe=ot;for(;;){if(Fe===s)break t;if(Ie===m&&++fe===E&&(G=z),Ie===A&&++je===w&&(Q=z),(ot=Fe.nextSibling)!==null)break;Fe=Ie,Ie=Fe.parentNode}Fe=ot}m=G===-1||Q===-1?null:{start:G,end:Q}}else m=null}m=m||{start:0,end:0}}else m=null;for(fu={focusedElem:s,selectionRange:m},Go=!1,lt=c;lt!==null;)if(c=lt,s=c.child,(c.subtreeFlags&1028)!==0&&s!==null)s.return=c,lt=s;else for(;lt!==null;){c=lt;try{var ft=c.alternate;if(c.flags&1024)switch(c.tag){case 0:case 11:case 15:break;case 1:if(ft!==null){var vt=ft.memoizedProps,jr=ft.memoizedState,oe=c.stateNode,ne=oe.getSnapshotBeforeUpdate(c.elementType===c.type?vt:Ai(c.type,vt),jr);oe.__reactInternalSnapshotBeforeUpdate=ne}break;case 3:var ue=c.stateNode.containerInfo;ue.nodeType===1?ue.textContent="":ue.nodeType===9&&ue.documentElement&&ue.removeChild(ue.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(n(163))}}catch(Pe){gr(c,c.return,Pe)}if(s=c.sibling,s!==null){s.return=c.return,lt=s;break}lt=c.return}return ft=E2,E2=!1,ft}function wf(s,c,m){var w=c.updateQueue;if(w=w!==null?w.lastEffect:null,w!==null){var E=w=w.next;do{if((E.tag&s)===s){var A=E.destroy;E.destroy=void 0,A!==void 0&&j1(c,m,A)}E=E.next}while(E!==w)}}function bf(s,c){if(c=c.updateQueue,c=c!==null?c.lastEffect:null,c!==null){var m=c=c.next;do{if((m.tag&s)===s){var w=m.create;m.destroy=w()}m=m.next}while(m!==c)}}function gg(s){var c=s.ref;if(c!==null){var m=s.stateNode;switch(s.tag){case 5:s=m;break;default:s=m}typeof c=="function"?c(s):c.current=s}}function P1(s){var c=s.alternate;c!==null&&(s.alternate=null,P1(c)),s.child=null,s.deletions=null,s.sibling=null,s.tag===5&&(c=s.stateNode,c!==null&&(delete c[Gi],delete c[Yd],delete c[Jd],delete c[Mc],delete c[e6])),s.stateNode=null,s.return=null,s.dependencies=null,s.memoizedProps=null,s.memoizedState=null,s.pendingProps=null,s.stateNode=null,s.updateQueue=null}function Cf(s){return s.tag===5||s.tag===3||s.tag===4}function Is(s){e:for(;;){for(;s.sibling===null;){if(s.return===null||Cf(s.return))return null;s=s.return}for(s.sibling.return=s.return,s=s.sibling;s.tag!==5&&s.tag!==6&&s.tag!==18;){if(s.flags&2||s.child===null||s.tag===4)continue e;s.child.return=s,s=s.child}if(!(s.flags&2))return s.stateNode}}function ts(s,c,m){var w=s.tag;if(w===5||w===6)s=s.stateNode,c?m.nodeType===8?m.parentNode.insertBefore(s,c):m.insertBefore(s,c):(m.nodeType===8?(c=m.parentNode,c.insertBefore(s,m)):(c=m,c.appendChild(s)),m=m._reactRootContainer,m!=null||c.onclick!==null||(c.onclick=vl));else if(w!==4&&(s=s.child,s!==null))for(ts(s,c,m),s=s.sibling;s!==null;)ts(s,c,m),s=s.sibling}function ns(s,c,m){var w=s.tag;if(w===5||w===6)s=s.stateNode,c?m.insertBefore(s,c):m.appendChild(s);else if(w!==4&&(s=s.child,s!==null))for(ns(s,c,m),s=s.sibling;s!==null;)ns(s,c,m),s=s.sibling}var Ir=null,za=!1;function Ua(s,c,m){for(m=m.child;m!==null;)T2(s,c,m),m=m.sibling}function T2(s,c,m){if(eo&&typeof eo.onCommitFiberUnmount=="function")try{eo.onCommitFiberUnmount(ll,m)}catch(G){}switch(m.tag){case 5:Ma||Fc(m,c);case 6:var w=Ir,E=za;Ir=null,Ua(s,c,m),Ir=w,za=E,Ir!==null&&(za?(s=Ir,m=m.stateNode,s.nodeType===8?s.parentNode.removeChild(m):s.removeChild(m)):Ir.removeChild(m.stateNode));break;case 18:Ir!==null&&(za?(s=Ir,m=m.stateNode,s.nodeType===8?Nc(s.parentNode,m):s.nodeType===1&&Nc(s,m),ki(s)):Nc(Ir,m.stateNode));break;case 4:w=Ir,E=za,Ir=m.stateNode.containerInfo,za=!0,Ua(s,c,m),Ir=w,za=E;break;case 0:case 11:case 14:case 15:if(!Ma&&(w=m.updateQueue,w!==null&&(w=w.lastEffect,w!==null))){E=w=w.next;do{var A=E,z=A.destroy;A=A.tag,z!==void 0&&(A&2||A&4)&&j1(m,c,z),E=E.next}while(E!==w)}Ua(s,c,m);break;case 1:if(!Ma&&(Fc(m,c),w=m.stateNode,typeof w.componentWillUnmount=="function"))try{w.props=m.memoizedProps,w.state=m.memoizedState,w.componentWillUnmount()}catch(G){gr(m,c,G)}Ua(s,c,m);break;case 21:Ua(s,c,m);break;case 22:m.mode&1?(Ma=(w=Ma)||m.memoizedState!==null,Ua(s,c,m),Ma=w):Ua(s,c,m);break;default:Ua(s,c,m)}}function R2(s){var c=s.updateQueue;if(c!==null){s.updateQueue=null;var m=s.stateNode;m===null&&(m=s.stateNode=new n6),c.forEach(function(w){var E=P2.bind(null,s,w);m.has(w)||(m.add(w),w.then(E,E))})}}function Ni(s,c){var m=c.deletions;if(m!==null)for(var w=0;w<m.length;w++){var E=m[w];try{var A=s,z=c,G=z;e:for(;G!==null;){switch(G.tag){case 5:Ir=G.stateNode,za=!1;break e;case 3:Ir=G.stateNode.containerInfo,za=!0;break e;case 4:Ir=G.stateNode.containerInfo,za=!0;break e}G=G.return}if(Ir===null)throw Error(n(160));T2(A,z,E),Ir=null,za=!1;var Q=E.alternate;Q!==null&&(Q.return=null),E.return=null}catch(fe){gr(E,c,fe)}}if(c.subtreeFlags&12854)for(c=c.child;c!==null;)vg(c,s),c=c.sibling}function vg(s,c){var m=s.alternate,w=s.flags;switch(s.tag){case 0:case 11:case 14:case 15:if(Ni(c,s),uo(s),w&4){try{wf(3,s,s.return),bf(3,s)}catch(vt){gr(s,s.return,vt)}try{wf(5,s,s.return)}catch(vt){gr(s,s.return,vt)}}break;case 1:Ni(c,s),uo(s),w&512&&m!==null&&Fc(m,m.return);break;case 5:if(Ni(c,s),uo(s),w&512&&m!==null&&Fc(m,m.return),s.flags&32){var E=s.stateNode;try{Ae(E,"")}catch(vt){gr(s,s.return,vt)}}if(w&4&&(E=s.stateNode,E!=null)){var A=s.memoizedProps,z=m!==null?m.memoizedProps:A,G=s.type,Q=s.updateQueue;if(s.updateQueue=null,Q!==null)try{G==="input"&&A.type==="radio"&&A.name!=null&&Pt(E,A),Qn(G,z);var fe=Qn(G,A);for(z=0;z<Q.length;z+=2){var je=Q[z],Fe=Q[z+1];je==="style"?Kt(E,Fe):je==="dangerouslySetInnerHTML"?It(E,Fe):je==="children"?Ae(E,Fe):F(E,je,Fe,fe)}switch(G){case"input":St(E,A);break;case"textarea":hr(E,A);break;case"select":var Ie=E._wrapperState.wasMultiple;E._wrapperState.wasMultiple=!!A.multiple;var ot=A.value;ot!=null?At(E,!!A.multiple,ot,!1):Ie!==!!A.multiple&&(A.defaultValue!=null?At(E,!!A.multiple,A.defaultValue,!0):At(E,!!A.multiple,A.multiple?[]:"",!1))}E[Yd]=A}catch(vt){gr(s,s.return,vt)}}break;case 6:if(Ni(c,s),uo(s),w&4){if(s.stateNode===null)throw Error(n(162));E=s.stateNode,A=s.memoizedProps;try{E.nodeValue=A}catch(vt){gr(s,s.return,vt)}}break;case 3:if(Ni(c,s),uo(s),w&4&&m!==null&&m.memoizedState.isDehydrated)try{ki(c.containerInfo)}catch(vt){gr(s,s.return,vt)}break;case 4:Ni(c,s),uo(s);break;case 13:Ni(c,s),uo(s),E=s.child,E.flags&8192&&(A=E.memoizedState!==null,E.stateNode.isHidden=A,!A||E.alternate!==null&&E.alternate.memoizedState!==null||(wg=Yt())),w&4&&R2(s);break;case 22:if(je=m!==null&&m.memoizedState!==null,s.mode&1?(Ma=(fe=Ma)||je,Ni(c,s),Ma=fe):Ni(c,s),uo(s),w&8192){if(fe=s.memoizedState!==null,(s.stateNode.isHidden=fe)&&!je&&s.mode&1)for(lt=s,je=s.child;je!==null;){for(Fe=lt=je;lt!==null;){switch(Ie=lt,ot=Ie.child,Ie.tag){case 0:case 11:case 14:case 15:wf(4,Ie,Ie.return);break;case 1:Fc(Ie,Ie.return);var ft=Ie.stateNode;if(typeof ft.componentWillUnmount=="function"){w=Ie,m=Ie.return;try{c=w,ft.props=c.memoizedProps,ft.state=c.memoizedState,ft.componentWillUnmount()}catch(vt){gr(w,m,vt)}}break;case 5:Fc(Ie,Ie.return);break;case 22:if(Ie.memoizedState!==null){Sf(Fe);continue}}ot!==null?(ot.return=Ie,lt=ot):Sf(Fe)}je=je.sibling}e:for(je=null,Fe=s;;){if(Fe.tag===5){if(je===null){je=Fe;try{E=Fe.stateNode,fe?(A=E.style,typeof A.setProperty=="function"?A.setProperty("display","none","important"):A.display="none"):(G=Fe.stateNode,Q=Fe.memoizedProps.style,z=Q!=null&&Q.hasOwnProperty("display")?Q.display:null,G.style.display=xt("display",z))}catch(vt){gr(s,s.return,vt)}}}else if(Fe.tag===6){if(je===null)try{Fe.stateNode.nodeValue=fe?"":Fe.memoizedProps}catch(vt){gr(s,s.return,vt)}}else if((Fe.tag!==22&&Fe.tag!==23||Fe.memoizedState===null||Fe===s)&&Fe.child!==null){Fe.child.return=Fe,Fe=Fe.child;continue}if(Fe===s)break e;for(;Fe.sibling===null;){if(Fe.return===null||Fe.return===s)break e;je===Fe&&(je=null),Fe=Fe.return}je===Fe&&(je=null),Fe.sibling.return=Fe.return,Fe=Fe.sibling}}break;case 19:Ni(c,s),uo(s),w&4&&R2(s);break;case 21:break;default:Ni(c,s),uo(s)}}function uo(s){var c=s.flags;if(c&2){try{e:{for(var m=s.return;m!==null;){if(Cf(m)){var w=m;break e}m=m.return}throw Error(n(160))}switch(w.tag){case 5:var E=w.stateNode;w.flags&32&&(Ae(E,""),w.flags&=-33);var A=Is(s);ns(s,A,E);break;case 3:case 4:var z=w.stateNode.containerInfo,G=Is(s);ts(s,G,z);break;default:throw Error(n(161))}}catch(Q){gr(s,s.return,Q)}s.flags&=-3}c&4096&&(s.flags&=-4097)}function r6(s,c,m){lt=s,yg(s)}function yg(s,c,m){for(var w=(s.mode&1)!==0;lt!==null;){var E=lt,A=E.child;if(E.tag===22&&w){var z=E.memoizedState!==null||xf;if(!z){var G=E.alternate,Q=G!==null&&G.memoizedState!==null||Ma;G=xf;var fe=Ma;if(xf=z,(Ma=Q)&&!fe)for(lt=E;lt!==null;)z=lt,Q=z.child,z.tag===22&&z.memoizedState!==null?xg(E):Q!==null?(Q.return=z,lt=Q):xg(E);for(;A!==null;)lt=A,yg(A),A=A.sibling;lt=E,xf=G,Ma=fe}A2(s)}else E.subtreeFlags&8772&&A!==null?(A.return=E,lt=A):A2(s)}}function A2(s){for(;lt!==null;){var c=lt;if(c.flags&8772){var m=c.alternate;try{if(c.flags&8772)switch(c.tag){case 0:case 11:case 15:Ma||bf(5,c);break;case 1:var w=c.stateNode;if(c.flags&4&&!Ma)if(m===null)w.componentDidMount();else{var E=c.elementType===c.type?m.memoizedProps:Ai(c.type,m.memoizedProps);w.componentDidUpdate(E,m.memoizedState,w.__reactInternalSnapshotBeforeUpdate)}var A=c.updateQueue;A!==null&&rg(c,A,w);break;case 3:var z=c.updateQueue;if(z!==null){if(m=null,c.child!==null)switch(c.child.tag){case 5:m=c.child.stateNode;break;case 1:m=c.child.stateNode}rg(c,z,m)}break;case 5:var G=c.stateNode;if(m===null&&c.flags&4){m=G;var Q=c.memoizedProps;switch(c.type){case"button":case"input":case"select":case"textarea":Q.autoFocus&&m.focus();break;case"img":Q.src&&(m.src=Q.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(c.memoizedState===null){var fe=c.alternate;if(fe!==null){var je=fe.memoizedState;if(je!==null){var Fe=je.dehydrated;Fe!==null&&ki(Fe)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(n(163))}Ma||c.flags&512&&gg(c)}catch(Ie){gr(c,c.return,Ie)}}if(c===s){lt=null;break}if(m=c.sibling,m!==null){m.return=c.return,lt=m;break}lt=c.return}}function Sf(s){for(;lt!==null;){var c=lt;if(c===s){lt=null;break}var m=c.sibling;if(m!==null){m.return=c.return,lt=m;break}lt=c.return}}function xg(s){for(;lt!==null;){var c=lt;try{switch(c.tag){case 0:case 11:case 15:var m=c.return;try{bf(4,c)}catch(Q){gr(c,m,Q)}break;case 1:var w=c.stateNode;if(typeof w.componentDidMount=="function"){var E=c.return;try{w.componentDidMount()}catch(Q){gr(c,E,Q)}}var A=c.return;try{gg(c)}catch(Q){gr(c,A,Q)}break;case 5:var z=c.return;try{gg(c)}catch(Q){gr(c,z,Q)}}}catch(Q){gr(c,c.return,Q)}if(c===s){lt=null;break}var G=c.sibling;if(G!==null){G.return=c.return,lt=G;break}lt=c.return}}var a6=Math.ceil,Rl=D.ReactCurrentDispatcher,Ru=D.ReactCurrentOwner,va=D.ReactCurrentBatchConfig,xn=0,ta=null,Zr=null,ya=0,Ao=0,zc=Xo(0),Dr=0,kf=null,rs=0,Uc=0,F1=0,Ef=null,co=null,wg=0,Bc=1/0,No=null,Hc=!1,Au=null,Al=null,z1=!1,Ds=null,_f=0,Nl=0,Vc=null,Tf=-1,Oa=0;function Wr(){return xn&6?Yt():Tf!==-1?Tf:Tf=Yt()}function as(s){return s.mode&1?xn&2&&ya!==0?ya&-ya:t6.transition!==null?(Oa===0&&(Oa=mc()),Oa):(s=An,s!==0||(s=window.event,s=s===void 0?16:Cc(s.type)),s):1}function Ba(s,c,m,w){if(50<Nl)throw Nl=0,Vc=null,Error(n(185));Cs(s,m,w),(!(xn&2)||s!==ta)&&(s===ta&&(!(xn&2)&&(Uc|=m),Dr===4&&Mi(s,ya)),fo(s,w),m===1&&xn===0&&!(c.mode&1)&&(Bc=Yt()+500,Lc&&Ji()))}function fo(s,c){var m=s.callbackNode;ru(s,c);var w=Si(s,s===ta?ya:0);if(w===0)m!==null&&pa(m),s.callbackNode=null,s.callbackPriority=0;else if(c=w&-w,s.callbackPriority!==c){if(m!=null&&pa(m),c===1)s.tag===0?xl(bg.bind(null,s)):o1(bg.bind(null,s)),Ac(function(){!(xn&6)&&Ji()}),m=null;else{switch(vc(w)){case 1:m=bi;break;case 4:m=tu;break;case 16:m=nu;break;case 536870912:m=fc;break;default:m=nu}m=z2(m,U1.bind(null,s))}s.callbackPriority=c,s.callbackNode=m}}function U1(s,c){if(Tf=-1,Oa=0,xn&6)throw Error(n(327));var m=s.callbackNode;if($c()&&s.callbackNode!==m)return null;var w=Si(s,s===ta?ya:0);if(w===0)return null;if(w&30||w&s.expiredLanes||c)c=B1(s,w);else{c=w;var E=xn;xn|=2;var A=M2();(ta!==s||ya!==c)&&(No=null,Bc=Yt()+500,js(s,c));do try{O2();break}catch(G){N2(s,G)}while(!0);Xm(),Rl.current=A,xn=E,Zr!==null?c=0:(ta=null,ya=0,c=Dr)}if(c!==0){if(c===2&&(E=cl(s),E!==0&&(w=E,c=Rf(s,E))),c===1)throw m=kf,js(s,0),Mi(s,w),fo(s,Yt()),m;if(c===6)Mi(s,w);else{if(E=s.current.alternate,!(w&30)&&!o6(E)&&(c=B1(s,w),c===2&&(A=cl(s),A!==0&&(w=A,c=Rf(s,A))),c===1))throw m=kf,js(s,0),Mi(s,w),fo(s,Yt()),m;switch(s.finishedWork=E,s.finishedLanes=w,c){case 0:case 1:throw Error(n(345));case 2:Ou(s,co,No);break;case 3:if(Mi(s,w),(w&130023424)===w&&(c=wg+500-Yt(),10<c)){if(Si(s,0)!==0)break;if(E=s.suspendedLanes,(E&w)!==w){Wr(),s.pingedLanes|=s.suspendedLanes&E;break}s.timeoutHandle=n1(Ou.bind(null,s,co,No),c);break}Ou(s,co,No);break;case 4:if(Mi(s,w),(w&4194240)===w)break;for(c=s.eventTimes,E=-1;0<w;){var z=31-Da(w);A=1<<z,z=c[z],z>E&&(E=z),w&=~A}if(w=E,w=Yt()-w,w=(120>w?120:480>w?480:1080>w?1080:1920>w?1920:3e3>w?3e3:4320>w?4320:1960*a6(w/1960))-w,10<w){s.timeoutHandle=n1(Ou.bind(null,s,co,No),w);break}Ou(s,co,No);break;case 5:Ou(s,co,No);break;default:throw Error(n(329))}}}return fo(s,Yt()),s.callbackNode===m?U1.bind(null,s):null}function Rf(s,c){var m=Ef;return s.current.memoizedState.isDehydrated&&(js(s,c).flags|=256),s=B1(s,c),s!==2&&(c=co,co=m,c!==null&&Nu(c)),s}function Nu(s){co===null?co=s:co.push.apply(co,s)}function o6(s){for(var c=s;;){if(c.flags&16384){var m=c.updateQueue;if(m!==null&&(m=m.stores,m!==null))for(var w=0;w<m.length;w++){var E=m[w],A=E.getSnapshot;E=E.value;try{if(!_i(A(),E))return!1}catch(z){return!1}}}if(m=c.child,c.subtreeFlags&16384&&m!==null)m.return=c,c=m;else{if(c===s)break;for(;c.sibling===null;){if(c.return===null||c.return===s)return!0;c=c.return}c.sibling.return=c.return,c=c.sibling}}return!0}function Mi(s,c){for(c&=~F1,c&=~Uc,s.suspendedLanes|=c,s.pingedLanes&=~c,s=s.expirationTimes;0<c;){var m=31-Da(c),w=1<<m;s[m]=-1,c&=~w}}function bg(s){if(xn&6)throw Error(n(327));$c();var c=Si(s,0);if(!(c&1))return fo(s,Yt()),null;var m=B1(s,c);if(s.tag!==0&&m===2){var w=cl(s);w!==0&&(c=w,m=Rf(s,w))}if(m===1)throw m=kf,js(s,0),Mi(s,c),fo(s,Yt()),m;if(m===6)throw Error(n(345));return s.finishedWork=s.current.alternate,s.finishedLanes=c,Ou(s,co,No),fo(s,Yt()),null}function Cg(s,c){var m=xn;xn|=1;try{return s(c)}finally{xn=m,xn===0&&(Bc=Yt()+500,Lc&&Ji())}}function Mu(s){Ds!==null&&Ds.tag===0&&!(xn&6)&&$c();var c=xn;xn|=1;var m=va.transition,w=An;try{if(va.transition=null,An=1,s)return s()}finally{An=w,va.transition=m,xn=c,!(xn&6)&&Ji()}}function Sg(){Ao=zc.current,ar(zc)}function js(s,c){s.finishedWork=null,s.finishedLanes=0;var m=s.timeoutHandle;if(m!==-1&&(s.timeoutHandle=-1,Wm(m)),Zr!==null)for(m=Zr.return;m!==null;){var w=m;switch(s1(w),w.tag){case 1:w=w.type.childContextTypes,w!=null&&Oc();break;case 3:xu(),ar(Qr),ar(Er),Rt();break;case 5:d1(w);break;case 4:xu();break;case 13:ar(Cr);break;case 19:ar(Cr);break;case 10:Km(w.type._context);break;case 22:case 23:Sg()}m=m.return}if(ta=s,Zr=s=Ml(s.current,null),ya=Ao=c,Dr=0,kf=null,F1=Uc=rs=0,co=Ef=null,vu!==null){for(c=0;c<vu.length;c++)if(m=vu[c],w=m.interleaved,w!==null){m.interleaved=null;var E=w.next,A=m.pending;if(A!==null){var z=A.next;A.next=E,w.next=z}m.pending=w}vu=null}return s}function N2(s,c){do{var m=Zr;try{if(Xm(),on.current=Eu,p1){for(var w=Mn.memoizedState;w!==null;){var E=w.queue;E!==null&&(E.pending=null),w=w.next}p1=!1}if(Gn=0,ia=Hr=Mn=null,af=!1,wu=0,Ru.current=null,m===null||m.return===null){Dr=1,kf=c,Zr=null;break}e:{var A=s,z=m.return,G=m,Q=c;if(c=ya,G.flags|=32768,Q!==null&&typeof Q=="object"&&typeof Q.then=="function"){var fe=Q,je=G,Fe=je.tag;if(!(je.mode&1)&&(Fe===0||Fe===11||Fe===15)){var Ie=je.alternate;Ie?(je.updateQueue=Ie.updateQueue,je.memoizedState=Ie.memoizedState,je.lanes=Ie.lanes):(je.updateQueue=null,je.memoizedState=null)}var ot=v2(z);if(ot!==null){ot.flags&=-257,Tl(ot,z,G,A,c),ot.mode&1&&dg(A,fe,c),c=ot,Q=fe;var ft=c.updateQueue;if(ft===null){var vt=new Set;vt.add(Q),c.updateQueue=vt}else ft.add(Q);break e}else{if(!(c&1)){dg(A,fe,c),kg();break e}Q=Error(n(426))}}else if(mr&&G.mode&1){var jr=v2(z);if(jr!==null){!(jr.flags&65536)&&(jr.flags|=256),Tl(jr,z,G,A,c),Ms(_u(Q,G));break e}}A=Q=_u(Q,G),Dr!==4&&(Dr=2),Ef===null?Ef=[A]:Ef.push(A),A=z;do{switch(A.tag){case 3:A.flags|=65536,c&=-c,A.lanes|=c;var oe=g2(A,Q,c);d2(A,oe);break e;case 1:G=Q;var ne=A.type,ue=A.stateNode;if(!(A.flags&128)&&(typeof ne.getDerivedStateFromError=="function"||ue!==null&&typeof ue.componentDidCatch=="function"&&(Al===null||!Al.has(ue)))){A.flags|=65536,c&=-c,A.lanes|=c;var Pe=cg(A,G,c);d2(A,Pe);break e}}A=A.return}while(A!==null)}I2(m)}catch(pt){c=pt,Zr===m&&m!==null&&(Zr=m=m.return);continue}break}while(!0)}function M2(){var s=Rl.current;return Rl.current=Eu,s===null?Eu:s}function kg(){(Dr===0||Dr===3||Dr===2)&&(Dr=4),ta===null||!(rs&268435455)&&!(Uc&268435455)||Mi(ta,ya)}function B1(s,c){var m=xn;xn|=2;var w=M2();(ta!==s||ya!==c)&&(No=null,js(s,c));do try{i6();break}catch(E){N2(s,E)}while(!0);if(Xm(),xn=m,Rl.current=w,Zr!==null)throw Error(n(261));return ta=null,ya=0,Dr}function i6(){for(;Zr!==null;)L2(Zr)}function O2(){for(;Zr!==null&&!xi();)L2(Zr)}function L2(s){var c=F2(s.alternate,s,Ao);s.memoizedProps=s.pendingProps,c===null?I2(s):Zr=c,Ru.current=null}function I2(s){var c=s;do{var m=c.alternate;if(s=c.return,c.flags&32768){if(m=D1(m,c),m!==null){m.flags&=32767,Zr=m;return}if(s!==null)s.flags|=32768,s.subtreeFlags=0,s.deletions=null;else{Dr=6,Zr=null;return}}else if(m=k2(m,c,Ao),m!==null){Zr=m;return}if(c=c.sibling,c!==null){Zr=c;return}Zr=c=s}while(c!==null);Dr===0&&(Dr=5)}function Ou(s,c,m){var w=An,E=va.transition;try{va.transition=null,An=1,s6(s,c,m,w)}finally{va.transition=E,An=w}return null}function s6(s,c,m,w){do $c();while(Ds!==null);if(xn&6)throw Error(n(327));m=s.finishedWork;var E=s.finishedLanes;if(m===null)return null;if(s.finishedWork=null,s.finishedLanes=0,m===s.current)throw Error(n(177));s.callbackNode=null,s.callbackPriority=0;var A=m.lanes|m.childLanes;if(Em(s,A),s===ta&&(Zr=ta=null,ya=0),!(m.subtreeFlags&2064)&&!(m.flags&2064)||z1||(z1=!0,z2(nu,function(){return $c(),null})),A=(m.flags&15990)!==0,m.subtreeFlags&15990||A){A=va.transition,va.transition=null;var z=An;An=1;var G=xn;xn|=4,Ru.current=null,_2(s,m),vg(m,s),Ec(fu),Go=!!Gd,fu=Gd=null,s.current=m,r6(m),wi(),xn=G,An=z,va.transition=A}else s.current=m;if(z1&&(z1=!1,Ds=s,_f=E),A=s.pendingLanes,A===0&&(Al=null),Id(m.stateNode),fo(s,Yt()),c!==null)for(w=s.onRecoverableError,m=0;m<c.length;m++)E=c[m],w(E.value,{componentStack:E.stack,digest:E.digest});if(Hc)throw Hc=!1,s=Au,Au=null,s;return _f&1&&s.tag!==0&&$c(),A=s.pendingLanes,A&1?s===Vc?Nl++:(Nl=0,Vc=s):Nl=0,Ji(),null}function $c(){if(Ds!==null){var s=vc(_f),c=va.transition,m=An;try{if(va.transition=null,An=16>s?16:s,Ds===null)var w=!1;else{if(s=Ds,Ds=null,_f=0,xn&6)throw Error(n(331));var E=xn;for(xn|=4,lt=s.current;lt!==null;){var A=lt,z=A.child;if(lt.flags&16){var G=A.deletions;if(G!==null){for(var Q=0;Q<G.length;Q++){var fe=G[Q];for(lt=fe;lt!==null;){var je=lt;switch(je.tag){case 0:case 11:case 15:wf(8,je,A)}var Fe=je.child;if(Fe!==null)Fe.return=je,lt=Fe;else for(;lt!==null;){je=lt;var Ie=je.sibling,ot=je.return;if(P1(je),je===fe){lt=null;break}if(Ie!==null){Ie.return=ot,lt=Ie;break}lt=ot}}}var ft=A.alternate;if(ft!==null){var vt=ft.child;if(vt!==null){ft.child=null;do{var jr=vt.sibling;vt.sibling=null,vt=jr}while(vt!==null)}}lt=A}}if(A.subtreeFlags&2064&&z!==null)z.return=A,lt=z;else e:for(;lt!==null;){if(A=lt,A.flags&2048)switch(A.tag){case 0:case 11:case 15:wf(9,A,A.return)}var oe=A.sibling;if(oe!==null){oe.return=A.return,lt=oe;break e}lt=A.return}}var ne=s.current;for(lt=ne;lt!==null;){z=lt;var ue=z.child;if(z.subtreeFlags&2064&&ue!==null)ue.return=z,lt=ue;else e:for(z=ne;lt!==null;){if(G=lt,G.flags&2048)try{switch(G.tag){case 0:case 11:case 15:bf(9,G)}}catch(pt){gr(G,G.return,pt)}if(G===z){lt=null;break e}var Pe=G.sibling;if(Pe!==null){Pe.return=G.return,lt=Pe;break e}lt=G.return}}if(xn=E,Ji(),eo&&typeof eo.onPostCommitFiberRoot=="function")try{eo.onPostCommitFiberRoot(ll,s)}catch(pt){}w=!0}return w}finally{An=m,va.transition=c}}return!1}function D2(s,c,m){c=_u(m,c),c=g2(s,c,1),s=kl(s,c,1),c=Wr(),s!==null&&(Cs(s,1,c),fo(s,c))}function gr(s,c,m){if(s.tag===3)D2(s,s,m);else for(;c!==null;){if(c.tag===3){D2(c,s,m);break}else if(c.tag===1){var w=c.stateNode;if(typeof c.type.getDerivedStateFromError=="function"||typeof w.componentDidCatch=="function"&&(Al===null||!Al.has(w))){s=_u(m,s),s=cg(c,s,1),c=kl(c,s,1),s=Wr(),c!==null&&(Cs(c,1,s),fo(c,s));break}}c=c.return}}function l6(s,c,m){var w=s.pingCache;w!==null&&w.delete(c),c=Wr(),s.pingedLanes|=s.suspendedLanes&m,ta===s&&(ya&m)===m&&(Dr===4||Dr===3&&(ya&130023424)===ya&&500>Yt()-wg?js(s,0):F1|=m),fo(s,c)}function j2(s,c){c===0&&(s.mode&1?(c=ko,ko<<=1,!(ko&130023424)&&(ko=4194304)):c=1);var m=Wr();s=To(s,c),s!==null&&(Cs(s,c,m),fo(s,m))}function u6(s){var c=s.memoizedState,m=0;c!==null&&(m=c.retryLane),j2(s,m)}function P2(s,c){var m=0;switch(s.tag){case 13:var w=s.stateNode,E=s.memoizedState;E!==null&&(m=E.retryLane);break;case 19:w=s.stateNode;break;default:throw Error(n(314))}w!==null&&w.delete(c),j2(s,m)}var F2;F2=function(s,c,m){if(s!==null)if(s.memoizedProps!==c.pendingProps||Qr.current)Vr=!0;else{if(!(s.lanes&m)&&!(c.flags&128))return Vr=!1,vf(s,c,m);Vr=!!(s.flags&131072)}else Vr=!1,mr&&c.flags&1048576&&s2(c,Ns,c.index);switch(c.lanes=0,c.tag){case 2:var w=c.type;ti(s,c),s=c.pendingProps;var E=ro(c,Er.current);br(c,m),E=El(null,c,w,s,E,m);var A=Ri();return c.flags|=1,typeof E=="object"&&E!==null&&typeof E.render=="function"&&E.$$typeof===void 0?(c.tag=1,c.memoizedState=null,c.updateQueue=null,Ur(w)?(A=!0,oa(c)):A=!1,c.memoizedState=E.state!==null&&E.state!==void 0?E.state:null,ng(c),E.updater=N1,c.stateNode=E,E._reactInternals=c,ff(c,w,s,m),c=mf(null,c,w,!0,A,m)):(c.tag=0,mr&&A&&i1(c),ga(null,c,E,m),c=c.child),c;case 16:w=c.elementType;e:{switch(ti(s,c),s=c.pendingProps,E=w._init,w=E(w._payload),c.type=w,E=c.tag=d6(w),s=Ai(w,s),E){case 0:c=y2(null,c,w,s,m);break e;case 1:c=x2(null,c,w,s,m);break e;case 11:c=lo(null,c,w,s,m);break e;case 14:c=Tu(null,c,w,Ai(w.type,s),m);break e}throw Error(n(306,w,""))}return c;case 0:return w=c.type,E=c.pendingProps,E=c.elementType===w?E:Ai(w,E),y2(s,c,w,E,m);case 1:return w=c.type,E=c.pendingProps,E=c.elementType===w?E:Ai(w,E),x2(s,c,w,E,m);case 3:e:{if(Pc(c),s===null)throw Error(n(387));w=c.pendingProps,A=c.memoizedState,E=A.element,c2(s,c),Qd(c,w,null,m);var z=c.memoizedState;if(w=z.element,A.isDehydrated)if(A={element:w,isDehydrated:!1,cache:z.cache,pendingSuspenseBoundaries:z.pendingSuspenseBoundaries,transitions:z.transitions},c.updateQueue.baseState=A,c.memoizedState=A,c.flags&256){E=_u(Error(n(423)),c),c=w2(s,c,w,m,E);break e}else if(w!==E){E=_u(Error(n(424)),c),c=w2(s,c,w,m,E);break e}else for(oo=qi(c.stateNode.containerInfo.firstChild),ao=c,mr=!0,Qo=null,m=nt(c,null,w,m),c.child=m;m;)m.flags=m.flags&-3|4096,m=m.sibling;else{if(Sl(),w===E){c=ni(s,c,m);break e}ga(s,c,w,m)}c=c.child}return c;case 5:return f2(c),s===null&&Ym(c),w=c.type,E=c.pendingProps,A=s!==null?s.memoizedProps:null,z=E.children,t1(w,E)?z=null:A!==null&&t1(w,A)&&(c.flags|=32),fg(s,c),ga(s,c,z,m),c.child;case 6:return s===null&&Ym(c),null;case 13:return I1(s,c,m);case 4:return ag(c,c.stateNode.containerInfo),w=c.pendingProps,s===null?c.child=Or(c,null,w,m):ga(s,c,w,m),c.child;case 11:return w=c.type,E=c.pendingProps,E=c.elementType===w?E:Ai(w,E),lo(s,c,w,E,m);case 7:return ga(s,c,c.pendingProps,m),c.child;case 8:return ga(s,c,c.pendingProps.children,m),c.child;case 12:return ga(s,c,c.pendingProps.children,m),c.child;case 10:e:{if(w=c.type._context,E=c.pendingProps,A=c.memoizedProps,z=E.value,kt(_o,w._currentValue),w._currentValue=z,A!==null)if(_i(A.value,z)){if(A.children===E.children&&!Qr.current){c=ni(s,c,m);break e}}else for(A=c.child,A!==null&&(A.return=c);A!==null;){var G=A.dependencies;if(G!==null){z=A.child;for(var Q=G.firstContext;Q!==null;){if(Q.context===w){if(A.tag===1){Q=Os(-1,m&-m),Q.tag=2;var fe=A.updateQueue;if(fe!==null){fe=fe.shared;var je=fe.pending;je===null?Q.next=Q:(Q.next=je.next,je.next=Q),fe.pending=Q}}A.lanes|=m,Q=A.alternate,Q!==null&&(Q.lanes|=m),Qm(A.return,m,c),G.lanes|=m;break}Q=Q.next}}else if(A.tag===10)z=A.type===c.type?null:A.child;else if(A.tag===18){if(z=A.return,z===null)throw Error(n(341));z.lanes|=m,G=z.alternate,G!==null&&(G.lanes|=m),Qm(z,m,c),z=A.sibling}else z=A.child;if(z!==null)z.return=A;else for(z=A;z!==null;){if(z===c){z=null;break}if(A=z.sibling,A!==null){A.return=z.return,z=A;break}z=z.return}A=z}ga(s,c,E.children,m),c=c.child}return c;case 9:return E=c.type,w=c.pendingProps.children,br(c,m),E=ei(E),w=w(E),c.flags|=1,ga(s,c,w,m),c.child;case 14:return w=c.type,E=Ai(w,c.pendingProps),E=Ai(w.type,E),Tu(s,c,w,E,m);case 15:return Xt(s,c,c.type,c.pendingProps,m);case 17:return w=c.type,E=c.pendingProps,E=c.elementType===w?E:Ai(w,E),ti(s,c),c.tag=1,Ur(w)?(s=!0,oa(c)):s=!1,br(c,m),M1(c,w,E),ff(c,w,E,m),mf(null,c,w,!0,s,m);case 19:return es(s,c,m);case 22:return hf(s,c,m)}throw Error(n(156,c.tag))};function z2(s,c){return ir(s,c)}function c6(s,c,m,w){this.tag=s,this.key=m,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=c,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=w,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ai(s,c,m,w){return new c6(s,c,m,w)}function Eg(s){return s=s.prototype,!(!s||!s.isReactComponent)}function d6(s){if(typeof s=="function")return Eg(s)?1:0;if(s!=null){if(s=s.$$typeof,s===he)return 11;if(s===xe)return 14}return 2}function Ml(s,c){var m=s.alternate;return m===null?(m=ai(s.tag,c,s.key,s.mode),m.elementType=s.elementType,m.type=s.type,m.stateNode=s.stateNode,m.alternate=s,s.alternate=m):(m.pendingProps=c,m.type=s.type,m.flags=0,m.subtreeFlags=0,m.deletions=null),m.flags=s.flags&14680064,m.childLanes=s.childLanes,m.lanes=s.lanes,m.child=s.child,m.memoizedProps=s.memoizedProps,m.memoizedState=s.memoizedState,m.updateQueue=s.updateQueue,c=s.dependencies,m.dependencies=c===null?null:{lanes:c.lanes,firstContext:c.firstContext},m.sibling=s.sibling,m.index=s.index,m.ref=s.ref,m}function Af(s,c,m,w,E,A){var z=2;if(w=s,typeof s=="function")Eg(s)&&(z=1);else if(typeof s=="string")z=5;else e:switch(s){case Z:return Ps(m.children,E,A,c);case q:z=8,E|=8;break;case ae:return s=ai(12,m,c,E|2),s.elementType=ae,s.lanes=A,s;case we:return s=ai(13,m,c,E),s.elementType=we,s.lanes=A,s;case Ne:return s=ai(19,m,c,E),s.elementType=Ne,s.lanes=A,s;case ve:return Ol(m,E,A,c);default:if(typeof s=="object"&&s!==null)switch(s.$$typeof){case _e:z=10;break e;case ge:z=9;break e;case he:z=11;break e;case xe:z=14;break e;case Te:z=16,w=null;break e}throw Error(n(130,s==null?s:typeof s,""))}return c=ai(z,m,c,E),c.elementType=s,c.type=w,c.lanes=A,c}function Ps(s,c,m,w){return s=ai(7,s,w,c),s.lanes=m,s}function Ol(s,c,m,w){return s=ai(22,s,w,c),s.elementType=ve,s.lanes=m,s.stateNode={isHidden:!1},s}function _g(s,c,m){return s=ai(6,s,null,c),s.lanes=m,s}function H1(s,c,m){return c=ai(4,s.children!==null?s.children:[],s.key,c),c.lanes=m,c.stateNode={containerInfo:s.containerInfo,pendingChildren:null,implementation:s.implementation},c}function U2(s,c,m,w,E){this.tag=c,this.containerInfo=s,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=gc(0),this.expirationTimes=gc(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gc(0),this.identifierPrefix=w,this.onRecoverableError=E,this.mutableSourceEagerHydrationData=null}function V1(s,c,m,w,E,A,z,G,Q){return s=new U2(s,c,m,G,Q),c===1?(c=1,A===!0&&(c|=8)):c=0,A=ai(3,null,null,c),s.current=A,A.stateNode=s,A.memoizedState={element:w,isDehydrated:m,cache:null,transitions:null,pendingSuspenseBoundaries:null},ng(A),s}function f6(s,c,m){var w=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:H,key:w==null?null:""+w,children:s,containerInfo:c,implementation:m}}function Tg(s){if(!s)return Aa;s=s._reactInternals;e:{if(Gt(s)!==s||s.tag!==1)throw Error(n(170));var c=s;do{switch(c.tag){case 3:c=c.stateNode.context;break e;case 1:if(Ur(c.type)){c=c.stateNode.__reactInternalMemoizedMergedChildContext;break e}}c=c.return}while(c!==null);throw Error(n(171))}if(s.tag===1){var m=s.type;if(Ur(m))return Xd(s,m,c)}return c}function B2(s,c,m,w,E,A,z,G,Q){return s=V1(m,w,!0,s,E,A,z,G,Q),s.context=Tg(null),m=s.current,w=Wr(),E=as(m),A=Os(w,E),A.callback=c!=null?c:null,kl(m,A,E),s.current.lanes=E,Cs(s,E,w),fo(s,w),s}function $1(s,c,m,w){var E=c.current,A=Wr(),z=as(E);return m=Tg(m),c.context===null?c.context=m:c.pendingContext=m,c=Os(A,z),c.payload={element:s},w=w===void 0?null:w,w!==null&&(c.callback=w),s=kl(E,c,z),s!==null&&(Ba(s,E,z,A),c1(s,E,z)),z}function Z1(s){if(s=s.current,!s.child)return null;switch(s.child.tag){case 5:return s.child.stateNode;default:return s.child.stateNode}}function Rg(s,c){if(s=s.memoizedState,s!==null&&s.dehydrated!==null){var m=s.retryLane;s.retryLane=m!==0&&m<c?m:c}}function W1(s,c){Rg(s,c),(s=s.alternate)&&Rg(s,c)}function H2(){return null}var Lu=typeof reportError=="function"?reportError:function(s){console.error(s)};function Ag(s){this._internalRoot=s}q1.prototype.render=Ag.prototype.render=function(s){var c=this._internalRoot;if(c===null)throw Error(n(409));$1(s,c,null,null)},q1.prototype.unmount=Ag.prototype.unmount=function(){var s=this._internalRoot;if(s!==null){this._internalRoot=null;var c=s.containerInfo;Mu(function(){$1(null,s,null,null)}),c[Rs]=null}};function q1(s){this._internalRoot=s}q1.prototype.unstable_scheduleHydration=function(s){if(s){var c=Bt();s={blockedOn:null,target:s,priority:c};for(var m=0;m<Kr.length&&c!==0&&c<Kr[m].priority;m++);Kr.splice(m,0,s),m===0&&Pd(s)}};function Ng(s){return!(!s||s.nodeType!==1&&s.nodeType!==9&&s.nodeType!==11)}function G1(s){return!(!s||s.nodeType!==1&&s.nodeType!==9&&s.nodeType!==11&&(s.nodeType!==8||s.nodeValue!==" react-mount-point-unstable "))}function V2(){}function p6(s,c,m,w,E){if(E){if(typeof w=="function"){var A=w;w=function(){var fe=Z1(z);A.call(fe)}}var z=B2(c,w,s,0,null,!1,!1,"",V2);return s._reactRootContainer=z,s[Rs]=z.current,Tc(s.nodeType===8?s.parentNode:s),Mu(),z}for(;E=s.lastChild;)s.removeChild(E);if(typeof w=="function"){var G=w;w=function(){var fe=Z1(Q);G.call(fe)}}var Q=V1(s,0,!1,null,null,!1,!1,"",V2);return s._reactRootContainer=Q,s[Rs]=Q.current,Tc(s.nodeType===8?s.parentNode:s),Mu(function(){$1(c,Q,m,w)}),Q}function Nf(s,c,m,w,E){var A=m._reactRootContainer;if(A){var z=A;if(typeof E=="function"){var G=E;E=function(){var Q=Z1(z);G.call(Q)}}$1(c,z,s,E)}else z=p6(m,c,s,E,w);return Z1(z)}Cn=function(s){switch(s.tag){case 3:var c=s.stateNode;if(c.current.memoizedState.isDehydrated){var m=Ci(c.pendingLanes);m!==0&&(Ss(c,m|1),fo(c,Yt()),!(xn&6)&&(Bc=Yt()+500,Ji()))}break;case 13:Mu(function(){var w=To(s,1);if(w!==null){var E=Wr();Ba(w,s,1,E)}}),W1(s,1)}},Dd=function(s){if(s.tag===13){var c=To(s,134217728);if(c!==null){var m=Wr();Ba(c,s,134217728,m)}W1(s,134217728)}},Hi=function(s){if(s.tag===13){var c=as(s),m=To(s,c);if(m!==null){var w=Wr();Ba(m,s,c,w)}W1(s,c)}},Bt=function(){return An},yc=function(s,c){var m=An;try{return An=s,c()}finally{An=m}},Rn=function(s,c,m){switch(c){case"input":if(St(s,m),c=m.name,m.type==="radio"&&c!=null){for(m=s;m.parentNode;)m=m.parentNode;for(m=m.querySelectorAll("input[name="+JSON.stringify(""+c)+'][type="radio"]'),c=0;c<m.length;c++){var w=m[c];if(w!==s&&w.form===s.form){var E=wr(w);if(!E)throw Error(n(90));Et(w),St(w,E)}}}break;case"textarea":hr(s,m);break;case"select":c=m.value,c!=null&&At(s,!!m.multiple,c,!1)}},Bi=Cg,Xr=Mu;var h6={usingClientEntryPoint:!1,Events:[Tt,Ti,wr,Rr,vi,Cg]},Mf={findFiberByHostInstance:pu,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},$2={bundleType:Mf.bundleType,version:Mf.version,rendererPackageName:Mf.rendererPackageName,rendererConfig:Mf.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:D.ReactCurrentDispatcher,findHostInstanceByFiber:function(s){return s=Mr(s),s===null?null:s.stateNode},findFiberByHostInstance:Mf.findFiberByHostInstance||H2,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__!="undefined"){var Ll=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ll.isDisabled&&Ll.supportsFiber)try{ll=Ll.inject($2),eo=Ll}catch(s){}}return Fo.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=h6,Fo.createPortal=function(s,c){var m=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Ng(c))throw Error(n(200));return f6(s,c,null,m)},Fo.createRoot=function(s,c){if(!Ng(s))throw Error(n(299));var m=!1,w="",E=Lu;return c!=null&&(c.unstable_strictMode===!0&&(m=!0),c.identifierPrefix!==void 0&&(w=c.identifierPrefix),c.onRecoverableError!==void 0&&(E=c.onRecoverableError)),c=V1(s,1,!1,null,null,m,!1,w,E),s[Rs]=c.current,Tc(s.nodeType===8?s.parentNode:s),new Ag(c)},Fo.findDOMNode=function(s){if(s==null)return null;if(s.nodeType===1)return s;var c=s._reactInternals;if(c===void 0)throw typeof s.render=="function"?Error(n(188)):(s=Object.keys(s).join(","),Error(n(268,s)));return s=Mr(c),s=s===null?null:s.stateNode,s},Fo.flushSync=function(s){return Mu(s)},Fo.hydrate=function(s,c,m){if(!G1(c))throw Error(n(200));return Nf(null,s,c,!0,m)},Fo.hydrateRoot=function(s,c,m){if(!Ng(s))throw Error(n(405));var w=m!=null&&m.hydratedSources||null,E=!1,A="",z=Lu;if(m!=null&&(m.unstable_strictMode===!0&&(E=!0),m.identifierPrefix!==void 0&&(A=m.identifierPrefix),m.onRecoverableError!==void 0&&(z=m.onRecoverableError)),c=B2(c,null,s,1,m!=null?m:null,E,!1,A,z),s[Rs]=c.current,Tc(s),w)for(s=0;s<w.length;s++)m=w[s],E=m._getVersion,E=E(m._source),c.mutableSourceEagerHydrationData==null?c.mutableSourceEagerHydrationData=[m,E]:c.mutableSourceEagerHydrationData.push(m,E);return new q1(c)},Fo.render=function(s,c,m){if(!G1(c))throw Error(n(200));return Nf(null,s,c,!1,m)},Fo.unmountComponentAtNode=function(s){if(!G1(s))throw Error(n(40));return s._reactRootContainer?(Mu(function(){Nf(null,null,s,!1,function(){s._reactRootContainer=null,s[Rs]=null})}),!0):!1},Fo.unstable_batchedUpdates=Cg,Fo.unstable_renderSubtreeIntoContainer=function(s,c,m,w){if(!G1(m))throw Error(n(200));if(s==null||s._reactInternals===void 0)throw Error(n(38));return Nf(s,c,m,!1,w)},Fo.version="18.3.1-next-f1338f8080-20240426",Fo}var zo={};/**
101
+ * @license React
102
+ * react-dom.development.js
103
+ *
104
+ * Copyright (c) Facebook, Inc. and its affiliates.
105
+ *
106
+ * This source code is licensed under the MIT license found in the
107
+ * LICENSE file in the root directory of this source tree.
108
+ */var vw;function GD(){return vw||(vw=1,process.env.NODE_ENV!=="production"&&function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__!="undefined"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var e=O,t=mw(),n=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,a=!1;function i(r){a=r}function l(r){if(!a){for(var o=arguments.length,d=new Array(o>1?o-1:0),p=1;p<o;p++)d[p-1]=arguments[p];f("warn",r,d)}}function u(r){if(!a){for(var o=arguments.length,d=new Array(o>1?o-1:0),p=1;p<o;p++)d[p-1]=arguments[p];f("error",r,d)}}function f(r,o,d){{var p=n.ReactDebugCurrentFrame,v=p.getStackAddendum();v!==""&&(o+="%s",d=d.concat([v]));var S=d.map(function(T){return String(T)});S.unshift("Warning: "+o),Function.prototype.apply.call(console[r],console,S)}}var h=0,g=1,x=2,y=3,k=4,b=5,_=6,R=7,M=8,L=9,P=10,F=11,D=12,V=13,H=14,Z=15,q=16,ae=17,_e=18,ge=19,he=21,we=22,Ne=23,xe=24,Te=25,ve=!0,K=!1,ye=!1,U=!1,X=!1,ie=!0,$=!0,Ue=!0,Ke=!0,De=new Set,Ee={},Ze={};function Qe(r,o){qe(r,o),qe(r+"Capture",o)}function qe(r,o){Ee[r]&&u("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",r),Ee[r]=o;{var d=r.toLowerCase();Ze[d]=r,r==="onDoubleClick"&&(Ze.ondblclick=r)}for(var p=0;p<o.length;p++)De.add(o[p])}var tt=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined",Et=Object.prototype.hasOwnProperty;function bt(r){{var o=typeof Symbol=="function"&&Symbol.toStringTag,d=o&&r[Symbol.toStringTag]||r.constructor.name||"Object";return d}}function ct(r){try{return yt(r),!1}catch(o){return!0}}function yt(r){return""+r}function Pt(r,o){if(ct(r))return u("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before before using it here.",o,bt(r)),yt(r)}function St(r){if(ct(r))return u("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",bt(r)),yt(r)}function jn(r,o){if(ct(r))return u("The provided `%s` prop is an unsupported type %s. This value must be coerced to a string before before using it here.",o,bt(r)),yt(r)}function Hn(r,o){if(ct(r))return u("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before before using it here.",o,bt(r)),yt(r)}function Be(r){if(ct(r))return u("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before before using it here.",bt(r)),yt(r)}function At(r){if(ct(r))return u("Form field values (value, checked, defaultValue, or defaultChecked props) must be strings, not %s. This value must be coerced to a string before before using it here.",bt(r)),yt(r)}var Pn=0,Wt=1,hr=2,$n=3,me=4,Me=5,dt=6,It=":A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",Ae=It+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",Ye=new RegExp("^["+It+"]["+Ae+"]*$"),Nt={},xt={};function Kt(r){return Et.call(xt,r)?!0:Et.call(Nt,r)?!1:Ye.test(r)?(xt[r]=!0,!0):(Nt[r]=!0,u("Invalid attribute name: `%s`",r),!1)}function ln(r,o,d){return o!==null?o.type===Pn:d?!1:r.length>2&&(r[0]==="o"||r[0]==="O")&&(r[1]==="n"||r[1]==="N")}function Qt(r,o,d,p){if(d!==null&&d.type===Pn)return!1;switch(typeof o){case"function":case"symbol":return!0;case"boolean":{if(p)return!1;if(d!==null)return!d.acceptsBooleans;var v=r.toLowerCase().slice(0,5);return v!=="data-"&&v!=="aria-"}default:return!1}}function Qn(r,o,d,p){if(o===null||typeof o=="undefined"||Qt(r,o,d,p))return!0;if(p)return!1;if(d!==null)switch(d.type){case $n:return!o;case me:return o===!1;case Me:return isNaN(o);case dt:return isNaN(o)||o<1}return!1}function dn(r){return Rn.hasOwnProperty(r)?Rn[r]:null}function En(r,o,d,p,v,S,T){this.acceptsBooleans=o===hr||o===$n||o===me,this.attributeName=p,this.attributeNamespace=v,this.mustUseProperty=d,this.propertyName=r,this.type=o,this.sanitizeURL=S,this.removeEmptyString=T}var Rn={},fa=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];fa.forEach(function(r){Rn[r]=new En(r,Pn,!1,r,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(r){var o=r[0],d=r[1];Rn[o]=new En(o,Wt,!1,d,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(r){Rn[r]=new En(r,hr,!1,r.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(r){Rn[r]=new En(r,hr,!1,r,null,!1,!1)}),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach(function(r){Rn[r]=new En(r,$n,!1,r.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(r){Rn[r]=new En(r,$n,!0,r,null,!1,!1)}),["capture","download"].forEach(function(r){Rn[r]=new En(r,me,!1,r,null,!1,!1)}),["cols","rows","size","span"].forEach(function(r){Rn[r]=new En(r,dt,!1,r,null,!1,!1)}),["rowSpan","start"].forEach(function(r){Rn[r]=new En(r,Me,!1,r.toLowerCase(),null,!1,!1)});var Fr=/[\-\:]([a-z])/g,Jr=function(r){return r[1].toUpperCase()};["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach(function(r){var o=r.replace(Fr,Jr);Rn[o]=new En(o,Wt,!1,r,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(r){var o=r.replace(Fr,Jr);Rn[o]=new En(o,Wt,!1,r,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(r){var o=r.replace(Fr,Jr);Rn[o]=new En(o,Wt,!1,r,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(r){Rn[r]=new En(r,Wt,!1,r.toLowerCase(),null,!1,!1)});var Rr="xlinkHref";Rn[Rr]=new En("xlinkHref",Wt,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(r){Rn[r]=new En(r,Wt,!1,r.toLowerCase(),null,!0,!0)});var vi=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*\:/i,Bi=!1;function Xr(r){!Bi&&vi.test(r)&&(Bi=!0,u("A future version of React will block javascript: URLs as a security precaution. Use event handlers instead if you can. If you need to generate unsafe HTML try using dangerouslySetInnerHTML instead. React was passed %s.",JSON.stringify(r)))}function yi(r,o,d,p){if(p.mustUseProperty){var v=p.propertyName;return r[v]}else{Pt(d,o),p.sanitizeURL&&Xr(""+d);var S=p.attributeName,T=null;if(p.type===me){if(r.hasAttribute(S)){var N=r.getAttribute(S);return N===""?!0:Qn(o,d,p,!1)?N:N===""+d?d:N}}else if(r.hasAttribute(S)){if(Qn(o,d,p,!1))return r.getAttribute(S);if(p.type===$n)return d;T=r.getAttribute(S)}return Qn(o,d,p,!1)?T===null?d:T:T===""+d?d:T}}function _t(r,o,d,p){{if(!Kt(o))return;if(!r.hasAttribute(o))return d===void 0?void 0:null;var v=r.getAttribute(o);return Pt(d,o),v===""+d?d:v}}function _n(r,o,d,p){var v=dn(o);if(!ln(o,v,p)){if(Qn(o,d,v,p)&&(d=null),p||v===null){if(Kt(o)){var S=o;d===null?r.removeAttribute(S):(Pt(d,o),r.setAttribute(S,""+d))}return}var T=v.mustUseProperty;if(T){var N=v.propertyName;if(d===null){var I=v.type;r[N]=I===$n?!1:""}else r[N]=d;return}var B=v.attributeName,W=v.attributeNamespace;if(d===null)r.removeAttribute(B);else{var re=v.type,te;re===$n||re===me&&d===!0?te="":(Pt(d,B),te=""+d,v.sanitizeURL&&Xr(te.toString())),W?r.setAttributeNS(W,B,te):r.setAttribute(B,te)}}}var Ar=Symbol.for("react.element"),yr=Symbol.for("react.portal"),Ia=Symbol.for("react.fragment"),Nr=Symbol.for("react.strict_mode"),So=Symbol.for("react.profiler"),tr=Symbol.for("react.provider"),J=Symbol.for("react.context"),Oe=Symbol.for("react.forward_ref"),et=Symbol.for("react.suspense"),ut=Symbol.for("react.suspense_list"),Gt=Symbol.for("react.memo"),Ht=Symbol.for("react.lazy"),un=Symbol.for("react.scope"),an=Symbol.for("react.debug_trace_mode"),Mr=Symbol.for("react.offscreen"),nr=Symbol.for("react.legacy_hidden"),ir=Symbol.for("react.cache"),pa=Symbol.for("react.tracing_marker"),xi=Symbol.iterator,wi="@@iterator";function Yt(r){if(r===null||typeof r!="object")return null;var o=xi&&r[xi]||r[wi];return typeof o=="function"?o:null}var en=Object.assign,bi=0,tu,nu,sl,fc,ll,eo,Id;function Da(){}Da.__reactDisabledLog=!0;function Up(){{if(bi===0){tu=console.log,nu=console.info,sl=console.warn,fc=console.error,ll=console.group,eo=console.groupCollapsed,Id=console.groupEnd;var r={configurable:!0,enumerable:!0,value:Da,writable:!0};Object.defineProperties(console,{info:r,log:r,warn:r,error:r,group:r,groupCollapsed:r,groupEnd:r})}bi++}}function Bp(){{if(bi--,bi===0){var r={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:en({},r,{value:tu}),info:en({},r,{value:nu}),warn:en({},r,{value:sl}),error:en({},r,{value:fc}),group:en({},r,{value:ll}),groupCollapsed:en({},r,{value:eo}),groupEnd:en({},r,{value:Id})})}bi<0&&u("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var pc=n.ReactCurrentDispatcher,ul;function ko(r,o,d){{if(ul===void 0)try{throw Error()}catch(v){var p=v.stack.trim().match(/\n( *(at )?)/);ul=p&&p[1]||""}return`
109
+ `+ul+r}}var Ci=!1,Si;{var hc=typeof WeakMap=="function"?WeakMap:Map;Si=new hc}function ru(r,o){if(!r||Ci)return"";{var d=Si.get(r);if(d!==void 0)return d}var p;Ci=!0;var v=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var S;S=pc.current,pc.current=null,Up();try{if(o){var T=function(){throw Error()};if(Object.defineProperty(T.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(T,[])}catch(pe){p=pe}Reflect.construct(r,[],T)}else{try{T.call()}catch(pe){p=pe}r.call(T.prototype)}}else{try{throw Error()}catch(pe){p=pe}r()}}catch(pe){if(pe&&p&&typeof pe.stack=="string"){for(var N=pe.stack.split(`
110
+ `),I=p.stack.split(`
111
+ `),B=N.length-1,W=I.length-1;B>=1&&W>=0&&N[B]!==I[W];)W--;for(;B>=1&&W>=0;B--,W--)if(N[B]!==I[W]){if(B!==1||W!==1)do if(B--,W--,W<0||N[B]!==I[W]){var re=`
112
+ `+N[B].replace(" at new "," at ");return r.displayName&&re.includes("<anonymous>")&&(re=re.replace("<anonymous>",r.displayName)),typeof r=="function"&&Si.set(r,re),re}while(B>=1&&W>=0);break}}}finally{Ci=!1,pc.current=S,Bp(),Error.prepareStackTrace=v}var te=r?r.displayName||r.name:"",ce=te?ko(te):"";return typeof r=="function"&&Si.set(r,ce),ce}function cl(r,o,d){return ru(r,!0)}function mc(r,o,d){return ru(r,!1)}function gc(r){var o=r.prototype;return!!(o&&o.isReactComponent)}function Cs(r,o,d){if(r==null)return"";if(typeof r=="function")return ru(r,gc(r));if(typeof r=="string")return ko(r);switch(r){case et:return ko("Suspense");case ut:return ko("SuspenseList")}if(typeof r=="object")switch(r.$$typeof){case Oe:return mc(r.render);case Gt:return Cs(r.type,o,d);case Ht:{var p=r,v=p._payload,S=p._init;try{return Cs(S(v),o,d)}catch(T){}}}return""}function Em(r){switch(r._debugOwner&&r._debugOwner.type,r._debugSource,r.tag){case b:return ko(r.type);case q:return ko("Lazy");case V:return ko("Suspense");case ge:return ko("SuspenseList");case h:case x:case Z:return mc(r.type);case F:return mc(r.type.render);case g:return cl(r.type);default:return""}}function Ss(r){try{var o="",d=r;do o+=Em(d),d=d.return;while(d);return o}catch(p){return`
113
+ Error generating stack: `+p.message+`
114
+ `+p.stack}}function An(r,o,d){var p=r.displayName;if(p)return p;var v=o.displayName||o.name||"";return v!==""?d+"("+v+")":d}function vc(r){return r.displayName||"Context"}function Cn(r){if(r==null)return null;if(typeof r.tag=="number"&&u("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof r=="function")return r.displayName||r.name||null;if(typeof r=="string")return r;switch(r){case Ia:return"Fragment";case yr:return"Portal";case So:return"Profiler";case Nr:return"StrictMode";case et:return"Suspense";case ut:return"SuspenseList"}if(typeof r=="object")switch(r.$$typeof){case J:var o=r;return vc(o)+".Consumer";case tr:var d=r;return vc(d._context)+".Provider";case Oe:return An(r,r.render,"ForwardRef");case Gt:var p=r.displayName||null;return p!==null?p:Cn(r.type)||"Memo";case Ht:{var v=r,S=v._payload,T=v._init;try{return Cn(T(S))}catch(N){return null}}}return null}function Dd(r,o,d){var p=o.displayName||o.name||"";return r.displayName||(p!==""?d+"("+p+")":d)}function Hi(r){return r.displayName||"Context"}function Bt(r){var o=r.tag,d=r.type;switch(o){case xe:return"Cache";case L:var p=d;return Hi(p)+".Consumer";case P:var v=d;return Hi(v._context)+".Provider";case _e:return"DehydratedFragment";case F:return Dd(d,d.render,"ForwardRef");case R:return"Fragment";case b:return d;case k:return"Portal";case y:return"Root";case _:return"Text";case q:return Cn(d);case M:return d===Nr?"StrictMode":"Mode";case we:return"Offscreen";case D:return"Profiler";case he:return"Scope";case V:return"Suspense";case ge:return"SuspenseList";case Te:return"TracingMarker";case g:case h:case ae:case x:case H:case Z:if(typeof d=="function")return d.displayName||d.name||null;if(typeof d=="string")return d;break}return null}var yc=n.ReactDebugCurrentFrame,ha=null,Vi=!1;function ja(){{if(ha===null)return null;var r=ha._debugOwner;if(r!==null&&typeof r!="undefined")return Bt(r)}return null}function $i(){return ha===null?"":Ss(ha)}function sr(){yc.getCurrentStack=null,ha=null,Vi=!1}function Zn(r){yc.getCurrentStack=r===null?null:$i,ha=r,Vi=!1}function dl(){return ha}function Kr(r){Vi=r}function Pa(r){return""+r}function Wo(r){switch(typeof r){case"boolean":case"number":case"string":case"undefined":return r;case"object":return At(r),r;default:return""}}var au={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0};function jd(r,o){au[o.type]||o.onChange||o.onInput||o.readOnly||o.disabled||o.value==null||u("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`."),o.onChange||o.readOnly||o.disabled||o.checked==null||u("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function Pd(r){var o=r.type,d=r.nodeName;return d&&d.toLowerCase()==="input"&&(o==="checkbox"||o==="radio")}function fl(r){return r._valueTracker}function ou(r){r._valueTracker=null}function _m(r){var o="";return r&&(Pd(r)?o=r.checked?"true":"false":o=r.value),o}function qo(r){var o=Pd(r)?"checked":"value",d=Object.getOwnPropertyDescriptor(r.constructor.prototype,o);At(r[o]);var p=""+r[o];if(!(r.hasOwnProperty(o)||typeof d=="undefined"||typeof d.get!="function"||typeof d.set!="function")){var v=d.get,S=d.set;Object.defineProperty(r,o,{configurable:!0,get:function(){return v.call(this)},set:function(N){At(N),p=""+N,S.call(this,N)}}),Object.defineProperty(r,o,{enumerable:d.enumerable});var T={getValue:function(){return p},setValue:function(N){At(N),p=""+N},stopTracking:function(){ou(r),delete r[o]}};return T}}function ki(r){fl(r)||(r._valueTracker=qo(r))}function Zi(r){if(!r)return!1;var o=fl(r);if(!o)return!0;var d=o.getValue(),p=_m(r);return p!==d?(o.setValue(p),!0):!1}function Go(r){if(r=r||(typeof document!="undefined"?document:void 0),typeof r=="undefined")return null;try{return r.activeElement||r.body}catch(o){return r.body}}var xc=!1,wc=!1,pl=!1,iu=!1;function bc(r){var o=r.type==="checkbox"||r.type==="radio";return o?r.checked!=null:r.value!=null}function Cc(r,o){var d=r,p=o.checked,v=en({},o,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:p!=null?p:d._wrapperState.initialChecked});return v}function Ei(r,o){jd("input",o),o.checked!==void 0&&o.defaultChecked!==void 0&&!wc&&(u("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components",ja()||"A component",o.type),wc=!0),o.value!==void 0&&o.defaultValue!==void 0&&!xc&&(u("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components",ja()||"A component",o.type),xc=!0);var d=r,p=o.defaultValue==null?"":o.defaultValue;d._wrapperState={initialChecked:o.checked!=null?o.checked:o.defaultChecked,initialValue:Wo(o.value!=null?o.value:p),controlled:bc(o)}}function j(r,o){var d=r,p=o.checked;p!=null&&_n(d,"checked",p,!1)}function Y(r,o){var d=r;{var p=bc(o);!d._wrapperState.controlled&&p&&!iu&&(u("A component is changing an uncontrolled input to be controlled. This is likely caused by the value changing from undefined to a defined value, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://reactjs.org/link/controlled-components"),iu=!0),d._wrapperState.controlled&&!p&&!pl&&(u("A component is changing a controlled input to be uncontrolled. This is likely caused by the value changing from a defined to undefined, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://reactjs.org/link/controlled-components"),pl=!0)}j(r,o);var v=Wo(o.value),S=o.type;if(v!=null)S==="number"?(v===0&&d.value===""||d.value!=v)&&(d.value=Pa(v)):d.value!==Pa(v)&&(d.value=Pa(v));else if(S==="submit"||S==="reset"){d.removeAttribute("value");return}o.hasOwnProperty("value")?Mt(d,o.type,v):o.hasOwnProperty("defaultValue")&&Mt(d,o.type,Wo(o.defaultValue)),o.checked==null&&o.defaultChecked!=null&&(d.defaultChecked=!!o.defaultChecked)}function de(r,o,d){var p=r;if(o.hasOwnProperty("value")||o.hasOwnProperty("defaultValue")){var v=o.type,S=v==="submit"||v==="reset";if(S&&(o.value===void 0||o.value===null))return;var T=Pa(p._wrapperState.initialValue);d||T!==p.value&&(p.value=T),p.defaultValue=T}var N=p.name;N!==""&&(p.name=""),p.defaultChecked=!p.defaultChecked,p.defaultChecked=!!p._wrapperState.initialChecked,N!==""&&(p.name=N)}function be(r,o){var d=r;Y(d,o),He(d,o)}function He(r,o){var d=o.name;if(o.type==="radio"&&d!=null){for(var p=r;p.parentNode;)p=p.parentNode;Pt(d,"name");for(var v=p.querySelectorAll("input[name="+JSON.stringify(""+d)+'][type="radio"]'),S=0;S<v.length;S++){var T=v[S];if(!(T===r||T.form!==r.form)){var N=ly(T);if(!N)throw new Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");Zi(T),Y(T,N)}}}}function Mt(r,o,d){(o!=="number"||Go(r.ownerDocument)!==r)&&(d==null?r.defaultValue=Pa(r._wrapperState.initialValue):r.defaultValue!==Pa(d)&&(r.defaultValue=Pa(d)))}var Xe=!1,Dt=!1,cn=!1;function Sn(r,o){o.value==null&&(typeof o.children=="object"&&o.children!==null?e.Children.forEach(o.children,function(d){d!=null&&(typeof d=="string"||typeof d=="number"||Dt||(Dt=!0,u("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>.")))}):o.dangerouslySetInnerHTML!=null&&(cn||(cn=!0,u("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected.")))),o.selected!=null&&!Xe&&(u("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),Xe=!0)}function rr(r,o){o.value!=null&&r.setAttribute("value",Pa(Wo(o.value)))}var Wn=Array.isArray;function rn(r){return Wn(r)}var qn;qn=!1;function xr(){var r=ja();return r?`
115
+
116
+ Check the render method of \``+r+"`.":""}var hl=["value","defaultValue"];function Fd(r){{jd("select",r);for(var o=0;o<hl.length;o++){var d=hl[o];if(r[d]!=null){var p=rn(r[d]);r.multiple&&!p?u("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",d,xr()):!r.multiple&&p&&u("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",d,xr())}}}}function ks(r,o,d,p){var v=r.options;if(o){for(var S=d,T={},N=0;N<S.length;N++)T["$"+S[N]]=!0;for(var I=0;I<v.length;I++){var B=T.hasOwnProperty("$"+v[I].value);v[I].selected!==B&&(v[I].selected=B),B&&p&&(v[I].defaultSelected=!0)}}else{for(var W=Pa(Wo(d)),re=null,te=0;te<v.length;te++){if(v[te].value===W){v[te].selected=!0,p&&(v[te].defaultSelected=!0);return}re===null&&!v[te].disabled&&(re=v[te])}re!==null&&(re.selected=!0)}}function zd(r,o){return en({},o,{value:void 0})}function su(r,o){var d=r;Fd(o),d._wrapperState={wasMultiple:!!o.multiple},o.value!==void 0&&o.defaultValue!==void 0&&!qn&&(u("Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://reactjs.org/link/controlled-components"),qn=!0)}function Tm(r,o){var d=r;d.multiple=!!o.multiple;var p=o.value;p!=null?ks(d,!!o.multiple,p,!1):o.defaultValue!=null&&ks(d,!!o.multiple,o.defaultValue,!0)}function Hp(r,o){var d=r,p=d._wrapperState.wasMultiple;d._wrapperState.wasMultiple=!!o.multiple;var v=o.value;v!=null?ks(d,!!o.multiple,v,!1):p!==!!o.multiple&&(o.defaultValue!=null?ks(d,!!o.multiple,o.defaultValue,!0):ks(d,!!o.multiple,o.multiple?[]:"",!1))}function Rm(r,o){var d=r,p=o.value;p!=null&&ks(d,!!o.multiple,p,!1)}var M4=!1;function Am(r,o){var d=r;if(o.dangerouslySetInnerHTML!=null)throw new Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");var p=en({},o,{value:void 0,defaultValue:void 0,children:Pa(d._wrapperState.initialValue)});return p}function Nm(r,o){var d=r;jd("textarea",o),o.value!==void 0&&o.defaultValue!==void 0&&!M4&&(u("%s contains a textarea with both value and defaultValue props. Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://reactjs.org/link/controlled-components",ja()||"A component"),M4=!0);var p=o.value;if(p==null){var v=o.children,S=o.defaultValue;if(v!=null){u("Use the `defaultValue` or `value` props instead of setting children on <textarea>.");{if(S!=null)throw new Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(rn(v)){if(v.length>1)throw new Error("<textarea> can only have at most one child.");v=v[0]}S=v}}S==null&&(S=""),p=S}d._wrapperState={initialValue:Wo(p)}}function O4(r,o){var d=r,p=Wo(o.value),v=Wo(o.defaultValue);if(p!=null){var S=Pa(p);S!==d.value&&(d.value=S),o.defaultValue==null&&d.defaultValue!==S&&(d.defaultValue=S)}v!=null&&(d.defaultValue=Pa(v))}function L4(r,o){var d=r,p=d.textContent;p===d._wrapperState.initialValue&&p!==""&&p!==null&&(d.value=p)}function V7(r,o){O4(r,o)}var Es="http://www.w3.org/1999/xhtml",Mm="http://www.w3.org/1998/Math/MathML",Om="http://www.w3.org/2000/svg";function Lm(r){switch(r){case"svg":return Om;case"math":return Mm;default:return Es}}function Im(r,o){return r==null||r===Es?Lm(o):r===Om&&o==="foreignObject"?Es:r}var I4=function(r){return typeof MSApp!="undefined"&&MSApp.execUnsafeLocalFunction?function(o,d,p,v){MSApp.execUnsafeLocalFunction(function(){return r(o,d,p,v)})}:r},Vp,D4=I4(function(r,o){if(r.namespaceURI===Om&&!("innerHTML"in r)){Vp=Vp||document.createElement("div"),Vp.innerHTML="<svg>"+o.valueOf().toString()+"</svg>";for(var d=Vp.firstChild;r.firstChild;)r.removeChild(r.firstChild);for(;d.firstChild;)r.appendChild(d.firstChild);return}r.innerHTML=o}),to=1,_s=3,zr=8,Ts=9,Dm=11,Sc=function(r,o){if(o){var d=r.firstChild;if(d&&d===r.lastChild&&d.nodeType===_s){d.nodeValue=o;return}}r.textContent=o},Ud={animation:["animationDelay","animationDirection","animationDuration","animationFillMode","animationIterationCount","animationName","animationPlayState","animationTimingFunction"],background:["backgroundAttachment","backgroundClip","backgroundColor","backgroundImage","backgroundOrigin","backgroundPositionX","backgroundPositionY","backgroundRepeat","backgroundSize"],backgroundPosition:["backgroundPositionX","backgroundPositionY"],border:["borderBottomColor","borderBottomStyle","borderBottomWidth","borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth","borderLeftColor","borderLeftStyle","borderLeftWidth","borderRightColor","borderRightStyle","borderRightWidth","borderTopColor","borderTopStyle","borderTopWidth"],borderBlockEnd:["borderBlockEndColor","borderBlockEndStyle","borderBlockEndWidth"],borderBlockStart:["borderBlockStartColor","borderBlockStartStyle","borderBlockStartWidth"],borderBottom:["borderBottomColor","borderBottomStyle","borderBottomWidth"],borderColor:["borderBottomColor","borderLeftColor","borderRightColor","borderTopColor"],borderImage:["borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth"],borderInlineEnd:["borderInlineEndColor","borderInlineEndStyle","borderInlineEndWidth"],borderInlineStart:["borderInlineStartColor","borderInlineStartStyle","borderInlineStartWidth"],borderLeft:["borderLeftColor","borderLeftStyle","borderLeftWidth"],borderRadius:["borderBottomLeftRadius","borderBottomRightRadius","borderTopLeftRadius","borderTopRightRadius"],borderRight:["borderRightColor","borderRightStyle","borderRightWidth"],borderStyle:["borderBottomStyle","borderLeftStyle","borderRightStyle","borderTopStyle"],borderTop:["borderTopColor","borderTopStyle","borderTopWidth"],borderWidth:["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth"],columnRule:["columnRuleColor","columnRuleStyle","columnRuleWidth"],columns:["columnCount","columnWidth"],flex:["flexBasis","flexGrow","flexShrink"],flexFlow:["flexDirection","flexWrap"],font:["fontFamily","fontFeatureSettings","fontKerning","fontLanguageOverride","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontVariantAlternates","fontVariantCaps","fontVariantEastAsian","fontVariantLigatures","fontVariantNumeric","fontVariantPosition","fontWeight","lineHeight"],fontVariant:["fontVariantAlternates","fontVariantCaps","fontVariantEastAsian","fontVariantLigatures","fontVariantNumeric","fontVariantPosition"],gap:["columnGap","rowGap"],grid:["gridAutoColumns","gridAutoFlow","gridAutoRows","gridTemplateAreas","gridTemplateColumns","gridTemplateRows"],gridArea:["gridColumnEnd","gridColumnStart","gridRowEnd","gridRowStart"],gridColumn:["gridColumnEnd","gridColumnStart"],gridColumnGap:["columnGap"],gridGap:["columnGap","rowGap"],gridRow:["gridRowEnd","gridRowStart"],gridRowGap:["rowGap"],gridTemplate:["gridTemplateAreas","gridTemplateColumns","gridTemplateRows"],listStyle:["listStyleImage","listStylePosition","listStyleType"],margin:["marginBottom","marginLeft","marginRight","marginTop"],marker:["markerEnd","markerMid","markerStart"],mask:["maskClip","maskComposite","maskImage","maskMode","maskOrigin","maskPositionX","maskPositionY","maskRepeat","maskSize"],maskPosition:["maskPositionX","maskPositionY"],outline:["outlineColor","outlineStyle","outlineWidth"],overflow:["overflowX","overflowY"],padding:["paddingBottom","paddingLeft","paddingRight","paddingTop"],placeContent:["alignContent","justifyContent"],placeItems:["alignItems","justifyItems"],placeSelf:["alignSelf","justifySelf"],textDecoration:["textDecorationColor","textDecorationLine","textDecorationStyle"],textEmphasis:["textEmphasisColor","textEmphasisStyle"],transition:["transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction"],wordWrap:["overflowWrap"]},Bd={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0};function j4(r,o){return r+o.charAt(0).toUpperCase()+o.substring(1)}var P4=["Webkit","ms","Moz","O"];Object.keys(Bd).forEach(function(r){P4.forEach(function(o){Bd[j4(o,r)]=Bd[r]})});function $p(r,o,d){var p=o==null||typeof o=="boolean"||o==="";return p?"":!d&&typeof o=="number"&&o!==0&&!(Bd.hasOwnProperty(r)&&Bd[r])?o+"px":(Hn(o,r),(""+o).trim())}var F4=/([A-Z])/g,z4=/^ms-/;function kc(r){return r.replace(F4,"-$1").toLowerCase().replace(z4,"-ms-")}var U4=function(){};{var $7=/^(?:webkit|moz|o)[A-Z]/,Z7=/^-ms-/,B4=/-(.)/g,jm=/;\s*$/,Wi={},lu={},H4=!1,Hd=!1,W7=function(r){return r.replace(B4,function(o,d){return d.toUpperCase()})},V4=function(r){Wi.hasOwnProperty(r)&&Wi[r]||(Wi[r]=!0,u("Unsupported style property %s. Did you mean %s?",r,W7(r.replace(Z7,"ms-"))))},Pm=function(r){Wi.hasOwnProperty(r)&&Wi[r]||(Wi[r]=!0,u("Unsupported vendor-prefixed style property %s. Did you mean %s?",r,r.charAt(0).toUpperCase()+r.slice(1)))},Fm=function(r,o){lu.hasOwnProperty(o)&&lu[o]||(lu[o]=!0,u(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,r,o.replace(jm,"")))},$4=function(r,o){H4||(H4=!0,u("`NaN` is an invalid value for the `%s` css style property.",r))},Z4=function(r,o){Hd||(Hd=!0,u("`Infinity` is an invalid value for the `%s` css style property.",r))};U4=function(r,o){r.indexOf("-")>-1?V4(r):$7.test(r)?Pm(r):jm.test(o)&&Fm(r,o),typeof o=="number"&&(isNaN(o)?$4(r,o):isFinite(o)||Z4(r,o))}}var W4=U4;function q7(r){{var o="",d="";for(var p in r)if(r.hasOwnProperty(p)){var v=r[p];if(v!=null){var S=p.indexOf("--")===0;o+=d+(S?p:kc(p))+":",o+=$p(p,v,S),d=";"}}return o||null}}function q4(r,o){var d=r.style;for(var p in o)if(o.hasOwnProperty(p)){var v=p.indexOf("--")===0;v||W4(p,o[p]);var S=$p(p,o[p],v);p==="float"&&(p="cssFloat"),v?d.setProperty(p,S):d[p]=S}}function G7(r){return r==null||typeof r=="boolean"||r===""}function G4(r){var o={};for(var d in r)for(var p=Ud[d]||[d],v=0;v<p.length;v++)o[p[v]]=d;return o}function Y7(r,o){{if(!o)return;var d=G4(r),p=G4(o),v={};for(var S in d){var T=d[S],N=p[S];if(N&&T!==N){var I=T+","+N;if(v[I])continue;v[I]=!0,u("%s a style property during rerender (%s) when a conflicting property is set (%s) can lead to styling bugs. To avoid this, don't mix shorthand and non-shorthand properties for the same value; instead, replace the shorthand with separate values.",G7(r[T])?"Removing":"Updating",T,N)}}}}var _i={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},Vd=en({menuitem:!0},_i),Y4="__html";function Zp(r,o){if(o){if(Vd[r]&&(o.children!=null||o.dangerouslySetInnerHTML!=null))throw new Error(r+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");if(o.dangerouslySetInnerHTML!=null){if(o.children!=null)throw new Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof o.dangerouslySetInnerHTML!="object"||!(Y4 in o.dangerouslySetInnerHTML))throw new Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information.")}if(!o.suppressContentEditableWarning&&o.contentEditable&&o.children!=null&&u("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional."),o.style!=null&&typeof o.style!="object")throw new Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.")}}function ml(r,o){if(r.indexOf("-")===-1)return typeof o.is=="string";switch(r){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var $d={accept:"accept",acceptcharset:"acceptCharset","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",alt:"alt",as:"as",async:"async",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charSet",checked:"checked",children:"children",cite:"cite",class:"className",classid:"classID",classname:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlslist:"controlsList",coords:"coords",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",data:"data",datetime:"dateTime",default:"default",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defer:"defer",dir:"dir",disabled:"disabled",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback",download:"download",draggable:"draggable",enctype:"encType",enterkeyhint:"enterKeyHint",for:"htmlFor",form:"form",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",id:"id",imagesizes:"imageSizes",imagesrcset:"imageSrcSet",innerhtml:"innerHTML",inputmode:"inputMode",integrity:"integrity",is:"is",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginwidth:"marginWidth",marginheight:"marginHeight",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nomodule:"noModule",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",accentheight:"accentHeight","accent-height":"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm","arabic-form":"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clip:"clip",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",color:"color",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",datatype:"datatype",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground","enable-background":"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",focusable:"focusable",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering","image-rendering":"imageRendering",in2:"in2",in:"in",inlist:"inlist",intercept:"intercept",k1:"k1",k2:"k2",k3:"k3",k4:"k4",k:"k",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder",panose1:"panose1","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",prefix:"prefix",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",property:"property",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",resource:"resource",restart:"restart",result:"result",results:"results",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",security:"security",seed:"seed",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",to:"to",transform:"transform",typeof:"typeof",u1:"u1",u2:"u2",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",values:"values",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",version:"version",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",vmathematical:"vMathematical","v-mathematical":"vMathematical",vocab:"vocab",widths:"widths",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",x1:"x1",x2:"x2",x:"x",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang",xmlns:"xmlns","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",y1:"y1",y2:"y2",y:"y",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},Wp={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0},Ec={},J7=new RegExp("^(aria)-["+Ae+"]*$"),_c=new RegExp("^(aria)[A-Z]["+Ae+"]*$");function zm(r,o){{if(Et.call(Ec,o)&&Ec[o])return!0;if(_c.test(o)){var d="aria-"+o.slice(4).toLowerCase(),p=Wp.hasOwnProperty(d)?d:null;if(p==null)return u("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",o),Ec[o]=!0,!0;if(o!==p)return u("Invalid ARIA attribute `%s`. Did you mean `%s`?",o,p),Ec[o]=!0,!0}if(J7.test(o)){var v=o.toLowerCase(),S=Wp.hasOwnProperty(v)?v:null;if(S==null)return Ec[o]=!0,!1;if(o!==S)return u("Unknown ARIA attribute `%s`. Did you mean `%s`?",o,S),Ec[o]=!0,!0}}return!0}function Zd(r,o){{var d=[];for(var p in o){var v=zm(r,p);v||d.push(p)}var S=d.map(function(T){return"`"+T+"`"}).join(", ");d.length===1?u("Invalid aria prop %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",S,r):d.length>1&&u("Invalid aria props %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",S,r)}}function Um(r,o){ml(r,o)||Zd(r,o)}var Bm=!1;function qp(r,o){{if(r!=="input"&&r!=="textarea"&&r!=="select")return;o!=null&&o.value===null&&!Bm&&(Bm=!0,r==="select"&&o.multiple?u("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",r):u("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",r))}}var uu=function(){};{var ma={},Hm=/^on./,Gp=/^on[^A-Z]/,J4=new RegExp("^(aria)-["+Ae+"]*$"),X4=new RegExp("^(aria)[A-Z]["+Ae+"]*$");uu=function(r,o,d,p){if(Et.call(ma,o)&&ma[o])return!0;var v=o.toLowerCase();if(v==="onfocusin"||v==="onfocusout")return u("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),ma[o]=!0,!0;if(p!=null){var S=p.registrationNameDependencies,T=p.possibleRegistrationNames;if(S.hasOwnProperty(o))return!0;var N=T.hasOwnProperty(v)?T[v]:null;if(N!=null)return u("Invalid event handler property `%s`. Did you mean `%s`?",o,N),ma[o]=!0,!0;if(Hm.test(o))return u("Unknown event handler property `%s`. It will be ignored.",o),ma[o]=!0,!0}else if(Hm.test(o))return Gp.test(o)&&u("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",o),ma[o]=!0,!0;if(J4.test(o)||X4.test(o))return!0;if(v==="innerhtml")return u("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),ma[o]=!0,!0;if(v==="aria")return u("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),ma[o]=!0,!0;if(v==="is"&&d!==null&&d!==void 0&&typeof d!="string")return u("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof d),ma[o]=!0,!0;if(typeof d=="number"&&isNaN(d))return u("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",o),ma[o]=!0,!0;var I=dn(o),B=I!==null&&I.type===Pn;if($d.hasOwnProperty(v)){var W=$d[v];if(W!==o)return u("Invalid DOM property `%s`. Did you mean `%s`?",o,W),ma[o]=!0,!0}else if(!B&&o!==v)return u("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",o,v),ma[o]=!0,!0;return typeof d=="boolean"&&Qt(o,d,I,!1)?(d?u('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',d,o,o,d,o):u('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',d,o,o,d,o,o,o),ma[o]=!0,!0):B?!0:Qt(o,d,I,!1)?(ma[o]=!0,!1):((d==="false"||d==="true")&&I!==null&&I.type===$n&&(u("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",d,o,d==="false"?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',o,d),ma[o]=!0),!0)}}var K4=function(r,o,d){{var p=[];for(var v in o){var S=uu(r,v,o[v],d);S||p.push(v)}var T=p.map(function(N){return"`"+N+"`"}).join(", ");p.length===1?u("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://reactjs.org/link/attribute-behavior ",T,r):p.length>1&&u("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://reactjs.org/link/attribute-behavior ",T,r)}};function Q4(r,o,d){ml(r,o)||K4(r,o,d)}var Vm=1,Yp=2,Yo=4,$m=Vm|Yp|Yo,cu=null;function X7(r){cu!==null&&u("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),cu=r}function K7(){cu===null&&u("Expected currently replaying event to not be null. This error is likely caused by a bug in React. Please file an issue."),cu=null}function Wd(r){return r===cu}function Zm(r){var o=r.target||r.srcElement||window;return o.correspondingUseElement&&(o=o.correspondingUseElement),o.nodeType===_s?o.parentNode:o}var Jp=null,du=null,Fn=null;function Xp(r){var o=qc(r);if(o){if(typeof Jp!="function")throw new Error("setRestoreImplementation() needs to be called to handle a target for controlled events. This error is likely caused by a bug in React. Please file an issue.");var d=o.stateNode;if(d){var p=ly(d);Jp(o.stateNode,o.type,p)}}}function Kp(r){Jp=r}function Tc(r){du?Fn?Fn.push(r):Fn=[r]:du=r}function e2(){return du!==null||Fn!==null}function Qp(){if(du){var r=du,o=Fn;if(du=null,Fn=null,Xp(r),o)for(var d=0;d<o.length;d++)Xp(o[d])}}var Rc=function(r,o){return r(o)},qd=function(){},gl=!1;function t2(){var r=e2();r&&(qd(),Qp())}function n2(r,o,d){if(gl)return r(o,d);gl=!0;try{return Rc(r,o,d)}finally{gl=!1,t2()}}function Q7(r,o,d){Rc=r,qd=d}function r2(r){return r==="button"||r==="input"||r==="select"||r==="textarea"}function e1(r,o,d){switch(r){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":return!!(d.disabled&&r2(o));default:return!1}}function vl(r,o){var d=r.stateNode;if(d===null)return null;var p=ly(d);if(p===null)return null;var v=p[o];if(e1(o,r.type,p))return null;if(v&&typeof v!="function")throw new Error("Expected `"+o+"` listener to be a function, instead got a value of `"+typeof v+"` type.");return v}var Gd=!1;if(tt)try{var fu={};Object.defineProperty(fu,"passive",{get:function(){Gd=!0}}),window.addEventListener("test",fu,fu),window.removeEventListener("test",fu,fu)}catch(r){Gd=!1}function t1(r,o,d,p,v,S,T,N,I){var B=Array.prototype.slice.call(arguments,3);try{o.apply(d,B)}catch(W){this.onError(W)}}var n1=t1;if(typeof window!="undefined"&&typeof window.dispatchEvent=="function"&&typeof document!="undefined"&&typeof document.createEvent=="function"){var Wm=document.createElement("react");n1=function(o,d,p,v,S,T,N,I,B){if(typeof document=="undefined"||document===null)throw new Error("The `document` global was defined when React was initialized, but is not defined anymore. This can happen in a test environment if a component schedules an update from an asynchronous callback, but the test has already finished running. To solve this, you can either unmount the component at the end of your test (and ensure that any asynchronous operations get canceled in `componentWillUnmount`), or you can change the test itself to be asynchronous.");var W=document.createEvent("Event"),re=!1,te=!0,ce=window.event,pe=Object.getOwnPropertyDescriptor(window,"event");function Ce(){Wm.removeEventListener(Se,Ot,!1),typeof window.event!="undefined"&&window.hasOwnProperty("event")&&(window.event=ce)}var rt=Array.prototype.slice.call(arguments,3);function Ot(){re=!0,Ce(),d.apply(p,rt),te=!1}var Ct,bn=!1,mn=!1;function se(le){if(Ct=le.error,bn=!0,Ct===null&&le.colno===0&&le.lineno===0&&(mn=!0),le.defaultPrevented&&Ct!=null&&typeof Ct=="object")try{Ct._suppressLogging=!0}catch(ze){}}var Se="react-"+(o||"invokeguardedcallback");if(window.addEventListener("error",se),Wm.addEventListener(Se,Ot,!1),W.initEvent(Se,!1,!1),Wm.dispatchEvent(W),pe&&Object.defineProperty(window,"event",pe),re&&te&&(bn?mn&&(Ct=new Error("A cross-origin error was thrown. React doesn't have access to the actual error object in development. See https://reactjs.org/link/crossorigin-error for more information.")):Ct=new Error(`An error was thrown inside one of your components, but React doesn't know what it was. This is likely due to browser flakiness. React does its best to preserve the "Pause on exceptions" behavior of the DevTools, which requires some DEV-mode only tricks. It's possible that these don't work in your browser. Try triggering the error in production mode, or switching to a modern browser. If you suspect that this is actually an issue with React, please file an issue.`),this.onError(Ct)),window.removeEventListener("error",se),!re)return Ce(),t1.apply(this,arguments)}}var a2=n1,Ac=!1,r1=null,Nc=!1,qi=null,o2={onError:function(r){Ac=!0,r1=r}};function yl(r,o,d,p,v,S,T,N,I){Ac=!1,r1=null,a2.apply(o2,arguments)}function Gi(r,o,d,p,v,S,T,N,I){if(yl.apply(this,arguments),Ac){var B=Jd();Nc||(Nc=!0,qi=B)}}function Yd(){if(Nc){var r=qi;throw Nc=!1,qi=null,r}}function Rs(){return Ac}function Jd(){if(Ac){var r=r1;return Ac=!1,r1=null,r}else throw new Error("clearCaughtError was called but no error was captured. This error is likely caused by a bug in React. Please file an issue.")}function Mc(r){return r._reactInternals}function e6(r){return r._reactInternals!==void 0}function pu(r,o){r._reactInternals=o}var Tt=0,Ti=1,wr=2,yn=4,Jo=16,Xo=32,ar=64,kt=128,Aa=256,Er=512,Qr=1024,no=2048,ro=4096,Ur=8192,Oc=16384,i2=32767,Xd=32768,oa=65536,a1=131072,Yi=1048576,Lc=2097152,As=4194304,o1=8388608,xl=16777216,Ji=33554432,wl=yn|Qr|0,bl=wr|yn|Jo|Xo|Er|ro|Ur,Cl=yn|ar|Er|Ur,Ns=no|Jo,Br=As|o1|Lc,Ko=n.ReactCurrentOwner;function Eo(r){var o=r,d=r;if(r.alternate)for(;o.return;)o=o.return;else{var p=o;do o=p,(o.flags&(wr|ro))!==Tt&&(d=o.return),p=o.return;while(p)}return o.tag===y?d:null}function Xi(r){if(r.tag===V){var o=r.memoizedState;if(o===null){var d=r.alternate;d!==null&&(o=d.memoizedState)}if(o!==null)return o.dehydrated}return null}function Ki(r){return r.tag===y?r.stateNode.containerInfo:null}function hu(r){return Eo(r)===r}function s2(r){{var o=Ko.current;if(o!==null&&o.tag===g){var d=o,p=d.stateNode;p._warnedAboutRefsInRender||u("%s is accessing isMounted inside its render() function. render() should be a pure function of props and state. It should never access something that requires stale data from the previous render, such as refs. Move this logic to componentDidMount and componentDidUpdate instead.",Bt(d)||"A component"),p._warnedAboutRefsInRender=!0}}var v=Mc(r);return v?Eo(v)===v:!1}function i1(r){if(Eo(r)!==r)throw new Error("Unable to find node on an unmounted component.")}function s1(r){var o=r.alternate;if(!o){var d=Eo(r);if(d===null)throw new Error("Unable to find node on an unmounted component.");return d!==r?null:r}for(var p=r,v=o;;){var S=p.return;if(S===null)break;var T=S.alternate;if(T===null){var N=S.return;if(N!==null){p=v=N;continue}break}if(S.child===T.child){for(var I=S.child;I;){if(I===p)return i1(S),r;if(I===v)return i1(S),o;I=I.sibling}throw new Error("Unable to find node on an unmounted component.")}if(p.return!==v.return)p=S,v=T;else{for(var B=!1,W=S.child;W;){if(W===p){B=!0,p=S,v=T;break}if(W===v){B=!0,v=S,p=T;break}W=W.sibling}if(!B){for(W=T.child;W;){if(W===p){B=!0,p=T,v=S;break}if(W===v){B=!0,v=T,p=S;break}W=W.sibling}if(!B)throw new Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.")}}if(p.alternate!==v)throw new Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.")}if(p.tag!==y)throw new Error("Unable to find node on an unmounted component.");return p.stateNode.current===p?r:o}function ao(r){var o=s1(r);return o!==null?oo(o):null}function oo(r){if(r.tag===b||r.tag===_)return r;for(var o=r.child;o!==null;){var d=oo(o);if(d!==null)return d;o=o.sibling}return null}function mr(r){var o=s1(r);return o!==null?Qo(o):null}function Qo(r){if(r.tag===b||r.tag===_)return r;for(var o=r.child;o!==null;){if(o.tag!==k){var d=Qo(o);if(d!==null)return d}o=o.sibling}return null}var qm=t.unstable_scheduleCallback,l2=t.unstable_cancelCallback,Gm=t.unstable_shouldYield,Ym=t.unstable_requestPaint,ea=t.unstable_now,l1=t.unstable_getCurrentPriorityLevel,Kd=t.unstable_ImmediatePriority,Sl=t.unstable_UserBlockingPriority,Ms=t.unstable_NormalPriority,t6=t.unstable_LowPriority,mu=t.unstable_IdlePriority,u1=t.unstable_yieldValue,u2=t.unstable_setDisableYieldValue,gu=null,Or=null,nt=null,_o=!1,io=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__!="undefined";function Ic(r){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__=="undefined")return!1;var o=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(o.isDisabled)return!0;if(!o.supportsFiber)return u("The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://reactjs.org/link/react-devtools"),!0;try{$&&(r=en({},r,{getLaneLabelMap:vu,injectProfilingHooks:ei})),gu=o.inject(r),Or=o}catch(d){u("React instrumentation encountered an error: %s.",d)}return!!o.checkDCE}function Jm(r,o){if(Or&&typeof Or.onScheduleFiberRoot=="function")try{Or.onScheduleFiberRoot(gu,r,o)}catch(d){_o||(_o=!0,u("React instrumentation encountered an error: %s",d))}}function Xm(r,o){if(Or&&typeof Or.onCommitFiberRoot=="function")try{var d=(r.current.flags&kt)===kt;if(Ue){var p;switch(o){case Fa:p=Kd;break;case es:p=Sl;break;case ti:p=Ms;break;case ni:p=mu;break;default:p=Ms;break}Or.onCommitFiberRoot(gu,r,p,d)}}catch(v){_o||(_o=!0,u("React instrumentation encountered an error: %s",v))}}function Km(r){if(Or&&typeof Or.onPostCommitFiberRoot=="function")try{Or.onPostCommitFiberRoot(gu,r)}catch(o){_o||(_o=!0,u("React instrumentation encountered an error: %s",o))}}function Qm(r){if(Or&&typeof Or.onCommitFiberUnmount=="function")try{Or.onCommitFiberUnmount(gu,r)}catch(o){_o||(_o=!0,u("React instrumentation encountered an error: %s",o))}}function br(r){if(typeof u1=="function"&&(u2(r),i(r)),Or&&typeof Or.setStrictMode=="function")try{Or.setStrictMode(gu,r)}catch(o){_o||(_o=!0,u("React instrumentation encountered an error: %s",o))}}function ei(r){nt=r}function vu(){{for(var r=new Map,o=1,d=0;d<wu;d++){var p=p2(o);r.set(o,p),o*=2}return r}}function eg(r){nt!==null&&typeof nt.markCommitStarted=="function"&&nt.markCommitStarted(r)}function tg(){nt!==null&&typeof nt.markCommitStopped=="function"&&nt.markCommitStopped()}function To(r){nt!==null&&typeof nt.markComponentRenderStarted=="function"&&nt.markComponentRenderStarted(r)}function Ro(){nt!==null&&typeof nt.markComponentRenderStopped=="function"&&nt.markComponentRenderStopped()}function ng(r){nt!==null&&typeof nt.markComponentPassiveEffectMountStarted=="function"&&nt.markComponentPassiveEffectMountStarted(r)}function c2(){nt!==null&&typeof nt.markComponentPassiveEffectMountStopped=="function"&&nt.markComponentPassiveEffectMountStopped()}function Os(r){nt!==null&&typeof nt.markComponentPassiveEffectUnmountStarted=="function"&&nt.markComponentPassiveEffectUnmountStarted(r)}function kl(){nt!==null&&typeof nt.markComponentPassiveEffectUnmountStopped=="function"&&nt.markComponentPassiveEffectUnmountStopped()}function c1(r){nt!==null&&typeof nt.markComponentLayoutEffectMountStarted=="function"&&nt.markComponentLayoutEffectMountStarted(r)}function d2(){nt!==null&&typeof nt.markComponentLayoutEffectMountStopped=="function"&&nt.markComponentLayoutEffectMountStopped()}function Qd(r){nt!==null&&typeof nt.markComponentLayoutEffectUnmountStarted=="function"&&nt.markComponentLayoutEffectUnmountStarted(r)}function rg(){nt!==null&&typeof nt.markComponentLayoutEffectUnmountStopped=="function"&&nt.markComponentLayoutEffectUnmountStopped()}function ef(r,o,d){nt!==null&&typeof nt.markComponentErrored=="function"&&nt.markComponentErrored(r,o,d)}function Qi(r,o,d){nt!==null&&typeof nt.markComponentSuspended=="function"&&nt.markComponentSuspended(r,o,d)}function tf(r){nt!==null&&typeof nt.markLayoutEffectsStarted=="function"&&nt.markLayoutEffectsStarted(r)}function nf(){nt!==null&&typeof nt.markLayoutEffectsStopped=="function"&&nt.markLayoutEffectsStopped()}function yu(r){nt!==null&&typeof nt.markPassiveEffectsStarted=="function"&&nt.markPassiveEffectsStarted(r)}function ag(){nt!==null&&typeof nt.markPassiveEffectsStopped=="function"&&nt.markPassiveEffectsStopped()}function xu(r){nt!==null&&typeof nt.markRenderStarted=="function"&&nt.markRenderStarted(r)}function f2(){nt!==null&&typeof nt.markRenderYielded=="function"&&nt.markRenderYielded()}function d1(){nt!==null&&typeof nt.markRenderStopped=="function"&&nt.markRenderStopped()}function Cr(r){nt!==null&&typeof nt.markRenderScheduled=="function"&&nt.markRenderScheduled(r)}function f1(r,o){nt!==null&&typeof nt.markForceUpdateScheduled=="function"&&nt.markForceUpdateScheduled(r,o)}function rf(r,o){nt!==null&&typeof nt.markStateUpdateScheduled=="function"&&nt.markStateUpdateScheduled(r,o)}var Rt=0,on=1,Nn=2,Gn=8,Mn=16,Hr=Math.clz32?Math.clz32:af,ia=Math.log,p1=Math.LN2;function af(r){var o=r>>>0;return o===0?32:31-(ia(o)/p1|0)|0}var wu=31,Le=0,Tn=0,Ft=1,El=2,Ri=4,Na=8,Lr=16,Ls=32,_l=4194240,bu=64,h1=128,m1=256,g1=512,v1=1024,y1=2048,x1=4096,w1=8192,b1=16384,Cu=32768,C1=65536,Dc=131072,jc=262144,S1=524288,of=1048576,k1=2097152,sf=130023424,Su=4194304,E1=8388608,lf=16777216,_1=33554432,T1=67108864,og=Su,uf=134217728,ig=268435455,cf=268435456,ku=536870912,so=1073741824;function p2(r){{if(r&Ft)return"Sync";if(r&El)return"InputContinuousHydration";if(r&Ri)return"InputContinuous";if(r&Na)return"DefaultHydration";if(r&Lr)return"Default";if(r&Ls)return"TransitionHydration";if(r&_l)return"Transition";if(r&sf)return"Retry";if(r&uf)return"SelectiveHydration";if(r&cf)return"IdleHydration";if(r&ku)return"Idle";if(r&so)return"Offscreen"}}var er=-1,Eu=bu,R1=Su;function df(r){switch(Tl(r)){case Ft:return Ft;case El:return El;case Ri:return Ri;case Na:return Na;case Lr:return Lr;case Ls:return Ls;case bu:case h1:case m1:case g1:case v1:case y1:case x1:case w1:case b1:case Cu:case C1:case Dc:case jc:case S1:case of:case k1:return r&_l;case Su:case E1:case lf:case _1:case T1:return r&sf;case uf:return uf;case cf:return cf;case ku:return ku;case so:return so;default:return u("Should have found matching lanes. This is a bug in React."),r}}function A1(r,o){var d=r.pendingLanes;if(d===Le)return Le;var p=Le,v=r.suspendedLanes,S=r.pingedLanes,T=d&ig;if(T!==Le){var N=T&~v;if(N!==Le)p=df(N);else{var I=T&S;I!==Le&&(p=df(I))}}else{var B=d&~v;B!==Le?p=df(B):S!==Le&&(p=df(S))}if(p===Le)return Le;if(o!==Le&&o!==p&&(o&v)===Le){var W=Tl(p),re=Tl(o);if(W>=re||W===Lr&&(re&_l)!==Le)return o}(p&Ri)!==Le&&(p|=d&Lr);var te=r.entangledLanes;if(te!==Le)for(var ce=r.entanglements,pe=p&te;pe>0;){var Ce=Vr(pe),rt=1<<Ce;p|=ce[Ce],pe&=~rt}return p}function Ai(r,o){for(var d=r.eventTimes,p=er;o>0;){var v=Vr(o),S=1<<v,T=d[v];T>p&&(p=T),o&=~S}return p}function sg(r,o){switch(r){case Ft:case El:case Ri:return o+250;case Na:case Lr:case Ls:case bu:case h1:case m1:case g1:case v1:case y1:case x1:case w1:case b1:case Cu:case C1:case Dc:case jc:case S1:case of:case k1:return o+5e3;case Su:case E1:case lf:case _1:case T1:return er;case uf:case cf:case ku:case so:return er;default:return u("Should have found matching lanes. This is a bug in React."),er}}function N1(r,o){for(var d=r.pendingLanes,p=r.suspendedLanes,v=r.pingedLanes,S=r.expirationTimes,T=d;T>0;){var N=Vr(T),I=1<<N,B=S[N];B===er?((I&p)===Le||(I&v)!==Le)&&(S[N]=sg(I,o)):B<=o&&(r.expiredLanes|=I),T&=~I}}function h2(r){return df(r.pendingLanes)}function M1(r){var o=r.pendingLanes&~so;return o!==Le?o:o&so?so:Le}function m2(r){return(r&Ft)!==Le}function ff(r){return(r&ig)!==Le}function _u(r){return(r&sf)===r}function lg(r){var o=Ft|Ri|Lr;return(r&o)===Le}function ug(r){return(r&_l)===r}function O1(r,o){var d=El|Ri|Na|Lr;return(o&d)!==Le}function g2(r,o){return(o&r.expiredLanes)!==Le}function cg(r){return(r&_l)!==Le}function dg(){var r=Eu;return Eu<<=1,(Eu&_l)===Le&&(Eu=bu),r}function v2(){var r=R1;return R1<<=1,(R1&sf)===Le&&(R1=Su),r}function Tl(r){return r&-r}function pf(r){return Tl(r)}function Vr(r){return 31-Hr(r)}function ga(r){return Vr(r)}function lo(r,o){return(r&o)!==Le}function Tu(r,o){return(r&o)===o}function Xt(r,o){return r|o}function hf(r,o){return r&~o}function fg(r,o){return r&o}function y2(r){return r}function x2(r,o){return r!==Tn&&r<o?r:o}function mf(r){for(var o=[],d=0;d<wu;d++)o.push(r);return o}function Pc(r,o,d){r.pendingLanes|=o,o!==ku&&(r.suspendedLanes=Le,r.pingedLanes=Le);var p=r.eventTimes,v=ga(o);p[v]=d}function w2(r,o){r.suspendedLanes|=o,r.pingedLanes&=~o;for(var d=r.expirationTimes,p=o;p>0;){var v=Vr(p),S=1<<v;d[v]=er,p&=~S}}function L1(r,o,d){r.pingedLanes|=r.suspendedLanes&o}function pg(r,o){var d=r.pendingLanes&~o;r.pendingLanes=o,r.suspendedLanes=Le,r.pingedLanes=Le,r.expiredLanes&=o,r.mutableReadLanes&=o,r.entangledLanes&=o;for(var p=r.entanglements,v=r.eventTimes,S=r.expirationTimes,T=d;T>0;){var N=Vr(T),I=1<<N;p[N]=Le,v[N]=er,S[N]=er,T&=~I}}function I1(r,o){for(var d=r.entangledLanes|=o,p=r.entanglements,v=d;v;){var S=Vr(v),T=1<<S;T&o|p[S]&o&&(p[S]|=o),v&=~T}}function hg(r,o){var d=Tl(o),p;switch(d){case Ri:p=El;break;case Lr:p=Na;break;case bu:case h1:case m1:case g1:case v1:case y1:case x1:case w1:case b1:case Cu:case C1:case Dc:case jc:case S1:case of:case k1:case Su:case E1:case lf:case _1:case T1:p=Ls;break;case ku:p=cf;break;default:p=Tn;break}return(p&(r.suspendedLanes|o))!==Tn?Tn:p}function gf(r,o,d){if(io)for(var p=r.pendingUpdatersLaneMap;d>0;){var v=ga(d),S=1<<v,T=p[v];T.add(o),d&=~S}}function b2(r,o){if(io)for(var d=r.pendingUpdatersLaneMap,p=r.memoizedUpdaters;o>0;){var v=ga(o),S=1<<v,T=d[v];T.size>0&&(T.forEach(function(N){var I=N.alternate;(I===null||!p.has(I))&&p.add(N)}),T.clear()),o&=~S}}function mg(r,o){return null}var Fa=Ft,es=Ri,ti=Lr,ni=ku,vf=Tn;function ri(){return vf}function $r(r){vf=r}function C2(r,o){var d=vf;try{return vf=r,o()}finally{vf=d}}function S2(r,o){return r!==0&&r<o?r:o}function yf(r,o){return r>o?r:o}function sa(r,o){return r!==0&&r<o}function k2(r){var o=Tl(r);return sa(Fa,o)?sa(es,o)?ff(o)?ti:ni:es:Fa}function D1(r){var o=r.current.memoizedState;return o.isDehydrated}var xf;function Ma(r){xf=r}function n6(r){xf(r)}var lt;function Fc(r){lt=r}var j1;function E2(r){j1=r}var _2;function wf(r){_2=r}var bf;function gg(r){bf=r}var P1=!1,Cf=[],Is=null,ts=null,ns=null,Ir=new Map,za=new Map,Ua=[],T2=["mousedown","mouseup","touchcancel","touchend","touchstart","auxclick","dblclick","pointercancel","pointerdown","pointerup","dragend","dragstart","drop","compositionend","compositionstart","keydown","keypress","keyup","input","textInput","copy","cut","paste","click","change","contextmenu","reset","submit"];function R2(r){return T2.indexOf(r)>-1}function Ni(r,o,d,p,v){return{blockedOn:r,domEventName:o,eventSystemFlags:d,nativeEvent:v,targetContainers:[p]}}function vg(r,o){switch(r){case"focusin":case"focusout":Is=null;break;case"dragenter":case"dragleave":ts=null;break;case"mouseover":case"mouseout":ns=null;break;case"pointerover":case"pointerout":{var d=o.pointerId;Ir.delete(d);break}case"gotpointercapture":case"lostpointercapture":{var p=o.pointerId;za.delete(p);break}}}function uo(r,o,d,p,v,S){if(r===null||r.nativeEvent!==S){var T=Ni(o,d,p,v,S);if(o!==null){var N=qc(o);N!==null&&lt(N)}return T}r.eventSystemFlags|=p;var I=r.targetContainers;return v!==null&&I.indexOf(v)===-1&&I.push(v),r}function r6(r,o,d,p,v){switch(o){case"focusin":{var S=v;return Is=uo(Is,r,o,d,p,S),!0}case"dragenter":{var T=v;return ts=uo(ts,r,o,d,p,T),!0}case"mouseover":{var N=v;return ns=uo(ns,r,o,d,p,N),!0}case"pointerover":{var I=v,B=I.pointerId;return Ir.set(B,uo(Ir.get(B)||null,r,o,d,p,I)),!0}case"gotpointercapture":{var W=v,re=W.pointerId;return za.set(re,uo(za.get(re)||null,r,o,d,p,W)),!0}}return!1}function yg(r){var o=If(r.target);if(o!==null){var d=Eo(o);if(d!==null){var p=d.tag;if(p===V){var v=Xi(d);if(v!==null){r.blockedOn=v,bf(r.priority,function(){j1(d)});return}}else if(p===y){var S=d.stateNode;if(D1(S)){r.blockedOn=Ki(d);return}}}}r.blockedOn=null}function A2(r){for(var o=_2(),d={blockedOn:null,target:r,priority:o},p=0;p<Ua.length&&sa(o,Ua[p].priority);p++);Ua.splice(p,0,d),p===0&&yg(d)}function Sf(r){if(r.blockedOn!==null)return!1;for(var o=r.targetContainers;o.length>0;){var d=o[0],p=Uc(r.domEventName,r.eventSystemFlags,d,r.nativeEvent);if(p===null){var v=r.nativeEvent,S=new v.constructor(v.type,v);X7(S),v.target.dispatchEvent(S),K7()}else{var T=qc(p);return T!==null&&lt(T),r.blockedOn=p,!1}o.shift()}return!0}function xg(r,o,d){Sf(r)&&d.delete(o)}function a6(){P1=!1,Is!==null&&Sf(Is)&&(Is=null),ts!==null&&Sf(ts)&&(ts=null),ns!==null&&Sf(ns)&&(ns=null),Ir.forEach(xg),za.forEach(xg)}function Rl(r,o){r.blockedOn===o&&(r.blockedOn=null,P1||(P1=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,a6)))}function Ru(r){if(Cf.length>0){Rl(Cf[0],r);for(var o=1;o<Cf.length;o++){var d=Cf[o];d.blockedOn===r&&(d.blockedOn=null)}}Is!==null&&Rl(Is,r),ts!==null&&Rl(ts,r),ns!==null&&Rl(ns,r);var p=function(N){return Rl(N,r)};Ir.forEach(p),za.forEach(p);for(var v=0;v<Ua.length;v++){var S=Ua[v];S.blockedOn===r&&(S.blockedOn=null)}for(;Ua.length>0;){var T=Ua[0];if(T.blockedOn!==null)break;yg(T),T.blockedOn===null&&Ua.shift()}}var va=n.ReactCurrentBatchConfig,xn=!0;function ta(r){xn=!!r}function Zr(){return xn}function ya(r,o,d){var p=F1(o),v;switch(p){case Fa:v=Ao;break;case es:v=zc;break;case ti:default:v=Dr;break}return v.bind(null,o,d,r)}function Ao(r,o,d,p){var v=ri(),S=va.transition;va.transition=null;try{$r(Fa),Dr(r,o,d,p)}finally{$r(v),va.transition=S}}function zc(r,o,d,p){var v=ri(),S=va.transition;va.transition=null;try{$r(es),Dr(r,o,d,p)}finally{$r(v),va.transition=S}}function Dr(r,o,d,p){xn&&kf(r,o,d,p)}function kf(r,o,d,p){var v=Uc(r,o,d,p);if(v===null){b6(r,o,p,rs,d),vg(r,p);return}if(r6(v,r,o,d,p)){p.stopPropagation();return}if(vg(r,p),o&Yo&&R2(r)){for(;v!==null;){var S=qc(v);S!==null&&n6(S);var T=Uc(r,o,d,p);if(T===null&&b6(r,o,p,rs,d),T===v)break;v=T}v!==null&&p.stopPropagation();return}b6(r,o,p,null,d)}var rs=null;function Uc(r,o,d,p){rs=null;var v=Zm(p),S=If(v);if(S!==null){var T=Eo(S);if(T===null)S=null;else{var N=T.tag;if(N===V){var I=Xi(T);if(I!==null)return I;S=null}else if(N===y){var B=T.stateNode;if(D1(B))return Ki(T);S=null}else T!==S&&(S=null)}}return rs=S,null}function F1(r){switch(r){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return Fa;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return es;case"message":{var o=l1();switch(o){case Kd:return Fa;case Sl:return es;case Ms:case t6:return ti;case mu:return ni;default:return ti}}default:return ti}}function Ef(r,o,d){return r.addEventListener(o,d,!1),d}function co(r,o,d){return r.addEventListener(o,d,!0),d}function wg(r,o,d,p){return r.addEventListener(o,d,{capture:!0,passive:p}),d}function Bc(r,o,d,p){return r.addEventListener(o,d,{passive:p}),d}var No=null,Hc=null,Au=null;function Al(r){return No=r,Hc=_f(),!0}function z1(){No=null,Hc=null,Au=null}function Ds(){if(Au)return Au;var r,o=Hc,d=o.length,p,v=_f(),S=v.length;for(r=0;r<d&&o[r]===v[r];r++);var T=d-r;for(p=1;p<=T&&o[d-p]===v[S-p];p++);var N=p>1?1-p:void 0;return Au=v.slice(r,N),Au}function _f(){return"value"in No?No.value:No.textContent}function Nl(r){var o,d=r.keyCode;return"charCode"in r?(o=r.charCode,o===0&&d===13&&(o=13)):o=d,o===10&&(o=13),o>=32||o===13?o:0}function Vc(){return!0}function Tf(){return!1}function Oa(r){function o(d,p,v,S,T){this._reactName=d,this._targetInst=v,this.type=p,this.nativeEvent=S,this.target=T,this.currentTarget=null;for(var N in r)if(r.hasOwnProperty(N)){var I=r[N];I?this[N]=I(S):this[N]=S[N]}var B=S.defaultPrevented!=null?S.defaultPrevented:S.returnValue===!1;return B?this.isDefaultPrevented=Vc:this.isDefaultPrevented=Tf,this.isPropagationStopped=Tf,this}return en(o.prototype,{preventDefault:function(){this.defaultPrevented=!0;var d=this.nativeEvent;d&&(d.preventDefault?d.preventDefault():typeof d.returnValue!="unknown"&&(d.returnValue=!1),this.isDefaultPrevented=Vc)},stopPropagation:function(){var d=this.nativeEvent;d&&(d.stopPropagation?d.stopPropagation():typeof d.cancelBubble!="unknown"&&(d.cancelBubble=!0),this.isPropagationStopped=Vc)},persist:function(){},isPersistent:Vc}),o}var Wr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(r){return r.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},as=Oa(Wr),Ba=en({},Wr,{view:0,detail:0}),fo=Oa(Ba),U1,Rf,Nu;function o6(r){r!==Nu&&(Nu&&r.type==="mousemove"?(U1=r.screenX-Nu.screenX,Rf=r.screenY-Nu.screenY):(U1=0,Rf=0),Nu=r)}var Mi=en({},Ba,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:gr,button:0,buttons:0,relatedTarget:function(r){return r.relatedTarget===void 0?r.fromElement===r.srcElement?r.toElement:r.fromElement:r.relatedTarget},movementX:function(r){return"movementX"in r?r.movementX:(o6(r),U1)},movementY:function(r){return"movementY"in r?r.movementY:Rf}}),bg=Oa(Mi),Cg=en({},Mi,{dataTransfer:0}),Mu=Oa(Cg),Sg=en({},Ba,{relatedTarget:0}),js=Oa(Sg),N2=en({},Wr,{animationName:0,elapsedTime:0,pseudoElement:0}),M2=Oa(N2),kg=en({},Wr,{clipboardData:function(r){return"clipboardData"in r?r.clipboardData:window.clipboardData}}),B1=Oa(kg),i6=en({},Wr,{data:0}),O2=Oa(i6),L2=O2,I2={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Ou={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"};function s6(r){if(r.key){var o=I2[r.key]||r.key;if(o!=="Unidentified")return o}if(r.type==="keypress"){var d=Nl(r);return d===13?"Enter":String.fromCharCode(d)}return r.type==="keydown"||r.type==="keyup"?Ou[r.keyCode]||"Unidentified":""}var $c={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function D2(r){var o=this,d=o.nativeEvent;if(d.getModifierState)return d.getModifierState(r);var p=$c[r];return p?!!d[p]:!1}function gr(r){return D2}var l6=en({},Ba,{key:s6,code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:gr,charCode:function(r){return r.type==="keypress"?Nl(r):0},keyCode:function(r){return r.type==="keydown"||r.type==="keyup"?r.keyCode:0},which:function(r){return r.type==="keypress"?Nl(r):r.type==="keydown"||r.type==="keyup"?r.keyCode:0}}),j2=Oa(l6),u6=en({},Mi,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),P2=Oa(u6),F2=en({},Ba,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:gr}),z2=Oa(F2),c6=en({},Wr,{propertyName:0,elapsedTime:0,pseudoElement:0}),ai=Oa(c6),Eg=en({},Mi,{deltaX:function(r){return"deltaX"in r?r.deltaX:"wheelDeltaX"in r?-r.wheelDeltaX:0},deltaY:function(r){return"deltaY"in r?r.deltaY:"wheelDeltaY"in r?-r.wheelDeltaY:"wheelDelta"in r?-r.wheelDelta:0},deltaZ:0,deltaMode:0}),d6=Oa(Eg),Ml=[9,13,27,32],Af=229,Ps=tt&&"CompositionEvent"in window,Ol=null;tt&&"documentMode"in document&&(Ol=document.documentMode);var _g=tt&&"TextEvent"in window&&!Ol,H1=tt&&(!Ps||Ol&&Ol>8&&Ol<=11),U2=32,V1=String.fromCharCode(U2);function f6(){Qe("onBeforeInput",["compositionend","keypress","textInput","paste"]),Qe("onCompositionEnd",["compositionend","focusout","keydown","keypress","keyup","mousedown"]),Qe("onCompositionStart",["compositionstart","focusout","keydown","keypress","keyup","mousedown"]),Qe("onCompositionUpdate",["compositionupdate","focusout","keydown","keypress","keyup","mousedown"])}var Tg=!1;function B2(r){return(r.ctrlKey||r.altKey||r.metaKey)&&!(r.ctrlKey&&r.altKey)}function $1(r){switch(r){case"compositionstart":return"onCompositionStart";case"compositionend":return"onCompositionEnd";case"compositionupdate":return"onCompositionUpdate"}}function Z1(r,o){return r==="keydown"&&o.keyCode===Af}function Rg(r,o){switch(r){case"keyup":return Ml.indexOf(o.keyCode)!==-1;case"keydown":return o.keyCode!==Af;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function W1(r){var o=r.detail;return typeof o=="object"&&"data"in o?o.data:null}function H2(r){return r.locale==="ko"}var Lu=!1;function Ag(r,o,d,p,v){var S,T;if(Ps?S=$1(o):Lu?Rg(o,p)&&(S="onCompositionEnd"):Z1(o,p)&&(S="onCompositionStart"),!S)return null;H1&&!H2(p)&&(!Lu&&S==="onCompositionStart"?Lu=Al(v):S==="onCompositionEnd"&&Lu&&(T=Ds()));var N=Y2(d,S);if(N.length>0){var I=new O2(S,o,null,p,v);if(r.push({event:I,listeners:N}),T)I.data=T;else{var B=W1(p);B!==null&&(I.data=B)}}}function q1(r,o){switch(r){case"compositionend":return W1(o);case"keypress":var d=o.which;return d!==U2?null:(Tg=!0,V1);case"textInput":var p=o.data;return p===V1&&Tg?null:p;default:return null}}function Ng(r,o){if(Lu){if(r==="compositionend"||!Ps&&Rg(r,o)){var d=Ds();return z1(),Lu=!1,d}return null}switch(r){case"paste":return null;case"keypress":if(!B2(o)){if(o.char&&o.char.length>1)return o.char;if(o.which)return String.fromCharCode(o.which)}return null;case"compositionend":return H1&&!H2(o)?null:o.data;default:return null}}function G1(r,o,d,p,v){var S;if(_g?S=q1(o,p):S=Ng(o,p),!S)return null;var T=Y2(d,"onBeforeInput");if(T.length>0){var N=new L2("onBeforeInput","beforeinput",null,p,v);r.push({event:N,listeners:T}),N.data=S}}function V2(r,o,d,p,v,S,T){Ag(r,o,d,p,v),G1(r,o,d,p,v)}var p6={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Nf(r){var o=r&&r.nodeName&&r.nodeName.toLowerCase();return o==="input"?!!p6[r.type]:o==="textarea"}/**
117
+ * Checks if an event is supported in the current execution environment.
118
+ *
119
+ * NOTE: This will not work correctly for non-generic events such as `change`,
120
+ * `reset`, `load`, `error`, and `select`.
121
+ *
122
+ * Borrows from Modernizr.
123
+ *
124
+ * @param {string} eventNameSuffix Event name, e.g. "click".
125
+ * @return {boolean} True if the event is supported.
126
+ * @internal
127
+ * @license Modernizr 3.0.0pre (Custom Build) | MIT
128
+ */function h6(r){if(!tt)return!1;var o="on"+r,d=o in document;if(!d){var p=document.createElement("div");p.setAttribute(o,"return;"),d=typeof p[o]=="function"}return d}function Mf(){Qe("onChange",["change","click","focusin","focusout","input","keydown","keyup","selectionchange"])}function $2(r,o,d,p){Tc(p);var v=Y2(o,"onChange");if(v.length>0){var S=new as("onChange","change",null,d,p);r.push({event:S,listeners:v})}}var Ll=null,s=null;function c(r){var o=r.nodeName&&r.nodeName.toLowerCase();return o==="select"||o==="input"&&r.type==="file"}function m(r){var o=[];$2(o,s,r,Zm(r)),n2(w,o)}function w(r){mO(r,0)}function E(r){var o=eh(r);if(Zi(o))return r}function A(r,o){if(r==="change")return o}var z=!1;tt&&(z=h6("input")&&(!document.documentMode||document.documentMode>9));function G(r,o){Ll=r,s=o,Ll.attachEvent("onpropertychange",fe)}function Q(){Ll&&(Ll.detachEvent("onpropertychange",fe),Ll=null,s=null)}function fe(r){r.propertyName==="value"&&E(s)&&m(r)}function je(r,o,d){r==="focusin"?(Q(),G(o,d)):r==="focusout"&&Q()}function Fe(r,o){if(r==="selectionchange"||r==="keyup"||r==="keydown")return E(s)}function Ie(r){var o=r.nodeName;return o&&o.toLowerCase()==="input"&&(r.type==="checkbox"||r.type==="radio")}function ot(r,o){if(r==="click")return E(o)}function ft(r,o){if(r==="input"||r==="change")return E(o)}function vt(r){var o=r._wrapperState;!o||!o.controlled||r.type!=="number"||Mt(r,"number",r.value)}function jr(r,o,d,p,v,S,T){var N=d?eh(d):window,I,B;if(c(N)?I=A:Nf(N)?z?I=ft:(I=Fe,B=je):Ie(N)&&(I=ot),I){var W=I(o,d);if(W){$2(r,W,p,v);return}}B&&B(o,N,d),o==="focusout"&&vt(N)}function oe(){qe("onMouseEnter",["mouseout","mouseover"]),qe("onMouseLeave",["mouseout","mouseover"]),qe("onPointerEnter",["pointerout","pointerover"]),qe("onPointerLeave",["pointerout","pointerover"])}function ne(r,o,d,p,v,S,T){var N=o==="mouseover"||o==="pointerover",I=o==="mouseout"||o==="pointerout";if(N&&!Wd(p)){var B=p.relatedTarget||p.fromElement;if(B&&(If(B)||$g(B)))return}if(!(!I&&!N)){var W;if(v.window===v)W=v;else{var re=v.ownerDocument;re?W=re.defaultView||re.parentWindow:W=window}var te,ce;if(I){var pe=p.relatedTarget||p.toElement;if(te=d,ce=pe?If(pe):null,ce!==null){var Ce=Eo(ce);(ce!==Ce||ce.tag!==b&&ce.tag!==_)&&(ce=null)}}else te=null,ce=d;if(te!==ce){var rt=bg,Ot="onMouseLeave",Ct="onMouseEnter",bn="mouse";(o==="pointerout"||o==="pointerover")&&(rt=P2,Ot="onPointerLeave",Ct="onPointerEnter",bn="pointer");var mn=te==null?W:eh(te),se=ce==null?W:eh(ce),Se=new rt(Ot,bn+"leave",te,p,v);Se.target=mn,Se.relatedTarget=se;var le=null,ze=If(v);if(ze===d){var st=new rt(Ct,bn+"enter",ce,p,v);st.target=se,st.relatedTarget=mn,le=st}gle(r,Se,le,te,ce)}}}function ue(r,o){return r===o&&(r!==0||1/r===1/o)||r!==r&&o!==o}var Pe=typeof Object.is=="function"?Object.is:ue;function pt(r,o){if(Pe(r,o))return!0;if(typeof r!="object"||r===null||typeof o!="object"||o===null)return!1;var d=Object.keys(r),p=Object.keys(o);if(d.length!==p.length)return!1;for(var v=0;v<d.length;v++){var S=d[v];if(!Et.call(o,S)||!Pe(r[S],o[S]))return!1}return!0}function Lt(r){for(;r&&r.firstChild;)r=r.firstChild;return r}function jt(r){for(;r;){if(r.nextSibling)return r.nextSibling;r=r.parentNode}}function Ut(r,o){for(var d=Lt(r),p=0,v=0;d;){if(d.nodeType===_s){if(v=p+d.textContent.length,p<=o&&v>=o)return{node:d,offset:o-p};p=v}d=Lt(jt(d))}}function la(r){var o=r.ownerDocument,d=o&&o.defaultView||window,p=d.getSelection&&d.getSelection();if(!p||p.rangeCount===0)return null;var v=p.anchorNode,S=p.anchorOffset,T=p.focusNode,N=p.focusOffset;try{v.nodeType,T.nodeType}catch(I){return null}return On(r,v,S,T,N)}function On(r,o,d,p,v){var S=0,T=-1,N=-1,I=0,B=0,W=r,re=null;e:for(;;){for(var te=null;W===o&&(d===0||W.nodeType===_s)&&(T=S+d),W===p&&(v===0||W.nodeType===_s)&&(N=S+v),W.nodeType===_s&&(S+=W.nodeValue.length),(te=W.firstChild)!==null;)re=W,W=te;for(;;){if(W===r)break e;if(re===o&&++I===d&&(T=S),re===p&&++B===v&&(N=S),(te=W.nextSibling)!==null)break;W=re,re=W.parentNode}W=te}return T===-1||N===-1?null:{start:T,end:N}}function Il(r,o){var d=r.ownerDocument||document,p=d&&d.defaultView||window;if(p.getSelection){var v=p.getSelection(),S=r.textContent.length,T=Math.min(o.start,S),N=o.end===void 0?T:Math.min(o.end,S);if(!v.extend&&T>N){var I=N;N=T,T=I}var B=Ut(r,T),W=Ut(r,N);if(B&&W){if(v.rangeCount===1&&v.anchorNode===B.node&&v.anchorOffset===B.offset&&v.focusNode===W.node&&v.focusOffset===W.offset)return;var re=d.createRange();re.setStart(B.node,B.offset),v.removeAllRanges(),T>N?(v.addRange(re),v.extend(W.node,W.offset)):(re.setEnd(W.node,W.offset),v.addRange(re))}}}function Z2(r){return r&&r.nodeType===_s}function aO(r,o){return!r||!o?!1:r===o?!0:Z2(r)?!1:Z2(o)?aO(r,o.parentNode):"contains"in r?r.contains(o):r.compareDocumentPosition?!!(r.compareDocumentPosition(o)&16):!1}function Kse(r){return r&&r.ownerDocument&&aO(r.ownerDocument.documentElement,r)}function Qse(r){try{return typeof r.contentWindow.location.href=="string"}catch(o){return!1}}function oO(){for(var r=window,o=Go();o instanceof r.HTMLIFrameElement;){if(Qse(o))r=o.contentWindow;else return o;o=Go(r.document)}return o}function m6(r){var o=r&&r.nodeName&&r.nodeName.toLowerCase();return o&&(o==="input"&&(r.type==="text"||r.type==="search"||r.type==="tel"||r.type==="url"||r.type==="password")||o==="textarea"||r.contentEditable==="true")}function ele(){var r=oO();return{focusedElem:r,selectionRange:m6(r)?nle(r):null}}function tle(r){var o=oO(),d=r.focusedElem,p=r.selectionRange;if(o!==d&&Kse(d)){p!==null&&m6(d)&&rle(d,p);for(var v=[],S=d;S=S.parentNode;)S.nodeType===to&&v.push({element:S,left:S.scrollLeft,top:S.scrollTop});typeof d.focus=="function"&&d.focus();for(var T=0;T<v.length;T++){var N=v[T];N.element.scrollLeft=N.left,N.element.scrollTop=N.top}}}function nle(r){var o;return"selectionStart"in r?o={start:r.selectionStart,end:r.selectionEnd}:o=la(r),o||{start:0,end:0}}function rle(r,o){var d=o.start,p=o.end;p===void 0&&(p=d),"selectionStart"in r?(r.selectionStart=d,r.selectionEnd=Math.min(p,r.value.length)):Il(r,o)}var ale=tt&&"documentMode"in document&&document.documentMode<=11;function ole(){Qe("onSelect",["focusout","contextmenu","dragend","focusin","keydown","keyup","mousedown","mouseup","selectionchange"])}var Y1=null,g6=null,Mg=null,v6=!1;function ile(r){if("selectionStart"in r&&m6(r))return{start:r.selectionStart,end:r.selectionEnd};var o=r.ownerDocument&&r.ownerDocument.defaultView||window,d=o.getSelection();return{anchorNode:d.anchorNode,anchorOffset:d.anchorOffset,focusNode:d.focusNode,focusOffset:d.focusOffset}}function sle(r){return r.window===r?r.document:r.nodeType===Ts?r:r.ownerDocument}function iO(r,o,d){var p=sle(d);if(!(v6||Y1==null||Y1!==Go(p))){var v=ile(Y1);if(!Mg||!pt(Mg,v)){Mg=v;var S=Y2(g6,"onSelect");if(S.length>0){var T=new as("onSelect","select",null,o,d);r.push({event:T,listeners:S}),T.target=Y1}}}}function lle(r,o,d,p,v,S,T){var N=d?eh(d):window;switch(o){case"focusin":(Nf(N)||N.contentEditable==="true")&&(Y1=N,g6=d,Mg=null);break;case"focusout":Y1=null,g6=null,Mg=null;break;case"mousedown":v6=!0;break;case"contextmenu":case"mouseup":case"dragend":v6=!1,iO(r,p,v);break;case"selectionchange":if(ale)break;case"keydown":case"keyup":iO(r,p,v)}}function W2(r,o){var d={};return d[r.toLowerCase()]=o.toLowerCase(),d["Webkit"+r]="webkit"+o,d["Moz"+r]="moz"+o,d}var J1={animationend:W2("Animation","AnimationEnd"),animationiteration:W2("Animation","AnimationIteration"),animationstart:W2("Animation","AnimationStart"),transitionend:W2("Transition","TransitionEnd")},y6={},sO={};tt&&(sO=document.createElement("div").style,"AnimationEvent"in window||(delete J1.animationend.animation,delete J1.animationiteration.animation,delete J1.animationstart.animation),"TransitionEvent"in window||delete J1.transitionend.transition);function q2(r){if(y6[r])return y6[r];if(!J1[r])return r;var o=J1[r];for(var d in o)if(o.hasOwnProperty(d)&&d in sO)return y6[r]=o[d];return r}var lO=q2("animationend"),uO=q2("animationiteration"),cO=q2("animationstart"),dO=q2("transitionend"),fO=new Map,pO=["abort","auxClick","cancel","canPlay","canPlayThrough","click","close","contextMenu","copy","cut","drag","dragEnd","dragEnter","dragExit","dragLeave","dragOver","dragStart","drop","durationChange","emptied","encrypted","ended","error","gotPointerCapture","input","invalid","keyDown","keyPress","keyUp","load","loadedData","loadedMetadata","loadStart","lostPointerCapture","mouseDown","mouseMove","mouseOut","mouseOver","mouseUp","paste","pause","play","playing","pointerCancel","pointerDown","pointerMove","pointerOut","pointerOver","pointerUp","progress","rateChange","reset","resize","seeked","seeking","stalled","submit","suspend","timeUpdate","touchCancel","touchEnd","touchStart","volumeChange","scroll","toggle","touchMove","waiting","wheel"];function Zc(r,o){fO.set(r,o),Qe(o,[r])}function ule(){for(var r=0;r<pO.length;r++){var o=pO[r],d=o.toLowerCase(),p=o[0].toUpperCase()+o.slice(1);Zc(d,"on"+p)}Zc(lO,"onAnimationEnd"),Zc(uO,"onAnimationIteration"),Zc(cO,"onAnimationStart"),Zc("dblclick","onDoubleClick"),Zc("focusin","onFocus"),Zc("focusout","onBlur"),Zc(dO,"onTransitionEnd")}function cle(r,o,d,p,v,S,T){var N=fO.get(o);if(N!==void 0){var I=as,B=o;switch(o){case"keypress":if(Nl(p)===0)return;case"keydown":case"keyup":I=j2;break;case"focusin":B="focus",I=js;break;case"focusout":B="blur",I=js;break;case"beforeblur":case"afterblur":I=js;break;case"click":if(p.button===2)return;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":I=bg;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":I=Mu;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":I=z2;break;case lO:case uO:case cO:I=M2;break;case dO:I=ai;break;case"scroll":I=fo;break;case"wheel":I=d6;break;case"copy":case"cut":case"paste":I=B1;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":I=P2;break}var W=(S&Yo)!==0;{var re=!W&&o==="scroll",te=hle(d,N,p.type,W,re);if(te.length>0){var ce=new I(N,B,null,p,v);r.push({event:ce,listeners:te})}}}}ule(),oe(),Mf(),ole(),f6();function dle(r,o,d,p,v,S,T){cle(r,o,d,p,v,S);var N=(S&$m)===0;N&&(ne(r,o,d,p,v),jr(r,o,d,p,v),lle(r,o,d,p,v),V2(r,o,d,p,v))}var Og=["abort","canplay","canplaythrough","durationchange","emptied","encrypted","ended","error","loadeddata","loadedmetadata","loadstart","pause","play","playing","progress","ratechange","resize","seeked","seeking","stalled","suspend","timeupdate","volumechange","waiting"],x6=new Set(["cancel","close","invalid","load","scroll","toggle"].concat(Og));function hO(r,o,d){var p=r.type||"unknown-event";r.currentTarget=d,Gi(p,o,void 0,r),r.currentTarget=null}function fle(r,o,d){var p;if(d)for(var v=o.length-1;v>=0;v--){var S=o[v],T=S.instance,N=S.currentTarget,I=S.listener;if(T!==p&&r.isPropagationStopped())return;hO(r,I,N),p=T}else for(var B=0;B<o.length;B++){var W=o[B],re=W.instance,te=W.currentTarget,ce=W.listener;if(re!==p&&r.isPropagationStopped())return;hO(r,ce,te),p=re}}function mO(r,o){for(var d=(o&Yo)!==0,p=0;p<r.length;p++){var v=r[p],S=v.event,T=v.listeners;fle(S,T,d)}Yd()}function ple(r,o,d,p,v){var S=Zm(d),T=[];dle(T,r,p,d,S,o),mO(T,o)}function Sr(r,o){x6.has(r)||u('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',r);var d=!1,p=Vue(o),v=vle(r);p.has(v)||(gO(o,r,Yp,d),p.add(v))}function w6(r,o,d){x6.has(r)&&!o&&u('Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.',r);var p=0;o&&(p|=Yo),gO(d,r,p,o)}var G2="_reactListening"+Math.random().toString(36).slice(2);function Lg(r){if(!r[G2]){r[G2]=!0,De.forEach(function(d){d!=="selectionchange"&&(x6.has(d)||w6(d,!1,r),w6(d,!0,r))});var o=r.nodeType===Ts?r:r.ownerDocument;o!==null&&(o[G2]||(o[G2]=!0,w6("selectionchange",!1,o)))}}function gO(r,o,d,p,v){var S=ya(r,o,d),T=void 0;Gd&&(o==="touchstart"||o==="touchmove"||o==="wheel")&&(T=!0),r=r,p?T!==void 0?wg(r,o,S,T):co(r,o,S):T!==void 0?Bc(r,o,S,T):Ef(r,o,S)}function vO(r,o){return r===o||r.nodeType===zr&&r.parentNode===o}function b6(r,o,d,p,v){var S=p;if(!(o&Vm)&&!(o&Yp)){var T=v;if(p!==null){var N=p;e:for(;;){if(N===null)return;var I=N.tag;if(I===y||I===k){var B=N.stateNode.containerInfo;if(vO(B,T))break;if(I===k)for(var W=N.return;W!==null;){var re=W.tag;if(re===y||re===k){var te=W.stateNode.containerInfo;if(vO(te,T))return}W=W.return}for(;B!==null;){var ce=If(B);if(ce===null)return;var pe=ce.tag;if(pe===b||pe===_){N=S=ce;continue e}B=B.parentNode}}N=N.return}}}n2(function(){return ple(r,o,d,S)})}function Ig(r,o,d){return{instance:r,listener:o,currentTarget:d}}function hle(r,o,d,p,v,S){for(var T=o!==null?o+"Capture":null,N=p?T:o,I=[],B=r,W=null;B!==null;){var re=B,te=re.stateNode,ce=re.tag;if(ce===b&&te!==null&&(W=te,N!==null)){var pe=vl(B,N);pe!=null&&I.push(Ig(B,pe,W))}if(v)break;B=B.return}return I}function Y2(r,o){for(var d=o+"Capture",p=[],v=r;v!==null;){var S=v,T=S.stateNode,N=S.tag;if(N===b&&T!==null){var I=T,B=vl(v,d);B!=null&&p.unshift(Ig(v,B,I));var W=vl(v,o);W!=null&&p.push(Ig(v,W,I))}v=v.return}return p}function X1(r){if(r===null)return null;do r=r.return;while(r&&r.tag!==b);return r||null}function mle(r,o){for(var d=r,p=o,v=0,S=d;S;S=X1(S))v++;for(var T=0,N=p;N;N=X1(N))T++;for(;v-T>0;)d=X1(d),v--;for(;T-v>0;)p=X1(p),T--;for(var I=v;I--;){if(d===p||p!==null&&d===p.alternate)return d;d=X1(d),p=X1(p)}return null}function yO(r,o,d,p,v){for(var S=o._reactName,T=[],N=d;N!==null&&N!==p;){var I=N,B=I.alternate,W=I.stateNode,re=I.tag;if(B!==null&&B===p)break;if(re===b&&W!==null){var te=W;if(v){var ce=vl(N,S);ce!=null&&T.unshift(Ig(N,ce,te))}else if(!v){var pe=vl(N,S);pe!=null&&T.push(Ig(N,pe,te))}}N=N.return}T.length!==0&&r.push({event:o,listeners:T})}function gle(r,o,d,p,v){var S=p&&v?mle(p,v):null;p!==null&&yO(r,o,p,S,!1),v!==null&&d!==null&&yO(r,d,v,S,!0)}function vle(r,o){return r+"__bubble"}var oi=!1,Dg="dangerouslySetInnerHTML",J2="suppressContentEditableWarning",Wc="suppressHydrationWarning",xO="autoFocus",Of="children",Lf="style",X2="__html",C6,K2,jg,wO,Q2,bO,CO;C6={dialog:!0,webview:!0},K2=function(r,o){Um(r,o),qp(r,o),Q4(r,o,{registrationNameDependencies:Ee,possibleRegistrationNames:Ze})},bO=tt&&!document.documentMode,jg=function(r,o,d){if(!oi){var p=ey(d),v=ey(o);v!==p&&(oi=!0,u("Prop `%s` did not match. Server: %s Client: %s",r,JSON.stringify(v),JSON.stringify(p)))}},wO=function(r){if(!oi){oi=!0;var o=[];r.forEach(function(d){o.push(d)}),u("Extra attributes from the server: %s",o)}},Q2=function(r,o){o===!1?u("Expected `%s` listener to be a function, instead got `false`.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.",r,r,r):u("Expected `%s` listener to be a function, instead got a value of `%s` type.",r,typeof o)},CO=function(r,o){var d=r.namespaceURI===Es?r.ownerDocument.createElement(r.tagName):r.ownerDocument.createElementNS(r.namespaceURI,r.tagName);return d.innerHTML=o,d.innerHTML};var yle=/\r\n?/g,xle=/\u0000|\uFFFD/g;function ey(r){Be(r);var o=typeof r=="string"?r:""+r;return o.replace(yle,`
129
+ `).replace(xle,"")}function ty(r,o,d,p){var v=ey(o),S=ey(r);if(S!==v&&(p&&(oi||(oi=!0,u('Text content did not match. Server: "%s" Client: "%s"',S,v))),d&&ve))throw new Error("Text content does not match server-rendered HTML.")}function SO(r){return r.nodeType===Ts?r:r.ownerDocument}function wle(){}function ny(r){r.onclick=wle}function ble(r,o,d,p,v){for(var S in p)if(p.hasOwnProperty(S)){var T=p[S];if(S===Lf)T&&Object.freeze(T),q4(o,T);else if(S===Dg){var N=T?T[X2]:void 0;N!=null&&D4(o,N)}else if(S===Of)if(typeof T=="string"){var I=r!=="textarea"||T!=="";I&&Sc(o,T)}else typeof T=="number"&&Sc(o,""+T);else S===J2||S===Wc||S===xO||(Ee.hasOwnProperty(S)?T!=null&&(typeof T!="function"&&Q2(S,T),S==="onScroll"&&Sr("scroll",o)):T!=null&&_n(o,S,T,v))}}function Cle(r,o,d,p){for(var v=0;v<o.length;v+=2){var S=o[v],T=o[v+1];S===Lf?q4(r,T):S===Dg?D4(r,T):S===Of?Sc(r,T):_n(r,S,T,p)}}function Sle(r,o,d,p){var v,S=SO(d),T,N=p;if(N===Es&&(N=Lm(r)),N===Es){if(v=ml(r,o),!v&&r!==r.toLowerCase()&&u("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",r),r==="script"){var I=S.createElement("div");I.innerHTML="<script><\/script>";var B=I.firstChild;T=I.removeChild(B)}else if(typeof o.is=="string")T=S.createElement(r,{is:o.is});else if(T=S.createElement(r),r==="select"){var W=T;o.multiple?W.multiple=!0:o.size&&(W.size=o.size)}}else T=S.createElementNS(N,r);return N===Es&&!v&&Object.prototype.toString.call(T)==="[object HTMLUnknownElement]"&&!Et.call(C6,r)&&(C6[r]=!0,u("The tag <%s> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.",r)),T}function kle(r,o){return SO(o).createTextNode(r)}function Ele(r,o,d,p){var v=ml(o,d);K2(o,d);var S;switch(o){case"dialog":Sr("cancel",r),Sr("close",r),S=d;break;case"iframe":case"object":case"embed":Sr("load",r),S=d;break;case"video":case"audio":for(var T=0;T<Og.length;T++)Sr(Og[T],r);S=d;break;case"source":Sr("error",r),S=d;break;case"img":case"image":case"link":Sr("error",r),Sr("load",r),S=d;break;case"details":Sr("toggle",r),S=d;break;case"input":Ei(r,d),S=Cc(r,d),Sr("invalid",r);break;case"option":Sn(r,d),S=d;break;case"select":su(r,d),S=zd(r,d),Sr("invalid",r);break;case"textarea":Nm(r,d),S=Am(r,d),Sr("invalid",r);break;default:S=d}switch(Zp(o,S),ble(o,r,p,S,v),o){case"input":ki(r),de(r,d,!1);break;case"textarea":ki(r),L4(r);break;case"option":rr(r,d);break;case"select":Tm(r,d);break;default:typeof S.onClick=="function"&&ny(r);break}}function _le(r,o,d,p,v){K2(o,p);var S=null,T,N;switch(o){case"input":T=Cc(r,d),N=Cc(r,p),S=[];break;case"select":T=zd(r,d),N=zd(r,p),S=[];break;case"textarea":T=Am(r,d),N=Am(r,p),S=[];break;default:T=d,N=p,typeof T.onClick!="function"&&typeof N.onClick=="function"&&ny(r);break}Zp(o,N);var I,B,W=null;for(I in T)if(!(N.hasOwnProperty(I)||!T.hasOwnProperty(I)||T[I]==null))if(I===Lf){var re=T[I];for(B in re)re.hasOwnProperty(B)&&(W||(W={}),W[B]="")}else I===Dg||I===Of||I===J2||I===Wc||I===xO||(Ee.hasOwnProperty(I)?S||(S=[]):(S=S||[]).push(I,null));for(I in N){var te=N[I],ce=T!=null?T[I]:void 0;if(!(!N.hasOwnProperty(I)||te===ce||te==null&&ce==null))if(I===Lf)if(te&&Object.freeze(te),ce){for(B in ce)ce.hasOwnProperty(B)&&(!te||!te.hasOwnProperty(B))&&(W||(W={}),W[B]="");for(B in te)te.hasOwnProperty(B)&&ce[B]!==te[B]&&(W||(W={}),W[B]=te[B])}else W||(S||(S=[]),S.push(I,W)),W=te;else if(I===Dg){var pe=te?te[X2]:void 0,Ce=ce?ce[X2]:void 0;pe!=null&&Ce!==pe&&(S=S||[]).push(I,pe)}else I===Of?(typeof te=="string"||typeof te=="number")&&(S=S||[]).push(I,""+te):I===J2||I===Wc||(Ee.hasOwnProperty(I)?(te!=null&&(typeof te!="function"&&Q2(I,te),I==="onScroll"&&Sr("scroll",r)),!S&&ce!==te&&(S=[])):(S=S||[]).push(I,te))}return W&&(Y7(W,N[Lf]),(S=S||[]).push(Lf,W)),S}function Tle(r,o,d,p,v){d==="input"&&v.type==="radio"&&v.name!=null&&j(r,v);var S=ml(d,p),T=ml(d,v);switch(Cle(r,o,S,T),d){case"input":Y(r,v);break;case"textarea":O4(r,v);break;case"select":Hp(r,v);break}}function Rle(r){{var o=r.toLowerCase();return $d.hasOwnProperty(o)&&$d[o]||null}}function Ale(r,o,d,p,v,S,T){var N,I;switch(N=ml(o,d),K2(o,d),o){case"dialog":Sr("cancel",r),Sr("close",r);break;case"iframe":case"object":case"embed":Sr("load",r);break;case"video":case"audio":for(var B=0;B<Og.length;B++)Sr(Og[B],r);break;case"source":Sr("error",r);break;case"img":case"image":case"link":Sr("error",r),Sr("load",r);break;case"details":Sr("toggle",r);break;case"input":Ei(r,d),Sr("invalid",r);break;case"option":Sn(r,d);break;case"select":su(r,d),Sr("invalid",r);break;case"textarea":Nm(r,d),Sr("invalid",r);break}Zp(o,d);{I=new Set;for(var W=r.attributes,re=0;re<W.length;re++){var te=W[re].name.toLowerCase();switch(te){case"value":break;case"checked":break;case"selected":break;default:I.add(W[re].name)}}}var ce=null;for(var pe in d)if(d.hasOwnProperty(pe)){var Ce=d[pe];if(pe===Of)typeof Ce=="string"?r.textContent!==Ce&&(d[Wc]!==!0&&ty(r.textContent,Ce,S,T),ce=[Of,Ce]):typeof Ce=="number"&&r.textContent!==""+Ce&&(d[Wc]!==!0&&ty(r.textContent,Ce,S,T),ce=[Of,""+Ce]);else if(Ee.hasOwnProperty(pe))Ce!=null&&(typeof Ce!="function"&&Q2(pe,Ce),pe==="onScroll"&&Sr("scroll",r));else if(T&&typeof N=="boolean"){var rt=void 0,Ot=dn(pe);if(d[Wc]!==!0){if(!(pe===J2||pe===Wc||pe==="value"||pe==="checked"||pe==="selected")){if(pe===Dg){var Ct=r.innerHTML,bn=Ce?Ce[X2]:void 0;if(bn!=null){var mn=CO(r,bn);mn!==Ct&&jg(pe,Ct,mn)}}else if(pe===Lf){if(I.delete(pe),bO){var se=q7(Ce);rt=r.getAttribute("style"),se!==rt&&jg(pe,rt,se)}}else if(N&&!X)I.delete(pe.toLowerCase()),rt=_t(r,pe,Ce),Ce!==rt&&jg(pe,rt,Ce);else if(!ln(pe,Ot,N)&&!Qn(pe,Ce,Ot,N)){var Se=!1;if(Ot!==null)I.delete(Ot.attributeName),rt=yi(r,pe,Ce,Ot);else{var le=p;if(le===Es&&(le=Lm(o)),le===Es)I.delete(pe.toLowerCase());else{var ze=Rle(pe);ze!==null&&ze!==pe&&(Se=!0,I.delete(ze)),I.delete(pe)}rt=_t(r,pe,Ce)}var st=X;!st&&Ce!==rt&&!Se&&jg(pe,rt,Ce)}}}}}switch(T&&I.size>0&&d[Wc]!==!0&&wO(I),o){case"input":ki(r),de(r,d,!0);break;case"textarea":ki(r),L4(r);break;case"select":case"option":break;default:typeof d.onClick=="function"&&ny(r);break}return ce}function Nle(r,o,d){var p=r.nodeValue!==o;return p}function S6(r,o){{if(oi)return;oi=!0,u("Did not expect server HTML to contain a <%s> in <%s>.",o.nodeName.toLowerCase(),r.nodeName.toLowerCase())}}function k6(r,o){{if(oi)return;oi=!0,u('Did not expect server HTML to contain the text node "%s" in <%s>.',o.nodeValue,r.nodeName.toLowerCase())}}function E6(r,o,d){{if(oi)return;oi=!0,u("Expected server HTML to contain a matching <%s> in <%s>.",o,r.nodeName.toLowerCase())}}function _6(r,o){{if(o===""||oi)return;oi=!0,u('Expected server HTML to contain a matching text node for "%s" in <%s>.',o,r.nodeName.toLowerCase())}}function Mle(r,o,d){switch(o){case"input":be(r,d);return;case"textarea":V7(r,d);return;case"select":Rm(r,d);return}}var Pg=function(){},Fg=function(){};{var Ole=["address","applet","area","article","aside","base","basefont","bgsound","blockquote","body","br","button","caption","center","col","colgroup","dd","details","dir","div","dl","dt","embed","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","iframe","img","input","isindex","li","link","listing","main","marquee","menu","menuitem","meta","nav","noembed","noframes","noscript","object","ol","p","param","plaintext","pre","script","section","select","source","style","summary","table","tbody","td","template","textarea","tfoot","th","thead","title","tr","track","ul","wbr","xmp"],kO=["applet","caption","html","table","td","th","marquee","object","template","foreignObject","desc","title"],Lle=kO.concat(["button"]),Ile=["dd","dt","li","option","optgroup","p","rp","rt"],EO={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null};Fg=function(r,o){var d=en({},r||EO),p={tag:o};return kO.indexOf(o)!==-1&&(d.aTagInScope=null,d.buttonTagInScope=null,d.nobrTagInScope=null),Lle.indexOf(o)!==-1&&(d.pTagInButtonScope=null),Ole.indexOf(o)!==-1&&o!=="address"&&o!=="div"&&o!=="p"&&(d.listItemTagAutoclosing=null,d.dlItemTagAutoclosing=null),d.current=p,o==="form"&&(d.formTag=p),o==="a"&&(d.aTagInScope=p),o==="button"&&(d.buttonTagInScope=p),o==="nobr"&&(d.nobrTagInScope=p),o==="p"&&(d.pTagInButtonScope=p),o==="li"&&(d.listItemTagAutoclosing=p),(o==="dd"||o==="dt")&&(d.dlItemTagAutoclosing=p),d};var Dle=function(r,o){switch(o){case"select":return r==="option"||r==="optgroup"||r==="#text";case"optgroup":return r==="option"||r==="#text";case"option":return r==="#text";case"tr":return r==="th"||r==="td"||r==="style"||r==="script"||r==="template";case"tbody":case"thead":case"tfoot":return r==="tr"||r==="style"||r==="script"||r==="template";case"colgroup":return r==="col"||r==="template";case"table":return r==="caption"||r==="colgroup"||r==="tbody"||r==="tfoot"||r==="thead"||r==="style"||r==="script"||r==="template";case"head":return r==="base"||r==="basefont"||r==="bgsound"||r==="link"||r==="meta"||r==="title"||r==="noscript"||r==="noframes"||r==="style"||r==="script"||r==="template";case"html":return r==="head"||r==="body"||r==="frameset";case"frameset":return r==="frame";case"#document":return r==="html"}switch(r){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return o!=="h1"&&o!=="h2"&&o!=="h3"&&o!=="h4"&&o!=="h5"&&o!=="h6";case"rp":case"rt":return Ile.indexOf(o)===-1;case"body":case"caption":case"col":case"colgroup":case"frameset":case"frame":case"head":case"html":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":return o==null}return!0},jle=function(r,o){switch(r){case"address":case"article":case"aside":case"blockquote":case"center":case"details":case"dialog":case"dir":case"div":case"dl":case"fieldset":case"figcaption":case"figure":case"footer":case"header":case"hgroup":case"main":case"menu":case"nav":case"ol":case"p":case"section":case"summary":case"ul":case"pre":case"listing":case"table":case"hr":case"xmp":case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return o.pTagInButtonScope;case"form":return o.formTag||o.pTagInButtonScope;case"li":return o.listItemTagAutoclosing;case"dd":case"dt":return o.dlItemTagAutoclosing;case"button":return o.buttonTagInScope;case"a":return o.aTagInScope;case"nobr":return o.nobrTagInScope}return null},_O={};Pg=function(r,o,d){d=d||EO;var p=d.current,v=p&&p.tag;o!=null&&(r!=null&&u("validateDOMNesting: when childText is passed, childTag should be null"),r="#text");var S=Dle(r,v)?null:p,T=S?null:jle(r,d),N=S||T;if(N){var I=N.tag,B=!!S+"|"+r+"|"+I;if(!_O[B]){_O[B]=!0;var W=r,re="";if(r==="#text"?/\S/.test(o)?W="Text nodes":(W="Whitespace text nodes",re=" Make sure you don't have any extra whitespace between tags on each line of your source code."):W="<"+r+">",S){var te="";I==="table"&&r==="tr"&&(te+=" Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by the browser."),u("validateDOMNesting(...): %s cannot appear as a child of <%s>.%s%s",W,I,re,te)}else u("validateDOMNesting(...): %s cannot appear as a descendant of <%s>.",W,I)}}}}var ry="suppressHydrationWarning",ay="$",oy="/$",zg="$?",Ug="$!",Ple="style",T6=null,R6=null;function Fle(r){var o,d,p=r.nodeType;switch(p){case Ts:case Dm:{o=p===Ts?"#document":"#fragment";var v=r.documentElement;d=v?v.namespaceURI:Im(null,"");break}default:{var S=p===zr?r.parentNode:r,T=S.namespaceURI||null;o=S.tagName,d=Im(T,o);break}}{var N=o.toLowerCase(),I=Fg(null,N);return{namespace:d,ancestorInfo:I}}}function zle(r,o,d){{var p=r,v=Im(p.namespace,o),S=Fg(p.ancestorInfo,o);return{namespace:v,ancestorInfo:S}}}function h1e(r){return r}function Ule(r){T6=Zr(),R6=ele();var o=null;return ta(!1),o}function Ble(r){tle(R6),ta(T6),T6=null,R6=null}function Hle(r,o,d,p,v){var S;{var T=p;if(Pg(r,null,T.ancestorInfo),typeof o.children=="string"||typeof o.children=="number"){var N=""+o.children,I=Fg(T.ancestorInfo,r);Pg(null,N,I)}S=T.namespace}var B=Sle(r,o,d,S);return Vg(v,B),j6(B,o),B}function Vle(r,o){r.appendChild(o)}function $le(r,o,d,p,v){switch(Ele(r,o,d,p),o){case"button":case"input":case"select":case"textarea":return!!d.autoFocus;case"img":return!0;default:return!1}}function Zle(r,o,d,p,v,S){{var T=S;if(typeof p.children!=typeof d.children&&(typeof p.children=="string"||typeof p.children=="number")){var N=""+p.children,I=Fg(T.ancestorInfo,o);Pg(null,N,I)}}return _le(r,o,d,p)}function A6(r,o){return r==="textarea"||r==="noscript"||typeof o.children=="string"||typeof o.children=="number"||typeof o.dangerouslySetInnerHTML=="object"&&o.dangerouslySetInnerHTML!==null&&o.dangerouslySetInnerHTML.__html!=null}function Wle(r,o,d,p){{var v=d;Pg(null,r,v.ancestorInfo)}var S=kle(r,o);return Vg(p,S),S}function qle(){var r=window.event;return r===void 0?ti:F1(r.type)}var N6=typeof setTimeout=="function"?setTimeout:void 0,Gle=typeof clearTimeout=="function"?clearTimeout:void 0,M6=-1,TO=typeof Promise=="function"?Promise:void 0,Yle=typeof queueMicrotask=="function"?queueMicrotask:typeof TO!="undefined"?function(r){return TO.resolve(null).then(r).catch(Jle)}:N6;function Jle(r){setTimeout(function(){throw r})}function Xle(r,o,d,p){switch(o){case"button":case"input":case"select":case"textarea":d.autoFocus&&r.focus();return;case"img":{d.src&&(r.src=d.src);return}}}function Kle(r,o,d,p,v,S){Tle(r,o,d,p,v),j6(r,v)}function RO(r){Sc(r,"")}function Qle(r,o,d){r.nodeValue=d}function eue(r,o){r.appendChild(o)}function tue(r,o){var d;r.nodeType===zr?(d=r.parentNode,d.insertBefore(o,r)):(d=r,d.appendChild(o));var p=r._reactRootContainer;p==null&&d.onclick===null&&ny(d)}function nue(r,o,d){r.insertBefore(o,d)}function rue(r,o,d){r.nodeType===zr?r.parentNode.insertBefore(o,d):r.insertBefore(o,d)}function aue(r,o){r.removeChild(o)}function oue(r,o){r.nodeType===zr?r.parentNode.removeChild(o):r.removeChild(o)}function O6(r,o){var d=o,p=0;do{var v=d.nextSibling;if(r.removeChild(d),v&&v.nodeType===zr){var S=v.data;if(S===oy)if(p===0){r.removeChild(v),Ru(o);return}else p--;else(S===ay||S===zg||S===Ug)&&p++}d=v}while(d);Ru(o)}function iue(r,o){r.nodeType===zr?O6(r.parentNode,o):r.nodeType===to&&O6(r,o),Ru(r)}function sue(r){r=r;var o=r.style;typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"}function lue(r){r.nodeValue=""}function uue(r,o){r=r;var d=o[Ple],p=d!=null&&d.hasOwnProperty("display")?d.display:null;r.style.display=$p("display",p)}function cue(r,o){r.nodeValue=o}function due(r){r.nodeType===to?r.textContent="":r.nodeType===Ts&&r.documentElement&&r.removeChild(r.documentElement)}function fue(r,o,d){return r.nodeType!==to||o.toLowerCase()!==r.nodeName.toLowerCase()?null:r}function pue(r,o){return o===""||r.nodeType!==_s?null:r}function hue(r){return r.nodeType!==zr?null:r}function AO(r){return r.data===zg}function L6(r){return r.data===Ug}function mue(r){var o=r.nextSibling&&r.nextSibling.dataset,d,p,v;return o&&(d=o.dgst,p=o.msg,v=o.stck),{message:p,digest:d,stack:v}}function gue(r,o){r._reactRetry=o}function iy(r){for(;r!=null;r=r.nextSibling){var o=r.nodeType;if(o===to||o===_s)break;if(o===zr){var d=r.data;if(d===ay||d===Ug||d===zg)break;if(d===oy)return null}}return r}function Bg(r){return iy(r.nextSibling)}function vue(r){return iy(r.firstChild)}function yue(r){return iy(r.firstChild)}function xue(r){return iy(r.nextSibling)}function wue(r,o,d,p,v,S,T){Vg(S,r),j6(r,d);var N;{var I=v;N=I.namespace}var B=(S.mode&on)!==Rt;return Ale(r,o,d,N,p,B,T)}function bue(r,o,d,p){return Vg(d,r),d.mode&on,Nle(r,o)}function Cue(r,o){Vg(o,r)}function Sue(r){for(var o=r.nextSibling,d=0;o;){if(o.nodeType===zr){var p=o.data;if(p===oy){if(d===0)return Bg(o);d--}else(p===ay||p===Ug||p===zg)&&d++}o=o.nextSibling}return null}function NO(r){for(var o=r.previousSibling,d=0;o;){if(o.nodeType===zr){var p=o.data;if(p===ay||p===Ug||p===zg){if(d===0)return o;d--}else p===oy&&d++}o=o.previousSibling}return null}function kue(r){Ru(r)}function Eue(r){Ru(r)}function _ue(r){return r!=="head"&&r!=="body"}function Tue(r,o,d,p){var v=!0;ty(o.nodeValue,d,p,v)}function Rue(r,o,d,p,v,S){if(o[ry]!==!0){var T=!0;ty(p.nodeValue,v,S,T)}}function Aue(r,o){o.nodeType===to?S6(r,o):o.nodeType===zr||k6(r,o)}function Nue(r,o){{var d=r.parentNode;d!==null&&(o.nodeType===to?S6(d,o):o.nodeType===zr||k6(d,o))}}function Mue(r,o,d,p,v){(v||o[ry]!==!0)&&(p.nodeType===to?S6(d,p):p.nodeType===zr||k6(d,p))}function Oue(r,o,d){E6(r,o)}function Lue(r,o){_6(r,o)}function Iue(r,o,d){{var p=r.parentNode;p!==null&&E6(p,o)}}function Due(r,o){{var d=r.parentNode;d!==null&&_6(d,o)}}function jue(r,o,d,p,v,S){(S||o[ry]!==!0)&&E6(d,p)}function Pue(r,o,d,p,v){(v||o[ry]!==!0)&&_6(d,p)}function Fue(r){u("An error occurred during hydration. The server HTML was replaced with client content in <%s>.",r.nodeName.toLowerCase())}function zue(r){Lg(r)}var K1=Math.random().toString(36).slice(2),Q1="__reactFiber$"+K1,I6="__reactProps$"+K1,Hg="__reactContainer$"+K1,D6="__reactEvents$"+K1,Uue="__reactListeners$"+K1,Bue="__reactHandles$"+K1;function Hue(r){delete r[Q1],delete r[I6],delete r[D6],delete r[Uue],delete r[Bue]}function Vg(r,o){o[Q1]=r}function sy(r,o){o[Hg]=r}function MO(r){r[Hg]=null}function $g(r){return!!r[Hg]}function If(r){var o=r[Q1];if(o)return o;for(var d=r.parentNode;d;){if(o=d[Hg]||d[Q1],o){var p=o.alternate;if(o.child!==null||p!==null&&p.child!==null)for(var v=NO(r);v!==null;){var S=v[Q1];if(S)return S;v=NO(v)}return o}r=d,d=r.parentNode}return null}function qc(r){var o=r[Q1]||r[Hg];return o&&(o.tag===b||o.tag===_||o.tag===V||o.tag===y)?o:null}function eh(r){if(r.tag===b||r.tag===_)return r.stateNode;throw new Error("getNodeFromInstance: Invalid argument.")}function ly(r){return r[I6]||null}function j6(r,o){r[I6]=o}function Vue(r){var o=r[D6];return o===void 0&&(o=r[D6]=new Set),o}var OO={},LO=n.ReactDebugCurrentFrame;function uy(r){if(r){var o=r._owner,d=Cs(r.type,r._source,o?o.type:null);LO.setExtraStackFrame(d)}else LO.setExtraStackFrame(null)}function Fs(r,o,d,p,v){{var S=Function.call.bind(Et);for(var T in r)if(S(r,T)){var N=void 0;try{if(typeof r[T]!="function"){var I=Error((p||"React class")+": "+d+" type `"+T+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof r[T]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw I.name="Invariant Violation",I}N=r[T](o,T,p,d,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(B){N=B}N&&!(N instanceof Error)&&(uy(v),u("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",p||"React class",d,T,typeof N),uy(null)),N instanceof Error&&!(N.message in OO)&&(OO[N.message]=!0,uy(v),u("Failed %s type: %s",d,N.message),uy(null))}}}var P6=[],cy;cy=[];var Iu=-1;function Gc(r){return{current:r}}function po(r,o){if(Iu<0){u("Unexpected pop.");return}o!==cy[Iu]&&u("Unexpected Fiber popped."),r.current=P6[Iu],P6[Iu]=null,cy[Iu]=null,Iu--}function ho(r,o,d){Iu++,P6[Iu]=r.current,cy[Iu]=d,r.current=o}var F6;F6={};var Oi={};Object.freeze(Oi);var Du=Gc(Oi),Dl=Gc(!1),z6=Oi;function th(r,o,d){return d&&jl(o)?z6:Du.current}function IO(r,o,d){{var p=r.stateNode;p.__reactInternalMemoizedUnmaskedChildContext=o,p.__reactInternalMemoizedMaskedChildContext=d}}function nh(r,o){{var d=r.type,p=d.contextTypes;if(!p)return Oi;var v=r.stateNode;if(v&&v.__reactInternalMemoizedUnmaskedChildContext===o)return v.__reactInternalMemoizedMaskedChildContext;var S={};for(var T in p)S[T]=o[T];{var N=Bt(r)||"Unknown";Fs(p,S,"context",N)}return v&&IO(r,o,S),S}}function dy(){return Dl.current}function jl(r){{var o=r.childContextTypes;return o!=null}}function fy(r){po(Dl,r),po(Du,r)}function U6(r){po(Dl,r),po(Du,r)}function DO(r,o,d){{if(Du.current!==Oi)throw new Error("Unexpected context found on stack. This error is likely caused by a bug in React. Please file an issue.");ho(Du,o,r),ho(Dl,d,r)}}function jO(r,o,d){{var p=r.stateNode,v=o.childContextTypes;if(typeof p.getChildContext!="function"){{var S=Bt(r)||"Unknown";F6[S]||(F6[S]=!0,u("%s.childContextTypes is specified but there is no getChildContext() method on the instance. You can either define getChildContext() on %s or remove childContextTypes from it.",S,S))}return d}var T=p.getChildContext();for(var N in T)if(!(N in v))throw new Error((Bt(r)||"Unknown")+'.getChildContext(): key "'+N+'" is not defined in childContextTypes.');{var I=Bt(r)||"Unknown";Fs(v,T,"child context",I)}return en({},d,T)}}function py(r){{var o=r.stateNode,d=o&&o.__reactInternalMemoizedMergedChildContext||Oi;return z6=Du.current,ho(Du,d,r),ho(Dl,Dl.current,r),!0}}function PO(r,o,d){{var p=r.stateNode;if(!p)throw new Error("Expected to have an instance by this point. This error is likely caused by a bug in React. Please file an issue.");if(d){var v=jO(r,o,z6);p.__reactInternalMemoizedMergedChildContext=v,po(Dl,r),po(Du,r),ho(Du,v,r),ho(Dl,d,r)}else po(Dl,r),ho(Dl,d,r)}}function $ue(r){{if(!hu(r)||r.tag!==g)throw new Error("Expected subtree parent to be a mounted class component. This error is likely caused by a bug in React. Please file an issue.");var o=r;do{switch(o.tag){case y:return o.stateNode.context;case g:{var d=o.type;if(jl(d))return o.stateNode.__reactInternalMemoizedMergedChildContext;break}}o=o.return}while(o!==null);throw new Error("Found unexpected detached subtree parent. This error is likely caused by a bug in React. Please file an issue.")}}var Yc=0,hy=1,ju=null,B6=!1,H6=!1;function FO(r){ju===null?ju=[r]:ju.push(r)}function Zue(r){B6=!0,FO(r)}function zO(){B6&&Jc()}function Jc(){if(!H6&&ju!==null){H6=!0;var r=0,o=ri();try{var d=!0,p=ju;for($r(Fa);r<p.length;r++){var v=p[r];do v=v(d);while(v!==null)}ju=null,B6=!1}catch(S){throw ju!==null&&(ju=ju.slice(r+1)),qm(Kd,Jc),S}finally{$r(o),H6=!1}}return null}var rh=[],ah=0,my=null,gy=0,os=[],is=0,Df=null,Pu=1,Fu="";function Wue(r){return Pf(),(r.flags&Yi)!==Tt}function que(r){return Pf(),gy}function Gue(){var r=Fu,o=Pu,d=o&~Yue(o);return d.toString(32)+r}function jf(r,o){Pf(),rh[ah++]=gy,rh[ah++]=my,my=r,gy=o}function UO(r,o,d){Pf(),os[is++]=Pu,os[is++]=Fu,os[is++]=Df,Df=r;var p=Pu,v=Fu,S=vy(p)-1,T=p&~(1<<S),N=d+1,I=vy(o)+S;if(I>30){var B=S-S%5,W=(1<<B)-1,re=(T&W).toString(32),te=T>>B,ce=S-B,pe=vy(o)+ce,Ce=N<<ce,rt=Ce|te,Ot=re+v;Pu=1<<pe|rt,Fu=Ot}else{var Ct=N<<S,bn=Ct|T,mn=v;Pu=1<<I|bn,Fu=mn}}function V6(r){Pf();var o=r.return;if(o!==null){var d=1,p=0;jf(r,d),UO(r,d,p)}}function vy(r){return 32-Hr(r)}function Yue(r){return 1<<vy(r)-1}function $6(r){for(;r===my;)my=rh[--ah],rh[ah]=null,gy=rh[--ah],rh[ah]=null;for(;r===Df;)Df=os[--is],os[is]=null,Fu=os[--is],os[is]=null,Pu=os[--is],os[is]=null}function Jue(){return Pf(),Df!==null?{id:Pu,overflow:Fu}:null}function Xue(r,o){Pf(),os[is++]=Pu,os[is++]=Fu,os[is++]=Df,Pu=o.id,Fu=o.overflow,Df=r}function Pf(){Va()||u("Expected to be hydrating. This is a bug in React. Please file an issue.")}var Ha=null,ss=null,zs=!1,Ff=!1,Xc=null;function Kue(){zs&&u("We should not be hydrating here. This is a bug in React. Please file a bug.")}function BO(){Ff=!0}function Que(){return Ff}function ece(r){var o=r.stateNode.containerInfo;return ss=yue(o),Ha=r,zs=!0,Xc=null,Ff=!1,!0}function tce(r,o,d){return ss=xue(o),Ha=r,zs=!0,Xc=null,Ff=!1,d!==null&&Xue(r,d),!0}function HO(r,o){switch(r.tag){case y:{Aue(r.stateNode.containerInfo,o);break}case b:{var d=(r.mode&on)!==Rt;Mue(r.type,r.memoizedProps,r.stateNode,o,d);break}case V:{var p=r.memoizedState;p.dehydrated!==null&&Nue(p.dehydrated,o);break}}}function VO(r,o){HO(r,o);var d=ope();d.stateNode=o,d.return=r;var p=r.deletions;p===null?(r.deletions=[d],r.flags|=Jo):p.push(d)}function Z6(r,o){{if(Ff)return;switch(r.tag){case y:{var d=r.stateNode.containerInfo;switch(o.tag){case b:var p=o.type;o.pendingProps,Oue(d,p);break;case _:var v=o.pendingProps;Lue(d,v);break}break}case b:{var S=r.type,T=r.memoizedProps,N=r.stateNode;switch(o.tag){case b:{var I=o.type,B=o.pendingProps,W=(r.mode&on)!==Rt;jue(S,T,N,I,B,W);break}case _:{var re=o.pendingProps,te=(r.mode&on)!==Rt;Pue(S,T,N,re,te);break}}break}case V:{var ce=r.memoizedState,pe=ce.dehydrated;if(pe!==null)switch(o.tag){case b:var Ce=o.type;o.pendingProps,Iue(pe,Ce);break;case _:var rt=o.pendingProps;Due(pe,rt);break}break}default:return}}}function $O(r,o){o.flags=o.flags&~ro|wr,Z6(r,o)}function ZO(r,o){switch(r.tag){case b:{var d=r.type;r.pendingProps;var p=fue(o,d);return p!==null?(r.stateNode=p,Ha=r,ss=vue(p),!0):!1}case _:{var v=r.pendingProps,S=pue(o,v);return S!==null?(r.stateNode=S,Ha=r,ss=null,!0):!1}case V:{var T=hue(o);if(T!==null){var N={dehydrated:T,treeContext:Jue(),retryLane:so};r.memoizedState=N;var I=ipe(T);return I.return=r,r.child=I,Ha=r,ss=null,!0}return!1}default:return!1}}function W6(r){return(r.mode&on)!==Rt&&(r.flags&kt)===Tt}function q6(r){throw new Error("Hydration failed because the initial UI does not match what was rendered on the server.")}function G6(r){if(zs){var o=ss;if(!o){W6(r)&&(Z6(Ha,r),q6()),$O(Ha,r),zs=!1,Ha=r;return}var d=o;if(!ZO(r,o)){W6(r)&&(Z6(Ha,r),q6()),o=Bg(d);var p=Ha;if(!o||!ZO(r,o)){$O(Ha,r),zs=!1,Ha=r;return}VO(p,d)}}}function nce(r,o,d){var p=r.stateNode,v=!Ff,S=wue(p,r.type,r.memoizedProps,o,d,r,v);return r.updateQueue=S,S!==null}function rce(r){var o=r.stateNode,d=r.memoizedProps,p=bue(o,d,r);if(p){var v=Ha;if(v!==null)switch(v.tag){case y:{var S=v.stateNode.containerInfo,T=(v.mode&on)!==Rt;Tue(S,o,d,T);break}case b:{var N=v.type,I=v.memoizedProps,B=v.stateNode,W=(v.mode&on)!==Rt;Rue(N,I,B,o,d,W);break}}}return p}function ace(r){var o=r.memoizedState,d=o!==null?o.dehydrated:null;if(!d)throw new Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");Cue(d,r)}function oce(r){var o=r.memoizedState,d=o!==null?o.dehydrated:null;if(!d)throw new Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");return Sue(d)}function WO(r){for(var o=r.return;o!==null&&o.tag!==b&&o.tag!==y&&o.tag!==V;)o=o.return;Ha=o}function yy(r){if(r!==Ha)return!1;if(!zs)return WO(r),zs=!0,!1;if(r.tag!==y&&(r.tag!==b||_ue(r.type)&&!A6(r.type,r.memoizedProps))){var o=ss;if(o)if(W6(r))qO(r),q6();else for(;o;)VO(r,o),o=Bg(o)}return WO(r),r.tag===V?ss=oce(r):ss=Ha?Bg(r.stateNode):null,!0}function ice(){return zs&&ss!==null}function qO(r){for(var o=ss;o;)HO(r,o),o=Bg(o)}function oh(){Ha=null,ss=null,zs=!1,Ff=!1}function GO(){Xc!==null&&(BI(Xc),Xc=null)}function Va(){return zs}function Y6(r){Xc===null?Xc=[r]:Xc.push(r)}var sce=n.ReactCurrentBatchConfig,lce=null;function uce(){return sce.transition}var Us={recordUnsafeLifecycleWarnings:function(r,o){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(r,o){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}};{var cce=function(r){for(var o=null,d=r;d!==null;)d.mode&Gn&&(o=d),d=d.return;return o},zf=function(r){var o=[];return r.forEach(function(d){o.push(d)}),o.sort().join(", ")},Zg=[],Wg=[],qg=[],Gg=[],Yg=[],Jg=[],Uf=new Set;Us.recordUnsafeLifecycleWarnings=function(r,o){Uf.has(r.type)||(typeof o.componentWillMount=="function"&&o.componentWillMount.__suppressDeprecationWarning!==!0&&Zg.push(r),r.mode&Gn&&typeof o.UNSAFE_componentWillMount=="function"&&Wg.push(r),typeof o.componentWillReceiveProps=="function"&&o.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&qg.push(r),r.mode&Gn&&typeof o.UNSAFE_componentWillReceiveProps=="function"&&Gg.push(r),typeof o.componentWillUpdate=="function"&&o.componentWillUpdate.__suppressDeprecationWarning!==!0&&Yg.push(r),r.mode&Gn&&typeof o.UNSAFE_componentWillUpdate=="function"&&Jg.push(r))},Us.flushPendingUnsafeLifecycleWarnings=function(){var r=new Set;Zg.length>0&&(Zg.forEach(function(te){r.add(Bt(te)||"Component"),Uf.add(te.type)}),Zg=[]);var o=new Set;Wg.length>0&&(Wg.forEach(function(te){o.add(Bt(te)||"Component"),Uf.add(te.type)}),Wg=[]);var d=new Set;qg.length>0&&(qg.forEach(function(te){d.add(Bt(te)||"Component"),Uf.add(te.type)}),qg=[]);var p=new Set;Gg.length>0&&(Gg.forEach(function(te){p.add(Bt(te)||"Component"),Uf.add(te.type)}),Gg=[]);var v=new Set;Yg.length>0&&(Yg.forEach(function(te){v.add(Bt(te)||"Component"),Uf.add(te.type)}),Yg=[]);var S=new Set;if(Jg.length>0&&(Jg.forEach(function(te){S.add(Bt(te)||"Component"),Uf.add(te.type)}),Jg=[]),o.size>0){var T=zf(o);u(`Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details.
130
+
131
+ * Move code with side effects to componentDidMount, and set initial state in the constructor.
132
+
133
+ Please update the following components: %s`,T)}if(p.size>0){var N=zf(p);u(`Using UNSAFE_componentWillReceiveProps in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details.
134
+
135
+ * Move data fetching code or side effects to componentDidUpdate.
136
+ * If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://reactjs.org/link/derived-state
137
+
138
+ Please update the following components: %s`,N)}if(S.size>0){var I=zf(S);u(`Using UNSAFE_componentWillUpdate in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details.
139
+
140
+ * Move data fetching code or side effects to componentDidUpdate.
141
+
142
+ Please update the following components: %s`,I)}if(r.size>0){var B=zf(r);l(`componentWillMount has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.
143
+
144
+ * Move code with side effects to componentDidMount, and set initial state in the constructor.
145
+ * Rename componentWillMount to UNSAFE_componentWillMount to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
146
+
147
+ Please update the following components: %s`,B)}if(d.size>0){var W=zf(d);l(`componentWillReceiveProps has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.
148
+
149
+ * Move data fetching code or side effects to componentDidUpdate.
150
+ * If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://reactjs.org/link/derived-state
151
+ * Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
152
+
153
+ Please update the following components: %s`,W)}if(v.size>0){var re=zf(v);l(`componentWillUpdate has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.
154
+
155
+ * Move data fetching code or side effects to componentDidUpdate.
156
+ * Rename componentWillUpdate to UNSAFE_componentWillUpdate to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
157
+
158
+ Please update the following components: %s`,re)}};var xy=new Map,YO=new Set;Us.recordLegacyContextWarning=function(r,o){var d=cce(r);if(d===null){u("Expected to find a StrictMode component in a strict mode tree. This error is likely caused by a bug in React. Please file an issue.");return}if(!YO.has(r.type)){var p=xy.get(d);(r.type.contextTypes!=null||r.type.childContextTypes!=null||o!==null&&typeof o.getChildContext=="function")&&(p===void 0&&(p=[],xy.set(d,p)),p.push(r))}},Us.flushLegacyContextWarning=function(){xy.forEach(function(r,o){if(r.length!==0){var d=r[0],p=new Set;r.forEach(function(S){p.add(Bt(S)||"Component"),YO.add(S.type)});var v=zf(p);try{Zn(d),u(`Legacy context API has been detected within a strict-mode tree.
159
+
160
+ The old API will be supported in all 16.x releases, but applications using it should migrate to the new version.
161
+
162
+ Please update the following components: %s
163
+
164
+ Learn more about this warning here: https://reactjs.org/link/legacy-context`,v)}finally{sr()}}})},Us.discardPendingWarnings=function(){Zg=[],Wg=[],qg=[],Gg=[],Yg=[],Jg=[],xy=new Map}}var J6,X6,K6,Q6,e8,JO=function(r,o){};J6=!1,X6=!1,K6={},Q6={},e8={},JO=function(r,o){if(!(r===null||typeof r!="object")&&!(!r._store||r._store.validated||r.key!=null)){if(typeof r._store!="object")throw new Error("React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue.");r._store.validated=!0;var d=Bt(o)||"Component";Q6[d]||(Q6[d]=!0,u('Each child in a list should have a unique "key" prop. See https://reactjs.org/link/warning-keys for more information.'))}};function dce(r){return r.prototype&&r.prototype.isReactComponent}function Xg(r,o,d){var p=d.ref;if(p!==null&&typeof p!="function"&&typeof p!="object"){if((r.mode&Gn||ie)&&!(d._owner&&d._self&&d._owner.stateNode!==d._self)&&!(d._owner&&d._owner.tag!==g)&&!(typeof d.type=="function"&&!dce(d.type))&&d._owner){var v=Bt(r)||"Component";K6[v]||(u('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. We recommend using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',v,p),K6[v]=!0)}if(d._owner){var S=d._owner,T;if(S){var N=S;if(N.tag!==g)throw new Error("Function components cannot have string refs. We recommend using useRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref");T=N.stateNode}if(!T)throw new Error("Missing owner for string ref "+p+". This error is likely caused by a bug in React. Please file an issue.");var I=T;jn(p,"ref");var B=""+p;if(o!==null&&o.ref!==null&&typeof o.ref=="function"&&o.ref._stringRef===B)return o.ref;var W=function(re){var te=I.refs;re===null?delete te[B]:te[B]=re};return W._stringRef=B,W}else{if(typeof p!="string")throw new Error("Expected ref to be a function, a string, an object returned by React.createRef(), or null.");if(!d._owner)throw new Error("Element ref was specified as a string ("+p+`) but no owner was set. This could happen for one of the following reasons:
165
+ 1. You may be adding a ref to a function component
166
+ 2. You may be adding a ref to a component that was not created inside a component's render method
167
+ 3. You have multiple copies of React loaded
168
+ See https://reactjs.org/link/refs-must-have-owner for more information.`)}}return p}function wy(r,o){var d=Object.prototype.toString.call(o);throw new Error("Objects are not valid as a React child (found: "+(d==="[object Object]"?"object with keys {"+Object.keys(o).join(", ")+"}":d)+"). If you meant to render a collection of children, use an array instead.")}function by(r){{var o=Bt(r)||"Component";if(e8[o])return;e8[o]=!0,u("Functions are not valid as a React child. This may happen if you return a Component instead of <Component /> from render. Or maybe you meant to call this function rather than return it.")}}function XO(r){var o=r._payload,d=r._init;return d(o)}function KO(r){function o(se,Se){if(r){var le=se.deletions;le===null?(se.deletions=[Se],se.flags|=Jo):le.push(Se)}}function d(se,Se){if(!r)return null;for(var le=Se;le!==null;)o(se,le),le=le.sibling;return null}function p(se,Se){for(var le=new Map,ze=Se;ze!==null;)ze.key!==null?le.set(ze.key,ze):le.set(ze.index,ze),ze=ze.sibling;return le}function v(se,Se){var le=Yf(se,Se);return le.index=0,le.sibling=null,le}function S(se,Se,le){if(se.index=le,!r)return se.flags|=Yi,Se;var ze=se.alternate;if(ze!==null){var st=ze.index;return st<Se?(se.flags|=wr,Se):st}else return se.flags|=wr,Se}function T(se){return r&&se.alternate===null&&(se.flags|=wr),se}function N(se,Se,le,ze){if(Se===null||Se.tag!==_){var st=Yx(le,se.mode,ze);return st.return=se,st}else{var at=v(Se,le);return at.return=se,at}}function I(se,Se,le,ze){var st=le.type;if(st===Ia)return W(se,Se,le.props.children,ze,le.key);if(Se!==null&&(Se.elementType===st||rD(Se,le)||typeof st=="object"&&st!==null&&st.$$typeof===Ht&&XO(st)===Se.type)){var at=v(Se,le.props);return at.ref=Xg(se,Se,le),at.return=se,at._debugSource=le._source,at._debugOwner=le._owner,at}var zt=Gx(le,se.mode,ze);return zt.ref=Xg(se,Se,le),zt.return=se,zt}function B(se,Se,le,ze){if(Se===null||Se.tag!==k||Se.stateNode.containerInfo!==le.containerInfo||Se.stateNode.implementation!==le.implementation){var st=Jx(le,se.mode,ze);return st.return=se,st}else{var at=v(Se,le.children||[]);return at.return=se,at}}function W(se,Se,le,ze,st){if(Se===null||Se.tag!==R){var at=ld(le,se.mode,ze,st);return at.return=se,at}else{var zt=v(Se,le);return zt.return=se,zt}}function re(se,Se,le){if(typeof Se=="string"&&Se!==""||typeof Se=="number"){var ze=Yx(""+Se,se.mode,le);return ze.return=se,ze}if(typeof Se=="object"&&Se!==null){switch(Se.$$typeof){case Ar:{var st=Gx(Se,se.mode,le);return st.ref=Xg(se,null,Se),st.return=se,st}case yr:{var at=Jx(Se,se.mode,le);return at.return=se,at}case Ht:{var zt=Se._payload,qt=Se._init;return re(se,qt(zt),le)}}if(rn(Se)||Yt(Se)){var Jn=ld(Se,se.mode,le,null);return Jn.return=se,Jn}wy(se,Se)}return typeof Se=="function"&&by(se),null}function te(se,Se,le,ze){var st=Se!==null?Se.key:null;if(typeof le=="string"&&le!==""||typeof le=="number")return st!==null?null:N(se,Se,""+le,ze);if(typeof le=="object"&&le!==null){switch(le.$$typeof){case Ar:return le.key===st?I(se,Se,le,ze):null;case yr:return le.key===st?B(se,Se,le,ze):null;case Ht:{var at=le._payload,zt=le._init;return te(se,Se,zt(at),ze)}}if(rn(le)||Yt(le))return st!==null?null:W(se,Se,le,ze,null);wy(se,le)}return typeof le=="function"&&by(se),null}function ce(se,Se,le,ze,st){if(typeof ze=="string"&&ze!==""||typeof ze=="number"){var at=se.get(le)||null;return N(Se,at,""+ze,st)}if(typeof ze=="object"&&ze!==null){switch(ze.$$typeof){case Ar:{var zt=se.get(ze.key===null?le:ze.key)||null;return I(Se,zt,ze,st)}case yr:{var qt=se.get(ze.key===null?le:ze.key)||null;return B(Se,qt,ze,st)}case Ht:var Jn=ze._payload,Ln=ze._init;return ce(se,Se,le,Ln(Jn),st)}if(rn(ze)||Yt(ze)){var na=se.get(le)||null;return W(Se,na,ze,st,null)}wy(Se,ze)}return typeof ze=="function"&&by(Se),null}function pe(se,Se,le){{if(typeof se!="object"||se===null)return Se;switch(se.$$typeof){case Ar:case yr:JO(se,le);var ze=se.key;if(typeof ze!="string")break;if(Se===null){Se=new Set,Se.add(ze);break}if(!Se.has(ze)){Se.add(ze);break}u("Encountered two children with the same key, `%s`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version.",ze);break;case Ht:var st=se._payload,at=se._init;pe(at(st),Se,le);break}}return Se}function Ce(se,Se,le,ze){for(var st=null,at=0;at<le.length;at++){var zt=le[at];st=pe(zt,st,se)}for(var qt=null,Jn=null,Ln=Se,na=0,In=0,qr=null;Ln!==null&&In<le.length;In++){Ln.index>In?(qr=Ln,Ln=null):qr=Ln.sibling;var go=te(se,Ln,le[In],ze);if(go===null){Ln===null&&(Ln=qr);break}r&&Ln&&go.alternate===null&&o(se,Ln),na=S(go,na,In),Jn===null?qt=go:Jn.sibling=go,Jn=go,Ln=qr}if(In===le.length){if(d(se,Ln),Va()){var Ja=In;jf(se,Ja)}return qt}if(Ln===null){for(;In<le.length;In++){var Ii=re(se,le[In],ze);Ii!==null&&(na=S(Ii,na,In),Jn===null?qt=Ii:Jn.sibling=Ii,Jn=Ii)}if(Va()){var Io=In;jf(se,Io)}return qt}for(var Do=p(se,Ln);In<le.length;In++){var vo=ce(Do,se,In,le[In],ze);vo!==null&&(r&&vo.alternate!==null&&Do.delete(vo.key===null?In:vo.key),na=S(vo,na,In),Jn===null?qt=vo:Jn.sibling=vo,Jn=vo)}if(r&&Do.forEach(function(kh){return o(se,kh)}),Va()){var Zu=In;jf(se,Zu)}return qt}function rt(se,Se,le,ze){var st=Yt(le);if(typeof st!="function")throw new Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");{typeof Symbol=="function"&&le[Symbol.toStringTag]==="Generator"&&(X6||u("Using Generators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. Keep in mind you might need to polyfill these features for older browsers."),X6=!0),le.entries===st&&(J6||u("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),J6=!0);var at=st.call(le);if(at)for(var zt=null,qt=at.next();!qt.done;qt=at.next()){var Jn=qt.value;zt=pe(Jn,zt,se)}}var Ln=st.call(le);if(Ln==null)throw new Error("An iterable object provided no iterator.");for(var na=null,In=null,qr=Se,go=0,Ja=0,Ii=null,Io=Ln.next();qr!==null&&!Io.done;Ja++,Io=Ln.next()){qr.index>Ja?(Ii=qr,qr=null):Ii=qr.sibling;var Do=te(se,qr,Io.value,ze);if(Do===null){qr===null&&(qr=Ii);break}r&&qr&&Do.alternate===null&&o(se,qr),go=S(Do,go,Ja),In===null?na=Do:In.sibling=Do,In=Do,qr=Ii}if(Io.done){if(d(se,qr),Va()){var vo=Ja;jf(se,vo)}return na}if(qr===null){for(;!Io.done;Ja++,Io=Ln.next()){var Zu=re(se,Io.value,ze);Zu!==null&&(go=S(Zu,go,Ja),In===null?na=Zu:In.sibling=Zu,In=Zu)}if(Va()){var kh=Ja;jf(se,kh)}return na}for(var Av=p(se,qr);!Io.done;Ja++,Io=Ln.next()){var $l=ce(Av,se,Ja,Io.value,ze);$l!==null&&(r&&$l.alternate!==null&&Av.delete($l.key===null?Ja:$l.key),go=S($l,go,Ja),In===null?na=$l:In.sibling=$l,In=$l)}if(r&&Av.forEach(function(Ppe){return o(se,Ppe)}),Va()){var jpe=Ja;jf(se,jpe)}return na}function Ot(se,Se,le,ze){if(Se!==null&&Se.tag===_){d(se,Se.sibling);var st=v(Se,le);return st.return=se,st}d(se,Se);var at=Yx(le,se.mode,ze);return at.return=se,at}function Ct(se,Se,le,ze){for(var st=le.key,at=Se;at!==null;){if(at.key===st){var zt=le.type;if(zt===Ia){if(at.tag===R){d(se,at.sibling);var qt=v(at,le.props.children);return qt.return=se,qt._debugSource=le._source,qt._debugOwner=le._owner,qt}}else if(at.elementType===zt||rD(at,le)||typeof zt=="object"&&zt!==null&&zt.$$typeof===Ht&&XO(zt)===at.type){d(se,at.sibling);var Jn=v(at,le.props);return Jn.ref=Xg(se,at,le),Jn.return=se,Jn._debugSource=le._source,Jn._debugOwner=le._owner,Jn}d(se,at);break}else o(se,at);at=at.sibling}if(le.type===Ia){var Ln=ld(le.props.children,se.mode,ze,le.key);return Ln.return=se,Ln}else{var na=Gx(le,se.mode,ze);return na.ref=Xg(se,Se,le),na.return=se,na}}function bn(se,Se,le,ze){for(var st=le.key,at=Se;at!==null;){if(at.key===st)if(at.tag===k&&at.stateNode.containerInfo===le.containerInfo&&at.stateNode.implementation===le.implementation){d(se,at.sibling);var zt=v(at,le.children||[]);return zt.return=se,zt}else{d(se,at);break}else o(se,at);at=at.sibling}var qt=Jx(le,se.mode,ze);return qt.return=se,qt}function mn(se,Se,le,ze){var st=typeof le=="object"&&le!==null&&le.type===Ia&&le.key===null;if(st&&(le=le.props.children),typeof le=="object"&&le!==null){switch(le.$$typeof){case Ar:return T(Ct(se,Se,le,ze));case yr:return T(bn(se,Se,le,ze));case Ht:var at=le._payload,zt=le._init;return mn(se,Se,zt(at),ze)}if(rn(le))return Ce(se,Se,le,ze);if(Yt(le))return rt(se,Se,le,ze);wy(se,le)}return typeof le=="string"&&le!==""||typeof le=="number"?T(Ot(se,Se,""+le,ze)):(typeof le=="function"&&by(se),d(se,Se))}return mn}var ih=KO(!0),QO=KO(!1);function fce(r,o){if(r!==null&&o.child!==r.child)throw new Error("Resuming work not yet implemented.");if(o.child!==null){var d=o.child,p=Yf(d,d.pendingProps);for(o.child=p,p.return=o;d.sibling!==null;)d=d.sibling,p=p.sibling=Yf(d,d.pendingProps),p.return=o;p.sibling=null}}function pce(r,o){for(var d=r.child;d!==null;)epe(d,o),d=d.sibling}var t8=Gc(null),n8;n8={};var Cy=null,sh=null,r8=null,Sy=!1;function ky(){Cy=null,sh=null,r8=null,Sy=!1}function eL(){Sy=!0}function tL(){Sy=!1}function nL(r,o,d){ho(t8,o._currentValue,r),o._currentValue=d,o._currentRenderer!==void 0&&o._currentRenderer!==null&&o._currentRenderer!==n8&&u("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),o._currentRenderer=n8}function a8(r,o){var d=t8.current;po(t8,o),r._currentValue=d}function o8(r,o,d){for(var p=r;p!==null;){var v=p.alternate;if(Tu(p.childLanes,o)?v!==null&&!Tu(v.childLanes,o)&&(v.childLanes=Xt(v.childLanes,o)):(p.childLanes=Xt(p.childLanes,o),v!==null&&(v.childLanes=Xt(v.childLanes,o))),p===d)break;p=p.return}p!==d&&u("Expected to find the propagation root when scheduling context work. This error is likely caused by a bug in React. Please file an issue.")}function hce(r,o,d){mce(r,o,d)}function mce(r,o,d){var p=r.child;for(p!==null&&(p.return=r);p!==null;){var v=void 0,S=p.dependencies;if(S!==null){v=p.child;for(var T=S.firstContext;T!==null;){if(T.context===o){if(p.tag===g){var N=pf(d),I=zu(er,N);I.tag=_y;var B=p.updateQueue;if(B!==null){var W=B.shared,re=W.pending;re===null?I.next=I:(I.next=re.next,re.next=I),W.pending=I}}p.lanes=Xt(p.lanes,d);var te=p.alternate;te!==null&&(te.lanes=Xt(te.lanes,d)),o8(p.return,d,r),S.lanes=Xt(S.lanes,d);break}T=T.next}}else if(p.tag===P)v=p.type===r.type?null:p.child;else if(p.tag===_e){var ce=p.return;if(ce===null)throw new Error("We just came from a parent so we must have had a parent. This is a bug in React.");ce.lanes=Xt(ce.lanes,d);var pe=ce.alternate;pe!==null&&(pe.lanes=Xt(pe.lanes,d)),o8(ce,d,r),v=p.sibling}else v=p.child;if(v!==null)v.return=p;else for(v=p;v!==null;){if(v===r){v=null;break}var Ce=v.sibling;if(Ce!==null){Ce.return=v.return,v=Ce;break}v=v.return}p=v}}function lh(r,o){Cy=r,sh=null,r8=null;var d=r.dependencies;if(d!==null){var p=d.firstContext;p!==null&&(lo(d.lanes,o)&&fv(),d.firstContext=null)}}function ua(r){Sy&&u("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");var o=r._currentValue;if(r8!==r){var d={context:r,memoizedValue:o,next:null};if(sh===null){if(Cy===null)throw new Error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");sh=d,Cy.dependencies={lanes:Le,firstContext:d}}else sh=sh.next=d}return o}var Bf=null;function i8(r){Bf===null?Bf=[r]:Bf.push(r)}function gce(){if(Bf!==null){for(var r=0;r<Bf.length;r++){var o=Bf[r],d=o.interleaved;if(d!==null){o.interleaved=null;var p=d.next,v=o.pending;if(v!==null){var S=v.next;v.next=p,d.next=S}o.pending=d}}Bf=null}}function rL(r,o,d,p){var v=o.interleaved;return v===null?(d.next=d,i8(o)):(d.next=v.next,v.next=d),o.interleaved=d,Ey(r,p)}function vce(r,o,d,p){var v=o.interleaved;v===null?(d.next=d,i8(o)):(d.next=v.next,v.next=d),o.interleaved=d}function yce(r,o,d,p){var v=o.interleaved;return v===null?(d.next=d,i8(o)):(d.next=v.next,v.next=d),o.interleaved=d,Ey(r,p)}function ii(r,o){return Ey(r,o)}var xce=Ey;function Ey(r,o){r.lanes=Xt(r.lanes,o);var d=r.alternate;d!==null&&(d.lanes=Xt(d.lanes,o)),d===null&&(r.flags&(wr|ro))!==Tt&&QI(r);for(var p=r,v=r.return;v!==null;)v.childLanes=Xt(v.childLanes,o),d=v.alternate,d!==null?d.childLanes=Xt(d.childLanes,o):(v.flags&(wr|ro))!==Tt&&QI(r),p=v,v=v.return;if(p.tag===y){var S=p.stateNode;return S}else return null}var aL=0,oL=1,_y=2,s8=3,Ty=!1,l8,Ry;l8=!1,Ry=null;function u8(r){var o={baseState:r.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:Le},effects:null};r.updateQueue=o}function iL(r,o){var d=o.updateQueue,p=r.updateQueue;if(d===p){var v={baseState:p.baseState,firstBaseUpdate:p.firstBaseUpdate,lastBaseUpdate:p.lastBaseUpdate,shared:p.shared,effects:p.effects};o.updateQueue=v}}function zu(r,o){var d={eventTime:r,lane:o,tag:aL,payload:null,callback:null,next:null};return d}function Kc(r,o,d){var p=r.updateQueue;if(p===null)return null;var v=p.shared;if(Ry===v&&!l8&&(u("An update (setState, replaceState, or forceUpdate) was scheduled from inside an update function. Update functions should be pure, with zero side-effects. Consider using componentDidUpdate or a callback."),l8=!0),vfe()){var S=v.pending;return S===null?o.next=o:(o.next=S.next,S.next=o),v.pending=o,xce(r,d)}else return yce(r,v,o,d)}function Ay(r,o,d){var p=o.updateQueue;if(p!==null){var v=p.shared;if(cg(d)){var S=v.lanes;S=fg(S,r.pendingLanes);var T=Xt(S,d);v.lanes=T,I1(r,T)}}}function c8(r,o){var d=r.updateQueue,p=r.alternate;if(p!==null){var v=p.updateQueue;if(d===v){var S=null,T=null,N=d.firstBaseUpdate;if(N!==null){var I=N;do{var B={eventTime:I.eventTime,lane:I.lane,tag:I.tag,payload:I.payload,callback:I.callback,next:null};T===null?S=T=B:(T.next=B,T=B),I=I.next}while(I!==null);T===null?S=T=o:(T.next=o,T=o)}else S=T=o;d={baseState:v.baseState,firstBaseUpdate:S,lastBaseUpdate:T,shared:v.shared,effects:v.effects},r.updateQueue=d;return}}var W=d.lastBaseUpdate;W===null?d.firstBaseUpdate=o:W.next=o,d.lastBaseUpdate=o}function wce(r,o,d,p,v,S){switch(d.tag){case oL:{var T=d.payload;if(typeof T=="function"){eL();var N=T.call(S,p,v);{if(r.mode&Gn){br(!0);try{T.call(S,p,v)}finally{br(!1)}}tL()}return N}return T}case s8:r.flags=r.flags&~oa|kt;case aL:{var I=d.payload,B;if(typeof I=="function"){eL(),B=I.call(S,p,v);{if(r.mode&Gn){br(!0);try{I.call(S,p,v)}finally{br(!1)}}tL()}}else B=I;return B==null?p:en({},p,B)}case _y:return Ty=!0,p}return p}function Ny(r,o,d,p){var v=r.updateQueue;Ty=!1,Ry=v.shared;var S=v.firstBaseUpdate,T=v.lastBaseUpdate,N=v.shared.pending;if(N!==null){v.shared.pending=null;var I=N,B=I.next;I.next=null,T===null?S=B:T.next=B,T=I;var W=r.alternate;if(W!==null){var re=W.updateQueue,te=re.lastBaseUpdate;te!==T&&(te===null?re.firstBaseUpdate=B:te.next=B,re.lastBaseUpdate=I)}}if(S!==null){var ce=v.baseState,pe=Le,Ce=null,rt=null,Ot=null,Ct=S;do{var bn=Ct.lane,mn=Ct.eventTime;if(Tu(p,bn)){if(Ot!==null){var Se={eventTime:mn,lane:Tn,tag:Ct.tag,payload:Ct.payload,callback:Ct.callback,next:null};Ot=Ot.next=Se}ce=wce(r,v,Ct,ce,o,d);var le=Ct.callback;if(le!==null&&Ct.lane!==Tn){r.flags|=ar;var ze=v.effects;ze===null?v.effects=[Ct]:ze.push(Ct)}}else{var se={eventTime:mn,lane:bn,tag:Ct.tag,payload:Ct.payload,callback:Ct.callback,next:null};Ot===null?(rt=Ot=se,Ce=ce):Ot=Ot.next=se,pe=Xt(pe,bn)}if(Ct=Ct.next,Ct===null){if(N=v.shared.pending,N===null)break;var st=N,at=st.next;st.next=null,Ct=at,v.lastBaseUpdate=st,v.shared.pending=null}}while(!0);Ot===null&&(Ce=ce),v.baseState=Ce,v.firstBaseUpdate=rt,v.lastBaseUpdate=Ot;var zt=v.shared.interleaved;if(zt!==null){var qt=zt;do pe=Xt(pe,qt.lane),qt=qt.next;while(qt!==zt)}else S===null&&(v.shared.lanes=Le);kv(pe),r.lanes=pe,r.memoizedState=ce}Ry=null}function bce(r,o){if(typeof r!="function")throw new Error("Invalid argument passed as callback. Expected a function. Instead "+("received: "+r));r.call(o)}function sL(){Ty=!1}function My(){return Ty}function lL(r,o,d){var p=o.effects;if(o.effects=null,p!==null)for(var v=0;v<p.length;v++){var S=p[v],T=S.callback;T!==null&&(S.callback=null,bce(T,d))}}var Kg={},Qc=Gc(Kg),Qg=Gc(Kg),Oy=Gc(Kg);function Ly(r){if(r===Kg)throw new Error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue.");return r}function uL(){var r=Ly(Oy.current);return r}function d8(r,o){ho(Oy,o,r),ho(Qg,r,r),ho(Qc,Kg,r);var d=Fle(o);po(Qc,r),ho(Qc,d,r)}function uh(r){po(Qc,r),po(Qg,r),po(Oy,r)}function f8(){var r=Ly(Qc.current);return r}function cL(r){Ly(Oy.current);var o=Ly(Qc.current),d=zle(o,r.type);o!==d&&(ho(Qg,r,r),ho(Qc,d,r))}function p8(r){Qg.current===r&&(po(Qc,r),po(Qg,r))}var Cce=0,dL=1,fL=1,ev=2,Bs=Gc(Cce);function h8(r,o){return(r&o)!==0}function ch(r){return r&dL}function m8(r,o){return r&dL|o}function Sce(r,o){return r|o}function ed(r,o){ho(Bs,o,r)}function dh(r){po(Bs,r)}function kce(r,o){var d=r.memoizedState;return d!==null?d.dehydrated!==null:(r.memoizedProps,!0)}function Iy(r){for(var o=r;o!==null;){if(o.tag===V){var d=o.memoizedState;if(d!==null){var p=d.dehydrated;if(p===null||AO(p)||L6(p))return o}}else if(o.tag===ge&&o.memoizedProps.revealOrder!==void 0){var v=(o.flags&kt)!==Tt;if(v)return o}else if(o.child!==null){o.child.return=o,o=o.child;continue}if(o===r)return null;for(;o.sibling===null;){if(o.return===null||o.return===r)return null;o=o.return}o.sibling.return=o.return,o=o.sibling}return null}var si=0,xa=1,Pl=2,wa=4,$a=8,g8=[];function v8(){for(var r=0;r<g8.length;r++){var o=g8[r];o._workInProgressVersionPrimary=null}g8.length=0}function Ece(r,o){var d=o._getVersion,p=d(o._source);r.mutableSourceEagerHydrationData==null?r.mutableSourceEagerHydrationData=[o,p]:r.mutableSourceEagerHydrationData.push(o,p)}var it=n.ReactCurrentDispatcher,tv=n.ReactCurrentBatchConfig,y8,fh;y8=new Set;var Hf=Le,Yn=null,ba=null,Ca=null,Dy=!1,nv=!1,rv=0,_ce=0,Tce=25,Re=null,ls=null,td=-1,x8=!1;function zn(){{var r=Re;ls===null?ls=[r]:ls.push(r)}}function Je(){{var r=Re;ls!==null&&(td++,ls[td]!==r&&Rce(r))}}function ph(r){r!=null&&!rn(r)&&u("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",Re,typeof r)}function Rce(r){{var o=Bt(Yn);if(!y8.has(o)&&(y8.add(o),ls!==null)){for(var d="",p=30,v=0;v<=td;v++){for(var S=ls[v],T=v===td?r:S,N=v+1+". "+S;N.length<p;)N+=" ";N+=T+`
169
+ `,d+=N}u(`React has detected a change in the order of Hooks called by %s. This will lead to bugs and errors if not fixed. For more information, read the Rules of Hooks: https://reactjs.org/link/rules-of-hooks
170
+
171
+ Previous render Next render
172
+ ------------------------------------------------------
173
+ %s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
174
+ `,o,d)}}}function mo(){throw new Error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
175
+ 1. You might have mismatching versions of React and the renderer (such as React DOM)
176
+ 2. You might be breaking the Rules of Hooks
177
+ 3. You might have more than one copy of React in the same app
178
+ See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`)}function w8(r,o){if(x8)return!1;if(o===null)return u("%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.",Re),!1;r.length!==o.length&&u(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
179
+
180
+ Previous: %s
181
+ Incoming: %s`,Re,"["+o.join(", ")+"]","["+r.join(", ")+"]");for(var d=0;d<o.length&&d<r.length;d++)if(!Pe(r[d],o[d]))return!1;return!0}function hh(r,o,d,p,v,S){Hf=S,Yn=o,ls=r!==null?r._debugHookTypes:null,td=-1,x8=r!==null&&r.type!==o.type,o.memoizedState=null,o.updateQueue=null,o.lanes=Le,r!==null&&r.memoizedState!==null?it.current=IL:ls!==null?it.current=LL:it.current=OL;var T=d(p,v);if(nv){var N=0;do{if(nv=!1,rv=0,N>=Tce)throw new Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");N+=1,x8=!1,ba=null,Ca=null,o.updateQueue=null,td=-1,it.current=DL,T=d(p,v)}while(nv)}it.current=Gy,o._debugHookTypes=ls;var I=ba!==null&&ba.next!==null;if(Hf=Le,Yn=null,ba=null,Ca=null,Re=null,ls=null,td=-1,r!==null&&(r.flags&Br)!==(o.flags&Br)&&(r.mode&on)!==Rt&&u("Internal React error: Expected static flag was missing. Please notify the React team."),Dy=!1,I)throw new Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");return T}function mh(){var r=rv!==0;return rv=0,r}function pL(r,o,d){o.updateQueue=r.updateQueue,(o.mode&Mn)!==Rt?o.flags&=-50333701:o.flags&=-2053,r.lanes=hf(r.lanes,d)}function hL(){if(it.current=Gy,Dy){for(var r=Yn.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}Dy=!1}Hf=Le,Yn=null,ba=null,Ca=null,ls=null,td=-1,Re=null,TL=!1,nv=!1,rv=0}function Fl(){var r={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ca===null?Yn.memoizedState=Ca=r:Ca=Ca.next=r,Ca}function us(){var r;if(ba===null){var o=Yn.alternate;o!==null?r=o.memoizedState:r=null}else r=ba.next;var d;if(Ca===null?d=Yn.memoizedState:d=Ca.next,d!==null)Ca=d,d=Ca.next,ba=r;else{if(r===null)throw new Error("Rendered more hooks than during the previous render.");ba=r;var p={memoizedState:ba.memoizedState,baseState:ba.baseState,baseQueue:ba.baseQueue,queue:ba.queue,next:null};Ca===null?Yn.memoizedState=Ca=p:Ca=Ca.next=p}return Ca}function mL(){return{lastEffect:null,stores:null}}function b8(r,o){return typeof o=="function"?o(r):o}function C8(r,o,d){var p=Fl(),v;d!==void 0?v=d(o):v=o,p.memoizedState=p.baseState=v;var S={pending:null,interleaved:null,lanes:Le,dispatch:null,lastRenderedReducer:r,lastRenderedState:v};p.queue=S;var T=S.dispatch=Oce.bind(null,Yn,S);return[p.memoizedState,T]}function S8(r,o,d){var p=us(),v=p.queue;if(v===null)throw new Error("Should have a queue. This is likely a bug in React. Please file an issue.");v.lastRenderedReducer=r;var S=ba,T=S.baseQueue,N=v.pending;if(N!==null){if(T!==null){var I=T.next,B=N.next;T.next=B,N.next=I}S.baseQueue!==T&&u("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),S.baseQueue=T=N,v.pending=null}if(T!==null){var W=T.next,re=S.baseState,te=null,ce=null,pe=null,Ce=W;do{var rt=Ce.lane;if(Tu(Hf,rt)){if(pe!==null){var Ct={lane:Tn,action:Ce.action,hasEagerState:Ce.hasEagerState,eagerState:Ce.eagerState,next:null};pe=pe.next=Ct}if(Ce.hasEagerState)re=Ce.eagerState;else{var bn=Ce.action;re=r(re,bn)}}else{var Ot={lane:rt,action:Ce.action,hasEagerState:Ce.hasEagerState,eagerState:Ce.eagerState,next:null};pe===null?(ce=pe=Ot,te=re):pe=pe.next=Ot,Yn.lanes=Xt(Yn.lanes,rt),kv(rt)}Ce=Ce.next}while(Ce!==null&&Ce!==W);pe===null?te=re:pe.next=ce,Pe(re,p.memoizedState)||fv(),p.memoizedState=re,p.baseState=te,p.baseQueue=pe,v.lastRenderedState=re}var mn=v.interleaved;if(mn!==null){var se=mn;do{var Se=se.lane;Yn.lanes=Xt(Yn.lanes,Se),kv(Se),se=se.next}while(se!==mn)}else T===null&&(v.lanes=Le);var le=v.dispatch;return[p.memoizedState,le]}function k8(r,o,d){var p=us(),v=p.queue;if(v===null)throw new Error("Should have a queue. This is likely a bug in React. Please file an issue.");v.lastRenderedReducer=r;var S=v.dispatch,T=v.pending,N=p.memoizedState;if(T!==null){v.pending=null;var I=T.next,B=I;do{var W=B.action;N=r(N,W),B=B.next}while(B!==I);Pe(N,p.memoizedState)||fv(),p.memoizedState=N,p.baseQueue===null&&(p.baseState=N),v.lastRenderedState=N}return[N,S]}function m1e(r,o,d){}function g1e(r,o,d){}function E8(r,o,d){var p=Yn,v=Fl(),S,T=Va();if(T){if(d===void 0)throw new Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");S=d(),fh||S!==d()&&(u("The result of getServerSnapshot should be cached to avoid an infinite loop"),fh=!0)}else{if(S=o(),!fh){var N=o();Pe(S,N)||(u("The result of getSnapshot should be cached to avoid an infinite loop"),fh=!0)}var I=p3();if(I===null)throw new Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");O1(I,Hf)||gL(p,o,S)}v.memoizedState=S;var B={value:S,getSnapshot:o};return v.queue=B,Uy(yL.bind(null,p,B,r),[r]),p.flags|=no,av(xa|$a,vL.bind(null,p,B,S,o),void 0,null),S}function jy(r,o,d){var p=Yn,v=us(),S=o();if(!fh){var T=o();Pe(S,T)||(u("The result of getSnapshot should be cached to avoid an infinite loop"),fh=!0)}var N=v.memoizedState,I=!Pe(N,S);I&&(v.memoizedState=S,fv());var B=v.queue;if(iv(yL.bind(null,p,B,r),[r]),B.getSnapshot!==o||I||Ca!==null&&Ca.memoizedState.tag&xa){p.flags|=no,av(xa|$a,vL.bind(null,p,B,S,o),void 0,null);var W=p3();if(W===null)throw new Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");O1(W,Hf)||gL(p,o,S)}return S}function gL(r,o,d){r.flags|=Oc;var p={getSnapshot:o,value:d},v=Yn.updateQueue;if(v===null)v=mL(),Yn.updateQueue=v,v.stores=[p];else{var S=v.stores;S===null?v.stores=[p]:S.push(p)}}function vL(r,o,d,p){o.value=d,o.getSnapshot=p,xL(o)&&wL(r)}function yL(r,o,d){var p=function(){xL(o)&&wL(r)};return d(p)}function xL(r){var o=r.getSnapshot,d=r.value;try{var p=o();return!Pe(d,p)}catch(v){return!0}}function wL(r){var o=ii(r,Ft);o!==null&&_a(o,r,Ft,er)}function Py(r){var o=Fl();typeof r=="function"&&(r=r()),o.memoizedState=o.baseState=r;var d={pending:null,interleaved:null,lanes:Le,dispatch:null,lastRenderedReducer:b8,lastRenderedState:r};o.queue=d;var p=d.dispatch=Lce.bind(null,Yn,d);return[o.memoizedState,p]}function _8(r){return S8(b8)}function T8(r){return k8(b8)}function av(r,o,d,p){var v={tag:r,create:o,destroy:d,deps:p,next:null},S=Yn.updateQueue;if(S===null)S=mL(),Yn.updateQueue=S,S.lastEffect=v.next=v;else{var T=S.lastEffect;if(T===null)S.lastEffect=v.next=v;else{var N=T.next;T.next=v,v.next=N,S.lastEffect=v}}return v}function R8(r){var o=Fl();{var d={current:r};return o.memoizedState=d,d}}function Fy(r){var o=us();return o.memoizedState}function ov(r,o,d,p){var v=Fl(),S=p===void 0?null:p;Yn.flags|=r,v.memoizedState=av(xa|o,d,void 0,S)}function zy(r,o,d,p){var v=us(),S=p===void 0?null:p,T=void 0;if(ba!==null){var N=ba.memoizedState;if(T=N.destroy,S!==null){var I=N.deps;if(w8(S,I)){v.memoizedState=av(o,d,T,S);return}}}Yn.flags|=r,v.memoizedState=av(xa|o,d,T,S)}function Uy(r,o){return(Yn.mode&Mn)!==Rt?ov(Ji|no|o1,$a,r,o):ov(no|o1,$a,r,o)}function iv(r,o){return zy(no,$a,r,o)}function A8(r,o){return ov(yn,Pl,r,o)}function By(r,o){return zy(yn,Pl,r,o)}function N8(r,o){var d=yn;return d|=As,(Yn.mode&Mn)!==Rt&&(d|=xl),ov(d,wa,r,o)}function Hy(r,o){return zy(yn,wa,r,o)}function bL(r,o){if(typeof o=="function"){var d=o,p=r();return d(p),function(){d(null)}}else if(o!=null){var v=o;v.hasOwnProperty("current")||u("Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.","an object with keys {"+Object.keys(v).join(", ")+"}");var S=r();return v.current=S,function(){v.current=null}}}function M8(r,o,d){typeof o!="function"&&u("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",o!==null?typeof o:"null");var p=d!=null?d.concat([r]):null,v=yn;return v|=As,(Yn.mode&Mn)!==Rt&&(v|=xl),ov(v,wa,bL.bind(null,o,r),p)}function Vy(r,o,d){typeof o!="function"&&u("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",o!==null?typeof o:"null");var p=d!=null?d.concat([r]):null;return zy(yn,wa,bL.bind(null,o,r),p)}function Ace(r,o){}var $y=Ace;function O8(r,o){var d=Fl(),p=o===void 0?null:o;return d.memoizedState=[r,p],r}function Zy(r,o){var d=us(),p=o===void 0?null:o,v=d.memoizedState;if(v!==null&&p!==null){var S=v[1];if(w8(p,S))return v[0]}return d.memoizedState=[r,p],r}function L8(r,o){var d=Fl(),p=o===void 0?null:o,v=r();return d.memoizedState=[v,p],v}function Wy(r,o){var d=us(),p=o===void 0?null:o,v=d.memoizedState;if(v!==null&&p!==null){var S=v[1];if(w8(p,S))return v[0]}var T=r();return d.memoizedState=[T,p],T}function I8(r){var o=Fl();return o.memoizedState=r,r}function CL(r){var o=us(),d=ba,p=d.memoizedState;return kL(o,p,r)}function SL(r){var o=us();if(ba===null)return o.memoizedState=r,r;var d=ba.memoizedState;return kL(o,d,r)}function kL(r,o,d){var p=!lg(Hf);if(p){if(!Pe(d,o)){var v=dg();Yn.lanes=Xt(Yn.lanes,v),kv(v),r.baseState=!0}return o}else return r.baseState&&(r.baseState=!1,fv()),r.memoizedState=d,d}function Nce(r,o,d){var p=ri();$r(S2(p,es)),r(!0);var v=tv.transition;tv.transition={};var S=tv.transition;tv.transition._updatedFibers=new Set;try{r(!1),o()}finally{if($r(p),tv.transition=v,v===null&&S._updatedFibers){var T=S._updatedFibers.size;T>10&&l("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."),S._updatedFibers.clear()}}}function D8(){var r=Py(!1),o=r[0],d=r[1],p=Nce.bind(null,d),v=Fl();return v.memoizedState=p,[o,p]}function EL(){var r=_8(),o=r[0],d=us(),p=d.memoizedState;return[o,p]}function _L(){var r=T8(),o=r[0],d=us(),p=d.memoizedState;return[o,p]}var TL=!1;function Mce(){return TL}function j8(){var r=Fl(),o=p3(),d=o.identifierPrefix,p;if(Va()){var v=Gue();p=":"+d+"R"+v;var S=rv++;S>0&&(p+="H"+S.toString(32)),p+=":"}else{var T=_ce++;p=":"+d+"r"+T.toString(32)+":"}return r.memoizedState=p,p}function qy(){var r=us(),o=r.memoizedState;return o}function Oce(r,o,d){typeof arguments[3]=="function"&&u("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect().");var p=id(r),v={lane:p,action:d,hasEagerState:!1,eagerState:null,next:null};if(RL(r))AL(o,v);else{var S=rL(r,o,v,p);if(S!==null){var T=Lo();_a(S,r,p,T),NL(S,o,p)}}ML(r,p)}function Lce(r,o,d){typeof arguments[3]=="function"&&u("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect().");var p=id(r),v={lane:p,action:d,hasEagerState:!1,eagerState:null,next:null};if(RL(r))AL(o,v);else{var S=r.alternate;if(r.lanes===Le&&(S===null||S.lanes===Le)){var T=o.lastRenderedReducer;if(T!==null){var N;N=it.current,it.current=Hs;try{var I=o.lastRenderedState,B=T(I,d);if(v.hasEagerState=!0,v.eagerState=B,Pe(B,I)){vce(r,o,v,p);return}}catch(te){}finally{it.current=N}}}var W=rL(r,o,v,p);if(W!==null){var re=Lo();_a(W,r,p,re),NL(W,o,p)}}ML(r,p)}function RL(r){var o=r.alternate;return r===Yn||o!==null&&o===Yn}function AL(r,o){nv=Dy=!0;var d=r.pending;d===null?o.next=o:(o.next=d.next,d.next=o),r.pending=o}function NL(r,o,d){if(cg(d)){var p=o.lanes;p=fg(p,r.pendingLanes);var v=Xt(p,d);o.lanes=v,I1(r,v)}}function ML(r,o,d){rf(r,o)}var Gy={readContext:ua,useCallback:mo,useContext:mo,useEffect:mo,useImperativeHandle:mo,useInsertionEffect:mo,useLayoutEffect:mo,useMemo:mo,useReducer:mo,useRef:mo,useState:mo,useDebugValue:mo,useDeferredValue:mo,useTransition:mo,useMutableSource:mo,useSyncExternalStore:mo,useId:mo,unstable_isNewReconciler:K},OL=null,LL=null,IL=null,DL=null,zl=null,Hs=null,Yy=null;{var P8=function(){u("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().")},Vt=function(){u("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://reactjs.org/link/rules-of-hooks")};OL={readContext:function(r){return ua(r)},useCallback:function(r,o){return Re="useCallback",zn(),ph(o),O8(r,o)},useContext:function(r){return Re="useContext",zn(),ua(r)},useEffect:function(r,o){return Re="useEffect",zn(),ph(o),Uy(r,o)},useImperativeHandle:function(r,o,d){return Re="useImperativeHandle",zn(),ph(d),M8(r,o,d)},useInsertionEffect:function(r,o){return Re="useInsertionEffect",zn(),ph(o),A8(r,o)},useLayoutEffect:function(r,o){return Re="useLayoutEffect",zn(),ph(o),N8(r,o)},useMemo:function(r,o){Re="useMemo",zn(),ph(o);var d=it.current;it.current=zl;try{return L8(r,o)}finally{it.current=d}},useReducer:function(r,o,d){Re="useReducer",zn();var p=it.current;it.current=zl;try{return C8(r,o,d)}finally{it.current=p}},useRef:function(r){return Re="useRef",zn(),R8(r)},useState:function(r){Re="useState",zn();var o=it.current;it.current=zl;try{return Py(r)}finally{it.current=o}},useDebugValue:function(r,o){return Re="useDebugValue",zn(),void 0},useDeferredValue:function(r){return Re="useDeferredValue",zn(),I8(r)},useTransition:function(){return Re="useTransition",zn(),D8()},useMutableSource:function(r,o,d){return Re="useMutableSource",zn(),void 0},useSyncExternalStore:function(r,o,d){return Re="useSyncExternalStore",zn(),E8(r,o,d)},useId:function(){return Re="useId",zn(),j8()},unstable_isNewReconciler:K},LL={readContext:function(r){return ua(r)},useCallback:function(r,o){return Re="useCallback",Je(),O8(r,o)},useContext:function(r){return Re="useContext",Je(),ua(r)},useEffect:function(r,o){return Re="useEffect",Je(),Uy(r,o)},useImperativeHandle:function(r,o,d){return Re="useImperativeHandle",Je(),M8(r,o,d)},useInsertionEffect:function(r,o){return Re="useInsertionEffect",Je(),A8(r,o)},useLayoutEffect:function(r,o){return Re="useLayoutEffect",Je(),N8(r,o)},useMemo:function(r,o){Re="useMemo",Je();var d=it.current;it.current=zl;try{return L8(r,o)}finally{it.current=d}},useReducer:function(r,o,d){Re="useReducer",Je();var p=it.current;it.current=zl;try{return C8(r,o,d)}finally{it.current=p}},useRef:function(r){return Re="useRef",Je(),R8(r)},useState:function(r){Re="useState",Je();var o=it.current;it.current=zl;try{return Py(r)}finally{it.current=o}},useDebugValue:function(r,o){return Re="useDebugValue",Je(),void 0},useDeferredValue:function(r){return Re="useDeferredValue",Je(),I8(r)},useTransition:function(){return Re="useTransition",Je(),D8()},useMutableSource:function(r,o,d){return Re="useMutableSource",Je(),void 0},useSyncExternalStore:function(r,o,d){return Re="useSyncExternalStore",Je(),E8(r,o,d)},useId:function(){return Re="useId",Je(),j8()},unstable_isNewReconciler:K},IL={readContext:function(r){return ua(r)},useCallback:function(r,o){return Re="useCallback",Je(),Zy(r,o)},useContext:function(r){return Re="useContext",Je(),ua(r)},useEffect:function(r,o){return Re="useEffect",Je(),iv(r,o)},useImperativeHandle:function(r,o,d){return Re="useImperativeHandle",Je(),Vy(r,o,d)},useInsertionEffect:function(r,o){return Re="useInsertionEffect",Je(),By(r,o)},useLayoutEffect:function(r,o){return Re="useLayoutEffect",Je(),Hy(r,o)},useMemo:function(r,o){Re="useMemo",Je();var d=it.current;it.current=Hs;try{return Wy(r,o)}finally{it.current=d}},useReducer:function(r,o,d){Re="useReducer",Je();var p=it.current;it.current=Hs;try{return S8(r,o,d)}finally{it.current=p}},useRef:function(r){return Re="useRef",Je(),Fy()},useState:function(r){Re="useState",Je();var o=it.current;it.current=Hs;try{return _8(r)}finally{it.current=o}},useDebugValue:function(r,o){return Re="useDebugValue",Je(),$y()},useDeferredValue:function(r){return Re="useDeferredValue",Je(),CL(r)},useTransition:function(){return Re="useTransition",Je(),EL()},useMutableSource:function(r,o,d){return Re="useMutableSource",Je(),void 0},useSyncExternalStore:function(r,o,d){return Re="useSyncExternalStore",Je(),jy(r,o)},useId:function(){return Re="useId",Je(),qy()},unstable_isNewReconciler:K},DL={readContext:function(r){return ua(r)},useCallback:function(r,o){return Re="useCallback",Je(),Zy(r,o)},useContext:function(r){return Re="useContext",Je(),ua(r)},useEffect:function(r,o){return Re="useEffect",Je(),iv(r,o)},useImperativeHandle:function(r,o,d){return Re="useImperativeHandle",Je(),Vy(r,o,d)},useInsertionEffect:function(r,o){return Re="useInsertionEffect",Je(),By(r,o)},useLayoutEffect:function(r,o){return Re="useLayoutEffect",Je(),Hy(r,o)},useMemo:function(r,o){Re="useMemo",Je();var d=it.current;it.current=Yy;try{return Wy(r,o)}finally{it.current=d}},useReducer:function(r,o,d){Re="useReducer",Je();var p=it.current;it.current=Yy;try{return k8(r,o,d)}finally{it.current=p}},useRef:function(r){return Re="useRef",Je(),Fy()},useState:function(r){Re="useState",Je();var o=it.current;it.current=Yy;try{return T8(r)}finally{it.current=o}},useDebugValue:function(r,o){return Re="useDebugValue",Je(),$y()},useDeferredValue:function(r){return Re="useDeferredValue",Je(),SL(r)},useTransition:function(){return Re="useTransition",Je(),_L()},useMutableSource:function(r,o,d){return Re="useMutableSource",Je(),void 0},useSyncExternalStore:function(r,o,d){return Re="useSyncExternalStore",Je(),jy(r,o)},useId:function(){return Re="useId",Je(),qy()},unstable_isNewReconciler:K},zl={readContext:function(r){return P8(),ua(r)},useCallback:function(r,o){return Re="useCallback",Vt(),zn(),O8(r,o)},useContext:function(r){return Re="useContext",Vt(),zn(),ua(r)},useEffect:function(r,o){return Re="useEffect",Vt(),zn(),Uy(r,o)},useImperativeHandle:function(r,o,d){return Re="useImperativeHandle",Vt(),zn(),M8(r,o,d)},useInsertionEffect:function(r,o){return Re="useInsertionEffect",Vt(),zn(),A8(r,o)},useLayoutEffect:function(r,o){return Re="useLayoutEffect",Vt(),zn(),N8(r,o)},useMemo:function(r,o){Re="useMemo",Vt(),zn();var d=it.current;it.current=zl;try{return L8(r,o)}finally{it.current=d}},useReducer:function(r,o,d){Re="useReducer",Vt(),zn();var p=it.current;it.current=zl;try{return C8(r,o,d)}finally{it.current=p}},useRef:function(r){return Re="useRef",Vt(),zn(),R8(r)},useState:function(r){Re="useState",Vt(),zn();var o=it.current;it.current=zl;try{return Py(r)}finally{it.current=o}},useDebugValue:function(r,o){return Re="useDebugValue",Vt(),zn(),void 0},useDeferredValue:function(r){return Re="useDeferredValue",Vt(),zn(),I8(r)},useTransition:function(){return Re="useTransition",Vt(),zn(),D8()},useMutableSource:function(r,o,d){return Re="useMutableSource",Vt(),zn(),void 0},useSyncExternalStore:function(r,o,d){return Re="useSyncExternalStore",Vt(),zn(),E8(r,o,d)},useId:function(){return Re="useId",Vt(),zn(),j8()},unstable_isNewReconciler:K},Hs={readContext:function(r){return P8(),ua(r)},useCallback:function(r,o){return Re="useCallback",Vt(),Je(),Zy(r,o)},useContext:function(r){return Re="useContext",Vt(),Je(),ua(r)},useEffect:function(r,o){return Re="useEffect",Vt(),Je(),iv(r,o)},useImperativeHandle:function(r,o,d){return Re="useImperativeHandle",Vt(),Je(),Vy(r,o,d)},useInsertionEffect:function(r,o){return Re="useInsertionEffect",Vt(),Je(),By(r,o)},useLayoutEffect:function(r,o){return Re="useLayoutEffect",Vt(),Je(),Hy(r,o)},useMemo:function(r,o){Re="useMemo",Vt(),Je();var d=it.current;it.current=Hs;try{return Wy(r,o)}finally{it.current=d}},useReducer:function(r,o,d){Re="useReducer",Vt(),Je();var p=it.current;it.current=Hs;try{return S8(r,o,d)}finally{it.current=p}},useRef:function(r){return Re="useRef",Vt(),Je(),Fy()},useState:function(r){Re="useState",Vt(),Je();var o=it.current;it.current=Hs;try{return _8(r)}finally{it.current=o}},useDebugValue:function(r,o){return Re="useDebugValue",Vt(),Je(),$y()},useDeferredValue:function(r){return Re="useDeferredValue",Vt(),Je(),CL(r)},useTransition:function(){return Re="useTransition",Vt(),Je(),EL()},useMutableSource:function(r,o,d){return Re="useMutableSource",Vt(),Je(),void 0},useSyncExternalStore:function(r,o,d){return Re="useSyncExternalStore",Vt(),Je(),jy(r,o)},useId:function(){return Re="useId",Vt(),Je(),qy()},unstable_isNewReconciler:K},Yy={readContext:function(r){return P8(),ua(r)},useCallback:function(r,o){return Re="useCallback",Vt(),Je(),Zy(r,o)},useContext:function(r){return Re="useContext",Vt(),Je(),ua(r)},useEffect:function(r,o){return Re="useEffect",Vt(),Je(),iv(r,o)},useImperativeHandle:function(r,o,d){return Re="useImperativeHandle",Vt(),Je(),Vy(r,o,d)},useInsertionEffect:function(r,o){return Re="useInsertionEffect",Vt(),Je(),By(r,o)},useLayoutEffect:function(r,o){return Re="useLayoutEffect",Vt(),Je(),Hy(r,o)},useMemo:function(r,o){Re="useMemo",Vt(),Je();var d=it.current;it.current=Hs;try{return Wy(r,o)}finally{it.current=d}},useReducer:function(r,o,d){Re="useReducer",Vt(),Je();var p=it.current;it.current=Hs;try{return k8(r,o,d)}finally{it.current=p}},useRef:function(r){return Re="useRef",Vt(),Je(),Fy()},useState:function(r){Re="useState",Vt(),Je();var o=it.current;it.current=Hs;try{return T8(r)}finally{it.current=o}},useDebugValue:function(r,o){return Re="useDebugValue",Vt(),Je(),$y()},useDeferredValue:function(r){return Re="useDeferredValue",Vt(),Je(),SL(r)},useTransition:function(){return Re="useTransition",Vt(),Je(),_L()},useMutableSource:function(r,o,d){return Re="useMutableSource",Vt(),Je(),void 0},useSyncExternalStore:function(r,o,d){return Re="useSyncExternalStore",Vt(),Je(),jy(r,o)},useId:function(){return Re="useId",Vt(),Je(),qy()},unstable_isNewReconciler:K}}var nd=t.unstable_now,jL=0,Jy=-1,sv=-1,Xy=-1,F8=!1,Ky=!1;function PL(){return F8}function Ice(){Ky=!0}function Dce(){F8=!1,Ky=!1}function jce(){F8=Ky,Ky=!1}function FL(){return jL}function zL(){jL=nd()}function z8(r){sv=nd(),r.actualStartTime<0&&(r.actualStartTime=nd())}function UL(r){sv=-1}function Qy(r,o){if(sv>=0){var d=nd()-sv;r.actualDuration+=d,o&&(r.selfBaseDuration=d),sv=-1}}function Ul(r){if(Jy>=0){var o=nd()-Jy;Jy=-1;for(var d=r.return;d!==null;){switch(d.tag){case y:var p=d.stateNode;p.effectDuration+=o;return;case D:var v=d.stateNode;v.effectDuration+=o;return}d=d.return}}}function U8(r){if(Xy>=0){var o=nd()-Xy;Xy=-1;for(var d=r.return;d!==null;){switch(d.tag){case y:var p=d.stateNode;p!==null&&(p.passiveEffectDuration+=o);return;case D:var v=d.stateNode;v!==null&&(v.passiveEffectDuration+=o);return}d=d.return}}}function Bl(){Jy=nd()}function B8(){Xy=nd()}function H8(r){for(var o=r.child;o;)r.actualDuration+=o.actualDuration,o=o.sibling}function Vs(r,o){if(r&&r.defaultProps){var d=en({},o),p=r.defaultProps;for(var v in p)d[v]===void 0&&(d[v]=p[v]);return d}return o}var V8={},$8,Z8,W8,q8,G8,BL,e3,Y8,J8,X8,lv;{$8=new Set,Z8=new Set,W8=new Set,q8=new Set,Y8=new Set,G8=new Set,J8=new Set,X8=new Set,lv=new Set;var HL=new Set;e3=function(r,o){if(!(r===null||typeof r=="function")){var d=o+"_"+r;HL.has(d)||(HL.add(d),u("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",o,r))}},BL=function(r,o){if(o===void 0){var d=Cn(r)||"Component";G8.has(d)||(G8.add(d),u("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",d))}},Object.defineProperty(V8,"_processChildContext",{enumerable:!1,value:function(){throw new Error("_processChildContext is not available in React 16+. This likely means you have multiple copies of React and are attempting to nest a React 15 tree inside a React 16 tree using unstable_renderSubtreeIntoContainer, which isn't supported. Try to make sure you have only one copy of React (and ideally, switch to ReactDOM.createPortal).")}}),Object.freeze(V8)}function K8(r,o,d,p){var v=r.memoizedState,S=d(p,v);{if(r.mode&Gn){br(!0);try{S=d(p,v)}finally{br(!1)}}BL(o,S)}var T=S==null?v:en({},v,S);if(r.memoizedState=T,r.lanes===Le){var N=r.updateQueue;N.baseState=T}}var Q8={isMounted:s2,enqueueSetState:function(r,o,d){var p=Mc(r),v=Lo(),S=id(p),T=zu(v,S);T.payload=o,d!=null&&(e3(d,"setState"),T.callback=d);var N=Kc(p,T,S);N!==null&&(_a(N,p,S,v),Ay(N,p,S)),rf(p,S)},enqueueReplaceState:function(r,o,d){var p=Mc(r),v=Lo(),S=id(p),T=zu(v,S);T.tag=oL,T.payload=o,d!=null&&(e3(d,"replaceState"),T.callback=d);var N=Kc(p,T,S);N!==null&&(_a(N,p,S,v),Ay(N,p,S)),rf(p,S)},enqueueForceUpdate:function(r,o){var d=Mc(r),p=Lo(),v=id(d),S=zu(p,v);S.tag=_y,o!=null&&(e3(o,"forceUpdate"),S.callback=o);var T=Kc(d,S,v);T!==null&&(_a(T,d,v,p),Ay(T,d,v)),f1(d,v)}};function VL(r,o,d,p,v,S,T){var N=r.stateNode;if(typeof N.shouldComponentUpdate=="function"){var I=N.shouldComponentUpdate(p,S,T);{if(r.mode&Gn){br(!0);try{I=N.shouldComponentUpdate(p,S,T)}finally{br(!1)}}I===void 0&&u("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",Cn(o)||"Component")}return I}return o.prototype&&o.prototype.isPureReactComponent?!pt(d,p)||!pt(v,S):!0}function Pce(r,o,d){var p=r.stateNode;{var v=Cn(o)||"Component",S=p.render;S||(o.prototype&&typeof o.prototype.render=="function"?u("%s(...): No `render` method found on the returned component instance: did you accidentally return an object from the constructor?",v):u("%s(...): No `render` method found on the returned component instance: you may have forgotten to define `render`.",v)),p.getInitialState&&!p.getInitialState.isReactClassApproved&&!p.state&&u("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",v),p.getDefaultProps&&!p.getDefaultProps.isReactClassApproved&&u("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",v),p.propTypes&&u("propTypes was defined as an instance property on %s. Use a static property to define propTypes instead.",v),p.contextType&&u("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",v),o.childContextTypes&&!lv.has(o)&&(r.mode&Gn)===Rt&&(lv.add(o),u(`%s uses the legacy childContextTypes API which is no longer supported and will be removed in the next major release. Use React.createContext() instead
182
+
183
+ .Learn more about this warning here: https://reactjs.org/link/legacy-context`,v)),o.contextTypes&&!lv.has(o)&&(r.mode&Gn)===Rt&&(lv.add(o),u(`%s uses the legacy contextTypes API which is no longer supported and will be removed in the next major release. Use React.createContext() with static contextType instead.
184
+
185
+ Learn more about this warning here: https://reactjs.org/link/legacy-context`,v)),p.contextTypes&&u("contextTypes was defined as an instance property on %s. Use a static property to define contextTypes instead.",v),o.contextType&&o.contextTypes&&!J8.has(o)&&(J8.add(o),u("%s declares both contextTypes and contextType static properties. The legacy contextTypes property will be ignored.",v)),typeof p.componentShouldUpdate=="function"&&u("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",v),o.prototype&&o.prototype.isPureReactComponent&&typeof p.shouldComponentUpdate!="undefined"&&u("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",Cn(o)||"A pure component"),typeof p.componentDidUnmount=="function"&&u("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",v),typeof p.componentDidReceiveProps=="function"&&u("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().",v),typeof p.componentWillRecieveProps=="function"&&u("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",v),typeof p.UNSAFE_componentWillRecieveProps=="function"&&u("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",v);var T=p.props!==d;p.props!==void 0&&T&&u("%s(...): When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",v,v),p.defaultProps&&u("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",v,v),typeof p.getSnapshotBeforeUpdate=="function"&&typeof p.componentDidUpdate!="function"&&!W8.has(o)&&(W8.add(o),u("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",Cn(o))),typeof p.getDerivedStateFromProps=="function"&&u("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",v),typeof p.getDerivedStateFromError=="function"&&u("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",v),typeof o.getSnapshotBeforeUpdate=="function"&&u("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",v);var N=p.state;N&&(typeof N!="object"||rn(N))&&u("%s.state: must be set to an object or null",v),typeof p.getChildContext=="function"&&typeof o.childContextTypes!="object"&&u("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",v)}}function $L(r,o){o.updater=Q8,r.stateNode=o,pu(o,r),o._reactInternalInstance=V8}function ZL(r,o,d){var p=!1,v=Oi,S=Oi,T=o.contextType;if("contextType"in o){var N=T===null||T!==void 0&&T.$$typeof===J&&T._context===void 0;if(!N&&!X8.has(o)){X8.add(o);var I="";T===void 0?I=" However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.":typeof T!="object"?I=" However, it is set to a "+typeof T+".":T.$$typeof===tr?I=" Did you accidentally pass the Context.Provider instead?":T._context!==void 0?I=" Did you accidentally pass the Context.Consumer instead?":I=" However, it is set to an object with keys {"+Object.keys(T).join(", ")+"}.",u("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",Cn(o)||"Component",I)}}if(typeof T=="object"&&T!==null)S=ua(T);else{v=th(r,o,!0);var B=o.contextTypes;p=B!=null,S=p?nh(r,v):Oi}var W=new o(d,S);if(r.mode&Gn){br(!0);try{W=new o(d,S)}finally{br(!1)}}var re=r.memoizedState=W.state!==null&&W.state!==void 0?W.state:null;$L(r,W);{if(typeof o.getDerivedStateFromProps=="function"&&re===null){var te=Cn(o)||"Component";Z8.has(te)||(Z8.add(te),u("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.",te,W.state===null?"null":"undefined",te))}if(typeof o.getDerivedStateFromProps=="function"||typeof W.getSnapshotBeforeUpdate=="function"){var ce=null,pe=null,Ce=null;if(typeof W.componentWillMount=="function"&&W.componentWillMount.__suppressDeprecationWarning!==!0?ce="componentWillMount":typeof W.UNSAFE_componentWillMount=="function"&&(ce="UNSAFE_componentWillMount"),typeof W.componentWillReceiveProps=="function"&&W.componentWillReceiveProps.__suppressDeprecationWarning!==!0?pe="componentWillReceiveProps":typeof W.UNSAFE_componentWillReceiveProps=="function"&&(pe="UNSAFE_componentWillReceiveProps"),typeof W.componentWillUpdate=="function"&&W.componentWillUpdate.__suppressDeprecationWarning!==!0?Ce="componentWillUpdate":typeof W.UNSAFE_componentWillUpdate=="function"&&(Ce="UNSAFE_componentWillUpdate"),ce!==null||pe!==null||Ce!==null){var rt=Cn(o)||"Component",Ot=typeof o.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";q8.has(rt)||(q8.add(rt),u(`Unsafe legacy lifecycles will not be called for components using new component APIs.
186
+
187
+ %s uses %s but also contains the following legacy lifecycles:%s%s%s
188
+
189
+ The above lifecycles should be removed. Learn more about this warning here:
190
+ https://reactjs.org/link/unsafe-component-lifecycles`,rt,Ot,ce!==null?`
191
+ `+ce:"",pe!==null?`
192
+ `+pe:"",Ce!==null?`
193
+ `+Ce:""))}}}return p&&IO(r,v,S),W}function Fce(r,o){var d=o.state;typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),d!==o.state&&(u("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",Bt(r)||"Component"),Q8.enqueueReplaceState(o,o.state,null))}function WL(r,o,d,p){var v=o.state;if(typeof o.componentWillReceiveProps=="function"&&o.componentWillReceiveProps(d,p),typeof o.UNSAFE_componentWillReceiveProps=="function"&&o.UNSAFE_componentWillReceiveProps(d,p),o.state!==v){{var S=Bt(r)||"Component";$8.has(S)||($8.add(S),u("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",S))}Q8.enqueueReplaceState(o,o.state,null)}}function ex(r,o,d,p){Pce(r,o,d);var v=r.stateNode;v.props=d,v.state=r.memoizedState,v.refs={},u8(r);var S=o.contextType;if(typeof S=="object"&&S!==null)v.context=ua(S);else{var T=th(r,o,!0);v.context=nh(r,T)}{if(v.state===d){var N=Cn(o)||"Component";Y8.has(N)||(Y8.add(N),u("%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.",N))}r.mode&Gn&&Us.recordLegacyContextWarning(r,v),Us.recordUnsafeLifecycleWarnings(r,v)}v.state=r.memoizedState;var I=o.getDerivedStateFromProps;if(typeof I=="function"&&(K8(r,o,I,d),v.state=r.memoizedState),typeof o.getDerivedStateFromProps!="function"&&typeof v.getSnapshotBeforeUpdate!="function"&&(typeof v.UNSAFE_componentWillMount=="function"||typeof v.componentWillMount=="function")&&(Fce(r,v),Ny(r,d,v,p),v.state=r.memoizedState),typeof v.componentDidMount=="function"){var B=yn;B|=As,(r.mode&Mn)!==Rt&&(B|=xl),r.flags|=B}}function zce(r,o,d,p){var v=r.stateNode,S=r.memoizedProps;v.props=S;var T=v.context,N=o.contextType,I=Oi;if(typeof N=="object"&&N!==null)I=ua(N);else{var B=th(r,o,!0);I=nh(r,B)}var W=o.getDerivedStateFromProps,re=typeof W=="function"||typeof v.getSnapshotBeforeUpdate=="function";!re&&(typeof v.UNSAFE_componentWillReceiveProps=="function"||typeof v.componentWillReceiveProps=="function")&&(S!==d||T!==I)&&WL(r,v,d,I),sL();var te=r.memoizedState,ce=v.state=te;if(Ny(r,d,v,p),ce=r.memoizedState,S===d&&te===ce&&!dy()&&!My()){if(typeof v.componentDidMount=="function"){var pe=yn;pe|=As,(r.mode&Mn)!==Rt&&(pe|=xl),r.flags|=pe}return!1}typeof W=="function"&&(K8(r,o,W,d),ce=r.memoizedState);var Ce=My()||VL(r,o,S,d,te,ce,I);if(Ce){if(!re&&(typeof v.UNSAFE_componentWillMount=="function"||typeof v.componentWillMount=="function")&&(typeof v.componentWillMount=="function"&&v.componentWillMount(),typeof v.UNSAFE_componentWillMount=="function"&&v.UNSAFE_componentWillMount()),typeof v.componentDidMount=="function"){var rt=yn;rt|=As,(r.mode&Mn)!==Rt&&(rt|=xl),r.flags|=rt}}else{if(typeof v.componentDidMount=="function"){var Ot=yn;Ot|=As,(r.mode&Mn)!==Rt&&(Ot|=xl),r.flags|=Ot}r.memoizedProps=d,r.memoizedState=ce}return v.props=d,v.state=ce,v.context=I,Ce}function Uce(r,o,d,p,v){var S=o.stateNode;iL(r,o);var T=o.memoizedProps,N=o.type===o.elementType?T:Vs(o.type,T);S.props=N;var I=o.pendingProps,B=S.context,W=d.contextType,re=Oi;if(typeof W=="object"&&W!==null)re=ua(W);else{var te=th(o,d,!0);re=nh(o,te)}var ce=d.getDerivedStateFromProps,pe=typeof ce=="function"||typeof S.getSnapshotBeforeUpdate=="function";!pe&&(typeof S.UNSAFE_componentWillReceiveProps=="function"||typeof S.componentWillReceiveProps=="function")&&(T!==I||B!==re)&&WL(o,S,p,re),sL();var Ce=o.memoizedState,rt=S.state=Ce;if(Ny(o,p,S,v),rt=o.memoizedState,T===I&&Ce===rt&&!dy()&&!My()&&!ye)return typeof S.componentDidUpdate=="function"&&(T!==r.memoizedProps||Ce!==r.memoizedState)&&(o.flags|=yn),typeof S.getSnapshotBeforeUpdate=="function"&&(T!==r.memoizedProps||Ce!==r.memoizedState)&&(o.flags|=Qr),!1;typeof ce=="function"&&(K8(o,d,ce,p),rt=o.memoizedState);var Ot=My()||VL(o,d,N,p,Ce,rt,re)||ye;return Ot?(!pe&&(typeof S.UNSAFE_componentWillUpdate=="function"||typeof S.componentWillUpdate=="function")&&(typeof S.componentWillUpdate=="function"&&S.componentWillUpdate(p,rt,re),typeof S.UNSAFE_componentWillUpdate=="function"&&S.UNSAFE_componentWillUpdate(p,rt,re)),typeof S.componentDidUpdate=="function"&&(o.flags|=yn),typeof S.getSnapshotBeforeUpdate=="function"&&(o.flags|=Qr)):(typeof S.componentDidUpdate=="function"&&(T!==r.memoizedProps||Ce!==r.memoizedState)&&(o.flags|=yn),typeof S.getSnapshotBeforeUpdate=="function"&&(T!==r.memoizedProps||Ce!==r.memoizedState)&&(o.flags|=Qr),o.memoizedProps=p,o.memoizedState=rt),S.props=p,S.state=rt,S.context=re,Ot}function Vf(r,o){return{value:r,source:o,stack:Ss(o),digest:null}}function tx(r,o,d){return{value:r,source:null,stack:d!=null?d:null,digest:o!=null?o:null}}function Bce(r,o){return!0}function nx(r,o){try{var d=Bce(r,o);if(d===!1)return;var p=o.value,v=o.source,S=o.stack,T=S!==null?S:"";if(p!=null&&p._suppressLogging){if(r.tag===g)return;console.error(p)}var N=v?Bt(v):null,I=N?"The above error occurred in the <"+N+"> component:":"The above error occurred in one of your React components:",B;if(r.tag===y)B=`Consider adding an error boundary to your tree to customize error handling behavior.
194
+ Visit https://reactjs.org/link/error-boundaries to learn more about error boundaries.`;else{var W=Bt(r)||"Anonymous";B="React will try to recreate this component tree from scratch "+("using the error boundary you provided, "+W+".")}var re=I+`
195
+ `+T+`
196
+
197
+ `+(""+B);console.error(re)}catch(te){setTimeout(function(){throw te})}}var Hce=typeof WeakMap=="function"?WeakMap:Map;function qL(r,o,d){var p=zu(er,d);p.tag=s8,p.payload={element:null};var v=o.value;return p.callback=function(){Ife(v),nx(r,o)},p}function rx(r,o,d){var p=zu(er,d);p.tag=s8;var v=r.type.getDerivedStateFromError;if(typeof v=="function"){var S=o.value;p.payload=function(){return v(S)},p.callback=function(){aD(r),nx(r,o)}}var T=r.stateNode;return T!==null&&typeof T.componentDidCatch=="function"&&(p.callback=function(){aD(r),nx(r,o),typeof v!="function"&&Ofe(this);var I=o.value,B=o.stack;this.componentDidCatch(I,{componentStack:B!==null?B:""}),typeof v!="function"&&(lo(r.lanes,Ft)||u("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.",Bt(r)||"Unknown"))}),p}function GL(r,o,d){var p=r.pingCache,v;if(p===null?(p=r.pingCache=new Hce,v=new Set,p.set(o,v)):(v=p.get(o),v===void 0&&(v=new Set,p.set(o,v))),!v.has(d)){v.add(d);var S=Dfe.bind(null,r,o,d);io&&Ev(r,d),o.then(S,S)}}function Vce(r,o,d,p){var v=r.updateQueue;if(v===null){var S=new Set;S.add(d),r.updateQueue=S}else v.add(d)}function $ce(r,o){var d=r.tag;if((r.mode&on)===Rt&&(d===h||d===F||d===Z)){var p=r.alternate;p?(r.updateQueue=p.updateQueue,r.memoizedState=p.memoizedState,r.lanes=p.lanes):(r.updateQueue=null,r.memoizedState=null)}}function YL(r){var o=r;do{if(o.tag===V&&kce(o))return o;o=o.return}while(o!==null);return null}function JL(r,o,d,p,v){if((r.mode&on)===Rt){if(r===o)r.flags|=oa;else{if(r.flags|=kt,d.flags|=a1,d.flags&=-52805,d.tag===g){var S=d.alternate;if(S===null)d.tag=ae;else{var T=zu(er,Ft);T.tag=_y,Kc(d,T,Ft)}}d.lanes=Xt(d.lanes,Ft)}return r}return r.flags|=oa,r.lanes=v,r}function Zce(r,o,d,p,v){if(d.flags|=Xd,io&&Ev(r,v),p!==null&&typeof p=="object"&&typeof p.then=="function"){var S=p;$ce(d),Va()&&d.mode&on&&BO();var T=YL(o);if(T!==null){T.flags&=~Aa,JL(T,o,d,r,v),T.mode&on&&GL(r,S,v),Vce(T,r,S);return}else{if(!m2(v)){GL(r,S,v),jx();return}var N=new Error("A component suspended while responding to synchronous input. This will cause the UI to be replaced with a loading indicator. To fix, updates that suspend should be wrapped with startTransition.");p=N}}else if(Va()&&d.mode&on){BO();var I=YL(o);if(I!==null){(I.flags&oa)===Tt&&(I.flags|=Aa),JL(I,o,d,r,v),Y6(Vf(p,d));return}}p=Vf(p,d),kfe(p);var B=o;do{switch(B.tag){case y:{var W=p;B.flags|=oa;var re=pf(v);B.lanes=Xt(B.lanes,re);var te=qL(B,W,re);c8(B,te);return}case g:var ce=p,pe=B.type,Ce=B.stateNode;if((B.flags&kt)===Tt&&(typeof pe.getDerivedStateFromError=="function"||Ce!==null&&typeof Ce.componentDidCatch=="function"&&!YI(Ce))){B.flags|=oa;var rt=pf(v);B.lanes=Xt(B.lanes,rt);var Ot=rx(B,ce,rt);c8(B,Ot);return}break}B=B.return}while(B!==null)}function Wce(){return null}var uv=n.ReactCurrentOwner,$s=!1,ax,cv,ox,ix,sx,$f,lx,t3,dv;ax={},cv={},ox={},ix={},sx={},$f=!1,lx={},t3={},dv={};function Mo(r,o,d,p){r===null?o.child=QO(o,null,d,p):o.child=ih(o,r.child,d,p)}function qce(r,o,d,p){o.child=ih(o,r.child,null,p),o.child=ih(o,null,d,p)}function XL(r,o,d,p,v){if(o.type!==o.elementType){var S=d.propTypes;S&&Fs(S,p,"prop",Cn(d))}var T=d.render,N=o.ref,I,B;lh(o,v),To(o);{if(uv.current=o,Kr(!0),I=hh(r,o,T,p,N,v),B=mh(),o.mode&Gn){br(!0);try{I=hh(r,o,T,p,N,v),B=mh()}finally{br(!1)}}Kr(!1)}return Ro(),r!==null&&!$s?(pL(r,o,v),Uu(r,o,v)):(Va()&&B&&V6(o),o.flags|=Ti,Mo(r,o,I,v),o.child)}function KL(r,o,d,p,v){if(r===null){var S=d.type;if(Kfe(S)&&d.compare===null&&d.defaultProps===void 0){var T=S;return T=Sh(S),o.tag=Z,o.type=T,dx(o,S),QL(r,o,T,p,v)}{var N=S.propTypes;if(N&&Fs(N,p,"prop",Cn(S)),d.defaultProps!==void 0){var I=Cn(S)||"Unknown";dv[I]||(u("%s: Support for defaultProps will be removed from memo components in a future major release. Use JavaScript default parameters instead.",I),dv[I]=!0)}}var B=qx(d.type,null,p,o,o.mode,v);return B.ref=o.ref,B.return=o,o.child=B,B}{var W=d.type,re=W.propTypes;re&&Fs(re,p,"prop",Cn(W))}var te=r.child,ce=vx(r,v);if(!ce){var pe=te.memoizedProps,Ce=d.compare;if(Ce=Ce!==null?Ce:pt,Ce(pe,p)&&r.ref===o.ref)return Uu(r,o,v)}o.flags|=Ti;var rt=Yf(te,p);return rt.ref=o.ref,rt.return=o,o.child=rt,rt}function QL(r,o,d,p,v){if(o.type!==o.elementType){var S=o.elementType;if(S.$$typeof===Ht){var T=S,N=T._payload,I=T._init;try{S=I(N)}catch(re){S=null}var B=S&&S.propTypes;B&&Fs(B,p,"prop",Cn(S))}}if(r!==null){var W=r.memoizedProps;if(pt(W,p)&&r.ref===o.ref&&o.type===r.type)if($s=!1,o.pendingProps=p=W,vx(r,v))(r.flags&a1)!==Tt&&($s=!0);else return o.lanes=r.lanes,Uu(r,o,v)}return ux(r,o,d,p,v)}function eI(r,o,d){var p=o.pendingProps,v=p.children,S=r!==null?r.memoizedState:null;if(p.mode==="hidden"||U)if((o.mode&on)===Rt){var T={baseLanes:Le,cachePool:null,transitions:null};o.memoizedState=T,h3(o,d)}else if(lo(d,so)){var re={baseLanes:Le,cachePool:null,transitions:null};o.memoizedState=re;var te=S!==null?S.baseLanes:d;h3(o,te)}else{var N=null,I;if(S!==null){var B=S.baseLanes;I=Xt(B,d)}else I=d;o.lanes=o.childLanes=so;var W={baseLanes:I,cachePool:N,transitions:null};return o.memoizedState=W,o.updateQueue=null,h3(o,I),null}else{var ce;S!==null?(ce=Xt(S.baseLanes,d),o.memoizedState=null):ce=d,h3(o,ce)}return Mo(r,o,v,d),o.child}function Gce(r,o,d){var p=o.pendingProps;return Mo(r,o,p,d),o.child}function Yce(r,o,d){var p=o.pendingProps.children;return Mo(r,o,p,d),o.child}function Jce(r,o,d){{o.flags|=yn;{var p=o.stateNode;p.effectDuration=0,p.passiveEffectDuration=0}}var v=o.pendingProps,S=v.children;return Mo(r,o,S,d),o.child}function tI(r,o){var d=o.ref;(r===null&&d!==null||r!==null&&r.ref!==d)&&(o.flags|=Er,o.flags|=Lc)}function ux(r,o,d,p,v){if(o.type!==o.elementType){var S=d.propTypes;S&&Fs(S,p,"prop",Cn(d))}var T;{var N=th(o,d,!0);T=nh(o,N)}var I,B;lh(o,v),To(o);{if(uv.current=o,Kr(!0),I=hh(r,o,d,p,T,v),B=mh(),o.mode&Gn){br(!0);try{I=hh(r,o,d,p,T,v),B=mh()}finally{br(!1)}}Kr(!1)}return Ro(),r!==null&&!$s?(pL(r,o,v),Uu(r,o,v)):(Va()&&B&&V6(o),o.flags|=Ti,Mo(r,o,I,v),o.child)}function nI(r,o,d,p,v){{switch(ppe(o)){case!1:{var S=o.stateNode,T=o.type,N=new T(o.memoizedProps,S.context),I=N.state;S.updater.enqueueSetState(S,I,null);break}case!0:{o.flags|=kt,o.flags|=oa;var B=new Error("Simulated error coming from DevTools"),W=pf(v);o.lanes=Xt(o.lanes,W);var re=rx(o,Vf(B,o),W);c8(o,re);break}}if(o.type!==o.elementType){var te=d.propTypes;te&&Fs(te,p,"prop",Cn(d))}}var ce;jl(d)?(ce=!0,py(o)):ce=!1,lh(o,v);var pe=o.stateNode,Ce;pe===null?(r3(r,o),ZL(o,d,p),ex(o,d,p,v),Ce=!0):r===null?Ce=zce(o,d,p,v):Ce=Uce(r,o,d,p,v);var rt=cx(r,o,d,Ce,ce,v);{var Ot=o.stateNode;Ce&&Ot.props!==p&&($f||u("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",Bt(o)||"a component"),$f=!0)}return rt}function cx(r,o,d,p,v,S){tI(r,o);var T=(o.flags&kt)!==Tt;if(!p&&!T)return v&&PO(o,d,!1),Uu(r,o,S);var N=o.stateNode;uv.current=o;var I;if(T&&typeof d.getDerivedStateFromError!="function")I=null,UL();else{To(o);{if(Kr(!0),I=N.render(),o.mode&Gn){br(!0);try{N.render()}finally{br(!1)}}Kr(!1)}Ro()}return o.flags|=Ti,r!==null&&T?qce(r,o,I,S):Mo(r,o,I,S),o.memoizedState=N.state,v&&PO(o,d,!0),o.child}function rI(r){var o=r.stateNode;o.pendingContext?DO(r,o.pendingContext,o.pendingContext!==o.context):o.context&&DO(r,o.context,!1),d8(r,o.containerInfo)}function Xce(r,o,d){if(rI(o),r===null)throw new Error("Should have a current fiber. This is a bug in React.");var p=o.pendingProps,v=o.memoizedState,S=v.element;iL(r,o),Ny(o,p,null,d);var T=o.memoizedState;o.stateNode;var N=T.element;if(v.isDehydrated){var I={element:N,isDehydrated:!1,cache:T.cache,pendingSuspenseBoundaries:T.pendingSuspenseBoundaries,transitions:T.transitions},B=o.updateQueue;if(B.baseState=I,o.memoizedState=I,o.flags&Aa){var W=Vf(new Error("There was an error while hydrating. Because the error happened outside of a Suspense boundary, the entire root will switch to client rendering."),o);return aI(r,o,N,d,W)}else if(N!==S){var re=Vf(new Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),o);return aI(r,o,N,d,re)}else{ece(o);var te=QO(o,null,N,d);o.child=te;for(var ce=te;ce;)ce.flags=ce.flags&~wr|ro,ce=ce.sibling}}else{if(oh(),N===S)return Uu(r,o,d);Mo(r,o,N,d)}return o.child}function aI(r,o,d,p,v){return oh(),Y6(v),o.flags|=Aa,Mo(r,o,d,p),o.child}function Kce(r,o,d){cL(o),r===null&&G6(o);var p=o.type,v=o.pendingProps,S=r!==null?r.memoizedProps:null,T=v.children,N=A6(p,v);return N?T=null:S!==null&&A6(p,S)&&(o.flags|=Xo),tI(r,o),Mo(r,o,T,d),o.child}function Qce(r,o){return r===null&&G6(o),null}function ede(r,o,d,p){r3(r,o);var v=o.pendingProps,S=d,T=S._payload,N=S._init,I=N(T);o.type=I;var B=o.tag=Qfe(I),W=Vs(I,v),re;switch(B){case h:return dx(o,I),o.type=I=Sh(I),re=ux(null,o,I,W,p),re;case g:return o.type=I=Bx(I),re=nI(null,o,I,W,p),re;case F:return o.type=I=Hx(I),re=XL(null,o,I,W,p),re;case H:{if(o.type!==o.elementType){var te=I.propTypes;te&&Fs(te,W,"prop",Cn(I))}return re=KL(null,o,I,Vs(I.type,W),p),re}}var ce="";throw I!==null&&typeof I=="object"&&I.$$typeof===Ht&&(ce=" Did you wrap a component in React.lazy() more than once?"),new Error("Element type is invalid. Received a promise that resolves to: "+I+". "+("Lazy element type must resolve to a class or function."+ce))}function tde(r,o,d,p,v){r3(r,o),o.tag=g;var S;return jl(d)?(S=!0,py(o)):S=!1,lh(o,v),ZL(o,d,p),ex(o,d,p,v),cx(null,o,d,!0,S,v)}function nde(r,o,d,p){r3(r,o);var v=o.pendingProps,S;{var T=th(o,d,!1);S=nh(o,T)}lh(o,p);var N,I;To(o);{if(d.prototype&&typeof d.prototype.render=="function"){var B=Cn(d)||"Unknown";ax[B]||(u("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",B,B),ax[B]=!0)}o.mode&Gn&&Us.recordLegacyContextWarning(o,null),Kr(!0),uv.current=o,N=hh(null,o,d,v,S,p),I=mh(),Kr(!1)}if(Ro(),o.flags|=Ti,typeof N=="object"&&N!==null&&typeof N.render=="function"&&N.$$typeof===void 0){var W=Cn(d)||"Unknown";cv[W]||(u("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",W,W,W),cv[W]=!0)}if(typeof N=="object"&&N!==null&&typeof N.render=="function"&&N.$$typeof===void 0){{var re=Cn(d)||"Unknown";cv[re]||(u("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",re,re,re),cv[re]=!0)}o.tag=g,o.memoizedState=null,o.updateQueue=null;var te=!1;return jl(d)?(te=!0,py(o)):te=!1,o.memoizedState=N.state!==null&&N.state!==void 0?N.state:null,u8(o),$L(o,N),ex(o,d,v,p),cx(null,o,d,!0,te,p)}else{if(o.tag=h,o.mode&Gn){br(!0);try{N=hh(null,o,d,v,S,p),I=mh()}finally{br(!1)}}return Va()&&I&&V6(o),Mo(null,o,N,p),dx(o,d),o.child}}function dx(r,o){{if(o&&o.childContextTypes&&u("%s(...): childContextTypes cannot be defined on a function component.",o.displayName||o.name||"Component"),r.ref!==null){var d="",p=ja();p&&(d+=`
198
+
199
+ Check the render method of \``+p+"`.");var v=p||"",S=r._debugSource;S&&(v=S.fileName+":"+S.lineNumber),sx[v]||(sx[v]=!0,u("Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()?%s",d))}if(o.defaultProps!==void 0){var T=Cn(o)||"Unknown";dv[T]||(u("%s: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.",T),dv[T]=!0)}if(typeof o.getDerivedStateFromProps=="function"){var N=Cn(o)||"Unknown";ix[N]||(u("%s: Function components do not support getDerivedStateFromProps.",N),ix[N]=!0)}if(typeof o.contextType=="object"&&o.contextType!==null){var I=Cn(o)||"Unknown";ox[I]||(u("%s: Function components do not support contextType.",I),ox[I]=!0)}}}var fx={dehydrated:null,treeContext:null,retryLane:Tn};function px(r){return{baseLanes:r,cachePool:Wce(),transitions:null}}function rde(r,o){var d=null;return{baseLanes:Xt(r.baseLanes,o),cachePool:d,transitions:r.transitions}}function ade(r,o,d,p){if(o!==null){var v=o.memoizedState;if(v===null)return!1}return h8(r,ev)}function ode(r,o){return hf(r.childLanes,o)}function oI(r,o,d){var p=o.pendingProps;hpe(o)&&(o.flags|=kt);var v=Bs.current,S=!1,T=(o.flags&kt)!==Tt;if(T||ade(v,r)?(S=!0,o.flags&=~kt):(r===null||r.memoizedState!==null)&&(v=Sce(v,fL)),v=ch(v),ed(o,v),r===null){G6(o);var N=o.memoizedState;if(N!==null){var I=N.dehydrated;if(I!==null)return cde(o,I)}var B=p.children,W=p.fallback;if(S){var re=ide(o,B,W,d),te=o.child;return te.memoizedState=px(d),o.memoizedState=fx,re}else return hx(o,B)}else{var ce=r.memoizedState;if(ce!==null){var pe=ce.dehydrated;if(pe!==null)return dde(r,o,T,p,pe,ce,d)}if(S){var Ce=p.fallback,rt=p.children,Ot=lde(r,o,rt,Ce,d),Ct=o.child,bn=r.child.memoizedState;return Ct.memoizedState=bn===null?px(d):rde(bn,d),Ct.childLanes=ode(r,d),o.memoizedState=fx,Ot}else{var mn=p.children,se=sde(r,o,mn,d);return o.memoizedState=null,se}}}function hx(r,o,d){var p=r.mode,v={mode:"visible",children:o},S=mx(v,p);return S.return=r,r.child=S,S}function ide(r,o,d,p){var v=r.mode,S=r.child,T={mode:"hidden",children:o},N,I;return(v&on)===Rt&&S!==null?(N=S,N.childLanes=Le,N.pendingProps=T,r.mode&Nn&&(N.actualDuration=0,N.actualStartTime=-1,N.selfBaseDuration=0,N.treeBaseDuration=0),I=ld(d,v,p,null)):(N=mx(T,v),I=ld(d,v,p,null)),N.return=r,I.return=r,N.sibling=I,r.child=N,I}function mx(r,o,d){return iD(r,o,Le,null)}function iI(r,o){return Yf(r,o)}function sde(r,o,d,p){var v=r.child,S=v.sibling,T=iI(v,{mode:"visible",children:d});if((o.mode&on)===Rt&&(T.lanes=p),T.return=o,T.sibling=null,S!==null){var N=o.deletions;N===null?(o.deletions=[S],o.flags|=Jo):N.push(S)}return o.child=T,T}function lde(r,o,d,p,v){var S=o.mode,T=r.child,N=T.sibling,I={mode:"hidden",children:d},B;if((S&on)===Rt&&o.child!==T){var W=o.child;B=W,B.childLanes=Le,B.pendingProps=I,o.mode&Nn&&(B.actualDuration=0,B.actualStartTime=-1,B.selfBaseDuration=T.selfBaseDuration,B.treeBaseDuration=T.treeBaseDuration),o.deletions=null}else B=iI(T,I),B.subtreeFlags=T.subtreeFlags&Br;var re;return N!==null?re=Yf(N,p):(re=ld(p,S,v,null),re.flags|=wr),re.return=o,B.return=o,B.sibling=re,o.child=B,re}function n3(r,o,d,p){p!==null&&Y6(p),ih(o,r.child,null,d);var v=o.pendingProps,S=v.children,T=hx(o,S);return T.flags|=wr,o.memoizedState=null,T}function ude(r,o,d,p,v){var S=o.mode,T={mode:"visible",children:d},N=mx(T,S),I=ld(p,S,v,null);return I.flags|=wr,N.return=o,I.return=o,N.sibling=I,o.child=N,(o.mode&on)!==Rt&&ih(o,r.child,null,v),I}function cde(r,o,d){return(r.mode&on)===Rt?(u("Cannot hydrate Suspense in legacy mode. Switch from ReactDOM.hydrate(element, container) to ReactDOMClient.hydrateRoot(container, <App />).render(element) or remove the Suspense components from the server rendered components."),r.lanes=Ft):L6(o)?r.lanes=Na:r.lanes=so,null}function dde(r,o,d,p,v,S,T){if(d)if(o.flags&Aa){o.flags&=~Aa;var se=tx(new Error("There was an error while hydrating this Suspense boundary. Switched to client rendering."));return n3(r,o,T,se)}else{if(o.memoizedState!==null)return o.child=r.child,o.flags|=kt,null;var Se=p.children,le=p.fallback,ze=ude(r,o,Se,le,T),st=o.child;return st.memoizedState=px(T),o.memoizedState=fx,ze}else{if(Kue(),(o.mode&on)===Rt)return n3(r,o,T,null);if(L6(v)){var N,I,B;{var W=mue(v);N=W.digest,I=W.message,B=W.stack}var re;I?re=new Error(I):re=new Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering.");var te=tx(re,N,B);return n3(r,o,T,te)}var ce=lo(T,r.childLanes);if($s||ce){var pe=p3();if(pe!==null){var Ce=hg(pe,T);if(Ce!==Tn&&Ce!==S.retryLane){S.retryLane=Ce;var rt=er;ii(r,Ce),_a(pe,r,Ce,rt)}}jx();var Ot=tx(new Error("This Suspense boundary received an update before it finished hydrating. This caused the boundary to switch to client rendering. The usual way to fix this is to wrap the original update in startTransition."));return n3(r,o,T,Ot)}else if(AO(v)){o.flags|=kt,o.child=r.child;var Ct=jfe.bind(null,r);return gue(v,Ct),null}else{tce(o,v,S.treeContext);var bn=p.children,mn=hx(o,bn);return mn.flags|=ro,mn}}}function sI(r,o,d){r.lanes=Xt(r.lanes,o);var p=r.alternate;p!==null&&(p.lanes=Xt(p.lanes,o)),o8(r.return,o,d)}function fde(r,o,d){for(var p=o;p!==null;){if(p.tag===V){var v=p.memoizedState;v!==null&&sI(p,d,r)}else if(p.tag===ge)sI(p,d,r);else if(p.child!==null){p.child.return=p,p=p.child;continue}if(p===r)return;for(;p.sibling===null;){if(p.return===null||p.return===r)return;p=p.return}p.sibling.return=p.return,p=p.sibling}}function pde(r){for(var o=r,d=null;o!==null;){var p=o.alternate;p!==null&&Iy(p)===null&&(d=o),o=o.sibling}return d}function hde(r){if(r!==void 0&&r!=="forwards"&&r!=="backwards"&&r!=="together"&&!lx[r])if(lx[r]=!0,typeof r=="string")switch(r.toLowerCase()){case"together":case"forwards":case"backwards":{u('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',r,r.toLowerCase());break}case"forward":case"backward":{u('"%s" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use "%ss" instead.',r,r.toLowerCase());break}default:u('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',r);break}else u('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',r)}function mde(r,o){r!==void 0&&!t3[r]&&(r!=="collapsed"&&r!=="hidden"?(t3[r]=!0,u('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "collapsed" or "hidden"?',r)):o!=="forwards"&&o!=="backwards"&&(t3[r]=!0,u('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',r)))}function lI(r,o){{var d=rn(r),p=!d&&typeof Yt(r)=="function";if(d||p){var v=d?"array":"iterable";return u("A nested %s was passed to row #%s in <SuspenseList />. Wrap it in an additional SuspenseList to configure its revealOrder: <SuspenseList revealOrder=...> ... <SuspenseList revealOrder=...>{%s}</SuspenseList> ... </SuspenseList>",v,o,v),!1}}return!0}function gde(r,o){if((o==="forwards"||o==="backwards")&&r!==void 0&&r!==null&&r!==!1)if(rn(r)){for(var d=0;d<r.length;d++)if(!lI(r[d],d))return}else{var p=Yt(r);if(typeof p=="function"){var v=p.call(r);if(v)for(var S=v.next(),T=0;!S.done;S=v.next()){if(!lI(S.value,T))return;T++}}else u('A single row was passed to a <SuspenseList revealOrder="%s" />. This is not useful since it needs multiple rows. Did you mean to pass multiple children or an array?',o)}}function gx(r,o,d,p,v){var S=r.memoizedState;S===null?r.memoizedState={isBackwards:o,rendering:null,renderingStartTime:0,last:p,tail:d,tailMode:v}:(S.isBackwards=o,S.rendering=null,S.renderingStartTime=0,S.last=p,S.tail=d,S.tailMode=v)}function uI(r,o,d){var p=o.pendingProps,v=p.revealOrder,S=p.tail,T=p.children;hde(v),mde(S,v),gde(T,v),Mo(r,o,T,d);var N=Bs.current,I=h8(N,ev);if(I)N=m8(N,ev),o.flags|=kt;else{var B=r!==null&&(r.flags&kt)!==Tt;B&&fde(o,o.child,d),N=ch(N)}if(ed(o,N),(o.mode&on)===Rt)o.memoizedState=null;else switch(v){case"forwards":{var W=pde(o.child),re;W===null?(re=o.child,o.child=null):(re=W.sibling,W.sibling=null),gx(o,!1,re,W,S);break}case"backwards":{var te=null,ce=o.child;for(o.child=null;ce!==null;){var pe=ce.alternate;if(pe!==null&&Iy(pe)===null){o.child=ce;break}var Ce=ce.sibling;ce.sibling=te,te=ce,ce=Ce}gx(o,!0,te,null,S);break}case"together":{gx(o,!1,null,null,void 0);break}default:o.memoizedState=null}return o.child}function vde(r,o,d){d8(o,o.stateNode.containerInfo);var p=o.pendingProps;return r===null?o.child=ih(o,null,p,d):Mo(r,o,p,d),o.child}var cI=!1;function yde(r,o,d){var p=o.type,v=p._context,S=o.pendingProps,T=o.memoizedProps,N=S.value;{"value"in S||cI||(cI=!0,u("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?"));var I=o.type.propTypes;I&&Fs(I,S,"prop","Context.Provider")}if(nL(o,v,N),T!==null){var B=T.value;if(Pe(B,N)){if(T.children===S.children&&!dy())return Uu(r,o,d)}else hce(o,v,d)}var W=S.children;return Mo(r,o,W,d),o.child}var dI=!1;function xde(r,o,d){var p=o.type;p._context===void 0?p!==p.Consumer&&(dI||(dI=!0,u("Rendering <Context> directly is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?"))):p=p._context;var v=o.pendingProps,S=v.children;typeof S!="function"&&u("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it."),lh(o,d);var T=ua(p);To(o);var N;return uv.current=o,Kr(!0),N=S(T),Kr(!1),Ro(),o.flags|=Ti,Mo(r,o,N,d),o.child}function fv(){$s=!0}function r3(r,o){(o.mode&on)===Rt&&r!==null&&(r.alternate=null,o.alternate=null,o.flags|=wr)}function Uu(r,o,d){return r!==null&&(o.dependencies=r.dependencies),UL(),kv(o.lanes),lo(d,o.childLanes)?(fce(r,o),o.child):null}function wde(r,o,d){{var p=o.return;if(p===null)throw new Error("Cannot swap the root fiber.");if(r.alternate=null,o.alternate=null,d.index=o.index,d.sibling=o.sibling,d.return=o.return,d.ref=o.ref,o===p.child)p.child=d;else{var v=p.child;if(v===null)throw new Error("Expected parent to have a child.");for(;v.sibling!==o;)if(v=v.sibling,v===null)throw new Error("Expected to find the previous sibling.");v.sibling=d}var S=p.deletions;return S===null?(p.deletions=[r],p.flags|=Jo):S.push(r),d.flags|=wr,d}}function vx(r,o){var d=r.lanes;return!!lo(d,o)}function bde(r,o,d){switch(o.tag){case y:rI(o),o.stateNode,oh();break;case b:cL(o);break;case g:{var p=o.type;jl(p)&&py(o);break}case k:d8(o,o.stateNode.containerInfo);break;case P:{var v=o.memoizedProps.value,S=o.type._context;nL(o,S,v);break}case D:{var T=lo(d,o.childLanes);T&&(o.flags|=yn);{var N=o.stateNode;N.effectDuration=0,N.passiveEffectDuration=0}}break;case V:{var I=o.memoizedState;if(I!==null){if(I.dehydrated!==null)return ed(o,ch(Bs.current)),o.flags|=kt,null;var B=o.child,W=B.childLanes;if(lo(d,W))return oI(r,o,d);ed(o,ch(Bs.current));var re=Uu(r,o,d);return re!==null?re.sibling:null}else ed(o,ch(Bs.current));break}case ge:{var te=(r.flags&kt)!==Tt,ce=lo(d,o.childLanes);if(te){if(ce)return uI(r,o,d);o.flags|=kt}var pe=o.memoizedState;if(pe!==null&&(pe.rendering=null,pe.tail=null,pe.lastEffect=null),ed(o,Bs.current),ce)break;return null}case we:case Ne:return o.lanes=Le,eI(r,o,d)}return Uu(r,o,d)}function fI(r,o,d){if(o._debugNeedsRemount&&r!==null)return wde(r,o,qx(o.type,o.key,o.pendingProps,o._debugOwner||null,o.mode,o.lanes));if(r!==null){var p=r.memoizedProps,v=o.pendingProps;if(p!==v||dy()||o.type!==r.type)$s=!0;else{var S=vx(r,d);if(!S&&(o.flags&kt)===Tt)return $s=!1,bde(r,o,d);(r.flags&a1)!==Tt?$s=!0:$s=!1}}else if($s=!1,Va()&&Wue(o)){var T=o.index,N=que();UO(o,N,T)}switch(o.lanes=Le,o.tag){case x:return nde(r,o,o.type,d);case q:{var I=o.elementType;return ede(r,o,I,d)}case h:{var B=o.type,W=o.pendingProps,re=o.elementType===B?W:Vs(B,W);return ux(r,o,B,re,d)}case g:{var te=o.type,ce=o.pendingProps,pe=o.elementType===te?ce:Vs(te,ce);return nI(r,o,te,pe,d)}case y:return Xce(r,o,d);case b:return Kce(r,o,d);case _:return Qce(r,o);case V:return oI(r,o,d);case k:return vde(r,o,d);case F:{var Ce=o.type,rt=o.pendingProps,Ot=o.elementType===Ce?rt:Vs(Ce,rt);return XL(r,o,Ce,Ot,d)}case R:return Gce(r,o,d);case M:return Yce(r,o,d);case D:return Jce(r,o,d);case P:return yde(r,o,d);case L:return xde(r,o,d);case H:{var Ct=o.type,bn=o.pendingProps,mn=Vs(Ct,bn);if(o.type!==o.elementType){var se=Ct.propTypes;se&&Fs(se,mn,"prop",Cn(Ct))}return mn=Vs(Ct.type,mn),KL(r,o,Ct,mn,d)}case Z:return QL(r,o,o.type,o.pendingProps,d);case ae:{var Se=o.type,le=o.pendingProps,ze=o.elementType===Se?le:Vs(Se,le);return tde(r,o,Se,ze,d)}case ge:return uI(r,o,d);case he:break;case we:return eI(r,o,d)}throw new Error("Unknown unit of work tag ("+o.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function gh(r){r.flags|=yn}function pI(r){r.flags|=Er,r.flags|=Lc}var hI,yx,mI,gI;hI=function(r,o,d,p){for(var v=o.child;v!==null;){if(v.tag===b||v.tag===_)Vle(r,v.stateNode);else if(v.tag!==k){if(v.child!==null){v.child.return=v,v=v.child;continue}}if(v===o)return;for(;v.sibling===null;){if(v.return===null||v.return===o)return;v=v.return}v.sibling.return=v.return,v=v.sibling}},yx=function(r,o){},mI=function(r,o,d,p,v){var S=r.memoizedProps;if(S!==p){var T=o.stateNode,N=f8(),I=Zle(T,d,S,p,v,N);o.updateQueue=I,I&&gh(o)}},gI=function(r,o,d,p){d!==p&&gh(o)};function pv(r,o){if(!Va())switch(r.tailMode){case"hidden":{for(var d=r.tail,p=null;d!==null;)d.alternate!==null&&(p=d),d=d.sibling;p===null?r.tail=null:p.sibling=null;break}case"collapsed":{for(var v=r.tail,S=null;v!==null;)v.alternate!==null&&(S=v),v=v.sibling;S===null?!o&&r.tail!==null?r.tail.sibling=null:r.tail=null:S.sibling=null;break}}}function Za(r){var o=r.alternate!==null&&r.alternate.child===r.child,d=Le,p=Tt;if(o){if((r.mode&Nn)!==Rt){for(var I=r.selfBaseDuration,B=r.child;B!==null;)d=Xt(d,Xt(B.lanes,B.childLanes)),p|=B.subtreeFlags&Br,p|=B.flags&Br,I+=B.treeBaseDuration,B=B.sibling;r.treeBaseDuration=I}else for(var W=r.child;W!==null;)d=Xt(d,Xt(W.lanes,W.childLanes)),p|=W.subtreeFlags&Br,p|=W.flags&Br,W.return=r,W=W.sibling;r.subtreeFlags|=p}else{if((r.mode&Nn)!==Rt){for(var v=r.actualDuration,S=r.selfBaseDuration,T=r.child;T!==null;)d=Xt(d,Xt(T.lanes,T.childLanes)),p|=T.subtreeFlags,p|=T.flags,v+=T.actualDuration,S+=T.treeBaseDuration,T=T.sibling;r.actualDuration=v,r.treeBaseDuration=S}else for(var N=r.child;N!==null;)d=Xt(d,Xt(N.lanes,N.childLanes)),p|=N.subtreeFlags,p|=N.flags,N.return=r,N=N.sibling;r.subtreeFlags|=p}return r.childLanes=d,o}function Cde(r,o,d){if(ice()&&(o.mode&on)!==Rt&&(o.flags&kt)===Tt)return qO(o),oh(),o.flags|=Aa|Xd|oa,!1;var p=yy(o);if(d!==null&&d.dehydrated!==null)if(r===null){if(!p)throw new Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(ace(o),Za(o),(o.mode&Nn)!==Rt){var v=d!==null;if(v){var S=o.child;S!==null&&(o.treeBaseDuration-=S.treeBaseDuration)}}return!1}else{if(oh(),(o.flags&kt)===Tt&&(o.memoizedState=null),o.flags|=yn,Za(o),(o.mode&Nn)!==Rt){var T=d!==null;if(T){var N=o.child;N!==null&&(o.treeBaseDuration-=N.treeBaseDuration)}}return!1}else return GO(),!0}function vI(r,o,d){var p=o.pendingProps;switch($6(o),o.tag){case x:case q:case Z:case h:case F:case R:case M:case D:case L:case H:return Za(o),null;case g:{var v=o.type;return jl(v)&&fy(o),Za(o),null}case y:{var S=o.stateNode;if(uh(o),U6(o),v8(),S.pendingContext&&(S.context=S.pendingContext,S.pendingContext=null),r===null||r.child===null){var T=yy(o);if(T)gh(o);else if(r!==null){var N=r.memoizedState;(!N.isDehydrated||(o.flags&Aa)!==Tt)&&(o.flags|=Qr,GO())}}return yx(r,o),Za(o),null}case b:{p8(o);var I=uL(),B=o.type;if(r!==null&&o.stateNode!=null)mI(r,o,B,p,I),r.ref!==o.ref&&pI(o);else{if(!p){if(o.stateNode===null)throw new Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return Za(o),null}var W=f8(),re=yy(o);if(re)nce(o,I,W)&&gh(o);else{var te=Hle(B,p,I,W,o);hI(te,o,!1,!1),o.stateNode=te,$le(te,B,p,I)&&gh(o)}o.ref!==null&&pI(o)}return Za(o),null}case _:{var ce=p;if(r&&o.stateNode!=null){var pe=r.memoizedProps;gI(r,o,pe,ce)}else{if(typeof ce!="string"&&o.stateNode===null)throw new Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");var Ce=uL(),rt=f8(),Ot=yy(o);Ot?rce(o)&&gh(o):o.stateNode=Wle(ce,Ce,rt,o)}return Za(o),null}case V:{dh(o);var Ct=o.memoizedState;if(r===null||r.memoizedState!==null&&r.memoizedState.dehydrated!==null){var bn=Cde(r,o,Ct);if(!bn)return o.flags&oa?o:null}if((o.flags&kt)!==Tt)return o.lanes=d,(o.mode&Nn)!==Rt&&H8(o),o;var mn=Ct!==null,se=r!==null&&r.memoizedState!==null;if(mn!==se&&mn){var Se=o.child;if(Se.flags|=Ur,(o.mode&on)!==Rt){var le=r===null&&(o.memoizedProps.unstable_avoidThisFallback!==!0||!0);le||h8(Bs.current,fL)?Sfe():jx()}}var ze=o.updateQueue;if(ze!==null&&(o.flags|=yn),Za(o),(o.mode&Nn)!==Rt&&mn){var st=o.child;st!==null&&(o.treeBaseDuration-=st.treeBaseDuration)}return null}case k:return uh(o),yx(r,o),r===null&&zue(o.stateNode.containerInfo),Za(o),null;case P:var at=o.type._context;return a8(at,o),Za(o),null;case ae:{var zt=o.type;return jl(zt)&&fy(o),Za(o),null}case ge:{dh(o);var qt=o.memoizedState;if(qt===null)return Za(o),null;var Jn=(o.flags&kt)!==Tt,Ln=qt.rendering;if(Ln===null)if(Jn)pv(qt,!1);else{var na=Efe()&&(r===null||(r.flags&kt)===Tt);if(!na)for(var In=o.child;In!==null;){var qr=Iy(In);if(qr!==null){Jn=!0,o.flags|=kt,pv(qt,!1);var go=qr.updateQueue;return go!==null&&(o.updateQueue=go,o.flags|=yn),o.subtreeFlags=Tt,pce(o,d),ed(o,m8(Bs.current,ev)),o.child}In=In.sibling}qt.tail!==null&&ea()>FI()&&(o.flags|=kt,Jn=!0,pv(qt,!1),o.lanes=og)}else{if(!Jn){var Ja=Iy(Ln);if(Ja!==null){o.flags|=kt,Jn=!0;var Ii=Ja.updateQueue;if(Ii!==null&&(o.updateQueue=Ii,o.flags|=yn),pv(qt,!0),qt.tail===null&&qt.tailMode==="hidden"&&!Ln.alternate&&!Va())return Za(o),null}else ea()*2-qt.renderingStartTime>FI()&&d!==so&&(o.flags|=kt,Jn=!0,pv(qt,!1),o.lanes=og)}if(qt.isBackwards)Ln.sibling=o.child,o.child=Ln;else{var Io=qt.last;Io!==null?Io.sibling=Ln:o.child=Ln,qt.last=Ln}}if(qt.tail!==null){var Do=qt.tail;qt.rendering=Do,qt.tail=Do.sibling,qt.renderingStartTime=ea(),Do.sibling=null;var vo=Bs.current;return Jn?vo=m8(vo,ev):vo=ch(vo),ed(o,vo),Do}return Za(o),null}case he:break;case we:case Ne:{Dx(o);var Zu=o.memoizedState,kh=Zu!==null;if(r!==null){var Av=r.memoizedState,$l=Av!==null;$l!==kh&&!U&&(o.flags|=Ur)}return!kh||(o.mode&on)===Rt?Za(o):lo(Vl,so)&&(Za(o),o.subtreeFlags&(wr|yn)&&(o.flags|=Ur)),null}case xe:return null;case Te:return null}throw new Error("Unknown unit of work tag ("+o.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function Sde(r,o,d){switch($6(o),o.tag){case g:{var p=o.type;jl(p)&&fy(o);var v=o.flags;return v&oa?(o.flags=v&~oa|kt,(o.mode&Nn)!==Rt&&H8(o),o):null}case y:{o.stateNode,uh(o),U6(o),v8();var S=o.flags;return(S&oa)!==Tt&&(S&kt)===Tt?(o.flags=S&~oa|kt,o):null}case b:return p8(o),null;case V:{dh(o);var T=o.memoizedState;if(T!==null&&T.dehydrated!==null){if(o.alternate===null)throw new Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");oh()}var N=o.flags;return N&oa?(o.flags=N&~oa|kt,(o.mode&Nn)!==Rt&&H8(o),o):null}case ge:return dh(o),null;case k:return uh(o),null;case P:var I=o.type._context;return a8(I,o),null;case we:case Ne:return Dx(o),null;case xe:return null;default:return null}}function yI(r,o,d){switch($6(o),o.tag){case g:{var p=o.type.childContextTypes;p!=null&&fy(o);break}case y:{o.stateNode,uh(o),U6(o),v8();break}case b:{p8(o);break}case k:uh(o);break;case V:dh(o);break;case ge:dh(o);break;case P:var v=o.type._context;a8(v,o);break;case we:case Ne:Dx(o);break}}var xI=null;xI=new Set;var a3=!1,Wa=!1,kde=typeof WeakSet=="function"?WeakSet:Set,ht=null,vh=null,yh=null;function Ede(r){yl(null,function(){throw r}),Jd()}var _de=function(r,o){if(o.props=r.memoizedProps,o.state=r.memoizedState,r.mode&Nn)try{Bl(),o.componentWillUnmount()}finally{Ul(r)}else o.componentWillUnmount()};function wI(r,o){try{rd(wa,r)}catch(d){lr(r,o,d)}}function xx(r,o,d){try{_de(r,d)}catch(p){lr(r,o,p)}}function Tde(r,o,d){try{d.componentDidMount()}catch(p){lr(r,o,p)}}function bI(r,o){try{SI(r)}catch(d){lr(r,o,d)}}function xh(r,o){var d=r.ref;if(d!==null)if(typeof d=="function"){var p;try{if(Ue&&Ke&&r.mode&Nn)try{Bl(),p=d(null)}finally{Ul(r)}else p=d(null)}catch(v){lr(r,o,v)}typeof p=="function"&&u("Unexpected return value from a callback ref in %s. A callback ref should not return a function.",Bt(r))}else d.current=null}function o3(r,o,d){try{d()}catch(p){lr(r,o,p)}}var CI=!1;function Rde(r,o){Ule(r.containerInfo),ht=o,Ade();var d=CI;return CI=!1,d}function Ade(){for(;ht!==null;){var r=ht,o=r.child;(r.subtreeFlags&wl)!==Tt&&o!==null?(o.return=r,ht=o):Nde()}}function Nde(){for(;ht!==null;){var r=ht;Zn(r);try{Mde(r)}catch(d){lr(r,r.return,d)}sr();var o=r.sibling;if(o!==null){o.return=r.return,ht=o;return}ht=r.return}}function Mde(r){var o=r.alternate,d=r.flags;if((d&Qr)!==Tt){switch(Zn(r),r.tag){case h:case F:case Z:break;case g:{if(o!==null){var p=o.memoizedProps,v=o.memoizedState,S=r.stateNode;r.type===r.elementType&&!$f&&(S.props!==r.memoizedProps&&u("Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",Bt(r)||"instance"),S.state!==r.memoizedState&&u("Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",Bt(r)||"instance"));var T=S.getSnapshotBeforeUpdate(r.elementType===r.type?p:Vs(r.type,p),v);{var N=xI;T===void 0&&!N.has(r.type)&&(N.add(r.type),u("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",Bt(r)))}S.__reactInternalSnapshotBeforeUpdate=T}break}case y:{{var I=r.stateNode;due(I.containerInfo)}break}case b:case _:case k:case ae:break;default:throw new Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}sr()}}function Zs(r,o,d){var p=o.updateQueue,v=p!==null?p.lastEffect:null;if(v!==null){var S=v.next,T=S;do{if((T.tag&r)===r){var N=T.destroy;T.destroy=void 0,N!==void 0&&((r&$a)!==si?Os(o):(r&wa)!==si&&Qd(o),(r&Pl)!==si&&_v(!0),o3(o,d,N),(r&Pl)!==si&&_v(!1),(r&$a)!==si?kl():(r&wa)!==si&&rg())}T=T.next}while(T!==S)}}function rd(r,o){var d=o.updateQueue,p=d!==null?d.lastEffect:null;if(p!==null){var v=p.next,S=v;do{if((S.tag&r)===r){(r&$a)!==si?ng(o):(r&wa)!==si&&c1(o);var T=S.create;(r&Pl)!==si&&_v(!0),S.destroy=T(),(r&Pl)!==si&&_v(!1),(r&$a)!==si?c2():(r&wa)!==si&&d2();{var N=S.destroy;if(N!==void 0&&typeof N!="function"){var I=void 0;(S.tag&wa)!==Tt?I="useLayoutEffect":(S.tag&Pl)!==Tt?I="useInsertionEffect":I="useEffect";var B=void 0;N===null?B=" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof N.then=="function"?B=`
200
+
201
+ It looks like you wrote `+I+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:
202
+
203
+ `+I+`(() => {
204
+ async function fetchData() {
205
+ // You can await here
206
+ const response = await MyAPI.getData(someId);
207
+ // ...
208
+ }
209
+ fetchData();
210
+ }, [someId]); // Or [] if effect doesn't need props or state
211
+
212
+ Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-fetching`:B=" You returned: "+N,u("%s must not return anything besides a function, which is used for clean-up.%s",I,B)}}}S=S.next}while(S!==v)}}function Ode(r,o){if((o.flags&yn)!==Tt)switch(o.tag){case D:{var d=o.stateNode.passiveEffectDuration,p=o.memoizedProps,v=p.id,S=p.onPostCommit,T=FL(),N=o.alternate===null?"mount":"update";PL()&&(N="nested-update"),typeof S=="function"&&S(v,N,d,T);var I=o.return;e:for(;I!==null;){switch(I.tag){case y:var B=I.stateNode;B.passiveEffectDuration+=d;break e;case D:var W=I.stateNode;W.passiveEffectDuration+=d;break e}I=I.return}break}}}function Lde(r,o,d,p){if((d.flags&Cl)!==Tt)switch(d.tag){case h:case F:case Z:{if(!Wa)if(d.mode&Nn)try{Bl(),rd(wa|xa,d)}finally{Ul(d)}else rd(wa|xa,d);break}case g:{var v=d.stateNode;if(d.flags&yn&&!Wa)if(o===null)if(d.type===d.elementType&&!$f&&(v.props!==d.memoizedProps&&u("Expected %s props to match memoized props before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",Bt(d)||"instance"),v.state!==d.memoizedState&&u("Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",Bt(d)||"instance")),d.mode&Nn)try{Bl(),v.componentDidMount()}finally{Ul(d)}else v.componentDidMount();else{var S=d.elementType===d.type?o.memoizedProps:Vs(d.type,o.memoizedProps),T=o.memoizedState;if(d.type===d.elementType&&!$f&&(v.props!==d.memoizedProps&&u("Expected %s props to match memoized props before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",Bt(d)||"instance"),v.state!==d.memoizedState&&u("Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",Bt(d)||"instance")),d.mode&Nn)try{Bl(),v.componentDidUpdate(S,T,v.__reactInternalSnapshotBeforeUpdate)}finally{Ul(d)}else v.componentDidUpdate(S,T,v.__reactInternalSnapshotBeforeUpdate)}var N=d.updateQueue;N!==null&&(d.type===d.elementType&&!$f&&(v.props!==d.memoizedProps&&u("Expected %s props to match memoized props before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",Bt(d)||"instance"),v.state!==d.memoizedState&&u("Expected %s state to match memoized state before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",Bt(d)||"instance")),lL(d,N,v));break}case y:{var I=d.updateQueue;if(I!==null){var B=null;if(d.child!==null)switch(d.child.tag){case b:B=d.child.stateNode;break;case g:B=d.child.stateNode;break}lL(d,I,B)}break}case b:{var W=d.stateNode;if(o===null&&d.flags&yn){var re=d.type,te=d.memoizedProps;Xle(W,re,te)}break}case _:break;case k:break;case D:{{var ce=d.memoizedProps,pe=ce.onCommit,Ce=ce.onRender,rt=d.stateNode.effectDuration,Ot=FL(),Ct=o===null?"mount":"update";PL()&&(Ct="nested-update"),typeof Ce=="function"&&Ce(d.memoizedProps.id,Ct,d.actualDuration,d.treeBaseDuration,d.actualStartTime,Ot);{typeof pe=="function"&&pe(d.memoizedProps.id,Ct,rt,Ot),Nfe(d);var bn=d.return;e:for(;bn!==null;){switch(bn.tag){case y:var mn=bn.stateNode;mn.effectDuration+=rt;break e;case D:var se=bn.stateNode;se.effectDuration+=rt;break e}bn=bn.return}}}break}case V:{Bde(r,d);break}case ge:case ae:case he:case we:case Ne:case Te:break;default:throw new Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}Wa||d.flags&Er&&SI(d)}function Ide(r){switch(r.tag){case h:case F:case Z:{if(r.mode&Nn)try{Bl(),wI(r,r.return)}finally{Ul(r)}else wI(r,r.return);break}case g:{var o=r.stateNode;typeof o.componentDidMount=="function"&&Tde(r,r.return,o),bI(r,r.return);break}case b:{bI(r,r.return);break}}}function Dde(r,o){for(var d=null,p=r;;){if(p.tag===b){if(d===null){d=p;try{var v=p.stateNode;o?sue(v):uue(p.stateNode,p.memoizedProps)}catch(T){lr(r,r.return,T)}}}else if(p.tag===_){if(d===null)try{var S=p.stateNode;o?lue(S):cue(S,p.memoizedProps)}catch(T){lr(r,r.return,T)}}else if(!((p.tag===we||p.tag===Ne)&&p.memoizedState!==null&&p!==r)){if(p.child!==null){p.child.return=p,p=p.child;continue}}if(p===r)return;for(;p.sibling===null;){if(p.return===null||p.return===r)return;d===p&&(d=null),p=p.return}d===p&&(d=null),p.sibling.return=p.return,p=p.sibling}}function SI(r){var o=r.ref;if(o!==null){var d=r.stateNode,p;switch(r.tag){case b:p=d;break;default:p=d}if(typeof o=="function"){var v;if(r.mode&Nn)try{Bl(),v=o(p)}finally{Ul(r)}else v=o(p);typeof v=="function"&&u("Unexpected return value from a callback ref in %s. A callback ref should not return a function.",Bt(r))}else o.hasOwnProperty("current")||u("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",Bt(r)),o.current=p}}function jde(r){var o=r.alternate;o!==null&&(o.return=null),r.return=null}function kI(r){var o=r.alternate;o!==null&&(r.alternate=null,kI(o));{if(r.child=null,r.deletions=null,r.sibling=null,r.tag===b){var d=r.stateNode;d!==null&&Hue(d)}r.stateNode=null,r._debugOwner=null,r.return=null,r.dependencies=null,r.memoizedProps=null,r.memoizedState=null,r.pendingProps=null,r.stateNode=null,r.updateQueue=null}}function Pde(r){for(var o=r.return;o!==null;){if(EI(o))return o;o=o.return}throw new Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.")}function EI(r){return r.tag===b||r.tag===y||r.tag===k}function _I(r){var o=r;e:for(;;){for(;o.sibling===null;){if(o.return===null||EI(o.return))return null;o=o.return}for(o.sibling.return=o.return,o=o.sibling;o.tag!==b&&o.tag!==_&&o.tag!==_e;){if(o.flags&wr||o.child===null||o.tag===k)continue e;o.child.return=o,o=o.child}if(!(o.flags&wr))return o.stateNode}}function Fde(r){var o=Pde(r);switch(o.tag){case b:{var d=o.stateNode;o.flags&Xo&&(RO(d),o.flags&=~Xo);var p=_I(r);bx(r,p,d);break}case y:case k:{var v=o.stateNode.containerInfo,S=_I(r);wx(r,S,v);break}default:throw new Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function wx(r,o,d){var p=r.tag,v=p===b||p===_;if(v){var S=r.stateNode;o?rue(d,S,o):tue(d,S)}else if(p!==k){var T=r.child;if(T!==null){wx(T,o,d);for(var N=T.sibling;N!==null;)wx(N,o,d),N=N.sibling}}}function bx(r,o,d){var p=r.tag,v=p===b||p===_;if(v){var S=r.stateNode;o?nue(d,S,o):eue(d,S)}else if(p!==k){var T=r.child;if(T!==null){bx(T,o,d);for(var N=T.sibling;N!==null;)bx(N,o,d),N=N.sibling}}}var qa=null,Ws=!1;function zde(r,o,d){{var p=o;e:for(;p!==null;){switch(p.tag){case b:{qa=p.stateNode,Ws=!1;break e}case y:{qa=p.stateNode.containerInfo,Ws=!0;break e}case k:{qa=p.stateNode.containerInfo,Ws=!0;break e}}p=p.return}if(qa===null)throw new Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");TI(r,o,d),qa=null,Ws=!1}jde(d)}function ad(r,o,d){for(var p=d.child;p!==null;)TI(r,o,p),p=p.sibling}function TI(r,o,d){switch(Qm(d),d.tag){case b:Wa||xh(d,o);case _:{{var p=qa,v=Ws;qa=null,ad(r,o,d),qa=p,Ws=v,qa!==null&&(Ws?oue(qa,d.stateNode):aue(qa,d.stateNode))}return}case _e:{qa!==null&&(Ws?iue(qa,d.stateNode):O6(qa,d.stateNode));return}case k:{{var S=qa,T=Ws;qa=d.stateNode.containerInfo,Ws=!0,ad(r,o,d),qa=S,Ws=T}return}case h:case F:case H:case Z:{if(!Wa){var N=d.updateQueue;if(N!==null){var I=N.lastEffect;if(I!==null){var B=I.next,W=B;do{var re=W,te=re.destroy,ce=re.tag;te!==void 0&&((ce&Pl)!==si?o3(d,o,te):(ce&wa)!==si&&(Qd(d),d.mode&Nn?(Bl(),o3(d,o,te),Ul(d)):o3(d,o,te),rg())),W=W.next}while(W!==B)}}}ad(r,o,d);return}case g:{if(!Wa){xh(d,o);var pe=d.stateNode;typeof pe.componentWillUnmount=="function"&&xx(d,o,pe)}ad(r,o,d);return}case he:{ad(r,o,d);return}case we:{if(d.mode&on){var Ce=Wa;Wa=Ce||d.memoizedState!==null,ad(r,o,d),Wa=Ce}else ad(r,o,d);break}default:{ad(r,o,d);return}}}function Ude(r){r.memoizedState}function Bde(r,o){var d=o.memoizedState;if(d===null){var p=o.alternate;if(p!==null){var v=p.memoizedState;if(v!==null){var S=v.dehydrated;S!==null&&Eue(S)}}}}function RI(r){var o=r.updateQueue;if(o!==null){r.updateQueue=null;var d=r.stateNode;d===null&&(d=r.stateNode=new kde),o.forEach(function(p){var v=Pfe.bind(null,r,p);if(!d.has(p)){if(d.add(p),io)if(vh!==null&&yh!==null)Ev(yh,vh);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");p.then(v,v)}})}}function Hde(r,o,d){vh=d,yh=r,Zn(o),AI(o,r),Zn(o),vh=null,yh=null}function qs(r,o,d){var p=o.deletions;if(p!==null)for(var v=0;v<p.length;v++){var S=p[v];try{zde(r,o,S)}catch(I){lr(S,o,I)}}var T=dl();if(o.subtreeFlags&bl)for(var N=o.child;N!==null;)Zn(N),AI(N,r),N=N.sibling;Zn(T)}function AI(r,o,d){var p=r.alternate,v=r.flags;switch(r.tag){case h:case F:case H:case Z:{if(qs(o,r),Hl(r),v&yn){try{Zs(Pl|xa,r,r.return),rd(Pl|xa,r)}catch(zt){lr(r,r.return,zt)}if(r.mode&Nn){try{Bl(),Zs(wa|xa,r,r.return)}catch(zt){lr(r,r.return,zt)}Ul(r)}else try{Zs(wa|xa,r,r.return)}catch(zt){lr(r,r.return,zt)}}return}case g:{qs(o,r),Hl(r),v&Er&&p!==null&&xh(p,p.return);return}case b:{qs(o,r),Hl(r),v&Er&&p!==null&&xh(p,p.return);{if(r.flags&Xo){var S=r.stateNode;try{RO(S)}catch(zt){lr(r,r.return,zt)}}if(v&yn){var T=r.stateNode;if(T!=null){var N=r.memoizedProps,I=p!==null?p.memoizedProps:N,B=r.type,W=r.updateQueue;if(r.updateQueue=null,W!==null)try{Kle(T,W,B,I,N,r)}catch(zt){lr(r,r.return,zt)}}}}return}case _:{if(qs(o,r),Hl(r),v&yn){if(r.stateNode===null)throw new Error("This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.");var re=r.stateNode,te=r.memoizedProps,ce=p!==null?p.memoizedProps:te;try{Qle(re,ce,te)}catch(zt){lr(r,r.return,zt)}}return}case y:{if(qs(o,r),Hl(r),v&yn&&p!==null){var pe=p.memoizedState;if(pe.isDehydrated)try{kue(o.containerInfo)}catch(zt){lr(r,r.return,zt)}}return}case k:{qs(o,r),Hl(r);return}case V:{qs(o,r),Hl(r);var Ce=r.child;if(Ce.flags&Ur){var rt=Ce.stateNode,Ot=Ce.memoizedState,Ct=Ot!==null;if(rt.isHidden=Ct,Ct){var bn=Ce.alternate!==null&&Ce.alternate.memoizedState!==null;bn||Cfe()}}if(v&yn){try{Ude(r)}catch(zt){lr(r,r.return,zt)}RI(r)}return}case we:{var mn=p!==null&&p.memoizedState!==null;if(r.mode&on){var se=Wa;Wa=se||mn,qs(o,r),Wa=se}else qs(o,r);if(Hl(r),v&Ur){var Se=r.stateNode,le=r.memoizedState,ze=le!==null,st=r;if(Se.isHidden=ze,ze&&!mn&&(st.mode&on)!==Rt){ht=st;for(var at=st.child;at!==null;)ht=at,$de(at),at=at.sibling}Dde(st,ze)}return}case ge:{qs(o,r),Hl(r),v&yn&&RI(r);return}case he:return;default:{qs(o,r),Hl(r);return}}}function Hl(r){var o=r.flags;if(o&wr){try{Fde(r)}catch(d){lr(r,r.return,d)}r.flags&=~wr}o&ro&&(r.flags&=~ro)}function Vde(r,o,d){vh=d,yh=o,ht=r,NI(r,o,d),vh=null,yh=null}function NI(r,o,d){for(var p=(r.mode&on)!==Rt;ht!==null;){var v=ht,S=v.child;if(v.tag===we&&p){var T=v.memoizedState!==null,N=T||a3;if(N){Cx(r,o,d);continue}else{var I=v.alternate,B=I!==null&&I.memoizedState!==null,W=B||Wa,re=a3,te=Wa;a3=N,Wa=W,Wa&&!te&&(ht=v,Zde(v));for(var ce=S;ce!==null;)ht=ce,NI(ce,o,d),ce=ce.sibling;ht=v,a3=re,Wa=te,Cx(r,o,d);continue}}(v.subtreeFlags&Cl)!==Tt&&S!==null?(S.return=v,ht=S):Cx(r,o,d)}}function Cx(r,o,d){for(;ht!==null;){var p=ht;if((p.flags&Cl)!==Tt){var v=p.alternate;Zn(p);try{Lde(o,v,p,d)}catch(T){lr(p,p.return,T)}sr()}if(p===r){ht=null;return}var S=p.sibling;if(S!==null){S.return=p.return,ht=S;return}ht=p.return}}function $de(r){for(;ht!==null;){var o=ht,d=o.child;switch(o.tag){case h:case F:case H:case Z:{if(o.mode&Nn)try{Bl(),Zs(wa,o,o.return)}finally{Ul(o)}else Zs(wa,o,o.return);break}case g:{xh(o,o.return);var p=o.stateNode;typeof p.componentWillUnmount=="function"&&xx(o,o.return,p);break}case b:{xh(o,o.return);break}case we:{var v=o.memoizedState!==null;if(v){MI(r);continue}break}}d!==null?(d.return=o,ht=d):MI(r)}}function MI(r){for(;ht!==null;){var o=ht;if(o===r){ht=null;return}var d=o.sibling;if(d!==null){d.return=o.return,ht=d;return}ht=o.return}}function Zde(r){for(;ht!==null;){var o=ht,d=o.child;if(o.tag===we){var p=o.memoizedState!==null;if(p){OI(r);continue}}d!==null?(d.return=o,ht=d):OI(r)}}function OI(r){for(;ht!==null;){var o=ht;Zn(o);try{Ide(o)}catch(p){lr(o,o.return,p)}if(sr(),o===r){ht=null;return}var d=o.sibling;if(d!==null){d.return=o.return,ht=d;return}ht=o.return}}function Wde(r,o,d,p){ht=o,qde(o,r,d,p)}function qde(r,o,d,p){for(;ht!==null;){var v=ht,S=v.child;(v.subtreeFlags&Ns)!==Tt&&S!==null?(S.return=v,ht=S):Gde(r,o,d,p)}}function Gde(r,o,d,p){for(;ht!==null;){var v=ht;if((v.flags&no)!==Tt){Zn(v);try{Yde(o,v,d,p)}catch(T){lr(v,v.return,T)}sr()}if(v===r){ht=null;return}var S=v.sibling;if(S!==null){S.return=v.return,ht=S;return}ht=v.return}}function Yde(r,o,d,p){switch(o.tag){case h:case F:case Z:{if(o.mode&Nn){B8();try{rd($a|xa,o)}finally{U8(o)}}else rd($a|xa,o);break}}}function Jde(r){ht=r,Xde()}function Xde(){for(;ht!==null;){var r=ht,o=r.child;if((ht.flags&Jo)!==Tt){var d=r.deletions;if(d!==null){for(var p=0;p<d.length;p++){var v=d[p];ht=v,efe(v,r)}{var S=r.alternate;if(S!==null){var T=S.child;if(T!==null){S.child=null;do{var N=T.sibling;T.sibling=null,T=N}while(T!==null)}}}ht=r}}(r.subtreeFlags&Ns)!==Tt&&o!==null?(o.return=r,ht=o):Kde()}}function Kde(){for(;ht!==null;){var r=ht;(r.flags&no)!==Tt&&(Zn(r),Qde(r),sr());var o=r.sibling;if(o!==null){o.return=r.return,ht=o;return}ht=r.return}}function Qde(r){switch(r.tag){case h:case F:case Z:{r.mode&Nn?(B8(),Zs($a|xa,r,r.return),U8(r)):Zs($a|xa,r,r.return);break}}}function efe(r,o){for(;ht!==null;){var d=ht;Zn(d),nfe(d,o),sr();var p=d.child;p!==null?(p.return=d,ht=p):tfe(r)}}function tfe(r){for(;ht!==null;){var o=ht,d=o.sibling,p=o.return;if(kI(o),o===r){ht=null;return}if(d!==null){d.return=p,ht=d;return}ht=p}}function nfe(r,o){switch(r.tag){case h:case F:case Z:{r.mode&Nn?(B8(),Zs($a,r,o),U8(r)):Zs($a,r,o);break}}}function rfe(r){switch(r.tag){case h:case F:case Z:{try{rd(wa|xa,r)}catch(d){lr(r,r.return,d)}break}case g:{var o=r.stateNode;try{o.componentDidMount()}catch(d){lr(r,r.return,d)}break}}}function afe(r){switch(r.tag){case h:case F:case Z:{try{rd($a|xa,r)}catch(o){lr(r,r.return,o)}break}}}function ofe(r){switch(r.tag){case h:case F:case Z:{try{Zs(wa|xa,r,r.return)}catch(d){lr(r,r.return,d)}break}case g:{var o=r.stateNode;typeof o.componentWillUnmount=="function"&&xx(r,r.return,o);break}}}function ife(r){switch(r.tag){case h:case F:case Z:try{Zs($a|xa,r,r.return)}catch(o){lr(r,r.return,o)}}}if(typeof Symbol=="function"&&Symbol.for){var hv=Symbol.for;hv("selector.component"),hv("selector.has_pseudo_class"),hv("selector.role"),hv("selector.test_id"),hv("selector.text")}var sfe=[];function lfe(){sfe.forEach(function(r){return r()})}var ufe=n.ReactCurrentActQueue;function cfe(r){{var o=typeof IS_REACT_ACT_ENVIRONMENT!="undefined"?IS_REACT_ACT_ENVIRONMENT:void 0,d=typeof jest!="undefined";return d&&o!==!1}}function LI(){{var r=typeof IS_REACT_ACT_ENVIRONMENT!="undefined"?IS_REACT_ACT_ENVIRONMENT:void 0;return!r&&ufe.current!==null&&u("The current testing environment is not configured to support act(...)"),r}}var dfe=Math.ceil,Sx=n.ReactCurrentDispatcher,kx=n.ReactCurrentOwner,Ga=n.ReactCurrentBatchConfig,Gs=n.ReactCurrentActQueue,Sa=0,II=1,Ya=2,cs=4,Bu=0,mv=1,Zf=2,i3=3,gv=4,DI=5,Ex=6,wn=Sa,Oo=null,Pr=null,ka=Le,Vl=Le,_x=Gc(Le),Ea=Bu,vv=null,s3=Le,yv=Le,l3=Le,xv=null,li=null,Tx=0,jI=500,PI=1/0,ffe=500,Hu=null;function wv(){PI=ea()+ffe}function FI(){return PI}var u3=!1,Rx=null,wh=null,Wf=!1,od=null,bv=Le,Ax=[],Nx=null,pfe=50,Cv=0,Mx=null,Ox=!1,c3=!1,hfe=50,bh=0,d3=null,Sv=er,f3=Le,zI=!1;function p3(){return Oo}function Lo(){return(wn&(Ya|cs))!==Sa?ea():(Sv!==er||(Sv=ea()),Sv)}function id(r){var o=r.mode;if((o&on)===Rt)return Ft;if((wn&Ya)!==Sa&&ka!==Le)return pf(ka);var d=uce()!==lce;if(d){if(Ga.transition!==null){var p=Ga.transition;p._updatedFibers||(p._updatedFibers=new Set),p._updatedFibers.add(r)}return f3===Tn&&(f3=dg()),f3}var v=ri();if(v!==Tn)return v;var S=qle();return S}function mfe(r){var o=r.mode;return(o&on)===Rt?Ft:v2()}function _a(r,o,d,p){zfe(),zI&&u("useInsertionEffect must not schedule updates."),Ox&&(c3=!0),Pc(r,d,p),(wn&Ya)!==Le&&r===Oo?Hfe(o):(io&&gf(r,o,d),Vfe(o),r===Oo&&((wn&Ya)===Sa&&(yv=Xt(yv,d)),Ea===gv&&sd(r,ka)),ui(r,p),d===Ft&&wn===Sa&&(o.mode&on)===Rt&&!Gs.isBatchingLegacy&&(wv(),zO()))}function gfe(r,o,d){var p=r.current;p.lanes=o,Pc(r,o,d),ui(r,d)}function vfe(r){return(wn&Ya)!==Sa}function ui(r,o){var d=r.callbackNode;N1(r,o);var p=A1(r,r===Oo?ka:Le);if(p===Le){d!==null&&tD(d),r.callbackNode=null,r.callbackPriority=Tn;return}var v=Tl(p),S=r.callbackPriority;if(S===v&&!(Gs.current!==null&&d!==zx)){d==null&&S!==Ft&&u("Expected scheduled callback to exist. This error is likely caused by a bug in React. Please file an issue.");return}d!=null&&tD(d);var T;if(v===Ft)r.tag===Yc?(Gs.isBatchingLegacy!==null&&(Gs.didScheduleLegacyUpdate=!0),Zue(HI.bind(null,r))):FO(HI.bind(null,r)),Gs.current!==null?Gs.current.push(Jc):Yle(function(){(wn&(Ya|cs))===Sa&&Jc()}),T=null;else{var N;switch(k2(p)){case Fa:N=Kd;break;case es:N=Sl;break;case ti:N=Ms;break;case ni:N=mu;break;default:N=Ms;break}T=Ux(N,UI.bind(null,r))}r.callbackPriority=v,r.callbackNode=T}function UI(r,o){if(Dce(),Sv=er,f3=Le,(wn&(Ya|cs))!==Sa)throw new Error("Should not already be working.");var d=r.callbackNode,p=$u();if(p&&r.callbackNode!==d)return null;var v=A1(r,r===Oo?ka:Le);if(v===Le)return null;var S=!O1(r,v)&&!g2(r,v)&&!o,T=S?Tfe(r,v):m3(r,v);if(T!==Bu){if(T===Zf){var N=M1(r);N!==Le&&(v=N,T=Lx(r,N))}if(T===mv){var I=vv;throw qf(r,Le),sd(r,v),ui(r,ea()),I}if(T===Ex)sd(r,v);else{var B=!O1(r,v),W=r.current.alternate;if(B&&!xfe(W)){if(T=m3(r,v),T===Zf){var re=M1(r);re!==Le&&(v=re,T=Lx(r,re))}if(T===mv){var te=vv;throw qf(r,Le),sd(r,v),ui(r,ea()),te}}r.finishedWork=W,r.finishedLanes=v,yfe(r,T,v)}}return ui(r,ea()),r.callbackNode===d?UI.bind(null,r):null}function Lx(r,o){var d=xv;if(D1(r)){var p=qf(r,o);p.flags|=Aa,Fue(r.containerInfo)}var v=m3(r,o);if(v!==Zf){var S=li;li=d,S!==null&&BI(S)}return v}function BI(r){li===null?li=r:li.push.apply(li,r)}function yfe(r,o,d){switch(o){case Bu:case mv:throw new Error("Root did not complete. This is a bug in React.");case Zf:{Gf(r,li,Hu);break}case i3:{if(sd(r,d),_u(d)&&!nD()){var p=Tx+jI-ea();if(p>10){var v=A1(r,Le);if(v!==Le)break;var S=r.suspendedLanes;if(!Tu(S,d)){Lo(),L1(r,S);break}r.timeoutHandle=N6(Gf.bind(null,r,li,Hu),p);break}}Gf(r,li,Hu);break}case gv:{if(sd(r,d),ug(d))break;if(!nD()){var T=Ai(r,d),N=T,I=ea()-N,B=Ffe(I)-I;if(B>10){r.timeoutHandle=N6(Gf.bind(null,r,li,Hu),B);break}}Gf(r,li,Hu);break}case DI:{Gf(r,li,Hu);break}default:throw new Error("Unknown root exit status.")}}function xfe(r){for(var o=r;;){if(o.flags&Oc){var d=o.updateQueue;if(d!==null){var p=d.stores;if(p!==null)for(var v=0;v<p.length;v++){var S=p[v],T=S.getSnapshot,N=S.value;try{if(!Pe(T(),N))return!1}catch(B){return!1}}}}var I=o.child;if(o.subtreeFlags&Oc&&I!==null){I.return=o,o=I;continue}if(o===r)return!0;for(;o.sibling===null;){if(o.return===null||o.return===r)return!0;o=o.return}o.sibling.return=o.return,o=o.sibling}return!0}function sd(r,o){o=hf(o,l3),o=hf(o,yv),w2(r,o)}function HI(r){if(jce(),(wn&(Ya|cs))!==Sa)throw new Error("Should not already be working.");$u();var o=A1(r,Le);if(!lo(o,Ft))return ui(r,ea()),null;var d=m3(r,o);if(r.tag!==Yc&&d===Zf){var p=M1(r);p!==Le&&(o=p,d=Lx(r,p))}if(d===mv){var v=vv;throw qf(r,Le),sd(r,o),ui(r,ea()),v}if(d===Ex)throw new Error("Root did not complete. This is a bug in React.");var S=r.current.alternate;return r.finishedWork=S,r.finishedLanes=o,Gf(r,li,Hu),ui(r,ea()),null}function wfe(r,o){o!==Le&&(I1(r,Xt(o,Ft)),ui(r,ea()),(wn&(Ya|cs))===Sa&&(wv(),Jc()))}function Ix(r,o){var d=wn;wn|=II;try{return r(o)}finally{wn=d,wn===Sa&&!Gs.isBatchingLegacy&&(wv(),zO())}}function bfe(r,o,d,p,v){var S=ri(),T=Ga.transition;try{return Ga.transition=null,$r(Fa),r(o,d,p,v)}finally{$r(S),Ga.transition=T,wn===Sa&&wv()}}function Vu(r){od!==null&&od.tag===Yc&&(wn&(Ya|cs))===Sa&&$u();var o=wn;wn|=II;var d=Ga.transition,p=ri();try{return Ga.transition=null,$r(Fa),r?r():void 0}finally{$r(p),Ga.transition=d,wn=o,(wn&(Ya|cs))===Sa&&Jc()}}function VI(){return(wn&(Ya|cs))!==Sa}function h3(r,o){ho(_x,Vl,r),Vl=Xt(Vl,o)}function Dx(r){Vl=_x.current,po(_x,r)}function qf(r,o){r.finishedWork=null,r.finishedLanes=Le;var d=r.timeoutHandle;if(d!==M6&&(r.timeoutHandle=M6,Gle(d)),Pr!==null)for(var p=Pr.return;p!==null;){var v=p.alternate;yI(v,p),p=p.return}Oo=r;var S=Yf(r.current,null);return Pr=S,ka=Vl=o,Ea=Bu,vv=null,s3=Le,yv=Le,l3=Le,xv=null,li=null,gce(),Us.discardPendingWarnings(),S}function $I(r,o){do{var d=Pr;try{if(ky(),hL(),sr(),kx.current=null,d===null||d.return===null){Ea=mv,vv=o,Pr=null;return}if(Ue&&d.mode&Nn&&Qy(d,!0),$)if(Ro(),o!==null&&typeof o=="object"&&typeof o.then=="function"){var p=o;Qi(d,p,ka)}else ef(d,o,ka);Zce(r,d.return,d,o,ka),GI(d)}catch(v){o=v,Pr===d&&d!==null?(d=d.return,Pr=d):d=Pr;continue}return}while(!0)}function ZI(){var r=Sx.current;return Sx.current=Gy,r===null?Gy:r}function WI(r){Sx.current=r}function Cfe(){Tx=ea()}function kv(r){s3=Xt(r,s3)}function Sfe(){Ea===Bu&&(Ea=i3)}function jx(){(Ea===Bu||Ea===i3||Ea===Zf)&&(Ea=gv),Oo!==null&&(ff(s3)||ff(yv))&&sd(Oo,ka)}function kfe(r){Ea!==gv&&(Ea=Zf),xv===null?xv=[r]:xv.push(r)}function Efe(){return Ea===Bu}function m3(r,o){var d=wn;wn|=Ya;var p=ZI();if(Oo!==r||ka!==o){if(io){var v=r.memoizedUpdaters;v.size>0&&(Ev(r,ka),v.clear()),b2(r,o)}Hu=mg(),qf(r,o)}xu(o);do try{_fe();break}catch(S){$I(r,S)}while(!0);if(ky(),wn=d,WI(p),Pr!==null)throw new Error("Cannot commit an incomplete root. This error is likely caused by a bug in React. Please file an issue.");return d1(),Oo=null,ka=Le,Ea}function _fe(){for(;Pr!==null;)qI(Pr)}function Tfe(r,o){var d=wn;wn|=Ya;var p=ZI();if(Oo!==r||ka!==o){if(io){var v=r.memoizedUpdaters;v.size>0&&(Ev(r,ka),v.clear()),b2(r,o)}Hu=mg(),wv(),qf(r,o)}xu(o);do try{Rfe();break}catch(S){$I(r,S)}while(!0);return ky(),WI(p),wn=d,Pr!==null?(f2(),Bu):(d1(),Oo=null,ka=Le,Ea)}function Rfe(){for(;Pr!==null&&!Gm();)qI(Pr)}function qI(r){var o=r.alternate;Zn(r);var d;(r.mode&Nn)!==Rt?(z8(r),d=Px(o,r,Vl),Qy(r,!0)):d=Px(o,r,Vl),sr(),r.memoizedProps=r.pendingProps,d===null?GI(r):Pr=d,kx.current=null}function GI(r){var o=r;do{var d=o.alternate,p=o.return;if((o.flags&Xd)===Tt){Zn(o);var v=void 0;if((o.mode&Nn)===Rt?v=vI(d,o,Vl):(z8(o),v=vI(d,o,Vl),Qy(o,!1)),sr(),v!==null){Pr=v;return}}else{var S=Sde(d,o);if(S!==null){S.flags&=i2,Pr=S;return}if((o.mode&Nn)!==Rt){Qy(o,!1);for(var T=o.actualDuration,N=o.child;N!==null;)T+=N.actualDuration,N=N.sibling;o.actualDuration=T}if(p!==null)p.flags|=Xd,p.subtreeFlags=Tt,p.deletions=null;else{Ea=Ex,Pr=null;return}}var I=o.sibling;if(I!==null){Pr=I;return}o=p,Pr=o}while(o!==null);Ea===Bu&&(Ea=DI)}function Gf(r,o,d){var p=ri(),v=Ga.transition;try{Ga.transition=null,$r(Fa),Afe(r,o,d,p)}finally{Ga.transition=v,$r(p)}return null}function Afe(r,o,d,p){do $u();while(od!==null);if(Ufe(),(wn&(Ya|cs))!==Sa)throw new Error("Should not already be working.");var v=r.finishedWork,S=r.finishedLanes;if(eg(S),v===null)return tg(),null;if(S===Le&&u("root.finishedLanes should not be empty during a commit. This is a bug in React."),r.finishedWork=null,r.finishedLanes=Le,v===r.current)throw new Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.");r.callbackNode=null,r.callbackPriority=Tn;var T=Xt(v.lanes,v.childLanes);pg(r,T),r===Oo&&(Oo=null,Pr=null,ka=Le),((v.subtreeFlags&Ns)!==Tt||(v.flags&Ns)!==Tt)&&(Wf||(Wf=!0,Nx=d,Ux(Ms,function(){return $u(),null})));var N=(v.subtreeFlags&(wl|bl|Cl|Ns))!==Tt,I=(v.flags&(wl|bl|Cl|Ns))!==Tt;if(N||I){var B=Ga.transition;Ga.transition=null;var W=ri();$r(Fa);var re=wn;wn|=cs,kx.current=null,Rde(r,v),zL(),Hde(r,v,S),Ble(r.containerInfo),r.current=v,tf(S),Vde(v,r,S),nf(),Ym(),wn=re,$r(W),Ga.transition=B}else r.current=v,zL();var te=Wf;if(Wf?(Wf=!1,od=r,bv=S):(bh=0,d3=null),T=r.pendingLanes,T===Le&&(wh=null),te||KI(r.current,!1),Xm(v.stateNode,p),io&&r.memoizedUpdaters.clear(),lfe(),ui(r,ea()),o!==null)for(var ce=r.onRecoverableError,pe=0;pe<o.length;pe++){var Ce=o[pe],rt=Ce.stack,Ot=Ce.digest;ce(Ce.value,{componentStack:rt,digest:Ot})}if(u3){u3=!1;var Ct=Rx;throw Rx=null,Ct}return lo(bv,Ft)&&r.tag!==Yc&&$u(),T=r.pendingLanes,lo(T,Ft)?(Ice(),r===Mx?Cv++:(Cv=0,Mx=r)):Cv=0,Jc(),tg(),null}function $u(){if(od!==null){var r=k2(bv),o=yf(ti,r),d=Ga.transition,p=ri();try{return Ga.transition=null,$r(o),Mfe()}finally{$r(p),Ga.transition=d}}return!1}function Nfe(r){Ax.push(r),Wf||(Wf=!0,Ux(Ms,function(){return $u(),null}))}function Mfe(){if(od===null)return!1;var r=Nx;Nx=null;var o=od,d=bv;if(od=null,bv=Le,(wn&(Ya|cs))!==Sa)throw new Error("Cannot flush passive effects while already rendering.");Ox=!0,c3=!1,yu(d);var p=wn;wn|=cs,Jde(o.current),Wde(o,o.current,d,r);{var v=Ax;Ax=[];for(var S=0;S<v.length;S++){var T=v[S];Ode(o,T)}}ag(),KI(o.current,!0),wn=p,Jc(),c3?o===d3?bh++:(bh=0,d3=o):bh=0,Ox=!1,c3=!1,Km(o);{var N=o.current.stateNode;N.effectDuration=0,N.passiveEffectDuration=0}return!0}function YI(r){return wh!==null&&wh.has(r)}function Ofe(r){wh===null?wh=new Set([r]):wh.add(r)}function Lfe(r){u3||(u3=!0,Rx=r)}var Ife=Lfe;function JI(r,o,d){var p=Vf(d,o),v=qL(r,p,Ft),S=Kc(r,v,Ft),T=Lo();S!==null&&(Pc(S,Ft,T),ui(S,T))}function lr(r,o,d){if(Ede(d),_v(!1),r.tag===y){JI(r,r,d);return}var p=null;for(p=o;p!==null;){if(p.tag===y){JI(p,r,d);return}else if(p.tag===g){var v=p.type,S=p.stateNode;if(typeof v.getDerivedStateFromError=="function"||typeof S.componentDidCatch=="function"&&!YI(S)){var T=Vf(d,r),N=rx(p,T,Ft),I=Kc(p,N,Ft),B=Lo();I!==null&&(Pc(I,Ft,B),ui(I,B));return}}p=p.return}u(`Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Likely causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.
213
+
214
+ Error message:
215
+
216
+ %s`,d)}function Dfe(r,o,d){var p=r.pingCache;p!==null&&p.delete(o);var v=Lo();L1(r,d),$fe(r),Oo===r&&Tu(ka,d)&&(Ea===gv||Ea===i3&&_u(ka)&&ea()-Tx<jI?qf(r,Le):l3=Xt(l3,d)),ui(r,v)}function XI(r,o){o===Tn&&(o=mfe(r));var d=Lo(),p=ii(r,o);p!==null&&(Pc(p,o,d),ui(p,d))}function jfe(r){var o=r.memoizedState,d=Tn;o!==null&&(d=o.retryLane),XI(r,d)}function Pfe(r,o){var d=Tn,p;switch(r.tag){case V:p=r.stateNode;var v=r.memoizedState;v!==null&&(d=v.retryLane);break;case ge:p=r.stateNode;break;default:throw new Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}p!==null&&p.delete(o),XI(r,d)}function Ffe(r){return r<120?120:r<480?480:r<1080?1080:r<1920?1920:r<3e3?3e3:r<4320?4320:dfe(r/1960)*1960}function zfe(){if(Cv>pfe)throw Cv=0,Mx=null,new Error("Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.");bh>hfe&&(bh=0,d3=null,u("Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render."))}function Ufe(){Us.flushLegacyContextWarning(),Us.flushPendingUnsafeLifecycleWarnings()}function KI(r,o){Zn(r),g3(r,xl,ofe),o&&g3(r,Ji,ife),g3(r,xl,rfe),o&&g3(r,Ji,afe),sr()}function g3(r,o,d){for(var p=r,v=null;p!==null;){var S=p.subtreeFlags&o;p!==v&&p.child!==null&&S!==Tt?p=p.child:((p.flags&o)!==Tt&&d(p),p.sibling!==null?p=p.sibling:p=v=p.return)}}var v3=null;function QI(r){{if((wn&Ya)!==Sa||!(r.mode&on))return;var o=r.tag;if(o!==x&&o!==y&&o!==g&&o!==h&&o!==F&&o!==H&&o!==Z)return;var d=Bt(r)||"ReactComponent";if(v3!==null){if(v3.has(d))return;v3.add(d)}else v3=new Set([d]);var p=ha;try{Zn(r),u("Can't perform a React state update on a component that hasn't mounted yet. This indicates that you have a side-effect in your render function that asynchronously later calls tries to update the component. Move this work to useEffect instead.")}finally{p?Zn(r):sr()}}}var Px;{var Bfe=null;Px=function(r,o,d){var p=sD(Bfe,o);try{return fI(r,o,d)}catch(S){if(Que()||S!==null&&typeof S=="object"&&typeof S.then=="function")throw S;if(ky(),hL(),yI(r,o),sD(o,p),o.mode&Nn&&z8(o),yl(null,fI,null,r,o,d),Rs()){var v=Jd();typeof v=="object"&&v!==null&&v._suppressLogging&&typeof S=="object"&&S!==null&&!S._suppressLogging&&(S._suppressLogging=!0)}throw S}}}var eD=!1,Fx;Fx=new Set;function Hfe(r){if(Vi&&!Mce())switch(r.tag){case h:case F:case Z:{var o=Pr&&Bt(Pr)||"Unknown",d=o;if(!Fx.has(d)){Fx.add(d);var p=Bt(r)||"Unknown";u("Cannot update a component (`%s`) while rendering a different component (`%s`). To locate the bad setState() call inside `%s`, follow the stack trace as described in https://reactjs.org/link/setstate-in-render",p,o,o)}break}case g:{eD||(u("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),eD=!0);break}}}function Ev(r,o){if(io){var d=r.memoizedUpdaters;d.forEach(function(p){gf(r,p,o)})}}var zx={};function Ux(r,o){{var d=Gs.current;return d!==null?(d.push(o),zx):qm(r,o)}}function tD(r){if(r!==zx)return l2(r)}function nD(){return Gs.current!==null}function Vfe(r){{if(r.mode&on){if(!LI())return}else if(!cfe()||wn!==Sa||r.tag!==h&&r.tag!==F&&r.tag!==Z)return;if(Gs.current===null){var o=ha;try{Zn(r),u(`An update to %s inside a test was not wrapped in act(...).
217
+
218
+ When testing, code that causes React state updates should be wrapped into act(...):
219
+
220
+ act(() => {
221
+ /* fire events that update state */
222
+ });
223
+ /* assert on the output */
224
+
225
+ This ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act`,Bt(r))}finally{o?Zn(r):sr()}}}}function $fe(r){r.tag!==Yc&&LI()&&Gs.current===null&&u(`A suspended resource finished loading inside a test, but the event was not wrapped in act(...).
226
+
227
+ When testing, code that resolves suspended data should be wrapped into act(...):
228
+
229
+ act(() => {
230
+ /* finish loading suspended data */
231
+ });
232
+ /* assert on the output */
233
+
234
+ This ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act`)}function _v(r){zI=r}var ds=null,Ch=null,Zfe=function(r){ds=r};function Sh(r){{if(ds===null)return r;var o=ds(r);return o===void 0?r:o.current}}function Bx(r){return Sh(r)}function Hx(r){{if(ds===null)return r;var o=ds(r);if(o===void 0){if(r!=null&&typeof r.render=="function"){var d=Sh(r.render);if(r.render!==d){var p={$$typeof:Oe,render:d};return r.displayName!==void 0&&(p.displayName=r.displayName),p}}return r}return o.current}}function rD(r,o){{if(ds===null)return!1;var d=r.elementType,p=o.type,v=!1,S=typeof p=="object"&&p!==null?p.$$typeof:null;switch(r.tag){case g:{typeof p=="function"&&(v=!0);break}case h:{(typeof p=="function"||S===Ht)&&(v=!0);break}case F:{(S===Oe||S===Ht)&&(v=!0);break}case H:case Z:{(S===Gt||S===Ht)&&(v=!0);break}default:return!1}if(v){var T=ds(d);if(T!==void 0&&T===ds(p))return!0}return!1}}function aD(r){{if(ds===null||typeof WeakSet!="function")return;Ch===null&&(Ch=new WeakSet),Ch.add(r)}}var Wfe=function(r,o){{if(ds===null)return;var d=o.staleFamilies,p=o.updatedFamilies;$u(),Vu(function(){Vx(r.current,p,d)})}},qfe=function(r,o){{if(r.context!==Oi)return;$u(),Vu(function(){Tv(o,r,null,null)})}};function Vx(r,o,d){{var p=r.alternate,v=r.child,S=r.sibling,T=r.tag,N=r.type,I=null;switch(T){case h:case Z:case g:I=N;break;case F:I=N.render;break}if(ds===null)throw new Error("Expected resolveFamily to be set during hot reload.");var B=!1,W=!1;if(I!==null){var re=ds(I);re!==void 0&&(d.has(re)?W=!0:o.has(re)&&(T===g?W=!0:B=!0))}if(Ch!==null&&(Ch.has(r)||p!==null&&Ch.has(p))&&(W=!0),W&&(r._debugNeedsRemount=!0),W||B){var te=ii(r,Ft);te!==null&&_a(te,r,Ft,er)}v!==null&&!W&&Vx(v,o,d),S!==null&&Vx(S,o,d)}}var Gfe=function(r,o){{var d=new Set,p=new Set(o.map(function(v){return v.current}));return $x(r.current,p,d),d}};function $x(r,o,d){{var p=r.child,v=r.sibling,S=r.tag,T=r.type,N=null;switch(S){case h:case Z:case g:N=T;break;case F:N=T.render;break}var I=!1;N!==null&&o.has(N)&&(I=!0),I?Yfe(r,d):p!==null&&$x(p,o,d),v!==null&&$x(v,o,d)}}function Yfe(r,o){{var d=Jfe(r,o);if(d)return;for(var p=r;;){switch(p.tag){case b:o.add(p.stateNode);return;case k:o.add(p.stateNode.containerInfo);return;case y:o.add(p.stateNode.containerInfo);return}if(p.return===null)throw new Error("Expected to reach root first.");p=p.return}}}function Jfe(r,o){for(var d=r,p=!1;;){if(d.tag===b)p=!0,o.add(d.stateNode);else if(d.child!==null){d.child.return=d,d=d.child;continue}if(d===r)return p;for(;d.sibling===null;){if(d.return===null||d.return===r)return p;d=d.return}d.sibling.return=d.return,d=d.sibling}return!1}var Zx;{Zx=!1;try{var oD=Object.preventExtensions({})}catch(r){Zx=!0}}function Xfe(r,o,d,p){this.tag=r,this.key=d,this.elementType=null,this.type=null,this.stateNode=null,this.return=null,this.child=null,this.sibling=null,this.index=0,this.ref=null,this.pendingProps=o,this.memoizedProps=null,this.updateQueue=null,this.memoizedState=null,this.dependencies=null,this.mode=p,this.flags=Tt,this.subtreeFlags=Tt,this.deletions=null,this.lanes=Le,this.childLanes=Le,this.alternate=null,this.actualDuration=Number.NaN,this.actualStartTime=Number.NaN,this.selfBaseDuration=Number.NaN,this.treeBaseDuration=Number.NaN,this.actualDuration=0,this.actualStartTime=-1,this.selfBaseDuration=0,this.treeBaseDuration=0,this._debugSource=null,this._debugOwner=null,this._debugNeedsRemount=!1,this._debugHookTypes=null,!Zx&&typeof Object.preventExtensions=="function"&&Object.preventExtensions(this)}var Li=function(r,o,d,p){return new Xfe(r,o,d,p)};function Wx(r){var o=r.prototype;return!!(o&&o.isReactComponent)}function Kfe(r){return typeof r=="function"&&!Wx(r)&&r.defaultProps===void 0}function Qfe(r){if(typeof r=="function")return Wx(r)?g:h;if(r!=null){var o=r.$$typeof;if(o===Oe)return F;if(o===Gt)return H}return x}function Yf(r,o){var d=r.alternate;d===null?(d=Li(r.tag,o,r.key,r.mode),d.elementType=r.elementType,d.type=r.type,d.stateNode=r.stateNode,d._debugSource=r._debugSource,d._debugOwner=r._debugOwner,d._debugHookTypes=r._debugHookTypes,d.alternate=r,r.alternate=d):(d.pendingProps=o,d.type=r.type,d.flags=Tt,d.subtreeFlags=Tt,d.deletions=null,d.actualDuration=0,d.actualStartTime=-1),d.flags=r.flags&Br,d.childLanes=r.childLanes,d.lanes=r.lanes,d.child=r.child,d.memoizedProps=r.memoizedProps,d.memoizedState=r.memoizedState,d.updateQueue=r.updateQueue;var p=r.dependencies;switch(d.dependencies=p===null?null:{lanes:p.lanes,firstContext:p.firstContext},d.sibling=r.sibling,d.index=r.index,d.ref=r.ref,d.selfBaseDuration=r.selfBaseDuration,d.treeBaseDuration=r.treeBaseDuration,d._debugNeedsRemount=r._debugNeedsRemount,d.tag){case x:case h:case Z:d.type=Sh(r.type);break;case g:d.type=Bx(r.type);break;case F:d.type=Hx(r.type);break}return d}function epe(r,o){r.flags&=Br|wr;var d=r.alternate;if(d===null)r.childLanes=Le,r.lanes=o,r.child=null,r.subtreeFlags=Tt,r.memoizedProps=null,r.memoizedState=null,r.updateQueue=null,r.dependencies=null,r.stateNode=null,r.selfBaseDuration=0,r.treeBaseDuration=0;else{r.childLanes=d.childLanes,r.lanes=d.lanes,r.child=d.child,r.subtreeFlags=Tt,r.deletions=null,r.memoizedProps=d.memoizedProps,r.memoizedState=d.memoizedState,r.updateQueue=d.updateQueue,r.type=d.type;var p=d.dependencies;r.dependencies=p===null?null:{lanes:p.lanes,firstContext:p.firstContext},r.selfBaseDuration=d.selfBaseDuration,r.treeBaseDuration=d.treeBaseDuration}return r}function tpe(r,o,d){var p;return r===hy?(p=on,o===!0&&(p|=Gn,p|=Mn)):p=Rt,io&&(p|=Nn),Li(y,null,null,p)}function qx(r,o,d,p,v,S){var T=x,N=r;if(typeof r=="function")Wx(r)?(T=g,N=Bx(N)):N=Sh(N);else if(typeof r=="string")T=b;else e:switch(r){case Ia:return ld(d.children,v,S,o);case Nr:T=M,v|=Gn,(v&on)!==Rt&&(v|=Mn);break;case So:return npe(d,v,S,o);case et:return rpe(d,v,S,o);case ut:return ape(d,v,S,o);case Mr:return iD(d,v,S,o);case nr:case un:case ir:case pa:case an:default:{if(typeof r=="object"&&r!==null)switch(r.$$typeof){case tr:T=P;break e;case J:T=L;break e;case Oe:T=F,N=Hx(N);break e;case Gt:T=H;break e;case Ht:T=q,N=null;break e}var I="";{(r===void 0||typeof r=="object"&&r!==null&&Object.keys(r).length===0)&&(I+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var B=p?Bt(p):null;B&&(I+=`
235
+
236
+ Check the render method of \``+B+"`.")}throw new Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) "+("but got: "+(r==null?r:typeof r)+"."+I))}}var W=Li(T,d,o,v);return W.elementType=r,W.type=N,W.lanes=S,W._debugOwner=p,W}function Gx(r,o,d){var p=null;p=r._owner;var v=r.type,S=r.key,T=r.props,N=qx(v,S,T,p,o,d);return N._debugSource=r._source,N._debugOwner=r._owner,N}function ld(r,o,d,p){var v=Li(R,r,p,o);return v.lanes=d,v}function npe(r,o,d,p){typeof r.id!="string"&&u('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof r.id);var v=Li(D,r,p,o|Nn);return v.elementType=So,v.lanes=d,v.stateNode={effectDuration:0,passiveEffectDuration:0},v}function rpe(r,o,d,p){var v=Li(V,r,p,o);return v.elementType=et,v.lanes=d,v}function ape(r,o,d,p){var v=Li(ge,r,p,o);return v.elementType=ut,v.lanes=d,v}function iD(r,o,d,p){var v=Li(we,r,p,o);v.elementType=Mr,v.lanes=d;var S={isHidden:!1};return v.stateNode=S,v}function Yx(r,o,d){var p=Li(_,r,null,o);return p.lanes=d,p}function ope(){var r=Li(b,null,null,Rt);return r.elementType="DELETED",r}function ipe(r){var o=Li(_e,null,null,Rt);return o.stateNode=r,o}function Jx(r,o,d){var p=r.children!==null?r.children:[],v=Li(k,p,r.key,o);return v.lanes=d,v.stateNode={containerInfo:r.containerInfo,pendingChildren:null,implementation:r.implementation},v}function sD(r,o){return r===null&&(r=Li(x,null,null,Rt)),r.tag=o.tag,r.key=o.key,r.elementType=o.elementType,r.type=o.type,r.stateNode=o.stateNode,r.return=o.return,r.child=o.child,r.sibling=o.sibling,r.index=o.index,r.ref=o.ref,r.pendingProps=o.pendingProps,r.memoizedProps=o.memoizedProps,r.updateQueue=o.updateQueue,r.memoizedState=o.memoizedState,r.dependencies=o.dependencies,r.mode=o.mode,r.flags=o.flags,r.subtreeFlags=o.subtreeFlags,r.deletions=o.deletions,r.lanes=o.lanes,r.childLanes=o.childLanes,r.alternate=o.alternate,r.actualDuration=o.actualDuration,r.actualStartTime=o.actualStartTime,r.selfBaseDuration=o.selfBaseDuration,r.treeBaseDuration=o.treeBaseDuration,r._debugSource=o._debugSource,r._debugOwner=o._debugOwner,r._debugNeedsRemount=o._debugNeedsRemount,r._debugHookTypes=o._debugHookTypes,r}function spe(r,o,d,p,v){this.tag=o,this.containerInfo=r,this.pendingChildren=null,this.current=null,this.pingCache=null,this.finishedWork=null,this.timeoutHandle=M6,this.context=null,this.pendingContext=null,this.callbackNode=null,this.callbackPriority=Tn,this.eventTimes=mf(Le),this.expirationTimes=mf(er),this.pendingLanes=Le,this.suspendedLanes=Le,this.pingedLanes=Le,this.expiredLanes=Le,this.mutableReadLanes=Le,this.finishedLanes=Le,this.entangledLanes=Le,this.entanglements=mf(Le),this.identifierPrefix=p,this.onRecoverableError=v,this.mutableSourceEagerHydrationData=null,this.effectDuration=0,this.passiveEffectDuration=0;{this.memoizedUpdaters=new Set;for(var S=this.pendingUpdatersLaneMap=[],T=0;T<wu;T++)S.push(new Set)}switch(o){case hy:this._debugRootType=d?"hydrateRoot()":"createRoot()";break;case Yc:this._debugRootType=d?"hydrate()":"render()";break}}function lD(r,o,d,p,v,S,T,N,I,B){var W=new spe(r,o,d,N,I),re=tpe(o,S);W.current=re,re.stateNode=W;{var te={element:p,isDehydrated:d,cache:null,transitions:null,pendingSuspenseBoundaries:null};re.memoizedState=te}return u8(re),W}var Xx="18.3.1";function lpe(r,o,d){var p=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;return St(p),{$$typeof:yr,key:p==null?null:""+p,children:r,containerInfo:o,implementation:d}}var Kx,Qx;Kx=!1,Qx={};function uD(r){if(!r)return Oi;var o=Mc(r),d=$ue(o);if(o.tag===g){var p=o.type;if(jl(p))return jO(o,p,d)}return d}function upe(r,o){{var d=Mc(r);if(d===void 0){if(typeof r.render=="function")throw new Error("Unable to find node on an unmounted component.");var p=Object.keys(r).join(",");throw new Error("Argument appears to not be a ReactComponent. Keys: "+p)}var v=ao(d);if(v===null)return null;if(v.mode&Gn){var S=Bt(d)||"Component";if(!Qx[S]){Qx[S]=!0;var T=ha;try{Zn(v),d.mode&Gn?u("%s is deprecated in StrictMode. %s was passed an instance of %s which is inside StrictMode. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-find-node",o,o,S):u("%s is deprecated in StrictMode. %s was passed an instance of %s which renders StrictMode children. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-find-node",o,o,S)}finally{T?Zn(T):sr()}}}return v.stateNode}}function cD(r,o,d,p,v,S,T,N){var I=!1,B=null;return lD(r,o,I,B,d,p,v,S,T)}function dD(r,o,d,p,v,S,T,N,I,B){var W=!0,re=lD(d,p,W,r,v,S,T,N,I);re.context=uD(null);var te=re.current,ce=Lo(),pe=id(te),Ce=zu(ce,pe);return Ce.callback=o!=null?o:null,Kc(te,Ce,pe),gfe(re,pe,ce),re}function Tv(r,o,d,p){Jm(o,r);var v=o.current,S=Lo(),T=id(v);Cr(T);var N=uD(d);o.context===null?o.context=N:o.pendingContext=N,Vi&&ha!==null&&!Kx&&(Kx=!0,u(`Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate.
237
+
238
+ Check the render method of %s.`,Bt(ha)||"Unknown"));var I=zu(S,T);I.payload={element:r},p=p===void 0?null:p,p!==null&&(typeof p!="function"&&u("render(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",p),I.callback=p);var B=Kc(v,I,T);return B!==null&&(_a(B,v,T,S),Ay(B,v,T)),T}function y3(r){var o=r.current;if(!o.child)return null;switch(o.child.tag){case b:return o.child.stateNode;default:return o.child.stateNode}}function cpe(r){switch(r.tag){case y:{var o=r.stateNode;if(D1(o)){var d=h2(o);wfe(o,d)}break}case V:{Vu(function(){var v=ii(r,Ft);if(v!==null){var S=Lo();_a(v,r,Ft,S)}});var p=Ft;ew(r,p);break}}}function fD(r,o){var d=r.memoizedState;d!==null&&d.dehydrated!==null&&(d.retryLane=x2(d.retryLane,o))}function ew(r,o){fD(r,o);var d=r.alternate;d&&fD(d,o)}function dpe(r){if(r.tag===V){var o=uf,d=ii(r,o);if(d!==null){var p=Lo();_a(d,r,o,p)}ew(r,o)}}function fpe(r){if(r.tag===V){var o=id(r),d=ii(r,o);if(d!==null){var p=Lo();_a(d,r,o,p)}ew(r,o)}}function pD(r){var o=mr(r);return o===null?null:o.stateNode}var hD=function(r){return null};function ppe(r){return hD(r)}var mD=function(r){return!1};function hpe(r){return mD(r)}var gD=null,vD=null,yD=null,xD=null,wD=null,bD=null,CD=null,SD=null,kD=null;{var ED=function(r,o,d){var p=o[d],v=rn(r)?r.slice():en({},r);return d+1===o.length?(rn(v)?v.splice(p,1):delete v[p],v):(v[p]=ED(r[p],o,d+1),v)},_D=function(r,o){return ED(r,o,0)},TD=function(r,o,d,p){var v=o[p],S=rn(r)?r.slice():en({},r);if(p+1===o.length){var T=d[p];S[T]=S[v],rn(S)?S.splice(v,1):delete S[v]}else S[v]=TD(r[v],o,d,p+1);return S},RD=function(r,o,d){if(o.length!==d.length){l("copyWithRename() expects paths of the same length");return}else for(var p=0;p<d.length-1;p++)if(o[p]!==d[p]){l("copyWithRename() expects paths to be the same except for the deepest key");return}return TD(r,o,d,0)},AD=function(r,o,d,p){if(d>=o.length)return p;var v=o[d],S=rn(r)?r.slice():en({},r);return S[v]=AD(r[v],o,d+1,p),S},ND=function(r,o,d){return AD(r,o,0,d)},tw=function(r,o){for(var d=r.memoizedState;d!==null&&o>0;)d=d.next,o--;return d};gD=function(r,o,d,p){var v=tw(r,o);if(v!==null){var S=ND(v.memoizedState,d,p);v.memoizedState=S,v.baseState=S,r.memoizedProps=en({},r.memoizedProps);var T=ii(r,Ft);T!==null&&_a(T,r,Ft,er)}},vD=function(r,o,d){var p=tw(r,o);if(p!==null){var v=_D(p.memoizedState,d);p.memoizedState=v,p.baseState=v,r.memoizedProps=en({},r.memoizedProps);var S=ii(r,Ft);S!==null&&_a(S,r,Ft,er)}},yD=function(r,o,d,p){var v=tw(r,o);if(v!==null){var S=RD(v.memoizedState,d,p);v.memoizedState=S,v.baseState=S,r.memoizedProps=en({},r.memoizedProps);var T=ii(r,Ft);T!==null&&_a(T,r,Ft,er)}},xD=function(r,o,d){r.pendingProps=ND(r.memoizedProps,o,d),r.alternate&&(r.alternate.pendingProps=r.pendingProps);var p=ii(r,Ft);p!==null&&_a(p,r,Ft,er)},wD=function(r,o){r.pendingProps=_D(r.memoizedProps,o),r.alternate&&(r.alternate.pendingProps=r.pendingProps);var d=ii(r,Ft);d!==null&&_a(d,r,Ft,er)},bD=function(r,o,d){r.pendingProps=RD(r.memoizedProps,o,d),r.alternate&&(r.alternate.pendingProps=r.pendingProps);var p=ii(r,Ft);p!==null&&_a(p,r,Ft,er)},CD=function(r){var o=ii(r,Ft);o!==null&&_a(o,r,Ft,er)},SD=function(r){hD=r},kD=function(r){mD=r}}function mpe(r){var o=ao(r);return o===null?null:o.stateNode}function gpe(r){return null}function vpe(){return ha}function ype(r){var o=r.findFiberByHostInstance,d=n.ReactCurrentDispatcher;return Ic({bundleType:r.bundleType,version:r.version,rendererPackageName:r.rendererPackageName,rendererConfig:r.rendererConfig,overrideHookState:gD,overrideHookStateDeletePath:vD,overrideHookStateRenamePath:yD,overrideProps:xD,overridePropsDeletePath:wD,overridePropsRenamePath:bD,setErrorHandler:SD,setSuspenseHandler:kD,scheduleUpdate:CD,currentDispatcherRef:d,findHostInstanceByFiber:mpe,findFiberByHostInstance:o||gpe,findHostInstancesForRefresh:Gfe,scheduleRefresh:Wfe,scheduleRoot:qfe,setRefreshHandler:Zfe,getCurrentFiber:vpe,reconcilerVersion:Xx})}var MD=typeof reportError=="function"?reportError:function(r){console.error(r)};function nw(r){this._internalRoot=r}x3.prototype.render=nw.prototype.render=function(r){var o=this._internalRoot;if(o===null)throw new Error("Cannot update an unmounted root.");{typeof arguments[1]=="function"?u("render(...): does not support the second callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."):w3(arguments[1])?u("You passed a container to the second argument of root.render(...). You don't need to pass it again since you already passed it to create the root."):typeof arguments[1]!="undefined"&&u("You passed a second argument to root.render(...) but it only accepts one argument.");var d=o.containerInfo;if(d.nodeType!==zr){var p=pD(o.current);p&&p.parentNode!==d&&u("render(...): It looks like the React-rendered content of the root container was removed without using React. This is not supported and will cause errors. Instead, call root.unmount() to empty a root's container.")}}Tv(r,o,null,null)},x3.prototype.unmount=nw.prototype.unmount=function(){typeof arguments[0]=="function"&&u("unmount(...): does not support a callback argument. To execute a side effect after rendering, declare it in a component body with useEffect().");var r=this._internalRoot;if(r!==null){this._internalRoot=null;var o=r.containerInfo;VI()&&u("Attempted to synchronously unmount a root while React was already rendering. React cannot finish unmounting the root until the current render has completed, which may lead to a race condition."),Vu(function(){Tv(null,r,null,null)}),MO(o)}};function xpe(r,o){if(!w3(r))throw new Error("createRoot(...): Target container is not a DOM element.");OD(r);var d=!1,p=!1,v="",S=MD;o!=null&&(o.hydrate?l("hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead."):typeof o=="object"&&o!==null&&o.$$typeof===Ar&&u(`You passed a JSX element to createRoot. You probably meant to call root.render instead. Example usage:
239
+
240
+ let root = createRoot(domContainer);
241
+ root.render(<App />);`),o.unstable_strictMode===!0&&(d=!0),o.identifierPrefix!==void 0&&(v=o.identifierPrefix),o.onRecoverableError!==void 0&&(S=o.onRecoverableError),o.transitionCallbacks!==void 0&&o.transitionCallbacks);var T=cD(r,hy,null,d,p,v,S);sy(T.current,r);var N=r.nodeType===zr?r.parentNode:r;return Lg(N),new nw(T)}function x3(r){this._internalRoot=r}function wpe(r){r&&A2(r)}x3.prototype.unstable_scheduleHydration=wpe;function bpe(r,o,d){if(!w3(r))throw new Error("hydrateRoot(...): Target container is not a DOM element.");OD(r),o===void 0&&u("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var p=d!=null?d:null,v=d!=null&&d.hydratedSources||null,S=!1,T=!1,N="",I=MD;d!=null&&(d.unstable_strictMode===!0&&(S=!0),d.identifierPrefix!==void 0&&(N=d.identifierPrefix),d.onRecoverableError!==void 0&&(I=d.onRecoverableError));var B=dD(o,null,r,hy,p,S,T,N,I);if(sy(B.current,r),Lg(r),v)for(var W=0;W<v.length;W++){var re=v[W];Ece(B,re)}return new x3(B)}function w3(r){return!!(r&&(r.nodeType===to||r.nodeType===Ts||r.nodeType===Dm))}function Rv(r){return!!(r&&(r.nodeType===to||r.nodeType===Ts||r.nodeType===Dm||r.nodeType===zr&&r.nodeValue===" react-mount-point-unstable "))}function OD(r){r.nodeType===to&&r.tagName&&r.tagName.toUpperCase()==="BODY"&&u("createRoot(): Creating roots directly with document.body is discouraged, since its children are often manipulated by third-party scripts and browser extensions. This may lead to subtle reconciliation issues. Try using a container element created for your app."),$g(r)&&(r._reactRootContainer?u("You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported."):u("You are calling ReactDOMClient.createRoot() on a container that has already been passed to createRoot() before. Instead, call root.render() on the existing root instead if you want to update it."))}var Cpe=n.ReactCurrentOwner,LD;LD=function(r){if(r._reactRootContainer&&r.nodeType!==zr){var o=pD(r._reactRootContainer.current);o&&o.parentNode!==r&&u("render(...): It looks like the React-rendered content of this container was removed without using React. This is not supported and will cause errors. Instead, call ReactDOM.unmountComponentAtNode to empty a container.")}var d=!!r._reactRootContainer,p=rw(r),v=!!(p&&qc(p));v&&!d&&u("render(...): Replacing React-rendered children with a new root component. If you intended to update the children of this node, you should instead have the existing children update their state and render the new components instead of calling ReactDOM.render."),r.nodeType===to&&r.tagName&&r.tagName.toUpperCase()==="BODY"&&u("render(): Rendering components directly into document.body is discouraged, since its children are often manipulated by third-party scripts and browser extensions. This may lead to subtle reconciliation issues. Try rendering into a container element created for your app.")};function rw(r){return r?r.nodeType===Ts?r.documentElement:r.firstChild:null}function ID(){}function Spe(r,o,d,p,v){if(v){if(typeof p=="function"){var S=p;p=function(){var te=y3(T);S.call(te)}}var T=dD(o,p,r,Yc,null,!1,!1,"",ID);r._reactRootContainer=T,sy(T.current,r);var N=r.nodeType===zr?r.parentNode:r;return Lg(N),Vu(),T}else{for(var I;I=r.lastChild;)r.removeChild(I);if(typeof p=="function"){var B=p;p=function(){var te=y3(W);B.call(te)}}var W=cD(r,Yc,null,!1,!1,"",ID);r._reactRootContainer=W,sy(W.current,r);var re=r.nodeType===zr?r.parentNode:r;return Lg(re),Vu(function(){Tv(o,W,d,p)}),W}}function kpe(r,o){r!==null&&typeof r!="function"&&u("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",o,r)}function b3(r,o,d,p,v){LD(d),kpe(v===void 0?null:v,"render");var S=d._reactRootContainer,T;if(!S)T=Spe(d,o,r,v,p);else{if(T=S,typeof v=="function"){var N=v;v=function(){var I=y3(T);N.call(I)}}Tv(o,T,r,v)}return y3(T)}var DD=!1;function Epe(r){{DD||(DD=!0,u("findDOMNode is deprecated and will be removed in the next major release. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-find-node"));var o=Cpe.current;if(o!==null&&o.stateNode!==null){var d=o.stateNode._warnedAboutRefsInRender;d||u("%s is accessing findDOMNode inside its render(). render() should be a pure function of props and state. It should never access something that requires stale data from the previous render, such as refs. Move this logic to componentDidMount and componentDidUpdate instead.",Cn(o.type)||"A component"),o.stateNode._warnedAboutRefsInRender=!0}}return r==null?null:r.nodeType===to?r:upe(r,"findDOMNode")}function _pe(r,o,d){if(u("ReactDOM.hydrate is no longer supported in React 18. Use hydrateRoot instead. Until you switch to the new API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot"),!Rv(o))throw new Error("Target container is not a DOM element.");{var p=$g(o)&&o._reactRootContainer===void 0;p&&u("You are calling ReactDOM.hydrate() on a container that was previously passed to ReactDOMClient.createRoot(). This is not supported. Did you mean to call hydrateRoot(container, element)?")}return b3(null,r,o,!0,d)}function Tpe(r,o,d){if(u("ReactDOM.render is no longer supported in React 18. Use createRoot instead. Until you switch to the new API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot"),!Rv(o))throw new Error("Target container is not a DOM element.");{var p=$g(o)&&o._reactRootContainer===void 0;p&&u("You are calling ReactDOM.render() on a container that was previously passed to ReactDOMClient.createRoot(). This is not supported. Did you mean to call root.render(element)?")}return b3(null,r,o,!1,d)}function Rpe(r,o,d,p){if(u("ReactDOM.unstable_renderSubtreeIntoContainer() is no longer supported in React 18. Consider using a portal instead. Until you switch to the createRoot API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot"),!Rv(d))throw new Error("Target container is not a DOM element.");if(r==null||!e6(r))throw new Error("parentComponent must be a valid React Component");return b3(r,o,d,!1,p)}var jD=!1;function Ape(r){if(jD||(jD=!0,u("unmountComponentAtNode is deprecated and will be removed in the next major release. Switch to the createRoot API. Learn more: https://reactjs.org/link/switch-to-createroot")),!Rv(r))throw new Error("unmountComponentAtNode(...): Target container is not a DOM element.");{var o=$g(r)&&r._reactRootContainer===void 0;o&&u("You are calling ReactDOM.unmountComponentAtNode() on a container that was previously passed to ReactDOMClient.createRoot(). This is not supported. Did you mean to call root.unmount()?")}if(r._reactRootContainer){{var d=rw(r),p=d&&!qc(d);p&&u("unmountComponentAtNode(): The node you're attempting to unmount was rendered by another copy of React.")}return Vu(function(){b3(null,null,r,!1,function(){r._reactRootContainer=null,MO(r)})}),!0}else{{var v=rw(r),S=!!(v&&qc(v)),T=r.nodeType===to&&Rv(r.parentNode)&&!!r.parentNode._reactRootContainer;S&&u("unmountComponentAtNode(): The node you're attempting to unmount was rendered by React and is not a top-level container. %s",T?"You may have accidentally passed in a React root node instead of its container.":"Instead, have the parent component update its state and rerender in order to remove this component.")}return!1}}Ma(cpe),Fc(dpe),E2(fpe),wf(ri),gg(C2),(typeof Map!="function"||Map.prototype==null||typeof Map.prototype.forEach!="function"||typeof Set!="function"||Set.prototype==null||typeof Set.prototype.clear!="function"||typeof Set.prototype.forEach!="function")&&u("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),Kp(Mle),Q7(Ix,bfe,Vu);function Npe(r,o){var d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!w3(o))throw new Error("Target container is not a DOM element.");return lpe(r,o,null,d)}function Mpe(r,o,d,p){return Rpe(r,o,d,p)}var aw={usingClientEntryPoint:!1,Events:[qc,eh,ly,Tc,Qp,Ix]};function Ope(r,o){return aw.usingClientEntryPoint||u('You are importing createRoot from "react-dom" which is not supported. You should instead import it from "react-dom/client".'),xpe(r,o)}function Lpe(r,o,d){return aw.usingClientEntryPoint||u('You are importing hydrateRoot from "react-dom" which is not supported. You should instead import it from "react-dom/client".'),bpe(r,o,d)}function Ipe(r){return VI()&&u("flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task."),Vu(r)}var Dpe=ype({findFiberByHostInstance:If,bundleType:1,version:Xx,rendererPackageName:"react-dom"});if(!Dpe&&tt&&window.top===window.self&&(navigator.userAgent.indexOf("Chrome")>-1&&navigator.userAgent.indexOf("Edge")===-1||navigator.userAgent.indexOf("Firefox")>-1)){var PD=window.location.protocol;/^(https?|file):$/.test(PD)&&console.info("%cDownload the React DevTools for a better development experience: https://reactjs.org/link/react-devtools"+(PD==="file:"?`
242
+ You might need to use a local HTTP server (instead of file://): https://reactjs.org/link/react-devtools-faq`:""),"font-weight:bold")}zo.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=aw,zo.createPortal=Npe,zo.createRoot=Ope,zo.findDOMNode=Epe,zo.flushSync=Ipe,zo.hydrate=_pe,zo.hydrateRoot=Lpe,zo.render=Tpe,zo.unmountComponentAtNode=Ape,zo.unstable_batchedUpdates=Ix,zo.unstable_renderSubtreeIntoContainer=Mpe,zo.version=Xx,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__!="undefined"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()),zo}function yw(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__=="undefined"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function")){if(process.env.NODE_ENV!=="production")throw new Error("^_^");try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(yw)}catch(e){console.error(e)}}}process.env.NODE_ENV==="production"?(yw(),E3.exports=qD()):E3.exports=GD();var Zl=E3.exports;const YD=Wu(Zl);var Ov,Lv=Zl;if(process.env.NODE_ENV==="production")Ov=Lv.createRoot,Lv.hydrateRoot;else{var xw=Lv.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;Ov=function(e,t){xw.usingClientEntryPoint=!0;try{return Lv.createRoot(e,t)}finally{xw.usingClientEntryPoint=!1}}}const ww=e=>{let t;const n=new Set,a=(g,x)=>{const y=typeof g=="function"?g(t):g;if(!Object.is(y,t)){const k=t;t=(x!=null?x:typeof y!="object"||y===null)?y:Object.assign({},t,y),n.forEach(b=>b(t,k))}},i=()=>t,f={setState:a,getState:i,getInitialState:()=>h,subscribe:g=>(n.add(g),()=>n.delete(g))},h=t=e(a,i,f);return f},JD=e=>e?ww(e):ww,XD=e=>e;function KD(e,t=XD){const n=Po.useSyncExternalStore(e.subscribe,Po.useCallback(()=>t(e.getState()),[e,t]),Po.useCallback(()=>t(e.getInitialState()),[e,t]));return Po.useDebugValue(n),n}const bw=e=>{const t=JD(e),n=a=>KD(t,a);return Object.assign(n,t),n},QD=e=>e?bw(e):bw,ej=e=>(t,n,a)=>{const i=a.subscribe;return a.subscribe=(u,f,h)=>{let g=u;if(f){const x=(h==null?void 0:h.equalityFn)||Object.is;let y=u(a.getState());g=k=>{const b=u(k);if(!x(y,b)){const _=y;f(y=b,_)}},h!=null&&h.fireImmediately&&f(y,y)}return i(g)},e(t,n,a)},tj=e=>{var n;const t={chatStatus:((n=e.options)==null?void 0:n.chatStatus)||"hide",chatEntryVisible:!1,chatEntryVariant:"default",chatAreaPluginInstList:[],chatAreaPluginMap:new Map,chatEntryButtons:new Map,eventBus:e.eventBus,clientStyle:"",msgClearTimestamp:Date.now()};return QD()(ej(a=>({...t,setClientStyle:i=>a(()=>({clientStyle:i})),clearMessages:()=>a(()=>({msgClearTimestamp:Date.now()})),setChatStatus:i=>a(()=>({chatStatus:i})),setChatAreaPluginInstList:i=>a(()=>{let l=new Map;return i.forEach(u=>{l.set(u.pluginName,u)}),{chatAreaPluginMap:l,chatAreaPluginInstList:i}}),setChatAreaContainer:i=>a(()=>({chatAreaContainer:i})),setChatEntryVisible:(i,l)=>a(()=>({chatEntryVisible:i,chatEntryElWrapper:l})),setChatEntryVariant:i=>a(()=>({chatEntryVariant:i})),upsertChatEntryButton:i=>a(l=>{const u=new Map(l.chatEntryButtons);return u.set(i.id,i),{chatEntryButtons:u}}),removeChatEntryButton:i=>a(l=>{const u=new Map(l.chatEntryButtons);return u.delete(i),{chatEntryButtons:u}}),setChatEntryButtonVisible:(i,l)=>a(u=>{const f=u.chatEntryButtons.get(i);if(!f)return u;const h=new Map(u.chatEntryButtons);return h.set(i,{...f,visible:l}),{chatEntryButtons:h}})})))},nj=(e,t)=>{e.subscribe(n=>n.chatStatus,n=>{var l;const a=e.getState().eventBus,i=n!=="hide";(l=t.onChatStatusChange)==null||l.call(t,n),a.emit("chat-area-visibility-change",{visible:i,status:n}),console.log("chat status changed:",n)})},Cw=e=>Symbol.iterator in e,Sw=e=>"entries"in e,kw=(e,t)=>{const n=e instanceof Map?e:new Map(e.entries()),a=t instanceof Map?t:new Map(t.entries());if(n.size!==a.size)return!1;for(const[i,l]of n)if(!a.has(i)||!Object.is(l,a.get(i)))return!1;return!0},rj=(e,t)=>{const n=e[Symbol.iterator](),a=t[Symbol.iterator]();let i=n.next(),l=a.next();for(;!i.done&&!l.done;){if(!Object.is(i.value,l.value))return!1;i=n.next(),l=a.next()}return!!i.done&&!!l.done};function aj(e,t){return Object.is(e,t)?!0:typeof e!="object"||e===null||typeof t!="object"||t===null||Object.getPrototypeOf(e)!==Object.getPrototypeOf(t)?!1:Cw(e)&&Cw(t)?Sw(e)&&Sw(t)?kw(e,t):rj(e,t):kw({entries:()=>Object.entries(e)},{entries:()=>Object.entries(t)})}var R3={exports:{}},A3={},N3={exports:{}},M3={};/**
243
+ * @license React
244
+ * use-sync-external-store-shim.production.js
245
+ *
246
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
247
+ *
248
+ * This source code is licensed under the MIT license found in the
249
+ * LICENSE file in the root directory of this source tree.
250
+ */var Ew;function oj(){if(Ew)return M3;Ew=1;var e=O;function t(y,k){return y===k&&(y!==0||1/y===1/k)||y!==y&&k!==k}var n=typeof Object.is=="function"?Object.is:t,a=e.useState,i=e.useEffect,l=e.useLayoutEffect,u=e.useDebugValue;function f(y,k){var b=k(),_=a({inst:{value:b,getSnapshot:k}}),R=_[0].inst,M=_[1];return l(function(){R.value=b,R.getSnapshot=k,h(R)&&M({inst:R})},[y,b,k]),i(function(){return h(R)&&M({inst:R}),y(function(){h(R)&&M({inst:R})})},[y]),u(b),b}function h(y){var k=y.getSnapshot;y=y.value;try{var b=k();return!n(y,b)}catch(_){return!0}}function g(y,k){return k()}var x=typeof window=="undefined"||typeof window.document=="undefined"||typeof window.document.createElement=="undefined"?g:f;return M3.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:x,M3}var O3={};/**
251
+ * @license React
252
+ * use-sync-external-store-shim.development.js
253
+ *
254
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
255
+ *
256
+ * This source code is licensed under the MIT license found in the
257
+ * LICENSE file in the root directory of this source tree.
258
+ */var _w;function ij(){return _w||(_w=1,process.env.NODE_ENV!=="production"&&function(){function e(b,_){return b===_&&(b!==0||1/b===1/_)||b!==b&&_!==_}function t(b,_){x||i.startTransition===void 0||(x=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var R=_();if(!y){var M=_();l(R,M)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),y=!0)}M=u({inst:{value:R,getSnapshot:_}});var L=M[0].inst,P=M[1];return h(function(){L.value=R,L.getSnapshot=_,n(L)&&P({inst:L})},[b,R,_]),f(function(){return n(L)&&P({inst:L}),b(function(){n(L)&&P({inst:L})})},[b]),g(R),R}function n(b){var _=b.getSnapshot;b=b.value;try{var R=_();return!l(b,R)}catch(M){return!0}}function a(b,_){return _()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__!="undefined"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var i=O,l=typeof Object.is=="function"?Object.is:e,u=i.useState,f=i.useEffect,h=i.useLayoutEffect,g=i.useDebugValue,x=!1,y=!1,k=typeof window=="undefined"||typeof window.document=="undefined"||typeof window.document.createElement=="undefined"?a:t;O3.useSyncExternalStore=i.useSyncExternalStore!==void 0?i.useSyncExternalStore:k,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__!="undefined"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),O3}process.env.NODE_ENV==="production"?N3.exports=oj():N3.exports=ij();var Tw=N3.exports;/**
259
+ * @license React
260
+ * use-sync-external-store-shim/with-selector.production.js
261
+ *
262
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
263
+ *
264
+ * This source code is licensed under the MIT license found in the
265
+ * LICENSE file in the root directory of this source tree.
266
+ */var Rw;function sj(){if(Rw)return A3;Rw=1;var e=O,t=Tw;function n(g,x){return g===x&&(g!==0||1/g===1/x)||g!==g&&x!==x}var a=typeof Object.is=="function"?Object.is:n,i=t.useSyncExternalStore,l=e.useRef,u=e.useEffect,f=e.useMemo,h=e.useDebugValue;return A3.useSyncExternalStoreWithSelector=function(g,x,y,k,b){var _=l(null);if(_.current===null){var R={hasValue:!1,value:null};_.current=R}else R=_.current;_=f(function(){function L(H){if(!P){if(P=!0,F=H,H=k(H),b!==void 0&&R.hasValue){var Z=R.value;if(b(Z,H))return D=Z}return D=H}if(Z=D,a(F,H))return Z;var q=k(H);return b!==void 0&&b(Z,q)?(F=H,Z):(F=H,D=q)}var P=!1,F,D,V=y===void 0?null:y;return[function(){return L(x())},V===null?void 0:function(){return L(V())}]},[x,y,k,b]);var M=i(g,_[0],_[1]);return u(function(){R.hasValue=!0,R.value=M},[M]),h(M),M},A3}var L3={};/**
267
+ * @license React
268
+ * use-sync-external-store-shim/with-selector.development.js
269
+ *
270
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
271
+ *
272
+ * This source code is licensed under the MIT license found in the
273
+ * LICENSE file in the root directory of this source tree.
274
+ */var Aw;function lj(){return Aw||(Aw=1,process.env.NODE_ENV!=="production"&&function(){function e(g,x){return g===x&&(g!==0||1/g===1/x)||g!==g&&x!==x}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__!="undefined"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var t=O,n=Tw,a=typeof Object.is=="function"?Object.is:e,i=n.useSyncExternalStore,l=t.useRef,u=t.useEffect,f=t.useMemo,h=t.useDebugValue;L3.useSyncExternalStoreWithSelector=function(g,x,y,k,b){var _=l(null);if(_.current===null){var R={hasValue:!1,value:null};_.current=R}else R=_.current;_=f(function(){function L(H){if(!P){if(P=!0,F=H,H=k(H),b!==void 0&&R.hasValue){var Z=R.value;if(b(Z,H))return D=Z}return D=H}if(Z=D,a(F,H))return Z;var q=k(H);return b!==void 0&&b(Z,q)?(F=H,Z):(F=H,D=q)}var P=!1,F,D,V=y===void 0?null:y;return[function(){return L(x())},V===null?void 0:function(){return L(V())}]},[x,y,k,b]);var M=i(g,_[0],_[1]);return u(function(){R.hasValue=!0,R.value=M},[M]),h(M),M},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__!="undefined"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),L3}process.env.NODE_ENV==="production"?R3.exports=sj():R3.exports=lj();var uj=R3.exports;const cj=Wu(uj),{useSyncExternalStoreWithSelector:dj}=cj,fj=e=>e;function pj(e,t=fj,n){const a=dj(e.subscribe,e.getState,e.getInitialState,t,n);return Po.useDebugValue(a),a}const Nw=O.createContext(void 0),hj=({store:e,children:t})=>C.jsx(Nw.Provider,{value:{chatStore:e},children:t}),Wl=e=>{const t=O.useContext(Nw).chatStore;return pj(t,e,aj)};var Mw="vercel.ai.error",mj=Symbol.for(Mw),Ow,Lw,Jt=class FD extends(Lw=Error,Ow=mj,Lw){constructor({name:t,message:n,cause:a}){super(n),this[Ow]=!0,this.name=t,this.cause=a}static isInstance(t){return FD.hasMarker(t,Mw)}static hasMarker(t,n){const a=Symbol.for(n);return t!=null&&typeof t=="object"&&a in t&&typeof t[a]=="boolean"&&t[a]===!0}},Iw="AI_APICallError",Dw=`vercel.ai.error.${Iw}`,gj=Symbol.for(Dw),jw,Pw,yo=class extends(Pw=Jt,jw=gj,Pw){constructor({message:e,url:t,requestBodyValues:n,statusCode:a,responseHeaders:i,responseBody:l,cause:u,isRetryable:f=a!=null&&(a===408||a===409||a===429||a>=500),data:h}){super({name:Iw,message:e,cause:u}),this[jw]=!0,this.url=t,this.requestBodyValues=n,this.statusCode=a,this.responseHeaders=i,this.responseBody=l,this.isRetryable=f,this.data=h}static isInstance(e){return Jt.hasMarker(e,Dw)}},Fw="AI_EmptyResponseBodyError",zw=`vercel.ai.error.${Fw}`,vj=Symbol.for(zw),Uw,Bw,yj=class extends(Bw=Jt,Uw=vj,Bw){constructor({message:e="Empty response body"}={}){super({name:Fw,message:e}),this[Uw]=!0}static isInstance(e){return Jt.hasMarker(e,zw)}};function Xf(e){return e==null?"unknown error":typeof e=="string"?e:e instanceof Error?e.message:JSON.stringify(e)}var Hw="AI_InvalidArgumentError",Vw=`vercel.ai.error.${Hw}`,xj=Symbol.for(Vw),$w,Zw,Ww=class extends(Zw=Jt,$w=xj,Zw){constructor({message:t,cause:n,argument:a}){super({name:Hw,message:t,cause:n}),this[$w]=!0,this.argument=a}static isInstance(t){return Jt.hasMarker(t,Vw)}},qw="AI_InvalidPromptError",Gw=`vercel.ai.error.${qw}`,wj=Symbol.for(Gw),Yw,Jw,Kf=class extends(Jw=Jt,Yw=wj,Jw){constructor({prompt:e,message:t,cause:n}){super({name:qw,message:`Invalid prompt: ${t}`,cause:n}),this[Yw]=!0,this.prompt=e}static isInstance(e){return Jt.hasMarker(e,Gw)}},Xw="AI_InvalidResponseDataError",Kw=`vercel.ai.error.${Xw}`,bj=Symbol.for(Kw),Qw,eb,tb=class extends(eb=Jt,Qw=bj,eb){constructor({data:e,message:t=`Invalid response data: ${JSON.stringify(e)}.`}){super({name:Xw,message:t}),this[Qw]=!0,this.data=e}static isInstance(e){return Jt.hasMarker(e,Kw)}},nb="AI_JSONParseError",rb=`vercel.ai.error.${nb}`,Cj=Symbol.for(rb),ab,ob,Iv=class extends(ob=Jt,ab=Cj,ob){constructor({text:e,cause:t}){super({name:nb,message:`JSON parsing failed: Text: ${e}.
275
+ Error message: ${Xf(t)}`,cause:t}),this[ab]=!0,this.text=e}static isInstance(e){return Jt.hasMarker(e,rb)}},ib="AI_LoadAPIKeyError",sb=`vercel.ai.error.${ib}`,Sj=Symbol.for(sb),lb,ub,Dv=class extends(ub=Jt,lb=Sj,ub){constructor({message:e}){super({name:ib,message:e}),this[lb]=!0}static isInstance(e){return Jt.hasMarker(e,sb)}},cb="AI_NoSuchModelError",db=`vercel.ai.error.${cb}`,kj=Symbol.for(db),fb,pb,hb=class extends(pb=Jt,fb=kj,pb){constructor({errorName:e=cb,modelId:t,modelType:n,message:a=`No such ${n}: ${t}`}){super({name:e,message:a}),this[fb]=!0,this.modelId=t,this.modelType=n}static isInstance(e){return Jt.hasMarker(e,db)}},mb="AI_TypeValidationError",gb=`vercel.ai.error.${mb}`,Ej=Symbol.for(gb),vb,yb,Rh=class ow extends(yb=Jt,vb=Ej,yb){constructor({value:t,cause:n}){super({name:mb,message:`Type validation failed: Value: ${JSON.stringify(t)}.
276
+ Error message: ${Xf(n)}`,cause:n}),this[vb]=!0,this.value=t}static isInstance(t){return Jt.hasMarker(t,gb)}static wrap({value:t,cause:n}){return ow.isInstance(n)&&n.value===t?n:new ow({value:t,cause:n})}},xb="AI_UnsupportedFunctionalityError",wb=`vercel.ai.error.${xb}`,_j=Symbol.for(wb),bb,Cb,Tj=class extends(Cb=Jt,bb=_j,Cb){constructor({functionality:e,message:t=`'${e}' functionality not supported.`}){super({name:xb,message:t}),this[bb]=!0,this.functionality=e}static isInstance(e){return Jt.hasMarker(e,wb)}};class Sb extends Error{constructor(t,n){super(t),this.name="ParseError",this.type=n.type,this.field=n.field,this.value=n.value,this.line=n.line}}function I3(e){}function Rj(e){if(typeof e=="function")throw new TypeError("`callbacks` must be an object, got a function instead. Did you mean `{onEvent: fn}`?");const{onEvent:t=I3,onError:n=I3,onRetry:a=I3,onComment:i}=e;let l="",u=!0,f,h="",g="";function x(R){const M=u?R.replace(/^\xEF\xBB\xBF/,""):R,[L,P]=Aj(`${l}${M}`);for(const F of L)y(F);l=P,u=!1}function y(R){if(R===""){b();return}if(R.startsWith(":")){i&&i(R.slice(R.startsWith(": ")?2:1));return}const M=R.indexOf(":");if(M!==-1){const L=R.slice(0,M),P=R[M+1]===" "?2:1,F=R.slice(M+P);k(L,F,R);return}k(R,"",R)}function k(R,M,L){switch(R){case"event":g=M;break;case"data":h=`${h}${M}
277
+ `;break;case"id":f=M.includes("\0")?void 0:M;break;case"retry":/^\d+$/.test(M)?a(parseInt(M,10)):n(new Sb(`Invalid \`retry\` value: "${M}"`,{type:"invalid-retry",value:M,line:L}));break;default:n(new Sb(`Unknown field "${R.length>20?`${R.slice(0,20)}…`:R}"`,{type:"unknown-field",field:R,value:M,line:L}));break}}function b(){h.length>0&&t({id:f,event:g||void 0,data:h.endsWith(`
278
+ `)?h.slice(0,-1):h}),f=void 0,h="",g=""}function _(R={}){l&&R.consume&&y(l),u=!0,f=void 0,h="",g="",l=""}return{feed:x,reset:_}}function Aj(e){const t=[];let n="",a=0;for(;a<e.length;){const i=e.indexOf("\r",a),l=e.indexOf(`
279
+ `,a);let u=-1;if(i!==-1&&l!==-1?u=Math.min(i,l):i!==-1?i===e.length-1?u=-1:u=i:l!==-1&&(u=l),u===-1){n=e.slice(a);break}else{const f=e.slice(a,u);t.push(f),a=u+1,e[a-1]==="\r"&&e[a]===`
280
+ `&&a++}}return[t,n]}class Nj extends TransformStream{constructor({onError:t,onRetry:n,onComment:a}={}){let i;super({start(l){i=Rj({onEvent:u=>{l.enqueue(u)},onError(u){t==="terminate"?l.error(u):typeof t=="function"&&t(u)},onRetry:n,onComment:a})},transform(l){i.feed(l)}})}}function ke(e,t,n){var f;function a(h,g){if(h._zod||Object.defineProperty(h,"_zod",{value:{def:g,constr:u,traits:new Set},enumerable:!1}),h._zod.traits.has(e))return;h._zod.traits.add(e),t(h,g);const x=u.prototype,y=Object.keys(x);for(let k=0;k<y.length;k++){const b=y[k];b in h||(h[b]=x[b].bind(h))}}const i=(f=n==null?void 0:n.Parent)!=null?f:Object;class l extends i{}Object.defineProperty(l,"name",{value:e});function u(h){var y;var g;const x=n!=null&&n.Parent?new l:this;a(x,h),(y=(g=x._zod).deferred)!=null||(g.deferred=[]);for(const k of x._zod.deferred)k();return x}return Object.defineProperty(u,"init",{value:a}),Object.defineProperty(u,Symbol.hasInstance,{value:h=>{var g,x;return n!=null&&n.Parent&&h instanceof n.Parent?!0:(x=(g=h==null?void 0:h._zod)==null?void 0:g.traits)==null?void 0:x.has(e)}}),Object.defineProperty(u,"name",{value:e}),u}class Qf extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class kb extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}}const Eb={};function qu(e){return Eb}function _b(e){const t=Object.values(e).filter(a=>typeof a=="number");return Object.entries(e).filter(([a,i])=>t.indexOf(+a)===-1).map(([a,i])=>i)}function D3(e,t){return typeof t=="bigint"?t.toString():t}function jv(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function j3(e){return e==null}function P3(e){const t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}function Mj(e,t){const n=(e.toString().split(".")[1]||"").length,a=t.toString();let i=(a.split(".")[1]||"").length;if(i===0&&/\d?e-\d?/.test(a)){const h=a.match(/\d?e-(\d?)/);h!=null&&h[1]&&(i=Number.parseInt(h[1]))}const l=n>i?n:i,u=Number.parseInt(e.toFixed(l).replace(".","")),f=Number.parseInt(t.toFixed(l).replace(".",""));return u%f/10**l}const Tb=Symbol("evaluating");function kn(e,t,n){let a;Object.defineProperty(e,t,{get(){if(a!==Tb)return a===void 0&&(a=Tb,a=n()),a},set(i){Object.defineProperty(e,t,{value:i})},configurable:!0})}function ud(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function Gu(...e){const t={};for(const n of e){const a=Object.getOwnPropertyDescriptors(n);Object.assign(t,a)}return Object.defineProperties({},t)}function Rb(e){return JSON.stringify(e)}function Oj(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const Ab="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Ah(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const Lj=jv(()=>{var e;if(typeof navigator!="undefined"&&((e=navigator==null?void 0:navigator.userAgent)!=null&&e.includes("Cloudflare")))return!1;try{const t=Function;return new t(""),!0}catch(t){return!1}});function ep(e){if(Ah(e)===!1)return!1;const t=e.constructor;if(t===void 0||typeof t!="function")return!0;const n=t.prototype;return!(Ah(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function Nb(e){return ep(e)?{...e}:Array.isArray(e)?[...e]:e}const Ij=new Set(["string","number","symbol"]);function tp(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Yu(e,t,n){const a=new e._zod.constr(t!=null?t:e._zod.def);return(!t||n!=null&&n.parent)&&(a._zod.parent=e),a}function wt(e){const t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if((t==null?void 0:t.message)!==void 0){if((t==null?void 0:t.error)!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function Dj(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}const jj={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function Pj(e,t){const n=e._zod.def,a=n.checks;if(a&&a.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");const l=Gu(e._zod.def,{get shape(){const u={};for(const f in t){if(!(f in n.shape))throw new Error(`Unrecognized key: "${f}"`);t[f]&&(u[f]=n.shape[f])}return ud(this,"shape",u),u},checks:[]});return Yu(e,l)}function Fj(e,t){const n=e._zod.def,a=n.checks;if(a&&a.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");const l=Gu(e._zod.def,{get shape(){const u={...e._zod.def.shape};for(const f in t){if(!(f in n.shape))throw new Error(`Unrecognized key: "${f}"`);t[f]&&delete u[f]}return ud(this,"shape",u),u},checks:[]});return Yu(e,l)}function zj(e,t){if(!ep(t))throw new Error("Invalid input to extend: expected a plain object");const n=e._zod.def.checks;if(n&&n.length>0){const l=e._zod.def.shape;for(const u in t)if(Object.getOwnPropertyDescriptor(l,u)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}const i=Gu(e._zod.def,{get shape(){const l={...e._zod.def.shape,...t};return ud(this,"shape",l),l}});return Yu(e,i)}function Uj(e,t){if(!ep(t))throw new Error("Invalid input to safeExtend: expected a plain object");const n=Gu(e._zod.def,{get shape(){const a={...e._zod.def.shape,...t};return ud(this,"shape",a),a}});return Yu(e,n)}function Bj(e,t){const n=Gu(e._zod.def,{get shape(){const a={...e._zod.def.shape,...t._zod.def.shape};return ud(this,"shape",a),a},get catchall(){return t._zod.def.catchall},checks:[]});return Yu(e,n)}function Hj(e,t,n){const i=t._zod.def.checks;if(i&&i.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");const u=Gu(t._zod.def,{get shape(){const f=t._zod.def.shape,h={...f};if(n)for(const g in n){if(!(g in f))throw new Error(`Unrecognized key: "${g}"`);n[g]&&(h[g]=e?new e({type:"optional",innerType:f[g]}):f[g])}else for(const g in f)h[g]=e?new e({type:"optional",innerType:f[g]}):f[g];return ud(this,"shape",h),h},checks:[]});return Yu(t,u)}function Vj(e,t,n){const a=Gu(t._zod.def,{get shape(){const i=t._zod.def.shape,l={...i};if(n)for(const u in n){if(!(u in l))throw new Error(`Unrecognized key: "${u}"`);n[u]&&(l[u]=new e({type:"nonoptional",innerType:i[u]}))}else for(const u in i)l[u]=new e({type:"nonoptional",innerType:i[u]});return ud(this,"shape",l),l}});return Yu(t,a)}function np(e,t=0){var n;if(e.aborted===!0)return!0;for(let a=t;a<e.issues.length;a++)if(((n=e.issues[a])==null?void 0:n.continue)!==!0)return!0;return!1}function rp(e,t){return t.map(n=>{var i;var a;return(i=(a=n).path)!=null||(a.path=[]),n.path.unshift(e),n})}function Pv(e){return typeof e=="string"?e:e==null?void 0:e.message}function Ju(e,t,n){var i,l,u,f,h,g,x,y,k,b,_;const a={...e,path:(i=e.path)!=null?i:[]};if(!e.message){const R=(_=(b=(y=(g=Pv((f=(u=(l=e.inst)==null?void 0:l._zod.def)==null?void 0:u.error)==null?void 0:f.call(u,e)))!=null?g:Pv((h=t==null?void 0:t.error)==null?void 0:h.call(t,e)))!=null?y:Pv((x=n.customError)==null?void 0:x.call(n,e)))!=null?b:Pv((k=n.localeError)==null?void 0:k.call(n,e)))!=null?_:"Invalid input";a.message=R}return delete a.inst,delete a.continue,t!=null&&t.reportInput||delete a.input,a}function F3(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function Nh(...e){const[t,n,a]=e;return typeof t=="string"?{message:t,code:"custom",input:n,inst:a}:{...t}}const Mb=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,D3,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},Ob=ke("$ZodError",Mb),Lb=ke("$ZodError",Mb,{Parent:Error});function $j(e,t=n=>n.message){const n={},a=[];for(const i of e.issues)i.path.length>0?(n[i.path[0]]=n[i.path[0]]||[],n[i.path[0]].push(t(i))):a.push(t(i));return{formErrors:a,fieldErrors:n}}function Zj(e,t=n=>n.message){const n={_errors:[]},a=i=>{for(const l of i.issues)if(l.code==="invalid_union"&&l.errors.length)l.errors.map(u=>a({issues:u}));else if(l.code==="invalid_key")a({issues:l.issues});else if(l.code==="invalid_element")a({issues:l.issues});else if(l.path.length===0)n._errors.push(t(l));else{let u=n,f=0;for(;f<l.path.length;){const h=l.path[f];f===l.path.length-1?(u[h]=u[h]||{_errors:[]},u[h]._errors.push(t(l))):u[h]=u[h]||{_errors:[]},u=u[h],f++}}};return a(e),n}const z3=e=>(t,n,a,i)=>{var f;const l=a?Object.assign(a,{async:!1}):{async:!1},u=t._zod.run({value:n,issues:[]},l);if(u instanceof Promise)throw new Qf;if(u.issues.length){const h=new((f=i==null?void 0:i.Err)!=null?f:e)(u.issues.map(g=>Ju(g,l,qu())));throw Ab(h,i==null?void 0:i.callee),h}return u.value},U3=e=>async(t,n,a,i)=>{var f;const l=a?Object.assign(a,{async:!0}):{async:!0};let u=t._zod.run({value:n,issues:[]},l);if(u instanceof Promise&&(u=await u),u.issues.length){const h=new((f=i==null?void 0:i.Err)!=null?f:e)(u.issues.map(g=>Ju(g,l,qu())));throw Ab(h,i==null?void 0:i.callee),h}return u.value},Fv=e=>(t,n,a)=>{const i=a?{...a,async:!1}:{async:!1},l=t._zod.run({value:n,issues:[]},i);if(l instanceof Promise)throw new Qf;return l.issues.length?{success:!1,error:new(e!=null?e:Ob)(l.issues.map(u=>Ju(u,i,qu())))}:{success:!0,data:l.value}},Wj=Fv(Lb),zv=e=>async(t,n,a)=>{const i=a?Object.assign(a,{async:!0}):{async:!0};let l=t._zod.run({value:n,issues:[]},i);return l instanceof Promise&&(l=await l),l.issues.length?{success:!1,error:new e(l.issues.map(u=>Ju(u,i,qu())))}:{success:!0,data:l.value}},qj=zv(Lb),Gj=e=>(t,n,a)=>{const i=a?Object.assign(a,{direction:"backward"}):{direction:"backward"};return z3(e)(t,n,i)},Yj=e=>(t,n,a)=>z3(e)(t,n,a),Jj=e=>async(t,n,a)=>{const i=a?Object.assign(a,{direction:"backward"}):{direction:"backward"};return U3(e)(t,n,i)},Xj=e=>async(t,n,a)=>U3(e)(t,n,a),Kj=e=>(t,n,a)=>{const i=a?Object.assign(a,{direction:"backward"}):{direction:"backward"};return Fv(e)(t,n,i)},Qj=e=>(t,n,a)=>Fv(e)(t,n,a),eP=e=>async(t,n,a)=>{const i=a?Object.assign(a,{direction:"backward"}):{direction:"backward"};return zv(e)(t,n,i)},tP=e=>async(t,n,a)=>zv(e)(t,n,a),nP=/^[cC][^\s-]{8,}$/,rP=/^[0-9a-z]+$/,aP=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,oP=/^[0-9a-vA-V]{20}$/,iP=/^[A-Za-z0-9]{27}$/,sP=/^[a-zA-Z0-9_-]{21}$/,lP=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,uP=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,Ib=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,cP=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,dP="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function fP(){return new RegExp(dP,"u")}const pP=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,hP=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,mP=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,gP=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,vP=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Db=/^[A-Za-z0-9_-]*$/,yP=/^\+[1-9]\d{6,14}$/,jb="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",xP=new RegExp(`^${jb}$`);function Pb(e){const t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function wP(e){return new RegExp(`^${Pb(e)}$`)}function bP(e){const t=Pb({precision:e.precision}),n=["Z"];e.local&&n.push(""),e.offset&&n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const a=`${t}(?:${n.join("|")})`;return new RegExp(`^${jb}T(?:${a})$`)}const CP=e=>{var n,a;const t=e?`[\\s\\S]{${(n=e==null?void 0:e.minimum)!=null?n:0},${(a=e==null?void 0:e.maximum)!=null?a:""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},SP=/^-?\d+$/,Fb=/^-?\d+(?:\.\d+)?$/,kP=/^(?:true|false)$/i,EP=/^null$/i,_P=/^[^A-Z]*$/,TP=/^[^a-z]*$/,Uo=ke("$ZodCheck",(e,t)=>{var a,i;var n;(a=e._zod)!=null||(e._zod={}),e._zod.def=t,(i=(n=e._zod).onattach)!=null||(n.onattach=[])}),zb={number:"number",bigint:"bigint",object:"date"},Ub=ke("$ZodCheckLessThan",(e,t)=>{Uo.init(e,t);const n=zb[typeof t.value];e._zod.onattach.push(a=>{var u;const i=a._zod.bag,l=(u=t.inclusive?i.maximum:i.exclusiveMaximum)!=null?u:Number.POSITIVE_INFINITY;t.value<l&&(t.inclusive?i.maximum=t.value:i.exclusiveMaximum=t.value)}),e._zod.check=a=>{(t.inclusive?a.value<=t.value:a.value<t.value)||a.issues.push({origin:n,code:"too_big",maximum:typeof t.value=="object"?t.value.getTime():t.value,input:a.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Bb=ke("$ZodCheckGreaterThan",(e,t)=>{Uo.init(e,t);const n=zb[typeof t.value];e._zod.onattach.push(a=>{var u;const i=a._zod.bag,l=(u=t.inclusive?i.minimum:i.exclusiveMinimum)!=null?u:Number.NEGATIVE_INFINITY;t.value>l&&(t.inclusive?i.minimum=t.value:i.exclusiveMinimum=t.value)}),e._zod.check=a=>{(t.inclusive?a.value>=t.value:a.value>t.value)||a.issues.push({origin:n,code:"too_small",minimum:typeof t.value=="object"?t.value.getTime():t.value,input:a.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),RP=ke("$ZodCheckMultipleOf",(e,t)=>{Uo.init(e,t),e._zod.onattach.push(n=>{var i;var a;(i=(a=n._zod.bag).multipleOf)!=null||(a.multipleOf=t.value)}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof n.value=="bigint"?n.value%t.value===BigInt(0):Mj(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:"not_multiple_of",divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),AP=ke("$ZodCheckNumberFormat",(e,t)=>{var u;Uo.init(e,t),t.format=t.format||"float64";const n=(u=t.format)==null?void 0:u.includes("int"),a=n?"int":"number",[i,l]=jj[t.format];e._zod.onattach.push(f=>{const h=f._zod.bag;h.format=t.format,h.minimum=i,h.maximum=l,n&&(h.pattern=SP)}),e._zod.check=f=>{const h=f.value;if(n){if(!Number.isInteger(h)){f.issues.push({expected:a,format:t.format,code:"invalid_type",continue:!1,input:h,inst:e});return}if(!Number.isSafeInteger(h)){h>0?f.issues.push({input:h,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:a,inclusive:!0,continue:!t.abort}):f.issues.push({input:h,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:a,inclusive:!0,continue:!t.abort});return}}h<i&&f.issues.push({origin:"number",input:h,code:"too_small",minimum:i,inclusive:!0,inst:e,continue:!t.abort}),h>l&&f.issues.push({origin:"number",input:h,code:"too_big",maximum:l,inclusive:!0,inst:e,continue:!t.abort})}}),NP=ke("$ZodCheckMaxLength",(e,t)=>{var a;var n;Uo.init(e,t),(a=(n=e._zod.def).when)!=null||(n.when=i=>{const l=i.value;return!j3(l)&&l.length!==void 0}),e._zod.onattach.push(i=>{var u;const l=(u=i._zod.bag.maximum)!=null?u:Number.POSITIVE_INFINITY;t.maximum<l&&(i._zod.bag.maximum=t.maximum)}),e._zod.check=i=>{const l=i.value;if(l.length<=t.maximum)return;const f=F3(l);i.issues.push({origin:f,code:"too_big",maximum:t.maximum,inclusive:!0,input:l,inst:e,continue:!t.abort})}}),MP=ke("$ZodCheckMinLength",(e,t)=>{var a;var n;Uo.init(e,t),(a=(n=e._zod.def).when)!=null||(n.when=i=>{const l=i.value;return!j3(l)&&l.length!==void 0}),e._zod.onattach.push(i=>{var u;const l=(u=i._zod.bag.minimum)!=null?u:Number.NEGATIVE_INFINITY;t.minimum>l&&(i._zod.bag.minimum=t.minimum)}),e._zod.check=i=>{const l=i.value;if(l.length>=t.minimum)return;const f=F3(l);i.issues.push({origin:f,code:"too_small",minimum:t.minimum,inclusive:!0,input:l,inst:e,continue:!t.abort})}}),OP=ke("$ZodCheckLengthEquals",(e,t)=>{var a;var n;Uo.init(e,t),(a=(n=e._zod.def).when)!=null||(n.when=i=>{const l=i.value;return!j3(l)&&l.length!==void 0}),e._zod.onattach.push(i=>{const l=i._zod.bag;l.minimum=t.length,l.maximum=t.length,l.length=t.length}),e._zod.check=i=>{const l=i.value,u=l.length;if(u===t.length)return;const f=F3(l),h=u>t.length;i.issues.push({origin:f,...h?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:i.value,inst:e,continue:!t.abort})}}),Uv=ke("$ZodCheckStringFormat",(e,t)=>{var i,l;var n,a;Uo.init(e,t),e._zod.onattach.push(u=>{var h;const f=u._zod.bag;f.format=t.format,t.pattern&&((h=f.patterns)!=null||(f.patterns=new Set),f.patterns.add(t.pattern))}),t.pattern?(i=(n=e._zod).check)!=null||(n.check=u=>{t.pattern.lastIndex=0,!t.pattern.test(u.value)&&u.issues.push({origin:"string",code:"invalid_format",format:t.format,input:u.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(l=(a=e._zod).check)!=null||(a.check=()=>{})}),LP=ke("$ZodCheckRegex",(e,t)=>{Uv.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),IP=ke("$ZodCheckLowerCase",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=_P),Uv.init(e,t)}),DP=ke("$ZodCheckUpperCase",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=TP),Uv.init(e,t)}),jP=ke("$ZodCheckIncludes",(e,t)=>{Uo.init(e,t);const n=tp(t.includes),a=new RegExp(typeof t.position=="number"?`^.{${t.position}}${n}`:n);t.pattern=a,e._zod.onattach.push(i=>{var u;const l=i._zod.bag;(u=l.patterns)!=null||(l.patterns=new Set),l.patterns.add(a)}),e._zod.check=i=>{i.value.includes(t.includes,t.position)||i.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:i.value,inst:e,continue:!t.abort})}}),PP=ke("$ZodCheckStartsWith",(e,t)=>{var a;Uo.init(e,t);const n=new RegExp(`^${tp(t.prefix)}.*`);(a=t.pattern)!=null||(t.pattern=n),e._zod.onattach.push(i=>{var u;const l=i._zod.bag;(u=l.patterns)!=null||(l.patterns=new Set),l.patterns.add(n)}),e._zod.check=i=>{i.value.startsWith(t.prefix)||i.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:i.value,inst:e,continue:!t.abort})}}),FP=ke("$ZodCheckEndsWith",(e,t)=>{var a;Uo.init(e,t);const n=new RegExp(`.*${tp(t.suffix)}$`);(a=t.pattern)!=null||(t.pattern=n),e._zod.onattach.push(i=>{var u;const l=i._zod.bag;(u=l.patterns)!=null||(l.patterns=new Set),l.patterns.add(n)}),e._zod.check=i=>{i.value.endsWith(t.suffix)||i.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:i.value,inst:e,continue:!t.abort})}}),zP=ke("$ZodCheckOverwrite",(e,t)=>{Uo.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value)}});class UP{constructor(t=[]){this.content=[],this.indent=0,this&&(this.args=t)}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}const a=t.split(`
281
+ `).filter(u=>u),i=Math.min(...a.map(u=>u.length-u.trimStart().length)),l=a.map(u=>u.slice(i)).map(u=>" ".repeat(this.indent*2)+u);for(const u of l)this.content.push(u)}compile(){var l;const t=Function,n=this==null?void 0:this.args,i=[...((l=this==null?void 0:this.content)!=null?l:[""]).map(u=>` ${u}`)];return new t(...n,i.join(`
282
+ `))}}const BP={major:4,minor:3,patch:5},ur=ke("$ZodType",(e,t)=>{var i,l,u;var n;e!=null||(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=BP;const a=[...(i=e._zod.def.checks)!=null?i:[]];e._zod.traits.has("$ZodCheck")&&a.unshift(e);for(const f of a)for(const h of f._zod.onattach)h(e);if(a.length===0)(l=(n=e._zod).deferred)!=null||(n.deferred=[]),(u=e._zod.deferred)==null||u.push(()=>{e._zod.run=e._zod.parse});else{const f=(g,x,y)=>{let k=np(g),b;for(const _ of x){if(_._zod.def.when){if(!_._zod.def.when(g))continue}else if(k)continue;const R=g.issues.length,M=_._zod.check(g);if(M instanceof Promise&&(y==null?void 0:y.async)===!1)throw new Qf;if(b||M instanceof Promise)b=(b!=null?b:Promise.resolve()).then(async()=>{await M,g.issues.length!==R&&(k||(k=np(g,R)))});else{if(g.issues.length===R)continue;k||(k=np(g,R))}}return b?b.then(()=>g):g},h=(g,x,y)=>{if(np(g))return g.aborted=!0,g;const k=f(x,a,y);if(k instanceof Promise){if(y.async===!1)throw new Qf;return k.then(b=>e._zod.parse(b,y))}return e._zod.parse(k,y)};e._zod.run=(g,x)=>{if(x.skipChecks)return e._zod.parse(g,x);if(x.direction==="backward"){const k=e._zod.parse({value:g.value,issues:[]},{...x,skipChecks:!0});return k instanceof Promise?k.then(b=>h(b,g,x)):h(k,g,x)}const y=e._zod.parse(g,x);if(y instanceof Promise){if(x.async===!1)throw new Qf;return y.then(k=>f(k,a,x))}return f(y,a,x)}}kn(e,"~standard",()=>({validate:f=>{var h;try{const g=Wj(e,f);return g.success?{value:g.data}:{issues:(h=g.error)==null?void 0:h.issues}}catch(g){return qj(e,f).then(x=>{var y;return x.success?{value:x.data}:{issues:(y=x.error)==null?void 0:y.issues}})}},vendor:"zod",version:1}))}),B3=ke("$ZodString",(e,t)=>{var n,a,i;ur.init(e,t),e._zod.pattern=(i=[...(a=(n=e==null?void 0:e._zod.bag)==null?void 0:n.patterns)!=null?a:[]].pop())!=null?i:CP(e._zod.bag),e._zod.parse=(l,u)=>{if(t.coerce)try{l.value=String(l.value)}catch(f){}return typeof l.value=="string"||l.issues.push({expected:"string",code:"invalid_type",input:l.value,inst:e}),l}}),kr=ke("$ZodStringFormat",(e,t)=>{Uv.init(e,t),B3.init(e,t)}),HP=ke("$ZodGUID",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=uP),kr.init(e,t)}),VP=ke("$ZodUUID",(e,t)=>{var n,a;if(t.version){const l={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(l===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);(n=t.pattern)!=null||(t.pattern=Ib(l))}else(a=t.pattern)!=null||(t.pattern=Ib());kr.init(e,t)}),$P=ke("$ZodEmail",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=cP),kr.init(e,t)}),ZP=ke("$ZodURL",(e,t)=>{kr.init(e,t),e._zod.check=n=>{try{const a=n.value.trim(),i=new URL(a);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(i.hostname)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(i.protocol.endsWith(":")?i.protocol.slice(0,-1):i.protocol)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),t.normalize?n.value=i.href:n.value=a;return}catch(a){n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort})}}}),WP=ke("$ZodEmoji",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=fP()),kr.init(e,t)}),qP=ke("$ZodNanoID",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=sP),kr.init(e,t)}),GP=ke("$ZodCUID",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=nP),kr.init(e,t)}),YP=ke("$ZodCUID2",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=rP),kr.init(e,t)}),JP=ke("$ZodULID",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=aP),kr.init(e,t)}),XP=ke("$ZodXID",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=oP),kr.init(e,t)}),KP=ke("$ZodKSUID",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=iP),kr.init(e,t)}),QP=ke("$ZodISODateTime",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=bP(t)),kr.init(e,t)}),eF=ke("$ZodISODate",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=xP),kr.init(e,t)}),tF=ke("$ZodISOTime",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=wP(t)),kr.init(e,t)}),nF=ke("$ZodISODuration",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=lP),kr.init(e,t)}),rF=ke("$ZodIPv4",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=pP),kr.init(e,t),e._zod.bag.format="ipv4"}),aF=ke("$ZodIPv6",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=hP),kr.init(e,t),e._zod.bag.format="ipv6",e._zod.check=a=>{try{new URL(`http://[${a.value}]`)}catch(i){a.issues.push({code:"invalid_format",format:"ipv6",input:a.value,inst:e,continue:!t.abort})}}}),oF=ke("$ZodCIDRv4",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=mP),kr.init(e,t)}),iF=ke("$ZodCIDRv6",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=gP),kr.init(e,t),e._zod.check=a=>{const i=a.value.split("/");try{if(i.length!==2)throw new Error;const[l,u]=i;if(!u)throw new Error;const f=Number(u);if(`${f}`!==u)throw new Error;if(f<0||f>128)throw new Error;new URL(`http://[${l}]`)}catch(l){a.issues.push({code:"invalid_format",format:"cidrv6",input:a.value,inst:e,continue:!t.abort})}}});function Hb(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch(t){return!1}}const sF=ke("$ZodBase64",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=vP),kr.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=a=>{Hb(a.value)||a.issues.push({code:"invalid_format",format:"base64",input:a.value,inst:e,continue:!t.abort})}});function lF(e){if(!Db.test(e))return!1;const t=e.replace(/[-_]/g,a=>a==="-"?"+":"/"),n=t.padEnd(Math.ceil(t.length/4)*4,"=");return Hb(n)}const uF=ke("$ZodBase64URL",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=Db),kr.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=a=>{lF(a.value)||a.issues.push({code:"invalid_format",format:"base64url",input:a.value,inst:e,continue:!t.abort})}}),cF=ke("$ZodE164",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=yP),kr.init(e,t)});function dF(e,t=null){try{const n=e.split(".");if(n.length!==3)return!1;const[a]=n;if(!a)return!1;const i=JSON.parse(atob(a));return!("typ"in i&&(i==null?void 0:i.typ)!=="JWT"||!i.alg||t&&(!("alg"in i)||i.alg!==t))}catch(n){return!1}}const fF=ke("$ZodJWT",(e,t)=>{kr.init(e,t),e._zod.check=n=>{dF(n.value,t.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}}),Vb=ke("$ZodNumber",(e,t)=>{var n;ur.init(e,t),e._zod.pattern=(n=e._zod.bag.pattern)!=null?n:Fb,e._zod.parse=(a,i)=>{if(t.coerce)try{a.value=Number(a.value)}catch(f){}const l=a.value;if(typeof l=="number"&&!Number.isNaN(l)&&Number.isFinite(l))return a;const u=typeof l=="number"?Number.isNaN(l)?"NaN":Number.isFinite(l)?void 0:"Infinity":void 0;return a.issues.push({expected:"number",code:"invalid_type",input:l,inst:e,...u?{received:u}:{}}),a}}),pF=ke("$ZodNumberFormat",(e,t)=>{AP.init(e,t),Vb.init(e,t)}),hF=ke("$ZodBoolean",(e,t)=>{ur.init(e,t),e._zod.pattern=kP,e._zod.parse=(n,a)=>{if(t.coerce)try{n.value=!!n.value}catch(l){}const i=n.value;return typeof i=="boolean"||n.issues.push({expected:"boolean",code:"invalid_type",input:i,inst:e}),n}}),mF=ke("$ZodNull",(e,t)=>{ur.init(e,t),e._zod.pattern=EP,e._zod.values=new Set([null]),e._zod.parse=(n,a)=>{const i=n.value;return i===null||n.issues.push({expected:"null",code:"invalid_type",input:i,inst:e}),n}}),gF=ke("$ZodAny",(e,t)=>{ur.init(e,t),e._zod.parse=n=>n}),vF=ke("$ZodUnknown",(e,t)=>{ur.init(e,t),e._zod.parse=n=>n}),yF=ke("$ZodNever",(e,t)=>{ur.init(e,t),e._zod.parse=(n,a)=>(n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:e}),n)});function $b(e,t,n){e.issues.length&&t.issues.push(...rp(n,e.issues)),t.value[n]=e.value}const xF=ke("$ZodArray",(e,t)=>{ur.init(e,t),e._zod.parse=(n,a)=>{const i=n.value;if(!Array.isArray(i))return n.issues.push({expected:"array",code:"invalid_type",input:i,inst:e}),n;n.value=Array(i.length);const l=[];for(let u=0;u<i.length;u++){const f=i[u],h=t.element._zod.run({value:f,issues:[]},a);h instanceof Promise?l.push(h.then(g=>$b(g,n,u))):$b(h,n,u)}return l.length?Promise.all(l).then(()=>n):n}});function Bv(e,t,n,a,i){if(e.issues.length){if(i&&!(n in a))return;t.issues.push(...rp(n,e.issues))}e.value===void 0?n in a&&(t.value[n]=void 0):t.value[n]=e.value}function Zb(e){var a,i,l,u;const t=Object.keys(e.shape);for(const f of t)if(!((u=(l=(i=(a=e.shape)==null?void 0:a[f])==null?void 0:i._zod)==null?void 0:l.traits)!=null&&u.has("$ZodType")))throw new Error(`Invalid element at key "${f}": expected a Zod schema`);const n=Dj(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function Wb(e,t,n,a,i,l){const u=[],f=i.keySet,h=i.catchall._zod,g=h.def.type,x=h.optout==="optional";for(const y in t){if(f.has(y))continue;if(g==="never"){u.push(y);continue}const k=h.run({value:t[y],issues:[]},a);k instanceof Promise?e.push(k.then(b=>Bv(b,n,y,t,x))):Bv(k,n,y,t,x)}return u.length&&n.issues.push({code:"unrecognized_keys",keys:u,input:t,inst:l}),e.length?Promise.all(e).then(()=>n):n}const wF=ke("$ZodObject",(e,t)=>{ur.init(e,t);const n=Object.getOwnPropertyDescriptor(t,"shape");if(!(n!=null&&n.get)){const f=t.shape;Object.defineProperty(t,"shape",{get:()=>{const h={...f};return Object.defineProperty(t,"shape",{value:h}),h}})}const a=jv(()=>Zb(t));kn(e._zod,"propValues",()=>{var g;const f=t.shape,h={};for(const x in f){const y=f[x]._zod;if(y.values){(g=h[x])!=null||(h[x]=new Set);for(const k of y.values)h[x].add(k)}}return h});const i=Ah,l=t.catchall;let u;e._zod.parse=(f,h)=>{u!=null||(u=a.value);const g=f.value;if(!i(g))return f.issues.push({expected:"object",code:"invalid_type",input:g,inst:e}),f;f.value={};const x=[],y=u.shape;for(const k of u.keys){const b=y[k],_=b._zod.optout==="optional",R=b._zod.run({value:g[k],issues:[]},h);R instanceof Promise?x.push(R.then(M=>Bv(M,f,k,g,_))):Bv(R,f,k,g,_)}return l?Wb(x,g,f,h,a.value,e):x.length?Promise.all(x).then(()=>f):f}}),bF=ke("$ZodObjectJIT",(e,t)=>{wF.init(e,t);const n=e._zod.parse,a=jv(()=>Zb(t)),i=k=>{var F;const b=new UP(["shape","payload","ctx"]),_=a.value,R=D=>{const V=Rb(D);return`shape[${V}]._zod.run({ value: input[${V}], issues: [] }, ctx)`};b.write("const input = payload.value;");const M=Object.create(null);let L=0;for(const D of _.keys)M[D]=`key_${L++}`;b.write("const newResult = {};");for(const D of _.keys){const V=M[D],H=Rb(D),Z=k[D],q=((F=Z==null?void 0:Z._zod)==null?void 0:F.optout)==="optional";b.write(`const ${V} = ${R(D)};`),q?b.write(`
283
+ if (${V}.issues.length) {
284
+ if (${H} in input) {
285
+ payload.issues = payload.issues.concat(${V}.issues.map(iss => ({
286
+ ...iss,
287
+ path: iss.path ? [${H}, ...iss.path] : [${H}]
288
+ })));
289
+ }
290
+ }
291
+
292
+ if (${V}.value === undefined) {
293
+ if (${H} in input) {
294
+ newResult[${H}] = undefined;
295
+ }
296
+ } else {
297
+ newResult[${H}] = ${V}.value;
298
+ }
299
+
300
+ `):b.write(`
301
+ if (${V}.issues.length) {
302
+ payload.issues = payload.issues.concat(${V}.issues.map(iss => ({
303
+ ...iss,
304
+ path: iss.path ? [${H}, ...iss.path] : [${H}]
305
+ })));
306
+ }
307
+
308
+ if (${V}.value === undefined) {
309
+ if (${H} in input) {
310
+ newResult[${H}] = undefined;
311
+ }
312
+ } else {
313
+ newResult[${H}] = ${V}.value;
314
+ }
315
+
316
+ `)}b.write("payload.value = newResult;"),b.write("return payload;");const P=b.compile();return(D,V)=>P(k,D,V)};let l;const u=Ah,f=!Eb.jitless,g=f&&Lj.value,x=t.catchall;let y;e._zod.parse=(k,b)=>{y!=null||(y=a.value);const _=k.value;return u(_)?f&&g&&(b==null?void 0:b.async)===!1&&b.jitless!==!0?(l||(l=i(t.shape)),k=l(k,b),x?Wb([],_,k,b,y,e):k):n(k,b):(k.issues.push({expected:"object",code:"invalid_type",input:_,inst:e}),k)}});function qb(e,t,n,a){for(const l of e)if(l.issues.length===0)return t.value=l.value,t;const i=e.filter(l=>!np(l));return i.length===1?(t.value=i[0].value,i[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(l=>l.issues.map(u=>Ju(u,a,qu())))}),t)}const Gb=ke("$ZodUnion",(e,t)=>{ur.init(e,t),kn(e._zod,"optin",()=>t.options.some(i=>i._zod.optin==="optional")?"optional":void 0),kn(e._zod,"optout",()=>t.options.some(i=>i._zod.optout==="optional")?"optional":void 0),kn(e._zod,"values",()=>{if(t.options.every(i=>i._zod.values))return new Set(t.options.flatMap(i=>Array.from(i._zod.values)))}),kn(e._zod,"pattern",()=>{if(t.options.every(i=>i._zod.pattern)){const i=t.options.map(l=>l._zod.pattern);return new RegExp(`^(${i.map(l=>P3(l.source)).join("|")})$`)}});const n=t.options.length===1,a=t.options[0]._zod.run;e._zod.parse=(i,l)=>{if(n)return a(i,l);let u=!1;const f=[];for(const h of t.options){const g=h._zod.run({value:i.value,issues:[]},l);if(g instanceof Promise)f.push(g),u=!0;else{if(g.issues.length===0)return g;f.push(g)}}return u?Promise.all(f).then(h=>qb(h,i,e,l)):qb(f,i,e,l)}}),CF=ke("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,Gb.init(e,t);const n=e._zod.parse;kn(e._zod,"propValues",()=>{const i={};for(const l of t.options){const u=l._zod.propValues;if(!u||Object.keys(u).length===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(l)}"`);for(const[f,h]of Object.entries(u)){i[f]||(i[f]=new Set);for(const g of h)i[f].add(g)}}return i});const a=jv(()=>{var u;const i=t.options,l=new Map;for(const f of i){const h=(u=f._zod.propValues)==null?void 0:u[t.discriminator];if(!h||h.size===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(f)}"`);for(const g of h){if(l.has(g))throw new Error(`Duplicate discriminator value "${String(g)}"`);l.set(g,f)}}return l});e._zod.parse=(i,l)=>{const u=i.value;if(!Ah(u))return i.issues.push({code:"invalid_type",expected:"object",input:u,inst:e}),i;const f=a.value.get(u==null?void 0:u[t.discriminator]);return f?f._zod.run(i,l):t.unionFallback?n(i,l):(i.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,input:u,path:[t.discriminator],inst:e}),i)}}),SF=ke("$ZodIntersection",(e,t)=>{ur.init(e,t),e._zod.parse=(n,a)=>{const i=n.value,l=t.left._zod.run({value:i,issues:[]},a),u=t.right._zod.run({value:i,issues:[]},a);return l instanceof Promise||u instanceof Promise?Promise.all([l,u]).then(([h,g])=>Yb(n,h,g)):Yb(n,l,u)}});function H3(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(ep(e)&&ep(t)){const n=Object.keys(t),a=Object.keys(e).filter(l=>n.indexOf(l)!==-1),i={...e,...t};for(const l of a){const u=H3(e[l],t[l]);if(!u.valid)return{valid:!1,mergeErrorPath:[l,...u.mergeErrorPath]};i[l]=u.data}return{valid:!0,data:i}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};const n=[];for(let a=0;a<e.length;a++){const i=e[a],l=t[a],u=H3(i,l);if(!u.valid)return{valid:!1,mergeErrorPath:[a,...u.mergeErrorPath]};n.push(u.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function Yb(e,t,n){const a=new Map;let i;for(const f of t.issues)if(f.code==="unrecognized_keys"){i!=null||(i=f);for(const h of f.keys)a.has(h)||a.set(h,{}),a.get(h).l=!0}else e.issues.push(f);for(const f of n.issues)if(f.code==="unrecognized_keys")for(const h of f.keys)a.has(h)||a.set(h,{}),a.get(h).r=!0;else e.issues.push(f);const l=[...a].filter(([,f])=>f.l&&f.r).map(([f])=>f);if(l.length&&i&&e.issues.push({...i,keys:l}),np(e))return e;const u=H3(t.value,n.value);if(!u.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(u.mergeErrorPath)}`);return e.value=u.data,e}const kF=ke("$ZodRecord",(e,t)=>{ur.init(e,t),e._zod.parse=(n,a)=>{const i=n.value;if(!ep(i))return n.issues.push({expected:"record",code:"invalid_type",input:i,inst:e}),n;const l=[],u=t.keyType._zod.values;if(u){n.value={};const f=new Set;for(const g of u)if(typeof g=="string"||typeof g=="number"||typeof g=="symbol"){f.add(typeof g=="number"?g.toString():g);const x=t.valueType._zod.run({value:i[g],issues:[]},a);x instanceof Promise?l.push(x.then(y=>{y.issues.length&&n.issues.push(...rp(g,y.issues)),n.value[g]=y.value})):(x.issues.length&&n.issues.push(...rp(g,x.issues)),n.value[g]=x.value)}let h;for(const g in i)f.has(g)||(h=h!=null?h:[],h.push(g));h&&h.length>0&&n.issues.push({code:"unrecognized_keys",input:i,inst:e,keys:h})}else{n.value={};for(const f of Reflect.ownKeys(i)){if(f==="__proto__")continue;let h=t.keyType._zod.run({value:f,issues:[]},a);if(h instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof f=="string"&&Fb.test(f)&&h.issues.length&&h.issues.some(y=>y.code==="invalid_type"&&y.expected==="number")){const y=t.keyType._zod.run({value:Number(f),issues:[]},a);if(y instanceof Promise)throw new Error("Async schemas not supported in object keys currently");y.issues.length===0&&(h=y)}if(h.issues.length){t.mode==="loose"?n.value[f]=i[f]:n.issues.push({code:"invalid_key",origin:"record",issues:h.issues.map(y=>Ju(y,a,qu())),input:f,path:[f],inst:e});continue}const x=t.valueType._zod.run({value:i[f],issues:[]},a);x instanceof Promise?l.push(x.then(y=>{y.issues.length&&n.issues.push(...rp(f,y.issues)),n.value[h.value]=y.value})):(x.issues.length&&n.issues.push(...rp(f,x.issues)),n.value[h.value]=x.value)}}return l.length?Promise.all(l).then(()=>n):n}}),EF=ke("$ZodEnum",(e,t)=>{ur.init(e,t);const n=_b(t.entries),a=new Set(n);e._zod.values=a,e._zod.pattern=new RegExp(`^(${n.filter(i=>Ij.has(typeof i)).map(i=>typeof i=="string"?tp(i):i.toString()).join("|")})$`),e._zod.parse=(i,l)=>{const u=i.value;return a.has(u)||i.issues.push({code:"invalid_value",values:n,input:u,inst:e}),i}}),_F=ke("$ZodLiteral",(e,t)=>{if(ur.init(e,t),t.values.length===0)throw new Error("Cannot create literal schema with no valid values");const n=new Set(t.values);e._zod.values=n,e._zod.pattern=new RegExp(`^(${t.values.map(a=>typeof a=="string"?tp(a):a?tp(a.toString()):String(a)).join("|")})$`),e._zod.parse=(a,i)=>{const l=a.value;return n.has(l)||a.issues.push({code:"invalid_value",values:t.values,input:l,inst:e}),a}}),TF=ke("$ZodTransform",(e,t)=>{ur.init(e,t),e._zod.parse=(n,a)=>{if(a.direction==="backward")throw new kb(e.constructor.name);const i=t.transform(n.value,n);if(a.async)return(i instanceof Promise?i:Promise.resolve(i)).then(u=>(n.value=u,n));if(i instanceof Promise)throw new Qf;return n.value=i,n}});function Jb(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}const Xb=ke("$ZodOptional",(e,t)=>{ur.init(e,t),e._zod.optin="optional",e._zod.optout="optional",kn(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),kn(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${P3(n.source)})?$`):void 0}),e._zod.parse=(n,a)=>{if(t.innerType._zod.optin==="optional"){const i=t.innerType._zod.run(n,a);return i instanceof Promise?i.then(l=>Jb(l,n.value)):Jb(i,n.value)}return n.value===void 0?n:t.innerType._zod.run(n,a)}}),RF=ke("$ZodExactOptional",(e,t)=>{Xb.init(e,t),kn(e._zod,"values",()=>t.innerType._zod.values),kn(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(n,a)=>t.innerType._zod.run(n,a)}),AF=ke("$ZodNullable",(e,t)=>{ur.init(e,t),kn(e._zod,"optin",()=>t.innerType._zod.optin),kn(e._zod,"optout",()=>t.innerType._zod.optout),kn(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${P3(n.source)}|null)$`):void 0}),kn(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(n,a)=>n.value===null?n:t.innerType._zod.run(n,a)}),NF=ke("$ZodDefault",(e,t)=>{ur.init(e,t),e._zod.optin="optional",kn(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,a)=>{if(a.direction==="backward")return t.innerType._zod.run(n,a);if(n.value===void 0)return n.value=t.defaultValue,n;const i=t.innerType._zod.run(n,a);return i instanceof Promise?i.then(l=>Kb(l,t)):Kb(i,t)}});function Kb(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const MF=ke("$ZodPrefault",(e,t)=>{ur.init(e,t),e._zod.optin="optional",kn(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,a)=>(a.direction==="backward"||n.value===void 0&&(n.value=t.defaultValue),t.innerType._zod.run(n,a))}),OF=ke("$ZodNonOptional",(e,t)=>{ur.init(e,t),kn(e._zod,"values",()=>{const n=t.innerType._zod.values;return n?new Set([...n].filter(a=>a!==void 0)):void 0}),e._zod.parse=(n,a)=>{const i=t.innerType._zod.run(n,a);return i instanceof Promise?i.then(l=>Qb(l,e)):Qb(i,e)}});function Qb(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}const LF=ke("$ZodCatch",(e,t)=>{ur.init(e,t),kn(e._zod,"optin",()=>t.innerType._zod.optin),kn(e._zod,"optout",()=>t.innerType._zod.optout),kn(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,a)=>{if(a.direction==="backward")return t.innerType._zod.run(n,a);const i=t.innerType._zod.run(n,a);return i instanceof Promise?i.then(l=>(n.value=l.value,l.issues.length&&(n.value=t.catchValue({...n,error:{issues:l.issues.map(u=>Ju(u,a,qu()))},input:n.value}),n.issues=[]),n)):(n.value=i.value,i.issues.length&&(n.value=t.catchValue({...n,error:{issues:i.issues.map(l=>Ju(l,a,qu()))},input:n.value}),n.issues=[]),n)}}),IF=ke("$ZodPipe",(e,t)=>{ur.init(e,t),kn(e._zod,"values",()=>t.in._zod.values),kn(e._zod,"optin",()=>t.in._zod.optin),kn(e._zod,"optout",()=>t.out._zod.optout),kn(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(n,a)=>{if(a.direction==="backward"){const l=t.out._zod.run(n,a);return l instanceof Promise?l.then(u=>Hv(u,t.in,a)):Hv(l,t.in,a)}const i=t.in._zod.run(n,a);return i instanceof Promise?i.then(l=>Hv(l,t.out,a)):Hv(i,t.out,a)}});function Hv(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},n)}const DF=ke("$ZodReadonly",(e,t)=>{ur.init(e,t),kn(e._zod,"propValues",()=>t.innerType._zod.propValues),kn(e._zod,"values",()=>t.innerType._zod.values),kn(e._zod,"optin",()=>{var n,a;return(a=(n=t.innerType)==null?void 0:n._zod)==null?void 0:a.optin}),kn(e._zod,"optout",()=>{var n,a;return(a=(n=t.innerType)==null?void 0:n._zod)==null?void 0:a.optout}),e._zod.parse=(n,a)=>{if(a.direction==="backward")return t.innerType._zod.run(n,a);const i=t.innerType._zod.run(n,a);return i instanceof Promise?i.then(eC):eC(i)}});function eC(e){return e.value=Object.freeze(e.value),e}const jF=ke("$ZodLazy",(e,t)=>{ur.init(e,t),kn(e._zod,"innerType",()=>t.getter()),kn(e._zod,"pattern",()=>{var n,a;return(a=(n=e._zod.innerType)==null?void 0:n._zod)==null?void 0:a.pattern}),kn(e._zod,"propValues",()=>{var n,a;return(a=(n=e._zod.innerType)==null?void 0:n._zod)==null?void 0:a.propValues}),kn(e._zod,"optin",()=>{var n,a,i;return(i=(a=(n=e._zod.innerType)==null?void 0:n._zod)==null?void 0:a.optin)!=null?i:void 0}),kn(e._zod,"optout",()=>{var n,a,i;return(i=(a=(n=e._zod.innerType)==null?void 0:n._zod)==null?void 0:a.optout)!=null?i:void 0}),e._zod.parse=(n,a)=>e._zod.innerType._zod.run(n,a)}),PF=ke("$ZodCustom",(e,t)=>{Uo.init(e,t),ur.init(e,t),e._zod.parse=(n,a)=>n,e._zod.check=n=>{const a=n.value,i=t.fn(a);if(i instanceof Promise)return i.then(l=>tC(l,n,a,e));tC(i,n,a,e)}});function tC(e,t,n,a){var i;if(!e){const l={code:"custom",input:n,inst:a,path:[...(i=a._zod.def.path)!=null?i:[]],continue:!a._zod.def.abort};a._zod.def.params&&(l.params=a._zod.def.params),t.issues.push(Nh(l))}}var nC;class FF{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...n){const a=n[0];return this._map.set(t,a),a&&typeof a=="object"&&"id"in a&&this._idmap.set(a.id,t),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){const n=this._map.get(t);return n&&typeof n=="object"&&"id"in n&&this._idmap.delete(n.id),this._map.delete(t),this}get(t){var a;const n=t._zod.parent;if(n){const i={...(a=this.get(n))!=null?a:{}};delete i.id;const l={...i,...this._map.get(t)};return Object.keys(l).length?l:void 0}return this._map.get(t)}has(t){return this._map.has(t)}}function zF(){return new FF}(eO=(nC=globalThis).__zod_globalRegistry)!=null||(nC.__zod_globalRegistry=zF());const Mh=globalThis.__zod_globalRegistry;function UF(e,t){return new e({type:"string",...wt(t)})}function BF(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...wt(t)})}function rC(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...wt(t)})}function HF(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...wt(t)})}function VF(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...wt(t)})}function $F(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...wt(t)})}function ZF(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...wt(t)})}function WF(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...wt(t)})}function qF(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...wt(t)})}function GF(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...wt(t)})}function YF(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...wt(t)})}function JF(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...wt(t)})}function XF(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...wt(t)})}function KF(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...wt(t)})}function QF(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...wt(t)})}function ez(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...wt(t)})}function tz(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...wt(t)})}function nz(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...wt(t)})}function rz(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...wt(t)})}function az(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...wt(t)})}function oz(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...wt(t)})}function iz(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...wt(t)})}function sz(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...wt(t)})}function lz(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...wt(t)})}function uz(e,t){return new e({type:"string",format:"date",check:"string_format",...wt(t)})}function cz(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...wt(t)})}function dz(e,t){return new e({type:"string",format:"duration",check:"string_format",...wt(t)})}function fz(e,t){return new e({type:"number",checks:[],...wt(t)})}function pz(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...wt(t)})}function hz(e,t){return new e({type:"boolean",...wt(t)})}function mz(e,t){return new e({type:"null",...wt(t)})}function gz(e){return new e({type:"any"})}function vz(e){return new e({type:"unknown"})}function yz(e,t){return new e({type:"never",...wt(t)})}function aC(e,t){return new Ub({check:"less_than",...wt(t),value:e,inclusive:!1})}function V3(e,t){return new Ub({check:"less_than",...wt(t),value:e,inclusive:!0})}function oC(e,t){return new Bb({check:"greater_than",...wt(t),value:e,inclusive:!1})}function $3(e,t){return new Bb({check:"greater_than",...wt(t),value:e,inclusive:!0})}function iC(e,t){return new RP({check:"multiple_of",...wt(t),value:e})}function sC(e,t){return new NP({check:"max_length",...wt(t),maximum:e})}function Vv(e,t){return new MP({check:"min_length",...wt(t),minimum:e})}function lC(e,t){return new OP({check:"length_equals",...wt(t),length:e})}function xz(e,t){return new LP({check:"string_format",format:"regex",...wt(t),pattern:e})}function wz(e){return new IP({check:"string_format",format:"lowercase",...wt(e)})}function bz(e){return new DP({check:"string_format",format:"uppercase",...wt(e)})}function Cz(e,t){return new jP({check:"string_format",format:"includes",...wt(t),includes:e})}function Sz(e,t){return new PP({check:"string_format",format:"starts_with",...wt(t),prefix:e})}function kz(e,t){return new FP({check:"string_format",format:"ends_with",...wt(t),suffix:e})}function ap(e){return new zP({check:"overwrite",tx:e})}function Ez(e){return ap(t=>t.normalize(e))}function _z(){return ap(e=>e.trim())}function Tz(){return ap(e=>e.toLowerCase())}function Rz(){return ap(e=>e.toUpperCase())}function Az(){return ap(e=>Oj(e))}function Nz(e,t,n){return new e({type:"array",element:t,...wt(n)})}function Mz(e,t,n){var l;const a=wt(n);return(l=a.abort)!=null||(a.abort=!0),new e({type:"custom",check:"custom",fn:t,...a})}function Oz(e,t,n){return new e({type:"custom",check:"custom",fn:t,...wt(n)})}function Lz(e){const t=Iz(n=>(n.addIssue=a=>{var i,l,u,f;if(typeof a=="string")n.issues.push(Nh(a,n.value,t._zod.def));else{const h=a;h.fatal&&(h.continue=!1),(i=h.code)!=null||(h.code="custom"),(l=h.input)!=null||(h.input=n.value),(u=h.inst)!=null||(h.inst=t),(f=h.continue)!=null||(h.continue=!t._zod.def.abort),n.issues.push(Nh(h))}},e(n.value,n)));return t}function Iz(e,t){const n=new Uo({check:"custom",...wt(t)});return n._zod.check=e,n}function $v(e){var n,a,i,l,u,f,h,g,x;let t=(n=e==null?void 0:e.target)!=null?n:"draft-2020-12";return t==="draft-4"&&(t="draft-04"),t==="draft-7"&&(t="draft-07"),{processors:(a=e.processors)!=null?a:{},metadataRegistry:(i=e==null?void 0:e.metadata)!=null?i:Mh,target:t,unrepresentable:(l=e==null?void 0:e.unrepresentable)!=null?l:"throw",override:(u=e==null?void 0:e.override)!=null?u:()=>{},io:(f=e==null?void 0:e.io)!=null?f:"output",counter:0,seen:new Map,cycles:(h=e==null?void 0:e.cycles)!=null?h:"ref",reused:(g=e==null?void 0:e.reused)!=null?g:"inline",external:(x=e==null?void 0:e.external)!=null?x:void 0}}function cr(e,t,n={path:[],schemaPath:[]}){var x,y,k;var a;const i=e._zod.def,l=t.seen.get(e);if(l)return l.count++,n.schemaPath.includes(e)&&(l.cycle=n.path),l.schema;const u={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,u);const f=(y=(x=e._zod).toJSONSchema)==null?void 0:y.call(x);if(f)u.schema=f;else{const b={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,u.schema,b);else{const R=u.schema,M=t.processors[i.type];if(!M)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${i.type}`);M(e,t,R,b)}const _=e._zod.parent;_&&(u.ref||(u.ref=_),cr(_,t,b),t.seen.get(_).isParent=!0)}const h=t.metadataRegistry.get(e);return h&&Object.assign(u.schema,h),t.io==="input"&&xo(e)&&(delete u.schema.examples,delete u.schema.default),t.io==="input"&&u.schema._prefault&&((k=(a=u.schema).default)!=null||(a.default=u.schema._prefault)),delete u.schema._prefault,t.seen.get(e).schema}function Zv(e,t){var u,f,h,g;const n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");const a=new Map;for(const x of e.seen.entries()){const y=(u=e.metadataRegistry.get(x[0]))==null?void 0:u.id;if(y){const k=a.get(y);if(k&&k!==x[0])throw new Error(`Duplicate schema id "${y}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);a.set(y,x[0])}}const i=x=>{var R,M,L,P,F;const y=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){const D=(R=e.external.registry.get(x[0]))==null?void 0:R.id,V=(M=e.external.uri)!=null?M:Z=>Z;if(D)return{ref:V(D)};const H=(P=(L=x[1].defId)!=null?L:x[1].schema.id)!=null?P:`schema${e.counter++}`;return x[1].defId=H,{defId:H,ref:`${V("__shared")}#/${y}/${H}`}}if(x[1]===n)return{ref:"#"};const b=`#/${y}/`,_=(F=x[1].schema.id)!=null?F:`__schema${e.counter++}`;return{defId:_,ref:b+_}},l=x=>{if(x[1].schema.$ref)return;const y=x[1],{ref:k,defId:b}=i(x);y.def={...y.schema},b&&(y.defId=b);const _=y.schema;for(const R in _)delete _[R];_.$ref=k};if(e.cycles==="throw")for(const x of e.seen.entries()){const y=x[1];if(y.cycle)throw new Error(`Cycle detected: #/${(f=y.cycle)==null?void 0:f.join("/")}/<root>
317
+
318
+ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const x of e.seen.entries()){const y=x[1];if(t===x[0]){l(x);continue}if(e.external){const b=(h=e.external.registry.get(x[0]))==null?void 0:h.id;if(t!==x[0]&&b){l(x);continue}}if((g=e.metadataRegistry.get(x[0]))==null?void 0:g.id){l(x);continue}if(y.cycle){l(x);continue}if(y.count>1&&e.reused==="ref"){l(x);continue}}}function Wv(e,t){var u,f,h,g,x;const n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");const a=y=>{var L,P,F;const k=e.seen.get(y);if(k.ref===null)return;const b=(L=k.def)!=null?L:k.schema,_={...b},R=k.ref;if(k.ref=null,R){a(R);const D=e.seen.get(R),V=D.schema;if(V.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(b.allOf=(P=b.allOf)!=null?P:[],b.allOf.push(V)):Object.assign(b,V),Object.assign(b,_),y._zod.parent===R)for(const Z in b)Z==="$ref"||Z==="allOf"||Z in _||delete b[Z];if(V.$ref)for(const Z in b)Z==="$ref"||Z==="allOf"||Z in D.def&&JSON.stringify(b[Z])===JSON.stringify(D.def[Z])&&delete b[Z]}const M=y._zod.parent;if(M&&M!==R){a(M);const D=e.seen.get(M);if(D!=null&&D.schema.$ref&&(b.$ref=D.schema.$ref,D.def))for(const V in b)V==="$ref"||V==="allOf"||V in D.def&&JSON.stringify(b[V])===JSON.stringify(D.def[V])&&delete b[V]}e.override({zodSchema:y,jsonSchema:b,path:(F=k.path)!=null?F:[]})};for(const y of[...e.seen.entries()].reverse())a(y[0]);const i={};if(e.target==="draft-2020-12"?i.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?i.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?i.$schema="http://json-schema.org/draft-04/schema#":e.target,(u=e.external)!=null&&u.uri){const y=(f=e.external.registry.get(t))==null?void 0:f.id;if(!y)throw new Error("Schema is missing an `id` property");i.$id=e.external.uri(y)}Object.assign(i,(h=n.def)!=null?h:n.schema);const l=(x=(g=e.external)==null?void 0:g.defs)!=null?x:{};for(const y of e.seen.entries()){const k=y[1];k.def&&k.defId&&(l[k.defId]=k.def)}e.external||Object.keys(l).length>0&&(e.target==="draft-2020-12"?i.$defs=l:i.definitions=l);try{const y=JSON.parse(JSON.stringify(i));return Object.defineProperty(y,"~standard",{value:{...t["~standard"],jsonSchema:{input:qv(t,"input",e.processors),output:qv(t,"output",e.processors)}},enumerable:!1,writable:!1}),y}catch(y){throw new Error("Error converting schema to JSON.")}}function xo(e,t){const n=t!=null?t:{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);const a=e._zod.def;if(a.type==="transform")return!0;if(a.type==="array")return xo(a.element,n);if(a.type==="set")return xo(a.valueType,n);if(a.type==="lazy")return xo(a.getter(),n);if(a.type==="promise"||a.type==="optional"||a.type==="nonoptional"||a.type==="nullable"||a.type==="readonly"||a.type==="default"||a.type==="prefault")return xo(a.innerType,n);if(a.type==="intersection")return xo(a.left,n)||xo(a.right,n);if(a.type==="record"||a.type==="map")return xo(a.keyType,n)||xo(a.valueType,n);if(a.type==="pipe")return xo(a.in,n)||xo(a.out,n);if(a.type==="object"){for(const i in a.shape)if(xo(a.shape[i],n))return!0;return!1}if(a.type==="union"){for(const i of a.options)if(xo(i,n))return!0;return!1}if(a.type==="tuple"){for(const i of a.items)if(xo(i,n))return!0;return!!(a.rest&&xo(a.rest,n))}return!1}const Dz=(e,t={})=>n=>{const a=$v({...n,processors:t});return cr(e,a),Zv(a,e),Wv(a,e)},qv=(e,t,n={})=>a=>{const{libraryOptions:i,target:l}=a!=null?a:{},u=$v({...i!=null?i:{},target:l,io:t,processors:n});return cr(e,u),Zv(u,e),Wv(u,e)},jz={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},uC=(e,t,n,a)=>{var x;const i=n;i.type="string";const{minimum:l,maximum:u,format:f,patterns:h,contentEncoding:g}=e._zod.bag;if(typeof l=="number"&&(i.minLength=l),typeof u=="number"&&(i.maxLength=u),f&&(i.format=(x=jz[f])!=null?x:f,i.format===""&&delete i.format,f==="time"&&delete i.format),g&&(i.contentEncoding=g),h&&h.size>0){const y=[...h];y.length===1?i.pattern=y[0].source:y.length>1&&(i.allOf=[...y.map(k=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:k.source}))])}},cC=(e,t,n,a)=>{const i=n,{minimum:l,maximum:u,format:f,multipleOf:h,exclusiveMaximum:g,exclusiveMinimum:x}=e._zod.bag;typeof f=="string"&&f.includes("int")?i.type="integer":i.type="number",typeof x=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(i.minimum=x,i.exclusiveMinimum=!0):i.exclusiveMinimum=x),typeof l=="number"&&(i.minimum=l,typeof x=="number"&&t.target!=="draft-04"&&(x>=l?delete i.minimum:delete i.exclusiveMinimum)),typeof g=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(i.maximum=g,i.exclusiveMaximum=!0):i.exclusiveMaximum=g),typeof u=="number"&&(i.maximum=u,typeof g=="number"&&t.target!=="draft-04"&&(g<=u?delete i.maximum:delete i.exclusiveMaximum)),typeof h=="number"&&(i.multipleOf=h)},dC=(e,t,n,a)=>{n.type="boolean"},Pz=(e,t,n,a)=>{if(t.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema")},Fz=(e,t,n,a)=>{if(t.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema")},fC=(e,t,n,a)=>{t.target==="openapi-3.0"?(n.type="string",n.nullable=!0,n.enum=[null]):n.type="null"},zz=(e,t,n,a)=>{if(t.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema")},Uz=(e,t,n,a)=>{if(t.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema")},pC=(e,t,n,a)=>{n.not={}},hC=(e,t,n,a)=>{},mC=(e,t,n,a)=>{},Bz=(e,t,n,a)=>{if(t.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema")},gC=(e,t,n,a)=>{const i=e._zod.def,l=_b(i.entries);l.every(u=>typeof u=="number")&&(n.type="number"),l.every(u=>typeof u=="string")&&(n.type="string"),n.enum=l},vC=(e,t,n,a)=>{const i=e._zod.def,l=[];for(const u of i.values)if(u===void 0){if(t.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof u=="bigint"){if(t.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");l.push(Number(u))}else l.push(u);if(l.length!==0)if(l.length===1){const u=l[0];n.type=u===null?"null":typeof u,t.target==="draft-04"||t.target==="openapi-3.0"?n.enum=[u]:n.const=u}else l.every(u=>typeof u=="number")&&(n.type="number"),l.every(u=>typeof u=="string")&&(n.type="string"),l.every(u=>typeof u=="boolean")&&(n.type="boolean"),l.every(u=>u===null)&&(n.type="null"),n.enum=l},Hz=(e,t,n,a)=>{if(t.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema")},Vz=(e,t,n,a)=>{const i=n,l=e._zod.pattern;if(!l)throw new Error("Pattern not found in template literal");i.type="string",i.pattern=l.source},$z=(e,t,n,a)=>{const i=n,l={type:"string",format:"binary",contentEncoding:"binary"},{minimum:u,maximum:f,mime:h}=e._zod.bag;u!==void 0&&(l.minLength=u),f!==void 0&&(l.maxLength=f),h?h.length===1?(l.contentMediaType=h[0],Object.assign(i,l)):(Object.assign(i,l),i.anyOf=h.map(g=>({contentMediaType:g}))):Object.assign(i,l)},Zz=(e,t,n,a)=>{n.type="boolean"},yC=(e,t,n,a)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},Wz=(e,t,n,a)=>{if(t.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema")},xC=(e,t,n,a)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},qz=(e,t,n,a)=>{if(t.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema")},Gz=(e,t,n,a)=>{if(t.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema")},wC=(e,t,n,a)=>{const i=n,l=e._zod.def,{minimum:u,maximum:f}=e._zod.bag;typeof u=="number"&&(i.minItems=u),typeof f=="number"&&(i.maxItems=f),i.type="array",i.items=cr(l.element,t,{...a,path:[...a.path,"items"]})},bC=(e,t,n,a)=>{var g;const i=n,l=e._zod.def;i.type="object",i.properties={};const u=l.shape;for(const x in u)i.properties[x]=cr(u[x],t,{...a,path:[...a.path,"properties",x]});const f=new Set(Object.keys(u)),h=new Set([...f].filter(x=>{const y=l.shape[x]._zod;return t.io==="input"?y.optin===void 0:y.optout===void 0}));h.size>0&&(i.required=Array.from(h)),((g=l.catchall)==null?void 0:g._zod.def.type)==="never"?i.additionalProperties=!1:l.catchall?l.catchall&&(i.additionalProperties=cr(l.catchall,t,{...a,path:[...a.path,"additionalProperties"]})):t.io==="output"&&(i.additionalProperties=!1)},CC=(e,t,n,a)=>{const i=e._zod.def,l=i.inclusive===!1,u=i.options.map((f,h)=>cr(f,t,{...a,path:[...a.path,l?"oneOf":"anyOf",h]}));l?n.oneOf=u:n.anyOf=u},SC=(e,t,n,a)=>{const i=e._zod.def,l=cr(i.left,t,{...a,path:[...a.path,"allOf",0]}),u=cr(i.right,t,{...a,path:[...a.path,"allOf",1]}),f=g=>"allOf"in g&&Object.keys(g).length===1,h=[...f(l)?l.allOf:[l],...f(u)?u.allOf:[u]];n.allOf=h},Yz=(e,t,n,a)=>{const i=n,l=e._zod.def;i.type="array";const u=t.target==="draft-2020-12"?"prefixItems":"items",f=t.target==="draft-2020-12"||t.target==="openapi-3.0"?"items":"additionalItems",h=l.items.map((k,b)=>cr(k,t,{...a,path:[...a.path,u,b]})),g=l.rest?cr(l.rest,t,{...a,path:[...a.path,f,...t.target==="openapi-3.0"?[l.items.length]:[]]}):null;t.target==="draft-2020-12"?(i.prefixItems=h,g&&(i.items=g)):t.target==="openapi-3.0"?(i.items={anyOf:h},g&&i.items.anyOf.push(g),i.minItems=h.length,g||(i.maxItems=h.length)):(i.items=h,g&&(i.additionalItems=g));const{minimum:x,maximum:y}=e._zod.bag;typeof x=="number"&&(i.minItems=x),typeof y=="number"&&(i.maxItems=y)},kC=(e,t,n,a)=>{const i=n,l=e._zod.def;i.type="object";const u=l.keyType,f=u._zod.bag,h=f==null?void 0:f.patterns;if(l.mode==="loose"&&h&&h.size>0){const x=cr(l.valueType,t,{...a,path:[...a.path,"patternProperties","*"]});i.patternProperties={};for(const y of h)i.patternProperties[y.source]=x}else(t.target==="draft-07"||t.target==="draft-2020-12")&&(i.propertyNames=cr(l.keyType,t,{...a,path:[...a.path,"propertyNames"]})),i.additionalProperties=cr(l.valueType,t,{...a,path:[...a.path,"additionalProperties"]});const g=u._zod.values;if(g){const x=[...g].filter(y=>typeof y=="string"||typeof y=="number");x.length>0&&(i.required=x)}},EC=(e,t,n,a)=>{const i=e._zod.def,l=cr(i.innerType,t,a),u=t.seen.get(e);t.target==="openapi-3.0"?(u.ref=i.innerType,n.nullable=!0):n.anyOf=[l,{type:"null"}]},_C=(e,t,n,a)=>{const i=e._zod.def;cr(i.innerType,t,a);const l=t.seen.get(e);l.ref=i.innerType},TC=(e,t,n,a)=>{const i=e._zod.def;cr(i.innerType,t,a);const l=t.seen.get(e);l.ref=i.innerType,n.default=JSON.parse(JSON.stringify(i.defaultValue))},RC=(e,t,n,a)=>{const i=e._zod.def;cr(i.innerType,t,a);const l=t.seen.get(e);l.ref=i.innerType,t.io==="input"&&(n._prefault=JSON.parse(JSON.stringify(i.defaultValue)))},AC=(e,t,n,a)=>{const i=e._zod.def;cr(i.innerType,t,a);const l=t.seen.get(e);l.ref=i.innerType;let u;try{u=i.catchValue(void 0)}catch(f){throw new Error("Dynamic catch values are not supported in JSON Schema")}n.default=u},NC=(e,t,n,a)=>{const i=e._zod.def,l=t.io==="input"?i.in._zod.def.type==="transform"?i.out:i.in:i.out;cr(l,t,a);const u=t.seen.get(e);u.ref=l},MC=(e,t,n,a)=>{const i=e._zod.def;cr(i.innerType,t,a);const l=t.seen.get(e);l.ref=i.innerType,n.readOnly=!0},Jz=(e,t,n,a)=>{const i=e._zod.def;cr(i.innerType,t,a);const l=t.seen.get(e);l.ref=i.innerType},Z3=(e,t,n,a)=>{const i=e._zod.def;cr(i.innerType,t,a);const l=t.seen.get(e);l.ref=i.innerType},OC=(e,t,n,a)=>{const i=e._zod.innerType;cr(i,t,a);const l=t.seen.get(e);l.ref=i},LC={string:uC,number:cC,boolean:dC,bigint:Pz,symbol:Fz,null:fC,undefined:zz,void:Uz,never:pC,any:hC,unknown:mC,date:Bz,enum:gC,literal:vC,nan:Hz,template_literal:Vz,file:$z,success:Zz,custom:yC,function:Wz,transform:xC,map:qz,set:Gz,array:wC,object:bC,union:CC,intersection:SC,tuple:Yz,record:kC,nullable:EC,nonoptional:_C,default:TC,prefault:RC,catch:AC,pipe:NC,readonly:MC,promise:Jz,optional:Z3,lazy:OC};function Xz(e,t){if("_idmap"in e){const a=e,i=$v({...t,processors:LC}),l={};for(const h of a._idmap.entries()){const[g,x]=h;cr(x,i)}const u={},f={registry:a,uri:t==null?void 0:t.uri,defs:l};i.external=f;for(const h of a._idmap.entries()){const[g,x]=h;Zv(i,x),u[g]=Wv(i,x)}if(Object.keys(l).length>0){const h=i.target==="draft-2020-12"?"$defs":"definitions";u.__shared={[h]:l}}return{schemas:u}}const n=$v({...t,processors:LC});return cr(e,n),Zv(n,e),Wv(n,e)}const Kz=ke("ZodISODateTime",(e,t)=>{QP.init(e,t),_r.init(e,t)});function Qz(e){return lz(Kz,e)}const eU=ke("ZodISODate",(e,t)=>{eF.init(e,t),_r.init(e,t)});function tU(e){return uz(eU,e)}const nU=ke("ZodISOTime",(e,t)=>{tF.init(e,t),_r.init(e,t)});function rU(e){return cz(nU,e)}const aU=ke("ZodISODuration",(e,t)=>{nF.init(e,t),_r.init(e,t)});function oU(e){return dz(aU,e)}const Di=ke("ZodError",(e,t)=>{Ob.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:n=>Zj(e,n)},flatten:{value:n=>$j(e,n)},addIssue:{value:n=>{e.issues.push(n),e.message=JSON.stringify(e.issues,D3,2)}},addIssues:{value:n=>{e.issues.push(...n),e.message=JSON.stringify(e.issues,D3,2)}},isEmpty:{get(){return e.issues.length===0}}})},{Parent:Error}),iU=z3(Di),sU=U3(Di),lU=Fv(Di),IC=zv(Di),uU=Gj(Di),cU=Yj(Di),dU=Jj(Di),fU=Xj(Di),pU=Kj(Di),hU=Qj(Di),mU=eP(Di),gU=tP(Di),dr=ke("ZodType",(e,t)=>(ur.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:qv(e,"input"),output:qv(e,"output")}}),e.toJSONSchema=Dz(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...n)=>{var a;return e.clone(Gu(t,{checks:[...(a=t.checks)!=null?a:[],...n.map(i=>typeof i=="function"?{_zod:{check:i,def:{check:"custom"},onattach:[]}}:i)]}),{parent:!0})},e.with=e.check,e.clone=(n,a)=>Yu(e,n,a),e.brand=()=>e,e.register=(n,a)=>(n.add(e,a),e),e.parse=(n,a)=>iU(e,n,a,{callee:e.parse}),e.safeParse=(n,a)=>lU(e,n,a),e.parseAsync=async(n,a)=>sU(e,n,a,{callee:e.parseAsync}),e.safeParseAsync=async(n,a)=>IC(e,n,a),e.spa=e.safeParseAsync,e.encode=(n,a)=>uU(e,n,a),e.decode=(n,a)=>cU(e,n,a),e.encodeAsync=async(n,a)=>dU(e,n,a),e.decodeAsync=async(n,a)=>fU(e,n,a),e.safeEncode=(n,a)=>pU(e,n,a),e.safeDecode=(n,a)=>hU(e,n,a),e.safeEncodeAsync=async(n,a)=>mU(e,n,a),e.safeDecodeAsync=async(n,a)=>gU(e,n,a),e.refine=(n,a)=>e.check(fB(n,a)),e.superRefine=n=>e.check(pB(n)),e.overwrite=n=>e.check(ap(n)),e.optional=()=>q3(e),e.exactOptional=()=>KU(e),e.nullable=()=>VC(e),e.nullish=()=>q3(VC(e)),e.nonoptional=n=>aB(e,n),e.array=()=>Un(e),e.or=n=>ca([e,n]),e.and=n=>WU(e,n),e.transform=n=>ZC(e,JU(n)),e.default=n=>tB(e,n),e.prefault=n=>rB(e,n),e.catch=n=>iB(e,n),e.pipe=n=>ZC(e,n),e.readonly=()=>uB(e),e.describe=n=>{const a=e.clone();return Mh.add(a,{description:n}),a},Object.defineProperty(e,"description",{get(){var n;return(n=Mh.get(e))==null?void 0:n.description},configurable:!0}),e.meta=(...n)=>{if(n.length===0)return Mh.get(e);const a=e.clone();return Mh.add(a,n[0]),a},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e.apply=n=>n(e),e)),DC=ke("_ZodString",(e,t)=>{var a,i,l;B3.init(e,t),dr.init(e,t),e._zod.processJSONSchema=(u,f,h)=>uC(e,u,f);const n=e._zod.bag;e.format=(a=n.format)!=null?a:null,e.minLength=(i=n.minimum)!=null?i:null,e.maxLength=(l=n.maximum)!=null?l:null,e.regex=(...u)=>e.check(xz(...u)),e.includes=(...u)=>e.check(Cz(...u)),e.startsWith=(...u)=>e.check(Sz(...u)),e.endsWith=(...u)=>e.check(kz(...u)),e.min=(...u)=>e.check(Vv(...u)),e.max=(...u)=>e.check(sC(...u)),e.length=(...u)=>e.check(lC(...u)),e.nonempty=(...u)=>e.check(Vv(1,...u)),e.lowercase=u=>e.check(wz(u)),e.uppercase=u=>e.check(bz(u)),e.trim=()=>e.check(_z()),e.normalize=(...u)=>e.check(Ez(...u)),e.toLowerCase=()=>e.check(Tz()),e.toUpperCase=()=>e.check(Rz()),e.slugify=()=>e.check(Az())}),vU=ke("ZodString",(e,t)=>{B3.init(e,t),DC.init(e,t),e.email=n=>e.check(BF(yU,n)),e.url=n=>e.check(WF(xU,n)),e.jwt=n=>e.check(sz(IU,n)),e.emoji=n=>e.check(qF(wU,n)),e.guid=n=>e.check(rC(jC,n)),e.uuid=n=>e.check(HF(Gv,n)),e.uuidv4=n=>e.check(VF(Gv,n)),e.uuidv6=n=>e.check($F(Gv,n)),e.uuidv7=n=>e.check(ZF(Gv,n)),e.nanoid=n=>e.check(GF(bU,n)),e.guid=n=>e.check(rC(jC,n)),e.cuid=n=>e.check(YF(CU,n)),e.cuid2=n=>e.check(JF(SU,n)),e.ulid=n=>e.check(XF(kU,n)),e.base64=n=>e.check(az(MU,n)),e.base64url=n=>e.check(oz(OU,n)),e.xid=n=>e.check(KF(EU,n)),e.ksuid=n=>e.check(QF(_U,n)),e.ipv4=n=>e.check(ez(TU,n)),e.ipv6=n=>e.check(tz(RU,n)),e.cidrv4=n=>e.check(nz(AU,n)),e.cidrv6=n=>e.check(rz(NU,n)),e.e164=n=>e.check(iz(LU,n)),e.datetime=n=>e.check(Qz(n)),e.date=n=>e.check(tU(n)),e.time=n=>e.check(rU(n)),e.duration=n=>e.check(oU(n))});function ee(e){return UF(vU,e)}const _r=ke("ZodStringFormat",(e,t)=>{kr.init(e,t),DC.init(e,t)}),yU=ke("ZodEmail",(e,t)=>{$P.init(e,t),_r.init(e,t)}),jC=ke("ZodGUID",(e,t)=>{HP.init(e,t),_r.init(e,t)}),Gv=ke("ZodUUID",(e,t)=>{VP.init(e,t),_r.init(e,t)}),xU=ke("ZodURL",(e,t)=>{ZP.init(e,t),_r.init(e,t)}),wU=ke("ZodEmoji",(e,t)=>{WP.init(e,t),_r.init(e,t)}),bU=ke("ZodNanoID",(e,t)=>{qP.init(e,t),_r.init(e,t)}),CU=ke("ZodCUID",(e,t)=>{GP.init(e,t),_r.init(e,t)}),SU=ke("ZodCUID2",(e,t)=>{YP.init(e,t),_r.init(e,t)}),kU=ke("ZodULID",(e,t)=>{JP.init(e,t),_r.init(e,t)}),EU=ke("ZodXID",(e,t)=>{XP.init(e,t),_r.init(e,t)}),_U=ke("ZodKSUID",(e,t)=>{KP.init(e,t),_r.init(e,t)}),TU=ke("ZodIPv4",(e,t)=>{rF.init(e,t),_r.init(e,t)}),RU=ke("ZodIPv6",(e,t)=>{aF.init(e,t),_r.init(e,t)}),AU=ke("ZodCIDRv4",(e,t)=>{oF.init(e,t),_r.init(e,t)}),NU=ke("ZodCIDRv6",(e,t)=>{iF.init(e,t),_r.init(e,t)}),MU=ke("ZodBase64",(e,t)=>{sF.init(e,t),_r.init(e,t)}),OU=ke("ZodBase64URL",(e,t)=>{uF.init(e,t),_r.init(e,t)}),LU=ke("ZodE164",(e,t)=>{cF.init(e,t),_r.init(e,t)}),IU=ke("ZodJWT",(e,t)=>{fF.init(e,t),_r.init(e,t)}),PC=ke("ZodNumber",(e,t)=>{var a,i,l,u,f,h,g,x,y;Vb.init(e,t),dr.init(e,t),e._zod.processJSONSchema=(k,b,_)=>cC(e,k,b),e.gt=(k,b)=>e.check(oC(k,b)),e.gte=(k,b)=>e.check($3(k,b)),e.min=(k,b)=>e.check($3(k,b)),e.lt=(k,b)=>e.check(aC(k,b)),e.lte=(k,b)=>e.check(V3(k,b)),e.max=(k,b)=>e.check(V3(k,b)),e.int=k=>e.check(FC(k)),e.safe=k=>e.check(FC(k)),e.positive=k=>e.check(oC(0,k)),e.nonnegative=k=>e.check($3(0,k)),e.negative=k=>e.check(aC(0,k)),e.nonpositive=k=>e.check(V3(0,k)),e.multipleOf=(k,b)=>e.check(iC(k,b)),e.step=(k,b)=>e.check(iC(k,b)),e.finite=()=>e;const n=e._zod.bag;e.minValue=(l=Math.max((a=n.minimum)!=null?a:Number.NEGATIVE_INFINITY,(i=n.exclusiveMinimum)!=null?i:Number.NEGATIVE_INFINITY))!=null?l:null,e.maxValue=(h=Math.min((u=n.maximum)!=null?u:Number.POSITIVE_INFINITY,(f=n.exclusiveMaximum)!=null?f:Number.POSITIVE_INFINITY))!=null?h:null,e.isInt=((g=n.format)!=null?g:"").includes("int")||Number.isSafeInteger((x=n.multipleOf)!=null?x:.5),e.isFinite=!0,e.format=(y=n.format)!=null?y:null});function or(e){return fz(PC,e)}const DU=ke("ZodNumberFormat",(e,t)=>{pF.init(e,t),PC.init(e,t)});function FC(e){return pz(DU,e)}const jU=ke("ZodBoolean",(e,t)=>{hF.init(e,t),dr.init(e,t),e._zod.processJSONSchema=(n,a,i)=>dC(e,n,a)});function fn(e){return hz(jU,e)}const PU=ke("ZodNull",(e,t)=>{mF.init(e,t),dr.init(e,t),e._zod.processJSONSchema=(n,a,i)=>fC(e,n,a)});function FU(e){return mz(PU,e)}const zU=ke("ZodAny",(e,t)=>{gF.init(e,t),dr.init(e,t),e._zod.processJSONSchema=(n,a,i)=>hC()});function ql(){return gz(zU)}const UU=ke("ZodUnknown",(e,t)=>{vF.init(e,t),dr.init(e,t),e._zod.processJSONSchema=(n,a,i)=>mC()});function Bo(){return vz(UU)}const BU=ke("ZodNever",(e,t)=>{yF.init(e,t),dr.init(e,t),e._zod.processJSONSchema=(n,a,i)=>pC(e,n,a)});function zC(e){return yz(BU,e)}const HU=ke("ZodArray",(e,t)=>{xF.init(e,t),dr.init(e,t),e._zod.processJSONSchema=(n,a,i)=>wC(e,n,a,i),e.element=t.element,e.min=(n,a)=>e.check(Vv(n,a)),e.nonempty=n=>e.check(Vv(1,n)),e.max=(n,a)=>e.check(sC(n,a)),e.length=(n,a)=>e.check(lC(n,a)),e.unwrap=()=>e.element});function Un(e,t){return Nz(HU,e,t)}const UC=ke("ZodObject",(e,t)=>{bF.init(e,t),dr.init(e,t),e._zod.processJSONSchema=(n,a,i)=>bC(e,n,a,i),kn(e,"shape",()=>t.shape),e.keyof=()=>vn(Object.keys(e._zod.def.shape)),e.catchall=n=>e.clone({...e._zod.def,catchall:n}),e.passthrough=()=>e.clone({...e._zod.def,catchall:Bo()}),e.loose=()=>e.clone({...e._zod.def,catchall:Bo()}),e.strict=()=>e.clone({...e._zod.def,catchall:zC()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=n=>zj(e,n),e.safeExtend=n=>Uj(e,n),e.merge=n=>Bj(e,n),e.pick=n=>Pj(e,n),e.omit=n=>Fj(e,n),e.partial=(...n)=>Hj(HC,e,n[0]),e.required=(...n)=>Vj($C,e,n[0])});function $e(e,t){const n={type:"object",shape:e!=null?e:{},...wt(t)};return new UC(n)}function Tr(e,t){return new UC({type:"object",shape:e,catchall:zC(),...wt(t)})}const BC=ke("ZodUnion",(e,t)=>{Gb.init(e,t),dr.init(e,t),e._zod.processJSONSchema=(n,a,i)=>CC(e,n,a,i),e.options=t.options});function ca(e,t){return new BC({type:"union",options:e,...wt(t)})}const VU=ke("ZodDiscriminatedUnion",(e,t)=>{BC.init(e,t),CF.init(e,t)});function $U(e,t,n){return new VU({type:"union",options:t,discriminator:e,...wt(n)})}const ZU=ke("ZodIntersection",(e,t)=>{SF.init(e,t),dr.init(e,t),e._zod.processJSONSchema=(n,a,i)=>SC(e,n,a,i)});function WU(e,t){return new ZU({type:"intersection",left:e,right:t})}const qU=ke("ZodRecord",(e,t)=>{kF.init(e,t),dr.init(e,t),e._zod.processJSONSchema=(n,a,i)=>kC(e,n,a,i),e.keyType=t.keyType,e.valueType=t.valueType});function op(e,t,n){return new qU({type:"record",keyType:e,valueType:t,...wt(n)})}const W3=ke("ZodEnum",(e,t)=>{EF.init(e,t),dr.init(e,t),e._zod.processJSONSchema=(a,i,l)=>gC(e,a,i),e.enum=t.entries,e.options=Object.values(t.entries);const n=new Set(Object.keys(t.entries));e.extract=(a,i)=>{const l={};for(const u of a)if(n.has(u))l[u]=t.entries[u];else throw new Error(`Key ${u} not found in enum`);return new W3({...t,checks:[],...wt(i),entries:l})},e.exclude=(a,i)=>{const l={...t.entries};for(const u of a)if(n.has(u))delete l[u];else throw new Error(`Key ${u} not found in enum`);return new W3({...t,checks:[],...wt(i),entries:l})}});function vn(e,t){const n=Array.isArray(e)?Object.fromEntries(e.map(a=>[a,a])):e;return new W3({type:"enum",entries:n,...wt(t)})}const GU=ke("ZodLiteral",(e,t)=>{_F.init(e,t),dr.init(e,t),e._zod.processJSONSchema=(n,a,i)=>vC(e,n,a),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function $t(e,t){return new GU({type:"literal",values:Array.isArray(e)?e:[e],...wt(t)})}const YU=ke("ZodTransform",(e,t)=>{TF.init(e,t),dr.init(e,t),e._zod.processJSONSchema=(n,a,i)=>xC(e,n),e._zod.parse=(n,a)=>{if(a.direction==="backward")throw new kb(e.constructor.name);n.addIssue=l=>{var u,f,h;if(typeof l=="string")n.issues.push(Nh(l,n.value,t));else{const g=l;g.fatal&&(g.continue=!1),(u=g.code)!=null||(g.code="custom"),(f=g.input)!=null||(g.input=n.value),(h=g.inst)!=null||(g.inst=e),n.issues.push(Nh(g))}};const i=t.transform(n.value,n);return i instanceof Promise?i.then(l=>(n.value=l,n)):(n.value=i,n)}});function JU(e){return new YU({type:"transform",transform:e})}const HC=ke("ZodOptional",(e,t)=>{Xb.init(e,t),dr.init(e,t),e._zod.processJSONSchema=(n,a,i)=>Z3(e,n,a,i),e.unwrap=()=>e._zod.def.innerType});function q3(e){return new HC({type:"optional",innerType:e})}const XU=ke("ZodExactOptional",(e,t)=>{RF.init(e,t),dr.init(e,t),e._zod.processJSONSchema=(n,a,i)=>Z3(e,n,a,i),e.unwrap=()=>e._zod.def.innerType});function KU(e){return new XU({type:"optional",innerType:e})}const QU=ke("ZodNullable",(e,t)=>{AF.init(e,t),dr.init(e,t),e._zod.processJSONSchema=(n,a,i)=>EC(e,n,a,i),e.unwrap=()=>e._zod.def.innerType});function VC(e){return new QU({type:"nullable",innerType:e})}const eB=ke("ZodDefault",(e,t)=>{NF.init(e,t),dr.init(e,t),e._zod.processJSONSchema=(n,a,i)=>TC(e,n,a,i),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function tB(e,t){return new eB({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():Nb(t)}})}const nB=ke("ZodPrefault",(e,t)=>{MF.init(e,t),dr.init(e,t),e._zod.processJSONSchema=(n,a,i)=>RC(e,n,a,i),e.unwrap=()=>e._zod.def.innerType});function rB(e,t){return new nB({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():Nb(t)}})}const $C=ke("ZodNonOptional",(e,t)=>{OF.init(e,t),dr.init(e,t),e._zod.processJSONSchema=(n,a,i)=>_C(e,n,a,i),e.unwrap=()=>e._zod.def.innerType});function aB(e,t){return new $C({type:"nonoptional",innerType:e,...wt(t)})}const oB=ke("ZodCatch",(e,t)=>{LF.init(e,t),dr.init(e,t),e._zod.processJSONSchema=(n,a,i)=>AC(e,n,a,i),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function iB(e,t){return new oB({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}const sB=ke("ZodPipe",(e,t)=>{IF.init(e,t),dr.init(e,t),e._zod.processJSONSchema=(n,a,i)=>NC(e,n,a,i),e.in=t.in,e.out=t.out});function ZC(e,t){return new sB({type:"pipe",in:e,out:t})}const lB=ke("ZodReadonly",(e,t)=>{DF.init(e,t),dr.init(e,t),e._zod.processJSONSchema=(n,a,i)=>MC(e,n,a,i),e.unwrap=()=>e._zod.def.innerType});function uB(e){return new lB({type:"readonly",innerType:e})}const cB=ke("ZodLazy",(e,t)=>{jF.init(e,t),dr.init(e,t),e._zod.processJSONSchema=(n,a,i)=>OC(e,n,a,i),e.unwrap=()=>e._zod.def.getter()});function dB(e){return new cB({type:"lazy",getter:e})}const G3=ke("ZodCustom",(e,t)=>{PF.init(e,t),dr.init(e,t),e._zod.processJSONSchema=(n,a,i)=>yC(e,n)});function WC(e,t){return Mz(G3,e!=null?e:()=>!0,t)}function fB(e,t={}){return Oz(G3,e,t)}function pB(e){return Lz(e)}function Yv(e,t={}){const n=new G3({type:"custom",check:"custom",fn:a=>a instanceof e,abort:!0,...wt(t)});return n._zod.bag.Class=e,n._zod.check=a=>{var i;a.value instanceof e||a.issues.push({code:"invalid_type",expected:e.name,input:a.value,inst:n,path:[...(i=n._zod.def.path)!=null?i:[]]})},n}var Oh;(function(e){e.assertEqual=i=>{};function t(i){}e.assertIs=t;function n(i){throw new Error}e.assertNever=n,e.arrayToEnum=i=>{const l={};for(const u of i)l[u]=u;return l},e.getValidEnumValues=i=>{const l=e.objectKeys(i).filter(f=>typeof i[i[f]]!="number"),u={};for(const f of l)u[f]=i[f];return e.objectValues(u)},e.objectValues=i=>e.objectKeys(i).map(function(l){return i[l]}),e.objectKeys=typeof Object.keys=="function"?i=>Object.keys(i):i=>{const l=[];for(const u in i)Object.prototype.hasOwnProperty.call(i,u)&&l.push(u);return l},e.find=(i,l)=>{for(const u of i)if(l(u))return u},e.isInteger=typeof Number.isInteger=="function"?i=>Number.isInteger(i):i=>typeof i=="number"&&Number.isFinite(i)&&Math.floor(i)===i;function a(i,l=" | "){return i.map(u=>typeof u=="string"?`'${u}'`:u).join(l)}e.joinValues=a,e.jsonStringifyReplacer=(i,l)=>typeof l=="bigint"?l.toString():l})(Oh||(Oh={}));var qC;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(qC||(qC={})),Oh.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Oh.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class Jv extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=a=>{this.issues=[...this.issues,a]},this.addIssues=(a=[])=>{this.issues=[...this.issues,...a]};const n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=t}format(t){const n=t||function(l){return l.message},a={_errors:[]},i=l=>{for(const u of l.issues)if(u.code==="invalid_union")u.unionErrors.map(i);else if(u.code==="invalid_return_type")i(u.returnTypeError);else if(u.code==="invalid_arguments")i(u.argumentsError);else if(u.path.length===0)a._errors.push(n(u));else{let f=a,h=0;for(;h<u.path.length;){const g=u.path[h];h===u.path.length-1?(f[g]=f[g]||{_errors:[]},f[g]._errors.push(n(u))):f[g]=f[g]||{_errors:[]},f=f[g],h++}}};return i(this),a}static assert(t){if(!(t instanceof Jv))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,Oh.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=n=>n.message){const n=Object.create(null),a=[];for(const i of this.issues)if(i.path.length>0){const l=i.path[0];n[l]=n[l]||[],n[l].push(t(i))}else a.push(t(i));return{formErrors:a,fieldErrors:n}}get formErrors(){return this.flatten()}}Jv.create=e=>new Jv(e);var GC;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t==null?void 0:t.message})(GC||(GC={}));var tn;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(tn||(tn={}));function ip(...e){return e.reduce((t,n)=>({...t,...n!=null?n:{}}),{})}async function hB(e,t){if(e==null)return Promise.resolve();const n=t==null?void 0:t.abortSignal;return new Promise((a,i)=>{if(n!=null&&n.aborted){i(YC());return}const l=setTimeout(()=>{u(),a()},e),u=()=>{clearTimeout(l),n==null||n.removeEventListener("abort",f)},f=()=>{u(),i(YC())};n==null||n.addEventListener("abort",f)})}function YC(){return new DOMException("Delay was aborted","AbortError")}var Xv=class{constructor(){this.status={type:"pending"},this._resolve=void 0,this._reject=void 0}get promise(){return this._promise?this._promise:(this._promise=new Promise((e,t)=>{this.status.type==="resolved"?e(this.status.value):this.status.type==="rejected"&&t(this.status.error),this._resolve=e,this._reject=t}),this._promise)}resolve(e){var t;this.status={type:"resolved",value:e},this._promise&&((t=this._resolve)==null||t.call(this,e))}reject(e){var t;this.status={type:"rejected",error:e},this._promise&&((t=this._reject)==null||t.call(this,e))}isResolved(){return this.status.type==="resolved"}isRejected(){return this.status.type==="rejected"}isPending(){return this.status.type==="pending"}};function Lh(e){return Object.fromEntries([...e.headers])}var Ih=({prefix:e,size:t=16,alphabet:n="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",separator:a="-"}={})=>{const i=()=>{const l=n.length,u=new Array(t);for(let f=0;f<t;f++)u[f]=n[Math.random()*l|0];return u.join("")};if(e==null)return i;if(n.includes(a))throw new Ww({argument:"separator",message:`The separator "${a}" must not be part of the alphabet "${n}".`});return()=>`${e}${a}${i()}`},cd=Ih();function Kv(e){return e==null?"unknown error":typeof e=="string"?e:e instanceof Error?e.message:JSON.stringify(e)}function dd(e){return(e instanceof Error||e instanceof DOMException)&&(e.name==="AbortError"||e.name==="ResponseAborted"||e.name==="TimeoutError")}var mB=["fetch failed","failed to fetch"];function JC({error:e,url:t,requestBodyValues:n}){if(dd(e))return e;if(e instanceof TypeError&&mB.includes(e.message.toLowerCase())){const a=e.cause;if(a!=null)return new yo({message:`Cannot connect to API: ${a.message}`,cause:a,url:t,requestBodyValues:n,isRetryable:!0})}return e}function Dh(e=globalThis){var t,n,a;return e.window?"runtime/browser":(t=e.navigator)!=null&&t.userAgent?`runtime/${e.navigator.userAgent.toLowerCase()}`:(a=(n=e.process)==null?void 0:n.versions)!=null&&a.node?`runtime/node.js/${e.process.version.substring(0)}`:e.EdgeRuntime?"runtime/vercel-edge":"runtime/unknown"}function fd(e){if(e==null)return{};const t={};if(e instanceof Headers)e.forEach((n,a)=>{t[a.toLowerCase()]=n});else{Array.isArray(e)||(e=Object.entries(e));for(const[n,a]of e)a!=null&&(t[n.toLowerCase()]=a)}return t}function Xu(e,...t){const n=new Headers(fd(e)),a=n.get("user-agent")||"";return n.set("user-agent",[a,...t].filter(Boolean).join(" ")),Object.fromEntries(n.entries())}var XC="3.0.20",gB=()=>globalThis.fetch,KC=async({url:e,headers:t={},successfulResponseHandler:n,failedResponseHandler:a,abortSignal:i,fetch:l=gB()})=>{try{const u=await l(e,{method:"GET",headers:Xu(t,`ai-sdk/provider-utils/${XC}`,Dh()),signal:i}),f=Lh(u);if(!u.ok){let h;try{h=await a({response:u,url:e,requestBodyValues:{}})}catch(g){throw dd(g)||yo.isInstance(g)?g:new yo({message:"Failed to process error response",cause:g,statusCode:u.status,url:e,responseHeaders:f,requestBodyValues:{}})}throw h.value}try{return await n({response:u,url:e,requestBodyValues:{}})}catch(h){throw h instanceof Error&&(dd(h)||yo.isInstance(h))?h:new yo({message:"Failed to process successful response",cause:h,statusCode:u.status,url:e,responseHeaders:f,requestBodyValues:{}})}}catch(u){throw JC({error:u,url:e,requestBodyValues:{}})}};function vB({mediaType:e,url:t,supportedUrls:n}){return t=t.toLowerCase(),e=e.toLowerCase(),Object.entries(n).map(([a,i])=>{const l=a.toLowerCase();return l==="*"||l==="*/*"?{mediaTypePrefix:"",regexes:i}:{mediaTypePrefix:l.replace(/\*/,""),regexes:i}}).filter(({mediaTypePrefix:a})=>e.startsWith(a)).flatMap(({regexes:a})=>a).some(a=>a.test(t))}function yB({apiKey:e,environmentVariableName:t,apiKeyParameterName:n="apiKey",description:a}){if(typeof e=="string")return e;if(e!=null)throw new Dv({message:`${a} API key must be a string.`});if(typeof process=="undefined")throw new Dv({message:`${a} API key is missing. Pass it using the '${n}' parameter. Environment variables is not supported in this environment.`});if(e=process.env[t],e==null)throw new Dv({message:`${a} API key is missing. Pass it using the '${n}' parameter or the ${t} environment variable.`});if(typeof e!="string")throw new Dv({message:`${a} API key must be a string. The value of the ${t} environment variable is not a string.`});return e}function Qv({settingValue:e,environmentVariableName:t}){if(typeof e=="string")return e;if(!(e!=null||typeof process=="undefined")&&(e=process.env[t],!(e==null||typeof e!="string")))return e}var xB=/"__proto__"\s*:/,wB=/"constructor"\s*:/;function QC(e){const t=JSON.parse(e);return t===null||typeof t!="object"||xB.test(e)===!1&&wB.test(e)===!1?t:bB(t)}function bB(e){let t=[e];for(;t.length;){const n=t;t=[];for(const a of n){if(Object.prototype.hasOwnProperty.call(a,"__proto__"))throw new SyntaxError("Object contains forbidden prototype property");if(Object.prototype.hasOwnProperty.call(a,"constructor")&&Object.prototype.hasOwnProperty.call(a.constructor,"prototype"))throw new SyntaxError("Object contains forbidden prototype property");for(const i in a){const l=a[i];l&&typeof l=="object"&&t.push(l)}}}return e}function Y3(e){const{stackTraceLimit:t}=Error;try{Error.stackTraceLimit=0}catch(n){return QC(e)}try{return QC(e)}finally{Error.stackTraceLimit=t}}var e0=Symbol.for("vercel.ai.validator");function CB(e){return{[e0]:!0,validate:e}}function SB(e){return typeof e=="object"&&e!==null&&e0 in e&&e[e0]===!0&&"validate"in e}function pd(e){let t;return()=>(t==null&&(t=e()),t)}function kB(e){return SB(e)?e:typeof e=="function"?e():EB(e)}function EB(e){return CB(async t=>{const n=await e["~standard"].validate(t);return n.issues==null?{success:!0,value:n.value}:{success:!1,error:new Rh({value:t,cause:n.issues})}})}async function J3({value:e,schema:t}){const n=await Gl({value:e,schema:t});if(!n.success)throw Rh.wrap({value:e,cause:n.error});return n.value}async function Gl({value:e,schema:t}){const n=kB(t);try{if(n.validate==null)return{success:!0,value:e,rawValue:e};const a=await n.validate(e);return a.success?{success:!0,value:a.value,rawValue:e}:{success:!1,error:Rh.wrap({value:e,cause:a.error}),rawValue:e}}catch(a){return{success:!1,error:Rh.wrap({value:e,cause:a}),rawValue:e}}}async function _B({text:e,schema:t}){try{const n=Y3(e);return t==null?n:J3({value:n,schema:t})}catch(n){throw Iv.isInstance(n)||Rh.isInstance(n)?n:new Iv({text:e,cause:n})}}async function hd({text:e,schema:t}){try{const n=Y3(e);return t==null?{success:!0,value:n,rawValue:n}:await Gl({value:n,schema:t})}catch(n){return{success:!1,error:Iv.isInstance(n)?n:new Iv({text:e,cause:n}),rawValue:void 0}}}function eS(e){try{return Y3(e),!0}catch(t){return!1}}function tS({stream:e,schema:t}){return e.pipeThrough(new TextDecoderStream).pipeThrough(new Nj).pipeThrough(new TransformStream({async transform({data:n},a){n!=="[DONE]"&&a.enqueue(await hd({text:n,schema:t}))}}))}async function TB({provider:e,providerOptions:t,schema:n}){if((t==null?void 0:t[e])==null)return;const a=await Gl({value:t[e],schema:n});if(!a.success)throw new Ww({argument:"providerOptions",message:`invalid ${e} provider options`,cause:a.error});return a.value}var RB=()=>globalThis.fetch,sp=async({url:e,headers:t,body:n,failedResponseHandler:a,successfulResponseHandler:i,abortSignal:l,fetch:u})=>AB({url:e,headers:{"Content-Type":"application/json",...t},body:{content:JSON.stringify(n),values:n},failedResponseHandler:a,successfulResponseHandler:i,abortSignal:l,fetch:u}),AB=async({url:e,headers:t={},body:n,successfulResponseHandler:a,failedResponseHandler:i,abortSignal:l,fetch:u=RB()})=>{try{const f=await u(e,{method:"POST",headers:Xu(t,`ai-sdk/provider-utils/${XC}`,Dh()),body:n.content,signal:l}),h=Lh(f);if(!f.ok){let g;try{g=await i({response:f,url:e,requestBodyValues:n.values})}catch(x){throw dd(x)||yo.isInstance(x)?x:new yo({message:"Failed to process error response",cause:x,statusCode:f.status,url:e,responseHeaders:h,requestBodyValues:n.values})}throw g.value}try{return await a({response:f,url:e,requestBodyValues:n.values})}catch(g){throw g instanceof Error&&(dd(g)||yo.isInstance(g))?g:new yo({message:"Failed to process successful response",cause:g,statusCode:f.status,url:e,responseHeaders:h,requestBodyValues:n.values})}}catch(f){throw JC({error:f,url:e,requestBodyValues:n.values})}};function Hpe(e){return e}function NB({id:e,name:t,inputSchema:n,outputSchema:a}){return({execute:i,toModelOutput:l,onInputStart:u,onInputDelta:f,onInputAvailable:h,...g})=>({type:"provider-defined",id:e,name:t,args:g,inputSchema:n,outputSchema:a,execute:i,toModelOutput:l,onInputStart:u,onInputDelta:f,onInputAvailable:h})}async function Xa(e){return typeof e=="function"&&(e=e()),Promise.resolve(e)}var md=({errorSchema:e,errorToMessage:t,isRetryable:n})=>async({response:a,url:i,requestBodyValues:l})=>{const u=await a.text(),f=Lh(a);if(u.trim()==="")return{responseHeaders:f,value:new yo({message:a.statusText,url:i,requestBodyValues:l,statusCode:a.status,responseHeaders:f,responseBody:u,isRetryable:n==null?void 0:n(a)})};try{const h=await _B({text:u,schema:e});return{responseHeaders:f,value:new yo({message:t(h),url:i,requestBodyValues:l,statusCode:a.status,responseHeaders:f,responseBody:u,data:h,isRetryable:n==null?void 0:n(a,h)})}}catch(h){return{responseHeaders:f,value:new yo({message:a.statusText,url:i,requestBodyValues:l,statusCode:a.status,responseHeaders:f,responseBody:u,isRetryable:n==null?void 0:n(a)})}}},nS=e=>async({response:t})=>{const n=Lh(t);if(t.body==null)throw new yj({});return{responseHeaders:n,value:tS({stream:t.body,schema:e})}},lp=e=>async({response:t,url:n,requestBodyValues:a})=>{const i=await t.text(),l=await hd({text:i,schema:e}),u=Lh(t);if(!l.success)throw new yo({message:"Invalid JSON response",cause:l.error,statusCode:t.status,responseHeaders:u,responseBody:i,url:n,requestBodyValues:a});return{responseHeaders:u,value:l.value,rawValue:l.rawValue}};function t0(e){if(e.type==="object"){e.additionalProperties=!1;const t=e.properties;if(t!=null)for(const n in t)t[n]=t0(t[n])}return e.type==="array"&&e.items!=null&&(Array.isArray(e.items)?e.items=e.items.map(t=>t0(t)):e.items=t0(e.items)),e}var MB=(e,t)=>{let n=0;for(;n<e.length&&n<t.length&&e[n]===t[n];n++);return[(e.length-n).toString(),...t.slice(n)].join("/")},OB=Symbol("Let zodToJsonSchema decide on which parser to use"),rS={name:void 0,$refStrategy:"root",basePath:["#"],effectStrategy:"input",pipeStrategy:"all",dateStrategy:"format:date-time",mapStrategy:"entries",removeAdditionalStrategy:"passthrough",allowedAdditionalProperties:!0,rejectedAdditionalProperties:!1,definitionPath:"definitions",strictUnions:!1,definitions:{},errorMessages:!1,patternStrategy:"escape",applyRegexFlags:!1,emailStrategy:"format:email",base64Strategy:"contentEncoding:base64",nameStrategy:"ref"},LB=e=>typeof e=="string"?{...rS,name:e}:{...rS,...e};function ci(){return{}}function IB(e,t){var n,a,i;const l={type:"array"};return(n=e.type)!=null&&n._def&&((i=(a=e.type)==null?void 0:a._def)==null?void 0:i.typeName)!==tn.ZodAny&&(l.items=Xn(e.type._def,{...t,currentPath:[...t.currentPath,"items"]})),e.minLength&&(l.minItems=e.minLength.value),e.maxLength&&(l.maxItems=e.maxLength.value),e.exactLength&&(l.minItems=e.exactLength.value,l.maxItems=e.exactLength.value),l}function DB(e){const t={type:"integer",format:"int64"};if(!e.checks)return t;for(const n of e.checks)switch(n.kind){case"min":n.inclusive?t.minimum=n.value:t.exclusiveMinimum=n.value;break;case"max":n.inclusive?t.maximum=n.value:t.exclusiveMaximum=n.value;break;case"multipleOf":t.multipleOf=n.value;break}return t}function jB(){return{type:"boolean"}}function aS(e,t){return Xn(e.type._def,t)}var PB=(e,t)=>Xn(e.innerType._def,t);function oS(e,t,n){const a=n!=null?n:t.dateStrategy;if(Array.isArray(a))return{anyOf:a.map((i,l)=>oS(e,t,i))};switch(a){case"string":case"format:date-time":return{type:"string",format:"date-time"};case"format:date":return{type:"string",format:"date"};case"integer":return FB(e)}}var FB=e=>{const t={type:"integer",format:"unix-time"};for(const n of e.checks)switch(n.kind){case"min":t.minimum=n.value;break;case"max":t.maximum=n.value;break}return t};function zB(e,t){return{...Xn(e.innerType._def,t),default:e.defaultValue()}}function UB(e,t){return t.effectStrategy==="input"?Xn(e.schema._def,t):ci()}function BB(e){return{type:"string",enum:Array.from(e.values)}}var HB=e=>"type"in e&&e.type==="string"?!1:"allOf"in e;function VB(e,t){const n=[Xn(e.left._def,{...t,currentPath:[...t.currentPath,"allOf","0"]}),Xn(e.right._def,{...t,currentPath:[...t.currentPath,"allOf","1"]})].filter(i=>!!i),a=[];return n.forEach(i=>{if(HB(i))a.push(...i.allOf);else{let l=i;if("additionalProperties"in i&&i.additionalProperties===!1){const{additionalProperties:u,...f}=i;l=f}a.push(l)}}),a.length?{allOf:a}:void 0}function $B(e){const t=typeof e.value;return t!=="bigint"&&t!=="number"&&t!=="boolean"&&t!=="string"?{type:Array.isArray(e.value)?"array":"object"}:{type:t==="bigint"?"integer":t,const:e.value}}var X3=void 0,fs={cuid:/^[cC][^\s-]{8,}$/,cuid2:/^[0-9a-z]+$/,ulid:/^[0-9A-HJKMNP-TV-Z]{26}$/,email:/^(?!\.)(?!.*\.\.)([a-zA-Z0-9_'+\-\.]*)[a-zA-Z0-9_+-]@([a-zA-Z0-9][a-zA-Z0-9\-]*\.)+[a-zA-Z]{2,}$/,emoji:()=>(X3===void 0&&(X3=RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),X3),uuid:/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/,ipv4:/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,ipv4Cidr:/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,ipv6:/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,ipv6Cidr:/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,base64:/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,base64url:/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,nanoid:/^[a-zA-Z0-9_-]{21}$/,jwt:/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/};function iS(e,t){const n={type:"string"};if(e.checks)for(const a of e.checks)switch(a.kind){case"min":n.minLength=typeof n.minLength=="number"?Math.max(n.minLength,a.value):a.value;break;case"max":n.maxLength=typeof n.maxLength=="number"?Math.min(n.maxLength,a.value):a.value;break;case"email":switch(t.emailStrategy){case"format:email":ps(n,"email",a.message,t);break;case"format:idn-email":ps(n,"idn-email",a.message,t);break;case"pattern:zod":wo(n,fs.email,a.message,t);break}break;case"url":ps(n,"uri",a.message,t);break;case"uuid":ps(n,"uuid",a.message,t);break;case"regex":wo(n,a.regex,a.message,t);break;case"cuid":wo(n,fs.cuid,a.message,t);break;case"cuid2":wo(n,fs.cuid2,a.message,t);break;case"startsWith":wo(n,RegExp(`^${K3(a.value,t)}`),a.message,t);break;case"endsWith":wo(n,RegExp(`${K3(a.value,t)}$`),a.message,t);break;case"datetime":ps(n,"date-time",a.message,t);break;case"date":ps(n,"date",a.message,t);break;case"time":ps(n,"time",a.message,t);break;case"duration":ps(n,"duration",a.message,t);break;case"length":n.minLength=typeof n.minLength=="number"?Math.max(n.minLength,a.value):a.value,n.maxLength=typeof n.maxLength=="number"?Math.min(n.maxLength,a.value):a.value;break;case"includes":{wo(n,RegExp(K3(a.value,t)),a.message,t);break}case"ip":{a.version!=="v6"&&ps(n,"ipv4",a.message,t),a.version!=="v4"&&ps(n,"ipv6",a.message,t);break}case"base64url":wo(n,fs.base64url,a.message,t);break;case"jwt":wo(n,fs.jwt,a.message,t);break;case"cidr":{a.version!=="v6"&&wo(n,fs.ipv4Cidr,a.message,t),a.version!=="v4"&&wo(n,fs.ipv6Cidr,a.message,t);break}case"emoji":wo(n,fs.emoji(),a.message,t);break;case"ulid":{wo(n,fs.ulid,a.message,t);break}case"base64":{switch(t.base64Strategy){case"format:binary":{ps(n,"binary",a.message,t);break}case"contentEncoding:base64":{n.contentEncoding="base64";break}case"pattern:zod":{wo(n,fs.base64,a.message,t);break}}break}case"nanoid":wo(n,fs.nanoid,a.message,t)}return n}function K3(e,t){return t.patternStrategy==="escape"?WB(e):e}var ZB=new Set("ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789");function WB(e){let t="";for(let n=0;n<e.length;n++)ZB.has(e[n])||(t+="\\"),t+=e[n];return t}function ps(e,t,n,a){var i;e.format||(i=e.anyOf)!=null&&i.some(l=>l.format)?(e.anyOf||(e.anyOf=[]),e.format&&(e.anyOf.push({format:e.format}),delete e.format),e.anyOf.push({format:t,...n&&a.errorMessages&&{errorMessage:{format:n}}})):e.format=t}function wo(e,t,n,a){var i;e.pattern||(i=e.allOf)!=null&&i.some(l=>l.pattern)?(e.allOf||(e.allOf=[]),e.pattern&&(e.allOf.push({pattern:e.pattern}),delete e.pattern),e.allOf.push({pattern:sS(t,a),...n&&a.errorMessages&&{errorMessage:{pattern:n}}})):e.pattern=sS(t,a)}function sS(e,t){var n;if(!t.applyRegexFlags||!e.flags)return e.source;const a={i:e.flags.includes("i"),m:e.flags.includes("m"),s:e.flags.includes("s")},i=a.i?e.source.toLowerCase():e.source;let l="",u=!1,f=!1,h=!1;for(let g=0;g<i.length;g++){if(u){l+=i[g],u=!1;continue}if(a.i){if(f){if(i[g].match(/[a-z]/)){h?(l+=i[g],l+=`${i[g-2]}-${i[g]}`.toUpperCase(),h=!1):i[g+1]==="-"&&((n=i[g+2])!=null&&n.match(/[a-z]/))?(l+=i[g],h=!0):l+=`${i[g]}${i[g].toUpperCase()}`;continue}}else if(i[g].match(/[a-z]/)){l+=`[${i[g]}${i[g].toUpperCase()}]`;continue}}if(a.m){if(i[g]==="^"){l+=`(^|(?<=[\r
319
+ ]))`;continue}else if(i[g]==="$"){l+=`($|(?=[\r
320
+ ]))`;continue}}if(a.s&&i[g]==="."){l+=f?`${i[g]}\r
321
+ `:`[${i[g]}\r
322
+ ]`;continue}l+=i[g],i[g]==="\\"?u=!0:f&&i[g]==="]"?f=!1:!f&&i[g]==="["&&(f=!0)}try{new RegExp(l)}catch(g){return console.warn(`Could not convert regex pattern at ${t.currentPath.join("/")} to a flag-independent form! Falling back to the flag-ignorant source`),e.source}return l}function lS(e,t){var n,a,i,l,u,f;const h={type:"object",additionalProperties:(n=Xn(e.valueType._def,{...t,currentPath:[...t.currentPath,"additionalProperties"]}))!=null?n:t.allowedAdditionalProperties};if(((a=e.keyType)==null?void 0:a._def.typeName)===tn.ZodString&&((i=e.keyType._def.checks)!=null&&i.length)){const{type:g,...x}=iS(e.keyType._def,t);return{...h,propertyNames:x}}else{if(((l=e.keyType)==null?void 0:l._def.typeName)===tn.ZodEnum)return{...h,propertyNames:{enum:e.keyType._def.values}};if(((u=e.keyType)==null?void 0:u._def.typeName)===tn.ZodBranded&&e.keyType._def.type._def.typeName===tn.ZodString&&((f=e.keyType._def.type._def.checks)!=null&&f.length)){const{type:g,...x}=aS(e.keyType._def,t);return{...h,propertyNames:x}}}return h}function qB(e,t){if(t.mapStrategy==="record")return lS(e,t);const n=Xn(e.keyType._def,{...t,currentPath:[...t.currentPath,"items","items","0"]})||ci(),a=Xn(e.valueType._def,{...t,currentPath:[...t.currentPath,"items","items","1"]})||ci();return{type:"array",maxItems:125,items:{type:"array",items:[n,a],minItems:2,maxItems:2}}}function GB(e){const t=e.values,a=Object.keys(e.values).filter(l=>typeof t[t[l]]!="number").map(l=>t[l]),i=Array.from(new Set(a.map(l=>typeof l)));return{type:i.length===1?i[0]==="string"?"string":"number":["string","number"],enum:a}}function YB(){return{not:ci()}}function JB(){return{type:"null"}}var Q3={ZodString:"string",ZodNumber:"number",ZodBigInt:"integer",ZodBoolean:"boolean",ZodNull:"null"};function XB(e,t){const n=e.options instanceof Map?Array.from(e.options.values()):e.options;if(n.every(a=>a._def.typeName in Q3&&(!a._def.checks||!a._def.checks.length))){const a=n.reduce((i,l)=>{const u=Q3[l._def.typeName];return u&&!i.includes(u)?[...i,u]:i},[]);return{type:a.length>1?a:a[0]}}else if(n.every(a=>a._def.typeName==="ZodLiteral"&&!a.description)){const a=n.reduce((i,l)=>{const u=typeof l._def.value;switch(u){case"string":case"number":case"boolean":return[...i,u];case"bigint":return[...i,"integer"];case"object":if(l._def.value===null)return[...i,"null"];case"symbol":case"undefined":case"function":default:return i}},[]);if(a.length===n.length){const i=a.filter((l,u,f)=>f.indexOf(l)===u);return{type:i.length>1?i:i[0],enum:n.reduce((l,u)=>l.includes(u._def.value)?l:[...l,u._def.value],[])}}}else if(n.every(a=>a._def.typeName==="ZodEnum"))return{type:"string",enum:n.reduce((a,i)=>[...a,...i._def.values.filter(l=>!a.includes(l))],[])};return KB(e,t)}var KB=(e,t)=>{const n=(e.options instanceof Map?Array.from(e.options.values()):e.options).map((a,i)=>Xn(a._def,{...t,currentPath:[...t.currentPath,"anyOf",`${i}`]})).filter(a=>!!a&&(!t.strictUnions||typeof a=="object"&&Object.keys(a).length>0));return n.length?{anyOf:n}:void 0};function QB(e,t){if(["ZodString","ZodNumber","ZodBigInt","ZodBoolean","ZodNull"].includes(e.innerType._def.typeName)&&(!e.innerType._def.checks||!e.innerType._def.checks.length))return{type:[Q3[e.innerType._def.typeName],"null"]};const n=Xn(e.innerType._def,{...t,currentPath:[...t.currentPath,"anyOf","0"]});return n&&{anyOf:[n,{type:"null"}]}}function eH(e){const t={type:"number"};if(!e.checks)return t;for(const n of e.checks)switch(n.kind){case"int":t.type="integer";break;case"min":n.inclusive?t.minimum=n.value:t.exclusiveMinimum=n.value;break;case"max":n.inclusive?t.maximum=n.value:t.exclusiveMaximum=n.value;break;case"multipleOf":t.multipleOf=n.value;break}return t}function tH(e,t){const n={type:"object",properties:{}},a=[],i=e.shape();for(const u in i){let f=i[u];if(f===void 0||f._def===void 0)continue;const h=rH(f),g=Xn(f._def,{...t,currentPath:[...t.currentPath,"properties",u],propertyPath:[...t.currentPath,"properties",u]});g!==void 0&&(n.properties[u]=g,h||a.push(u))}a.length&&(n.required=a);const l=nH(e,t);return l!==void 0&&(n.additionalProperties=l),n}function nH(e,t){if(e.catchall._def.typeName!=="ZodNever")return Xn(e.catchall._def,{...t,currentPath:[...t.currentPath,"additionalProperties"]});switch(e.unknownKeys){case"passthrough":return t.allowedAdditionalProperties;case"strict":return t.rejectedAdditionalProperties;case"strip":return t.removeAdditionalStrategy==="strict"?t.allowedAdditionalProperties:t.rejectedAdditionalProperties}}function rH(e){try{return e.isOptional()}catch(t){return!0}}var aH=(e,t)=>{var n;if(t.currentPath.toString()===((n=t.propertyPath)==null?void 0:n.toString()))return Xn(e.innerType._def,t);const a=Xn(e.innerType._def,{...t,currentPath:[...t.currentPath,"anyOf","1"]});return a?{anyOf:[{not:ci()},a]}:ci()},oH=(e,t)=>{if(t.pipeStrategy==="input")return Xn(e.in._def,t);if(t.pipeStrategy==="output")return Xn(e.out._def,t);const n=Xn(e.in._def,{...t,currentPath:[...t.currentPath,"allOf","0"]}),a=Xn(e.out._def,{...t,currentPath:[...t.currentPath,"allOf",n?"1":"0"]});return{allOf:[n,a].filter(i=>i!==void 0)}};function iH(e,t){return Xn(e.type._def,t)}function sH(e,t){const a={type:"array",uniqueItems:!0,items:Xn(e.valueType._def,{...t,currentPath:[...t.currentPath,"items"]})};return e.minSize&&(a.minItems=e.minSize.value),e.maxSize&&(a.maxItems=e.maxSize.value),a}function lH(e,t){return e.rest?{type:"array",minItems:e.items.length,items:e.items.map((n,a)=>Xn(n._def,{...t,currentPath:[...t.currentPath,"items",`${a}`]})).reduce((n,a)=>a===void 0?n:[...n,a],[]),additionalItems:Xn(e.rest._def,{...t,currentPath:[...t.currentPath,"additionalItems"]})}:{type:"array",minItems:e.items.length,maxItems:e.items.length,items:e.items.map((n,a)=>Xn(n._def,{...t,currentPath:[...t.currentPath,"items",`${a}`]})).reduce((n,a)=>a===void 0?n:[...n,a],[])}}function uH(){return{not:ci()}}function cH(){return ci()}var dH=(e,t)=>Xn(e.innerType._def,t),fH=(e,t,n)=>{switch(t){case tn.ZodString:return iS(e,n);case tn.ZodNumber:return eH(e);case tn.ZodObject:return tH(e,n);case tn.ZodBigInt:return DB(e);case tn.ZodBoolean:return jB();case tn.ZodDate:return oS(e,n);case tn.ZodUndefined:return uH();case tn.ZodNull:return JB();case tn.ZodArray:return IB(e,n);case tn.ZodUnion:case tn.ZodDiscriminatedUnion:return XB(e,n);case tn.ZodIntersection:return VB(e,n);case tn.ZodTuple:return lH(e,n);case tn.ZodRecord:return lS(e,n);case tn.ZodLiteral:return $B(e);case tn.ZodEnum:return BB(e);case tn.ZodNativeEnum:return GB(e);case tn.ZodNullable:return QB(e,n);case tn.ZodOptional:return aH(e,n);case tn.ZodMap:return qB(e,n);case tn.ZodSet:return sH(e,n);case tn.ZodLazy:return()=>e.getter()._def;case tn.ZodPromise:return iH(e,n);case tn.ZodNaN:case tn.ZodNever:return YB();case tn.ZodEffects:return UB(e,n);case tn.ZodAny:return ci();case tn.ZodUnknown:return cH();case tn.ZodDefault:return zB(e,n);case tn.ZodBranded:return aS(e,n);case tn.ZodReadonly:return dH(e,n);case tn.ZodCatch:return PB(e,n);case tn.ZodPipeline:return oH(e,n);case tn.ZodFunction:case tn.ZodVoid:case tn.ZodSymbol:return;default:return(a=>{})()}};function Xn(e,t,n=!1){var a;const i=t.seen.get(e);if(t.override){const h=(a=t.override)==null?void 0:a.call(t,e,t,i,n);if(h!==OB)return h}if(i&&!n){const h=pH(i,t);if(h!==void 0)return h}const l={def:e,path:t.currentPath,jsonSchema:void 0};t.seen.set(e,l);const u=fH(e,e.typeName,t),f=typeof u=="function"?Xn(u(),t):u;if(f&&hH(e,t,f),t.postProcess){const h=t.postProcess(f,e,t);return l.jsonSchema=f,h}return l.jsonSchema=f,f}var pH=(e,t)=>{switch(t.$refStrategy){case"root":return{$ref:e.path.join("/")};case"relative":return{$ref:MB(t.currentPath,e.path)};case"none":case"seen":return e.path.length<t.currentPath.length&&e.path.every((n,a)=>t.currentPath[a]===n)?(console.warn(`Recursive reference detected at ${t.currentPath.join("/")}! Defaulting to any`),ci()):t.$refStrategy==="seen"?ci():void 0}},hH=(e,t,n)=>(e.description&&(n.description=e.description),n),mH=e=>{const t=LB(e),n=t.name!==void 0?[...t.basePath,t.definitionPath,t.name]:t.basePath;return{...t,currentPath:n,propertyPath:void 0,seen:new Map(Object.entries(t.definitions).map(([a,i])=>[i._def,{def:i._def,path:[...t.basePath,t.definitionPath,a],jsonSchema:void 0}]))}},gH=(e,t)=>{var n;const a=mH(t);let i=typeof t=="object"&&t.definitions?Object.entries(t.definitions).reduce((g,[x,y])=>{var k;return{...g,[x]:(k=Xn(y._def,{...a,currentPath:[...a.basePath,a.definitionPath,x]},!0))!=null?k:ci()}},{}):void 0;const l=typeof t=="string"?t:(t==null?void 0:t.nameStrategy)==="title"||t==null?void 0:t.name,u=(n=Xn(e._def,l===void 0?a:{...a,currentPath:[...a.basePath,a.definitionPath,l]},!1))!=null?n:ci(),f=typeof t=="object"&&t.name!==void 0&&t.nameStrategy==="title"?t.name:void 0;f!==void 0&&(u.title=f);const h=l===void 0?i?{...u,[a.definitionPath]:i}:u:{$ref:[...a.$refStrategy==="relative"?[]:a.basePath,a.definitionPath,l].join("/"),[a.definitionPath]:{...i,[l]:u}};return h.$schema="http://json-schema.org/draft-07/schema#",h},vH=gH;function yH(e,t){var n;const a=(n=void 0)!=null?n:!1;return n9(()=>vH(e,{$refStrategy:a?"root":"none"}),{validate:async i=>{const l=await e.safeParseAsync(i);return l.success?{success:!0,value:l.data}:{success:!1,error:l.error}}})}function xH(e,t){var n;const a=(n=void 0)!=null?n:!1;return n9(()=>t0(Xz(e,{target:"draft-7",io:"input",reused:a?"ref":"inline"})),{validate:async i=>{const l=await IC(e,i);return l.success?{success:!0,value:l.data}:{success:!1,error:l.error}}})}function wH(e){return"_zod"in e}function hs(e,t){return wH(e)?xH(e):yH(e)}var e9=Symbol.for("vercel.ai.schema");function t9(e){let t;return()=>(t==null&&(t=e()),t)}function n9(e,{validate:t}={}){return{[e9]:!0,_type:void 0,[e0]:!0,get jsonSchema(){return typeof e=="function"&&(e=e()),e},validate:t}}function bH(e){return typeof e=="object"&&e!==null&&e9 in e&&e[e9]===!0&&"jsonSchema"in e&&"validate"in e}function n0(e){return e==null?n9({properties:{},additionalProperties:!1}):bH(e)?e:typeof e=="function"?e():hs(e)}var{btoa:CH,atob:SH}=globalThis;function r9(e){const t=e.replace(/-/g,"+").replace(/_/g,"/"),n=SH(t);return Uint8Array.from(n,a=>a.codePointAt(0))}function a9(e){let t="";for(let n=0;n<e.length;n++)t+=String.fromCodePoint(e[n]);return CH(t)}function uS(e){return e==null?void 0:e.replace(/\/$/,"")}function kH(e){return e!=null&&typeof e[Symbol.asyncIterator]=="function"}async function*cS({execute:e,input:t,options:n}){const a=e(t,n);if(kH(a)){let i;for await(const l of a)i=l,yield{type:"preliminary",output:l};yield{type:"final",output:i}}else yield{type:"final",output:await a}}var o9=Object.defineProperty,EH=Object.getOwnPropertyDescriptor,_H=Object.getOwnPropertyNames,TH=Object.prototype.hasOwnProperty,RH=(e,t)=>{for(var n in t)o9(e,n,{get:t[n],enumerable:!0})},AH=(e,t,n,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of _H(t))!TH.call(e,i)&&i!==n&&o9(e,i,{get:()=>t[i],enumerable:!(a=EH(t,i))||a.enumerable});return e},NH=e=>AH(o9({},"__esModule",{value:!0}),e),dS={};RH(dS,{SYMBOL_FOR_REQ_CONTEXT:()=>fS,getContext:()=>OH});var MH=NH(dS);const fS=Symbol.for("@vercel/request-context");function OH(){var t,n,a;return(a=(n=(t=globalThis[fS])==null?void 0:t.get)==null?void 0:n.call(t))!=null?a:{}}var i9=Object.defineProperty,LH=Object.getOwnPropertyDescriptor,IH=Object.getOwnPropertyNames,DH=Object.prototype.hasOwnProperty,jH=(e,t)=>{for(var n in t)i9(e,n,{get:t[n],enumerable:!0})},PH=(e,t,n,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of IH(t))!DH.call(e,i)&&i!==n&&i9(e,i,{get:()=>t[i],enumerable:!(a=LH(t,i))||a.enumerable});return e},FH=e=>PH(i9({},"__esModule",{value:!0}),e),pS={};jH(pS,{getContext:()=>zH.getContext,getVercelOidcToken:()=>UH,getVercelOidcTokenSync:()=>BH});var hS=FH(pS),zH=MH;async function UH(){return""}function BH(){return""}var HH="vercel.ai.gateway.error",s9=Symbol.for(HH),mS,gS,di=class zD extends(gS=Error,mS=s9,gS){constructor({message:t,statusCode:n=500,cause:a}){super(t),this[mS]=!0,this.statusCode=n,this.cause=a}static isInstance(t){return zD.hasMarker(t)}static hasMarker(t){return typeof t=="object"&&t!==null&&s9 in t&&t[s9]===!0}},vS="GatewayAuthenticationError",VH=`vercel.ai.gateway.error.${vS}`,yS=Symbol.for(VH),xS,wS,l9=class UD extends(wS=di,xS=yS,wS){constructor({message:t="Authentication failed",statusCode:n=401,cause:a}={}){super({message:t,statusCode:n,cause:a}),this[xS]=!0,this.name=vS,this.type="authentication_error"}static isInstance(t){return di.hasMarker(t)&&yS in t}static createContextualError({apiKeyProvided:t,oidcTokenProvided:n,message:a="Authentication failed",statusCode:i=401,cause:l}){let u;return t?u=`AI Gateway authentication failed: Invalid API key.
323
+
324
+ Create a new API key: https://vercel.com/d?to=%2F%5Bteam%5D%2F%7E%2Fai%2Fapi-keys
325
+
326
+ Provide via 'apiKey' option or 'AI_GATEWAY_API_KEY' environment variable.`:n?u=`AI Gateway authentication failed: Invalid OIDC token.
327
+
328
+ Run 'npx vercel link' to link your project, then 'vc env pull' to fetch the token.
329
+
330
+ Alternatively, use an API key: https://vercel.com/d?to=%2F%5Bteam%5D%2F%7E%2Fai%2Fapi-keys`:u=`AI Gateway authentication failed: No authentication provided.
331
+
332
+ Option 1 - API key:
333
+ Create an API key: https://vercel.com/d?to=%2F%5Bteam%5D%2F%7E%2Fai%2Fapi-keys
334
+ Provide via 'apiKey' option or 'AI_GATEWAY_API_KEY' environment variable.
335
+
336
+ Option 2 - OIDC token:
337
+ Run 'npx vercel link' to link your project, then 'vc env pull' to fetch the token.`,new UD({message:u,statusCode:i,cause:l})}},bS="GatewayInvalidRequestError",$H=`vercel.ai.gateway.error.${bS}`,CS=Symbol.for($H),SS,kS,ZH=class extends(kS=di,SS=CS,kS){constructor({message:e="Invalid request",statusCode:t=400,cause:n}={}){super({message:e,statusCode:t,cause:n}),this[SS]=!0,this.name=bS,this.type="invalid_request_error"}static isInstance(e){return di.hasMarker(e)&&CS in e}},ES="GatewayRateLimitError",WH=`vercel.ai.gateway.error.${ES}`,_S=Symbol.for(WH),TS,RS,qH=class extends(RS=di,TS=_S,RS){constructor({message:e="Rate limit exceeded",statusCode:t=429,cause:n}={}){super({message:e,statusCode:t,cause:n}),this[TS]=!0,this.name=ES,this.type="rate_limit_exceeded"}static isInstance(e){return di.hasMarker(e)&&_S in e}},AS="GatewayModelNotFoundError",GH=`vercel.ai.gateway.error.${AS}`,NS=Symbol.for(GH),YH=pd(()=>hs($e({modelId:ee()}))),MS,OS,JH=class extends(OS=di,MS=NS,OS){constructor({message:e="Model not found",statusCode:t=404,modelId:n,cause:a}={}){super({message:e,statusCode:t,cause:a}),this[MS]=!0,this.name=AS,this.type="model_not_found",this.modelId=n}static isInstance(e){return di.hasMarker(e)&&NS in e}},LS="GatewayInternalServerError",XH=`vercel.ai.gateway.error.${LS}`,IS=Symbol.for(XH),DS,jS,PS=class extends(jS=di,DS=IS,jS){constructor({message:e="Internal server error",statusCode:t=500,cause:n}={}){super({message:e,statusCode:t,cause:n}),this[DS]=!0,this.name=LS,this.type="internal_server_error"}static isInstance(e){return di.hasMarker(e)&&IS in e}},FS="GatewayResponseError",KH=`vercel.ai.gateway.error.${FS}`,zS=Symbol.for(KH),US,BS,QH=class extends(BS=di,US=zS,BS){constructor({message:e="Invalid response from Gateway",statusCode:t=502,response:n,validationError:a,cause:i}={}){super({message:e,statusCode:t,cause:i}),this[US]=!0,this.name=FS,this.type="response_error",this.response=n,this.validationError=a}static isInstance(e){return di.hasMarker(e)&&zS in e}};async function HS({response:e,statusCode:t,defaultMessage:n="Gateway request failed",cause:a,authMethod:i}){const l=await Gl({value:e,schema:eV});if(!l.success)return new QH({message:`Invalid error response format: ${n}`,statusCode:t,response:e,validationError:l.error,cause:a});const u=l.value,f=u.error.type,h=u.error.message;switch(f){case"authentication_error":return l9.createContextualError({apiKeyProvided:i==="api-key",oidcTokenProvided:i==="oidc",statusCode:t,cause:a});case"invalid_request_error":return new ZH({message:h,statusCode:t,cause:a});case"rate_limit_exceeded":return new qH({message:h,statusCode:t,cause:a});case"model_not_found":{const g=await Gl({value:u.error.param,schema:YH});return new JH({message:h,statusCode:t,modelId:g.success?g.value.modelId:void 0,cause:a})}case"internal_server_error":return new PS({message:h,statusCode:t,cause:a});default:return new PS({message:h,statusCode:t,cause:a})}}var eV=pd(()=>hs($e({error:$e({message:ee(),type:ee().nullish(),param:Bo().nullish(),code:ca([ee(),or()]).nullish()})})));function Ku(e,t){var n;return di.isInstance(e)?e:yo.isInstance(e)?HS({response:tV(e),statusCode:(n=e.statusCode)!=null?n:500,defaultMessage:"Gateway request failed",cause:e,authMethod:t}):HS({response:{},statusCode:500,defaultMessage:e instanceof Error?`Gateway request failed: ${e.message}`:"Unknown Gateway error",cause:e,authMethod:t})}function tV(e){if(e.data!==void 0)return e.data;if(e.responseBody!=null)try{return JSON.parse(e.responseBody)}catch(t){return e.responseBody}return{}}var VS="ai-gateway-auth-method";async function up(e){const t=await Gl({value:e[VS],schema:nV});return t.success?t.value:void 0}var nV=pd(()=>hs(ca([$t("api-key"),$t("oidc")]))),$S=class{constructor(e){this.config=e}async getAvailableModels(){try{const{value:e}=await KC({url:`${this.config.baseURL}/config`,headers:await Xa(this.config.headers()),successfulResponseHandler:lp(rV),failedResponseHandler:md({errorSchema:ql(),errorToMessage:t=>t}),fetch:this.config.fetch});return e}catch(e){throw await Ku(e)}}async getCredits(){try{const e=new URL(this.config.baseURL),{value:t}=await KC({url:`${e.origin}/v1/credits`,headers:await Xa(this.config.headers()),successfulResponseHandler:lp(aV),failedResponseHandler:md({errorSchema:ql(),errorToMessage:n=>n}),fetch:this.config.fetch});return t}catch(e){throw await Ku(e)}}},rV=pd(()=>hs($e({models:Un($e({id:ee(),name:ee(),description:ee().nullish(),pricing:$e({input:ee(),output:ee(),input_cache_read:ee().nullish(),input_cache_write:ee().nullish()}).transform(({input:e,output:t,input_cache_read:n,input_cache_write:a})=>({input:e,output:t,...n?{cachedInputTokens:n}:{},...a?{cacheCreationInputTokens:a}:{}})).nullish(),specification:$e({specificationVersion:$t("v2"),provider:ee(),modelId:ee()}),modelType:vn(["language","embedding","image"]).nullish()}))}))),aV=pd(()=>hs($e({balance:ee(),total_used:ee()}).transform(({balance:e,total_used:t})=>({balance:e,totalUsed:t})))),oV=class{constructor(e,t){this.modelId=e,this.config=t,this.specificationVersion="v2",this.supportedUrls={"*/*":[/.*/]}}get provider(){return this.config.provider}async getArgs(e){const{abortSignal:t,...n}=e;return{args:this.maybeEncodeFileParts(n),warnings:[]}}async doGenerate(e){const{args:t,warnings:n}=await this.getArgs(e),{abortSignal:a}=e,i=await Xa(this.config.headers());try{const{responseHeaders:l,value:u,rawValue:f}=await sp({url:this.getUrl(),headers:ip(i,e.headers,this.getModelConfigHeaders(this.modelId,!1),await Xa(this.config.o11yHeaders)),body:t,successfulResponseHandler:lp(ql()),failedResponseHandler:md({errorSchema:ql(),errorToMessage:h=>h}),...a&&{abortSignal:a},fetch:this.config.fetch});return{...u,request:{body:t},response:{headers:l,body:f},warnings:n}}catch(l){throw await Ku(l,await up(i))}}async doStream(e){const{args:t,warnings:n}=await this.getArgs(e),{abortSignal:a}=e,i=await Xa(this.config.headers());try{const{value:l,responseHeaders:u}=await sp({url:this.getUrl(),headers:ip(i,e.headers,this.getModelConfigHeaders(this.modelId,!0),await Xa(this.config.o11yHeaders)),body:t,successfulResponseHandler:nS(ql()),failedResponseHandler:md({errorSchema:ql(),errorToMessage:f=>f}),...a&&{abortSignal:a},fetch:this.config.fetch});return{stream:l.pipeThrough(new TransformStream({start(f){n.length>0&&f.enqueue({type:"stream-start",warnings:n})},transform(f,h){if(f.success){const g=f.value;if(g.type==="raw"&&!e.includeRawChunks)return;g.type==="response-metadata"&&g.timestamp&&typeof g.timestamp=="string"&&(g.timestamp=new Date(g.timestamp)),h.enqueue(g)}else h.error(f.error)}})),request:{body:t},response:{headers:u}}}catch(l){throw await Ku(l,await up(i))}}isFilePart(e){return e&&typeof e=="object"&&"type"in e&&e.type==="file"}maybeEncodeFileParts(e){for(const t of e.prompt)for(const n of t.content)if(this.isFilePart(n)){const a=n;if(a.data instanceof Uint8Array){const i=Uint8Array.from(a.data),l=Buffer.from(i).toString("base64");a.data=new URL(`data:${a.mediaType||"application/octet-stream"};base64,${l}`)}}return e}getUrl(){return`${this.config.baseURL}/language-model`}getModelConfigHeaders(e,t){return{"ai-language-model-specification-version":"2","ai-language-model-id":e,"ai-language-model-streaming":String(t)}}},iV=class{constructor(e,t){this.modelId=e,this.config=t,this.specificationVersion="v2",this.maxEmbeddingsPerCall=2048,this.supportsParallelCalls=!0}get provider(){return this.config.provider}async doEmbed({values:e,headers:t,abortSignal:n,providerOptions:a}){var i;const l=await Xa(this.config.headers());try{const{responseHeaders:u,value:f,rawValue:h}=await sp({url:this.getUrl(),headers:ip(l,t!=null?t:{},this.getModelConfigHeaders(),await Xa(this.config.o11yHeaders)),body:{input:e.length===1?e[0]:e,...a?{providerOptions:a}:{}},successfulResponseHandler:lp(sV),failedResponseHandler:md({errorSchema:ql(),errorToMessage:g=>g}),...n&&{abortSignal:n},fetch:this.config.fetch});return{embeddings:f.embeddings,usage:(i=f.usage)!=null?i:void 0,providerMetadata:f.providerMetadata,response:{headers:u,body:h}}}catch(u){throw await Ku(u,await up(l))}}getUrl(){return`${this.config.baseURL}/embedding-model`}getModelConfigHeaders(){return{"ai-embedding-model-specification-version":"2","ai-model-id":this.modelId}}},sV=pd(()=>hs($e({embeddings:Un(Un(or())),usage:$e({tokens:or()}).nullish(),providerMetadata:op(ee(),op(ee(),Bo())).optional()}))),lV=class{constructor(e,t){this.modelId=e,this.config=t,this.specificationVersion="v2",this.maxImagesPerCall=Number.MAX_SAFE_INTEGER}get provider(){return this.config.provider}async doGenerate({prompt:e,n:t,size:n,aspectRatio:a,seed:i,providerOptions:l,headers:u,abortSignal:f}){var h;const g=await Xa(this.config.headers());try{const{responseHeaders:x,value:y,rawValue:k}=await sp({url:this.getUrl(),headers:ip(g,u!=null?u:{},this.getModelConfigHeaders(),await Xa(this.config.o11yHeaders)),body:{prompt:e,n:t,...n&&{size:n},...a&&{aspectRatio:a},...i&&{seed:i},...l&&{providerOptions:l}},successfulResponseHandler:lp(cV),failedResponseHandler:md({errorSchema:ql(),errorToMessage:b=>b}),...f&&{abortSignal:f},fetch:this.config.fetch});return{images:y.images,warnings:(h=y.warnings)!=null?h:[],providerMetadata:y.providerMetadata,response:{timestamp:new Date,modelId:this.modelId,headers:x}}}catch(x){throw Ku(x,await up(g))}}getUrl(){return`${this.config.baseURL}/image-model`}getModelConfigHeaders(){return{"ai-image-model-specification-version":"2","ai-model-id":this.modelId}}},uV=$e({images:Un(Bo()).optional()}).catchall(Bo()),cV=$e({images:Un(ee()),warnings:Un($e({type:$t("other"),message:ee()})).optional(),providerMetadata:op(ee(),uV).optional()}),dV=t9(()=>hs($e({query:ca([ee(),Un(ee())]).describe("Search query (string) or multiple queries (array of up to 5 strings). Multi-query searches return combined results from all queries."),max_results:or().optional().describe("Maximum number of search results to return (1-20, default: 10)"),max_tokens_per_page:or().optional().describe("Maximum number of tokens to extract per search result page (256-2048, default: 2048)"),max_tokens:or().optional().describe("Maximum total tokens across all search results (default: 25000, max: 1000000)"),country:ee().optional().describe("Two-letter ISO 3166-1 alpha-2 country code for regional search results (e.g., 'US', 'GB', 'FR')"),search_domain_filter:Un(ee()).optional().describe("List of domains to include or exclude from search results (max 20). To include: ['nature.com', 'science.org']. To exclude: ['-example.com', '-spam.net']"),search_language_filter:Un(ee()).optional().describe("List of ISO 639-1 language codes to filter results (max 10, lowercase). Examples: ['en', 'fr', 'de']"),search_after_date:ee().optional().describe("Include only results published after this date. Format: 'MM/DD/YYYY' (e.g., '3/1/2025'). Cannot be used with search_recency_filter."),search_before_date:ee().optional().describe("Include only results published before this date. Format: 'MM/DD/YYYY' (e.g., '3/15/2025'). Cannot be used with search_recency_filter."),last_updated_after_filter:ee().optional().describe("Include only results last updated after this date. Format: 'MM/DD/YYYY' (e.g., '3/1/2025'). Cannot be used with search_recency_filter."),last_updated_before_filter:ee().optional().describe("Include only results last updated before this date. Format: 'MM/DD/YYYY' (e.g., '3/15/2025'). Cannot be used with search_recency_filter."),search_recency_filter:vn(["day","week","month","year"]).optional().describe("Filter results by relative time period. Cannot be used with search_after_date or search_before_date.")}))),fV=t9(()=>hs(ca([$e({results:Un($e({title:ee(),url:ee(),snippet:ee(),date:ee().optional(),lastUpdated:ee().optional()})),id:ee()}),$e({error:vn(["api_error","rate_limit","timeout","invalid_input","unknown"]),statusCode:or().optional(),message:ee()})]))),pV=NB({id:"gateway.perplexity_search",name:"perplexity_search",inputSchema:dV,outputSchema:fV}),hV=(e={})=>pV(e),mV={perplexitySearch:hV};async function gV(){var e;return(e=hS.getContext().headers)==null?void 0:e["x-vercel-id"]}var vV="2.0.27",yV="0.0.1";function xV(e={}){var t,n;let a=null,i=null;const l=(t=e.metadataCacheRefreshMillis)!=null?t:1e3*60*5;let u=0;const f=(n=uS(e.baseURL))!=null?n:"https://ai-gateway.vercel.sh/v1/ai",h=async()=>{const _=await bV(e);if(_)return Xu({Authorization:`Bearer ${_.token}`,"ai-gateway-protocol-version":yV,[VS]:_.authMethod,...e.headers},`ai-sdk/gateway/${vV}`);throw l9.createContextualError({apiKeyProvided:!1,oidcTokenProvided:!1,statusCode:401})},g=()=>{const _=Qv({settingValue:void 0,environmentVariableName:"VERCEL_DEPLOYMENT_ID"}),R=Qv({settingValue:void 0,environmentVariableName:"VERCEL_ENV"}),M=Qv({settingValue:void 0,environmentVariableName:"VERCEL_REGION"});return async()=>{const L=await gV();return{..._&&{"ai-o11y-deployment-id":_},...R&&{"ai-o11y-environment":R},...M&&{"ai-o11y-region":M},...L&&{"ai-o11y-request-id":L}}}},x=_=>new oV(_,{provider:"gateway",baseURL:f,headers:h,fetch:e.fetch,o11yHeaders:g()}),y=async()=>{var _,R,M;const L=(M=(R=(_=e._internal)==null?void 0:_.currentDate)==null?void 0:R.call(_).getTime())!=null?M:Date.now();return(!a||L-u>l)&&(u=L,a=new $S({baseURL:f,headers:h,fetch:e.fetch}).getAvailableModels().then(P=>(i=P,P)).catch(async P=>{throw await Ku(P,await up(await h()))})),i?Promise.resolve(i):a},k=async()=>new $S({baseURL:f,headers:h,fetch:e.fetch}).getCredits().catch(async _=>{throw await Ku(_,await up(await h()))}),b=function(_){if(new.target)throw new Error("The Gateway Provider model function cannot be called with the new keyword.");return x(_)};return b.getAvailableModels=y,b.getCredits=k,b.imageModel=_=>new lV(_,{provider:"gateway",baseURL:f,headers:h,fetch:e.fetch,o11yHeaders:g()}),b.languageModel=x,b.textEmbeddingModel=_=>new iV(_,{provider:"gateway",baseURL:f,headers:h,fetch:e.fetch,o11yHeaders:g()}),b.tools=mV,b}var wV=xV();async function bV(e){const t=Qv({settingValue:e.apiKey,environmentVariableName:"AI_GATEWAY_API_KEY"});if(t)return{token:t,authMethod:"api-key"};try{return{token:await hS.getVercelOidcToken(),authMethod:"oidc"}}catch(n){return null}}var CV=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof global=="object"?global:{},gd="1.9.0",ZS=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;function SV(e){var t=new Set([e]),n=new Set,a=e.match(ZS);if(!a)return function(){return!1};var i={major:+a[1],minor:+a[2],patch:+a[3],prerelease:a[4]};if(i.prerelease!=null)return function(h){return h===e};function l(f){return n.add(f),!1}function u(f){return t.add(f),!0}return function(h){if(t.has(h))return!0;if(n.has(h))return!1;var g=h.match(ZS);if(!g)return l(h);var x={major:+g[1],minor:+g[2],patch:+g[3],prerelease:g[4]};return x.prerelease!=null||i.major!==x.major?l(h):i.major===0?i.minor===x.minor&&i.patch<=x.patch?u(h):l(h):i.minor<=x.minor?u(h):l(h)}}var kV=SV(gd),EV=gd.split(".")[0],jh=Symbol.for("opentelemetry.js.api."+EV),Ph=CV;function Fh(e,t,n,a){var i;a===void 0&&(a=!1);var l=Ph[jh]=(i=Ph[jh])!==null&&i!==void 0?i:{version:gd};if(!a&&l[e]){var u=new Error("@opentelemetry/api: Attempted duplicate registration of API: "+e);return n.error(u.stack||u.message),!1}if(l.version!==gd){var u=new Error("@opentelemetry/api: Registration of version v"+l.version+" for "+e+" does not match previously registered API v"+gd);return n.error(u.stack||u.message),!1}return l[e]=t,n.debug("@opentelemetry/api: Registered a global for "+e+" v"+gd+"."),!0}function vd(e){var t,n,a=(t=Ph[jh])===null||t===void 0?void 0:t.version;if(!(!a||!kV(a)))return(n=Ph[jh])===null||n===void 0?void 0:n[e]}function zh(e,t){t.debug("@opentelemetry/api: Unregistering a global for "+e+" v"+gd+".");var n=Ph[jh];n&&delete n[e]}var _V=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var a=n.call(e),i,l=[],u;try{for(;(t===void 0||t-- >0)&&!(i=a.next()).done;)l.push(i.value)}catch(f){u={error:f}}finally{try{i&&!i.done&&(n=a.return)&&n.call(a)}finally{if(u)throw u.error}}return l},TV=function(e,t,n){if(n||arguments.length===2)for(var a=0,i=t.length,l;a<i;a++)(l||!(a in t))&&(l||(l=Array.prototype.slice.call(t,0,a)),l[a]=t[a]);return e.concat(l||Array.prototype.slice.call(t))},RV=function(){function e(t){this._namespace=t.namespace||"DiagComponentLogger"}return e.prototype.debug=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return Uh("debug",this._namespace,t)},e.prototype.error=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return Uh("error",this._namespace,t)},e.prototype.info=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return Uh("info",this._namespace,t)},e.prototype.warn=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return Uh("warn",this._namespace,t)},e.prototype.verbose=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return Uh("verbose",this._namespace,t)},e}();function Uh(e,t,n){var a=vd("diag");if(a)return n.unshift(t),a[e].apply(a,TV([],_V(n),!1))}var fi;(function(e){e[e.NONE=0]="NONE",e[e.ERROR=30]="ERROR",e[e.WARN=50]="WARN",e[e.INFO=60]="INFO",e[e.DEBUG=70]="DEBUG",e[e.VERBOSE=80]="VERBOSE",e[e.ALL=9999]="ALL"})(fi||(fi={}));function AV(e,t){e<fi.NONE?e=fi.NONE:e>fi.ALL&&(e=fi.ALL),t=t||{};function n(a,i){var l=t[a];return typeof l=="function"&&e>=i?l.bind(t):function(){}}return{error:n("error",fi.ERROR),warn:n("warn",fi.WARN),info:n("info",fi.INFO),debug:n("debug",fi.DEBUG),verbose:n("verbose",fi.VERBOSE)}}var NV=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var a=n.call(e),i,l=[],u;try{for(;(t===void 0||t-- >0)&&!(i=a.next()).done;)l.push(i.value)}catch(f){u={error:f}}finally{try{i&&!i.done&&(n=a.return)&&n.call(a)}finally{if(u)throw u.error}}return l},MV=function(e,t,n){if(n||arguments.length===2)for(var a=0,i=t.length,l;a<i;a++)(l||!(a in t))&&(l||(l=Array.prototype.slice.call(t,0,a)),l[a]=t[a]);return e.concat(l||Array.prototype.slice.call(t))},OV="diag",Ys=function(){function e(){function t(i){return function(){for(var l=[],u=0;u<arguments.length;u++)l[u]=arguments[u];var f=vd("diag");if(f)return f[i].apply(f,MV([],NV(l),!1))}}var n=this,a=function(i,l){var u,f,h;if(l===void 0&&(l={logLevel:fi.INFO}),i===n){var g=new Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return n.error((u=g.stack)!==null&&u!==void 0?u:g.message),!1}typeof l=="number"&&(l={logLevel:l});var x=vd("diag"),y=AV((f=l.logLevel)!==null&&f!==void 0?f:fi.INFO,i);if(x&&!l.suppressOverrideMessage){var k=(h=new Error().stack)!==null&&h!==void 0?h:"<failed to generate stacktrace>";x.warn("Current logger will be overwritten from "+k),y.warn("Current logger will overwrite one already registered from "+k)}return Fh("diag",y,n,!0)};n.setLogger=a,n.disable=function(){zh(OV,n)},n.createComponentLogger=function(i){return new RV(i)},n.verbose=t("verbose"),n.debug=t("debug"),n.info=t("info"),n.warn=t("warn"),n.error=t("error")}return e.instance=function(){return this._instance||(this._instance=new e),this._instance},e}(),LV=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var a=n.call(e),i,l=[],u;try{for(;(t===void 0||t-- >0)&&!(i=a.next()).done;)l.push(i.value)}catch(f){u={error:f}}finally{try{i&&!i.done&&(n=a.return)&&n.call(a)}finally{if(u)throw u.error}}return l},IV=function(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],a=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&a>=e.length&&(e=void 0),{value:e&&e[a++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},DV=function(){function e(t){this._entries=t?new Map(t):new Map}return e.prototype.getEntry=function(t){var n=this._entries.get(t);if(n)return Object.assign({},n)},e.prototype.getAllEntries=function(){return Array.from(this._entries.entries()).map(function(t){var n=LV(t,2),a=n[0],i=n[1];return[a,i]})},e.prototype.setEntry=function(t,n){var a=new e(this._entries);return a._entries.set(t,n),a},e.prototype.removeEntry=function(t){var n=new e(this._entries);return n._entries.delete(t),n},e.prototype.removeEntries=function(){for(var t,n,a=[],i=0;i<arguments.length;i++)a[i]=arguments[i];var l=new e(this._entries);try{for(var u=IV(a),f=u.next();!f.done;f=u.next()){var h=f.value;l._entries.delete(h)}}catch(g){t={error:g}}finally{try{f&&!f.done&&(n=u.return)&&n.call(u)}finally{if(t)throw t.error}}return l},e.prototype.clear=function(){return new e},e}();Ys.instance();function jV(e){return e===void 0&&(e={}),new DV(new Map(Object.entries(e)))}function WS(e){return Symbol.for(e)}var PV=function(){function e(t){var n=this;n._currentContext=t?new Map(t):new Map,n.getValue=function(a){return n._currentContext.get(a)},n.setValue=function(a,i){var l=new e(n._currentContext);return l._currentContext.set(a,i),l},n.deleteValue=function(a){var i=new e(n._currentContext);return i._currentContext.delete(a),i}}return e}(),FV=new PV,yd=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,i){a.__proto__=i}||function(a,i){for(var l in i)Object.prototype.hasOwnProperty.call(i,l)&&(a[l]=i[l])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function a(){this.constructor=t}t.prototype=n===null?Object.create(n):(a.prototype=n.prototype,new a)}}(),zV=function(){function e(){}return e.prototype.createGauge=function(t,n){return YV},e.prototype.createHistogram=function(t,n){return JV},e.prototype.createCounter=function(t,n){return GV},e.prototype.createUpDownCounter=function(t,n){return XV},e.prototype.createObservableGauge=function(t,n){return QV},e.prototype.createObservableCounter=function(t,n){return KV},e.prototype.createObservableUpDownCounter=function(t,n){return e$},e.prototype.addBatchObservableCallback=function(t,n){},e.prototype.removeBatchObservableCallback=function(t){},e}(),r0=function(){function e(){}return e}(),UV=function(e){yd(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.add=function(n,a){},t}(r0),BV=function(e){yd(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.add=function(n,a){},t}(r0),HV=function(e){yd(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.record=function(n,a){},t}(r0),VV=function(e){yd(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.record=function(n,a){},t}(r0),u9=function(){function e(){}return e.prototype.addCallback=function(t){},e.prototype.removeCallback=function(t){},e}(),$V=function(e){yd(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(u9),ZV=function(e){yd(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(u9),WV=function(e){yd(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(u9),qV=new zV,GV=new UV,YV=new HV,JV=new VV,XV=new BV,KV=new $V,QV=new ZV,e$=new WV,t$={get:function(e,t){if(e!=null)return e[t]},keys:function(e){return e==null?[]:Object.keys(e)}},n$={set:function(e,t,n){e!=null&&(e[t]=n)}},r$=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var a=n.call(e),i,l=[],u;try{for(;(t===void 0||t-- >0)&&!(i=a.next()).done;)l.push(i.value)}catch(f){u={error:f}}finally{try{i&&!i.done&&(n=a.return)&&n.call(a)}finally{if(u)throw u.error}}return l},a$=function(e,t,n){if(n||arguments.length===2)for(var a=0,i=t.length,l;a<i;a++)(l||!(a in t))&&(l||(l=Array.prototype.slice.call(t,0,a)),l[a]=t[a]);return e.concat(l||Array.prototype.slice.call(t))},o$=function(){function e(){}return e.prototype.active=function(){return FV},e.prototype.with=function(t,n,a){for(var i=[],l=3;l<arguments.length;l++)i[l-3]=arguments[l];return n.call.apply(n,a$([a],r$(i),!1))},e.prototype.bind=function(t,n){return n},e.prototype.enable=function(){return this},e.prototype.disable=function(){return this},e}(),i$=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var a=n.call(e),i,l=[],u;try{for(;(t===void 0||t-- >0)&&!(i=a.next()).done;)l.push(i.value)}catch(f){u={error:f}}finally{try{i&&!i.done&&(n=a.return)&&n.call(a)}finally{if(u)throw u.error}}return l},s$=function(e,t,n){if(n||arguments.length===2)for(var a=0,i=t.length,l;a<i;a++)(l||!(a in t))&&(l||(l=Array.prototype.slice.call(t,0,a)),l[a]=t[a]);return e.concat(l||Array.prototype.slice.call(t))},c9="context",l$=new o$,a0=function(){function e(){}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalContextManager=function(t){return Fh(c9,t,Ys.instance())},e.prototype.active=function(){return this._getContextManager().active()},e.prototype.with=function(t,n,a){for(var i,l=[],u=3;u<arguments.length;u++)l[u-3]=arguments[u];return(i=this._getContextManager()).with.apply(i,s$([t,n,a],i$(l),!1))},e.prototype.bind=function(t,n){return this._getContextManager().bind(t,n)},e.prototype._getContextManager=function(){return vd(c9)||l$},e.prototype.disable=function(){this._getContextManager().disable(),zh(c9,Ys.instance())},e}(),d9;(function(e){e[e.NONE=0]="NONE",e[e.SAMPLED=1]="SAMPLED"})(d9||(d9={}));var qS="0000000000000000",GS="00000000000000000000000000000000",u$={traceId:GS,spanId:qS,traceFlags:d9.NONE},Bh=function(){function e(t){t===void 0&&(t=u$),this._spanContext=t}return e.prototype.spanContext=function(){return this._spanContext},e.prototype.setAttribute=function(t,n){return this},e.prototype.setAttributes=function(t){return this},e.prototype.addEvent=function(t,n){return this},e.prototype.addLink=function(t){return this},e.prototype.addLinks=function(t){return this},e.prototype.setStatus=function(t){return this},e.prototype.updateName=function(t){return this},e.prototype.end=function(t){},e.prototype.isRecording=function(){return!1},e.prototype.recordException=function(t,n){},e}(),f9=WS("OpenTelemetry Context Key SPAN");function p9(e){return e.getValue(f9)||void 0}function c$(){return p9(a0.getInstance().active())}function h9(e,t){return e.setValue(f9,t)}function d$(e){return e.deleteValue(f9)}function f$(e,t){return h9(e,new Bh(t))}function YS(e){var t;return(t=p9(e))===null||t===void 0?void 0:t.spanContext()}var p$=/^([0-9a-f]{32})$/i,h$=/^[0-9a-f]{16}$/i;function m$(e){return p$.test(e)&&e!==GS}function g$(e){return h$.test(e)&&e!==qS}function JS(e){return m$(e.traceId)&&g$(e.spanId)}function v$(e){return new Bh(e)}var m9=a0.getInstance(),XS=function(){function e(){}return e.prototype.startSpan=function(t,n,a){a===void 0&&(a=m9.active());var i=!!(n!=null&&n.root);if(i)return new Bh;var l=a&&YS(a);return y$(l)&&JS(l)?new Bh(l):new Bh},e.prototype.startActiveSpan=function(t,n,a,i){var l,u,f;if(!(arguments.length<2)){arguments.length===2?f=n:arguments.length===3?(l=n,f=a):(l=n,u=a,f=i);var h=u!=null?u:m9.active(),g=this.startSpan(t,l,h),x=h9(h,g);return m9.with(x,f,void 0,g)}},e}();function y$(e){return typeof e=="object"&&typeof e.spanId=="string"&&typeof e.traceId=="string"&&typeof e.traceFlags=="number"}var x$=new XS,w$=function(){function e(t,n,a,i){this._provider=t,this.name=n,this.version=a,this.options=i}return e.prototype.startSpan=function(t,n,a){return this._getTracer().startSpan(t,n,a)},e.prototype.startActiveSpan=function(t,n,a,i){var l=this._getTracer();return Reflect.apply(l.startActiveSpan,l,arguments)},e.prototype._getTracer=function(){if(this._delegate)return this._delegate;var t=this._provider.getDelegateTracer(this.name,this.version,this.options);return t?(this._delegate=t,this._delegate):x$},e}(),b$=function(){function e(){}return e.prototype.getTracer=function(t,n,a){return new XS},e}(),C$=new b$,KS=function(){function e(){}return e.prototype.getTracer=function(t,n,a){var i;return(i=this.getDelegateTracer(t,n,a))!==null&&i!==void 0?i:new w$(this,t,n,a)},e.prototype.getDelegate=function(){var t;return(t=this._delegate)!==null&&t!==void 0?t:C$},e.prototype.setDelegate=function(t){this._delegate=t},e.prototype.getDelegateTracer=function(t,n,a){var i;return(i=this._delegate)===null||i===void 0?void 0:i.getTracer(t,n,a)},e}(),o0;(function(e){e[e.UNSET=0]="UNSET",e[e.OK=1]="OK",e[e.ERROR=2]="ERROR"})(o0||(o0={})),a0.getInstance(),Ys.instance();var S$=function(){function e(){}return e.prototype.getMeter=function(t,n,a){return qV},e}(),k$=new S$,g9="metrics",E$=function(){function e(){}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalMeterProvider=function(t){return Fh(g9,t,Ys.instance())},e.prototype.getMeterProvider=function(){return vd(g9)||k$},e.prototype.getMeter=function(t,n,a){return this.getMeterProvider().getMeter(t,n,a)},e.prototype.disable=function(){zh(g9,Ys.instance())},e}();E$.getInstance();var _$=function(){function e(){}return e.prototype.inject=function(t,n){},e.prototype.extract=function(t,n){return t},e.prototype.fields=function(){return[]},e}(),v9=WS("OpenTelemetry Baggage Key");function QS(e){return e.getValue(v9)||void 0}function T$(){return QS(a0.getInstance().active())}function R$(e,t){return e.setValue(v9,t)}function A$(e){return e.deleteValue(v9)}var y9="propagation",N$=new _$,M$=function(){function e(){this.createBaggage=jV,this.getBaggage=QS,this.getActiveBaggage=T$,this.setBaggage=R$,this.deleteBaggage=A$}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalPropagator=function(t){return Fh(y9,t,Ys.instance())},e.prototype.inject=function(t,n,a){return a===void 0&&(a=n$),this._getGlobalPropagator().inject(t,n,a)},e.prototype.extract=function(t,n,a){return a===void 0&&(a=t$),this._getGlobalPropagator().extract(t,n,a)},e.prototype.fields=function(){return this._getGlobalPropagator().fields()},e.prototype.disable=function(){zh(y9,Ys.instance())},e.prototype._getGlobalPropagator=function(){return vd(y9)||N$},e}();M$.getInstance();var x9="trace",O$=function(){function e(){this._proxyTracerProvider=new KS,this.wrapSpanContext=v$,this.isSpanContextValid=JS,this.deleteSpan=d$,this.getSpan=p9,this.getActiveSpan=c$,this.getSpanContext=YS,this.setSpan=h9,this.setSpanContext=f$}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalTracerProvider=function(t){var n=Fh(x9,this._proxyTracerProvider,Ys.instance());return n&&this._proxyTracerProvider.setDelegate(t),n},e.prototype.getTracerProvider=function(){return vd(x9)||this._proxyTracerProvider},e.prototype.getTracer=function(t,n){return this.getTracerProvider().getTracer(t,n)},e.prototype.disable=function(){zh(x9,Ys.instance()),this._proxyTracerProvider=new KS},e}(),L$=O$.getInstance(),I$=Object.defineProperty,D$=(e,t)=>{for(var n in t)I$(e,n,{get:t[n],enumerable:!0})},ek="AI_NoOutputSpecifiedError",tk=`vercel.ai.error.${ek}`,j$=Symbol.for(tk),nk,rk=class extends Jt{constructor({message:e="No output specified."}={}){super({name:ek,message:e}),this[nk]=!0}static isInstance(e){return Jt.hasMarker(e,tk)}};nk=j$;function P$(e){const t="AI SDK Warning:";switch(e.type){case"unsupported-setting":{let n=`${t} The "${e.setting}" setting is not supported by this model`;return e.details&&(n+=` - ${e.details}`),n}case"unsupported-tool":{const n="name"in e.tool?e.tool.name:"unknown tool";let a=`${t} The tool "${n}" is not supported by this model`;return e.details&&(a+=` - ${e.details}`),a}case"other":return`${t} ${e.message}`;default:return`${t} ${JSON.stringify(e,null,2)}`}}var F$="AI SDK Warning System: To turn off warning logging, set the AI_SDK_LOG_WARNINGS global to false.",ak=!1,ok=e=>{if(e.length===0)return;const t=globalThis.AI_SDK_LOG_WARNINGS;if(t!==!1){if(typeof t=="function"){t(e);return}ak||(ak=!0,console.info(F$));for(const n of e)console.warn(P$(n))}},ik="AI_InvalidArgumentError",sk=`vercel.ai.error.${ik}`,z$=Symbol.for(sk),lk,Js=class extends Jt{constructor({parameter:e,value:t,message:n}){super({name:ik,message:`Invalid argument for parameter ${e}: ${n}`}),this[lk]=!0,this.parameter=e,this.value=t}static isInstance(e){return Jt.hasMarker(e,sk)}};lk=z$;var uk="AI_InvalidToolInputError",ck=`vercel.ai.error.${uk}`,U$=Symbol.for(ck),dk,fk=class extends Jt{constructor({toolInput:e,toolName:t,cause:n,message:a=`Invalid input for tool ${t}: ${Xf(n)}`}){super({name:uk,message:a,cause:n}),this[dk]=!0,this.toolInput=e,this.toolName=t}static isInstance(e){return Jt.hasMarker(e,ck)}};dk=U$;var pk="AI_NoObjectGeneratedError",hk=`vercel.ai.error.${pk}`,B$=Symbol.for(hk),mk,gk=class extends Jt{constructor({message:e="No object generated.",cause:t,text:n,response:a,usage:i,finishReason:l}){super({name:pk,message:e,cause:t}),this[mk]=!0,this.text=n,this.response=a,this.usage=i,this.finishReason=l}static isInstance(e){return Jt.hasMarker(e,hk)}};mk=B$;var vk="AI_NoOutputGeneratedError",yk=`vercel.ai.error.${vk}`,H$=Symbol.for(yk),xk,V$=class extends Jt{constructor({message:e="No output generated.",cause:t}={}){super({name:vk,message:e,cause:t}),this[xk]=!0}static isInstance(e){return Jt.hasMarker(e,yk)}};xk=H$;var wk="AI_NoSuchToolError",bk=`vercel.ai.error.${wk}`,$$=Symbol.for(bk),Ck,w9=class extends Jt{constructor({toolName:e,availableTools:t=void 0,message:n=`Model tried to call unavailable tool '${e}'. ${t===void 0?"No tools are available.":`Available tools: ${t.join(", ")}.`}`}){super({name:wk,message:n}),this[Ck]=!0,this.toolName=e,this.availableTools=t}static isInstance(e){return Jt.hasMarker(e,bk)}};Ck=$$;var Sk="AI_ToolCallRepairError",kk=`vercel.ai.error.${Sk}`,Z$=Symbol.for(kk),Ek,W$=class extends Jt{constructor({cause:e,originalError:t,message:n=`Error repairing tool call: ${Xf(e)}`}){super({name:Sk,message:n,cause:e}),this[Ek]=!0,this.originalError=t}static isInstance(e){return Jt.hasMarker(e,kk)}};Ek=Z$;var q$=class extends Jt{constructor(e){super({name:"AI_UnsupportedModelVersionError",message:`Unsupported model version ${e.version} for provider "${e.provider}" and model "${e.modelId}". AI SDK 5 only supports models that implement specification version "v2".`}),this.version=e.version,this.provider=e.provider,this.modelId=e.modelId}},_k="AI_InvalidMessageRoleError",Tk=`vercel.ai.error.${_k}`,G$=Symbol.for(Tk),Rk,Y$=class extends Jt{constructor({role:e,message:t=`Invalid message role: '${e}'. Must be one of: "system", "user", "assistant", "tool".`}){super({name:_k,message:t}),this[Rk]=!0,this.role=e}static isInstance(e){return Jt.hasMarker(e,Tk)}};Rk=G$;var Ak="AI_MessageConversionError",Nk=`vercel.ai.error.${Ak}`,J$=Symbol.for(Nk),Mk,X$=class extends Jt{constructor({originalMessage:e,message:t}){super({name:Ak,message:t}),this[Mk]=!0,this.originalMessage=e}static isInstance(e){return Jt.hasMarker(e,Nk)}};Mk=J$;var Ok="AI_DownloadError",Lk=`vercel.ai.error.${Ok}`,K$=Symbol.for(Lk),Ik,b9=class extends Jt{constructor({url:e,statusCode:t,statusText:n,cause:a,message:i=a==null?`Failed to download ${e}: ${t} ${n}`:`Failed to download ${e}: ${a}`}){super({name:Ok,message:i,cause:a}),this[Ik]=!0,this.url=e,this.statusCode=t,this.statusText=n}static isInstance(e){return Jt.hasMarker(e,Lk)}};Ik=K$;var Dk="AI_RetryError",jk=`vercel.ai.error.${Dk}`,Q$=Symbol.for(jk),Pk,Fk=class extends Jt{constructor({message:e,reason:t,errors:n}){super({name:Dk,message:e}),this[Pk]=!0,this.reason=t,this.errors=n,this.lastError=n[n.length-1]}static isInstance(e){return Jt.hasMarker(e,jk)}};Pk=Q$;function i0(e){if(typeof e!="string"){if(e.specificationVersion!=="v2")throw new q$({version:e.specificationVersion,provider:e.provider,modelId:e.modelId});return e}return eZ().languageModel(e)}function eZ(){var e;return(e=globalThis.AI_SDK_DEFAULT_PROVIDER)!=null?e:wV}var tZ=[{mediaType:"image/gif",bytesPrefix:[71,73,70]},{mediaType:"image/png",bytesPrefix:[137,80,78,71]},{mediaType:"image/jpeg",bytesPrefix:[255,216]},{mediaType:"image/webp",bytesPrefix:[82,73,70,70,null,null,null,null,87,69,66,80]},{mediaType:"image/bmp",bytesPrefix:[66,77]},{mediaType:"image/tiff",bytesPrefix:[73,73,42,0]},{mediaType:"image/tiff",bytesPrefix:[77,77,0,42]},{mediaType:"image/avif",bytesPrefix:[0,0,0,32,102,116,121,112,97,118,105,102]},{mediaType:"image/heic",bytesPrefix:[0,0,0,32,102,116,121,112,104,101,105,99]}],nZ=e=>{const t=typeof e=="string"?r9(e):e,n=(t[6]&127)<<21|(t[7]&127)<<14|(t[8]&127)<<7|t[9]&127;return t.slice(n+10)};function rZ(e){return typeof e=="string"&&e.startsWith("SUQz")||typeof e!="string"&&e.length>10&&e[0]===73&&e[1]===68&&e[2]===51?nZ(e):e}function aZ({data:e,signatures:t}){const n=rZ(e),a=typeof n=="string"?r9(n.substring(0,Math.min(n.length,24))):n;for(const i of t)if(a.length>=i.bytesPrefix.length&&i.bytesPrefix.every((l,u)=>l===null||a[u]===l))return i.mediaType}var s0="5.0.121",oZ=async({url:e})=>{var t;const n=e.toString();try{const a=await fetch(n,{headers:Xu({},`ai-sdk/${s0}`,Dh())});if(!a.ok)throw new b9({url:n,statusCode:a.status,statusText:a.statusText});return{data:new Uint8Array(await a.arrayBuffer()),mediaType:(t=a.headers.get("content-type"))!=null?t:void 0}}catch(a){throw b9.isInstance(a)?a:new b9({url:n,cause:a})}},iZ=(e=oZ)=>t=>Promise.all(t.map(async n=>n.isUrlSupportedByModel?null:e(n)));function sZ(e){try{const[t,n]=e.split(",");return{mediaType:t.split(";")[0].split(":")[1],base64Content:n}}catch(t){return{mediaType:void 0,base64Content:void 0}}}var zk=ca([ee(),Yv(Uint8Array),Yv(ArrayBuffer),WC(e=>{var t,n;return(n=(t=globalThis.Buffer)==null?void 0:t.isBuffer(e))!=null?n:!1},{message:"Must be a Buffer"})]);function Uk(e){if(e instanceof Uint8Array)return{data:e,mediaType:void 0};if(e instanceof ArrayBuffer)return{data:new Uint8Array(e),mediaType:void 0};if(typeof e=="string")try{e=new URL(e)}catch(t){}if(e instanceof URL&&e.protocol==="data:"){const{mediaType:t,base64Content:n}=sZ(e.toString());if(t==null||n==null)throw new Jt({name:"InvalidDataContentError",message:`Invalid data URL format in content ${e.toString()}`});return{data:n,mediaType:t}}return{data:e,mediaType:void 0}}function lZ(e){return typeof e=="string"?e:e instanceof ArrayBuffer?a9(new Uint8Array(e)):a9(e)}async function Bk({prompt:e,supportedUrls:t,download:n=iZ()}){const a=await cZ(e.messages,n,t);return[...e.system!=null?[{role:"system",content:e.system}]:[],...e.messages.map(i=>uZ({message:i,downloadedAssets:a}))]}function uZ({message:e,downloadedAssets:t}){const n=e.role;switch(n){case"system":return{role:"system",content:e.content,providerOptions:e.providerOptions};case"user":return typeof e.content=="string"?{role:"user",content:[{type:"text",text:e.content}],providerOptions:e.providerOptions}:{role:"user",content:e.content.map(a=>dZ(a,t)).filter(a=>a.type!=="text"||a.text!==""),providerOptions:e.providerOptions};case"assistant":return typeof e.content=="string"?{role:"assistant",content:[{type:"text",text:e.content}],providerOptions:e.providerOptions}:{role:"assistant",content:e.content.filter(a=>a.type!=="text"||a.text!==""||a.providerOptions!=null).map(a=>{const i=a.providerOptions;switch(a.type){case"file":{const{data:l,mediaType:u}=Uk(a.data);return{type:"file",data:l,filename:a.filename,mediaType:u!=null?u:a.mediaType,providerOptions:i}}case"reasoning":return{type:"reasoning",text:a.text,providerOptions:i};case"text":return{type:"text",text:a.text,providerOptions:i};case"tool-call":return{type:"tool-call",toolCallId:a.toolCallId,toolName:a.toolName,input:a.input,providerExecuted:a.providerExecuted,providerOptions:i};case"tool-result":return{type:"tool-result",toolCallId:a.toolCallId,toolName:a.toolName,output:a.output,providerOptions:i}}}),providerOptions:e.providerOptions};case"tool":return{role:"tool",content:e.content.map(a=>({type:"tool-result",toolCallId:a.toolCallId,toolName:a.toolName,output:a.output,providerOptions:a.providerOptions})),providerOptions:e.providerOptions};default:{const a=n;throw new Y$({role:a})}}}async function cZ(e,t,n){const a=e.filter(l=>l.role==="user").map(l=>l.content).filter(l=>Array.isArray(l)).flat().filter(l=>l.type==="image"||l.type==="file").map(l=>{var u;const f=(u=l.mediaType)!=null?u:l.type==="image"?"image/*":void 0;let h=l.type==="image"?l.image:l.data;if(typeof h=="string")try{h=new URL(h)}catch(g){}return{mediaType:f,data:h}}).filter(l=>l.data instanceof URL).map(l=>({url:l.data,isUrlSupportedByModel:l.mediaType!=null&&vB({url:l.data.toString(),mediaType:l.mediaType,supportedUrls:n})})),i=await t(a);return Object.fromEntries(i.map((l,u)=>l==null?null:[a[u].url.toString(),{data:l.data,mediaType:l.mediaType}]).filter(l=>l!=null))}function dZ(e,t){var n;if(e.type==="text")return{type:"text",text:e.text,providerOptions:e.providerOptions};let a;const i=e.type;switch(i){case"image":a=e.image;break;case"file":a=e.data;break;default:throw new Error(`Unsupported part type: ${i}`)}const{data:l,mediaType:u}=Uk(a);let f=u!=null?u:e.mediaType,h=l;if(h instanceof URL){const g=t[h.toString()];g&&(h=g.data,f!=null||(f=g.mediaType))}switch(i){case"image":return(h instanceof Uint8Array||typeof h=="string")&&(f=(n=aZ({data:h,signatures:tZ}))!=null?n:f),{type:"file",mediaType:f!=null?f:"image/*",filename:void 0,data:h,providerOptions:e.providerOptions};case"file":{if(f==null)throw new Error("Media type is missing for file part");return{type:"file",mediaType:f,filename:e.filename,data:h,providerOptions:e.providerOptions}}}}function C9({maxOutputTokens:e,temperature:t,topP:n,topK:a,presencePenalty:i,frequencyPenalty:l,seed:u,stopSequences:f}){if(e!=null){if(!Number.isInteger(e))throw new Js({parameter:"maxOutputTokens",value:e,message:"maxOutputTokens must be an integer"});if(e<1)throw new Js({parameter:"maxOutputTokens",value:e,message:"maxOutputTokens must be >= 1"})}if(t!=null&&typeof t!="number")throw new Js({parameter:"temperature",value:t,message:"temperature must be a number"});if(n!=null&&typeof n!="number")throw new Js({parameter:"topP",value:n,message:"topP must be a number"});if(a!=null&&typeof a!="number")throw new Js({parameter:"topK",value:a,message:"topK must be a number"});if(i!=null&&typeof i!="number")throw new Js({parameter:"presencePenalty",value:i,message:"presencePenalty must be a number"});if(l!=null&&typeof l!="number")throw new Js({parameter:"frequencyPenalty",value:l,message:"frequencyPenalty must be a number"});if(u!=null&&!Number.isInteger(u))throw new Js({parameter:"seed",value:u,message:"seed must be an integer"});return{maxOutputTokens:e,temperature:t,topP:n,topK:a,presencePenalty:i,frequencyPenalty:l,stopSequences:f,seed:u}}function fZ(e){return e!=null&&Object.keys(e).length>0}function Hk({tools:e,toolChoice:t,activeTools:n}){return fZ(e)?{tools:(n!=null?Object.entries(e).filter(([i])=>n.includes(i)):Object.entries(e)).map(([i,l])=>{const u=l.type;switch(u){case void 0:case"dynamic":case"function":return{type:"function",name:i,description:l.description,inputSchema:n0(l.inputSchema).jsonSchema,providerOptions:l.providerOptions};case"provider-defined":return{type:"provider-defined",name:i,id:l.id,args:l.args};default:{const f=u;throw new Error(`Unsupported tool type: ${f}`)}}}),toolChoice:t==null?{type:"auto"}:typeof t=="string"?{type:t}:{type:"tool",toolName:t.toolName}}:{tools:void 0,toolChoice:void 0}}var Hh=dB(()=>ca([FU(),ee(),or(),fn(),op(ee(),Hh),Un(Hh)])),Yr=op(ee(),op(ee(),Hh)),Vk=$e({type:$t("text"),text:ee(),providerOptions:Yr.optional()}),pZ=$e({type:$t("image"),image:ca([zk,Yv(URL)]),mediaType:ee().optional(),providerOptions:Yr.optional()}),$k=$e({type:$t("file"),data:ca([zk,Yv(URL)]),filename:ee().optional(),mediaType:ee(),providerOptions:Yr.optional()}),hZ=$e({type:$t("reasoning"),text:ee(),providerOptions:Yr.optional()}),mZ=$e({type:$t("tool-call"),toolCallId:ee(),toolName:ee(),input:Bo(),providerOptions:Yr.optional(),providerExecuted:fn().optional()}),gZ=$U("type",[$e({type:$t("text"),value:ee()}),$e({type:$t("json"),value:Hh}),$e({type:$t("error-text"),value:ee()}),$e({type:$t("error-json"),value:Hh}),$e({type:$t("content"),value:Un(ca([$e({type:$t("text"),text:ee()}),$e({type:$t("media"),data:ee(),mediaType:ee()})]))})]),Zk=$e({type:$t("tool-result"),toolCallId:ee(),toolName:ee(),output:gZ,providerOptions:Yr.optional()}),vZ=$e({role:$t("system"),content:ee(),providerOptions:Yr.optional()}),yZ=$e({role:$t("user"),content:ca([ee(),Un(ca([Vk,pZ,$k]))]),providerOptions:Yr.optional()}),xZ=$e({role:$t("assistant"),content:ca([ee(),Un(ca([Vk,$k,hZ,mZ,Zk]))]),providerOptions:Yr.optional()}),wZ=$e({role:$t("tool"),content:Un(Zk),providerOptions:Yr.optional()}),bZ=ca([vZ,yZ,xZ,wZ]);async function Wk(e){if(e.prompt==null&&e.messages==null)throw new Kf({prompt:e,message:"prompt or messages must be defined"});if(e.prompt!=null&&e.messages!=null)throw new Kf({prompt:e,message:"prompt and messages cannot be defined at the same time"});if(e.system!=null&&typeof e.system!="string")throw new Kf({prompt:e,message:"system must be a string"});let t;if(e.prompt!=null&&typeof e.prompt=="string")t=[{role:"user",content:e.prompt}];else if(e.prompt!=null&&Array.isArray(e.prompt))t=e.prompt;else if(e.messages!=null)t=e.messages;else throw new Kf({prompt:e,message:"prompt or messages must be defined"});if(t.length===0)throw new Kf({prompt:e,message:"messages must not be empty"});const n=await Gl({value:t,schema:Un(bZ)});if(!n.success)throw new Kf({prompt:e,message:"The messages must be a ModelMessage[]. If you have passed a UIMessage[], you can use convertToModelMessages to convert them.",cause:n.error});return{messages:t,system:e.system}}function qk(e){if(!l9.isInstance(e))return e;const t=(process==null?void 0:process.env.NODE_ENV)==="production",n="https://v5.ai-sdk.dev/unauthenticated-ai-gateway";return t?new Jt({name:"GatewayError",message:`Unauthenticated. Configure AI_GATEWAY_API_KEY or use a provider module. Learn more: ${n}`}):Object.assign(new Error(`\x1B[1m\x1B[31mUnauthenticated request to AI Gateway.\x1B[0m
338
+
339
+ To authenticate, set the \x1B[33mAI_GATEWAY_API_KEY\x1B[0m environment variable with your API key.
340
+
341
+ Alternatively, you can use a provider module instead of the AI Gateway.
342
+
343
+ Learn more: \x1B[34m${n}\x1B[0m
344
+
345
+ `),{name:"GatewayAuthenticationError"})}function cp({operationId:e,telemetry:t}){return{"operation.name":`${e}${(t==null?void 0:t.functionId)!=null?` ${t.functionId}`:""}`,"resource.name":t==null?void 0:t.functionId,"ai.operationId":e,"ai.telemetry.functionId":t==null?void 0:t.functionId}}function Gk({model:e,settings:t,telemetry:n,headers:a}){var i;return{"ai.model.provider":e.provider,"ai.model.id":e.modelId,...Object.entries(t).reduce((l,[u,f])=>(l[`ai.settings.${u}`]=f,l),{}),...Object.entries((i=n==null?void 0:n.metadata)!=null?i:{}).reduce((l,[u,f])=>(l[`ai.telemetry.metadata.${u}`]=f,l),{}),...Object.entries(a!=null?a:{}).reduce((l,[u,f])=>(f!==void 0&&(l[`ai.request.headers.${u}`]=f),l),{})}}var CZ={startSpan(){return l0},startActiveSpan(e,t,n,a){if(typeof t=="function")return t(l0);if(typeof n=="function")return n(l0);if(typeof a=="function")return a(l0)}},l0={spanContext(){return SZ},setAttribute(){return this},setAttributes(){return this},addEvent(){return this},addLink(){return this},addLinks(){return this},setStatus(){return this},updateName(){return this},end(){return this},isRecording(){return!1},recordException(){return this}},SZ={traceId:"",spanId:"",traceFlags:0};function Yk({isEnabled:e=!1,tracer:t}={}){return e?t||L$.getTracer("ai"):CZ}function dp({name:e,tracer:t,attributes:n,fn:a,endWhenDone:i=!0}){return t.startActiveSpan(e,{attributes:n},async l=>{try{const u=await a(l);return i&&l.end(),u}catch(u){try{S9(l,u)}finally{l.end()}throw u}})}function S9(e,t){t instanceof Error?(e.recordException({name:t.name,message:t.message,stack:t.stack}),e.setStatus({code:o0.ERROR,message:t.message})):e.setStatus({code:o0.ERROR})}function ji({telemetry:e,attributes:t}){return(e==null?void 0:e.isEnabled)!==!0?{}:Object.entries(t).reduce((n,[a,i])=>{if(i==null)return n;if(typeof i=="object"&&"input"in i&&typeof i.input=="function"){if((e==null?void 0:e.recordInputs)===!1)return n;const l=i.input();return l==null?n:{...n,[a]:l}}if(typeof i=="object"&&"output"in i&&typeof i.output=="function"){if((e==null?void 0:e.recordOutputs)===!1)return n;const l=i.output();return l==null?n:{...n,[a]:l}}return{...n,[a]:i}},{})}function Jk(e){return JSON.stringify(e.map(t=>({...t,content:typeof t.content=="string"?t.content:t.content.map(n=>n.type==="file"?{...n,data:n.data instanceof Uint8Array?lZ(n.data):n.data}:n)})))}function Xk(e,t){return{inputTokens:Vh(e.inputTokens,t.inputTokens),outputTokens:Vh(e.outputTokens,t.outputTokens),totalTokens:Vh(e.totalTokens,t.totalTokens),reasoningTokens:Vh(e.reasoningTokens,t.reasoningTokens),cachedInputTokens:Vh(e.cachedInputTokens,t.cachedInputTokens)}}function Vh(e,t){return e==null&&t==null?void 0:(e!=null?e:0)+(t!=null?t:0)}function k9(e){return e===void 0?[]:Array.isArray(e)?e:[e]}function kZ({error:e,exponentialBackoffDelay:t}){const n=e.responseHeaders;if(!n)return t;let a;const i=n["retry-after-ms"];if(i){const u=parseFloat(i);Number.isNaN(u)||(a=u)}const l=n["retry-after"];if(l&&a===void 0){const u=parseFloat(l);Number.isNaN(u)?a=Date.parse(l)-Date.now():a=u*1e3}return a!=null&&!Number.isNaN(a)&&0<=a&&(a<60*1e3||a<t)?a:t}var EZ=({maxRetries:e=2,initialDelayInMs:t=2e3,backoffFactor:n=2,abortSignal:a}={})=>async i=>Kk(i,{maxRetries:e,delayInMs:t,backoffFactor:n,abortSignal:a});async function Kk(e,{maxRetries:t,delayInMs:n,backoffFactor:a,abortSignal:i},l=[]){try{return await e()}catch(u){if(dd(u)||t===0)throw u;const f=Kv(u),h=[...l,u],g=h.length;if(g>t)throw new Fk({message:`Failed after ${g} attempts. Last error: ${f}`,reason:"maxRetriesExceeded",errors:h});if(u instanceof Error&&yo.isInstance(u)&&u.isRetryable===!0&&g<=t)return await hB(kZ({error:u,exponentialBackoffDelay:n}),{abortSignal:i}),Kk(e,{maxRetries:t,delayInMs:a*n,backoffFactor:a,abortSignal:i},h);throw g===1?u:new Fk({message:`Failed after ${g} attempts with non-retryable error: '${f}'`,reason:"errorNotRetryable",errors:h})}}function Qk({maxRetries:e,abortSignal:t}){if(e!=null){if(!Number.isInteger(e))throw new Js({parameter:"maxRetries",value:e,message:"maxRetries must be an integer"});if(e<0)throw new Js({parameter:"maxRetries",value:e,message:"maxRetries must be >= 0"})}const n=e!=null?e:2;return{maxRetries:n,retry:EZ({maxRetries:n,abortSignal:t})}}function eE(e){const t=e.filter(n=>n.type==="text");if(t.length!==0)return t.map(n=>n.text).join("")}var tE=class{constructor({data:e,mediaType:t}){const n=e instanceof Uint8Array;this.base64Data=n?void 0:e,this.uint8ArrayData=n?e:void 0,this.mediaType=t}get base64(){return this.base64Data==null&&(this.base64Data=a9(this.uint8ArrayData)),this.base64Data}get uint8Array(){return this.uint8ArrayData==null&&(this.uint8ArrayData=r9(this.base64Data)),this.uint8ArrayData}},_Z=class extends tE{constructor(e){super(e),this.type="file"}};async function nE({toolCall:e,tools:t,repairToolCall:n,system:a,messages:i}){try{if(t==null)throw new w9({toolName:e.toolName});try{return await rE({toolCall:e,tools:t})}catch(l){if(n==null||!(w9.isInstance(l)||fk.isInstance(l)))throw l;let u=null;try{u=await n({toolCall:e,tools:t,inputSchema:({toolName:f})=>{const{inputSchema:h}=t[f];return n0(h).jsonSchema},system:a,messages:i,error:l})}catch(f){throw new W$({cause:f,originalError:l})}if(u==null)throw l;return await rE({toolCall:u,tools:t})}}catch(l){const u=await hd({text:e.input}),f=u.success?u.value:e.input;return{type:"tool-call",toolCallId:e.toolCallId,toolName:e.toolName,input:f,dynamic:!0,invalid:!0,error:l,providerMetadata:e.providerMetadata}}}async function rE({toolCall:e,tools:t}){const n=e.toolName,a=t[n];if(a==null)throw new w9({toolName:e.toolName,availableTools:Object.keys(t)});const i=n0(a.inputSchema),l=e.input.trim()===""?await Gl({value:{},schema:i}):await hd({text:e.input,schema:i});if(l.success===!1)throw new fk({toolName:n,toolInput:e.input,cause:l.error});return a.type==="dynamic"?{type:"tool-call",toolCallId:e.toolCallId,toolName:e.toolName,input:l.value,providerExecuted:e.providerExecuted,providerMetadata:e.providerMetadata,dynamic:!0}:{type:"tool-call",toolCallId:e.toolCallId,toolName:n,input:l.value,providerExecuted:e.providerExecuted,providerMetadata:e.providerMetadata}}var aE=class{constructor({content:e,finishReason:t,usage:n,warnings:a,request:i,response:l,providerMetadata:u}){this.content=e,this.finishReason=t,this.usage=n,this.warnings=a,this.request=i,this.response=l,this.providerMetadata=u}get text(){return this.content.filter(e=>e.type==="text").map(e=>e.text).join("")}get reasoning(){return this.content.filter(e=>e.type==="reasoning")}get reasoningText(){return this.reasoning.length===0?void 0:this.reasoning.map(e=>e.text).join("")}get files(){return this.content.filter(e=>e.type==="file").map(e=>e.file)}get sources(){return this.content.filter(e=>e.type==="source")}get toolCalls(){return this.content.filter(e=>e.type==="tool-call")}get staticToolCalls(){return this.toolCalls.filter(e=>e.dynamic!==!0)}get dynamicToolCalls(){return this.toolCalls.filter(e=>e.dynamic===!0)}get toolResults(){return this.content.filter(e=>e.type==="tool-result")}get staticToolResults(){return this.toolResults.filter(e=>e.dynamic!==!0)}get dynamicToolResults(){return this.toolResults.filter(e=>e.dynamic===!0)}};function oE(e){return({steps:t})=>t.length===e}async function iE({stopConditions:e,steps:t}){return(await Promise.all(e.map(n=>n({steps:t})))).some(n=>n)}function $h({output:e,tool:t,errorMode:n}){return n==="text"?{type:"error-text",value:Xf(e)}:n==="json"?{type:"error-json",value:sE(e)}:t!=null&&t.toModelOutput?t.toModelOutput(e):typeof e=="string"?{type:"text",value:e}:{type:"json",value:sE(e)}}function sE(e){return e===void 0?null:e}function E9({content:e,tools:t}){const n=[],a=e.filter(l=>l.type!=="source").filter(l=>(l.type!=="tool-result"||l.providerExecuted)&&(l.type!=="tool-error"||l.providerExecuted)).filter(l=>l.type!=="text"||l.text.length>0).map(l=>{switch(l.type){case"text":return{type:"text",text:l.text,providerOptions:l.providerMetadata};case"reasoning":return{type:"reasoning",text:l.text,providerOptions:l.providerMetadata};case"file":return{type:"file",data:l.file.base64,mediaType:l.file.mediaType,providerOptions:l.providerMetadata};case"tool-call":return{type:"tool-call",toolCallId:l.toolCallId,toolName:l.toolName,input:l.input,providerExecuted:l.providerExecuted,providerOptions:l.providerMetadata};case"tool-result":return{type:"tool-result",toolCallId:l.toolCallId,toolName:l.toolName,output:$h({tool:t==null?void 0:t[l.toolName],output:l.output,errorMode:"none"}),providerExecuted:!0,providerOptions:l.providerMetadata};case"tool-error":return{type:"tool-result",toolCallId:l.toolCallId,toolName:l.toolName,output:$h({tool:t==null?void 0:t[l.toolName],output:l.error,errorMode:"json"}),providerOptions:l.providerMetadata}}});a.length>0&&n.push({role:"assistant",content:a});const i=e.filter(l=>l.type==="tool-result"||l.type==="tool-error").filter(l=>!l.providerExecuted).map(l=>({type:"tool-result",toolCallId:l.toolCallId,toolName:l.toolName,output:$h({tool:t==null?void 0:t[l.toolName],output:l.type==="tool-result"?l.output:l.error,errorMode:l.type==="tool-error"?"text":"none"}),...l.providerMetadata!=null?{providerOptions:l.providerMetadata}:{}}));return i.length>0&&n.push({role:"tool",content:i}),n}var TZ=Ih({prefix:"aitxt",size:24});async function RZ({model:e,tools:t,toolChoice:n,system:a,prompt:i,messages:l,maxRetries:u,abortSignal:f,headers:h,stopWhen:g=oE(1),experimental_output:x,experimental_telemetry:y,providerOptions:k,experimental_activeTools:b,activeTools:_=b,experimental_prepareStep:R,prepareStep:M=R,experimental_repairToolCall:L,experimental_download:P,experimental_context:F,_internal:{generateId:D=TZ,currentDate:V=()=>new Date}={},onStepFinish:H,...Z}){const q=i0(e),ae=k9(g),{maxRetries:_e,retry:ge}=Qk({maxRetries:u,abortSignal:f}),he=C9(Z),we=Xu(h!=null?h:{},`ai/${s0}`),Ne=Gk({model:q,telemetry:y,headers:we,settings:{...he,maxRetries:_e}}),xe=await Wk({system:a,prompt:i,messages:l}),Te=Yk(y);try{return await dp({name:"ai.generateText",attributes:ji({telemetry:y,attributes:{...cp({operationId:"ai.generateText",telemetry:y}),...Ne,"ai.model.provider":q.provider,"ai.model.id":q.modelId,"ai.prompt":{input:()=>JSON.stringify({system:a,prompt:i,messages:l})}}}),tracer:Te,fn:async ve=>{var K,ye,U,X,ie,$,Ue;const Ke=C9(Z);let De,Ee=[],Ze=[];const Qe=[],qe=[];do{const bt=[...xe.messages,...Qe],ct=await(M==null?void 0:M({model:q,steps:qe,stepNumber:qe.length,messages:bt})),yt=i0((K=ct==null?void 0:ct.model)!=null?K:q),Pt=await Bk({prompt:{system:(ye=ct==null?void 0:ct.system)!=null?ye:xe.system,messages:(U=ct==null?void 0:ct.messages)!=null?U:bt},supportedUrls:await yt.supportedUrls,download:P}),{toolChoice:St,tools:jn}=Hk({tools:t,toolChoice:(X=ct==null?void 0:ct.toolChoice)!=null?X:n,activeTools:(ie=ct==null?void 0:ct.activeTools)!=null?ie:_});De=await ge(()=>{var Wt;return dp({name:"ai.generateText.doGenerate",attributes:ji({telemetry:y,attributes:{...cp({operationId:"ai.generateText.doGenerate",telemetry:y}),...Ne,"ai.model.provider":yt.provider,"ai.model.id":yt.modelId,"ai.prompt.messages":{input:()=>Jk(Pt)},"ai.prompt.tools":{input:()=>jn==null?void 0:jn.map(hr=>JSON.stringify(hr))},"ai.prompt.toolChoice":{input:()=>St!=null?JSON.stringify(St):void 0},"gen_ai.system":yt.provider,"gen_ai.request.model":yt.modelId,"gen_ai.request.frequency_penalty":Z.frequencyPenalty,"gen_ai.request.max_tokens":Z.maxOutputTokens,"gen_ai.request.presence_penalty":Z.presencePenalty,"gen_ai.request.stop_sequences":Z.stopSequences,"gen_ai.request.temperature":(Wt=Z.temperature)!=null?Wt:void 0,"gen_ai.request.top_k":Z.topK,"gen_ai.request.top_p":Z.topP}}),tracer:Te,fn:async hr=>{var $n,me,Me,dt,It,Ae,Ye,Nt;const xt=await yt.doGenerate({...Ke,tools:jn,toolChoice:St,responseFormat:x==null?void 0:x.responseFormat,prompt:Pt,providerOptions:k,abortSignal:f,headers:we}),Kt={id:(me=($n=xt.response)==null?void 0:$n.id)!=null?me:D(),timestamp:(dt=(Me=xt.response)==null?void 0:Me.timestamp)!=null?dt:V(),modelId:(Ae=(It=xt.response)==null?void 0:It.modelId)!=null?Ae:yt.modelId,headers:(Ye=xt.response)==null?void 0:Ye.headers,body:(Nt=xt.response)==null?void 0:Nt.body};return hr.setAttributes(ji({telemetry:y,attributes:{"ai.response.finishReason":xt.finishReason,"ai.response.text":{output:()=>eE(xt.content)},"ai.response.toolCalls":{output:()=>{const ln=lE(xt.content);return ln==null?void 0:JSON.stringify(ln)}},"ai.response.id":Kt.id,"ai.response.model":Kt.modelId,"ai.response.timestamp":Kt.timestamp.toISOString(),"ai.response.providerMetadata":JSON.stringify(xt.providerMetadata),"ai.usage.promptTokens":xt.usage.inputTokens,"ai.usage.completionTokens":xt.usage.outputTokens,"gen_ai.response.finish_reasons":[xt.finishReason],"gen_ai.response.id":Kt.id,"gen_ai.response.model":Kt.modelId,"gen_ai.usage.input_tokens":xt.usage.inputTokens,"gen_ai.usage.output_tokens":xt.usage.outputTokens}})),{...xt,response:Kt}}})});const Hn=await Promise.all(De.content.filter(Wt=>Wt.type==="tool-call").map(Wt=>nE({toolCall:Wt,tools:t,repairToolCall:L,system:a,messages:bt})));for(const Wt of Hn){if(Wt.invalid)continue;const hr=t[Wt.toolName];(hr==null?void 0:hr.onInputAvailable)!=null&&await hr.onInputAvailable({input:Wt.input,toolCallId:Wt.toolCallId,messages:bt,abortSignal:f,experimental_context:F})}const Be=Hn.filter(Wt=>Wt.invalid&&Wt.dynamic);Ze=[];for(const Wt of Be)Ze.push({type:"tool-error",toolCallId:Wt.toolCallId,toolName:Wt.toolName,input:Wt.input,error:Kv(Wt.error),dynamic:!0});Ee=Hn.filter(Wt=>!Wt.providerExecuted),t!=null&&Ze.push(...await AZ({toolCalls:Ee.filter(Wt=>!Wt.invalid),tools:t,tracer:Te,telemetry:y,messages:bt,abortSignal:f,experimental_context:F}));const At=MZ({content:De.content,toolCalls:Hn,toolOutputs:Ze});Qe.push(...E9({content:At,tools:t}));const Pn=new aE({content:At,finishReason:De.finishReason,usage:De.usage,warnings:De.warnings,providerMetadata:De.providerMetadata,request:($=De.request)!=null?$:{},response:{...De.response,messages:structuredClone(Qe)}});ok((Ue=De.warnings)!=null?Ue:[]),qe.push(Pn),await(H==null?void 0:H(Pn))}while(Ee.length>0&&Ze.length===Ee.length&&!await iE({stopConditions:ae,steps:qe}));ve.setAttributes(ji({telemetry:y,attributes:{"ai.response.finishReason":De.finishReason,"ai.response.text":{output:()=>eE(De.content)},"ai.response.toolCalls":{output:()=>{const bt=lE(De.content);return bt==null?void 0:JSON.stringify(bt)}},"ai.response.providerMetadata":JSON.stringify(De.providerMetadata),"ai.usage.promptTokens":De.usage.inputTokens,"ai.usage.completionTokens":De.usage.outputTokens}}));const tt=qe[qe.length-1];let Et;return tt.finishReason==="stop"&&(Et=await(x==null?void 0:x.parseOutput({text:tt.text},{response:tt.response,usage:tt.usage,finishReason:tt.finishReason}))),new NZ({steps:qe,resolvedOutput:Et})}})}catch(ve){throw qk(ve)}}async function AZ({toolCalls:e,tools:t,tracer:n,telemetry:a,messages:i,abortSignal:l,experimental_context:u}){return(await Promise.all(e.map(async({toolCallId:h,toolName:g,input:x})=>{const y=t[g];if((y==null?void 0:y.execute)!=null)return dp({name:"ai.toolCall",attributes:ji({telemetry:a,attributes:{...cp({operationId:"ai.toolCall",telemetry:a}),"ai.toolCall.name":g,"ai.toolCall.id":h,"ai.toolCall.args":{output:()=>JSON.stringify(x)}}}),tracer:n,fn:async k=>{try{const b=cS({execute:y.execute.bind(y),input:x,options:{toolCallId:h,messages:i,abortSignal:l,experimental_context:u}});let _;for await(const R of b)R.type==="final"&&(_=R.output);try{k.setAttributes(ji({telemetry:a,attributes:{"ai.toolCall.result":{output:()=>JSON.stringify(_)}}}))}catch(R){}return{type:"tool-result",toolCallId:h,toolName:g,input:x,output:_,dynamic:y.type==="dynamic"}}catch(b){return S9(k,b),{type:"tool-error",toolCallId:h,toolName:g,input:x,error:b,dynamic:y.type==="dynamic"}}}})}))).filter(h=>h!=null)}var NZ=class{constructor(e){this.steps=e.steps,this.resolvedOutput=e.resolvedOutput}get finalStep(){return this.steps[this.steps.length-1]}get content(){return this.finalStep.content}get text(){return this.finalStep.text}get files(){return this.finalStep.files}get reasoningText(){return this.finalStep.reasoningText}get reasoning(){return this.finalStep.reasoning}get toolCalls(){return this.finalStep.toolCalls}get staticToolCalls(){return this.finalStep.staticToolCalls}get dynamicToolCalls(){return this.finalStep.dynamicToolCalls}get toolResults(){return this.finalStep.toolResults}get staticToolResults(){return this.finalStep.staticToolResults}get dynamicToolResults(){return this.finalStep.dynamicToolResults}get sources(){return this.finalStep.sources}get finishReason(){return this.finalStep.finishReason}get warnings(){return this.finalStep.warnings}get providerMetadata(){return this.finalStep.providerMetadata}get response(){return this.finalStep.response}get request(){return this.finalStep.request}get usage(){return this.finalStep.usage}get totalUsage(){return this.steps.reduce((e,t)=>Xk(e,t.usage),{inputTokens:void 0,outputTokens:void 0,totalTokens:void 0,reasoningTokens:void 0,cachedInputTokens:void 0})}get experimental_output(){if(this.resolvedOutput==null)throw new rk;return this.resolvedOutput}};function lE(e){const t=e.filter(n=>n.type==="tool-call");if(t.length!==0)return t.map(n=>({toolCallId:n.toolCallId,toolName:n.toolName,input:n.input}))}function MZ({content:e,toolCalls:t,toolOutputs:n}){return[...e.map(a=>{switch(a.type){case"text":case"reasoning":case"source":return a;case"file":return{type:"file",file:new tE(a)};case"tool-call":return t.find(i=>i.toolCallId===a.toolCallId);case"tool-result":{const i=t.find(l=>l.toolCallId===a.toolCallId);if(i==null)throw new Error(`Tool call ${a.toolCallId} not found.`);return a.isError?{type:"tool-error",toolCallId:a.toolCallId,toolName:a.toolName,input:i.input,error:a.result,providerExecuted:!0,dynamic:i.dynamic}:{type:"tool-result",toolCallId:a.toolCallId,toolName:a.toolName,input:i.input,output:a.result,providerExecuted:!0,dynamic:i.dynamic}}}}),...n]}function u0(e,t){const n=new Headers(e!=null?e:{});for(const[a,i]of Object.entries(t))n.has(a)||n.set(a,i);return n}function OZ({status:e,statusText:t,headers:n,textStream:a}){return new Response(a.pipeThrough(new TextEncoderStream),{status:e!=null?e:200,statusText:t,headers:u0(n,{"content-type":"text/plain; charset=utf-8"})})}function uE({response:e,status:t,statusText:n,headers:a,stream:i}){const l=t!=null?t:200;n!==void 0?e.writeHead(l,n,a):e.writeHead(l,a);const u=i.getReader();(async()=>{try{for(;;){const{done:h,value:g}=await u.read();if(h)break;e.write(g)||await new Promise(y=>{e.once("drain",y)})}}catch(h){throw h}finally{e.end()}})()}function LZ({response:e,status:t,statusText:n,headers:a,textStream:i}){uE({response:e,status:t,statusText:n,headers:Object.fromEntries(u0(a,{"content-type":"text/plain; charset=utf-8"}).entries()),stream:i.pipeThrough(new TextEncoderStream)})}var cE=class extends TransformStream{constructor(){super({transform(e,t){t.enqueue(`data: ${JSON.stringify(e)}
346
+
347
+ `)},flush(e){e.enqueue(`data: [DONE]
348
+
349
+ `)}})}},dE={"content-type":"text/event-stream","cache-control":"no-cache",connection:"keep-alive","x-vercel-ai-ui-message-stream":"v1","x-accel-buffering":"no"};function fE({status:e,statusText:t,headers:n,stream:a,consumeSseStream:i}){let l=a.pipeThrough(new cE);if(i){const[u,f]=l.tee();l=u,i({stream:f})}return new Response(l.pipeThrough(new TextEncoderStream),{status:e,statusText:t,headers:u0(n,dE)})}function IZ({originalMessages:e,responseMessageId:t}){if(e==null)return;const n=e[e.length-1];return(n==null?void 0:n.role)==="assistant"?n.id:typeof t=="function"?t():t}var DZ=pd(()=>hs(ca([Tr({type:$t("text-start"),id:ee(),providerMetadata:Yr.optional()}),Tr({type:$t("text-delta"),id:ee(),delta:ee(),providerMetadata:Yr.optional()}),Tr({type:$t("text-end"),id:ee(),providerMetadata:Yr.optional()}),Tr({type:$t("error"),errorText:ee()}),Tr({type:$t("tool-input-start"),toolCallId:ee(),toolName:ee(),providerExecuted:fn().optional(),dynamic:fn().optional()}),Tr({type:$t("tool-input-delta"),toolCallId:ee(),inputTextDelta:ee()}),Tr({type:$t("tool-input-available"),toolCallId:ee(),toolName:ee(),input:Bo(),providerExecuted:fn().optional(),providerMetadata:Yr.optional(),dynamic:fn().optional()}),Tr({type:$t("tool-input-error"),toolCallId:ee(),toolName:ee(),input:Bo(),providerExecuted:fn().optional(),providerMetadata:Yr.optional(),dynamic:fn().optional(),errorText:ee()}),Tr({type:$t("tool-output-available"),toolCallId:ee(),output:Bo(),providerExecuted:fn().optional(),dynamic:fn().optional(),preliminary:fn().optional()}),Tr({type:$t("tool-output-error"),toolCallId:ee(),errorText:ee(),providerExecuted:fn().optional(),dynamic:fn().optional()}),Tr({type:$t("reasoning-start"),id:ee(),providerMetadata:Yr.optional()}),Tr({type:$t("reasoning-delta"),id:ee(),delta:ee(),providerMetadata:Yr.optional()}),Tr({type:$t("reasoning-end"),id:ee(),providerMetadata:Yr.optional()}),Tr({type:$t("source-url"),sourceId:ee(),url:ee(),title:ee().optional(),providerMetadata:Yr.optional()}),Tr({type:$t("source-document"),sourceId:ee(),mediaType:ee(),title:ee(),filename:ee().optional(),providerMetadata:Yr.optional()}),Tr({type:$t("file"),url:ee(),mediaType:ee(),providerMetadata:Yr.optional()}),Tr({type:WC(e=>typeof e=="string"&&e.startsWith("data-"),{message:'Type must start with "data-"'}),id:ee().optional(),data:Bo(),transient:fn().optional()}),Tr({type:$t("start-step")}),Tr({type:$t("finish-step")}),Tr({type:$t("start"),messageId:ee().optional(),messageMetadata:Bo().optional()}),Tr({type:$t("finish"),finishReason:vn(["stop","length","content-filter","tool-calls","error","other","unknown"]).optional(),messageMetadata:Bo().optional()}),Tr({type:$t("abort")}),Tr({type:$t("message-metadata"),messageMetadata:Bo()})])));function jZ(e){return e.type.startsWith("data-")}function pE(e,t){if(e===void 0&&t===void 0)return;if(e===void 0)return t;if(t===void 0)return e;const n={...e};for(const a in t)if(Object.prototype.hasOwnProperty.call(t,a)){const i=t[a];if(i===void 0)continue;const l=a in e?e[a]:void 0,u=i!==null&&typeof i=="object"&&!Array.isArray(i)&&!(i instanceof Date)&&!(i instanceof RegExp),f=l!=null&&typeof l=="object"&&!Array.isArray(l)&&!(l instanceof Date)&&!(l instanceof RegExp);u&&f?n[a]=pE(l,i):n[a]=i}return n}function PZ(e){const t=["ROOT"];let n=-1,a=null;function i(h,g,x){switch(h){case'"':{n=g,t.pop(),t.push(x),t.push("INSIDE_STRING");break}case"f":case"t":case"n":{n=g,a=g,t.pop(),t.push(x),t.push("INSIDE_LITERAL");break}case"-":{t.pop(),t.push(x),t.push("INSIDE_NUMBER");break}case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":{n=g,t.pop(),t.push(x),t.push("INSIDE_NUMBER");break}case"{":{n=g,t.pop(),t.push(x),t.push("INSIDE_OBJECT_START");break}case"[":{n=g,t.pop(),t.push(x),t.push("INSIDE_ARRAY_START");break}}}function l(h,g){switch(h){case",":{t.pop(),t.push("INSIDE_OBJECT_AFTER_COMMA");break}case"}":{n=g,t.pop();break}}}function u(h,g){switch(h){case",":{t.pop(),t.push("INSIDE_ARRAY_AFTER_COMMA");break}case"]":{n=g,t.pop();break}}}for(let h=0;h<e.length;h++){const g=e[h];switch(t[t.length-1]){case"ROOT":i(g,h,"FINISH");break;case"INSIDE_OBJECT_START":{switch(g){case'"':{t.pop(),t.push("INSIDE_OBJECT_KEY");break}case"}":{n=h,t.pop();break}}break}case"INSIDE_OBJECT_AFTER_COMMA":{switch(g){case'"':{t.pop(),t.push("INSIDE_OBJECT_KEY");break}}break}case"INSIDE_OBJECT_KEY":{switch(g){case'"':{t.pop(),t.push("INSIDE_OBJECT_AFTER_KEY");break}}break}case"INSIDE_OBJECT_AFTER_KEY":{switch(g){case":":{t.pop(),t.push("INSIDE_OBJECT_BEFORE_VALUE");break}}break}case"INSIDE_OBJECT_BEFORE_VALUE":{i(g,h,"INSIDE_OBJECT_AFTER_VALUE");break}case"INSIDE_OBJECT_AFTER_VALUE":{l(g,h);break}case"INSIDE_STRING":{switch(g){case'"':{t.pop(),n=h;break}case"\\":{t.push("INSIDE_STRING_ESCAPE");break}default:n=h}break}case"INSIDE_ARRAY_START":{switch(g){case"]":{n=h,t.pop();break}default:{n=h,i(g,h,"INSIDE_ARRAY_AFTER_VALUE");break}}break}case"INSIDE_ARRAY_AFTER_VALUE":{switch(g){case",":{t.pop(),t.push("INSIDE_ARRAY_AFTER_COMMA");break}case"]":{n=h,t.pop();break}default:{n=h;break}}break}case"INSIDE_ARRAY_AFTER_COMMA":{i(g,h,"INSIDE_ARRAY_AFTER_VALUE");break}case"INSIDE_STRING_ESCAPE":{t.pop(),n=h;break}case"INSIDE_NUMBER":{switch(g){case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":{n=h;break}case"e":case"E":case"-":case".":break;case",":{t.pop(),t[t.length-1]==="INSIDE_ARRAY_AFTER_VALUE"&&u(g,h),t[t.length-1]==="INSIDE_OBJECT_AFTER_VALUE"&&l(g,h);break}case"}":{t.pop(),t[t.length-1]==="INSIDE_OBJECT_AFTER_VALUE"&&l(g,h);break}case"]":{t.pop(),t[t.length-1]==="INSIDE_ARRAY_AFTER_VALUE"&&u(g,h);break}default:{t.pop();break}}break}case"INSIDE_LITERAL":{const y=e.substring(a,h+1);!"false".startsWith(y)&&!"true".startsWith(y)&&!"null".startsWith(y)?(t.pop(),t[t.length-1]==="INSIDE_OBJECT_AFTER_VALUE"?l(g,h):t[t.length-1]==="INSIDE_ARRAY_AFTER_VALUE"&&u(g,h)):n=h;break}}}let f=e.slice(0,n+1);for(let h=t.length-1;h>=0;h--)switch(t[h]){case"INSIDE_STRING":{f+='"';break}case"INSIDE_OBJECT_KEY":case"INSIDE_OBJECT_AFTER_KEY":case"INSIDE_OBJECT_AFTER_COMMA":case"INSIDE_OBJECT_START":case"INSIDE_OBJECT_BEFORE_VALUE":case"INSIDE_OBJECT_AFTER_VALUE":{f+="}";break}case"INSIDE_ARRAY_START":case"INSIDE_ARRAY_AFTER_COMMA":case"INSIDE_ARRAY_AFTER_VALUE":{f+="]";break}case"INSIDE_LITERAL":{const x=e.substring(a,e.length);"true".startsWith(x)?f+="true".slice(x.length):"false".startsWith(x)?f+="false".slice(x.length):"null".startsWith(x)&&(f+="null".slice(x.length))}}return f}async function hE(e){if(e===void 0)return{value:void 0,state:"undefined-input"};let t=await hd({text:e});return t.success?{value:t.value,state:"successful-parse"}:(t=await hd({text:PZ(e)}),t.success?{value:t.value,state:"repaired-parse"}:{value:void 0,state:"failed-parse"})}function _9(e){return e.type.startsWith("data-")}function T9(e){return e.type==="text"}function R9(e){return e.type==="file"}function mE(e){return e.type==="reasoning"}function xd(e){return e.type.startsWith("tool-")}function A9(e){return e.type==="dynamic-tool"}function c0(e){return xd(e)||A9(e)}function Zh(e){return e.type.split("-").slice(1).join("-")}function FZ(e){return A9(e)?e.toolName:Zh(e)}function gE({lastMessage:e,messageId:t}){return{message:(e==null?void 0:e.role)==="assistant"?e:{id:t,metadata:void 0,role:"assistant",parts:[]},activeTextParts:{},activeReasoningParts:{},partialToolCalls:{}}}function vE({stream:e,messageMetadataSchema:t,dataPartSchemas:n,runUpdateMessageJob:a,onError:i,onToolCall:l,onData:u}){return e.pipeThrough(new TransformStream({async transform(f,h){await a(async({state:g,write:x})=>{var y,k,b,_;function R(D){const H=g.message.parts.filter(xd).find(Z=>Z.toolCallId===D);if(H==null)throw new Error("tool-output-error must be preceded by a tool-input-available");return H}function M(D){const H=g.message.parts.filter(Z=>Z.type==="dynamic-tool").find(Z=>Z.toolCallId===D);if(H==null)throw new Error("tool-output-error must be preceded by a tool-input-available");return H}function L(D){var V;const H=g.message.parts.find(ae=>xd(ae)&&ae.toolCallId===D.toolCallId),Z=D,q=H;H!=null?(H.state=D.state,q.input=Z.input,q.output=Z.output,q.errorText=Z.errorText,q.rawInput=Z.rawInput,q.preliminary=Z.preliminary,q.providerExecuted=(V=Z.providerExecuted)!=null?V:H.providerExecuted,Z.providerMetadata!=null&&H.state==="input-available"&&(H.callProviderMetadata=Z.providerMetadata)):g.message.parts.push({type:`tool-${D.toolName}`,toolCallId:D.toolCallId,state:D.state,input:Z.input,output:Z.output,rawInput:Z.rawInput,errorText:Z.errorText,providerExecuted:Z.providerExecuted,preliminary:Z.preliminary,...Z.providerMetadata!=null?{callProviderMetadata:Z.providerMetadata}:{}})}function P(D){var V,H;const Z=g.message.parts.find(_e=>_e.type==="dynamic-tool"&&_e.toolCallId===D.toolCallId),q=D,ae=Z;Z!=null?(Z.state=D.state,ae.toolName=D.toolName,ae.input=q.input,ae.output=q.output,ae.errorText=q.errorText,ae.rawInput=(V=q.rawInput)!=null?V:ae.rawInput,ae.preliminary=q.preliminary,ae.providerExecuted=(H=q.providerExecuted)!=null?H:Z.providerExecuted,q.providerMetadata!=null&&Z.state==="input-available"&&(Z.callProviderMetadata=q.providerMetadata)):g.message.parts.push({type:"dynamic-tool",toolName:D.toolName,toolCallId:D.toolCallId,state:D.state,input:q.input,output:q.output,errorText:q.errorText,preliminary:q.preliminary,providerExecuted:q.providerExecuted,...q.providerMetadata!=null?{callProviderMetadata:q.providerMetadata}:{}})}async function F(D){if(D!=null){const V=g.message.metadata!=null?pE(g.message.metadata,D):D;t!=null&&await J3({value:V,schema:t}),g.message.metadata=V}}switch(f.type){case"text-start":{const D={type:"text",text:"",providerMetadata:f.providerMetadata,state:"streaming"};g.activeTextParts[f.id]=D,g.message.parts.push(D),x();break}case"text-delta":{const D=g.activeTextParts[f.id];D.text+=f.delta,D.providerMetadata=(y=f.providerMetadata)!=null?y:D.providerMetadata,x();break}case"text-end":{const D=g.activeTextParts[f.id];D.state="done",D.providerMetadata=(k=f.providerMetadata)!=null?k:D.providerMetadata,delete g.activeTextParts[f.id],x();break}case"reasoning-start":{const D={type:"reasoning",text:"",providerMetadata:f.providerMetadata,state:"streaming"};g.activeReasoningParts[f.id]=D,g.message.parts.push(D),x();break}case"reasoning-delta":{const D=g.activeReasoningParts[f.id];D.text+=f.delta,D.providerMetadata=(b=f.providerMetadata)!=null?b:D.providerMetadata,x();break}case"reasoning-end":{const D=g.activeReasoningParts[f.id];D.providerMetadata=(_=f.providerMetadata)!=null?_:D.providerMetadata,D.state="done",delete g.activeReasoningParts[f.id],x();break}case"file":{g.message.parts.push({type:"file",mediaType:f.mediaType,url:f.url}),x();break}case"source-url":{g.message.parts.push({type:"source-url",sourceId:f.sourceId,url:f.url,title:f.title,providerMetadata:f.providerMetadata}),x();break}case"source-document":{g.message.parts.push({type:"source-document",sourceId:f.sourceId,mediaType:f.mediaType,title:f.title,filename:f.filename,providerMetadata:f.providerMetadata}),x();break}case"tool-input-start":{const D=g.message.parts.filter(xd);g.partialToolCalls[f.toolCallId]={text:"",toolName:f.toolName,index:D.length,dynamic:f.dynamic},f.dynamic?P({toolCallId:f.toolCallId,toolName:f.toolName,state:"input-streaming",input:void 0,providerExecuted:f.providerExecuted}):L({toolCallId:f.toolCallId,toolName:f.toolName,state:"input-streaming",input:void 0,providerExecuted:f.providerExecuted}),x();break}case"tool-input-delta":{const D=g.partialToolCalls[f.toolCallId];D.text+=f.inputTextDelta;const{value:V}=await hE(D.text);D.dynamic?P({toolCallId:f.toolCallId,toolName:D.toolName,state:"input-streaming",input:V}):L({toolCallId:f.toolCallId,toolName:D.toolName,state:"input-streaming",input:V}),x();break}case"tool-input-available":{f.dynamic?P({toolCallId:f.toolCallId,toolName:f.toolName,state:"input-available",input:f.input,providerExecuted:f.providerExecuted,providerMetadata:f.providerMetadata}):L({toolCallId:f.toolCallId,toolName:f.toolName,state:"input-available",input:f.input,providerExecuted:f.providerExecuted,providerMetadata:f.providerMetadata}),x(),l&&!f.providerExecuted&&await l({toolCall:f});break}case"tool-input-error":{f.dynamic?P({toolCallId:f.toolCallId,toolName:f.toolName,state:"output-error",input:f.input,errorText:f.errorText,providerExecuted:f.providerExecuted,providerMetadata:f.providerMetadata}):L({toolCallId:f.toolCallId,toolName:f.toolName,state:"output-error",input:void 0,rawInput:f.input,errorText:f.errorText,providerExecuted:f.providerExecuted,providerMetadata:f.providerMetadata}),x();break}case"tool-output-available":{if(f.dynamic){const D=M(f.toolCallId);P({toolCallId:f.toolCallId,toolName:D.toolName,state:"output-available",input:D.input,output:f.output,preliminary:f.preliminary})}else{const D=R(f.toolCallId);L({toolCallId:f.toolCallId,toolName:Zh(D),state:"output-available",input:D.input,output:f.output,providerExecuted:f.providerExecuted,preliminary:f.preliminary})}x();break}case"tool-output-error":{if(f.dynamic){const D=M(f.toolCallId);P({toolCallId:f.toolCallId,toolName:D.toolName,state:"output-error",input:D.input,errorText:f.errorText,providerExecuted:f.providerExecuted})}else{const D=R(f.toolCallId);L({toolCallId:f.toolCallId,toolName:Zh(D),state:"output-error",input:D.input,rawInput:D.rawInput,errorText:f.errorText,providerExecuted:f.providerExecuted})}x();break}case"start-step":{g.message.parts.push({type:"step-start"});break}case"finish-step":{g.activeTextParts={},g.activeReasoningParts={};break}case"start":{f.messageId!=null&&(g.message.id=f.messageId),await F(f.messageMetadata),(f.messageId!=null||f.messageMetadata!=null)&&x();break}case"finish":{f.finishReason!=null&&(g.finishReason=f.finishReason),await F(f.messageMetadata),f.messageMetadata!=null&&x();break}case"message-metadata":{await F(f.messageMetadata),f.messageMetadata!=null&&x();break}case"error":{i==null||i(new Error(f.errorText));break}default:if(jZ(f)){(n==null?void 0:n[f.type])!=null&&await J3({value:f.data,schema:n[f.type]});const D=f;if(D.transient){u==null||u(D);break}const V=D.id!=null?g.message.parts.find(H=>D.type===H.type&&D.id===H.id):void 0;V!=null?V.data=D.data:g.message.parts.push(D),u==null||u(D),x()}}h.enqueue(f)})}}))}function yE({messageId:e,originalMessages:t=[],onFinish:n,onError:a,stream:i}){let l=t==null?void 0:t[t.length-1];(l==null?void 0:l.role)!=="assistant"?l=void 0:e=l.id;let u=!1;const f=i.pipeThrough(new TransformStream({transform(k,b){if(k.type==="start"){const _=k;_.messageId==null&&e!=null&&(_.messageId=e)}k.type==="abort"&&(u=!0),b.enqueue(k)}}));if(n==null)return f;const h=gE({lastMessage:l?structuredClone(l):void 0,messageId:e!=null?e:""}),g=async k=>{await k({state:h,write:()=>{}})};let x=!1;const y=async()=>{if(x||!n)return;x=!0;const k=h.message.id===(l==null?void 0:l.id);await n({isAborted:u,isContinuation:k,responseMessage:h.message,messages:[...k?t.slice(0,-1):t,h.message],finishReason:h.finishReason})};return vE({stream:f,runUpdateMessageJob:g,onError:a}).pipeThrough(new TransformStream({transform(k,b){b.enqueue(k)},async cancel(){await y()},async flush(){await y()}}))}function zZ({response:e,status:t,statusText:n,headers:a,stream:i,consumeSseStream:l}){let u=i.pipeThrough(new cE);if(l){const[f,h]=u.tee();u=f,l({stream:h})}uE({response:e,status:t,statusText:n,headers:Object.fromEntries(u0(a,dE).entries()),stream:u.pipeThrough(new TextEncoderStream)})}function d0(e){const t=e.pipeThrough(new TransformStream);return t[Symbol.asyncIterator]=function(){const n=this.getReader();let a=!1;async function i(l){var u;a=!0;try{l&&await((u=n.cancel)==null?void 0:u.call(n))}finally{try{n.releaseLock()}catch(f){}}}return{async next(){if(a)return{done:!0,value:void 0};const{done:l,value:u}=await n.read();return l?(await i(!0),{done:!0,value:void 0}):{done:!1,value:u}},async return(){return await i(!0),{done:!0,value:void 0}},async throw(l){throw await i(!0),l}}},t}async function xE({stream:e,onError:t}){const n=e.getReader();try{for(;;){const{done:a}=await n.read();if(a)break}}catch(a){t==null||t(a)}finally{n.releaseLock()}}function wE(){let e,t;return{promise:new Promise((a,i)=>{e=a,t=i}),resolve:e,reject:t}}function UZ(){let e=[],t=null,n=!1,a=wE();const i=()=>{n=!0,a.resolve(),e.forEach(u=>u.cancel()),e=[],t==null||t.close()},l=async()=>{if(n&&e.length===0){t==null||t.close();return}if(e.length===0)return a=wE(),await a.promise,l();try{const{value:u,done:f}=await e[0].read();f?(e.shift(),e.length>0?await l():n&&(t==null||t.close())):t==null||t.enqueue(u)}catch(u){t==null||t.error(u),e.shift(),i()}};return{stream:new ReadableStream({start(u){t=u},pull:l,async cancel(){for(const u of e)await u.cancel();e=[],n=!0}}),addStream:u=>{if(n)throw new Error("Cannot add inner stream: outer stream is closed");e.push(u.getReader()),a.resolve()},close:()=>{n=!0,a.resolve(),e.length===0&&(t==null||t.close())},terminate:i}}function BZ(){var e,t;return(t=(e=globalThis==null?void 0:globalThis.performance)==null?void 0:e.now())!=null?t:Date.now()}function HZ({tools:e,generatorStream:t,tracer:n,telemetry:a,system:i,messages:l,abortSignal:u,repairToolCall:f,experimental_context:h}){let g=null;const x=new ReadableStream({start(L){g=L}}),y=new Set,k=new Map;let b=!1,_;function R(){b&&y.size===0&&(_!=null&&g.enqueue(_),g.close())}const M=new TransformStream({async transform(L,P){const F=L.type;switch(F){case"stream-start":case"text-start":case"text-delta":case"text-end":case"reasoning-start":case"reasoning-delta":case"reasoning-end":case"tool-input-start":case"tool-input-delta":case"tool-input-end":case"source":case"response-metadata":case"error":case"raw":{P.enqueue(L);break}case"file":{P.enqueue({type:"file",file:new _Z({data:L.data,mediaType:L.mediaType})});break}case"finish":{_={type:"finish",finishReason:L.finishReason,usage:L.usage,providerMetadata:L.providerMetadata};break}case"tool-call":{try{const D=await nE({toolCall:L,tools:e,repairToolCall:f,system:i,messages:l});if(P.enqueue(D),D.invalid){g.enqueue({type:"tool-error",toolCallId:D.toolCallId,toolName:D.toolName,input:D.input,error:Kv(D.error),dynamic:!0});break}const V=e[D.toolName];if(k.set(D.toolCallId,D.input),V.onInputAvailable!=null&&await V.onInputAvailable({input:D.input,toolCallId:D.toolCallId,messages:l,abortSignal:u,experimental_context:h}),V.execute!=null&&D.providerExecuted!==!0){const H=cd();y.add(H),dp({name:"ai.toolCall",attributes:ji({telemetry:a,attributes:{...cp({operationId:"ai.toolCall",telemetry:a}),"ai.toolCall.name":D.toolName,"ai.toolCall.id":D.toolCallId,"ai.toolCall.args":{output:()=>JSON.stringify(D.input)}}}),tracer:n,fn:async Z=>{let q;try{const ae=cS({execute:V.execute.bind(V),input:D.input,options:{toolCallId:D.toolCallId,messages:l,abortSignal:u,experimental_context:h}});for await(const _e of ae)g.enqueue({...D,type:"tool-result",output:_e.output,..._e.type==="preliminary"&&{preliminary:!0}}),_e.type==="final"&&(q=_e.output)}catch(ae){S9(Z,ae),g.enqueue({...D,type:"tool-error",error:ae}),y.delete(H),R();return}y.delete(H),R();try{Z.setAttributes(ji({telemetry:a,attributes:{"ai.toolCall.result":{output:()=>JSON.stringify(q)}}}))}catch(ae){}}})}}catch(D){g.enqueue({type:"error",error:D})}break}case"tool-result":{const D=L.toolName;L.isError?g.enqueue({type:"tool-error",toolCallId:L.toolCallId,toolName:D,input:k.get(L.toolCallId),providerExecuted:L.providerExecuted,error:L.result}):P.enqueue({type:"tool-result",toolCallId:L.toolCallId,toolName:D,input:k.get(L.toolCallId),output:L.result,providerExecuted:L.providerExecuted});break}default:{const D=F;throw new Error(`Unhandled chunk type: ${D}`)}}},flush(){b=!0,R()}});return new ReadableStream({async start(L){return Promise.all([t.pipeThrough(M).pipeTo(new WritableStream({write(P){L.enqueue(P)},close(){}})),x.pipeTo(new WritableStream({write(P){L.enqueue(P)},close(){L.close()}}))])}})}var VZ=Ih({prefix:"aitxt",size:24});function $Z({model:e,tools:t,toolChoice:n,system:a,prompt:i,messages:l,maxRetries:u,abortSignal:f,headers:h,stopWhen:g=oE(1),experimental_output:x,experimental_telemetry:y,prepareStep:k,providerOptions:b,experimental_activeTools:_,activeTools:R=_,experimental_repairToolCall:M,experimental_transform:L,experimental_download:P,includeRawChunks:F=!1,onChunk:D,onError:V=({error:Ne})=>{console.error(Ne)},onFinish:H,onAbort:Z,onStepFinish:q,experimental_context:ae,_internal:{now:_e=BZ,generateId:ge=VZ,currentDate:he=()=>new Date}={},...we}){return new WZ({model:i0(e),telemetry:y,headers:h,settings:we,maxRetries:u,abortSignal:f,system:a,prompt:i,messages:l,tools:t,toolChoice:n,transforms:k9(L),activeTools:R,repairToolCall:M,stopConditions:k9(g),output:x,providerOptions:b,prepareStep:k,includeRawChunks:F,onChunk:D,onError:V,onFinish:H,onAbort:Z,onStepFinish:q,now:_e,currentDate:he,generateId:ge,experimental_context:ae,download:P})}function ZZ(e){if(!e)return new TransformStream({transform(u,f){f.enqueue({part:u,partialOutput:void 0})}});let t,n="",a="",i="";function l({controller:u,partialOutput:f=void 0}){u.enqueue({part:{type:"text-delta",id:t,text:a},partialOutput:f}),a=""}return new TransformStream({async transform(u,f){if(u.type==="finish-step"&&a.length>0&&l({controller:f}),u.type!=="text-delta"&&u.type!=="text-start"&&u.type!=="text-end"){f.enqueue({part:u,partialOutput:void 0});return}if(t==null)t=u.id;else if(u.id!==t){f.enqueue({part:u,partialOutput:void 0});return}if(u.type==="text-start"){f.enqueue({part:u,partialOutput:void 0});return}if(u.type==="text-end"){a.length>0&&l({controller:f}),f.enqueue({part:u,partialOutput:void 0});return}n+=u.text,a+=u.text;const h=await e.parsePartial({text:n});if(h!=null){const g=JSON.stringify(h.partial);g!==i&&(l({controller:f,partialOutput:h.partial}),i=g)}}})}var WZ=class{constructor({model:e,telemetry:t,headers:n,settings:a,maxRetries:i,abortSignal:l,system:u,prompt:f,messages:h,tools:g,toolChoice:x,transforms:y,activeTools:k,repairToolCall:b,stopConditions:_,output:R,providerOptions:M,prepareStep:L,includeRawChunks:P,now:F,currentDate:D,generateId:V,onChunk:H,onError:Z,onFinish:q,onAbort:ae,onStepFinish:_e,experimental_context:ge,download:he}){this._totalUsage=new Xv,this._finishReason=new Xv,this._steps=new Xv,this.output=R,this.includeRawChunks=P,this.tools=g;let we,Ne=[];const xe=[];let Te,ve,K={},ye=[];const U=[];let X,ie={},$={};const Ue=new TransformStream({async transform(ct,yt){var Pt,St,jn,Hn;yt.enqueue(ct);const{part:Be}=ct;if((Be.type==="text-delta"||Be.type==="reasoning-delta"||Be.type==="source"||Be.type==="tool-call"||Be.type==="tool-result"||Be.type==="tool-input-start"||Be.type==="tool-input-delta"||Be.type==="raw")&&await(H==null?void 0:H({chunk:Be})),Be.type==="error"&&await Z({error:qk(Be.error)}),Be.type==="text-start"&&(ie[Be.id]={type:"text",text:"",providerMetadata:Be.providerMetadata},Ne.push(ie[Be.id])),Be.type==="text-delta"){const At=ie[Be.id];if(At==null){yt.enqueue({part:{type:"error",error:`text part ${Be.id} not found`},partialOutput:void 0});return}At.text+=Be.text,At.providerMetadata=(Pt=Be.providerMetadata)!=null?Pt:At.providerMetadata}if(Be.type==="text-end"){const At=ie[Be.id];if(At==null){yt.enqueue({part:{type:"error",error:`text part ${Be.id} not found`},partialOutput:void 0});return}At.providerMetadata=(St=Be.providerMetadata)!=null?St:At.providerMetadata,delete ie[Be.id]}if(Be.type==="reasoning-start"&&($[Be.id]={type:"reasoning",text:"",providerMetadata:Be.providerMetadata},Ne.push($[Be.id])),Be.type==="reasoning-delta"){const At=$[Be.id];if(At==null){yt.enqueue({part:{type:"error",error:`reasoning part ${Be.id} not found`},partialOutput:void 0});return}At.text+=Be.text,At.providerMetadata=(jn=Be.providerMetadata)!=null?jn:At.providerMetadata}if(Be.type==="reasoning-end"){const At=$[Be.id];if(At==null){yt.enqueue({part:{type:"error",error:`reasoning part ${Be.id} not found`},partialOutput:void 0});return}At.providerMetadata=(Hn=Be.providerMetadata)!=null?Hn:At.providerMetadata,delete $[Be.id]}if(Be.type==="file"&&Ne.push({type:"file",file:Be.file}),Be.type==="source"&&Ne.push(Be),Be.type==="tool-call"&&Ne.push(Be),Be.type==="tool-result"&&!Be.preliminary&&Ne.push(Be),Be.type==="tool-error"&&Ne.push(Be),Be.type==="start-step"&&(K=Be.request,ye=Be.warnings),Be.type==="finish-step"){const At=E9({content:Ne,tools:g}),Pn=new aE({content:Ne,finishReason:Be.finishReason,usage:Be.usage,warnings:ye,request:K,response:{...Be.response,messages:[...xe,...At]},providerMetadata:Be.providerMetadata});await(_e==null?void 0:_e(Pn)),ok(ye),U.push(Pn),Ne=[],$={},ie={},xe.push(...At),we.resolve()}Be.type==="finish"&&(ve=Be.totalUsage,Te=Be.finishReason)},async flush(ct){try{if(U.length===0){const jn=new V$({message:"No output generated. Check the stream for errors."});bt._finishReason.reject(jn),bt._totalUsage.reject(jn),bt._steps.reject(jn);return}const yt=Te!=null?Te:"unknown",Pt=ve!=null?ve:{inputTokens:void 0,outputTokens:void 0,totalTokens:void 0};bt._finishReason.resolve(yt),bt._totalUsage.resolve(Pt),bt._steps.resolve(U);const St=U[U.length-1];await(q==null?void 0:q({finishReason:yt,totalUsage:Pt,usage:St.usage,content:St.content,text:St.text,reasoningText:St.reasoningText,reasoning:St.reasoning,files:St.files,sources:St.sources,toolCalls:St.toolCalls,staticToolCalls:St.staticToolCalls,dynamicToolCalls:St.dynamicToolCalls,toolResults:St.toolResults,staticToolResults:St.staticToolResults,dynamicToolResults:St.dynamicToolResults,request:St.request,response:St.response,warnings:St.warnings,providerMetadata:St.providerMetadata,steps:U})),X.setAttributes(ji({telemetry:t,attributes:{"ai.response.finishReason":yt,"ai.response.text":{output:()=>St.text},"ai.response.toolCalls":{output:()=>{var jn;return(jn=St.toolCalls)!=null&&jn.length?JSON.stringify(St.toolCalls):void 0}},"ai.response.providerMetadata":JSON.stringify(St.providerMetadata),"ai.usage.inputTokens":Pt.inputTokens,"ai.usage.outputTokens":Pt.outputTokens,"ai.usage.totalTokens":Pt.totalTokens,"ai.usage.reasoningTokens":Pt.reasoningTokens,"ai.usage.cachedInputTokens":Pt.cachedInputTokens}}))}catch(yt){ct.error(yt)}finally{X.end()}}}),Ke=UZ();this.addStream=Ke.addStream,this.closeStream=Ke.close;const De=Ke.stream.getReader();let Ee=new ReadableStream({async start(ct){ct.enqueue({type:"start"})},async pull(ct){function yt(){ae==null||ae({steps:U}),ct.enqueue({type:"abort"}),ct.close()}try{const{done:Pt,value:St}=await De.read();if(Pt){ct.close();return}if(l!=null&&l.aborted){yt();return}ct.enqueue(St)}catch(Pt){dd(Pt)&&(l!=null&&l.aborted)?yt():ct.error(Pt)}},cancel(ct){return Ke.stream.cancel(ct)}});for(const ct of y)Ee=Ee.pipeThrough(ct({tools:g,stopStream(){Ke.terminate()}}));this.baseStream=Ee.pipeThrough(ZZ(R)).pipeThrough(Ue);const{maxRetries:Ze,retry:Qe}=Qk({maxRetries:i,abortSignal:l}),qe=Yk(t),tt=C9(a),Et=Gk({model:e,telemetry:t,headers:n,settings:{...tt,maxRetries:Ze}}),bt=this;dp({name:"ai.streamText",attributes:ji({telemetry:t,attributes:{...cp({operationId:"ai.streamText",telemetry:t}),...Et,"ai.prompt":{input:()=>JSON.stringify({system:u,prompt:f,messages:h})}}}),tracer:qe,endWhenDone:!1,fn:async ct=>{X=ct;async function yt({currentStep:Pt,responseMessages:St,usage:jn}){var Hn,Be,At,Pn,Wt;const hr=bt.includeRawChunks;we=new Xv;const $n=await Wk({system:u,prompt:f,messages:h}),me=[...$n.messages,...St],Me=await(L==null?void 0:L({model:e,steps:U,stepNumber:U.length,messages:me})),dt=i0((Hn=Me==null?void 0:Me.model)!=null?Hn:e),It=await Bk({prompt:{system:(Be=Me==null?void 0:Me.system)!=null?Be:$n.system,messages:(At=Me==null?void 0:Me.messages)!=null?At:me},supportedUrls:await dt.supportedUrls,download:he}),{toolChoice:Ae,tools:Ye}=Hk({tools:g,toolChoice:(Pn=Me==null?void 0:Me.toolChoice)!=null?Pn:x,activeTools:(Wt=Me==null?void 0:Me.activeTools)!=null?Wt:k}),{result:{stream:Nt,response:xt,request:Kt},doStreamSpan:ln,startTimestampMs:Qt}=await Qe(()=>dp({name:"ai.streamText.doStream",attributes:ji({telemetry:t,attributes:{...cp({operationId:"ai.streamText.doStream",telemetry:t}),...Et,"ai.model.provider":dt.provider,"ai.model.id":dt.modelId,"ai.prompt.messages":{input:()=>Jk(It)},"ai.prompt.tools":{input:()=>Ye==null?void 0:Ye.map(_t=>JSON.stringify(_t))},"ai.prompt.toolChoice":{input:()=>Ae!=null?JSON.stringify(Ae):void 0},"gen_ai.system":dt.provider,"gen_ai.request.model":dt.modelId,"gen_ai.request.frequency_penalty":tt.frequencyPenalty,"gen_ai.request.max_tokens":tt.maxOutputTokens,"gen_ai.request.presence_penalty":tt.presencePenalty,"gen_ai.request.stop_sequences":tt.stopSequences,"gen_ai.request.temperature":tt.temperature,"gen_ai.request.top_k":tt.topK,"gen_ai.request.top_p":tt.topP}}),tracer:qe,endWhenDone:!1,fn:async _t=>({startTimestampMs:F(),doStreamSpan:_t,result:await dt.doStream({...tt,tools:Ye,toolChoice:Ae,responseFormat:R==null?void 0:R.responseFormat,prompt:It,providerOptions:M,abortSignal:l,headers:n,includeRawChunks:hr})})})),Qn=HZ({tools:g,generatorStream:Nt,tracer:qe,telemetry:t,system:u,messages:me,repairToolCall:b,abortSignal:l,experimental_context:ge}),dn=Kt!=null?Kt:{},En=[],Rn=[];let fa;const Fr={};let Jr="unknown",Rr={inputTokens:void 0,outputTokens:void 0,totalTokens:void 0},vi,Bi=!0,Xr={id:V(),timestamp:D(),modelId:e.modelId},yi="";bt.addStream(Qn.pipeThrough(new TransformStream({async transform(_t,_n){var Ar,yr,Ia,Nr;if(_t.type==="stream-start"){fa=_t.warnings;return}if(Bi){const tr=F()-Qt;Bi=!1,ln.addEvent("ai.stream.firstChunk",{"ai.response.msToFirstChunk":tr}),ln.setAttributes({"ai.response.msToFirstChunk":tr}),_n.enqueue({type:"start-step",request:dn,warnings:fa!=null?fa:[]})}const So=_t.type;switch(So){case"text-start":case"text-end":{_n.enqueue(_t);break}case"text-delta":{_t.delta.length>0&&(_n.enqueue({type:"text-delta",id:_t.id,text:_t.delta,providerMetadata:_t.providerMetadata}),yi+=_t.delta);break}case"reasoning-start":case"reasoning-end":{_n.enqueue(_t);break}case"reasoning-delta":{_n.enqueue({type:"reasoning-delta",id:_t.id,text:_t.delta,providerMetadata:_t.providerMetadata});break}case"tool-call":{_n.enqueue(_t),En.push(_t);break}case"tool-result":{_n.enqueue(_t),_t.preliminary||Rn.push(_t);break}case"tool-error":{_n.enqueue(_t),Rn.push(_t);break}case"response-metadata":{Xr={id:(Ar=_t.id)!=null?Ar:Xr.id,timestamp:(yr=_t.timestamp)!=null?yr:Xr.timestamp,modelId:(Ia=_t.modelId)!=null?Ia:Xr.modelId};break}case"finish":{Rr=_t.usage,Jr=_t.finishReason,vi=_t.providerMetadata;const tr=F()-Qt;ln.addEvent("ai.stream.finish"),ln.setAttributes({"ai.response.msToFinish":tr,"ai.response.avgOutputTokensPerSecond":1e3*((Nr=Rr.outputTokens)!=null?Nr:0)/tr});break}case"file":{_n.enqueue(_t);break}case"source":{_n.enqueue(_t);break}case"tool-input-start":{Fr[_t.id]=_t.toolName;const tr=g==null?void 0:g[_t.toolName];(tr==null?void 0:tr.onInputStart)!=null&&await tr.onInputStart({toolCallId:_t.id,messages:me,abortSignal:l,experimental_context:ge}),_n.enqueue({..._t,dynamic:(tr==null?void 0:tr.type)==="dynamic"});break}case"tool-input-end":{delete Fr[_t.id],_n.enqueue(_t);break}case"tool-input-delta":{const tr=Fr[_t.id],J=g==null?void 0:g[tr];(J==null?void 0:J.onInputDelta)!=null&&await J.onInputDelta({inputTextDelta:_t.delta,toolCallId:_t.id,messages:me,abortSignal:l,experimental_context:ge}),_n.enqueue(_t);break}case"error":{_n.enqueue(_t),Jr="error";break}case"raw":{hr&&_n.enqueue(_t);break}default:{const tr=So;throw new Error(`Unknown chunk type: ${tr}`)}}},async flush(_t){const _n=En.length>0?JSON.stringify(En):void 0;try{ln.setAttributes(ji({telemetry:t,attributes:{"ai.response.finishReason":Jr,"ai.response.text":{output:()=>yi},"ai.response.toolCalls":{output:()=>_n},"ai.response.id":Xr.id,"ai.response.model":Xr.modelId,"ai.response.timestamp":Xr.timestamp.toISOString(),"ai.response.providerMetadata":JSON.stringify(vi),"ai.usage.inputTokens":Rr.inputTokens,"ai.usage.outputTokens":Rr.outputTokens,"ai.usage.totalTokens":Rr.totalTokens,"ai.usage.reasoningTokens":Rr.reasoningTokens,"ai.usage.cachedInputTokens":Rr.cachedInputTokens,"gen_ai.response.finish_reasons":[Jr],"gen_ai.response.id":Xr.id,"gen_ai.response.model":Xr.modelId,"gen_ai.usage.input_tokens":Rr.inputTokens,"gen_ai.usage.output_tokens":Rr.outputTokens}}))}catch(Nr){}finally{ln.end()}_t.enqueue({type:"finish-step",finishReason:Jr,usage:Rr,providerMetadata:vi,response:{...Xr,headers:xt==null?void 0:xt.headers}});const Ar=Xk(jn,Rr);await we.promise;const yr=En.filter(Nr=>Nr.providerExecuted!==!0),Ia=Rn.filter(Nr=>Nr.providerExecuted!==!0);if(yr.length>0&&Ia.length===yr.length&&!await iE({stopConditions:_,steps:U})){St.push(...E9({content:U[U.length-1].content,tools:g}));try{await yt({currentStep:Pt+1,responseMessages:St,usage:Ar})}catch(Nr){_t.enqueue({type:"error",error:Nr}),bt.closeStream()}}else _t.enqueue({type:"finish",finishReason:Jr,totalUsage:Ar}),bt.closeStream()}})))}await yt({currentStep:0,responseMessages:[],usage:{inputTokens:void 0,outputTokens:void 0,totalTokens:void 0}})}}).catch(ct=>{bt.addStream(new ReadableStream({start(yt){yt.enqueue({type:"error",error:ct}),yt.close()}})),bt.closeStream()})}get steps(){return this.consumeStream(),this._steps.promise}get finalStep(){return this.steps.then(e=>e[e.length-1])}get content(){return this.finalStep.then(e=>e.content)}get warnings(){return this.finalStep.then(e=>e.warnings)}get providerMetadata(){return this.finalStep.then(e=>e.providerMetadata)}get text(){return this.finalStep.then(e=>e.text)}get reasoningText(){return this.finalStep.then(e=>e.reasoningText)}get reasoning(){return this.finalStep.then(e=>e.reasoning)}get sources(){return this.finalStep.then(e=>e.sources)}get files(){return this.finalStep.then(e=>e.files)}get toolCalls(){return this.finalStep.then(e=>e.toolCalls)}get staticToolCalls(){return this.finalStep.then(e=>e.staticToolCalls)}get dynamicToolCalls(){return this.finalStep.then(e=>e.dynamicToolCalls)}get toolResults(){return this.finalStep.then(e=>e.toolResults)}get staticToolResults(){return this.finalStep.then(e=>e.staticToolResults)}get dynamicToolResults(){return this.finalStep.then(e=>e.dynamicToolResults)}get usage(){return this.finalStep.then(e=>e.usage)}get request(){return this.finalStep.then(e=>e.request)}get response(){return this.finalStep.then(e=>e.response)}get totalUsage(){return this.consumeStream(),this._totalUsage.promise}get finishReason(){return this.consumeStream(),this._finishReason.promise}teeStream(){const[e,t]=this.baseStream.tee();return this.baseStream=t,e}get textStream(){return d0(this.teeStream().pipeThrough(new TransformStream({transform({part:e},t){e.type==="text-delta"&&t.enqueue(e.text)}})))}get fullStream(){return d0(this.teeStream().pipeThrough(new TransformStream({transform({part:e},t){t.enqueue(e)}})))}async consumeStream(e){var t;try{await xE({stream:this.fullStream,onError:e==null?void 0:e.onError})}catch(n){(t=e==null?void 0:e.onError)==null||t.call(e,n)}}get experimental_partialOutputStream(){if(this.output==null)throw new rk;return d0(this.teeStream().pipeThrough(new TransformStream({transform({partialOutput:e},t){e!=null&&t.enqueue(e)}})))}toUIMessageStream({originalMessages:e,generateMessageId:t,onFinish:n,messageMetadata:a,sendReasoning:i=!0,sendSources:l=!1,sendStart:u=!0,sendFinish:f=!0,onError:h=Xf}={}){const g=t!=null?IZ({originalMessages:e,responseMessageId:t}):void 0,x={},y=b=>{var _,R;const M=x[b];return((R=(_=this.tools)==null?void 0:_[M])==null?void 0:R.type)==="dynamic"?!0:void 0},k=this.fullStream.pipeThrough(new TransformStream({transform:async(b,_)=>{const R=a==null?void 0:a({part:b}),M=b.type;switch(M){case"text-start":{_.enqueue({type:"text-start",id:b.id,...b.providerMetadata!=null?{providerMetadata:b.providerMetadata}:{}});break}case"text-delta":{_.enqueue({type:"text-delta",id:b.id,delta:b.text,...b.providerMetadata!=null?{providerMetadata:b.providerMetadata}:{}});break}case"text-end":{_.enqueue({type:"text-end",id:b.id,...b.providerMetadata!=null?{providerMetadata:b.providerMetadata}:{}});break}case"reasoning-start":{_.enqueue({type:"reasoning-start",id:b.id,...b.providerMetadata!=null?{providerMetadata:b.providerMetadata}:{}});break}case"reasoning-delta":{i&&_.enqueue({type:"reasoning-delta",id:b.id,delta:b.text,...b.providerMetadata!=null?{providerMetadata:b.providerMetadata}:{}});break}case"reasoning-end":{_.enqueue({type:"reasoning-end",id:b.id,...b.providerMetadata!=null?{providerMetadata:b.providerMetadata}:{}});break}case"file":{_.enqueue({type:"file",mediaType:b.file.mediaType,url:`data:${b.file.mediaType};base64,${b.file.base64}`});break}case"source":{l&&b.sourceType==="url"&&_.enqueue({type:"source-url",sourceId:b.id,url:b.url,title:b.title,...b.providerMetadata!=null?{providerMetadata:b.providerMetadata}:{}}),l&&b.sourceType==="document"&&_.enqueue({type:"source-document",sourceId:b.id,mediaType:b.mediaType,title:b.title,filename:b.filename,...b.providerMetadata!=null?{providerMetadata:b.providerMetadata}:{}});break}case"tool-input-start":{x[b.id]=b.toolName;const L=y(b.id);_.enqueue({type:"tool-input-start",toolCallId:b.id,toolName:b.toolName,...b.providerExecuted!=null?{providerExecuted:b.providerExecuted}:{},...L!=null?{dynamic:L}:{}});break}case"tool-input-delta":{_.enqueue({type:"tool-input-delta",toolCallId:b.id,inputTextDelta:b.delta});break}case"tool-call":{x[b.toolCallId]=b.toolName;const L=y(b.toolCallId);b.invalid?_.enqueue({type:"tool-input-error",toolCallId:b.toolCallId,toolName:b.toolName,input:b.input,...b.providerExecuted!=null?{providerExecuted:b.providerExecuted}:{},...b.providerMetadata!=null?{providerMetadata:b.providerMetadata}:{},...L!=null?{dynamic:L}:{},errorText:h(b.error)}):_.enqueue({type:"tool-input-available",toolCallId:b.toolCallId,toolName:b.toolName,input:b.input,...b.providerExecuted!=null?{providerExecuted:b.providerExecuted}:{},...b.providerMetadata!=null?{providerMetadata:b.providerMetadata}:{},...L!=null?{dynamic:L}:{}});break}case"tool-result":{const L=y(b.toolCallId);_.enqueue({type:"tool-output-available",toolCallId:b.toolCallId,output:b.output,...b.providerExecuted!=null?{providerExecuted:b.providerExecuted}:{},...b.preliminary!=null?{preliminary:b.preliminary}:{},...L!=null?{dynamic:L}:{}});break}case"tool-error":{const L=y(b.toolCallId);_.enqueue({type:"tool-output-error",toolCallId:b.toolCallId,errorText:h(b.error),...b.providerExecuted!=null?{providerExecuted:b.providerExecuted}:{},...L!=null?{dynamic:L}:{}});break}case"error":{_.enqueue({type:"error",errorText:h(b.error)});break}case"start-step":{_.enqueue({type:"start-step"});break}case"finish-step":{_.enqueue({type:"finish-step"});break}case"start":{u&&_.enqueue({type:"start",...R!=null?{messageMetadata:R}:{},...g!=null?{messageId:g}:{}});break}case"finish":{f&&_.enqueue({type:"finish",finishReason:b.finishReason,...R!=null?{messageMetadata:R}:{}});break}case"abort":{_.enqueue(b);break}case"tool-input-end":break;case"raw":break;default:{const L=M;throw new Error(`Unknown chunk type: ${L}`)}}R!=null&&M!=="start"&&M!=="finish"&&_.enqueue({type:"message-metadata",messageMetadata:R})}}));return d0(yE({stream:k,messageId:g!=null?g:t==null?void 0:t(),originalMessages:e,onFinish:n,onError:h}))}pipeUIMessageStreamToResponse(e,{originalMessages:t,generateMessageId:n,onFinish:a,messageMetadata:i,sendReasoning:l,sendSources:u,sendFinish:f,sendStart:h,onError:g,...x}={}){zZ({response:e,stream:this.toUIMessageStream({originalMessages:t,generateMessageId:n,onFinish:a,messageMetadata:i,sendReasoning:l,sendSources:u,sendFinish:f,sendStart:h,onError:g}),...x})}pipeTextStreamToResponse(e,t){LZ({response:e,textStream:this.textStream,...t})}toUIMessageStreamResponse({originalMessages:e,generateMessageId:t,onFinish:n,messageMetadata:a,sendReasoning:i,sendSources:l,sendFinish:u,sendStart:f,onError:h,...g}={}){return fE({stream:this.toUIMessageStream({originalMessages:e,generateMessageId:t,onFinish:n,messageMetadata:a,sendReasoning:i,sendSources:l,sendFinish:u,sendStart:f,onError:h}),...g})}toTextStreamResponse(e){return OZ({textStream:this.textStream,...e})}};function bE(e,t){const n=[];t!=null&&t.ignoreIncompleteToolCalls&&(e=e.map(a=>({...a,parts:a.parts.filter(i=>!c0(i)||i.state!=="input-streaming"&&i.state!=="input-available")})));for(const a of e)switch(a.role){case"system":{const i=a.parts.filter(u=>u.type==="text"),l=i.reduce((u,f)=>f.providerMetadata!=null?{...u,...f.providerMetadata}:u,{});n.push({role:"system",content:i.map(u=>u.text).join(""),...Object.keys(l).length>0?{providerOptions:l}:{}});break}case"user":{n.push({role:"user",content:a.parts.map(i=>{var l;if(T9(i))return{type:"text",text:i.text,...i.providerMetadata!=null?{providerOptions:i.providerMetadata}:{}};if(R9(i))return{type:"file",mediaType:i.mediaType,filename:i.filename,data:i.url,...i.providerMetadata!=null?{providerOptions:i.providerMetadata}:{}};if(_9(i))return(l=t==null?void 0:t.convertDataPart)==null?void 0:l.call(t,i)}).filter(i=>i!=null)});break}case"assistant":{if(a.parts!=null){let i=function(){var u,f,h;if(l.length===0)return;const g=[];for(const y of l)if(T9(y))g.push({type:"text",text:y.text,...y.providerMetadata!=null?{providerOptions:y.providerMetadata}:{}});else if(R9(y))g.push({type:"file",mediaType:y.mediaType,filename:y.filename,data:y.url});else if(mE(y))g.push({type:"reasoning",text:y.text,providerOptions:y.providerMetadata});else if(A9(y)){const k=y.toolName;y.state!=="input-streaming"&&g.push({type:"tool-call",toolCallId:y.toolCallId,toolName:k,input:y.input,...y.callProviderMetadata!=null?{providerOptions:y.callProviderMetadata}:{}})}else if(xd(y)){const k=Zh(y);y.state!=="input-streaming"&&(g.push({type:"tool-call",toolCallId:y.toolCallId,toolName:k,input:y.state==="output-error"?(u=y.input)!=null?u:y.rawInput:y.input,providerExecuted:y.providerExecuted,...y.callProviderMetadata!=null?{providerOptions:y.callProviderMetadata}:{}}),y.providerExecuted===!0&&(y.state==="output-available"||y.state==="output-error")&&g.push({type:"tool-result",toolCallId:y.toolCallId,toolName:k,output:$h({output:y.state==="output-error"?y.errorText:y.output,tool:(f=t==null?void 0:t.tools)==null?void 0:f[k],errorMode:y.state==="output-error"?"json":"none"}),...y.callProviderMetadata!=null?{providerOptions:y.callProviderMetadata}:{}}))}else if(_9(y)){const k=(h=t==null?void 0:t.convertDataPart)==null?void 0:h.call(t,y);k!=null&&g.push(k)}else{const k=y;throw new Error(`Unsupported part: ${k}`)}n.push({role:"assistant",content:g});const x=l.filter(y=>xd(y)&&y.providerExecuted!==!0||y.type==="dynamic-tool");x.length>0&&n.push({role:"tool",content:x.map(y=>{var k;switch(y.state){case"output-error":case"output-available":{const b=FZ(y);return{type:"tool-result",toolCallId:y.toolCallId,toolName:b,output:$h({output:y.state==="output-error"?y.errorText:y.output,tool:(k=t==null?void 0:t.tools)==null?void 0:k[b],errorMode:y.state==="output-error"?"text":"none"}),...y.callProviderMetadata!=null?{providerOptions:y.callProviderMetadata}:{}}}default:return null}}).filter(y=>y!=null)}),l=[]},l=[];for(const u of a.parts)T9(u)||mE(u)||R9(u)||c0(u)||_9(u)?l.push(u):u.type==="step-start"&&i();i();break}break}default:{const i=a.role;throw new X$({originalMessage:a,message:`Unsupported role: ${i}`})}}return n}var qZ=class{constructor(e){this.settings=e}get tools(){return this.settings.tools}async generate(e){return RZ({...this.settings,...e})}stream(e){return $Z({...this.settings,...e})}respond(e){return this.stream({prompt:bE(e.messages)}).toUIMessageStreamResponse()}};Ih({prefix:"aiobj",size:24});var GZ=class{constructor(){this.queue=[],this.isProcessing=!1}async processQueue(){if(!this.isProcessing){for(this.isProcessing=!0;this.queue.length>0;)await this.queue[0](),this.queue.shift();this.isProcessing=!1}}async run(e){return new Promise((t,n)=>{this.queue.push(async()=>{try{await e(),t()}catch(a){n(a)}}),this.processQueue()})}};Ih({prefix:"aiobj",size:24});var YZ={};D$(YZ,{object:()=>XZ,text:()=>JZ});var JZ=()=>({type:"text",responseFormat:{type:"text"},async parsePartial({text:e}){return{partial:e}},async parseOutput({text:e}){return e}}),XZ=({schema:e})=>{const t=n0(e);return{type:"object",responseFormat:{type:"json",schema:t.jsonSchema},async parsePartial({text:n}){const a=await hE(n);switch(a.state){case"failed-parse":case"undefined-input":return;case"repaired-parse":case"successful-parse":return{partial:a.value};default:{const i=a.state;throw new Error(`Unsupported parse state: ${i}`)}}},async parseOutput({text:n},a){const i=await hd({text:n});if(!i.success)throw new gk({message:"No object generated: could not parse the response.",cause:i.error,text:n,response:a.response,usage:a.usage,finishReason:a.finishReason});const l=await Gl({value:i.value,schema:t});if(!l.success)throw new gk({message:"No object generated: response did not match schema.",cause:l.error,text:n,response:a.response,usage:a.usage,finishReason:a.finishReason});return l.value}}};async function KZ(e){if(e==null)return[];if(!globalThis.FileList||!(e instanceof globalThis.FileList))throw new Error("FileList is not supported in the current environment");return Promise.all(Array.from(e).map(async t=>{const{name:n,type:a}=t,i=await new Promise((l,u)=>{const f=new FileReader;f.onload=h=>{var g;l((g=h.target)==null?void 0:g.result)},f.onerror=h=>u(h),f.readAsDataURL(t)});return{type:"file",mediaType:a,filename:n,url:i}}))}var QZ=class{constructor({api:e="/api/chat",credentials:t,headers:n,body:a,fetch:i,prepareSendMessagesRequest:l,prepareReconnectToStreamRequest:u}){this.api=e,this.credentials=t,this.headers=n,this.body=a,this.fetch=i,this.prepareSendMessagesRequest=l,this.prepareReconnectToStreamRequest=u}async sendMessages({abortSignal:e,...t}){var n,a,i,l,u;const f=await Xa(this.body),h=await Xa(this.headers),g=await Xa(this.credentials),x={...fd(h),...fd(t.headers)},y=await((n=this.prepareSendMessagesRequest)==null?void 0:n.call(this,{api:this.api,id:t.chatId,messages:t.messages,body:{...f,...t.body},headers:x,credentials:g,requestMetadata:t.metadata,trigger:t.trigger,messageId:t.messageId})),k=(a=y==null?void 0:y.api)!=null?a:this.api,b=(y==null?void 0:y.headers)!==void 0?fd(y.headers):x,_=(y==null?void 0:y.body)!==void 0?y.body:{...f,...t.body,id:t.chatId,messages:t.messages,trigger:t.trigger,messageId:t.messageId},R=(i=y==null?void 0:y.credentials)!=null?i:g,L=await((l=this.fetch)!=null?l:globalThis.fetch)(k,{method:"POST",headers:Xu({"Content-Type":"application/json",...b},`ai-sdk/${s0}`,Dh()),body:JSON.stringify(_),credentials:R,signal:e});if(!L.ok)throw new Error((u=await L.text())!=null?u:"Failed to fetch the chat response.");if(!L.body)throw new Error("The response body is empty.");return this.processResponseStream(L.body)}async reconnectToStream(e){var t,n,a,i,l;const u=await Xa(this.body),f=await Xa(this.headers),h=await Xa(this.credentials),g={...fd(f),...fd(e.headers)},x=await((t=this.prepareReconnectToStreamRequest)==null?void 0:t.call(this,{api:this.api,id:e.chatId,body:{...u,...e.body},headers:g,credentials:h,requestMetadata:e.metadata})),y=(n=x==null?void 0:x.api)!=null?n:`${this.api}/${e.chatId}/stream`,k=(x==null?void 0:x.headers)!==void 0?fd(x.headers):g,b=(a=x==null?void 0:x.credentials)!=null?a:h,R=await((i=this.fetch)!=null?i:globalThis.fetch)(y,{method:"GET",headers:Xu(k,`ai-sdk/${s0}`,Dh()),credentials:b});if(R.status===204)return null;if(!R.ok)throw new Error((l=await R.text())!=null?l:"Failed to fetch the chat response.");if(!R.body)throw new Error("The response body is empty.");return this.processResponseStream(R.body)}},N9=class extends QZ{constructor(e={}){super(e)}processResponseStream(e){return tS({stream:e,schema:DZ}).pipeThrough(new TransformStream({async transform(t,n){if(!t.success)throw t.error;n.enqueue(t.value)}}))}},eW=class{constructor({generateId:e=cd,id:t=e(),transport:n=new N9,messageMetadataSchema:a,dataPartSchemas:i,state:l,onError:u,onToolCall:f,onFinish:h,onData:g,sendAutomaticallyWhen:x}){this.activeResponse=void 0,this.jobExecutor=new GZ,this.sendMessage=async(y,k)=>{var b,_,R,M;if(y==null){await this.makeRequest({trigger:"submit-message",messageId:(b=this.lastMessage)==null?void 0:b.id,...k});return}let L;if("text"in y||"files"in y?L={parts:[...Array.isArray(y.files)?y.files:await KZ(y.files),..."text"in y&&y.text!=null?[{type:"text",text:y.text}]:[]]}:L=y,y.messageId!=null){const P=this.state.messages.findIndex(F=>F.id===y.messageId);if(P===-1)throw new Error(`message with id ${y.messageId} not found`);if(this.state.messages[P].role!=="user")throw new Error(`message with id ${y.messageId} is not a user message`);this.state.messages=this.state.messages.slice(0,P+1),this.state.replaceMessage(P,{...L,id:y.messageId,role:(_=L.role)!=null?_:"user",metadata:y.metadata})}else this.state.pushMessage({...L,id:(R=L.id)!=null?R:this.generateId(),role:(M=L.role)!=null?M:"user",metadata:y.metadata});await this.makeRequest({trigger:"submit-message",messageId:y.messageId,...k})},this.regenerate=async({messageId:y,...k}={})=>{const b=y==null?this.state.messages.length-1:this.state.messages.findIndex(_=>_.id===y);if(b===-1)throw new Error(`message ${y} not found`);this.state.messages=this.state.messages.slice(0,this.messages[b].role==="assistant"?b:b+1),await this.makeRequest({trigger:"regenerate-message",messageId:y,...k})},this.resumeStream=async(y={})=>{await this.makeRequest({trigger:"resume-stream",...y})},this.clearError=()=>{this.status==="error"&&(this.state.error=void 0,this.setStatus({status:"ready"}))},this.addToolOutput=async({state:y="output-available",tool:k,toolCallId:b,output:_,errorText:R})=>this.jobExecutor.run(async()=>{var M,L;const P=this.state.messages,F=P[P.length-1];this.state.replaceMessage(P.length-1,{...F,parts:F.parts.map(D=>c0(D)&&D.toolCallId===b?{...D,state:y,output:_,errorText:R}:D)}),this.activeResponse&&(this.activeResponse.state.message.parts=this.activeResponse.state.message.parts.map(D=>c0(D)&&D.toolCallId===b?{...D,state:y,output:_,errorText:R}:D)),this.status!=="streaming"&&this.status!=="submitted"&&((M=this.sendAutomaticallyWhen)!=null&&M.call(this,{messages:this.state.messages}))&&this.makeRequest({trigger:"submit-message",messageId:(L=this.lastMessage)==null?void 0:L.id})}),this.addToolResult=this.addToolOutput,this.stop=async()=>{var y;this.status!=="streaming"&&this.status!=="submitted"||(y=this.activeResponse)!=null&&y.abortController&&this.activeResponse.abortController.abort()},this.id=t,this.transport=n,this.generateId=e,this.messageMetadataSchema=a,this.dataPartSchemas=i,this.state=l,this.onError=u,this.onToolCall=f,this.onFinish=h,this.onData=g,this.sendAutomaticallyWhen=x}get status(){return this.state.status}setStatus({status:e,error:t}){this.status!==e&&(this.state.status=e,this.state.error=t)}get error(){return this.state.error}get messages(){return this.state.messages}get lastMessage(){return this.state.messages[this.state.messages.length-1]}set messages(e){this.state.messages=e}async makeRequest({trigger:e,metadata:t,headers:n,body:a,messageId:i}){var l,u,f,h;this.setStatus({status:"submitted",error:void 0});const g=this.lastMessage;let x=!1,y=!1,k=!1;try{const b={state:gE({lastMessage:this.state.snapshot(g),messageId:this.generateId()}),abortController:new AbortController};b.abortController.signal.addEventListener("abort",()=>{x=!0}),this.activeResponse=b;let _;if(e==="resume-stream"){const M=await this.transport.reconnectToStream({chatId:this.id,metadata:t,headers:n,body:a});if(M==null){this.setStatus({status:"ready"});return}_=M}else _=await this.transport.sendMessages({chatId:this.id,messages:this.state.messages,abortSignal:b.abortController.signal,metadata:t,headers:n,body:a,trigger:e,messageId:i});const R=M=>this.jobExecutor.run(()=>M({state:b.state,write:()=>{var L;this.setStatus({status:"streaming"}),b.state.message.id===((L=this.lastMessage)==null?void 0:L.id)?this.state.replaceMessage(this.state.messages.length-1,b.state.message):this.state.pushMessage(b.state.message)}}));await xE({stream:vE({stream:_,onToolCall:this.onToolCall,onData:this.onData,messageMetadataSchema:this.messageMetadataSchema,dataPartSchemas:this.dataPartSchemas,runUpdateMessageJob:R,onError:M=>{throw M}}),onError:M=>{throw M}}),this.setStatus({status:"ready"})}catch(b){if(x||b.name==="AbortError")return x=!0,this.setStatus({status:"ready"}),null;k=!0,b instanceof TypeError&&(b.message.toLowerCase().includes("fetch")||b.message.toLowerCase().includes("network"))&&(y=!0),this.onError&&b instanceof Error&&this.onError(b),this.setStatus({status:"error",error:b})}finally{try{(u=this.onFinish)==null||u.call(this,{message:this.activeResponse.state.message,messages:this.state.messages,isAbort:x,isDisconnect:y,isError:k,finishReason:(l=this.activeResponse)==null?void 0:l.state.finishReason})}catch(b){console.error(b)}this.activeResponse=void 0}(f=this.sendAutomaticallyWhen)!=null&&f.call(this,{messages:this.state.messages})&&!k&&await this.makeRequest({trigger:"submit-message",messageId:(h=this.lastMessage)==null?void 0:h.id,metadata:t,headers:n,body:a})}};function tW({execute:e,onError:t=Kv,originalMessages:n,onFinish:a,generateId:i=cd}){let l;const u=[],f=new ReadableStream({start(x){l=x}});function h(x){try{l.enqueue(x)}catch(y){}}try{const x=e({writer:{write(y){h(y)},merge(y){u.push((async()=>{const k=y.getReader();for(;;){const{done:b,value:_}=await k.read();if(b)break;h(_)}})().catch(k=>{h({type:"error",errorText:t(k)})}))},onError:t}});x&&u.push(x.catch(y=>{h({type:"error",errorText:t(y)})}))}catch(x){h({type:"error",errorText:t(x)})}return new Promise(async x=>{for(;u.length>0;)await u.shift();x()}).finally(()=>{try{l.close()}catch(x){}}),yE({stream:f,messageId:i(),originalMessages:n,onFinish:a,onError:t})}const nW=e=>{const{messagesArea:t,inputArea:n}=e;return C.jsxs("div",{className:"chat-frame flex flex-col h-full min-h-0",children:[C.jsx("div",{className:"messages-area flex-1 flex m-h-0",style:{flex:"1 1 auto",minHeight:0},children:t}),C.jsx("div",{style:{flex:"0 0 auto",minHeight:100},className:"input-area flex-0 shrink-0 p-4",children:n})]})};/*!---------------------------------------------------------------------------------------------
350
+ * Copyright (c) StackBlitz. All rights reserved.
351
+ * Licensed under the MIT License. See License.txt in the project root for license information.
352
+ *--------------------------------------------------------------------------------------------*/const rW={damping:.7,stiffness:.05,mass:1.25},aW=70,oW=1e3/60,iW=350;let f0=!1;(tO=globalThis.document)==null||tO.addEventListener("mousedown",()=>{f0=!0}),(nO=globalThis.document)==null||nO.addEventListener("mouseup",()=>{f0=!1}),(rO=globalThis.document)==null||rO.addEventListener("click",()=>{f0=!1});const sW=(e={})=>{const[t,n]=O.useState(!1),[a,i]=O.useState(e.initial!==!1),[l,u]=O.useState(!1),f=O.useRef(null);f.current=e;const h=O.useCallback(()=>{var D;if(!f0)return!1;const P=window.getSelection();if(!P||!P.rangeCount)return!1;const F=P.getRangeAt(0);return F.commonAncestorContainer.contains(M.current)||((D=M.current)==null?void 0:D.contains(F.commonAncestorContainer))},[]),g=O.useCallback(P=>{y.isAtBottom=P,i(P)},[]),x=O.useCallback(P=>{y.escapedFromLock=P,n(P)},[]),y=O.useMemo(()=>{let P;return{escapedFromLock:t,isAtBottom:a,resizeDifference:0,accumulated:0,velocity:0,listeners:new Set,get scrollTop(){var F,D;return(D=(F=M.current)==null?void 0:F.scrollTop)!=null?D:0},set scrollTop(F){M.current&&(M.current.scrollTop=F,y.ignoreScrollToTop=M.current.scrollTop)},get targetScrollTop(){return!M.current||!L.current?0:M.current.scrollHeight-1-M.current.clientHeight},get calculatedTargetScrollTop(){if(!M.current||!L.current)return 0;const{targetScrollTop:F}=this;if(!e.targetScrollTop)return F;if((P==null?void 0:P.targetScrollTop)===F)return P.calculatedScrollTop;const D=Math.max(Math.min(e.targetScrollTop(F,{scrollElement:M.current,contentElement:L.current}),F),0);return P={targetScrollTop:F,calculatedScrollTop:D},requestAnimationFrame(()=>{P=void 0}),D},get scrollDifference(){return this.calculatedTargetScrollTop-this.scrollTop},get isNearBottom(){return this.scrollDifference<=aW}}},[]),k=O.useCallback((P={})=>{var ae,_e;typeof P=="string"&&(P={animation:P}),P.preserveScrollPosition||g(!0);const F=Date.now()+(Number(P.wait)||0),D=O9(f.current,P.animation),{ignoreEscapes:V=!1}=P;let H,Z=y.calculatedTargetScrollTop;P.duration instanceof Promise?P.duration.finally(()=>{H=Date.now()}):H=F+((ae=P.duration)!=null?ae:0);const q=async()=>{const ge=new Promise(requestAnimationFrame).then(()=>{var xe,Te;if(!y.isAtBottom)return y.animation=void 0,!1;const{scrollTop:he}=y,we=performance.now(),Ne=(we-((xe=y.lastTick)!=null?xe:we))/oW;if(y.animation||(y.animation={behavior:D,promise:ge,ignoreEscapes:V}),y.animation.behavior===D&&(y.lastTick=we),h()||F>Date.now())return q();if(he<Math.min(Z,y.calculatedTargetScrollTop)){if(((Te=y.animation)==null?void 0:Te.behavior)===D){if(D==="instant")return y.scrollTop=y.calculatedTargetScrollTop,q();y.velocity=(D.damping*y.velocity+D.stiffness*y.scrollDifference)/D.mass,y.accumulated+=y.velocity*Ne,y.scrollTop+=y.accumulated,y.scrollTop!==he&&(y.accumulated=0)}return q()}return H>Date.now()?(Z=y.calculatedTargetScrollTop,q()):(y.animation=void 0,y.scrollTop<y.calculatedTargetScrollTop?k({animation:O9(f.current,f.current.resize),ignoreEscapes:V,duration:Math.max(0,H-Date.now())||void 0}):y.isAtBottom)});return ge.then(he=>(requestAnimationFrame(()=>{y.animation||(y.lastTick=void 0,y.velocity=0)}),he))};return P.wait!==!0&&(y.animation=void 0),((_e=y.animation)==null?void 0:_e.behavior)===D?y.animation.promise:q()},[g,h,y]),b=O.useCallback(()=>{x(!0),g(!1)},[x,g]),_=O.useCallback(({target:P})=>{if(P!==M.current)return;const{scrollTop:F,ignoreScrollToTop:D}=y;let{lastScrollTop:V=F}=y;y.lastScrollTop=F,y.ignoreScrollToTop=void 0,D&&D>F&&(V=D),u(y.isNearBottom),setTimeout(()=>{var q;if(y.resizeDifference||F===D)return;if(h()){x(!0),g(!1);return}const H=F>V,Z=F<V;if((q=y.animation)!=null&&q.ignoreEscapes){y.scrollTop=V;return}Z&&(x(!0),g(!1)),H&&x(!1),!y.escapedFromLock&&y.isNearBottom&&g(!0)},1)},[x,g,h,y]),R=O.useCallback(({target:P,deltaY:F})=>{var V;let D=P;for(;!["scroll","auto"].includes(getComputedStyle(D).overflow);){if(!D.parentElement)return;D=D.parentElement}D===M.current&&F<0&&M.current.scrollHeight>M.current.clientHeight&&!((V=y.animation)!=null&&V.ignoreEscapes)&&(x(!0),g(!1))},[x,g,y]),M=CE(P=>{var F,D;(F=M.current)==null||F.removeEventListener("scroll",_),(D=M.current)==null||D.removeEventListener("wheel",R),P==null||P.addEventListener("scroll",_,{passive:!0}),P==null||P.addEventListener("wheel",R,{passive:!0})},[]),L=CE(P=>{var D,V;if((D=y.resizeObserver)==null||D.disconnect(),!P)return;let F;y.resizeObserver=new ResizeObserver(([H])=>{const{height:Z}=H.contentRect,q=Z-(F!=null?F:Z);if(y.resizeDifference=q,y.scrollTop>y.targetScrollTop&&(y.scrollTop=y.targetScrollTop),u(y.isNearBottom),q>=0){const ae=O9(f.current,F?f.current.resize:f.current.initial);k({animation:ae,wait:!0,preserveScrollPosition:!0,duration:ae==="instant"?void 0:iW})}else y.isNearBottom&&(x(!1),g(!0));F=Z,requestAnimationFrame(()=>{setTimeout(()=>{y.resizeDifference===q&&(y.resizeDifference=0)},1)})}),(V=y.resizeObserver)==null||V.observe(P)},[]);return{contentRef:L,scrollRef:M,scrollToBottom:k,stopScroll:b,isAtBottom:a||l,isNearBottom:l,escapedFromLock:t,state:y}};function CE(e,t){const n=O.useCallback(a=>(n.current=a,e(a)),t);return n}const M9=new Map;function O9(...e){var i,l,u;const t={...rW};let n=!1;for(const f of e){if(f==="instant"){n=!0;continue}typeof f=="object"&&(n=!1,t.damping=(i=f.damping)!=null?i:t.damping,t.stiffness=(l=f.stiffness)!=null?l:t.stiffness,t.mass=(u=f.mass)!=null?u:t.mass)}const a=JSON.stringify(t);return M9.has(a)||M9.set(a,Object.freeze(t)),n?"instant":M9.get(a)}const SE=O.createContext(null),lW=typeof window!="undefined"?O.useLayoutEffect:O.useEffect;function p0({instance:e,children:t,resize:n,initial:a,mass:i,damping:l,stiffness:u,targetScrollTop:f,contextRef:h,...g}){const x=O.useRef(null),y=O.useCallback((V,H)=>{var q,ae;const Z=(q=D==null?void 0:D.targetScrollTop)!=null?q:f;return(ae=Z==null?void 0:Z(V,H))!=null?ae:V},[f]),k=sW({mass:i,damping:l,stiffness:u,resize:n,initial:a,targetScrollTop:y}),{scrollRef:b,contentRef:_,scrollToBottom:R,stopScroll:M,isAtBottom:L,escapedFromLock:P,state:F}=e!=null?e:k,D=O.useMemo(()=>({scrollToBottom:R,stopScroll:M,scrollRef:b,isAtBottom:L,escapedFromLock:P,contentRef:_,state:F,get targetScrollTop(){return x.current},set targetScrollTop(V){x.current=V}}),[R,L,_,b,M,P,F]);return O.useImperativeHandle(h,()=>D,[D]),lW(()=>{b.current&&getComputedStyle(b.current).overflow==="visible"&&(b.current.style.overflow="auto")},[]),C.jsx(SE.Provider,{value:D,children:C.jsx("div",{...g,children:typeof t=="function"?t(D):t})})}(function(e){function t({children:n,...a}){const i=kE();return C.jsx("div",{ref:i.scrollRef,style:{height:"100%",width:"100%"},children:C.jsx("div",{...a,ref:i.contentRef,children:typeof n=="function"?n(i):n})})}e.Content=t})(p0||(p0={}));function kE(){const e=O.useContext(SE);if(!e)throw new Error("use-stick-to-bottom component context must be used within a StickToBottom component");return e}var EE={exports:{}};/*!
353
+ Copyright (c) 2018 Jed Watson.
354
+ Licensed under the MIT License (MIT), see
355
+ http://jedwatson.github.io/classnames
356
+ */(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var l="",u=0;u<arguments.length;u++){var f=arguments[u];f&&(l=i(l,a(f)))}return l}function a(l){if(typeof l=="string"||typeof l=="number")return l;if(typeof l!="object")return"";if(Array.isArray(l))return n.apply(null,l);if(l.toString!==Object.prototype.toString&&!l.toString.toString().includes("[native code]"))return l.toString();var u="";for(var f in l)t.call(l,f)&&l[f]&&(u=i(u,f));return u}function i(l,u){return u?l?l+" "+u:l+u:l}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(EE);var uW=EE.exports;const Ta=Wu(uW);function _E(e){var t,n,a="";if(typeof e=="string"||typeof e=="number")a+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=_E(e[t]))&&(a&&(a+=" "),a+=n)}else for(n in e)e[n]&&(a&&(a+=" "),a+=n);return a}function TE(){for(var e,t,n=0,a="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=_E(e))&&(a&&(a+=" "),a+=t);return a}const cW=(e,t)=>{const n=new Array(e.length+t.length);for(let a=0;a<e.length;a++)n[a]=e[a];for(let a=0;a<t.length;a++)n[e.length+a]=t[a];return n},dW=(e,t)=>({classGroupId:e,validator:t}),RE=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),h0="-",AE=[],fW="arbitrary..",pW=e=>{const t=mW(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:a}=e;return{getClassGroupId:u=>{if(u.startsWith("[")&&u.endsWith("]"))return hW(u);const f=u.split(h0),h=f[0]===""&&f.length>1?1:0;return NE(f,h,t)},getConflictingClassGroupIds:(u,f)=>{if(f){const h=a[u],g=n[u];return h?g?cW(g,h):h:g||AE}return n[u]||AE}}},NE=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const i=e[t],l=n.nextPart.get(i);if(l){const g=NE(e,t+1,l);if(g)return g}const u=n.validators;if(u===null)return;const f=t===0?e.join(h0):e.slice(t).join(h0),h=u.length;for(let g=0;g<h;g++){const x=u[g];if(x.validator(f))return x.classGroupId}},hW=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),a=t.slice(0,n);return a?fW+a:void 0})(),mW=e=>{const{theme:t,classGroups:n}=e;return gW(n,t)},gW=(e,t)=>{const n=RE();for(const a in e){const i=e[a];L9(i,n,a,t)}return n},L9=(e,t,n,a)=>{const i=e.length;for(let l=0;l<i;l++){const u=e[l];vW(u,t,n,a)}},vW=(e,t,n,a)=>{if(typeof e=="string"){yW(e,t,n);return}if(typeof e=="function"){xW(e,t,n,a);return}wW(e,t,n,a)},yW=(e,t,n)=>{const a=e===""?t:ME(t,e);a.classGroupId=n},xW=(e,t,n,a)=>{if(bW(e)){L9(e(a),t,n,a);return}t.validators===null&&(t.validators=[]),t.validators.push(dW(n,e))},wW=(e,t,n,a)=>{const i=Object.entries(e),l=i.length;for(let u=0;u<l;u++){const[f,h]=i[u];L9(h,ME(t,f),n,a)}},ME=(e,t)=>{let n=e;const a=t.split(h0),i=a.length;for(let l=0;l<i;l++){const u=a[l];let f=n.nextPart.get(u);f||(f=RE(),n.nextPart.set(u,f)),n=f}return n},bW=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,CW=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),a=Object.create(null);const i=(l,u)=>{n[l]=u,t++,t>e&&(t=0,a=n,n=Object.create(null))};return{get(l){let u=n[l];if(u!==void 0)return u;if((u=a[l])!==void 0)return i(l,u),u},set(l,u){l in n?n[l]=u:i(l,u)}}},I9="!",OE=":",SW=[],LE=(e,t,n,a,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:a,isExternal:i}),kW=e=>{const{prefix:t,experimentalParseClassName:n}=e;let a=i=>{const l=[];let u=0,f=0,h=0,g;const x=i.length;for(let R=0;R<x;R++){const M=i[R];if(u===0&&f===0){if(M===OE){l.push(i.slice(h,R)),h=R+1;continue}if(M==="/"){g=R;continue}}M==="["?u++:M==="]"?u--:M==="("?f++:M===")"&&f--}const y=l.length===0?i:i.slice(h);let k=y,b=!1;y.endsWith(I9)?(k=y.slice(0,-1),b=!0):y.startsWith(I9)&&(k=y.slice(1),b=!0);const _=g&&g>h?g-h:void 0;return LE(l,b,k,_)};if(t){const i=t+OE,l=a;a=u=>u.startsWith(i)?l(u.slice(i.length)):LE(SW,!1,u,void 0,!0)}if(n){const i=a;a=l=>n({className:l,parseClassName:i})}return a},EW=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,a)=>{t.set(n,1e6+a)}),n=>{const a=[];let i=[];for(let l=0;l<n.length;l++){const u=n[l],f=u[0]==="[",h=t.has(u);f||h?(i.length>0&&(i.sort(),a.push(...i),i=[]),a.push(u)):i.push(u)}return i.length>0&&(i.sort(),a.push(...i)),a}},_W=e=>({cache:CW(e.cacheSize),parseClassName:kW(e),sortModifiers:EW(e),...pW(e)}),TW=/\s+/,RW=(e,t)=>{const{parseClassName:n,getClassGroupId:a,getConflictingClassGroupIds:i,sortModifiers:l}=t,u=[],f=e.trim().split(TW);let h="";for(let g=f.length-1;g>=0;g-=1){const x=f[g],{isExternal:y,modifiers:k,hasImportantModifier:b,baseClassName:_,maybePostfixModifierPosition:R}=n(x);if(y){h=x+(h.length>0?" "+h:h);continue}let M=!!R,L=a(M?_.substring(0,R):_);if(!L){if(!M){h=x+(h.length>0?" "+h:h);continue}if(L=a(_),!L){h=x+(h.length>0?" "+h:h);continue}M=!1}const P=k.length===0?"":k.length===1?k[0]:l(k).join(":"),F=b?P+I9:P,D=F+L;if(u.indexOf(D)>-1)continue;u.push(D);const V=i(L,M);for(let H=0;H<V.length;++H){const Z=V[H];u.push(F+Z)}h=x+(h.length>0?" "+h:h)}return h},AW=(...e)=>{let t=0,n,a,i="";for(;t<e.length;)(n=e[t++])&&(a=IE(n))&&(i&&(i+=" "),i+=a);return i},IE=e=>{if(typeof e=="string")return e;let t,n="";for(let a=0;a<e.length;a++)e[a]&&(t=IE(e[a]))&&(n&&(n+=" "),n+=t);return n},NW=(e,...t)=>{let n,a,i,l;const u=h=>{const g=t.reduce((x,y)=>y(x),e());return n=_W(g),a=n.cache.get,i=n.cache.set,l=f,f(h)},f=h=>{const g=a(h);if(g)return g;const x=RW(h,n);return i(h,x),x};return l=u,(...h)=>l(AW(...h))},MW=[],da=e=>{const t=n=>n[e]||MW;return t.isThemeGetter=!0,t},DE=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,jE=/^\((?:(\w[\w-]*):)?(.+)\)$/i,OW=/^\d+\/\d+$/,LW=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,IW=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,DW=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,jW=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,PW=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,fp=e=>OW.test(e),pn=e=>!!e&&!Number.isNaN(Number(e)),Qu=e=>!!e&&Number.isInteger(Number(e)),D9=e=>e.endsWith("%")&&pn(e.slice(0,-1)),Yl=e=>LW.test(e),FW=()=>!0,zW=e=>IW.test(e)&&!DW.test(e),PE=()=>!1,UW=e=>jW.test(e),BW=e=>PW.test(e),HW=e=>!mt(e)&&!gt(e),VW=e=>pp(e,HE,PE),mt=e=>DE.test(e),wd=e=>pp(e,VE,zW),j9=e=>pp(e,GW,pn),FE=e=>pp(e,UE,PE),$W=e=>pp(e,BE,BW),m0=e=>pp(e,$E,UW),gt=e=>jE.test(e),Wh=e=>hp(e,VE),ZW=e=>hp(e,YW),zE=e=>hp(e,UE),WW=e=>hp(e,HE),qW=e=>hp(e,BE),g0=e=>hp(e,$E,!0),pp=(e,t,n)=>{const a=DE.exec(e);return a?a[1]?t(a[1]):n(a[2]):!1},hp=(e,t,n=!1)=>{const a=jE.exec(e);return a?a[1]?t(a[1]):n:!1},UE=e=>e==="position"||e==="percentage",BE=e=>e==="image"||e==="url",HE=e=>e==="length"||e==="size"||e==="bg-size",VE=e=>e==="length",GW=e=>e==="number",YW=e=>e==="family-name",$E=e=>e==="shadow",JW=NW(()=>{const e=da("color"),t=da("font"),n=da("text"),a=da("font-weight"),i=da("tracking"),l=da("leading"),u=da("breakpoint"),f=da("container"),h=da("spacing"),g=da("radius"),x=da("shadow"),y=da("inset-shadow"),k=da("text-shadow"),b=da("drop-shadow"),_=da("blur"),R=da("perspective"),M=da("aspect"),L=da("ease"),P=da("animate"),F=()=>["auto","avoid","all","avoid-page","page","left","right","column"],D=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],V=()=>[...D(),gt,mt],H=()=>["auto","hidden","clip","visible","scroll"],Z=()=>["auto","contain","none"],q=()=>[gt,mt,h],ae=()=>[fp,"full","auto",...q()],_e=()=>[Qu,"none","subgrid",gt,mt],ge=()=>["auto",{span:["full",Qu,gt,mt]},Qu,gt,mt],he=()=>[Qu,"auto",gt,mt],we=()=>["auto","min","max","fr",gt,mt],Ne=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],xe=()=>["start","end","center","stretch","center-safe","end-safe"],Te=()=>["auto",...q()],ve=()=>[fp,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...q()],K=()=>[e,gt,mt],ye=()=>[...D(),zE,FE,{position:[gt,mt]}],U=()=>["no-repeat",{repeat:["","x","y","space","round"]}],X=()=>["auto","cover","contain",WW,VW,{size:[gt,mt]}],ie=()=>[D9,Wh,wd],$=()=>["","none","full",g,gt,mt],Ue=()=>["",pn,Wh,wd],Ke=()=>["solid","dashed","dotted","double"],De=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Ee=()=>[pn,D9,zE,FE],Ze=()=>["","none",_,gt,mt],Qe=()=>["none",pn,gt,mt],qe=()=>["none",pn,gt,mt],tt=()=>[pn,gt,mt],Et=()=>[fp,"full",...q()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Yl],breakpoint:[Yl],color:[FW],container:[Yl],"drop-shadow":[Yl],ease:["in","out","in-out"],font:[HW],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Yl],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Yl],shadow:[Yl],spacing:["px",pn],text:[Yl],"text-shadow":[Yl],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",fp,mt,gt,M]}],container:["container"],columns:[{columns:[pn,mt,gt,f]}],"break-after":[{"break-after":F()}],"break-before":[{"break-before":F()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:V()}],overflow:[{overflow:H()}],"overflow-x":[{"overflow-x":H()}],"overflow-y":[{"overflow-y":H()}],overscroll:[{overscroll:Z()}],"overscroll-x":[{"overscroll-x":Z()}],"overscroll-y":[{"overscroll-y":Z()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:ae()}],"inset-x":[{"inset-x":ae()}],"inset-y":[{"inset-y":ae()}],start:[{start:ae()}],end:[{end:ae()}],top:[{top:ae()}],right:[{right:ae()}],bottom:[{bottom:ae()}],left:[{left:ae()}],visibility:["visible","invisible","collapse"],z:[{z:[Qu,"auto",gt,mt]}],basis:[{basis:[fp,"full","auto",f,...q()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[pn,fp,"auto","initial","none",mt]}],grow:[{grow:["",pn,gt,mt]}],shrink:[{shrink:["",pn,gt,mt]}],order:[{order:[Qu,"first","last","none",gt,mt]}],"grid-cols":[{"grid-cols":_e()}],"col-start-end":[{col:ge()}],"col-start":[{"col-start":he()}],"col-end":[{"col-end":he()}],"grid-rows":[{"grid-rows":_e()}],"row-start-end":[{row:ge()}],"row-start":[{"row-start":he()}],"row-end":[{"row-end":he()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":we()}],"auto-rows":[{"auto-rows":we()}],gap:[{gap:q()}],"gap-x":[{"gap-x":q()}],"gap-y":[{"gap-y":q()}],"justify-content":[{justify:[...Ne(),"normal"]}],"justify-items":[{"justify-items":[...xe(),"normal"]}],"justify-self":[{"justify-self":["auto",...xe()]}],"align-content":[{content:["normal",...Ne()]}],"align-items":[{items:[...xe(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...xe(),{baseline:["","last"]}]}],"place-content":[{"place-content":Ne()}],"place-items":[{"place-items":[...xe(),"baseline"]}],"place-self":[{"place-self":["auto",...xe()]}],p:[{p:q()}],px:[{px:q()}],py:[{py:q()}],ps:[{ps:q()}],pe:[{pe:q()}],pt:[{pt:q()}],pr:[{pr:q()}],pb:[{pb:q()}],pl:[{pl:q()}],m:[{m:Te()}],mx:[{mx:Te()}],my:[{my:Te()}],ms:[{ms:Te()}],me:[{me:Te()}],mt:[{mt:Te()}],mr:[{mr:Te()}],mb:[{mb:Te()}],ml:[{ml:Te()}],"space-x":[{"space-x":q()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":q()}],"space-y-reverse":["space-y-reverse"],size:[{size:ve()}],w:[{w:[f,"screen",...ve()]}],"min-w":[{"min-w":[f,"screen","none",...ve()]}],"max-w":[{"max-w":[f,"screen","none","prose",{screen:[u]},...ve()]}],h:[{h:["screen","lh",...ve()]}],"min-h":[{"min-h":["screen","lh","none",...ve()]}],"max-h":[{"max-h":["screen","lh",...ve()]}],"font-size":[{text:["base",n,Wh,wd]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[a,gt,j9]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",D9,mt]}],"font-family":[{font:[ZW,mt,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[i,gt,mt]}],"line-clamp":[{"line-clamp":[pn,"none",gt,j9]}],leading:[{leading:[l,...q()]}],"list-image":[{"list-image":["none",gt,mt]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",gt,mt]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:K()}],"text-color":[{text:K()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Ke(),"wavy"]}],"text-decoration-thickness":[{decoration:[pn,"from-font","auto",gt,wd]}],"text-decoration-color":[{decoration:K()}],"underline-offset":[{"underline-offset":[pn,"auto",gt,mt]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:q()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",gt,mt]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",gt,mt]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:ye()}],"bg-repeat":[{bg:U()}],"bg-size":[{bg:X()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Qu,gt,mt],radial:["",gt,mt],conic:[Qu,gt,mt]},qW,$W]}],"bg-color":[{bg:K()}],"gradient-from-pos":[{from:ie()}],"gradient-via-pos":[{via:ie()}],"gradient-to-pos":[{to:ie()}],"gradient-from":[{from:K()}],"gradient-via":[{via:K()}],"gradient-to":[{to:K()}],rounded:[{rounded:$()}],"rounded-s":[{"rounded-s":$()}],"rounded-e":[{"rounded-e":$()}],"rounded-t":[{"rounded-t":$()}],"rounded-r":[{"rounded-r":$()}],"rounded-b":[{"rounded-b":$()}],"rounded-l":[{"rounded-l":$()}],"rounded-ss":[{"rounded-ss":$()}],"rounded-se":[{"rounded-se":$()}],"rounded-ee":[{"rounded-ee":$()}],"rounded-es":[{"rounded-es":$()}],"rounded-tl":[{"rounded-tl":$()}],"rounded-tr":[{"rounded-tr":$()}],"rounded-br":[{"rounded-br":$()}],"rounded-bl":[{"rounded-bl":$()}],"border-w":[{border:Ue()}],"border-w-x":[{"border-x":Ue()}],"border-w-y":[{"border-y":Ue()}],"border-w-s":[{"border-s":Ue()}],"border-w-e":[{"border-e":Ue()}],"border-w-t":[{"border-t":Ue()}],"border-w-r":[{"border-r":Ue()}],"border-w-b":[{"border-b":Ue()}],"border-w-l":[{"border-l":Ue()}],"divide-x":[{"divide-x":Ue()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":Ue()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Ke(),"hidden","none"]}],"divide-style":[{divide:[...Ke(),"hidden","none"]}],"border-color":[{border:K()}],"border-color-x":[{"border-x":K()}],"border-color-y":[{"border-y":K()}],"border-color-s":[{"border-s":K()}],"border-color-e":[{"border-e":K()}],"border-color-t":[{"border-t":K()}],"border-color-r":[{"border-r":K()}],"border-color-b":[{"border-b":K()}],"border-color-l":[{"border-l":K()}],"divide-color":[{divide:K()}],"outline-style":[{outline:[...Ke(),"none","hidden"]}],"outline-offset":[{"outline-offset":[pn,gt,mt]}],"outline-w":[{outline:["",pn,Wh,wd]}],"outline-color":[{outline:K()}],shadow:[{shadow:["","none",x,g0,m0]}],"shadow-color":[{shadow:K()}],"inset-shadow":[{"inset-shadow":["none",y,g0,m0]}],"inset-shadow-color":[{"inset-shadow":K()}],"ring-w":[{ring:Ue()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:K()}],"ring-offset-w":[{"ring-offset":[pn,wd]}],"ring-offset-color":[{"ring-offset":K()}],"inset-ring-w":[{"inset-ring":Ue()}],"inset-ring-color":[{"inset-ring":K()}],"text-shadow":[{"text-shadow":["none",k,g0,m0]}],"text-shadow-color":[{"text-shadow":K()}],opacity:[{opacity:[pn,gt,mt]}],"mix-blend":[{"mix-blend":[...De(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":De()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[pn]}],"mask-image-linear-from-pos":[{"mask-linear-from":Ee()}],"mask-image-linear-to-pos":[{"mask-linear-to":Ee()}],"mask-image-linear-from-color":[{"mask-linear-from":K()}],"mask-image-linear-to-color":[{"mask-linear-to":K()}],"mask-image-t-from-pos":[{"mask-t-from":Ee()}],"mask-image-t-to-pos":[{"mask-t-to":Ee()}],"mask-image-t-from-color":[{"mask-t-from":K()}],"mask-image-t-to-color":[{"mask-t-to":K()}],"mask-image-r-from-pos":[{"mask-r-from":Ee()}],"mask-image-r-to-pos":[{"mask-r-to":Ee()}],"mask-image-r-from-color":[{"mask-r-from":K()}],"mask-image-r-to-color":[{"mask-r-to":K()}],"mask-image-b-from-pos":[{"mask-b-from":Ee()}],"mask-image-b-to-pos":[{"mask-b-to":Ee()}],"mask-image-b-from-color":[{"mask-b-from":K()}],"mask-image-b-to-color":[{"mask-b-to":K()}],"mask-image-l-from-pos":[{"mask-l-from":Ee()}],"mask-image-l-to-pos":[{"mask-l-to":Ee()}],"mask-image-l-from-color":[{"mask-l-from":K()}],"mask-image-l-to-color":[{"mask-l-to":K()}],"mask-image-x-from-pos":[{"mask-x-from":Ee()}],"mask-image-x-to-pos":[{"mask-x-to":Ee()}],"mask-image-x-from-color":[{"mask-x-from":K()}],"mask-image-x-to-color":[{"mask-x-to":K()}],"mask-image-y-from-pos":[{"mask-y-from":Ee()}],"mask-image-y-to-pos":[{"mask-y-to":Ee()}],"mask-image-y-from-color":[{"mask-y-from":K()}],"mask-image-y-to-color":[{"mask-y-to":K()}],"mask-image-radial":[{"mask-radial":[gt,mt]}],"mask-image-radial-from-pos":[{"mask-radial-from":Ee()}],"mask-image-radial-to-pos":[{"mask-radial-to":Ee()}],"mask-image-radial-from-color":[{"mask-radial-from":K()}],"mask-image-radial-to-color":[{"mask-radial-to":K()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":D()}],"mask-image-conic-pos":[{"mask-conic":[pn]}],"mask-image-conic-from-pos":[{"mask-conic-from":Ee()}],"mask-image-conic-to-pos":[{"mask-conic-to":Ee()}],"mask-image-conic-from-color":[{"mask-conic-from":K()}],"mask-image-conic-to-color":[{"mask-conic-to":K()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:ye()}],"mask-repeat":[{mask:U()}],"mask-size":[{mask:X()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",gt,mt]}],filter:[{filter:["","none",gt,mt]}],blur:[{blur:Ze()}],brightness:[{brightness:[pn,gt,mt]}],contrast:[{contrast:[pn,gt,mt]}],"drop-shadow":[{"drop-shadow":["","none",b,g0,m0]}],"drop-shadow-color":[{"drop-shadow":K()}],grayscale:[{grayscale:["",pn,gt,mt]}],"hue-rotate":[{"hue-rotate":[pn,gt,mt]}],invert:[{invert:["",pn,gt,mt]}],saturate:[{saturate:[pn,gt,mt]}],sepia:[{sepia:["",pn,gt,mt]}],"backdrop-filter":[{"backdrop-filter":["","none",gt,mt]}],"backdrop-blur":[{"backdrop-blur":Ze()}],"backdrop-brightness":[{"backdrop-brightness":[pn,gt,mt]}],"backdrop-contrast":[{"backdrop-contrast":[pn,gt,mt]}],"backdrop-grayscale":[{"backdrop-grayscale":["",pn,gt,mt]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[pn,gt,mt]}],"backdrop-invert":[{"backdrop-invert":["",pn,gt,mt]}],"backdrop-opacity":[{"backdrop-opacity":[pn,gt,mt]}],"backdrop-saturate":[{"backdrop-saturate":[pn,gt,mt]}],"backdrop-sepia":[{"backdrop-sepia":["",pn,gt,mt]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":q()}],"border-spacing-x":[{"border-spacing-x":q()}],"border-spacing-y":[{"border-spacing-y":q()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",gt,mt]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[pn,"initial",gt,mt]}],ease:[{ease:["linear","initial",L,gt,mt]}],delay:[{delay:[pn,gt,mt]}],animate:[{animate:["none",P,gt,mt]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[R,gt,mt]}],"perspective-origin":[{"perspective-origin":V()}],rotate:[{rotate:Qe()}],"rotate-x":[{"rotate-x":Qe()}],"rotate-y":[{"rotate-y":Qe()}],"rotate-z":[{"rotate-z":Qe()}],scale:[{scale:qe()}],"scale-x":[{"scale-x":qe()}],"scale-y":[{"scale-y":qe()}],"scale-z":[{"scale-z":qe()}],"scale-3d":["scale-3d"],skew:[{skew:tt()}],"skew-x":[{"skew-x":tt()}],"skew-y":[{"skew-y":tt()}],transform:[{transform:[gt,mt,"","none","gpu","cpu"]}],"transform-origin":[{origin:V()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Et()}],"translate-x":[{"translate-x":Et()}],"translate-y":[{"translate-y":Et()}],"translate-z":[{"translate-z":Et()}],"translate-none":["translate-none"],accent:[{accent:K()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:K()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",gt,mt]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":q()}],"scroll-mx":[{"scroll-mx":q()}],"scroll-my":[{"scroll-my":q()}],"scroll-ms":[{"scroll-ms":q()}],"scroll-me":[{"scroll-me":q()}],"scroll-mt":[{"scroll-mt":q()}],"scroll-mr":[{"scroll-mr":q()}],"scroll-mb":[{"scroll-mb":q()}],"scroll-ml":[{"scroll-ml":q()}],"scroll-p":[{"scroll-p":q()}],"scroll-px":[{"scroll-px":q()}],"scroll-py":[{"scroll-py":q()}],"scroll-ps":[{"scroll-ps":q()}],"scroll-pe":[{"scroll-pe":q()}],"scroll-pt":[{"scroll-pt":q()}],"scroll-pr":[{"scroll-pr":q()}],"scroll-pb":[{"scroll-pb":q()}],"scroll-pl":[{"scroll-pl":q()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",gt,mt]}],fill:[{fill:["none",...K()]}],"stroke-w":[{stroke:[pn,Wh,wd,j9]}],stroke:[{stroke:["none",...K()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}});function We(...e){return JW(TE(e))}const Pi=e=>{if(e.type!=="text"||!e.providerMetadata||!e.providerMetadata.raw||!e.providerMetadata.raw.data)return null;if(typeof e.providerMetadata.raw.data!="string")return e.providerMetadata.raw.data;let t;try{t=JSON.parse(e.providerMetadata.raw.data)}catch(n){console.error("invalid raw data")}return t||e.providerMetadata.raw.data},v0=e=>{const t=Pi(e);return(t==null?void 0:t.type)==="mcp-fields-json"},XW=e=>{const t=Pi(e);return(t==null?void 0:t.type)==="query-stream-parsed-info"},KW=e=>{const t=Pi(e);if((t==null?void 0:t.type)!=="query-stream-parsed-info")return null;const n=t.result;console.log("query result raw data:",n);try{return JSON.parse(n)}catch(a){return console.error("invalid query result data"),null}},ZE=e=>{if((e==null?void 0:e.type)==="error")return!0;const t=Pi(e);return(t==null?void 0:t.type)==="agent-error"},QW=e=>(e==null?void 0:e.type)==="file",eq=e=>{if(!Array.isArray(e))return!1;for(const t of e)if((t==null?void 0:t.type)==="file")return!0;return!1},tq=e=>{const t=Pi(e);return(t==null?void 0:t.type)==="agent-loading"},nq=e=>{const t=Pi(e);return(t==null?void 0:t.type)!=="agent-loading"?"":(t==null?void 0:t.label)||"加载中"},rq=e=>{if(!ZE(e))return"";if(e!=null&&e.errorText)return e.errorText;const t=Pi(e);return(t==null?void 0:t.error)||"未知错误"},WE=e=>{const t=Pi(e);return(t==null?void 0:t.type)!=="mcp-fields-json"?null:(t==null?void 0:t.field)||null},aq=e=>{const t=Pi(e);return(t==null?void 0:t.type)==="suggestion"},qE=e=>{const t=Pi(e);return(t==null?void 0:t.appendConfirm)==="save-fields"},oq=e=>{var a;return(((a=/现在要创建一张表:“([^”]+)”/g.exec(e))==null?void 0:a[1])||"").replace(/(.*\)/,"")};function y0(e){return e.replace("<has_function_call>","")}function iq(e,t){if(!Array.isArray(e)||e.length===0)return[];const n=[e[0]];for(let a=1;a<e.length;a++){const i=e[a],l=n[n.length-1];t(l,i)?n[n.length-1]=i:n.push(i)}return n}const sq=(e,t,n="value")=>{var l,u;if(((l=e==null?void 0:e.widget)==null?void 0:l.type)!=="subform"||((u=t==null?void 0:t.widget)==null?void 0:u.type)!=="subform")return!0;const a=(e==null?void 0:e.widget[n])||[],i=(t==null?void 0:t.widget[n])||[];if(a.length!==i.length)return!1;for(let f=0;f<a.length;f++){const h=a[f],g=i[f];if(h.length!==g.length)return!1}return!0};function P9(e,t,n=1){const a=[],i=[];for(const l of e)t(l)?i.push(l):(i.length>0&&(a.push(i.length>=n?[...i]:i[0]),i.length=0),a.push(l));return i.length>0&&a.push(i.length>=2?[...i]:i[0]),a}const lq=e=>P9(e,t=>t.type==="file",2),uq=`
357
+ url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAYAAAA6/NlyAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAABMdSURBVHgB7VoJlF1Vld33vffnX79+TalKqpKQEQQiGhIUJYDKqIZBxVYQW9FWWQuWK7at3SBL2rZdirYRAV3gkrZbXS3EAUEMtEoEHJgbYiDzWEmlUuOv+vN/793b+9z3E7FAkkjbq9tVN3n577//hrvvOWfvc84LMD2mx/SYHtNjekyP6XFkQ3Fzzj///MQVV1wxq3kshr/gob770NNXjWpj+qvabJ5oDDePu/hLHOdceOHs0BizuWTCX48as2EsCB7oL/zyaO7h4P/RWPraMxfcuqWOsQYc7Wgg6Thtyj/+aO6h8OcZcl8jO5dccomb5PD9WOurXnVix0S5lHW0VhJ5TuiEqdZ8cf0TTxe2locLT95zT2XKPXDwPgfHt31TfmZXkFzW5ah4SmPR4NBnlszt/cep5/05hyUSOzNj1Gc+8/kl996/7tPb+wcfm2gEE2UerHOrcpsIo09fNsahH2rj+6EJxU85eEhPFP3hnbv3/2bNmvs//dFPfOrYKc+JXf31x97X8pXAfKzujz21ZdM/NX/7X/HUQ0C/9rXbzti3f+SRSmD0+qGieXS4ZDaU62bAD0yBaAq1uhkr+2a0WONWN+Plhhnh/hj3J3heteqbet03OgiMCULTmAxNraB1vazNEBfioW171q1effNSedaNu4zJf9yYqXM4mkn/KcPjFtxz3y/e/5Zz33jz9n1jaU5cz+7OO62pBGgwiNdqo6E5H36zj7KzlLkqx84y0PKV54RAqDW36DqXs0qSd1NJBwnHQX+guChGFROYvOCfg5zetflDI3e+8l/lFjjKcbR0blf0hhtu6Lr3p/ftjSez7yxVfa+3J69mdrSoWDzGCXPS9iwF+SN/HcU9EwERgyi7BMp+OgSvHAOX57uuYz/lRFmMybrBaDlAi6vUExtDrLm3nnjDSY5ZckX2FbP6J7/53HOPhzjK2D0aC9tzN2/e+p5Fixf++8DgaNAxo92DiixpjShgQwPjRKDUwdsrHuNxsa62to0AG/mj7WV22nILcQD5HvJLSNQCvB4YxDwX4yXgGz8pYvUlaV1oTzgbnt3xlvOXL1jbnJs+YhBHDHbrrisXLZxzS7EWaM9xHceNAqgRRp8kHTGsXXLVtOMfApIfxSh0c+6GdhGUnBX9bqJHad0EzIt9Im6EDsHzOQEXkuxeKWmclDd6wPOcidLgh1+7sO8bOEJLH2nAu/fd9+hpixbOvaXOYIvFXCcRZ3wRMBceyXj0NMdOvunKEqpye4lX2RzZeI4b48aJ85hnj6not+baa33Qwtrum0OLZawnFasBXT3Aff3G6W3UdVvrzFvvWff063GE4XkkFvZIlGIWXff9IFSul/TUIaE1z3NdkqwFKC5sv4fRhAWUalpeLGt9T0CJlYkuFNLi96ChrRt7Ap8XykN936DSMKB6cZ/W5TOqPK/acFBrBHhbrwrrszPuuy94c3Lt2rVCYuHLBYw9ewbWdXV3nF5vaCeXTTajD81/lbVOQHOI1Yq1ELv6C9i0fRjrN+/Djh3D2LVrEGOjRVSqPvx6w8a4F4vD4Saf2XwGuXwKPT15zJ3djrlzO7F4YTf6ZuQgDKhrAeKeg1LNIfiAYA3KDYVipY5W2nVRJhVk51afnN+Zf+3hsHiH+d25/PLLO/Md7WcWxoqY0dNxUFys6cRVa75GgSBvv/NpfO/b92Pj+u20dAOZfBKnnTIP8bhCT95DW1YmKBN2Ua2HKBQnUCQDiwwNDhEXzR2SlU01hKnz/ty89hwWnLwA571xMd721mX2ebEY7+HrQwQ33NYC1ALv+Hzraz73uc91XXPNNaN4CQI7nIXVw488c+uEH37gjGUnOpmkF9GhsK2JHPnaGx/GF69djVNPPwEXvfVUHDu/G9/98aP42VM7kYwplCs1iD/HmnKjjBPFtsSkaK8y0f10JKoB40A3A9lMEnw1y+uzMIHCpVeehquvOIMLDIxXNMrpBLTHhefCdZ0c0+lnNt95ztJXXIqXILCXAmzDdKQelp94dmvqnFcfq6wrN6VFGOI1Z38B4yM7cNMXr0JhoojRQokT1kgnkrjpjnUYLlSprXKNYxMMideDU5EQCC1oYz+FzQNxXx3YfSOAhRJ2jwnTcc3iMG4veubkceedV2J3UaGaS9mYd8jcyfYAr+uIVxZ4KoPn5fJTh/NHgKqTP/Qh7/M333H6/tFCuqctrw4mcxKnNbLkxR9cg7A2iNtvXoXd+4YIuEJAyrro2GQFl567lIzaoKHcaJGsTkds60t2pSICCyVIuBM2WSHKyHiNaF65TuCevZ55J1dkJw5UYnjvB2/HvKwDHUQyqMgJpXGNfhfpT3723tOvv/569cfwvagsffOeTR+/+8ZbG+df+I4Hh0bH/I5sxrqdjDLj9dnnCrj7B9/HzV+6Epu2DUBEJRQr0ioBt0wqhtX/8Svk6HKGSE3TsKETJZmyBSJhYXRPa3j5bs8jYMvyPOtAWbQucu96Aea4M6HnzsGO9btx74Nb0epXuTA8n8BVxcV62vvkmec8ePHKT4df/WH/bXiRWFYv8t3c8ltjnt2odU+r4/TGt+Kv3jQXynUtU1ZILOde8QMs7R3GqctORI0MKiAl9kigBBvHTd/7JQbGKtRpYxfBaigXRds9xyYVmkoXWT6K4SjDanqCCPa2wcgexuDQisGH94YPwBRG0V7aj2/dsQr99GePF6X56wMxjR/9g2MVeeWbHDx895uT29aubeB57j3VwmrVDWtWNHhKLdROb14jT+u6XkRWkhNLevfYA7/BqUsXE2zDWlCyfwGWSydx909/hclUK8J4HEG5BJ8hEPIxgY3hKHsSsEJ6Yk2bYh60rDylWILbP4j4icfTqiP4g1D0J3mME2jrxvC2vZicqCIpS0gUAUG2Pa6RbDGYpDJ8Zx1w8ZtXXTDVwlNlSS9/+8ofhgNBuGKR68bDGl53Yidj1keChYEkD7sP1KDHh9Cay6EyNG4tJERFF8Bj67dg2ec/AYx4KDDG1t9yF5zf/pJP8Q6lkNaNVTNRsSFLy7tROKBUxuJTTkHq2o9gdDhAfYaHkdPfCVNzbEqqyEd6dC88ElfQ0o59ewvozWfR4L3Jk2iMEzQXbVgYdabRd6kzbufemucDfEEM93Qn0mXfcYdGmeEwXjXNLe4sTing9gwU4CUDWtNDPpdGLptCOh1HW8xg4riT8LOdDiYpGRgIMP/KlSjuGmCcedCOY+NWpEdcv1HzEU7WEAxNQO8bg9k9DL1zM7qu+Rsc2EwrlhqI76wj88lPMUbHotgTIiuNR7POdeHAyARi9LAE1zNBCRwdLiLLhanX7OI6YXfcPZyF8egwnHQV+PEm4LQ+jfseG8NfXzAXdT9kCsgkg9Kjcnms/MhtyOaYJRFsV3srZqVdPHLKeZhPy1rJSVBvueqGCUaJoCxKvxEx1CEqaaaiAsflVNwkdnJRYrkkFwg2x44lm78zVg1DR/E+UkYq0fhiFfFmtc1sF2mvAhPP8pyoro63vFB2XwB4L/PVnz0VudswBb7DVG3s2pqWW40WFz31vTgzHg/VSYPd42PwuRAnnENWTvI8ma1gSUQyw3SMx3xraeVEFRTM72NTUboEuGEp5KaILU1AFgXvk5A5uxawkh91JEOKTF7nfQWo9POEzDPJGiaSlLKA8yDoDucIZOm4mTzI6kfHREaUnURzWk09bE44KgjBZoStVa16ZmO2LS7XeykCT4tIejbDMl7MNgWsvkqJ5QoIz+q6kZCx3QE2ARKwIB1e7yRJSAnhDnJwImvPl+ssBZAXhExtpSVZn6yfx+wrFmBGKwmUi724EzishVvZtHh1B92FVUp7XDVdrtnq4M3FrUFHclQ0QaWbmsmHm8IEsllWM/SMuAp5FqQEai5ttCi6VIHKpCzJCUmZ9jwUExlrb+2iJcUYjNteCGSNahU2MhNtTKXStoJCKh1ZiQhTrEs1H+a5cbi0kMeFmsd6Y6zO67lwmfgLdfgFFnZZjkgOGYbSknGQTSatZaNoMEiSDg21lyWxjUcp6Soy4ZiH9X93I8u4EnoWOug5xsMjZ/89VM+cyDuG9mPeg19F9vKLm3VjiOwH34Xe//wimXeEjkAgM+dh89tXo+cED3NOdNCSrWP/J1eTetshNGyyLbR8GtJKkpjLMbWUhXdlfiTKrtYEjulmNUdjpfTBfsphLNw9MvZ9N+x8X5Y+loknEI+Ws9l/Ajq7JFVNMrxCrqyDztaIqbMsLOD0Ycd5H8NzXZ0Y3bANXlsH4rSCkJiZORvbT/oAetZ+AR2fvdjGXvXJIexddjXUzPlRA4ENQDM2iV/NvhrJBb3w+vfhmFOXoCGLWqPnsOPhcz5lk4YuV9HXmWVoO6izsopRJTzG+Y59jpW+RlmHS+vDD0/Fp17E4vrrvzbmyac0Znc6mJ0awXtXdliO8RhnD22q4YwVn8J7Lp6PCXYfpAVTJ5GxxWpzZJuqNaVW2ZzZ2ITD6iyZuNZ/AA1eJwWFw0Ql0dtj+12KXCE6LTGtTURMNrvmtdLY8xi7Hn1cmgkSVhNDCXz5X1aiszNnCVIWdR8Zd/WPXOwZj2P5cgd3rYqiHc/rbr4g8ZB/lrRVfjeeSy4xkwFWvD4XVTnyI6l+Rs7BzMXzMVIxtlKRtoslHsaopHhhszKykw61LfajPJzaSAWI9XSzheJFgEhoAtYwnkPbKRES8qwaGD5Luc3WD0FqHqeB2b5lYsH09rwVx6GvtwW1qixIiNaMi/knxMyN3zdqUbcyFy1rbL0rwhRMtejUETvt+MwrE4WfnrX8+PHfzJmlaEEmIKFYMsAx7QofvvIs/OLno2hLOra+FTiusC8iBpVCXeJfUbqE9MR6jkgO6dt1GA5ynPvKSRAUY86VzkcL3FiO+ko39Vqp4SSzOLckmw4JfsbSlKw8ktk86+DXYd5bj6Pb1mmxgOFBd6atwpyLd501cf+rUnesfN+KhLy1iB3Opace5+sQUwnDMNnwpfYLSRgetjCLuuaWB/DQ2o0469Up6nGDcRYeqmtt2xaRpQ/myZJaSkUktw5V3C6OVlIGCviElT/mTDzMOZLAlHxaLyApUWiTDt+geSk8MTkX7zg3jY+d68EraqsckrPEKEndfWk/p+zNX/S91EsBPvT7I09t+FZP3yve09USONR5uqAmQTn43X7g69/7NW7/t0exoC+LHibt8WZzzxbygW+lJWq/6qgJIK5v00vPJhG8guCpp7Sk5jxDhyzMODXxzCHA4kENnjNMKSu4aaxaPo6LTnKQM/QYEpbIeZq6voUs5anJO06fd8ylLwnoMICdyy67LHvDV741Ua35piPvKOki+mwSZ5nA1k0c+8dq+O5dG/D44wPYtrfIaqrI2G0gQU1MkeJjjDmPE5JP+qh1XwEq5WLo5m06CTfD6ipPYC2oJ3PcmMFRDAKmqW67odyEODNRw2UzC5jVleXCxm160ELLpmn9TC5u7qkZdetVl+d/vmZNES+jp2VBb9i0/cvxIHd1vpeMpaU5HlpWFELJJBmfnjTXSFpVjcliHQOjJWzaM4mdg5MYmiTJFAOMTjakHmC/jbm2uC83lWL145GpM3RhamyChJthltTaqtCZUZhJML2eT66gxrIJnlRRCZmhBHWy9m3j+Q4l8SHKQ2HkwE0X9vWtwmEa8kcEWFZsuFLduHnH+MIl3TnPYxIwSh0Mg+D3tbkVUseCly62YjIcd2JRK6f5IGnn2AZ72GzcSW+a3uKHLqJ2r7ZtH6Eg212mnRqIihG5QZz3ZL2CHubaOeYiFHl2PhtBwnP3JJLxBQfn+nIBy7Ba9uzg6H/9ZOPuk4bHRsz7l5/szEhnWBfUm/2qqGoRnYx6V0250k4Uw7bToW1HMrDFgxO9StHK9sLC5huLwLZ4XDuzqBnLRSRZplgdtJCYZmRdtHcmJJU1gZbXq2ZbPBE/FlP09uUCPgT6wae2/W1y/uwvDW3dw2SnihV9xzqxVA37mdMysigRjm2p1iURCUzE1JLm2QpKW60VApO2kGH+XReCE0b3vKjf5UTZlLbvZWh13kexVaRiPo6ZlcbCZIyvkAOTcT1nX/++z/bN6bsOkfz4RwLiaN8PN4tThD9e9+j1K15/ykfbfOQRDzGwoYEJ6mB/dZDtqEHMacmgk7luhjKWIHtLjItWs6xmhlbHECWlWKqxxKOkSatWqiB2UTQlrioszWKhMSvHJLZu2zjVXf1Ug3acP6OzsWXr5u9cd+11V61Zs6benNcRvTn8UwA/H7h90AXvfnf3yvMuOnvBkqUX6QUzlqS8bM9xnHp1ogzix04hN0fqf74FlAuTbJ4LYzOGyzw2ydx5dGQMhVIJY/SAOqujGWefgTZpz6ZRV9XauN49smn3M8/+pLTz8R/efN11O/H7N//h0U78f+I/tbxI09uoM898QyLV1dXitc1KFZl6LTl+fjpMtsRr5XIq0GHSDWPa1EMVVoxJ6oqfcbO1Lds3ljKzZpb3bNpYDGZnqk/edtsRuen0mB7TY3pMj+kxPabH9Pi/MP4bmKmJQPnWQYkAAAAASUVORK5CYII=)
358
+ `,cq=`
359
+ url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAPAAAACaCAMAAACg5DWcAAAC/VBMVEUAAADF3v70+P/z+P/+///x9//3+v/3+//u9P/v9v/3+f/l8P/r8//r8//s9P/i7v/k7//0+f/+/v/h7f/f7f/d6//Y6P/b6v/c6v+72v7Z6f/////8///o8v+/3f/w9f+32P3q8//X5//n8f/W5//e7P/k7//V5v/S5f/U5f/n8P/Q4//R5P/P4v/m7//d6//N4f/o8f++1P7N4f/J3//L4P/I3v+uyf/H3v/F2v/G3f/F3P/D3P+1zf+u0v9xm/xllvXD2//y+v+22P+71v90oP3C2//A2f+/2f/J4v++2P/09f/O4f7z+P+01f7U5f/o8v/S5f5rlfbO4P9vlvs/dftilPq91/95o/yix/6ozP5KhPtDd/s2bvtEgPpxmPxvmvlwmvp6pf241P+v0P682f54o/2x1P7M4/5ynPZ9pv2RuP2bwf2t1P6e0P7K4f5Ggvt/qP2r0PxtmfqeyPy+1/6ew/9vl/uBqv3E3v6ErP6Yvfza6f+Uv/200f+Ms/95qvxWivpllvxlm/yUuv2eyv7A3f+t0/y51P+ItP2tzv9hlPtxnvxPifu50P57q/ttm/xTivxck/yf0P9wo/x3qfxonPtdk/uIr/3L3/+HtvyMuf9Fgfpqm/1xoPxakfyzzP+Ls/6n0Pu/3P+xzf+61f+CrP3I3P6PvfxTjvxckfxNh/tXj/yl1v9jmfyGr/601f6x1vt2ovu71f7F3v90nPrB2/5Nh/u71P/s9Pyn0/10p/vA3/+Ou/z5+/y31P6px/yArv641/7a5/+au/ejwf3A2f+r4v7F3P+Mz/qr2v6NsPq1zv/F2/7R5f7v9fqDrPqq1f++2P/K4v/T5f+92P/Q4PTn8fpQhvxlkf2PuvjA2f+l1f+Vufrf7PiYwPudu//d6P////9qmvxwnv1div1nmPxZj/xSifxtnP1dkf1Ug/xLffwxa/pklv0XV/lYh/wQUvpXjPxQgfw7cfsjYPtik/xHefwdXPlfk/wtZ/snZPpOhv0KTfiCqP8BpNwVAAAA4nRSTlMAWSUpBi0ZFjk1HllFQT1hXSEJZWlxgXl1WX0OEk1ZMllJhVGJbVWNlZFVnJigUW2kSp+osKy0s7iWvMDEqllWBsgxWuL+zNDUWdgRjg1eh06HC44j/v7c+HJp/f7+/SkQGPDoZF37VU0d6aGBfXxU8d9fFGEaeTHWXcyLfGvdsZz586eWVlBDxH/t6ObVp4r17snFuKuS1r+TknTk18e2sKmSStHPw5qH/fXk4cu/uIR01q1wRQzGu7uqgHli/e/sdGUw+r6zsao16dW3oXfx7pqLZjwr+r6pa0o03snIud4hjhNXlwAADUhJREFUeNrs2edPU1EYBvDyT5jUD4RvmqiJceG2puJMSDSljjJVpIhYB4gjVkGBWlCrdW8pqKgoyHCh4sa994yohWqpIiCIGN/3nHPvue4W5y0+jo+SX55zz3vOUfE/vznRZ8IVKpVK0Vxy+vTVbncVw5qN+HSs3mBoeWZY+LDmIT7jrx80Y8ag4qkRU5uH2OozCMAzrh2KiG4W4lEZ+kGDfGbM8ClO0EQ0g1UdbgUvBDoeqdFEeD84I9aAXh8AFxeGef+ijmYF+6B4YlhYRLiXg08fMyCXVBxZ0CdM4+UV2w7oSb8QAPsWJ4RFe/e+ZTVQLyYyMvLabI13Vzwyw8C8g3x8IyHFhV9W7EX+8By6oGkQTEZTuEqkFlrPLVaovOZecSXPAFwWX6w4sKCPdDTlfXj27Fm6ItxL7hVncCRxMIghsZLRlPohEcAvDqqmeoNYpTgdSQrmYGVkYGDBIXHfioZ+MWkq7ziPJB/QC15ecaA6lo0mleoE4b569apQ4w1iVU4K9fKCScXHZpN9S6V4rGXgFxunarzgBDYx1yD1UrA6MDAwF4/U4Yo5z6kXwImaBPmP53irHqEcjGJoeOzYURM0mmjF0YBEoeAXb+54wSH7QJ5ByvWBeiFqAI/M6KMJL/wg9gvglRH4XSvkHHjX+XSDxvjBih47auSEmOiwD88crF8Ev0lIkPtV2ar8bD0zMHpnxRy9zPpl4JcrNDJf01Ou6PEAzftFsFqJ3mkT5sc80Apg0u+bl0siEmQ9mYbl6KX9pqbaUlMilWRBT4OC5+xOf8W9mNA+8l7T8K7Dtyvf1FuHn1y6mBpJPmD0rpp5Tku9rOCXbzdGh0XLd01r+EjyhX4vPcG0iCILetb8zbtnTp88+sUrvqABPEnWoxjedbg3pcUTksOp1BszZ8v0yeMv11IvchEcfCdMvqetu3CIlhS8/wlNwVjcsGBBg3f0iBEvWL/E+zZ4IYziqTIdxVYDX9AScN4o6p1JvOPK3gCYeQEcnCDbNZ2XoZeOXw5mG9b08ePBGzCOf8AIDpLtKA7P4V6ltOFY3LBW4YY1GrwBARUv0cv6DQ5aF5EgzzUN7zoCWAlg3nAu26DHgxfAT8e9Ai4EvAiulukoDrNKF7QUnIEbtOgFccBbScFB1bflOYqtgQbeL/7FwXzDQu7TpwH2twCmXgAHy3IUw7sOX9B4guZgsmEx71NMWUAwKzgIE3InQX6jGN51mFe8EorgR7vRO1rotwKiDab9YsHVIXtleCuGdx3GZRd+P2XqLQFMN6wRgresouwpHLHYggZwiPxGcYRVz/slYLVaBD8gXt5vGeR59VvaL4KdK2T30sPedejni/3ClT9ZAJ9j/TIwcp8/1QWJ3hDnugiZ/Y/5mUd6oV72AcMjZfJDAcw3aOSi93llWbXgBbCzUGajOEdJvT7SNywRfJkPJNFbWVYOYvQi+N1tjay2rbgremm/fvTN7hAHUy8DAxdSW1Etep3OEFmN4iJrCnIxyAWvmlz589l92AJeCHIrKki/Wm1trdbupB8wpkFWozgj9lOwmj3pLKYvHiUI5hs0gsFb6ygLAi71vmuQ0yiOt9rYAGYLGrxjyRPH8pvQ74kkcT0LC1pbWVtbX+/QvmPgdxAZjWJ81yFWseApY9mVf8Oe9DQLn8C8X229w+GoDHWCl4Lr5DOK4V1HGMB8QU8TrvzSDRrB7ANGr6OqEiqm/TbUyGcU5/gZ+PxVix9wDL/yC/sz9SK4HsB2u92he8e8ELmM4pHwrgNeoV8/5mVXfu4VJzD2C2A7pKoe1jPz1t3WyOFWHB9FRpKS1qsUBhJ68cqfZBmnLZOesCrBy/p9Zq+qyi6voeCahhpnxoTkM/9wxfG2Y1dMxiPmPANwGZh62YaF3puHYZd2APhr/QK4vD4EvQCuqXGdMJvNRtOiPNsNxT+WG365+cYxY47ALzM83FEwtEs2LOhXeJNNo3P4RKU4gHnBkGwAl2fXoBfBdYlmyJEj8A8b83P9/hF1PFgHj+ExBxqE/yEUT1jiBn2CnbQS6YKmXC16EVyVDd5ye1ANchFcU1JiNo/hyc+1xSv+ZuKPXTX1+zTmA3pfKZj/JxJZ0E9oxpVV8H6ZtwpSDnlvF8GvL5tLANxPGlOHqL9SNWKzhvf7ImdT+AsHgumJg71RWo4wsEVYz5V44GD9Mu/78tA6sqDr6lzBxhKjsZ8Yjk75s00X3Ss2DecZTP/CmDNSqFetVlIwKRgmMH2Tpd5L5RXCABa8VRjifa+zg5eCXSUANrJ/Hv/wmK7eU/yZFEV2yBr8jRjv2+gBGsXEy75g9ghdeYJ8wlo+kGBB834ZWKdzgRfBry1GyOCB3/hx3X570agd+J2cjTUI3y94pWBsGA6VSSOO3CxJfE4Kxn5rHZ96kftel+0ELRbsagBv1uDv/MTfuriLfDsM+G6MOXrhPIlB8BRhj4aKgTzakrQ9yWKxsAksWdCUC2BIaLaLgRsfZ2ZmZX3/p/4mc9G9bv2/n6z+Z9WkXj+1FMxOWSCenE5iwSQlJWkxjnq7OJA4WFftAi6Cl2RlZkF+8KOv2n41915B974/zH3/FHrgENLbD8G4S4N4y8w9GGJOS0+i2Q4Bb6K4YSE4NBQqpuDXrkyouO+Pc6r4V9Z8vVtPd2JOEe6DArh37yk4h7etidk8B8hbNmzYAOb1kPQ0EhBDEkkQjFySoNd1BNw4OTPT1NOtdPtFNRfN6NLDrZyFkcS56IXQiretAfLm5ct3L1u2bANmPUnaSqJegkGyLlEniN/XIff168YgU6bJ1MO9lBp+vub4a526uxcTjCQAqyX1CmIkg3nN3Llzl0OWQah6JWYnZgnJpEmTdJNCaRoBjOJMBHd3Nz+5suMLurqds3kGvp7Ry8Agng3kBQsWABrVEKbetWvX0qVLRfSOJTt2TCIBtK4BtAhON5n27evqfgrif4Lbxf2YcsgXzLlcHBc3avbskWvXrl2AWQyZS9Xz5jE0qhcuXLgDs46Jyxtpww37AHyqiwdpIrnoWidPcvaY0le6Qasl5DjMbMjaz9XzMBsZeiEEwOsoudzZSCt+sA/AnTxKE8hFhnadPcmpzBQ1/4B7wyj+tGRm5mqKXrFiBUNv3AjkvWhmZF0ogDF79p0/dapTZ4/SzuDpjX51R89SarSx4yQjS5OMf8WxHBLQRxccPHgQ0RBihuzdi2YU67IpuNF17vz5U6WlnTt6ltXXPeAOudje4+QUp/hFKaP8or6W5KhkCPyFiUuOOwQB+FHIQcwKhr4tmGFM1TeSuJznz5/PLy1t73GuDXHXa2vdzuO0b3cgNzc39rNMhN9fzwQYVJA1GD6t8FuGLTtte3Z20rn160LqXHVB/v7+m/JL27fzPK1tbtbbpim50Cb2bmFhn5/O0W0xJzGb/Ddtyvc/eTIfvRcutGvTlFx0o+Tjrdo2KVu3Xli0qNcm/1+ZTTSLFl3Y2qZtkzL0h1+yoXVTA+IOQP5lWSSmQ4etW1s3NfofLOeP7JJNbhpBEIVLgME/SRwgQBQHoRAwCgsQ2XmbLYwwylnY+SJzAm6QC3AFX8A3Sb/urn6DYWIhUBY03/RU16t+VQ2CH56BJixgIeSRrlY/jw++7SpNefW+/OtvvWwNXtMbvAF9szRNH45J+pCaZZjN9v9UpJX7jV+avQOY93qz2W8wM2BHaiVebgjuTFP2eQ+eDJh9AM2l7GTdPZRFd74A88XcsED0ryuignOU6MFSA4Qauibagd2DWe/8vs0TZi1bFL4YnhCw5cCj/FPmCG92MHvSQF4rjrPmXCucm2x942WjddI0KrJBUv984tQTyXLbOHluSkKe++Nxf4yAx+4ACqKPDdrVLHoOuwtwee0c3qa5bjTb+QG9QKu200qvtJHBz6CwNm4caHiWwMunKCiLclOPgvCnXt9Gwlosfz7Ggv+Jr26ioSiG0uReGbowHA6RYoXU7Faqz7q0zQvtgMQKblUQBCJ08/Q+TMLSE14O2AEjAqS6obF4v3pH+ImvR98NI/O44BNECF8EasSZi1jWAZzKjnGn6kce3LwCki16ApymcqZsAz8jJ3uN4BbQGVURuWy32494sSwUm4VHCuSU2QY8WdDHGv3ZWbyS0ODsGtjG851tmRpdlyK1b4bJZOJfBFSw+TjRDLk71zIW8Jpn2NgFE6L62cRR4VpfpV+PkGliHrqgEOkIx2z300tSeRcVZSm8j4qCXHyIiqJcXEZFR67ioiOdTueXf5C6yGDqrAGkqPtdO1w/NKLXnKjmDkHON4BOlnWmOrKXwGuDdnIsLYgbN8lFZEgxMqRaOEmKOfVrqVS3KVQJ2ct4+IDDZzLlXpbpdVRMpVaOippIJSpEJPlqmCJgdwnzKR4Eu2hFibUcaGFl+wX0EUhmvJVlSHa7nGPpY+udiJTuLAmCQpVQbUMDIjVT/yZBU9JGLwsbBgOKic13TWEOp2ashQtKYqgFkloOPP8PJEfwJjlCQCke5MyZM3/bg0MCAAAAAEH/X3vCCAAAAAAAAAAAALMAtVxBZCV0s74AAAAASUVORK5CYII=)`,dq="url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAtAAAABoBAMAAAAqf9qeAAAAD1BMVEXx/+by/+ry/+7z//Hz//QpjUuZAAAIvUlEQVR42uSaW5KjMAxFfXcgZQfADpjeQWf/a5oqLDmPwXLhAH2ZPh+dfBrVaeVaKN0X/lQZ1xm0SWJHm9zGderluteoFno2xgq3jK6AdxIR8kCRWSmwM64zGxsK3W/0kAmMlkIiAgWtM2TOMHoyqkZrDSihyE9Gv8ut/2IPx240rmW0kBudWa3zRXq0oTv26K8DjM4EPfrhMZXRBfxE6vje02g3hdJoPLiI0c3UIZw9Whxtp45xq9FfZ6YOyvI6QCrU6+0PN1bw6tAZzVTzd6NlV6PP7NHK3KPxIDVbtN52N/p7q9HjltRBZXRBDWiNY412fonRGhk9Mhg9GFfv0UHq4DBaq4CvumupIxre6cJFjFbOS/gORk8UPVoUBmPnQMGN7ujR03R+6ggH0g6T0VK+NEOHnmr0vMFoh9do8Bo9/689Wts3w/EMo2dne+ogrK7zfKpoeGefDEYPwzWHHVHo+Nzoe1DozGajh0sOpIGEQqtHsxh9zWFHOQqaqYPdaAiz0Q/skD1Gz5meQv+WHi0pHTPq6C90y2it47Ikh0ZpAHiRWxG8YOlY6+gx2qgavSFIE70Hf0sd+HmjJ2N76lBYjcVhMXrx+eViGI2jOYwOhx32AMkAT+wovxeB0Q6H0eGqEq/RCY4bjWDUwWF00KNdF4PKaGvTAEvq6F/sUHGj2VIHFvI3bY46LmC0gjZIJ5HjjP6KCn3AYofXWGGwKI2n2GFH7Ni8m7w2HUZ3vGIZgtThTToZNEY//rsUGhFPSfcyOn7F4kSLHaqMG9JA/iNSTvix0Z8X2pnj7bvYaMnQKJ0PAwDSbtEnGT07QewIeDaZRenngYCdMBh10Bk9rAkNM9rgCdIpyavR4Dc6U2kcT7cvsOwbYGFpIFHoaPdoi9EHGd0/7KBJ0iXTe8+QfVPH/WSjFa9Gg+NuCOSPFIcOHVr3lT6jj7waImWDyIwGUqRye6bUZfQRww6FCbM4xBKkUXp0kiB0qJnTYfT9bKMdmENEd0NLHVcyOp52mC+LQhyXQzgpDB3FnxuL0W5yaLR3RordDs/0CRqHjvi+0mt0e9jRvVBqnxx3QzvCx0ZPXpogdASF3vVq6ECX5swykhYDbrSiZ6bkNe4o9P7DDlHbmsi9keAtC4xliwbt0KEji9F/mzvDJKdhGIxaN5B7gyY3oHsD9v5nYvpZsgkzlliliiPKFn7FEa/ys+yU7X+J5pusDdv1lehpdKDvQ7RrHfDpco+WNEnIaoURRomeEq25CSc64TEWqtRovscuizp90RRHpANbs4Z0eImOi/QsyUo0lTswrQMA0Tq+kEYr0YFER0W6h0E0+LmFSXMPUqKNnaw7ES35tYnG+w12WYiG/5BNtNMk1dx8nmhjNrQ6pfjRNo7ucLhjTBWinjOkPelAfJJoXzvMr2Tj2om+gUlDfiSKnjyxSvRz+zHRX06i4yLddzGtbum7Rt9hl2X0EGX57YRL9OlEnycaoURXKjc43KEjGETX2KGObZfcxBMd0I4HwiaairK8FGnw3MIm2rW700QHtMP2DiWaynKTVp4xAh2e+dDsPNF3I5qVaC58B5NuQwDQp4j+hTCkI4Ho7WkXaRB9B5MWnjXqNPzT/rsSHUh0XKT76OwaDZ7WqrRcW6TD14653bUIER0XaXsJTnjdwaQPPHP9ANH7nkJ0UDsIRFcBeSnSOkUwV1KiyTrsn0C0L9KvoHaAaNzi2pP/JFHwspv++oefE/3lJPq0diCmRIvgrTVpXHWArDNihOiXEh1JdFykzSJNevQfDxquQ5pItAOj4EocL9GbfthfOUTHtIPqIBqxCmnugTQTGngx6ZBqejHRm0O0zIS1rDRp0DzAZqylyADalI450d9OotO0Q2uHzIcLkeZ+8ULA+f2LalA6EK9gouMi7Zzt0J0WxJpzpXQMFDQ+IR2I/WKiN0s7qHfX5WHwJedKAXRv4FVuMsRR6cgl+rXFWtJ6gKJSWYY0HYKbCRnbso50TOPLS3RUO/xNluZ2LeOjQi9BWi8PlAk/AtJhPG9vJFoTfUY7fKK1yd6l42qkiQ7WAaLZ210xSnQi0b52IObFo8+FgvTFROOKEhXGWcPN6F3jXKI/rR3UiK4C9opnDuWKjWrdlmen0xEi+ttLdKJ2KNHUpsNSFpwrHRfEpIwB4WdYoxGBRGdqRzPoA9FUrmQaQPdCLVMhuA5KRxbRvnY8+yDnfdL2ajW6OFU6CWj8Fn+eO4fczBaRDj/Rad0OnQfbuaXCdPVZaQDdC7RWaFQyWzpcoiOJTtUOXR2ihpRy/QEP8KxvVTJMU+3wpCONaF87tHY8LaLRMSvA60rzoOMVtZk40bsBy3wuPEN0qnYo0XhJXOnShwVpFaINnrOkw0+0T7RzFp1Zya7ljZeSlh4DaNWO8VVPU4sOlOhQouPaMUOaDyfSiwJtVOksoIvsYEKkp0TjXlzpyEi0rx0aBtHd8ACYUaVzgMYVWf/VrUZHReU4Kx1+on+Hi7RxXElaDCC61WbDpVOAhnaQToKE14RpLFcSpAOJPqkdGOHcpIn6zQEtoy+dCTSBaM+i3/JkzIVriUbdcB6Ea9ZR/2p2BPrScaBZzz1Uyzr0PtztlT2W6LPdjqeQMENai+M4V2qsD3OAlq/IVMecAC3JTpAOJPqsdqB2WERLcex84d1AOgVolA0xDsui4RyedOQkepcwZ8M6N2mqUhzxF6HZQDoDaCoMnDGMWYkG1OZyJZ9ov0jPTVpb/7hJzW4+0vxvhZYJ2WpFt0/mFt5e8RN9vtvh/D+/uiOKrnQ60qD4ADTyLN3xGdCN6PrwiU5J9IjNN+nHjGii/tEFawbSKUCzzBQ20bAOY7mSS7S/Ntzw/LSFNBbgoIrR7UhmGhQfKrS4TzMOq3WHEp0gHUj0+SIttj/1DhDNyDSI7kgnMS0ky5sSDcWc1Q5F5RFYF4YSHWzgYaBTosf5IEKNTkVaLzCAFtcw0vwYkSMd338AsPwZPYZjSIIAAAAASUVORK5CYII=)",ra="transition-all duration-200 ease-out",x0=({code:e,className:t,style:n})=>C.jsx("i",{className:`sdk-icon ${t||""}`,style:n,dangerouslySetInnerHTML:{__html:e}}),fq=()=>C.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",children:C.jsx("path",{d:"M13 2C13.5304 2 14.039 2.21086 14.4141 2.58594C14.7891 2.96101 15 3.46957 15 4V12C15 12.5304 14.7891 13.039 14.4141 13.4141C14.039 13.7891 13.5304 14 13 14H3C2.46957 14 1.96101 13.7891 1.58594 13.4141C1.21086 13.039 1 12.5304 1 12V4C1 3.46957 1.21086 2.96101 1.58594 2.58594C1.96101 2.21086 2.46957 2 3 2H13ZM3 3C2.7551 3.00003 2.51896 3.09021 2.33594 3.25293C2.15294 3.41565 2.03553 3.63963 2.00684 3.88281L2 4V12C2.00003 12.2449 2.09021 12.481 2.25293 12.6641C2.41565 12.8471 2.63963 12.9645 2.88281 12.9932L3 13H11V3H3Z"})}),pq=()=>C.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",children:[C.jsx("path",{d:"M13 2C13.5304 2 14.039 2.21086 14.4141 2.58594C14.7891 2.96101 15 3.46957 15 4V12C15 12.5304 14.7891 13.039 14.4141 13.4141C14.039 13.7891 13.5304 14 13 14H3C2.46957 14 1.96101 13.7891 1.58594 13.4141C1.21086 13.039 1 12.5304 1 12V4C1 3.46957 1.21086 2.96101 1.58594 2.58594C1.96101 2.21086 2.46957 2 3 2H13ZM3 3C2.7551 3.00003 2.51896 3.09021 2.33594 3.25293C2.15294 3.41565 2.03553 3.63963 2.00684 3.88281L2 4V12C2.00003 12.2449 2.09021 12.481 2.25293 12.6641C2.41565 12.8471 2.63963 12.9645 2.88281 12.9932L3 13H13C13.2449 13 13.481 12.9098 13.6641 12.7471C13.8471 12.5843 13.9645 12.3604 13.9932 12.1172L14 12V4C14 3.7551 13.9098 3.51896 13.7471 3.33594C13.5843 3.15294 13.3604 3.03553 13.1172 3.00684L13 3H3ZM12.5 4C12.7761 4 13 4.22386 13 4.5V11.5C13 11.7761 12.7761 12 12.5 12H10.5C10.2239 12 10 11.7761 10 11.5V4.5C10 4.22386 10.2239 4 10.5 4H12.5Z"}),C.jsx("path",{d:"M13 2C13.5304 2 14.039 2.21086 14.4141 2.58594C14.7891 2.96101 15 3.46957 15 4V12C15 12.5304 14.7891 13.039 14.4141 13.4141C14.039 13.7891 13.5304 14 13 14H3C2.46957 14 1.96101 13.7891 1.58594 13.4141C1.21086 13.039 1 12.5304 1 12V4C1 3.46957 1.21086 2.96101 1.58594 2.58594C1.96101 2.21086 2.46957 2 3 2H13ZM3 3C2.7551 3.00003 2.51896 3.09021 2.33594 3.25293C2.15294 3.41565 2.03553 3.63963 2.00684 3.88281L2 4V12C2.00003 12.2449 2.09021 12.481 2.25293 12.6641C2.41565 12.8471 2.63963 12.9645 2.88281 12.9932L3 13H13C13.2449 13 13.481 12.9098 13.6641 12.7471C13.8471 12.5843 13.9645 12.3604 13.9932 12.1172L14 12V4C14 3.7551 13.9098 3.51896 13.7471 3.33594C13.5843 3.15294 13.3604 3.03553 13.1172 3.00684L13 3H3ZM12.5 4C12.7761 4 13 4.22386 13 4.5V11.5C13 11.7761 12.7761 12 12.5 12H10.5C10.2239 12 10 11.7761 10 11.5V4.5C10 4.22386 10.2239 4 10.5 4H12.5Z","fill-opacity":"0.2"}),C.jsx("path",{d:"M13 2C13.5304 2 14.039 2.21086 14.4141 2.58594C14.7891 2.96101 15 3.46957 15 4V12C15 12.5304 14.7891 13.039 14.4141 13.4141C14.039 13.7891 13.5304 14 13 14H3C2.46957 14 1.96101 13.7891 1.58594 13.4141C1.21086 13.039 1 12.5304 1 12V4C1 3.46957 1.21086 2.96101 1.58594 2.58594C1.96101 2.21086 2.46957 2 3 2H13ZM3 3C2.7551 3.00003 2.51896 3.09021 2.33594 3.25293C2.15294 3.41565 2.03553 3.63963 2.00684 3.88281L2 4V12C2.00003 12.2449 2.09021 12.481 2.25293 12.6641C2.41565 12.8471 2.63963 12.9645 2.88281 12.9932L3 13H13C13.2449 13 13.481 12.9098 13.6641 12.7471C13.8471 12.5843 13.9645 12.3604 13.9932 12.1172L14 12V4C14 3.7551 13.9098 3.51896 13.7471 3.33594C13.5843 3.15294 13.3604 3.03553 13.1172 3.00684L13 3H3ZM12.5 4C12.7761 4 13 4.22386 13 4.5V11.5C13 11.7761 12.7761 12 12.5 12H10.5C10.2239 12 10 11.7761 10 11.5V4.5C10 4.22386 10.2239 4 10.5 4H12.5Z","fill-opacity":"0.2"}),C.jsx("path",{d:"M13 2C13.5304 2 14.039 2.21086 14.4141 2.58594C14.7891 2.96101 15 3.46957 15 4V12C15 12.5304 14.7891 13.039 14.4141 13.4141C14.039 13.7891 13.5304 14 13 14H3C2.46957 14 1.96101 13.7891 1.58594 13.4141C1.21086 13.039 1 12.5304 1 12V4C1 3.46957 1.21086 2.96101 1.58594 2.58594C1.96101 2.21086 2.46957 2 3 2H13ZM3 3C2.7551 3.00003 2.51896 3.09021 2.33594 3.25293C2.15294 3.41565 2.03553 3.63963 2.00684 3.88281L2 4V12C2.00003 12.2449 2.09021 12.481 2.25293 12.6641C2.41565 12.8471 2.63963 12.9645 2.88281 12.9932L3 13H13C13.2449 13 13.481 12.9098 13.6641 12.7471C13.8471 12.5843 13.9645 12.3604 13.9932 12.1172L14 12V4C14 3.7551 13.9098 3.51896 13.7471 3.33594C13.5843 3.15294 13.3604 3.03553 13.1172 3.00684L13 3H3ZM12.5 4C12.7761 4 13 4.22386 13 4.5V11.5C13 11.7761 12.7761 12 12.5 12H10.5C10.2239 12 10 11.7761 10 11.5V4.5C10 4.22386 10.2239 4 10.5 4H12.5Z","fill-opacity":"0.2"}),C.jsx("path",{d:"M13 2C13.5304 2 14.039 2.21086 14.4141 2.58594C14.7891 2.96101 15 3.46957 15 4V12C15 12.5304 14.7891 13.039 14.4141 13.4141C14.039 13.7891 13.5304 14 13 14H3C2.46957 14 1.96101 13.7891 1.58594 13.4141C1.21086 13.039 1 12.5304 1 12V4C1 3.46957 1.21086 2.96101 1.58594 2.58594C1.96101 2.21086 2.46957 2 3 2H13ZM3 3C2.7551 3.00003 2.51896 3.09021 2.33594 3.25293C2.15294 3.41565 2.03553 3.63963 2.00684 3.88281L2 4V12C2.00003 12.2449 2.09021 12.481 2.25293 12.6641C2.41565 12.8471 2.63963 12.9645 2.88281 12.9932L3 13H13C13.2449 13 13.481 12.9098 13.6641 12.7471C13.8471 12.5843 13.9645 12.3604 13.9932 12.1172L14 12V4C14 3.7551 13.9098 3.51896 13.7471 3.33594C13.5843 3.15294 13.3604 3.03553 13.1172 3.00684L13 3H3ZM12.5 4C12.7761 4 13 4.22386 13 4.5V11.5C13 11.7761 12.7761 12 12.5 12H10.5C10.2239 12 10 11.7761 10 11.5V4.5C10 4.22386 10.2239 4 10.5 4H12.5Z","fill-opacity":"0.2"}),C.jsx("path",{d:"M13 2C13.5304 2 14.039 2.21086 14.4141 2.58594C14.7891 2.96101 15 3.46957 15 4V12C15 12.5304 14.7891 13.039 14.4141 13.4141C14.039 13.7891 13.5304 14 13 14H3C2.46957 14 1.96101 13.7891 1.58594 13.4141C1.21086 13.039 1 12.5304 1 12V4C1 3.46957 1.21086 2.96101 1.58594 2.58594C1.96101 2.21086 2.46957 2 3 2H13ZM3 3C2.7551 3.00003 2.51896 3.09021 2.33594 3.25293C2.15294 3.41565 2.03553 3.63963 2.00684 3.88281L2 4V12C2.00003 12.2449 2.09021 12.481 2.25293 12.6641C2.41565 12.8471 2.63963 12.9645 2.88281 12.9932L3 13H13C13.2449 13 13.481 12.9098 13.6641 12.7471C13.8471 12.5843 13.9645 12.3604 13.9932 12.1172L14 12V4C14 3.7551 13.9098 3.51896 13.7471 3.33594C13.5843 3.15294 13.3604 3.03553 13.1172 3.00684L13 3H3ZM12.5 4C12.7761 4 13 4.22386 13 4.5V11.5C13 11.7761 12.7761 12 12.5 12H10.5C10.2239 12 10 11.7761 10 11.5V4.5C10 4.22386 10.2239 4 10.5 4H12.5Z","fill-opacity":"0.2"}),C.jsx("path",{d:"M13 2C13.5304 2 14.039 2.21086 14.4141 2.58594C14.7891 2.96101 15 3.46957 15 4V12C15 12.5304 14.7891 13.039 14.4141 13.4141C14.039 13.7891 13.5304 14 13 14H3C2.46957 14 1.96101 13.7891 1.58594 13.4141C1.21086 13.039 1 12.5304 1 12V4C1 3.46957 1.21086 2.96101 1.58594 2.58594C1.96101 2.21086 2.46957 2 3 2H13ZM3 3C2.7551 3.00003 2.51896 3.09021 2.33594 3.25293C2.15294 3.41565 2.03553 3.63963 2.00684 3.88281L2 4V12C2.00003 12.2449 2.09021 12.481 2.25293 12.6641C2.41565 12.8471 2.63963 12.9645 2.88281 12.9932L3 13H13C13.2449 13 13.481 12.9098 13.6641 12.7471C13.8471 12.5843 13.9645 12.3604 13.9932 12.1172L14 12V4C14 3.7551 13.9098 3.51896 13.7471 3.33594C13.5843 3.15294 13.3604 3.03553 13.1172 3.00684L13 3H3ZM12.5 4C12.7761 4 13 4.22386 13 4.5V11.5C13 11.7761 12.7761 12 12.5 12H10.5C10.2239 12 10 11.7761 10 11.5V4.5C10 4.22386 10.2239 4 10.5 4H12.5Z","fill-opacity":"0.2"}),C.jsx("path",{d:"M13 2C13.5304 2 14.039 2.21086 14.4141 2.58594C14.7891 2.96101 15 3.46957 15 4V12C15 12.5304 14.7891 13.039 14.4141 13.4141C14.039 13.7891 13.5304 14 13 14H3C2.46957 14 1.96101 13.7891 1.58594 13.4141C1.21086 13.039 1 12.5304 1 12V4C1 3.46957 1.21086 2.96101 1.58594 2.58594C1.96101 2.21086 2.46957 2 3 2H13ZM3 3C2.7551 3.00003 2.51896 3.09021 2.33594 3.25293C2.15294 3.41565 2.03553 3.63963 2.00684 3.88281L2 4V12C2.00003 12.2449 2.09021 12.481 2.25293 12.6641C2.41565 12.8471 2.63963 12.9645 2.88281 12.9932L3 13H13C13.2449 13 13.481 12.9098 13.6641 12.7471C13.8471 12.5843 13.9645 12.3604 13.9932 12.1172L14 12V4C14 3.7551 13.9098 3.51896 13.7471 3.33594C13.5843 3.15294 13.3604 3.03553 13.1172 3.00684L13 3H3ZM12.5 4C12.7761 4 13 4.22386 13 4.5V11.5C13 11.7761 12.7761 12 12.5 12H10.5C10.2239 12 10 11.7761 10 11.5V4.5C10 4.22386 10.2239 4 10.5 4H12.5Z","fill-opacity":"0.2"}),C.jsx("path",{d:"M13 2C13.5304 2 14.039 2.21086 14.4141 2.58594C14.7891 2.96101 15 3.46957 15 4V12C15 12.5304 14.7891 13.039 14.4141 13.4141C14.039 13.7891 13.5304 14 13 14H3C2.46957 14 1.96101 13.7891 1.58594 13.4141C1.21086 13.039 1 12.5304 1 12V4C1 3.46957 1.21086 2.96101 1.58594 2.58594C1.96101 2.21086 2.46957 2 3 2H13ZM3 3C2.7551 3.00003 2.51896 3.09021 2.33594 3.25293C2.15294 3.41565 2.03553 3.63963 2.00684 3.88281L2 4V12C2.00003 12.2449 2.09021 12.481 2.25293 12.6641C2.41565 12.8471 2.63963 12.9645 2.88281 12.9932L3 13H13C13.2449 13 13.481 12.9098 13.6641 12.7471C13.8471 12.5843 13.9645 12.3604 13.9932 12.1172L14 12V4C14 3.7551 13.9098 3.51896 13.7471 3.33594C13.5843 3.15294 13.3604 3.03553 13.1172 3.00684L13 3H3ZM12.5 4C12.7761 4 13 4.22386 13 4.5V11.5C13 11.7761 12.7761 12 12.5 12H10.5C10.2239 12 10 11.7761 10 11.5V4.5C10 4.22386 10.2239 4 10.5 4H12.5Z","fill-opacity":"0.2"})]}),hq=()=>C.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",children:[C.jsx("path",{d:"M9.00669 7.99894L14.2992 2.7038C14.4278 2.57406 14.5 2.39872 14.5 2.21597C14.5 2.03322 14.4278 1.85788 14.2992 1.72814L14.271 1.69996C14.1411 1.57218 13.9662 1.50058 13.784 1.50058C13.6018 1.50058 13.4269 1.57218 13.297 1.69996L8.00217 7.00331L2.70967 1.69996C2.57969 1.57183 2.40454 1.5 2.22207 1.5C2.0396 1.5 1.86446 1.57183 1.73448 1.69996L1.70515 1.72814C1.64021 1.79157 1.58861 1.86735 1.55338 1.95103C1.51815 2.0347 1.5 2.12458 1.5 2.21538C1.5 2.30618 1.51815 2.39606 1.55338 2.47974C1.58861 2.56341 1.64021 2.6392 1.70515 2.70263L6.99765 7.99894L1.70515 13.2964C1.57687 13.4261 1.50492 13.6012 1.50492 13.7837C1.50492 13.9661 1.57687 14.1412 1.70515 14.2709L1.73448 14.2991C1.86411 14.4274 2.03912 14.4994 2.22149 14.4994C2.40386 14.4994 2.57886 14.4274 2.70849 14.2991L8.00217 9.00396L13.2947 14.2991C13.4243 14.4278 13.5996 14.5 13.7823 14.5C13.9649 14.5 14.1402 14.4278 14.2699 14.2991L14.2992 14.2709C14.4275 14.1412 14.4994 13.9661 14.4994 13.7837C14.4994 13.6012 14.4275 13.4261 14.2992 13.2964L9.00786 7.99894H9.00669Z"}),C.jsx("path",{d:"M9.00669 7.99894L14.2992 2.7038C14.4278 2.57406 14.5 2.39872 14.5 2.21597C14.5 2.03322 14.4278 1.85788 14.2992 1.72814L14.271 1.69996C14.1411 1.57218 13.9662 1.50058 13.784 1.50058C13.6018 1.50058 13.4269 1.57218 13.297 1.69996L8.00217 7.00331L2.70967 1.69996C2.57969 1.57183 2.40454 1.5 2.22207 1.5C2.0396 1.5 1.86446 1.57183 1.73448 1.69996L1.70515 1.72814C1.64021 1.79157 1.58861 1.86735 1.55338 1.95103C1.51815 2.0347 1.5 2.12458 1.5 2.21538C1.5 2.30618 1.51815 2.39606 1.55338 2.47974C1.58861 2.56341 1.64021 2.6392 1.70515 2.70263L6.99765 7.99894L1.70515 13.2964C1.57687 13.4261 1.50492 13.6012 1.50492 13.7837C1.50492 13.9661 1.57687 14.1412 1.70515 14.2709L1.73448 14.2991C1.86411 14.4274 2.03912 14.4994 2.22149 14.4994C2.40386 14.4994 2.57886 14.4274 2.70849 14.2991L8.00217 9.00396L13.2947 14.2991C13.4243 14.4278 13.5996 14.5 13.7823 14.5C13.9649 14.5 14.1402 14.4278 14.2699 14.2991L14.2992 14.2709C14.4275 14.1412 14.4994 13.9661 14.4994 13.7837C14.4994 13.6012 14.4275 13.4261 14.2992 13.2964L9.00786 7.99894H9.00669Z","fill-opacity":"0.2"}),C.jsx("path",{d:"M9.00669 7.99894L14.2992 2.7038C14.4278 2.57406 14.5 2.39872 14.5 2.21597C14.5 2.03322 14.4278 1.85788 14.2992 1.72814L14.271 1.69996C14.1411 1.57218 13.9662 1.50058 13.784 1.50058C13.6018 1.50058 13.4269 1.57218 13.297 1.69996L8.00217 7.00331L2.70967 1.69996C2.57969 1.57183 2.40454 1.5 2.22207 1.5C2.0396 1.5 1.86446 1.57183 1.73448 1.69996L1.70515 1.72814C1.64021 1.79157 1.58861 1.86735 1.55338 1.95103C1.51815 2.0347 1.5 2.12458 1.5 2.21538C1.5 2.30618 1.51815 2.39606 1.55338 2.47974C1.58861 2.56341 1.64021 2.6392 1.70515 2.70263L6.99765 7.99894L1.70515 13.2964C1.57687 13.4261 1.50492 13.6012 1.50492 13.7837C1.50492 13.9661 1.57687 14.1412 1.70515 14.2709L1.73448 14.2991C1.86411 14.4274 2.03912 14.4994 2.22149 14.4994C2.40386 14.4994 2.57886 14.4274 2.70849 14.2991L8.00217 9.00396L13.2947 14.2991C13.4243 14.4278 13.5996 14.5 13.7823 14.5C13.9649 14.5 14.1402 14.4278 14.2699 14.2991L14.2992 14.2709C14.4275 14.1412 14.4994 13.9661 14.4994 13.7837C14.4994 13.6012 14.4275 13.4261 14.2992 13.2964L9.00786 7.99894H9.00669Z","fill-opacity":"0.2"}),C.jsx("path",{d:"M9.00669 7.99894L14.2992 2.7038C14.4278 2.57406 14.5 2.39872 14.5 2.21597C14.5 2.03322 14.4278 1.85788 14.2992 1.72814L14.271 1.69996C14.1411 1.57218 13.9662 1.50058 13.784 1.50058C13.6018 1.50058 13.4269 1.57218 13.297 1.69996L8.00217 7.00331L2.70967 1.69996C2.57969 1.57183 2.40454 1.5 2.22207 1.5C2.0396 1.5 1.86446 1.57183 1.73448 1.69996L1.70515 1.72814C1.64021 1.79157 1.58861 1.86735 1.55338 1.95103C1.51815 2.0347 1.5 2.12458 1.5 2.21538C1.5 2.30618 1.51815 2.39606 1.55338 2.47974C1.58861 2.56341 1.64021 2.6392 1.70515 2.70263L6.99765 7.99894L1.70515 13.2964C1.57687 13.4261 1.50492 13.6012 1.50492 13.7837C1.50492 13.9661 1.57687 14.1412 1.70515 14.2709L1.73448 14.2991C1.86411 14.4274 2.03912 14.4994 2.22149 14.4994C2.40386 14.4994 2.57886 14.4274 2.70849 14.2991L8.00217 9.00396L13.2947 14.2991C13.4243 14.4278 13.5996 14.5 13.7823 14.5C13.9649 14.5 14.1402 14.4278 14.2699 14.2991L14.2992 14.2709C14.4275 14.1412 14.4994 13.9661 14.4994 13.7837C14.4994 13.6012 14.4275 13.4261 14.2992 13.2964L9.00786 7.99894H9.00669Z","fill-opacity":"0.2"}),C.jsx("path",{d:"M9.00669 7.99894L14.2992 2.7038C14.4278 2.57406 14.5 2.39872 14.5 2.21597C14.5 2.03322 14.4278 1.85788 14.2992 1.72814L14.271 1.69996C14.1411 1.57218 13.9662 1.50058 13.784 1.50058C13.6018 1.50058 13.4269 1.57218 13.297 1.69996L8.00217 7.00331L2.70967 1.69996C2.57969 1.57183 2.40454 1.5 2.22207 1.5C2.0396 1.5 1.86446 1.57183 1.73448 1.69996L1.70515 1.72814C1.64021 1.79157 1.58861 1.86735 1.55338 1.95103C1.51815 2.0347 1.5 2.12458 1.5 2.21538C1.5 2.30618 1.51815 2.39606 1.55338 2.47974C1.58861 2.56341 1.64021 2.6392 1.70515 2.70263L6.99765 7.99894L1.70515 13.2964C1.57687 13.4261 1.50492 13.6012 1.50492 13.7837C1.50492 13.9661 1.57687 14.1412 1.70515 14.2709L1.73448 14.2991C1.86411 14.4274 2.03912 14.4994 2.22149 14.4994C2.40386 14.4994 2.57886 14.4274 2.70849 14.2991L8.00217 9.00396L13.2947 14.2991C13.4243 14.4278 13.5996 14.5 13.7823 14.5C13.9649 14.5 14.1402 14.4278 14.2699 14.2991L14.2992 14.2709C14.4275 14.1412 14.4994 13.9661 14.4994 13.7837C14.4994 13.6012 14.4275 13.4261 14.2992 13.2964L9.00786 7.99894H9.00669Z","fill-opacity":"0.2"}),C.jsx("path",{d:"M9.00669 7.99894L14.2992 2.7038C14.4278 2.57406 14.5 2.39872 14.5 2.21597C14.5 2.03322 14.4278 1.85788 14.2992 1.72814L14.271 1.69996C14.1411 1.57218 13.9662 1.50058 13.784 1.50058C13.6018 1.50058 13.4269 1.57218 13.297 1.69996L8.00217 7.00331L2.70967 1.69996C2.57969 1.57183 2.40454 1.5 2.22207 1.5C2.0396 1.5 1.86446 1.57183 1.73448 1.69996L1.70515 1.72814C1.64021 1.79157 1.58861 1.86735 1.55338 1.95103C1.51815 2.0347 1.5 2.12458 1.5 2.21538C1.5 2.30618 1.51815 2.39606 1.55338 2.47974C1.58861 2.56341 1.64021 2.6392 1.70515 2.70263L6.99765 7.99894L1.70515 13.2964C1.57687 13.4261 1.50492 13.6012 1.50492 13.7837C1.50492 13.9661 1.57687 14.1412 1.70515 14.2709L1.73448 14.2991C1.86411 14.4274 2.03912 14.4994 2.22149 14.4994C2.40386 14.4994 2.57886 14.4274 2.70849 14.2991L8.00217 9.00396L13.2947 14.2991C13.4243 14.4278 13.5996 14.5 13.7823 14.5C13.9649 14.5 14.1402 14.4278 14.2699 14.2991L14.2992 14.2709C14.4275 14.1412 14.4994 13.9661 14.4994 13.7837C14.4994 13.6012 14.4275 13.4261 14.2992 13.2964L9.00786 7.99894H9.00669Z","fill-opacity":"0.2"}),C.jsx("path",{d:"M9.00669 7.99894L14.2992 2.7038C14.4278 2.57406 14.5 2.39872 14.5 2.21597C14.5 2.03322 14.4278 1.85788 14.2992 1.72814L14.271 1.69996C14.1411 1.57218 13.9662 1.50058 13.784 1.50058C13.6018 1.50058 13.4269 1.57218 13.297 1.69996L8.00217 7.00331L2.70967 1.69996C2.57969 1.57183 2.40454 1.5 2.22207 1.5C2.0396 1.5 1.86446 1.57183 1.73448 1.69996L1.70515 1.72814C1.64021 1.79157 1.58861 1.86735 1.55338 1.95103C1.51815 2.0347 1.5 2.12458 1.5 2.21538C1.5 2.30618 1.51815 2.39606 1.55338 2.47974C1.58861 2.56341 1.64021 2.6392 1.70515 2.70263L6.99765 7.99894L1.70515 13.2964C1.57687 13.4261 1.50492 13.6012 1.50492 13.7837C1.50492 13.9661 1.57687 14.1412 1.70515 14.2709L1.73448 14.2991C1.86411 14.4274 2.03912 14.4994 2.22149 14.4994C2.40386 14.4994 2.57886 14.4274 2.70849 14.2991L8.00217 9.00396L13.2947 14.2991C13.4243 14.4278 13.5996 14.5 13.7823 14.5C13.9649 14.5 14.1402 14.4278 14.2699 14.2991L14.2992 14.2709C14.4275 14.1412 14.4994 13.9661 14.4994 13.7837C14.4994 13.6012 14.4275 13.4261 14.2992 13.2964L9.00786 7.99894H9.00669Z","fill-opacity":"0.2"}),C.jsx("path",{d:"M9.00669 7.99894L14.2992 2.7038C14.4278 2.57406 14.5 2.39872 14.5 2.21597C14.5 2.03322 14.4278 1.85788 14.2992 1.72814L14.271 1.69996C14.1411 1.57218 13.9662 1.50058 13.784 1.50058C13.6018 1.50058 13.4269 1.57218 13.297 1.69996L8.00217 7.00331L2.70967 1.69996C2.57969 1.57183 2.40454 1.5 2.22207 1.5C2.0396 1.5 1.86446 1.57183 1.73448 1.69996L1.70515 1.72814C1.64021 1.79157 1.58861 1.86735 1.55338 1.95103C1.51815 2.0347 1.5 2.12458 1.5 2.21538C1.5 2.30618 1.51815 2.39606 1.55338 2.47974C1.58861 2.56341 1.64021 2.6392 1.70515 2.70263L6.99765 7.99894L1.70515 13.2964C1.57687 13.4261 1.50492 13.6012 1.50492 13.7837C1.50492 13.9661 1.57687 14.1412 1.70515 14.2709L1.73448 14.2991C1.86411 14.4274 2.03912 14.4994 2.22149 14.4994C2.40386 14.4994 2.57886 14.4274 2.70849 14.2991L8.00217 9.00396L13.2947 14.2991C13.4243 14.4278 13.5996 14.5 13.7823 14.5C13.9649 14.5 14.1402 14.4278 14.2699 14.2991L14.2992 14.2709C14.4275 14.1412 14.4994 13.9661 14.4994 13.7837C14.4994 13.6012 14.4275 13.4261 14.2992 13.2964L9.00786 7.99894H9.00669Z","fill-opacity":"0.2"}),C.jsx("path",{d:"M9.00669 7.99894L14.2992 2.7038C14.4278 2.57406 14.5 2.39872 14.5 2.21597C14.5 2.03322 14.4278 1.85788 14.2992 1.72814L14.271 1.69996C14.1411 1.57218 13.9662 1.50058 13.784 1.50058C13.6018 1.50058 13.4269 1.57218 13.297 1.69996L8.00217 7.00331L2.70967 1.69996C2.57969 1.57183 2.40454 1.5 2.22207 1.5C2.0396 1.5 1.86446 1.57183 1.73448 1.69996L1.70515 1.72814C1.64021 1.79157 1.58861 1.86735 1.55338 1.95103C1.51815 2.0347 1.5 2.12458 1.5 2.21538C1.5 2.30618 1.51815 2.39606 1.55338 2.47974C1.58861 2.56341 1.64021 2.6392 1.70515 2.70263L6.99765 7.99894L1.70515 13.2964C1.57687 13.4261 1.50492 13.6012 1.50492 13.7837C1.50492 13.9661 1.57687 14.1412 1.70515 14.2709L1.73448 14.2991C1.86411 14.4274 2.03912 14.4994 2.22149 14.4994C2.40386 14.4994 2.57886 14.4274 2.70849 14.2991L8.00217 9.00396L13.2947 14.2991C13.4243 14.4278 13.5996 14.5 13.7823 14.5C13.9649 14.5 14.1402 14.4278 14.2699 14.2991L14.2992 14.2709C14.4275 14.1412 14.4994 13.9661 14.4994 13.7837C14.4994 13.6012 14.4275 13.4261 14.2992 13.2964L9.00786 7.99894H9.00669Z","fill-opacity":"0.2"})]}),GE=()=>C.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",children:[C.jsx("path",{d:"M13.334 14.3031H2.66732C1.93065 14.3031 1.33398 13.7064 1.33398 12.9697V12.6064C1.33398 10.5997 2.96065 8.96973 4.97065 8.96973H11.0307C13.0373 8.96973 14.6673 10.5964 14.6673 12.6064V12.9697C14.6673 13.7064 14.0707 14.3031 13.334 14.3031Z"}),C.jsx("path",{d:"M4.66602 4.97005C4.66602 5.85411 5.01721 6.70195 5.64233 7.32707C6.26745 7.9522 7.11529 8.30338 7.99935 8.30338C8.8834 8.30338 9.73125 7.9522 10.3564 7.32707C10.9815 6.70195 11.3327 5.85411 11.3327 4.97005C11.3327 4.53231 11.2465 4.09886 11.0789 3.69444C10.9114 3.29002 10.6659 2.92256 10.3564 2.61303C10.0468 2.3035 9.67938 2.05797 9.27496 1.89045C8.87054 1.72294 8.43709 1.63672 7.99935 1.63672C7.56161 1.63672 7.12816 1.72294 6.72374 1.89045C6.31932 2.05797 5.95185 2.3035 5.64233 2.61303C5.3328 2.92256 5.08727 3.29002 4.91975 3.69444C4.75224 4.09886 4.66602 4.53231 4.66602 4.97005Z"})]}),YE=()=>C.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",children:C.jsx("path",{d:"M4.17666 2.53223H11.8185C12.3729 2.53223 12.848 2.94798 12.9074 3.50231L13.8577 12.2331C13.8973 12.5498 13.7983 12.8468 13.5805 13.0844C13.3825 13.3219 13.0856 13.4407 12.7688 13.4407H3.20658C2.88982 13.4407 2.59285 13.3021 2.39488 13.0844C2.1969 12.8468 2.09792 12.5498 2.11772 12.2331L3.08781 3.52211C3.1472 2.96778 3.62234 2.53224 4.17668 2.53224L4.17666 2.53223ZM5.26553 5.81863C5.26553 7.32326 6.49298 8.5507 7.9976 8.5507C9.50222 8.5507 10.7297 7.32326 10.7297 5.81863C10.7297 5.52167 10.4921 5.2643 10.1753 5.2643C9.87837 5.2643 9.621 5.50187 9.621 5.81863C9.621 6.72933 8.88848 7.46183 7.9778 7.46183C7.06712 7.46183 6.3346 6.72932 6.3346 5.81863C6.3346 5.62065 6.23562 5.44248 6.05744 5.34349C5.87926 5.24451 5.68128 5.24451 5.5031 5.34349C5.36451 5.44248 5.26553 5.62065 5.26553 5.81863Z"})}),JE=()=>C.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",children:C.jsx("path",{d:"M10 1.81287V14.4799H2.667C2.267 14.4799 2 14.2129 2 13.8129V3.67987C2 3.34687 2.2 3.07987 2.533 3.01287L9.2 1.34687C9.533 1.27987 9.867 1.47987 10 1.81287ZM10.667 7.81287L13.6 8.94687C13.867 9.07987 14 9.27987 14 9.54687V13.8129C14 14.2129 13.733 14.4799 13.333 14.4799H10.667V7.81287ZM7.333 8.47987H4.667C4.267 8.47987 4 8.74687 4 9.14687C4 9.47987 4.267 9.74687 4.6 9.81287H7.333C7.733 9.81287 8 9.54687 8 9.14687C8 8.74687 7.733 8.47987 7.333 8.47987ZM7.333 5.14687H4.667C4.267 5.14687 4 5.41287 4 5.81287C4 6.14687 4.267 6.41287 4.6 6.47987H7.333C7.733 6.47987 8 6.21287 8 5.81287C8 5.41287 7.733 5.14687 7.333 5.14687Z"})}),mq=()=>C.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",children:C.jsx("path",{d:"M3.99999 6.66646L9.46666 7.99979L3.99999 9.33313L2.89399 12.2825C2.57533 13.1331 3.46466 13.9338 4.27799 13.5278L13.5447 8.89446C14.2813 8.52579 14.2813 7.47446 13.5447 7.10513L4.27799 2.47179C3.46466 2.06513 2.57533 2.86646 2.89399 3.71779L4.00066 6.66646H3.99999Z"})}),gq=()=>C.jsx(x0,{code:""}),XE=()=>C.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",children:[C.jsx("path",{d:"M11.7497 4.22129L11.7581 4.2618C11.7838 4.4337 11.7584 4.91737 11.3386 5.77311C10.852 6.76434 10.0245 7.866 9.01143 8.87879C7.99806 9.89217 6.89698 10.7194 5.90605 11.2059C4.96901 11.6651 4.47747 11.6523 4.35364 11.6168L4.34548 11.576C4.32014 11.4041 4.34548 10.9201 4.76505 10.0641C5.25193 9.07284 6.0797 7.97148 7.09249 6.95869C8.10587 5.94502 9.20694 5.11812 10.1979 4.63125C11.1343 4.17293 11.6259 4.18546 11.7497 4.221V4.22129ZM12.4752 3.4955C11.5629 2.58294 8.91353 3.75656 6.50568 6.11227L6.37456 6.24192C3.93291 8.68387 2.69897 11.4137 3.62814 12.3426C4.54041 13.2551 7.18981 12.0812 9.59766 9.7258L9.72878 9.59614C12.1704 7.15419 13.4044 4.42438 12.4752 3.4955ZM9.01143 6.95927C10.0248 7.97264 10.852 9.07372 11.3389 10.0647C11.7984 11.0023 11.7852 11.4932 11.7503 11.6176L11.7095 11.6258C11.537 11.6511 11.0533 11.6258 10.1973 11.2062C9.20636 10.7194 8.1047 9.89158 7.09191 8.87879C6.07854 7.86542 5.25134 6.76434 4.76447 5.77311C4.30557 4.83637 4.3181 4.34483 4.35364 4.221L4.39443 4.21285C4.56692 4.1875 5.05059 4.21285 5.90663 4.63241C6.89728 5.1187 7.99864 5.94648 9.01143 6.95927ZM9.85844 6.37304L9.72878 6.24192C7.28683 3.80027 4.55702 2.56633 3.62814 3.4955C2.71558 4.40777 3.8892 7.05717 6.2449 9.46502L6.37456 9.59614C8.81651 12.0378 11.551 13.2668 12.4752 12.3426C13.3878 11.4303 12.2138 8.78089 9.85844 6.37304ZM13.4321 7.33455C13.3495 7.41272 13.2835 7.50663 13.2379 7.61074C13.1923 7.71484 13.168 7.82703 13.1665 7.94068C13.165 8.05433 13.1862 8.16714 13.229 8.27244C13.2718 8.37774 13.3352 8.47339 13.4156 8.55376C13.496 8.63413 13.5916 8.69758 13.6969 8.74037C13.8022 8.78316 13.915 8.80441 14.0287 8.80288C14.1423 8.80134 14.2545 8.77705 14.3586 8.73144C14.4627 8.68583 14.5566 8.61982 14.6348 8.53731C14.7873 8.3764 14.8709 8.16233 14.8679 7.94068C14.8649 7.71904 14.7755 7.50731 14.6188 7.35056C14.4621 7.19382 14.2503 7.10444 14.0287 7.10145C13.807 7.09846 13.593 7.18209 13.4321 7.33455ZM7.35122 1.25372C7.26937 1.33207 7.20398 1.42597 7.15891 1.52993C7.11384 1.63388 7.08999 1.74579 7.08875 1.85909C7.08751 1.97239 7.10892 2.0848 7.15172 2.18971C7.19451 2.29462 7.25783 2.38993 7.33796 2.47004C7.41809 2.55015 7.51342 2.61345 7.61834 2.65622C7.72326 2.69899 7.83567 2.72037 7.94897 2.71911C8.06227 2.71784 8.17418 2.69396 8.27812 2.64887C8.38207 2.60377 8.47595 2.53836 8.55428 2.45649C8.70801 2.29578 8.79271 2.08127 8.79023 1.85889C8.78775 1.63651 8.69829 1.42393 8.54102 1.2667C8.38374 1.10946 8.17115 1.02005 7.94877 1.01763C7.72638 1.0152 7.51189 1.09995 7.35122 1.25372ZM1.27419 7.36077C1.19314 7.43929 1.12852 7.53315 1.08409 7.63688C1.03966 7.74061 1.01632 7.85215 1.01541 7.96499C1.0145 8.07783 1.03605 8.18972 1.0788 8.29416C1.12155 8.39859 1.18465 8.49348 1.26443 8.57329C1.3442 8.6531 1.43906 8.71625 1.54347 8.75905C1.64788 8.80186 1.75977 8.82346 1.87261 8.8226C1.98545 8.82175 2.097 8.79846 2.20075 8.75408C2.3045 8.7097 2.39839 8.64513 2.47695 8.56412C2.63243 8.40378 2.71863 8.18874 2.71694 7.9654C2.71525 7.74206 2.62581 7.52835 2.46792 7.37038C2.31003 7.21242 2.09636 7.12287 1.87302 7.12107C1.64969 7.11928 1.4346 7.20537 1.27419 7.36077ZM7.45116 13.5383C7.37015 13.6169 7.30558 13.7108 7.2612 13.8145C7.21682 13.9183 7.19353 14.0298 7.19268 14.1427C7.19182 14.2555 7.21343 14.3674 7.25623 14.4718C7.29903 14.5762 7.36218 14.6711 7.44199 14.7509C7.5218 14.8306 7.61669 14.8937 7.72112 14.9365C7.82556 14.9792 7.93745 15.0008 8.05029 14.9999C8.16313 14.999 8.27467 14.9756 8.3784 14.9312C8.48213 14.8868 8.57599 14.8221 8.65451 14.7411C8.80991 14.5807 8.89601 14.3656 8.89421 14.1423C8.89241 13.9189 8.80286 13.7053 8.6449 13.5474C8.48693 13.3895 8.27322 13.3 8.04988 13.2983C7.82655 13.2967 7.6115 13.3828 7.45116 13.5383Z"}),C.jsx("path",{d:"M11.7497 4.22129L11.7581 4.2618C11.7838 4.4337 11.7584 4.91737 11.3386 5.77311C10.852 6.76434 10.0245 7.866 9.01143 8.87879C7.99806 9.89217 6.89698 10.7194 5.90605 11.2059C4.96901 11.6651 4.47747 11.6523 4.35364 11.6168L4.34548 11.576C4.32014 11.4041 4.34548 10.9201 4.76505 10.0641C5.25193 9.07284 6.0797 7.97148 7.09249 6.95869C8.10587 5.94502 9.20694 5.11812 10.1979 4.63125C11.1343 4.17293 11.6259 4.18546 11.7497 4.221V4.22129ZM12.4752 3.4955C11.5629 2.58294 8.91353 3.75656 6.50568 6.11227L6.37456 6.24192C3.93291 8.68387 2.69897 11.4137 3.62814 12.3426C4.54041 13.2551 7.18981 12.0812 9.59766 9.7258L9.72878 9.59614C12.1704 7.15419 13.4044 4.42438 12.4752 3.4955ZM9.01143 6.95927C10.0248 7.97264 10.852 9.07372 11.3389 10.0647C11.7984 11.0023 11.7852 11.4932 11.7503 11.6176L11.7095 11.6258C11.537 11.6511 11.0533 11.6258 10.1973 11.2062C9.20636 10.7194 8.1047 9.89158 7.09191 8.87879C6.07854 7.86542 5.25134 6.76434 4.76447 5.77311C4.30557 4.83637 4.3181 4.34483 4.35364 4.221L4.39443 4.21285C4.56692 4.1875 5.05059 4.21285 5.90663 4.63241C6.89728 5.1187 7.99864 5.94648 9.01143 6.95927ZM9.85844 6.37304L9.72878 6.24192C7.28683 3.80027 4.55702 2.56633 3.62814 3.4955C2.71558 4.40777 3.8892 7.05717 6.2449 9.46502L6.37456 9.59614C8.81651 12.0378 11.551 13.2668 12.4752 12.3426C13.3878 11.4303 12.2138 8.78089 9.85844 6.37304ZM13.4321 7.33455C13.3495 7.41272 13.2835 7.50663 13.2379 7.61074C13.1923 7.71484 13.168 7.82703 13.1665 7.94068C13.165 8.05433 13.1862 8.16714 13.229 8.27244C13.2718 8.37774 13.3352 8.47339 13.4156 8.55376C13.496 8.63413 13.5916 8.69758 13.6969 8.74037C13.8022 8.78316 13.915 8.80441 14.0287 8.80288C14.1423 8.80134 14.2545 8.77705 14.3586 8.73144C14.4627 8.68583 14.5566 8.61982 14.6348 8.53731C14.7873 8.3764 14.8709 8.16233 14.8679 7.94068C14.8649 7.71904 14.7755 7.50731 14.6188 7.35056C14.4621 7.19382 14.2503 7.10444 14.0287 7.10145C13.807 7.09846 13.593 7.18209 13.4321 7.33455ZM7.35122 1.25372C7.26937 1.33207 7.20398 1.42597 7.15891 1.52993C7.11384 1.63388 7.08999 1.74579 7.08875 1.85909C7.08751 1.97239 7.10892 2.0848 7.15172 2.18971C7.19451 2.29462 7.25783 2.38993 7.33796 2.47004C7.41809 2.55015 7.51342 2.61345 7.61834 2.65622C7.72326 2.69899 7.83567 2.72037 7.94897 2.71911C8.06227 2.71784 8.17418 2.69396 8.27812 2.64887C8.38207 2.60377 8.47595 2.53836 8.55428 2.45649C8.70801 2.29578 8.79271 2.08127 8.79023 1.85889C8.78775 1.63651 8.69829 1.42393 8.54102 1.2667C8.38374 1.10946 8.17115 1.02005 7.94877 1.01763C7.72638 1.0152 7.51189 1.09995 7.35122 1.25372ZM1.27419 7.36077C1.19314 7.43929 1.12852 7.53315 1.08409 7.63688C1.03966 7.74061 1.01632 7.85215 1.01541 7.96499C1.0145 8.07783 1.03605 8.18972 1.0788 8.29416C1.12155 8.39859 1.18465 8.49348 1.26443 8.57329C1.3442 8.6531 1.43906 8.71625 1.54347 8.75905C1.64788 8.80186 1.75977 8.82346 1.87261 8.8226C1.98545 8.82175 2.097 8.79846 2.20075 8.75408C2.3045 8.7097 2.39839 8.64513 2.47695 8.56412C2.63243 8.40378 2.71863 8.18874 2.71694 7.9654C2.71525 7.74206 2.62581 7.52835 2.46792 7.37038C2.31003 7.21242 2.09636 7.12287 1.87302 7.12107C1.64969 7.11928 1.4346 7.20537 1.27419 7.36077ZM7.45116 13.5383C7.37015 13.6169 7.30558 13.7108 7.2612 13.8145C7.21682 13.9183 7.19353 14.0298 7.19268 14.1427C7.19182 14.2555 7.21343 14.3674 7.25623 14.4718C7.29903 14.5762 7.36218 14.6711 7.44199 14.7509C7.5218 14.8306 7.61669 14.8937 7.72112 14.9365C7.82556 14.9792 7.93745 15.0008 8.05029 14.9999C8.16313 14.999 8.27467 14.9756 8.3784 14.9312C8.48213 14.8868 8.57599 14.8221 8.65451 14.7411C8.80991 14.5807 8.89601 14.3656 8.89421 14.1423C8.89241 13.9189 8.80286 13.7053 8.6449 13.5474C8.48693 13.3895 8.27322 13.3 8.04988 13.2983C7.82655 13.2967 7.6115 13.3828 7.45116 13.5383Z","fill-opacity":"0.2"}),C.jsx("path",{d:"M11.7497 4.22129L11.7581 4.2618C11.7838 4.4337 11.7584 4.91737 11.3386 5.77311C10.852 6.76434 10.0245 7.866 9.01143 8.87879C7.99806 9.89217 6.89698 10.7194 5.90605 11.2059C4.96901 11.6651 4.47747 11.6523 4.35364 11.6168L4.34548 11.576C4.32014 11.4041 4.34548 10.9201 4.76505 10.0641C5.25193 9.07284 6.0797 7.97148 7.09249 6.95869C8.10587 5.94502 9.20694 5.11812 10.1979 4.63125C11.1343 4.17293 11.6259 4.18546 11.7497 4.221V4.22129ZM12.4752 3.4955C11.5629 2.58294 8.91353 3.75656 6.50568 6.11227L6.37456 6.24192C3.93291 8.68387 2.69897 11.4137 3.62814 12.3426C4.54041 13.2551 7.18981 12.0812 9.59766 9.7258L9.72878 9.59614C12.1704 7.15419 13.4044 4.42438 12.4752 3.4955ZM9.01143 6.95927C10.0248 7.97264 10.852 9.07372 11.3389 10.0647C11.7984 11.0023 11.7852 11.4932 11.7503 11.6176L11.7095 11.6258C11.537 11.6511 11.0533 11.6258 10.1973 11.2062C9.20636 10.7194 8.1047 9.89158 7.09191 8.87879C6.07854 7.86542 5.25134 6.76434 4.76447 5.77311C4.30557 4.83637 4.3181 4.34483 4.35364 4.221L4.39443 4.21285C4.56692 4.1875 5.05059 4.21285 5.90663 4.63241C6.89728 5.1187 7.99864 5.94648 9.01143 6.95927ZM9.85844 6.37304L9.72878 6.24192C7.28683 3.80027 4.55702 2.56633 3.62814 3.4955C2.71558 4.40777 3.8892 7.05717 6.2449 9.46502L6.37456 9.59614C8.81651 12.0378 11.551 13.2668 12.4752 12.3426C13.3878 11.4303 12.2138 8.78089 9.85844 6.37304ZM13.4321 7.33455C13.3495 7.41272 13.2835 7.50663 13.2379 7.61074C13.1923 7.71484 13.168 7.82703 13.1665 7.94068C13.165 8.05433 13.1862 8.16714 13.229 8.27244C13.2718 8.37774 13.3352 8.47339 13.4156 8.55376C13.496 8.63413 13.5916 8.69758 13.6969 8.74037C13.8022 8.78316 13.915 8.80441 14.0287 8.80288C14.1423 8.80134 14.2545 8.77705 14.3586 8.73144C14.4627 8.68583 14.5566 8.61982 14.6348 8.53731C14.7873 8.3764 14.8709 8.16233 14.8679 7.94068C14.8649 7.71904 14.7755 7.50731 14.6188 7.35056C14.4621 7.19382 14.2503 7.10444 14.0287 7.10145C13.807 7.09846 13.593 7.18209 13.4321 7.33455ZM7.35122 1.25372C7.26937 1.33207 7.20398 1.42597 7.15891 1.52993C7.11384 1.63388 7.08999 1.74579 7.08875 1.85909C7.08751 1.97239 7.10892 2.0848 7.15172 2.18971C7.19451 2.29462 7.25783 2.38993 7.33796 2.47004C7.41809 2.55015 7.51342 2.61345 7.61834 2.65622C7.72326 2.69899 7.83567 2.72037 7.94897 2.71911C8.06227 2.71784 8.17418 2.69396 8.27812 2.64887C8.38207 2.60377 8.47595 2.53836 8.55428 2.45649C8.70801 2.29578 8.79271 2.08127 8.79023 1.85889C8.78775 1.63651 8.69829 1.42393 8.54102 1.2667C8.38374 1.10946 8.17115 1.02005 7.94877 1.01763C7.72638 1.0152 7.51189 1.09995 7.35122 1.25372ZM1.27419 7.36077C1.19314 7.43929 1.12852 7.53315 1.08409 7.63688C1.03966 7.74061 1.01632 7.85215 1.01541 7.96499C1.0145 8.07783 1.03605 8.18972 1.0788 8.29416C1.12155 8.39859 1.18465 8.49348 1.26443 8.57329C1.3442 8.6531 1.43906 8.71625 1.54347 8.75905C1.64788 8.80186 1.75977 8.82346 1.87261 8.8226C1.98545 8.82175 2.097 8.79846 2.20075 8.75408C2.3045 8.7097 2.39839 8.64513 2.47695 8.56412C2.63243 8.40378 2.71863 8.18874 2.71694 7.9654C2.71525 7.74206 2.62581 7.52835 2.46792 7.37038C2.31003 7.21242 2.09636 7.12287 1.87302 7.12107C1.64969 7.11928 1.4346 7.20537 1.27419 7.36077ZM7.45116 13.5383C7.37015 13.6169 7.30558 13.7108 7.2612 13.8145C7.21682 13.9183 7.19353 14.0298 7.19268 14.1427C7.19182 14.2555 7.21343 14.3674 7.25623 14.4718C7.29903 14.5762 7.36218 14.6711 7.44199 14.7509C7.5218 14.8306 7.61669 14.8937 7.72112 14.9365C7.82556 14.9792 7.93745 15.0008 8.05029 14.9999C8.16313 14.999 8.27467 14.9756 8.3784 14.9312C8.48213 14.8868 8.57599 14.8221 8.65451 14.7411C8.80991 14.5807 8.89601 14.3656 8.89421 14.1423C8.89241 13.9189 8.80286 13.7053 8.6449 13.5474C8.48693 13.3895 8.27322 13.3 8.04988 13.2983C7.82655 13.2967 7.6115 13.3828 7.45116 13.5383Z","fill-opacity":"0.2"}),C.jsx("path",{d:"M11.7497 4.22129L11.7581 4.2618C11.7838 4.4337 11.7584 4.91737 11.3386 5.77311C10.852 6.76434 10.0245 7.866 9.01143 8.87879C7.99806 9.89217 6.89698 10.7194 5.90605 11.2059C4.96901 11.6651 4.47747 11.6523 4.35364 11.6168L4.34548 11.576C4.32014 11.4041 4.34548 10.9201 4.76505 10.0641C5.25193 9.07284 6.0797 7.97148 7.09249 6.95869C8.10587 5.94502 9.20694 5.11812 10.1979 4.63125C11.1343 4.17293 11.6259 4.18546 11.7497 4.221V4.22129ZM12.4752 3.4955C11.5629 2.58294 8.91353 3.75656 6.50568 6.11227L6.37456 6.24192C3.93291 8.68387 2.69897 11.4137 3.62814 12.3426C4.54041 13.2551 7.18981 12.0812 9.59766 9.7258L9.72878 9.59614C12.1704 7.15419 13.4044 4.42438 12.4752 3.4955ZM9.01143 6.95927C10.0248 7.97264 10.852 9.07372 11.3389 10.0647C11.7984 11.0023 11.7852 11.4932 11.7503 11.6176L11.7095 11.6258C11.537 11.6511 11.0533 11.6258 10.1973 11.2062C9.20636 10.7194 8.1047 9.89158 7.09191 8.87879C6.07854 7.86542 5.25134 6.76434 4.76447 5.77311C4.30557 4.83637 4.3181 4.34483 4.35364 4.221L4.39443 4.21285C4.56692 4.1875 5.05059 4.21285 5.90663 4.63241C6.89728 5.1187 7.99864 5.94648 9.01143 6.95927ZM9.85844 6.37304L9.72878 6.24192C7.28683 3.80027 4.55702 2.56633 3.62814 3.4955C2.71558 4.40777 3.8892 7.05717 6.2449 9.46502L6.37456 9.59614C8.81651 12.0378 11.551 13.2668 12.4752 12.3426C13.3878 11.4303 12.2138 8.78089 9.85844 6.37304ZM13.4321 7.33455C13.3495 7.41272 13.2835 7.50663 13.2379 7.61074C13.1923 7.71484 13.168 7.82703 13.1665 7.94068C13.165 8.05433 13.1862 8.16714 13.229 8.27244C13.2718 8.37774 13.3352 8.47339 13.4156 8.55376C13.496 8.63413 13.5916 8.69758 13.6969 8.74037C13.8022 8.78316 13.915 8.80441 14.0287 8.80288C14.1423 8.80134 14.2545 8.77705 14.3586 8.73144C14.4627 8.68583 14.5566 8.61982 14.6348 8.53731C14.7873 8.3764 14.8709 8.16233 14.8679 7.94068C14.8649 7.71904 14.7755 7.50731 14.6188 7.35056C14.4621 7.19382 14.2503 7.10444 14.0287 7.10145C13.807 7.09846 13.593 7.18209 13.4321 7.33455ZM7.35122 1.25372C7.26937 1.33207 7.20398 1.42597 7.15891 1.52993C7.11384 1.63388 7.08999 1.74579 7.08875 1.85909C7.08751 1.97239 7.10892 2.0848 7.15172 2.18971C7.19451 2.29462 7.25783 2.38993 7.33796 2.47004C7.41809 2.55015 7.51342 2.61345 7.61834 2.65622C7.72326 2.69899 7.83567 2.72037 7.94897 2.71911C8.06227 2.71784 8.17418 2.69396 8.27812 2.64887C8.38207 2.60377 8.47595 2.53836 8.55428 2.45649C8.70801 2.29578 8.79271 2.08127 8.79023 1.85889C8.78775 1.63651 8.69829 1.42393 8.54102 1.2667C8.38374 1.10946 8.17115 1.02005 7.94877 1.01763C7.72638 1.0152 7.51189 1.09995 7.35122 1.25372ZM1.27419 7.36077C1.19314 7.43929 1.12852 7.53315 1.08409 7.63688C1.03966 7.74061 1.01632 7.85215 1.01541 7.96499C1.0145 8.07783 1.03605 8.18972 1.0788 8.29416C1.12155 8.39859 1.18465 8.49348 1.26443 8.57329C1.3442 8.6531 1.43906 8.71625 1.54347 8.75905C1.64788 8.80186 1.75977 8.82346 1.87261 8.8226C1.98545 8.82175 2.097 8.79846 2.20075 8.75408C2.3045 8.7097 2.39839 8.64513 2.47695 8.56412C2.63243 8.40378 2.71863 8.18874 2.71694 7.9654C2.71525 7.74206 2.62581 7.52835 2.46792 7.37038C2.31003 7.21242 2.09636 7.12287 1.87302 7.12107C1.64969 7.11928 1.4346 7.20537 1.27419 7.36077ZM7.45116 13.5383C7.37015 13.6169 7.30558 13.7108 7.2612 13.8145C7.21682 13.9183 7.19353 14.0298 7.19268 14.1427C7.19182 14.2555 7.21343 14.3674 7.25623 14.4718C7.29903 14.5762 7.36218 14.6711 7.44199 14.7509C7.5218 14.8306 7.61669 14.8937 7.72112 14.9365C7.82556 14.9792 7.93745 15.0008 8.05029 14.9999C8.16313 14.999 8.27467 14.9756 8.3784 14.9312C8.48213 14.8868 8.57599 14.8221 8.65451 14.7411C8.80991 14.5807 8.89601 14.3656 8.89421 14.1423C8.89241 13.9189 8.80286 13.7053 8.6449 13.5474C8.48693 13.3895 8.27322 13.3 8.04988 13.2983C7.82655 13.2967 7.6115 13.3828 7.45116 13.5383Z","fill-opacity":"0.2"}),C.jsx("path",{d:"M11.7497 4.22129L11.7581 4.2618C11.7838 4.4337 11.7584 4.91737 11.3386 5.77311C10.852 6.76434 10.0245 7.866 9.01143 8.87879C7.99806 9.89217 6.89698 10.7194 5.90605 11.2059C4.96901 11.6651 4.47747 11.6523 4.35364 11.6168L4.34548 11.576C4.32014 11.4041 4.34548 10.9201 4.76505 10.0641C5.25193 9.07284 6.0797 7.97148 7.09249 6.95869C8.10587 5.94502 9.20694 5.11812 10.1979 4.63125C11.1343 4.17293 11.6259 4.18546 11.7497 4.221V4.22129ZM12.4752 3.4955C11.5629 2.58294 8.91353 3.75656 6.50568 6.11227L6.37456 6.24192C3.93291 8.68387 2.69897 11.4137 3.62814 12.3426C4.54041 13.2551 7.18981 12.0812 9.59766 9.7258L9.72878 9.59614C12.1704 7.15419 13.4044 4.42438 12.4752 3.4955ZM9.01143 6.95927C10.0248 7.97264 10.852 9.07372 11.3389 10.0647C11.7984 11.0023 11.7852 11.4932 11.7503 11.6176L11.7095 11.6258C11.537 11.6511 11.0533 11.6258 10.1973 11.2062C9.20636 10.7194 8.1047 9.89158 7.09191 8.87879C6.07854 7.86542 5.25134 6.76434 4.76447 5.77311C4.30557 4.83637 4.3181 4.34483 4.35364 4.221L4.39443 4.21285C4.56692 4.1875 5.05059 4.21285 5.90663 4.63241C6.89728 5.1187 7.99864 5.94648 9.01143 6.95927ZM9.85844 6.37304L9.72878 6.24192C7.28683 3.80027 4.55702 2.56633 3.62814 3.4955C2.71558 4.40777 3.8892 7.05717 6.2449 9.46502L6.37456 9.59614C8.81651 12.0378 11.551 13.2668 12.4752 12.3426C13.3878 11.4303 12.2138 8.78089 9.85844 6.37304ZM13.4321 7.33455C13.3495 7.41272 13.2835 7.50663 13.2379 7.61074C13.1923 7.71484 13.168 7.82703 13.1665 7.94068C13.165 8.05433 13.1862 8.16714 13.229 8.27244C13.2718 8.37774 13.3352 8.47339 13.4156 8.55376C13.496 8.63413 13.5916 8.69758 13.6969 8.74037C13.8022 8.78316 13.915 8.80441 14.0287 8.80288C14.1423 8.80134 14.2545 8.77705 14.3586 8.73144C14.4627 8.68583 14.5566 8.61982 14.6348 8.53731C14.7873 8.3764 14.8709 8.16233 14.8679 7.94068C14.8649 7.71904 14.7755 7.50731 14.6188 7.35056C14.4621 7.19382 14.2503 7.10444 14.0287 7.10145C13.807 7.09846 13.593 7.18209 13.4321 7.33455ZM7.35122 1.25372C7.26937 1.33207 7.20398 1.42597 7.15891 1.52993C7.11384 1.63388 7.08999 1.74579 7.08875 1.85909C7.08751 1.97239 7.10892 2.0848 7.15172 2.18971C7.19451 2.29462 7.25783 2.38993 7.33796 2.47004C7.41809 2.55015 7.51342 2.61345 7.61834 2.65622C7.72326 2.69899 7.83567 2.72037 7.94897 2.71911C8.06227 2.71784 8.17418 2.69396 8.27812 2.64887C8.38207 2.60377 8.47595 2.53836 8.55428 2.45649C8.70801 2.29578 8.79271 2.08127 8.79023 1.85889C8.78775 1.63651 8.69829 1.42393 8.54102 1.2667C8.38374 1.10946 8.17115 1.02005 7.94877 1.01763C7.72638 1.0152 7.51189 1.09995 7.35122 1.25372ZM1.27419 7.36077C1.19314 7.43929 1.12852 7.53315 1.08409 7.63688C1.03966 7.74061 1.01632 7.85215 1.01541 7.96499C1.0145 8.07783 1.03605 8.18972 1.0788 8.29416C1.12155 8.39859 1.18465 8.49348 1.26443 8.57329C1.3442 8.6531 1.43906 8.71625 1.54347 8.75905C1.64788 8.80186 1.75977 8.82346 1.87261 8.8226C1.98545 8.82175 2.097 8.79846 2.20075 8.75408C2.3045 8.7097 2.39839 8.64513 2.47695 8.56412C2.63243 8.40378 2.71863 8.18874 2.71694 7.9654C2.71525 7.74206 2.62581 7.52835 2.46792 7.37038C2.31003 7.21242 2.09636 7.12287 1.87302 7.12107C1.64969 7.11928 1.4346 7.20537 1.27419 7.36077ZM7.45116 13.5383C7.37015 13.6169 7.30558 13.7108 7.2612 13.8145C7.21682 13.9183 7.19353 14.0298 7.19268 14.1427C7.19182 14.2555 7.21343 14.3674 7.25623 14.4718C7.29903 14.5762 7.36218 14.6711 7.44199 14.7509C7.5218 14.8306 7.61669 14.8937 7.72112 14.9365C7.82556 14.9792 7.93745 15.0008 8.05029 14.9999C8.16313 14.999 8.27467 14.9756 8.3784 14.9312C8.48213 14.8868 8.57599 14.8221 8.65451 14.7411C8.80991 14.5807 8.89601 14.3656 8.89421 14.1423C8.89241 13.9189 8.80286 13.7053 8.6449 13.5474C8.48693 13.3895 8.27322 13.3 8.04988 13.2983C7.82655 13.2967 7.6115 13.3828 7.45116 13.5383Z","fill-opacity":"0.2"}),C.jsx("path",{d:"M11.7497 4.22129L11.7581 4.2618C11.7838 4.4337 11.7584 4.91737 11.3386 5.77311C10.852 6.76434 10.0245 7.866 9.01143 8.87879C7.99806 9.89217 6.89698 10.7194 5.90605 11.2059C4.96901 11.6651 4.47747 11.6523 4.35364 11.6168L4.34548 11.576C4.32014 11.4041 4.34548 10.9201 4.76505 10.0641C5.25193 9.07284 6.0797 7.97148 7.09249 6.95869C8.10587 5.94502 9.20694 5.11812 10.1979 4.63125C11.1343 4.17293 11.6259 4.18546 11.7497 4.221V4.22129ZM12.4752 3.4955C11.5629 2.58294 8.91353 3.75656 6.50568 6.11227L6.37456 6.24192C3.93291 8.68387 2.69897 11.4137 3.62814 12.3426C4.54041 13.2551 7.18981 12.0812 9.59766 9.7258L9.72878 9.59614C12.1704 7.15419 13.4044 4.42438 12.4752 3.4955ZM9.01143 6.95927C10.0248 7.97264 10.852 9.07372 11.3389 10.0647C11.7984 11.0023 11.7852 11.4932 11.7503 11.6176L11.7095 11.6258C11.537 11.6511 11.0533 11.6258 10.1973 11.2062C9.20636 10.7194 8.1047 9.89158 7.09191 8.87879C6.07854 7.86542 5.25134 6.76434 4.76447 5.77311C4.30557 4.83637 4.3181 4.34483 4.35364 4.221L4.39443 4.21285C4.56692 4.1875 5.05059 4.21285 5.90663 4.63241C6.89728 5.1187 7.99864 5.94648 9.01143 6.95927ZM9.85844 6.37304L9.72878 6.24192C7.28683 3.80027 4.55702 2.56633 3.62814 3.4955C2.71558 4.40777 3.8892 7.05717 6.2449 9.46502L6.37456 9.59614C8.81651 12.0378 11.551 13.2668 12.4752 12.3426C13.3878 11.4303 12.2138 8.78089 9.85844 6.37304ZM13.4321 7.33455C13.3495 7.41272 13.2835 7.50663 13.2379 7.61074C13.1923 7.71484 13.168 7.82703 13.1665 7.94068C13.165 8.05433 13.1862 8.16714 13.229 8.27244C13.2718 8.37774 13.3352 8.47339 13.4156 8.55376C13.496 8.63413 13.5916 8.69758 13.6969 8.74037C13.8022 8.78316 13.915 8.80441 14.0287 8.80288C14.1423 8.80134 14.2545 8.77705 14.3586 8.73144C14.4627 8.68583 14.5566 8.61982 14.6348 8.53731C14.7873 8.3764 14.8709 8.16233 14.8679 7.94068C14.8649 7.71904 14.7755 7.50731 14.6188 7.35056C14.4621 7.19382 14.2503 7.10444 14.0287 7.10145C13.807 7.09846 13.593 7.18209 13.4321 7.33455ZM7.35122 1.25372C7.26937 1.33207 7.20398 1.42597 7.15891 1.52993C7.11384 1.63388 7.08999 1.74579 7.08875 1.85909C7.08751 1.97239 7.10892 2.0848 7.15172 2.18971C7.19451 2.29462 7.25783 2.38993 7.33796 2.47004C7.41809 2.55015 7.51342 2.61345 7.61834 2.65622C7.72326 2.69899 7.83567 2.72037 7.94897 2.71911C8.06227 2.71784 8.17418 2.69396 8.27812 2.64887C8.38207 2.60377 8.47595 2.53836 8.55428 2.45649C8.70801 2.29578 8.79271 2.08127 8.79023 1.85889C8.78775 1.63651 8.69829 1.42393 8.54102 1.2667C8.38374 1.10946 8.17115 1.02005 7.94877 1.01763C7.72638 1.0152 7.51189 1.09995 7.35122 1.25372ZM1.27419 7.36077C1.19314 7.43929 1.12852 7.53315 1.08409 7.63688C1.03966 7.74061 1.01632 7.85215 1.01541 7.96499C1.0145 8.07783 1.03605 8.18972 1.0788 8.29416C1.12155 8.39859 1.18465 8.49348 1.26443 8.57329C1.3442 8.6531 1.43906 8.71625 1.54347 8.75905C1.64788 8.80186 1.75977 8.82346 1.87261 8.8226C1.98545 8.82175 2.097 8.79846 2.20075 8.75408C2.3045 8.7097 2.39839 8.64513 2.47695 8.56412C2.63243 8.40378 2.71863 8.18874 2.71694 7.9654C2.71525 7.74206 2.62581 7.52835 2.46792 7.37038C2.31003 7.21242 2.09636 7.12287 1.87302 7.12107C1.64969 7.11928 1.4346 7.20537 1.27419 7.36077ZM7.45116 13.5383C7.37015 13.6169 7.30558 13.7108 7.2612 13.8145C7.21682 13.9183 7.19353 14.0298 7.19268 14.1427C7.19182 14.2555 7.21343 14.3674 7.25623 14.4718C7.29903 14.5762 7.36218 14.6711 7.44199 14.7509C7.5218 14.8306 7.61669 14.8937 7.72112 14.9365C7.82556 14.9792 7.93745 15.0008 8.05029 14.9999C8.16313 14.999 8.27467 14.9756 8.3784 14.9312C8.48213 14.8868 8.57599 14.8221 8.65451 14.7411C8.80991 14.5807 8.89601 14.3656 8.89421 14.1423C8.89241 13.9189 8.80286 13.7053 8.6449 13.5474C8.48693 13.3895 8.27322 13.3 8.04988 13.2983C7.82655 13.2967 7.6115 13.3828 7.45116 13.5383Z","fill-opacity":"0.2"}),C.jsx("path",{d:"M11.7497 4.22129L11.7581 4.2618C11.7838 4.4337 11.7584 4.91737 11.3386 5.77311C10.852 6.76434 10.0245 7.866 9.01143 8.87879C7.99806 9.89217 6.89698 10.7194 5.90605 11.2059C4.96901 11.6651 4.47747 11.6523 4.35364 11.6168L4.34548 11.576C4.32014 11.4041 4.34548 10.9201 4.76505 10.0641C5.25193 9.07284 6.0797 7.97148 7.09249 6.95869C8.10587 5.94502 9.20694 5.11812 10.1979 4.63125C11.1343 4.17293 11.6259 4.18546 11.7497 4.221V4.22129ZM12.4752 3.4955C11.5629 2.58294 8.91353 3.75656 6.50568 6.11227L6.37456 6.24192C3.93291 8.68387 2.69897 11.4137 3.62814 12.3426C4.54041 13.2551 7.18981 12.0812 9.59766 9.7258L9.72878 9.59614C12.1704 7.15419 13.4044 4.42438 12.4752 3.4955ZM9.01143 6.95927C10.0248 7.97264 10.852 9.07372 11.3389 10.0647C11.7984 11.0023 11.7852 11.4932 11.7503 11.6176L11.7095 11.6258C11.537 11.6511 11.0533 11.6258 10.1973 11.2062C9.20636 10.7194 8.1047 9.89158 7.09191 8.87879C6.07854 7.86542 5.25134 6.76434 4.76447 5.77311C4.30557 4.83637 4.3181 4.34483 4.35364 4.221L4.39443 4.21285C4.56692 4.1875 5.05059 4.21285 5.90663 4.63241C6.89728 5.1187 7.99864 5.94648 9.01143 6.95927ZM9.85844 6.37304L9.72878 6.24192C7.28683 3.80027 4.55702 2.56633 3.62814 3.4955C2.71558 4.40777 3.8892 7.05717 6.2449 9.46502L6.37456 9.59614C8.81651 12.0378 11.551 13.2668 12.4752 12.3426C13.3878 11.4303 12.2138 8.78089 9.85844 6.37304ZM13.4321 7.33455C13.3495 7.41272 13.2835 7.50663 13.2379 7.61074C13.1923 7.71484 13.168 7.82703 13.1665 7.94068C13.165 8.05433 13.1862 8.16714 13.229 8.27244C13.2718 8.37774 13.3352 8.47339 13.4156 8.55376C13.496 8.63413 13.5916 8.69758 13.6969 8.74037C13.8022 8.78316 13.915 8.80441 14.0287 8.80288C14.1423 8.80134 14.2545 8.77705 14.3586 8.73144C14.4627 8.68583 14.5566 8.61982 14.6348 8.53731C14.7873 8.3764 14.8709 8.16233 14.8679 7.94068C14.8649 7.71904 14.7755 7.50731 14.6188 7.35056C14.4621 7.19382 14.2503 7.10444 14.0287 7.10145C13.807 7.09846 13.593 7.18209 13.4321 7.33455ZM7.35122 1.25372C7.26937 1.33207 7.20398 1.42597 7.15891 1.52993C7.11384 1.63388 7.08999 1.74579 7.08875 1.85909C7.08751 1.97239 7.10892 2.0848 7.15172 2.18971C7.19451 2.29462 7.25783 2.38993 7.33796 2.47004C7.41809 2.55015 7.51342 2.61345 7.61834 2.65622C7.72326 2.69899 7.83567 2.72037 7.94897 2.71911C8.06227 2.71784 8.17418 2.69396 8.27812 2.64887C8.38207 2.60377 8.47595 2.53836 8.55428 2.45649C8.70801 2.29578 8.79271 2.08127 8.79023 1.85889C8.78775 1.63651 8.69829 1.42393 8.54102 1.2667C8.38374 1.10946 8.17115 1.02005 7.94877 1.01763C7.72638 1.0152 7.51189 1.09995 7.35122 1.25372ZM1.27419 7.36077C1.19314 7.43929 1.12852 7.53315 1.08409 7.63688C1.03966 7.74061 1.01632 7.85215 1.01541 7.96499C1.0145 8.07783 1.03605 8.18972 1.0788 8.29416C1.12155 8.39859 1.18465 8.49348 1.26443 8.57329C1.3442 8.6531 1.43906 8.71625 1.54347 8.75905C1.64788 8.80186 1.75977 8.82346 1.87261 8.8226C1.98545 8.82175 2.097 8.79846 2.20075 8.75408C2.3045 8.7097 2.39839 8.64513 2.47695 8.56412C2.63243 8.40378 2.71863 8.18874 2.71694 7.9654C2.71525 7.74206 2.62581 7.52835 2.46792 7.37038C2.31003 7.21242 2.09636 7.12287 1.87302 7.12107C1.64969 7.11928 1.4346 7.20537 1.27419 7.36077ZM7.45116 13.5383C7.37015 13.6169 7.30558 13.7108 7.2612 13.8145C7.21682 13.9183 7.19353 14.0298 7.19268 14.1427C7.19182 14.2555 7.21343 14.3674 7.25623 14.4718C7.29903 14.5762 7.36218 14.6711 7.44199 14.7509C7.5218 14.8306 7.61669 14.8937 7.72112 14.9365C7.82556 14.9792 7.93745 15.0008 8.05029 14.9999C8.16313 14.999 8.27467 14.9756 8.3784 14.9312C8.48213 14.8868 8.57599 14.8221 8.65451 14.7411C8.80991 14.5807 8.89601 14.3656 8.89421 14.1423C8.89241 13.9189 8.80286 13.7053 8.6449 13.5474C8.48693 13.3895 8.27322 13.3 8.04988 13.2983C7.82655 13.2967 7.6115 13.3828 7.45116 13.5383Z","fill-opacity":"0.2"}),C.jsx("path",{d:"M11.7497 4.22129L11.7581 4.2618C11.7838 4.4337 11.7584 4.91737 11.3386 5.77311C10.852 6.76434 10.0245 7.866 9.01143 8.87879C7.99806 9.89217 6.89698 10.7194 5.90605 11.2059C4.96901 11.6651 4.47747 11.6523 4.35364 11.6168L4.34548 11.576C4.32014 11.4041 4.34548 10.9201 4.76505 10.0641C5.25193 9.07284 6.0797 7.97148 7.09249 6.95869C8.10587 5.94502 9.20694 5.11812 10.1979 4.63125C11.1343 4.17293 11.6259 4.18546 11.7497 4.221V4.22129ZM12.4752 3.4955C11.5629 2.58294 8.91353 3.75656 6.50568 6.11227L6.37456 6.24192C3.93291 8.68387 2.69897 11.4137 3.62814 12.3426C4.54041 13.2551 7.18981 12.0812 9.59766 9.7258L9.72878 9.59614C12.1704 7.15419 13.4044 4.42438 12.4752 3.4955ZM9.01143 6.95927C10.0248 7.97264 10.852 9.07372 11.3389 10.0647C11.7984 11.0023 11.7852 11.4932 11.7503 11.6176L11.7095 11.6258C11.537 11.6511 11.0533 11.6258 10.1973 11.2062C9.20636 10.7194 8.1047 9.89158 7.09191 8.87879C6.07854 7.86542 5.25134 6.76434 4.76447 5.77311C4.30557 4.83637 4.3181 4.34483 4.35364 4.221L4.39443 4.21285C4.56692 4.1875 5.05059 4.21285 5.90663 4.63241C6.89728 5.1187 7.99864 5.94648 9.01143 6.95927ZM9.85844 6.37304L9.72878 6.24192C7.28683 3.80027 4.55702 2.56633 3.62814 3.4955C2.71558 4.40777 3.8892 7.05717 6.2449 9.46502L6.37456 9.59614C8.81651 12.0378 11.551 13.2668 12.4752 12.3426C13.3878 11.4303 12.2138 8.78089 9.85844 6.37304ZM13.4321 7.33455C13.3495 7.41272 13.2835 7.50663 13.2379 7.61074C13.1923 7.71484 13.168 7.82703 13.1665 7.94068C13.165 8.05433 13.1862 8.16714 13.229 8.27244C13.2718 8.37774 13.3352 8.47339 13.4156 8.55376C13.496 8.63413 13.5916 8.69758 13.6969 8.74037C13.8022 8.78316 13.915 8.80441 14.0287 8.80288C14.1423 8.80134 14.2545 8.77705 14.3586 8.73144C14.4627 8.68583 14.5566 8.61982 14.6348 8.53731C14.7873 8.3764 14.8709 8.16233 14.8679 7.94068C14.8649 7.71904 14.7755 7.50731 14.6188 7.35056C14.4621 7.19382 14.2503 7.10444 14.0287 7.10145C13.807 7.09846 13.593 7.18209 13.4321 7.33455ZM7.35122 1.25372C7.26937 1.33207 7.20398 1.42597 7.15891 1.52993C7.11384 1.63388 7.08999 1.74579 7.08875 1.85909C7.08751 1.97239 7.10892 2.0848 7.15172 2.18971C7.19451 2.29462 7.25783 2.38993 7.33796 2.47004C7.41809 2.55015 7.51342 2.61345 7.61834 2.65622C7.72326 2.69899 7.83567 2.72037 7.94897 2.71911C8.06227 2.71784 8.17418 2.69396 8.27812 2.64887C8.38207 2.60377 8.47595 2.53836 8.55428 2.45649C8.70801 2.29578 8.79271 2.08127 8.79023 1.85889C8.78775 1.63651 8.69829 1.42393 8.54102 1.2667C8.38374 1.10946 8.17115 1.02005 7.94877 1.01763C7.72638 1.0152 7.51189 1.09995 7.35122 1.25372ZM1.27419 7.36077C1.19314 7.43929 1.12852 7.53315 1.08409 7.63688C1.03966 7.74061 1.01632 7.85215 1.01541 7.96499C1.0145 8.07783 1.03605 8.18972 1.0788 8.29416C1.12155 8.39859 1.18465 8.49348 1.26443 8.57329C1.3442 8.6531 1.43906 8.71625 1.54347 8.75905C1.64788 8.80186 1.75977 8.82346 1.87261 8.8226C1.98545 8.82175 2.097 8.79846 2.20075 8.75408C2.3045 8.7097 2.39839 8.64513 2.47695 8.56412C2.63243 8.40378 2.71863 8.18874 2.71694 7.9654C2.71525 7.74206 2.62581 7.52835 2.46792 7.37038C2.31003 7.21242 2.09636 7.12287 1.87302 7.12107C1.64969 7.11928 1.4346 7.20537 1.27419 7.36077ZM7.45116 13.5383C7.37015 13.6169 7.30558 13.7108 7.2612 13.8145C7.21682 13.9183 7.19353 14.0298 7.19268 14.1427C7.19182 14.2555 7.21343 14.3674 7.25623 14.4718C7.29903 14.5762 7.36218 14.6711 7.44199 14.7509C7.5218 14.8306 7.61669 14.8937 7.72112 14.9365C7.82556 14.9792 7.93745 15.0008 8.05029 14.9999C8.16313 14.999 8.27467 14.9756 8.3784 14.9312C8.48213 14.8868 8.57599 14.8221 8.65451 14.7411C8.80991 14.5807 8.89601 14.3656 8.89421 14.1423C8.89241 13.9189 8.80286 13.7053 8.6449 13.5474C8.48693 13.3895 8.27322 13.3 8.04988 13.2983C7.82655 13.2967 7.6115 13.3828 7.45116 13.5383Z","fill-opacity":"0.2"}),C.jsx("path",{d:"M11.7497 4.22129L11.7581 4.2618C11.7838 4.4337 11.7584 4.91737 11.3386 5.77311C10.852 6.76434 10.0245 7.866 9.01143 8.87879C7.99806 9.89217 6.89698 10.7194 5.90605 11.2059C4.96901 11.6651 4.47747 11.6523 4.35364 11.6168L4.34548 11.576C4.32014 11.4041 4.34548 10.9201 4.76505 10.0641C5.25193 9.07284 6.0797 7.97148 7.09249 6.95869C8.10587 5.94502 9.20694 5.11812 10.1979 4.63125C11.1343 4.17293 11.6259 4.18546 11.7497 4.221V4.22129ZM12.4752 3.4955C11.5629 2.58294 8.91353 3.75656 6.50568 6.11227L6.37456 6.24192C3.93291 8.68387 2.69897 11.4137 3.62814 12.3426C4.54041 13.2551 7.18981 12.0812 9.59766 9.7258L9.72878 9.59614C12.1704 7.15419 13.4044 4.42438 12.4752 3.4955ZM9.01143 6.95927C10.0248 7.97264 10.852 9.07372 11.3389 10.0647C11.7984 11.0023 11.7852 11.4932 11.7503 11.6176L11.7095 11.6258C11.537 11.6511 11.0533 11.6258 10.1973 11.2062C9.20636 10.7194 8.1047 9.89158 7.09191 8.87879C6.07854 7.86542 5.25134 6.76434 4.76447 5.77311C4.30557 4.83637 4.3181 4.34483 4.35364 4.221L4.39443 4.21285C4.56692 4.1875 5.05059 4.21285 5.90663 4.63241C6.89728 5.1187 7.99864 5.94648 9.01143 6.95927ZM9.85844 6.37304L9.72878 6.24192C7.28683 3.80027 4.55702 2.56633 3.62814 3.4955C2.71558 4.40777 3.8892 7.05717 6.2449 9.46502L6.37456 9.59614C8.81651 12.0378 11.551 13.2668 12.4752 12.3426C13.3878 11.4303 12.2138 8.78089 9.85844 6.37304ZM13.4321 7.33455C13.3495 7.41272 13.2835 7.50663 13.2379 7.61074C13.1923 7.71484 13.168 7.82703 13.1665 7.94068C13.165 8.05433 13.1862 8.16714 13.229 8.27244C13.2718 8.37774 13.3352 8.47339 13.4156 8.55376C13.496 8.63413 13.5916 8.69758 13.6969 8.74037C13.8022 8.78316 13.915 8.80441 14.0287 8.80288C14.1423 8.80134 14.2545 8.77705 14.3586 8.73144C14.4627 8.68583 14.5566 8.61982 14.6348 8.53731C14.7873 8.3764 14.8709 8.16233 14.8679 7.94068C14.8649 7.71904 14.7755 7.50731 14.6188 7.35056C14.4621 7.19382 14.2503 7.10444 14.0287 7.10145C13.807 7.09846 13.593 7.18209 13.4321 7.33455ZM7.35122 1.25372C7.26937 1.33207 7.20398 1.42597 7.15891 1.52993C7.11384 1.63388 7.08999 1.74579 7.08875 1.85909C7.08751 1.97239 7.10892 2.0848 7.15172 2.18971C7.19451 2.29462 7.25783 2.38993 7.33796 2.47004C7.41809 2.55015 7.51342 2.61345 7.61834 2.65622C7.72326 2.69899 7.83567 2.72037 7.94897 2.71911C8.06227 2.71784 8.17418 2.69396 8.27812 2.64887C8.38207 2.60377 8.47595 2.53836 8.55428 2.45649C8.70801 2.29578 8.79271 2.08127 8.79023 1.85889C8.78775 1.63651 8.69829 1.42393 8.54102 1.2667C8.38374 1.10946 8.17115 1.02005 7.94877 1.01763C7.72638 1.0152 7.51189 1.09995 7.35122 1.25372ZM1.27419 7.36077C1.19314 7.43929 1.12852 7.53315 1.08409 7.63688C1.03966 7.74061 1.01632 7.85215 1.01541 7.96499C1.0145 8.07783 1.03605 8.18972 1.0788 8.29416C1.12155 8.39859 1.18465 8.49348 1.26443 8.57329C1.3442 8.6531 1.43906 8.71625 1.54347 8.75905C1.64788 8.80186 1.75977 8.82346 1.87261 8.8226C1.98545 8.82175 2.097 8.79846 2.20075 8.75408C2.3045 8.7097 2.39839 8.64513 2.47695 8.56412C2.63243 8.40378 2.71863 8.18874 2.71694 7.9654C2.71525 7.74206 2.62581 7.52835 2.46792 7.37038C2.31003 7.21242 2.09636 7.12287 1.87302 7.12107C1.64969 7.11928 1.4346 7.20537 1.27419 7.36077ZM7.45116 13.5383C7.37015 13.6169 7.30558 13.7108 7.2612 13.8145C7.21682 13.9183 7.19353 14.0298 7.19268 14.1427C7.19182 14.2555 7.21343 14.3674 7.25623 14.4718C7.29903 14.5762 7.36218 14.6711 7.44199 14.7509C7.5218 14.8306 7.61669 14.8937 7.72112 14.9365C7.82556 14.9792 7.93745 15.0008 8.05029 14.9999C8.16313 14.999 8.27467 14.9756 8.3784 14.9312C8.48213 14.8868 8.57599 14.8221 8.65451 14.7411C8.80991 14.5807 8.89601 14.3656 8.89421 14.1423C8.89241 13.9189 8.80286 13.7053 8.6449 13.5474C8.48693 13.3895 8.27322 13.3 8.04988 13.2983C7.82655 13.2967 7.6115 13.3828 7.45116 13.5383Z","fill-opacity":"0.2"})]}),F9=()=>C.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:[C.jsx("path",{d:"M3.07981 6.57422L2.22738 6.82578L1.375 6.57422L1.6265 7.43609L1.375 8.29797L2.22744 8.04366L3.07981 8.29797L2.831 7.43609L3.07981 6.57422Z",fill:"url(#paint0_linear_18039_4924)"}),C.jsx("path",{d:"M8.63445 3.85273L8.25983 3.53592L7.77539 3.47361L8.0887 3.09486L8.15039 2.60498L8.52495 2.92186L9.00945 2.98411L8.69608 3.36286L8.63445 3.85273Z",fill:"url(#paint1_linear_18039_4924)"}),C.jsx("path",{d:"M6.03681 4.04956L5.23375 3.3705L4.19531 3.23694L4.867 2.425L4.99913 1.375L5.80213 2.05413L6.8405 2.18769L6.16894 2.99956L6.03681 4.04956Z",fill:"url(#paint2_linear_18039_4924)"}),C.jsx("path",{d:"M12.522 11.5454C12.4655 11.4861 12.3978 11.4387 12.3228 11.4058C12.2478 11.373 12.167 11.3554 12.0851 11.3541C12.0033 11.3528 11.922 11.3678 11.8459 11.3982C11.7699 11.4286 11.7007 11.4738 11.6424 11.5312C11.3956 11.7729 11.3894 12.1711 11.6284 12.4206L13.5568 14.4333C13.6133 14.4926 13.681 14.54 13.756 14.5729C13.831 14.6057 13.9118 14.6233 13.9936 14.6246C14.0755 14.6259 14.1568 14.6109 14.2328 14.5805C14.3088 14.5501 14.3781 14.5049 14.4364 14.4474C14.6832 14.2057 14.6894 13.8076 14.4504 13.5581L12.522 11.5454Z",fill:"url(#paint3_linear_18039_4924)"}),C.jsx("path",{d:"M10.1057 3.74423C10.6429 3.44848 11.3063 3.79023 11.3856 4.40348L11.642 6.38679C11.6813 6.69371 11.8245 6.97806 12.0477 7.19236L13.4836 8.56698C13.9278 8.99223 13.8113 9.73585 13.259 10.0015L11.4727 10.8609C11.195 10.9952 10.9717 11.221 10.8408 11.5002L9.99065 13.3064C9.72784 13.8647 8.99265 13.9824 8.57209 13.5335L7.21171 12.0815C7.00174 11.8568 6.72044 11.7118 6.41565 11.6712L4.45415 11.4119C3.84765 11.3318 3.50965 10.661 3.80209 10.1178L4.74765 8.36142C4.89462 8.08832 4.94409 7.77329 4.8879 7.46829L4.52528 5.50248C4.41309 4.89436 4.93965 4.36198 5.54109 4.47542L7.48509 4.84198C7.7869 4.89879 8.09903 4.84873 8.36859 4.70017L10.1057 3.74423Z",fill:"url(#paint4_linear_18039_4924)"}),C.jsxs("defs",{children:[C.jsxs("linearGradient",{id:"paint0_linear_18039_4924",x1:"2.22741",y1:"6.57422",x2:"2.22741",y2:"8.29797",gradientUnits:"userSpaceOnUse",children:[C.jsx("stop",{"stop-color":"#0265FF"}),C.jsx("stop",{offset:"1","stop-color":"#A6FFFF"})]}),C.jsxs("linearGradient",{id:"paint1_linear_18039_4924",x1:"8.39242",y1:"2.60498",x2:"8.39242",y2:"3.85273",gradientUnits:"userSpaceOnUse",children:[C.jsx("stop",{"stop-color":"#0265FF"}),C.jsx("stop",{offset:"1","stop-color":"#A6FFFF"})]}),C.jsxs("linearGradient",{id:"paint2_linear_18039_4924",x1:"5.51791",y1:"1.375",x2:"5.51791",y2:"4.04956",gradientUnits:"userSpaceOnUse",children:[C.jsx("stop",{"stop-color":"#0265FF"}),C.jsx("stop",{offset:"1","stop-color":"#A6FFFF"})]}),C.jsxs("linearGradient",{id:"paint3_linear_18039_4924",x1:"13.0394",y1:"11.354",x2:"13.0394",y2:"14.6247",gradientUnits:"userSpaceOnUse",children:[C.jsx("stop",{"stop-color":"#0265FF"}),C.jsx("stop",{offset:"1","stop-color":"#A6FFFF"})]}),C.jsxs("linearGradient",{id:"paint4_linear_18039_4924",x1:"8.72558",y1:"3.63623",x2:"8.72558",y2:"13.8086",gradientUnits:"userSpaceOnUse",children:[C.jsx("stop",{"stop-color":"#0265FF"}),C.jsx("stop",{offset:"1","stop-color":"#A6FFFF"})]})]})]}),vq=({isOpen:e})=>C.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",className:We(ra,e?"":"rotate-180"),children:C.jsx("path",{d:"M3.28125 9.65625L7.58125 5.35625C7.63125 5.30625 7.69375 5.28125 7.75625 5.28125C7.81875 5.28125 7.88125 5.30625 7.93125 5.35625L12.2312 9.65625",strokeWidth:"1.5",strokeLinecap:"round"})}),yq=()=>C.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:[C.jsx("path",{d:"M4.52464 12.6249C4.59964 12.6499 4.64964 12.6499 4.72464 12.6499C4.92464 12.6499 5.12464 12.5249 5.19964 12.3249L6.37464 9.3749H9.62464L10.7996 12.3249C10.8746 12.5249 11.0746 12.6499 11.2746 12.6499C11.3496 12.6499 11.3996 12.6499 11.4746 12.6249C11.7496 12.5249 11.8746 12.2249 11.7746 11.9499L8.47464 3.6749C8.47464 3.6499 8.44964 3.6499 8.44964 3.6249C8.44964 3.6249 8.44964 3.5999 8.42464 3.5999C8.42464 3.5749 8.39964 3.5749 8.39964 3.5499L8.37464 3.5249C8.37464 3.5249 8.34964 3.4999 8.32464 3.4999C8.29964 3.4999 8.29964 3.4749 8.27464 3.4749C8.27464 3.4749 8.24964 3.4499 8.22464 3.4499C8.19964 3.4499 8.19964 3.4249 8.17464 3.4249H8.14964C8.12463 3.4249 8.12464 3.4249 8.09964 3.3999H7.89964C7.87464 3.3999 7.87464 3.3999 7.84964 3.4249H7.82464C7.79964 3.4249 7.79964 3.4499 7.77464 3.4499C7.74964 3.4499 7.74964 3.4749 7.72464 3.4749C7.69964 3.4749 7.69964 3.4999 7.67464 3.4999C7.64964 3.4999 7.64964 3.5249 7.62464 3.5249L7.59964 3.5499C7.59964 3.5749 7.57464 3.5749 7.57464 3.5999L7.54964 3.6249C7.54964 3.6499 7.52464 3.6499 7.52464 3.6749L4.22464 11.9499C4.12464 12.2249 4.24964 12.5249 4.52464 12.6249ZM6.79964 8.3249L7.99964 5.2749L9.19964 8.3249H6.79964Z",fill:"#121111"}),C.jsx("path",{d:"M4.52464 12.6249C4.59964 12.6499 4.64964 12.6499 4.72464 12.6499C4.92464 12.6499 5.12464 12.5249 5.19964 12.3249L6.37464 9.3749H9.62464L10.7996 12.3249C10.8746 12.5249 11.0746 12.6499 11.2746 12.6499C11.3496 12.6499 11.3996 12.6499 11.4746 12.6249C11.7496 12.5249 11.8746 12.2249 11.7746 11.9499L8.47464 3.6749C8.47464 3.6499 8.44964 3.6499 8.44964 3.6249C8.44964 3.6249 8.44964 3.5999 8.42464 3.5999C8.42464 3.5749 8.39964 3.5749 8.39964 3.5499L8.37464 3.5249C8.37464 3.5249 8.34964 3.4999 8.32464 3.4999C8.29964 3.4999 8.29964 3.4749 8.27464 3.4749C8.27464 3.4749 8.24964 3.4499 8.22464 3.4499C8.19964 3.4499 8.19964 3.4249 8.17464 3.4249H8.14964C8.12463 3.4249 8.12464 3.4249 8.09964 3.3999H7.89964C7.87464 3.3999 7.87464 3.3999 7.84964 3.4249H7.82464C7.79964 3.4249 7.79964 3.4499 7.77464 3.4499C7.74964 3.4499 7.74964 3.4749 7.72464 3.4749C7.69964 3.4749 7.69964 3.4999 7.67464 3.4999C7.64964 3.4999 7.64964 3.5249 7.62464 3.5249L7.59964 3.5499C7.59964 3.5749 7.57464 3.5749 7.57464 3.5999L7.54964 3.6249C7.54964 3.6499 7.52464 3.6499 7.52464 3.6749L4.22464 11.9499C4.12464 12.2249 4.24964 12.5249 4.52464 12.6249ZM6.79964 8.3249L7.99964 5.2749L9.19964 8.3249H6.79964Z",fill:"black","fill-opacity":"0.2"}),C.jsx("path",{d:"M4.52464 12.6249C4.59964 12.6499 4.64964 12.6499 4.72464 12.6499C4.92464 12.6499 5.12464 12.5249 5.19964 12.3249L6.37464 9.3749H9.62464L10.7996 12.3249C10.8746 12.5249 11.0746 12.6499 11.2746 12.6499C11.3496 12.6499 11.3996 12.6499 11.4746 12.6249C11.7496 12.5249 11.8746 12.2249 11.7746 11.9499L8.47464 3.6749C8.47464 3.6499 8.44964 3.6499 8.44964 3.6249C8.44964 3.6249 8.44964 3.5999 8.42464 3.5999C8.42464 3.5749 8.39964 3.5749 8.39964 3.5499L8.37464 3.5249C8.37464 3.5249 8.34964 3.4999 8.32464 3.4999C8.29964 3.4999 8.29964 3.4749 8.27464 3.4749C8.27464 3.4749 8.24964 3.4499 8.22464 3.4499C8.19964 3.4499 8.19964 3.4249 8.17464 3.4249H8.14964C8.12463 3.4249 8.12464 3.4249 8.09964 3.3999H7.89964C7.87464 3.3999 7.87464 3.3999 7.84964 3.4249H7.82464C7.79964 3.4249 7.79964 3.4499 7.77464 3.4499C7.74964 3.4499 7.74964 3.4749 7.72464 3.4749C7.69964 3.4749 7.69964 3.4999 7.67464 3.4999C7.64964 3.4999 7.64964 3.5249 7.62464 3.5249L7.59964 3.5499C7.59964 3.5749 7.57464 3.5749 7.57464 3.5999L7.54964 3.6249C7.54964 3.6499 7.52464 3.6499 7.52464 3.6749L4.22464 11.9499C4.12464 12.2249 4.24964 12.5249 4.52464 12.6249ZM6.79964 8.3249L7.99964 5.2749L9.19964 8.3249H6.79964Z",fill:"black","fill-opacity":"0.2"}),C.jsx("path",{d:"M4.52464 12.6249C4.59964 12.6499 4.64964 12.6499 4.72464 12.6499C4.92464 12.6499 5.12464 12.5249 5.19964 12.3249L6.37464 9.3749H9.62464L10.7996 12.3249C10.8746 12.5249 11.0746 12.6499 11.2746 12.6499C11.3496 12.6499 11.3996 12.6499 11.4746 12.6249C11.7496 12.5249 11.8746 12.2249 11.7746 11.9499L8.47464 3.6749C8.47464 3.6499 8.44964 3.6499 8.44964 3.6249C8.44964 3.6249 8.44964 3.5999 8.42464 3.5999C8.42464 3.5749 8.39964 3.5749 8.39964 3.5499L8.37464 3.5249C8.37464 3.5249 8.34964 3.4999 8.32464 3.4999C8.29964 3.4999 8.29964 3.4749 8.27464 3.4749C8.27464 3.4749 8.24964 3.4499 8.22464 3.4499C8.19964 3.4499 8.19964 3.4249 8.17464 3.4249H8.14964C8.12463 3.4249 8.12464 3.4249 8.09964 3.3999H7.89964C7.87464 3.3999 7.87464 3.3999 7.84964 3.4249H7.82464C7.79964 3.4249 7.79964 3.4499 7.77464 3.4499C7.74964 3.4499 7.74964 3.4749 7.72464 3.4749C7.69964 3.4749 7.69964 3.4999 7.67464 3.4999C7.64964 3.4999 7.64964 3.5249 7.62464 3.5249L7.59964 3.5499C7.59964 3.5749 7.57464 3.5749 7.57464 3.5999L7.54964 3.6249C7.54964 3.6499 7.52464 3.6499 7.52464 3.6749L4.22464 11.9499C4.12464 12.2249 4.24964 12.5249 4.52464 12.6249ZM6.79964 8.3249L7.99964 5.2749L9.19964 8.3249H6.79964Z",fill:"black","fill-opacity":"0.2"}),C.jsx("path",{d:"M4.52464 12.6249C4.59964 12.6499 4.64964 12.6499 4.72464 12.6499C4.92464 12.6499 5.12464 12.5249 5.19964 12.3249L6.37464 9.3749H9.62464L10.7996 12.3249C10.8746 12.5249 11.0746 12.6499 11.2746 12.6499C11.3496 12.6499 11.3996 12.6499 11.4746 12.6249C11.7496 12.5249 11.8746 12.2249 11.7746 11.9499L8.47464 3.6749C8.47464 3.6499 8.44964 3.6499 8.44964 3.6249C8.44964 3.6249 8.44964 3.5999 8.42464 3.5999C8.42464 3.5749 8.39964 3.5749 8.39964 3.5499L8.37464 3.5249C8.37464 3.5249 8.34964 3.4999 8.32464 3.4999C8.29964 3.4999 8.29964 3.4749 8.27464 3.4749C8.27464 3.4749 8.24964 3.4499 8.22464 3.4499C8.19964 3.4499 8.19964 3.4249 8.17464 3.4249H8.14964C8.12463 3.4249 8.12464 3.4249 8.09964 3.3999H7.89964C7.87464 3.3999 7.87464 3.3999 7.84964 3.4249H7.82464C7.79964 3.4249 7.79964 3.4499 7.77464 3.4499C7.74964 3.4499 7.74964 3.4749 7.72464 3.4749C7.69964 3.4749 7.69964 3.4999 7.67464 3.4999C7.64964 3.4999 7.64964 3.5249 7.62464 3.5249L7.59964 3.5499C7.59964 3.5749 7.57464 3.5749 7.57464 3.5999L7.54964 3.6249C7.54964 3.6499 7.52464 3.6499 7.52464 3.6749L4.22464 11.9499C4.12464 12.2249 4.24964 12.5249 4.52464 12.6249ZM6.79964 8.3249L7.99964 5.2749L9.19964 8.3249H6.79964Z",fill:"black","fill-opacity":"0.2"}),C.jsx("path",{d:"M4.52464 12.6249C4.59964 12.6499 4.64964 12.6499 4.72464 12.6499C4.92464 12.6499 5.12464 12.5249 5.19964 12.3249L6.37464 9.3749H9.62464L10.7996 12.3249C10.8746 12.5249 11.0746 12.6499 11.2746 12.6499C11.3496 12.6499 11.3996 12.6499 11.4746 12.6249C11.7496 12.5249 11.8746 12.2249 11.7746 11.9499L8.47464 3.6749C8.47464 3.6499 8.44964 3.6499 8.44964 3.6249C8.44964 3.6249 8.44964 3.5999 8.42464 3.5999C8.42464 3.5749 8.39964 3.5749 8.39964 3.5499L8.37464 3.5249C8.37464 3.5249 8.34964 3.4999 8.32464 3.4999C8.29964 3.4999 8.29964 3.4749 8.27464 3.4749C8.27464 3.4749 8.24964 3.4499 8.22464 3.4499C8.19964 3.4499 8.19964 3.4249 8.17464 3.4249H8.14964C8.12463 3.4249 8.12464 3.4249 8.09964 3.3999H7.89964C7.87464 3.3999 7.87464 3.3999 7.84964 3.4249H7.82464C7.79964 3.4249 7.79964 3.4499 7.77464 3.4499C7.74964 3.4499 7.74964 3.4749 7.72464 3.4749C7.69964 3.4749 7.69964 3.4999 7.67464 3.4999C7.64964 3.4999 7.64964 3.5249 7.62464 3.5249L7.59964 3.5499C7.59964 3.5749 7.57464 3.5749 7.57464 3.5999L7.54964 3.6249C7.54964 3.6499 7.52464 3.6499 7.52464 3.6749L4.22464 11.9499C4.12464 12.2249 4.24964 12.5249 4.52464 12.6249ZM6.79964 8.3249L7.99964 5.2749L9.19964 8.3249H6.79964Z",fill:"black","fill-opacity":"0.2"}),C.jsx("path",{d:"M4.52464 12.6249C4.59964 12.6499 4.64964 12.6499 4.72464 12.6499C4.92464 12.6499 5.12464 12.5249 5.19964 12.3249L6.37464 9.3749H9.62464L10.7996 12.3249C10.8746 12.5249 11.0746 12.6499 11.2746 12.6499C11.3496 12.6499 11.3996 12.6499 11.4746 12.6249C11.7496 12.5249 11.8746 12.2249 11.7746 11.9499L8.47464 3.6749C8.47464 3.6499 8.44964 3.6499 8.44964 3.6249C8.44964 3.6249 8.44964 3.5999 8.42464 3.5999C8.42464 3.5749 8.39964 3.5749 8.39964 3.5499L8.37464 3.5249C8.37464 3.5249 8.34964 3.4999 8.32464 3.4999C8.29964 3.4999 8.29964 3.4749 8.27464 3.4749C8.27464 3.4749 8.24964 3.4499 8.22464 3.4499C8.19964 3.4499 8.19964 3.4249 8.17464 3.4249H8.14964C8.12463 3.4249 8.12464 3.4249 8.09964 3.3999H7.89964C7.87464 3.3999 7.87464 3.3999 7.84964 3.4249H7.82464C7.79964 3.4249 7.79964 3.4499 7.77464 3.4499C7.74964 3.4499 7.74964 3.4749 7.72464 3.4749C7.69964 3.4749 7.69964 3.4999 7.67464 3.4999C7.64964 3.4999 7.64964 3.5249 7.62464 3.5249L7.59964 3.5499C7.59964 3.5749 7.57464 3.5749 7.57464 3.5999L7.54964 3.6249C7.54964 3.6499 7.52464 3.6499 7.52464 3.6749L4.22464 11.9499C4.12464 12.2249 4.24964 12.5249 4.52464 12.6249ZM6.79964 8.3249L7.99964 5.2749L9.19964 8.3249H6.79964Z",fill:"black","fill-opacity":"0.2"}),C.jsx("path",{d:"M4.52464 12.6249C4.59964 12.6499 4.64964 12.6499 4.72464 12.6499C4.92464 12.6499 5.12464 12.5249 5.19964 12.3249L6.37464 9.3749H9.62464L10.7996 12.3249C10.8746 12.5249 11.0746 12.6499 11.2746 12.6499C11.3496 12.6499 11.3996 12.6499 11.4746 12.6249C11.7496 12.5249 11.8746 12.2249 11.7746 11.9499L8.47464 3.6749C8.47464 3.6499 8.44964 3.6499 8.44964 3.6249C8.44964 3.6249 8.44964 3.5999 8.42464 3.5999C8.42464 3.5749 8.39964 3.5749 8.39964 3.5499L8.37464 3.5249C8.37464 3.5249 8.34964 3.4999 8.32464 3.4999C8.29964 3.4999 8.29964 3.4749 8.27464 3.4749C8.27464 3.4749 8.24964 3.4499 8.22464 3.4499C8.19964 3.4499 8.19964 3.4249 8.17464 3.4249H8.14964C8.12463 3.4249 8.12464 3.4249 8.09964 3.3999H7.89964C7.87464 3.3999 7.87464 3.3999 7.84964 3.4249H7.82464C7.79964 3.4249 7.79964 3.4499 7.77464 3.4499C7.74964 3.4499 7.74964 3.4749 7.72464 3.4749C7.69964 3.4749 7.69964 3.4999 7.67464 3.4999C7.64964 3.4999 7.64964 3.5249 7.62464 3.5249L7.59964 3.5499C7.59964 3.5749 7.57464 3.5749 7.57464 3.5999L7.54964 3.6249C7.54964 3.6499 7.52464 3.6499 7.52464 3.6749L4.22464 11.9499C4.12464 12.2249 4.24964 12.5249 4.52464 12.6249ZM6.79964 8.3249L7.99964 5.2749L9.19964 8.3249H6.79964Z",fill:"black","fill-opacity":"0.2"}),C.jsx("path",{d:"M4.52464 12.6249C4.59964 12.6499 4.64964 12.6499 4.72464 12.6499C4.92464 12.6499 5.12464 12.5249 5.19964 12.3249L6.37464 9.3749H9.62464L10.7996 12.3249C10.8746 12.5249 11.0746 12.6499 11.2746 12.6499C11.3496 12.6499 11.3996 12.6499 11.4746 12.6249C11.7496 12.5249 11.8746 12.2249 11.7746 11.9499L8.47464 3.6749C8.47464 3.6499 8.44964 3.6499 8.44964 3.6249C8.44964 3.6249 8.44964 3.5999 8.42464 3.5999C8.42464 3.5749 8.39964 3.5749 8.39964 3.5499L8.37464 3.5249C8.37464 3.5249 8.34964 3.4999 8.32464 3.4999C8.29964 3.4999 8.29964 3.4749 8.27464 3.4749C8.27464 3.4749 8.24964 3.4499 8.22464 3.4499C8.19964 3.4499 8.19964 3.4249 8.17464 3.4249H8.14964C8.12463 3.4249 8.12464 3.4249 8.09964 3.3999H7.89964C7.87464 3.3999 7.87464 3.3999 7.84964 3.4249H7.82464C7.79964 3.4249 7.79964 3.4499 7.77464 3.4499C7.74964 3.4499 7.74964 3.4749 7.72464 3.4749C7.69964 3.4749 7.69964 3.4999 7.67464 3.4999C7.64964 3.4999 7.64964 3.5249 7.62464 3.5249L7.59964 3.5499C7.59964 3.5749 7.57464 3.5749 7.57464 3.5999L7.54964 3.6249C7.54964 3.6499 7.52464 3.6499 7.52464 3.6749L4.22464 11.9499C4.12464 12.2249 4.24964 12.5249 4.52464 12.6249ZM6.79964 8.3249L7.99964 5.2749L9.19964 8.3249H6.79964Z",fill:"black","fill-opacity":"0.2"}),C.jsx("path",{d:"M14.475 1H1.525C1.225 1 1 1.225 1 1.525L1 14.4751C1 14.7751 1.225 15.0001 1.525 15.0001H14.475C14.775 15.0001 15 14.7751 15 14.4751V1.525C15 1.225 14.775 1 14.475 1ZM13.95 13.9501H2.05V2.05H13.95V13.9501Z",fill:"#121111"}),C.jsx("path",{d:"M14.475 1H1.525C1.225 1 1 1.225 1 1.525L1 14.4751C1 14.7751 1.225 15.0001 1.525 15.0001H14.475C14.775 15.0001 15 14.7751 15 14.4751V1.525C15 1.225 14.775 1 14.475 1ZM13.95 13.9501H2.05V2.05H13.95V13.9501Z",fill:"black","fill-opacity":"0.2"}),C.jsx("path",{d:"M14.475 1H1.525C1.225 1 1 1.225 1 1.525L1 14.4751C1 14.7751 1.225 15.0001 1.525 15.0001H14.475C14.775 15.0001 15 14.7751 15 14.4751V1.525C15 1.225 14.775 1 14.475 1ZM13.95 13.9501H2.05V2.05H13.95V13.9501Z",fill:"black","fill-opacity":"0.2"}),C.jsx("path",{d:"M14.475 1H1.525C1.225 1 1 1.225 1 1.525L1 14.4751C1 14.7751 1.225 15.0001 1.525 15.0001H14.475C14.775 15.0001 15 14.7751 15 14.4751V1.525C15 1.225 14.775 1 14.475 1ZM13.95 13.9501H2.05V2.05H13.95V13.9501Z",fill:"black","fill-opacity":"0.2"}),C.jsx("path",{d:"M14.475 1H1.525C1.225 1 1 1.225 1 1.525L1 14.4751C1 14.7751 1.225 15.0001 1.525 15.0001H14.475C14.775 15.0001 15 14.7751 15 14.4751V1.525C15 1.225 14.775 1 14.475 1ZM13.95 13.9501H2.05V2.05H13.95V13.9501Z",fill:"black","fill-opacity":"0.2"}),C.jsx("path",{d:"M14.475 1H1.525C1.225 1 1 1.225 1 1.525L1 14.4751C1 14.7751 1.225 15.0001 1.525 15.0001H14.475C14.775 15.0001 15 14.7751 15 14.4751V1.525C15 1.225 14.775 1 14.475 1ZM13.95 13.9501H2.05V2.05H13.95V13.9501Z",fill:"black","fill-opacity":"0.2"}),C.jsx("path",{d:"M14.475 1H1.525C1.225 1 1 1.225 1 1.525L1 14.4751C1 14.7751 1.225 15.0001 1.525 15.0001H14.475C14.775 15.0001 15 14.7751 15 14.4751V1.525C15 1.225 14.775 1 14.475 1ZM13.95 13.9501H2.05V2.05H13.95V13.9501Z",fill:"black","fill-opacity":"0.2"}),C.jsx("path",{d:"M14.475 1H1.525C1.225 1 1 1.225 1 1.525L1 14.4751C1 14.7751 1.225 15.0001 1.525 15.0001H14.475C14.775 15.0001 15 14.7751 15 14.4751V1.525C15 1.225 14.775 1 14.475 1ZM13.95 13.9501H2.05V2.05H13.95V13.9501Z",fill:"black","fill-opacity":"0.2"}),C.jsx("path",{d:"M14.475 1H1.525C1.225 1 1 1.225 1 1.525L1 14.4751C1 14.7751 1.225 15.0001 1.525 15.0001H14.475C14.775 15.0001 15 14.7751 15 14.4751V1.525C15 1.225 14.775 1 14.475 1ZM13.95 13.9501H2.05V2.05H13.95V13.9501Z",fill:"black","fill-opacity":"0.2"})]}),xq=()=>C.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1",height:"14",viewBox:"0 0 1 14",fill:"none",children:C.jsx("path",{d:"M0.5 0V14",stroke:"#E0E0E0"})}),wq=()=>C.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:[C.jsx("path",{d:"M8.5 3.15V10.5C8.5 10.8 8.3 11 8 11C7.7 11 7.5 10.8 7.5 10.5V3.3L5.6 5.2C5.4 5.4 5.1 5.4 4.9 5.2C4.7 5 4.7 4.7 4.9 4.5L7.35 2.05C7.75 1.65 8.35 1.65 8.75 2.05L11.2 4.5C11.4 4.7 11.4 5 11.2 5.2C11 5.4 10.7 5.4 10.5 5.2L8.5 3.15ZM13 9.5C13 9.2 13.2 9 13.5 9C13.8 9 14 9.2 14 9.5V12C14 12.85 13.35 13.5 12.5 13.5H3.5C2.65 13.5 2 12.85 2 12V9.5C2 9.2 2.2 9 2.5 9C2.8 9 3 9.2 3 9.5V12C3 12.3 3.2 12.5 3.5 12.5H12.5C12.8 12.5 13 12.3 13 12V9.5Z",fill:"currentColor"}),C.jsx("path",{d:"M8.5 3.15V10.5C8.5 10.8 8.3 11 8 11C7.7 11 7.5 10.8 7.5 10.5V3.3L5.6 5.2C5.4 5.4 5.1 5.4 4.9 5.2C4.7 5 4.7 4.7 4.9 4.5L7.35 2.05C7.75 1.65 8.35 1.65 8.75 2.05L11.2 4.5C11.4 4.7 11.4 5 11.2 5.2C11 5.4 10.7 5.4 10.5 5.2L8.5 3.15ZM13 9.5C13 9.2 13.2 9 13.5 9C13.8 9 14 9.2 14 9.5V12C14 12.85 13.35 13.5 12.5 13.5H3.5C2.65 13.5 2 12.85 2 12V9.5C2 9.2 2.2 9 2.5 9C2.8 9 3 9.2 3 9.5V12C3 12.3 3.2 12.5 3.5 12.5H12.5C12.8 12.5 13 12.3 13 12V9.5Z","fill-opacity":"0.2"}),C.jsx("path",{d:"M8.5 3.15V10.5C8.5 10.8 8.3 11 8 11C7.7 11 7.5 10.8 7.5 10.5V3.3L5.6 5.2C5.4 5.4 5.1 5.4 4.9 5.2C4.7 5 4.7 4.7 4.9 4.5L7.35 2.05C7.75 1.65 8.35 1.65 8.75 2.05L11.2 4.5C11.4 4.7 11.4 5 11.2 5.2C11 5.4 10.7 5.4 10.5 5.2L8.5 3.15ZM13 9.5C13 9.2 13.2 9 13.5 9C13.8 9 14 9.2 14 9.5V12C14 12.85 13.35 13.5 12.5 13.5H3.5C2.65 13.5 2 12.85 2 12V9.5C2 9.2 2.2 9 2.5 9C2.8 9 3 9.2 3 9.5V12C3 12.3 3.2 12.5 3.5 12.5H12.5C12.8 12.5 13 12.3 13 12V9.5Z","fill-opacity":"0.2"}),C.jsx("path",{d:"M8.5 3.15V10.5C8.5 10.8 8.3 11 8 11C7.7 11 7.5 10.8 7.5 10.5V3.3L5.6 5.2C5.4 5.4 5.1 5.4 4.9 5.2C4.7 5 4.7 4.7 4.9 4.5L7.35 2.05C7.75 1.65 8.35 1.65 8.75 2.05L11.2 4.5C11.4 4.7 11.4 5 11.2 5.2C11 5.4 10.7 5.4 10.5 5.2L8.5 3.15ZM13 9.5C13 9.2 13.2 9 13.5 9C13.8 9 14 9.2 14 9.5V12C14 12.85 13.35 13.5 12.5 13.5H3.5C2.65 13.5 2 12.85 2 12V9.5C2 9.2 2.2 9 2.5 9C2.8 9 3 9.2 3 9.5V12C3 12.3 3.2 12.5 3.5 12.5H12.5C12.8 12.5 13 12.3 13 12V9.5Z","fill-opacity":"0.2"}),C.jsx("path",{d:"M8.5 3.15V10.5C8.5 10.8 8.3 11 8 11C7.7 11 7.5 10.8 7.5 10.5V3.3L5.6 5.2C5.4 5.4 5.1 5.4 4.9 5.2C4.7 5 4.7 4.7 4.9 4.5L7.35 2.05C7.75 1.65 8.35 1.65 8.75 2.05L11.2 4.5C11.4 4.7 11.4 5 11.2 5.2C11 5.4 10.7 5.4 10.5 5.2L8.5 3.15ZM13 9.5C13 9.2 13.2 9 13.5 9C13.8 9 14 9.2 14 9.5V12C14 12.85 13.35 13.5 12.5 13.5H3.5C2.65 13.5 2 12.85 2 12V9.5C2 9.2 2.2 9 2.5 9C2.8 9 3 9.2 3 9.5V12C3 12.3 3.2 12.5 3.5 12.5H12.5C12.8 12.5 13 12.3 13 12V9.5Z","fill-opacity":"0.2"}),C.jsx("path",{d:"M8.5 3.15V10.5C8.5 10.8 8.3 11 8 11C7.7 11 7.5 10.8 7.5 10.5V3.3L5.6 5.2C5.4 5.4 5.1 5.4 4.9 5.2C4.7 5 4.7 4.7 4.9 4.5L7.35 2.05C7.75 1.65 8.35 1.65 8.75 2.05L11.2 4.5C11.4 4.7 11.4 5 11.2 5.2C11 5.4 10.7 5.4 10.5 5.2L8.5 3.15ZM13 9.5C13 9.2 13.2 9 13.5 9C13.8 9 14 9.2 14 9.5V12C14 12.85 13.35 13.5 12.5 13.5H3.5C2.65 13.5 2 12.85 2 12V9.5C2 9.2 2.2 9 2.5 9C2.8 9 3 9.2 3 9.5V12C3 12.3 3.2 12.5 3.5 12.5H12.5C12.8 12.5 13 12.3 13 12V9.5Z","fill-opacity":"0.2"}),C.jsx("path",{d:"M8.5 3.15V10.5C8.5 10.8 8.3 11 8 11C7.7 11 7.5 10.8 7.5 10.5V3.3L5.6 5.2C5.4 5.4 5.1 5.4 4.9 5.2C4.7 5 4.7 4.7 4.9 4.5L7.35 2.05C7.75 1.65 8.35 1.65 8.75 2.05L11.2 4.5C11.4 4.7 11.4 5 11.2 5.2C11 5.4 10.7 5.4 10.5 5.2L8.5 3.15ZM13 9.5C13 9.2 13.2 9 13.5 9C13.8 9 14 9.2 14 9.5V12C14 12.85 13.35 13.5 12.5 13.5H3.5C2.65 13.5 2 12.85 2 12V9.5C2 9.2 2.2 9 2.5 9C2.8 9 3 9.2 3 9.5V12C3 12.3 3.2 12.5 3.5 12.5H12.5C12.8 12.5 13 12.3 13 12V9.5Z","fill-opacity":"0.2"}),C.jsx("path",{d:"M8.5 3.15V10.5C8.5 10.8 8.3 11 8 11C7.7 11 7.5 10.8 7.5 10.5V3.3L5.6 5.2C5.4 5.4 5.1 5.4 4.9 5.2C4.7 5 4.7 4.7 4.9 4.5L7.35 2.05C7.75 1.65 8.35 1.65 8.75 2.05L11.2 4.5C11.4 4.7 11.4 5 11.2 5.2C11 5.4 10.7 5.4 10.5 5.2L8.5 3.15ZM13 9.5C13 9.2 13.2 9 13.5 9C13.8 9 14 9.2 14 9.5V12C14 12.85 13.35 13.5 12.5 13.5H3.5C2.65 13.5 2 12.85 2 12V9.5C2 9.2 2.2 9 2.5 9C2.8 9 3 9.2 3 9.5V12C3 12.3 3.2 12.5 3.5 12.5H12.5C12.8 12.5 13 12.3 13 12V9.5Z","fill-opacity":"0.2"}),C.jsx("path",{d:"M8.5 3.15V10.5C8.5 10.8 8.3 11 8 11C7.7 11 7.5 10.8 7.5 10.5V3.3L5.6 5.2C5.4 5.4 5.1 5.4 4.9 5.2C4.7 5 4.7 4.7 4.9 4.5L7.35 2.05C7.75 1.65 8.35 1.65 8.75 2.05L11.2 4.5C11.4 4.7 11.4 5 11.2 5.2C11 5.4 10.7 5.4 10.5 5.2L8.5 3.15ZM13 9.5C13 9.2 13.2 9 13.5 9C13.8 9 14 9.2 14 9.5V12C14 12.85 13.35 13.5 12.5 13.5H3.5C2.65 13.5 2 12.85 2 12V9.5C2 9.2 2.2 9 2.5 9C2.8 9 3 9.2 3 9.5V12C3 12.3 3.2 12.5 3.5 12.5H12.5C12.8 12.5 13 12.3 13 12V9.5Z","fill-opacity":"0.2"})]}),bq=()=>C.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",children:C.jsx("rect",{x:"4",y:"4",width:"8",height:"8",rx:"2"})}),KE=()=>C.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",children:C.jsx("path",{d:"M3.7789 14.5951C3.1481 14.594 2.54346 14.3429 2.09751 13.8968C1.65156 13.4506 1.4007 12.8459 1.3999 12.2151V3.9801C1.4007 3.3493 1.65156 2.74455 2.09751 2.29841C2.54346 1.85228 3.1481 1.60116 3.7789 1.6001H8.3589C8.48515 1.6001 8.60622 1.65025 8.69548 1.73951C8.78475 1.82878 8.8349 1.94985 8.8349 2.0761C8.8349 2.20234 8.78475 2.32341 8.69548 2.41268C8.60622 2.50195 8.48515 2.5521 8.3589 2.5521H3.7799C3.40142 2.55316 3.03877 2.70411 2.77132 2.97193C2.50388 3.23975 2.35343 3.60261 2.3529 3.9811V12.2141C2.3539 13.0021 2.9929 13.6411 3.7799 13.6431H12.0089C12.3874 13.642 12.75 13.4911 13.0175 13.2233C13.2849 12.9554 13.4354 12.5926 13.4359 12.2141V7.6311C13.433 7.56682 13.4431 7.50261 13.4656 7.44235C13.4882 7.38209 13.5227 7.32704 13.5672 7.28051C13.6116 7.23397 13.6651 7.19694 13.7242 7.17164C13.7834 7.14633 13.8471 7.13329 13.9114 7.13329C13.9757 7.13329 14.0394 7.14633 14.0986 7.17164C14.1577 7.19694 14.2112 7.23397 14.2556 7.28051C14.3001 7.32704 14.3346 7.38209 14.3572 7.44235C14.3797 7.50261 14.3899 7.56682 14.3869 7.6311V12.2141C14.3861 12.8447 14.1354 13.4493 13.6896 13.8954C13.2439 14.3415 12.6395 14.5928 12.0089 14.5941H3.7789V14.5951ZM11.9199 4.0661L12.3699 4.5141L10.1819 6.7041L7.5659 9.3201L6.5799 9.4121L6.6719 8.4241L9.2849 5.8061L11.4739 3.6161L11.9209 4.0661H11.9199ZM11.4729 2.5331C11.3892 2.53318 11.3063 2.54983 11.2291 2.5821C11.1519 2.61436 11.0818 2.66161 11.0229 2.7211L8.6119 5.1331L5.8399 7.9291C5.7876 7.98109 5.75507 8.0497 5.7479 8.1231L5.5699 10.1001C5.56602 10.1441 5.57133 10.1884 5.58549 10.2302C5.59966 10.272 5.62238 10.3104 5.6522 10.3429C5.68201 10.3755 5.71828 10.4014 5.75869 10.4192C5.7991 10.437 5.84276 10.4461 5.8869 10.4461H5.9159L7.8919 10.2691C7.96495 10.2617 8.03316 10.2292 8.0849 10.1771L10.8639 7.3961L13.2739 4.9841C13.333 4.92511 13.3799 4.85505 13.4119 4.77792C13.4439 4.70079 13.4604 4.6181 13.4604 4.5346C13.4604 4.45109 13.4439 4.36841 13.4119 4.29128C13.3799 4.21414 13.333 4.14408 13.2739 4.0851L12.5929 3.3941L11.9199 2.7211C11.8017 2.60167 11.6409 2.53405 11.4729 2.5331Z"})}),Cq=()=>C.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"29",height:"29",viewBox:"0 0 29 29",fill:"none",children:C.jsx("path",{d:"M14.0287 0C6.28125 0 0 6.28125 0 14.0306C0 21.7791 6.28125 28.0603 14.0297 28.0603C21.7781 28.0603 28.0594 21.7791 28.0594 14.0306C28.0594 6.28219 21.7781 0 14.0297 0H14.0287ZM15.3909 22.1259C15.3909 22.3119 15.3171 22.4903 15.1855 22.6218C15.054 22.7533 14.8757 22.8272 14.6897 22.8272H12.585C12.399 22.8272 12.2207 22.7533 12.0891 22.6218C11.9576 22.4903 11.8838 22.3119 11.8838 22.1259V20.0213C11.8838 19.6341 12.1978 19.32 12.585 19.32H14.6897C15.0769 19.32 15.3909 19.6341 15.3909 20.0213V22.1259ZM18.8691 12.4697C18.5859 12.8728 17.9466 13.3847 17.145 14.0091L16.2572 14.6222C15.8259 14.9559 15.4434 15.3459 15.3019 15.7913C15.2531 15.9431 15.2175 16.1934 15.1931 16.4625C15.1809 16.5984 15.0591 16.875 14.7759 16.875H12.4913C12.12 16.875 12.0534 16.5844 12.06 16.4428C12.1003 15.51 12.1866 14.6831 12.5662 14.2369C13.335 13.3359 15.0844 12.2137 15.0844 12.2137C15.3506 12.0122 15.5662 11.7937 15.7294 11.5556C16.0256 11.1469 16.2722 10.6978 16.2722 10.2075C16.2722 9.64312 16.1072 9.12937 15.7753 8.66344C15.4472 8.20031 14.8425 7.96781 13.9669 7.96781C13.1053 7.96781 12.495 8.25375 12.135 8.82562C11.8688 9.2475 11.7009 9.63656 11.6316 10.0594C11.6072 10.2094 11.5116 10.5234 11.1909 10.5234H8.96625C8.49187 10.5234 8.38781 10.2159 8.40094 10.0678C8.5725 8.20125 9.30281 6.92531 10.5928 6.10594C11.4703 5.5425 12.5494 5.25938 13.8291 5.25938C15.5119 5.25938 16.9078 5.66062 18.0216 6.46313C19.1325 7.26562 19.6903 8.45344 19.6903 10.0294C19.6903 10.995 19.3509 11.8088 18.8691 12.4697Z",fill:"#0265FF"})}),Sq=()=>C.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",children:[C.jsx("path",{d:"M8 15C4.2 15 1 11.9 1 8C1 4.2 4.1 1 8 1C11.8 1 15 4.1 15 8C15 11.9 11.8 15 8 15ZM8 2C4.7 2 2 4.7 2 8C2 11.3 4.7 14 8 14C11.3 14 14 11.3 14 8C14 4.7 11.3 2 8 2Z"}),C.jsx("path",{d:"M7.19922 4.8C7.19922 5.2 7.49922 5.6 7.99922 5.6C8.49922 5.6 8.79922 5.3 8.79922 4.8C8.79922 4.3 8.39922 4 7.99922 4C7.59922 4 7.19922 4.3 7.19922 4.8ZM7.99922 12C7.69922 12 7.49922 11.8 7.49922 11.5V7C7.49922 6.7 7.69922 6.5 7.99922 6.5C8.29922 6.5 8.49922 6.7 8.49922 7V11.5C8.49922 11.8 8.29922 12 7.99922 12Z"})]}),z9=({size:e=20})=>C.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 16 16",fill:"none",children:[C.jsx("path",{d:"M3.07981 6.57422L2.22738 6.82578L1.375 6.57422L1.6265 7.43609L1.375 8.29797L2.22744 8.04366L3.07981 8.29797L2.831 7.43609L3.07981 6.57422Z",fill:"url(#paint0_linear_18510_37545)"}),C.jsx("path",{d:"M8.63384 3.85224L8.25922 3.53543L7.77478 3.47312L8.08809 3.09437L8.14978 2.60449L8.52434 2.92137L9.00884 2.98362L8.69547 3.36237L8.63384 3.85224Z",fill:"url(#paint1_linear_18510_37545)"}),C.jsx("path",{d:"M6.03681 4.04956L5.23375 3.3705L4.19531 3.23694L4.867 2.425L4.99913 1.375L5.80213 2.05413L6.8405 2.18769L6.16894 2.99956L6.03681 4.04956Z",fill:"url(#paint2_linear_18510_37545)"}),C.jsx("path",{d:"M13.4934 5.30179C13.5249 5.37309 13.5505 5.45627 13.5703 5.55134C13.59 5.6464 13.5998 5.74543 13.5998 5.84842C13.5998 5.9514 13.5801 6.05439 13.5407 6.15738C13.5013 6.26036 13.4382 6.35939 13.3514 6.45445C13.2568 6.54952 13.172 6.6327 13.0971 6.704C13.0222 6.7753 12.9571 6.83867 12.9019 6.89413C12.8389 6.9575 12.7797 7.01296 12.7245 7.06049L10.5126 4.83835C10.6072 4.75121 10.7196 4.64624 10.8497 4.52345C10.9798 4.40066 11.0882 4.30361 11.175 4.23231C11.2854 4.14517 11.3997 4.08378 11.518 4.04813C11.6363 4.01248 11.7526 3.99663 11.867 4.00059C11.9813 4.00456 12.0917 4.02238 12.1981 4.05407C12.3046 4.08576 12.3973 4.12141 12.4761 4.16102C12.6417 4.24816 12.8251 4.40066 13.0261 4.61852C13.2272 4.83637 13.383 5.06413 13.4934 5.30179ZM4.27895 11.1007C4.32627 11.0532 4.43667 10.9403 4.61015 10.7621C4.78364 10.5838 5.00049 10.364 5.26072 10.1026L6.1242 9.2351L7.08231 8.27257L9.62545 5.7177L11.8374 7.95172L9.29425 10.5066L8.34797 11.4691C8.03254 11.7781 7.74865 12.0613 7.49631 12.3188C7.24397 12.5762 7.035 12.7881 6.8694 12.9545C6.7038 13.1209 6.60523 13.2159 6.57369 13.2397C6.49483 13.311 6.40415 13.3863 6.30163 13.4655C6.19912 13.5447 6.09266 13.6081 5.98226 13.6556C5.87186 13.7111 5.71021 13.7784 5.49729 13.8576C5.28438 13.9368 5.06161 14.0141 4.82898 14.0893C4.59635 14.1646 4.37555 14.23 4.16658 14.2854C3.95761 14.3409 3.80187 14.3765 3.69936 14.3924C3.48644 14.4161 3.3445 14.3844 3.27353 14.2973C3.20256 14.2102 3.18284 14.0636 3.21439 13.8576C3.23016 13.7467 3.26762 13.5863 3.32676 13.3764C3.3859 13.1664 3.44899 12.9486 3.51601 12.7228C3.58304 12.497 3.6481 12.2891 3.71119 12.0989C3.77427 11.9088 3.82553 11.7781 3.86496 11.7068C3.91227 11.5959 3.9655 11.4949 4.02464 11.4038C4.08378 11.3127 4.16855 11.2117 4.27895 11.1007Z",fill:"url(#paint3_linear_18510_37545)"}),C.jsxs("defs",{children:[C.jsxs("linearGradient",{id:"paint0_linear_18510_37545",x1:"2.22741",y1:"6.57422",x2:"2.22741",y2:"8.29797",gradientUnits:"userSpaceOnUse",children:[C.jsx("stop",{"stop-color":"#0265FF"}),C.jsx("stop",{offset:"1","stop-color":"#A6FFFF"})]}),C.jsxs("linearGradient",{id:"paint1_linear_18510_37545",x1:"8.39181",y1:"2.60449",x2:"8.39181",y2:"3.85224",gradientUnits:"userSpaceOnUse",children:[C.jsx("stop",{"stop-color":"#0265FF"}),C.jsx("stop",{offset:"1","stop-color":"#A6FFFF"})]}),C.jsxs("linearGradient",{id:"paint2_linear_18510_37545",x1:"5.51791",y1:"1.375",x2:"5.51791",y2:"4.04956",gradientUnits:"userSpaceOnUse",children:[C.jsx("stop",{"stop-color":"#0265FF"}),C.jsx("stop",{offset:"1","stop-color":"#A6FFFF"})]}),C.jsxs("linearGradient",{id:"paint3_linear_18510_37545",x1:"8.39983",y1:"4",x2:"8.39983",y2:"14.4",gradientUnits:"userSpaceOnUse",children:[C.jsx("stop",{"stop-color":"#0265FF"}),C.jsx("stop",{offset:"1","stop-color":"#A6FFFF"})]})]})]}),kq=()=>C.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:C.jsx("path",{d:"M8 1C8.91925 1 9.8295 1.18106 10.6788 1.53284C11.5281 1.88463 12.2997 2.40024 12.9497 3.05025C13.5998 3.70026 14.1154 4.47194 14.4672 5.32122C14.8189 6.17049 15 7.08075 15 8C15 8.91925 14.8189 9.8295 14.4672 10.6788C14.1154 11.5281 13.5998 12.2997 12.9497 12.9497C12.2997 13.5998 11.5281 14.1154 10.6788 14.4672C9.8295 14.8189 8.91925 15 8 15C4.13372 15 1 11.8658 1 8C1 4.13372 4.13372 1 8 1ZM11.1495 4.85C11.0301 4.7308 10.8682 4.66386 10.6995 4.66386C10.5308 4.66386 10.369 4.7308 10.2496 4.85L8 7.10058L5.74993 4.85C5.6295 4.73566 5.46918 4.67288 5.30313 4.67503C5.13708 4.67718 4.97844 4.7441 4.86102 4.86153C4.7436 4.97895 4.67668 5.13759 4.67452 5.30364C4.67237 5.46968 4.73515 5.63001 4.84949 5.75044L7.10109 8L4.85 10.2496C4.73566 10.37 4.67288 10.5303 4.67503 10.6964C4.67718 10.8624 4.7441 11.021 4.86153 11.1385C4.97895 11.2559 5.13759 11.3228 5.30364 11.325C5.46969 11.3271 5.63001 11.2643 5.75044 11.15L8 8.8984L10.2496 11.1495C10.3703 11.2621 10.53 11.3234 10.695 11.3205C10.86 11.3177 11.0175 11.2509 11.1342 11.1342C11.2509 11.0175 11.3178 10.8601 11.3208 10.6951C11.3237 10.53 11.2625 10.3703 11.15 10.2496L8.8984 8L11.1495 5.74993C11.2688 5.63049 11.3359 5.46856 11.3359 5.29971C11.3359 5.13086 11.2688 4.96892 11.1495 4.84949V4.85Z",fill:"#666666"})}),Eq=()=>C.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"26",height:"26",viewBox:"0 0 26 26",fill:"currentColor",children:C.jsx("path",{d:"M6.5 13.0001C6.5 12.6394 6.66738 12.2932 6.968 12.0349L16.7732 3.64987C17.0905 3.38703 17.4907 3.24537 17.9026 3.25012C18.3284 3.25012 18.7363 3.39474 19.032 3.64987C19.656 4.18937 19.656 5.04249 19.032 5.58199L10.3545 13.0001L19.032 20.4182C19.6544 20.9577 19.6544 21.8109 19.032 22.3504C18.7151 22.6136 18.3138 22.7566 17.901 22.7501C17.4753 22.7501 17.0674 22.6055 16.7732 22.3504L6.96638 13.9654C6.82284 13.8483 6.70669 13.7012 6.62612 13.5345C6.54554 13.3677 6.50249 13.1853 6.5 13.0001Z"})}),_q=()=>C.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",children:[C.jsx("g",{"clip-path":"url(#clip0_18449_37925)",children:C.jsx("path",{d:"M2.71657 9.24964C2.74357 9.24964 2.76957 9.22364 2.82357 9.19764L2.84957 9.17064C2.87657 9.17064 2.87657 9.14364 2.90357 9.14364L4.90157 7.49264C5.01434 7.40051 5.08606 7.26749 5.10105 7.12264C5.11604 6.9778 5.07309 6.83291 4.98157 6.71964C4.88944 6.60687 4.75642 6.53515 4.61158 6.52016C4.46673 6.50517 4.32184 6.54812 4.20857 6.63964L3.06257 7.59964C3.16957 4.90864 4.95457 2.96364 7.45857 2.80364C8.97757 2.69664 9.90957 2.93664 10.6556 3.57564C10.8956 3.78964 11.2416 3.76264 11.4556 3.52264C11.5058 3.46726 11.5443 3.40232 11.5689 3.3317C11.5934 3.26109 11.6035 3.18625 11.5984 3.11166C11.5934 3.03707 11.5734 2.96426 11.5395 2.89759C11.5057 2.83092 11.4588 2.77176 11.4016 2.72364C10.1766 1.68464 8.71157 1.60464 7.43157 1.68464C4.34157 1.87064 2.13157 4.24264 1.91757 7.38564L0.95757 6.47964C0.903958 6.42795 0.840508 6.38756 0.770985 6.36086C0.701463 6.33416 0.627285 6.3217 0.552854 6.32422C0.478424 6.32673 0.405258 6.34418 0.337699 6.37552C0.270141 6.40685 0.209566 6.45144 0.15957 6.50664C-0.05343 6.74664 -0.05343 7.09264 0.18557 7.30664L2.10357 9.11664L2.15757 9.17064L2.18357 9.19764C2.1977 9.21273 2.21696 9.222 2.23757 9.22364C2.23757 9.22364 2.26357 9.22364 2.26357 9.25064C2.29057 9.25064 2.31757 9.27764 2.34357 9.27764H2.55657C2.63657 9.27764 2.66357 9.27764 2.71657 9.25064C2.69057 9.25064 2.69057 9.25064 2.71657 9.25064V9.24964ZM15.7966 7.35964L13.9066 5.81364C13.9066 5.81364 13.8796 5.81364 13.8796 5.78764C13.8526 5.78764 13.8526 5.76064 13.8256 5.76064C13.7996 5.76064 13.7996 5.73364 13.7726 5.73364C13.7456 5.73364 13.7456 5.70764 13.7196 5.70764C13.6926 5.70764 13.6926 5.70764 13.6656 5.68064H13.4526C13.3829 5.68128 13.314 5.69575 13.25 5.72321C13.186 5.75068 13.128 5.7906 13.0796 5.84064L11.4026 7.57264C11.3507 7.62627 11.3102 7.68978 11.2834 7.7594C11.2566 7.82902 11.2441 7.90331 11.2466 7.97787C11.2491 8.05242 11.2666 8.1257 11.2981 8.19335C11.3295 8.261 11.3742 8.32163 11.4296 8.37164C11.5356 8.47764 11.6696 8.53164 11.8296 8.53164C11.978 8.53068 12.1206 8.47351 12.2286 8.37164L13.1346 7.43864C13.1606 7.59864 13.1606 7.75864 13.1606 7.89164C13.1606 10.8486 11.4296 13.0066 8.92457 13.1666C7.03357 13.2736 6.10157 12.9806 4.66257 11.7016C4.60723 11.6512 4.54228 11.6125 4.47161 11.5877C4.40093 11.563 4.32599 11.5528 4.25128 11.5578C4.17658 11.5627 4.10364 11.5827 4.03684 11.6165C3.97005 11.6504 3.91077 11.6973 3.86257 11.7546C3.81219 11.81 3.77353 11.875 3.74889 11.9458C3.72425 12.0165 3.71415 12.0914 3.71919 12.1661C3.72424 12.2409 3.74432 12.3138 3.77824 12.3805C3.81215 12.4473 3.8592 12.5065 3.91657 12.5546C5.38157 13.8596 6.47357 14.3386 8.23257 14.3386C8.47257 14.3386 8.71257 14.3386 8.97857 14.3126C12.0416 14.1256 14.2536 11.4346 14.2536 7.94564V7.62564L15.0526 8.29164C15.1586 8.37164 15.2926 8.42464 15.3986 8.42464C15.5586 8.42464 15.7186 8.34464 15.8246 8.21164C16.0916 7.91864 16.0376 7.54564 15.7986 7.35864L15.7966 7.35964Z"})}),C.jsx("defs",{children:C.jsx("clipPath",{id:"clip0_18449_37925",children:C.jsx("rect",{width:"16",height:"16",fill:"white"})})})]}),Tq=()=>C.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",children:[C.jsx("path",{d:"M13.5483 1.00195H5.68641C5.30143 1.00191 4.93219 1.15477 4.6599 1.42692C4.3876 1.69907 4.23454 2.06822 4.23438 2.4532V4.2207H2.25C1.91848 4.2207 1.60054 4.3524 1.36612 4.58682C1.1317 4.82124 1 5.13918 1 5.4707V13.752C1 14.0835 1.1317 14.4014 1.36612 14.6358C1.60054 14.8703 1.91848 15.002 2.25 15.002H10.5312C10.8628 15.002 11.1807 14.8703 11.4151 14.6358C11.6496 14.4014 11.7812 14.0835 11.7812 13.752V11.7832H13.5483C13.9333 11.7832 14.3026 11.6302 14.5748 11.3579C14.8471 11.0856 15 10.7164 15 10.3313V2.4532C14.9998 2.06828 14.8468 1.69917 14.5746 1.42703C14.3024 1.15489 13.9332 1.00199 13.5483 1.00195ZM10.5312 14.0645H2.25C2.16712 14.0645 2.08763 14.0315 2.02903 13.9729C1.97042 13.9143 1.9375 13.8348 1.9375 13.752V5.4707C1.9375 5.38782 1.97042 5.30834 2.02903 5.24973C2.08763 5.19113 2.16712 5.1582 2.25 5.1582H10.5312C10.6141 5.1582 10.6936 5.19113 10.7522 5.24973C10.8108 5.30834 10.8438 5.38782 10.8438 5.4707V13.752C10.8438 13.8348 10.8108 13.9143 10.7522 13.9729C10.6936 14.0315 10.6141 14.0645 10.5312 14.0645ZM14.0781 10.3313C14.0781 10.4677 14.0239 10.5986 13.9275 10.695C13.831 10.7915 13.7002 10.8457 13.5638 10.8457H11.7969V5.4707C11.7969 5.13918 11.6652 4.82124 11.4308 4.58682C11.1963 4.3524 10.8784 4.2207 10.5469 4.2207H5.17188V2.4532C5.17188 2.31678 5.22607 2.18595 5.32253 2.08949C5.419 1.99302 5.54983 1.93883 5.68625 1.93883H13.5639C13.7003 1.93887 13.8311 1.99308 13.9275 2.08954C14.024 2.186 14.0781 2.31681 14.0781 2.4532V10.3313Z"}),C.jsx("path",{d:"M8.47518 7.73633H4.32861C4.08158 7.73633 3.86971 7.92383 3.85189 8.17008C3.84708 8.23441 3.85559 8.29904 3.8769 8.35993C3.89821 8.42082 3.93186 8.47666 3.97575 8.52394C4.01963 8.57123 4.0728 8.60895 4.13193 8.63474C4.19106 8.66053 4.25488 8.67384 4.31939 8.67383H8.46596C8.71299 8.67383 8.92486 8.48633 8.94268 8.24008C8.94749 8.17575 8.93898 8.11111 8.91767 8.05023C8.89636 7.98934 8.86271 7.9335 8.81882 7.88621C8.77494 7.83893 8.72177 7.80121 8.66264 7.77542C8.60351 7.74963 8.53969 7.73632 8.47518 7.73633ZM8.47518 10.5488H4.32861C4.08158 10.5488 3.86971 10.7363 3.85189 10.9826C3.84708 11.0469 3.85559 11.1115 3.8769 11.1724C3.89821 11.2333 3.93186 11.2892 3.97575 11.3364C4.01963 11.3837 4.0728 11.4214 4.13193 11.4472C4.19106 11.473 4.25488 11.4863 4.31939 11.4863H8.46596C8.71299 11.4863 8.92486 11.2988 8.94268 11.0526C8.94749 10.9882 8.93898 10.9236 8.91767 10.8627C8.89636 10.8018 8.86271 10.746 8.81882 10.6987C8.77494 10.6514 8.72177 10.6137 8.66264 10.5879C8.60351 10.5621 8.53969 10.5488 8.47518 10.5488Z"})]}),w0=()=>C.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"52",height:"52",viewBox:"0 0 52 52",fill:"none",children:[C.jsx("path",{d:"M33.7054 0V9.62963C33.7054 12.7849 36.2348 15.3496 39.3773 15.4064L39.4832 15.4074H49.1128V46.2222C49.1128 49.4132 46.526 52 43.3351 52H8.6684C5.47747 52 2.89062 49.4132 2.89062 46.2222V5.77778C2.89063 2.58684 5.47746 0 8.6684 0H33.7054ZM41.4091 20.5432H10.5943C8.14584 20.5432 6.15507 22.5012 6.10146 24.9366L6.1005 25.037V44.2963C6.1005 46.7445 8.05853 48.7356 10.4939 48.7892L10.5943 48.7901H41.4091C43.8573 48.7901 45.8484 46.8321 45.902 44.3968L45.903 44.2963V25.037C45.903 22.5552 43.891 20.5432 41.4091 20.5432ZM35.9524 0L49.1128 13.1605H41.7301C38.5392 13.1605 35.9524 10.5737 35.9524 7.38272V0Z",fill:"#389E0D"}),C.jsx("path",{d:"M11.8597 39.1608L13.4961 36.503L15.1268 39.1608H17.9986L15.1833 34.8949L17.756 30.889H14.9688L13.5469 33.4338L12.0799 30.889H9.26392L11.8594 34.8499L9.00488 39.1608H11.8597ZM25.4247 39.1608V37.1238H21.4355V30.889H18.8794V39.1608H25.4244H25.4247ZM30.0405 39.302C30.842 39.302 31.5058 39.1865 32.0322 38.9547C32.559 38.7236 32.9689 38.384 33.2626 37.9366C33.5518 37.5022 33.7049 36.9915 33.7023 36.4697C33.7023 36.018 33.5925 35.61 33.3723 35.2451C33.1525 34.8801 32.801 34.5742 32.3173 34.328C31.8338 34.0818 31.0336 33.8382 29.9163 33.5975C29.465 33.5034 29.1793 33.4017 29.0589 33.2925C28.9347 33.1876 28.8727 33.0688 28.8727 32.9372C28.8727 32.7568 28.9478 32.6034 29.0984 32.4775C29.2489 32.3514 29.4727 32.2881 29.7699 32.2881C30.131 32.2881 30.4141 32.3732 30.6189 32.5424C30.824 32.7115 30.9585 32.9824 31.0224 33.3548L33.4317 33.2136C33.3264 32.3562 32.9961 31.7306 32.4415 31.3377C31.8865 30.9445 31.0805 30.748 30.0238 30.748C29.1623 30.748 28.4843 30.8562 27.9897 31.0722C27.4951 31.2889 27.1243 31.5858 26.8781 31.9639C26.6316 32.3421 26.5087 32.7436 26.5087 33.1686C26.5087 33.8157 26.7494 34.3479 27.2309 34.7655C27.7085 35.1828 28.5078 35.5176 29.6287 35.7699C30.3133 35.9201 30.7495 36.08 30.9376 36.2495C31.1257 36.4186 31.2201 36.6106 31.2201 36.825C31.2201 37.0506 31.1213 37.2487 30.9235 37.4201C30.7261 37.5912 30.4453 37.6769 30.08 37.6769C29.5911 37.6769 29.2149 37.5093 28.9517 37.1749C28.7899 36.9678 28.6827 36.6667 28.6301 36.2719L26.1983 36.4244C26.2695 37.2593 26.5761 37.9478 27.1179 38.4893C27.6594 39.0311 28.6339 39.3017 30.0405 39.3017V39.302ZM37.0714 39.1608L38.7078 36.503L40.3384 39.1608H43.2103L40.3949 34.8949L42.9679 30.889H40.1805L38.7585 33.4338L37.2916 30.889H34.4762L37.0714 34.8499L34.2165 39.1608H37.0714Z",fill:"#389E0D"})]}),QE=()=>C.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:[C.jsxs("g",{"clip-path":"url(#clip0_21638_4657)",children:[C.jsx("path",{d:"M10.3704 0V2.96296C10.3704 3.93383 11.1486 4.72296 12.1156 4.74044L12.1481 4.74074H15.1111V14.2222C15.1111 15.204 14.3152 16 13.3333 16H2.66666C1.68484 16 0.888885 15.204 0.888885 14.2222V1.77778C0.888885 0.795951 1.68484 0 2.66666 0H10.3704ZM12.7407 6.32099H3.25926C2.50587 6.32099 1.89333 6.92346 1.87684 7.67279L1.87654 7.7037V13.6296C1.87654 14.3829 2.47901 14.9956 3.22834 15.012L3.25926 15.0123H12.7407C13.494 15.0123 14.1067 14.4099 14.1232 13.6605L14.1235 13.6296V7.7037C14.1235 6.94005 13.5044 6.32099 12.7407 6.32099ZM11.0617 0L15.1111 4.04938H12.8395C11.8577 4.04938 11.0617 3.25343 11.0617 2.27161V0Z",fill:"#8C8C8C"}),C.jsx("path",{d:"M8.40366 12.0892V11.9703C8.40366 11.7665 8.44613 11.5796 8.53107 11.4097C8.61357 11.2485 8.72938 11.1066 8.87082 10.9935C9.26717 10.6481 9.51072 10.4244 9.60129 10.3225C9.81077 10.045 9.91556 9.69684 9.91556 9.27778C9.91556 8.75679 9.74569 8.34908 9.40593 8.05467C9.07181 7.75452 8.6245 7.60449 8.06391 7.60449C7.44099 7.60449 6.94559 7.78286 6.57749 8.1396C6.20939 8.49071 6.02539 8.98336 6.02539 9.61753H6.99369C6.99369 9.24943 7.0645 8.96913 7.20603 8.77664C7.37591 8.55017 7.64208 8.43689 8.00445 8.43689C8.29887 8.43689 8.52544 8.5162 8.68396 8.67471C8.84248 8.84459 8.92179 9.06543 8.92179 9.33723C8.92179 9.55244 8.84534 9.75343 8.69245 9.94029L8.59053 10.0592C8.03556 10.5519 7.7043 10.9115 7.59675 11.1379C7.48346 11.3588 7.42687 11.6362 7.42687 11.9703V12.0892H8.40366ZM7.91102 13.788C8.09225 13.788 8.25077 13.7285 8.38667 13.6096C8.51122 13.4851 8.57354 13.3293 8.57354 13.1425C8.57354 12.9612 8.51132 12.8083 8.38667 12.6838C8.26213 12.5649 8.10351 12.5054 7.91102 12.5054C7.72416 12.5054 7.57127 12.5649 7.45235 12.6838C7.32208 12.7971 7.257 12.95 7.257 13.1425C7.257 13.3351 7.32218 13.4879 7.45235 13.6011C7.5769 13.7257 7.72988 13.788 7.91102 13.788Z",fill:"#8C8C8C"})]}),C.jsx("defs",{children:C.jsx("clipPath",{id:"clip0_21638_4657",children:C.jsx("rect",{width:"16",height:"16",fill:"white"})})})]}),e_=()=>C.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:[C.jsxs("g",{"clip-path":"url(#clip0_21638_4627)",children:[C.jsx("path",{d:"M10.3704 0V2.96296C10.3704 3.93383 11.1486 4.72296 12.1156 4.74044L12.1481 4.74074H15.1111V14.2222C15.1111 15.204 14.3152 16 13.3333 16H2.66666C1.68484 16 0.888885 15.204 0.888885 14.2222V1.77778C0.888885 0.795951 1.68484 0 2.66666 0H10.3704ZM12.7407 6.32099H3.25926C2.50587 6.32099 1.89333 6.92346 1.87684 7.67279L1.87654 7.7037V13.6296C1.87654 14.3829 2.47901 14.9956 3.22834 15.012L3.25926 15.0123H12.7407C13.494 15.0123 14.1067 14.4099 14.1232 13.6605L14.1235 13.6296V7.7037C14.1235 6.94005 13.5044 6.32099 12.7407 6.32099ZM11.0617 0L15.1111 4.04938H12.8395C11.8577 4.04938 11.0617 3.25343 11.0617 2.27161V0Z",fill:"#1D39C4"}),C.jsx("path",{d:"M5.37169 12.1151C5.59964 12.1151 5.78749 12.0821 5.93505 12.0162C6.08136 11.9512 6.20887 11.8503 6.30572 11.7228C6.40517 11.5931 6.47816 11.4317 6.52438 11.2384L5.8352 11.03C5.80043 11.191 5.74463 11.3136 5.66769 11.3981C5.59066 11.4826 5.47698 11.5248 5.32646 11.5248C5.1714 11.5248 5.051 11.4725 4.96537 11.3678C4.87974 11.2631 4.83698 11.0695 4.83698 10.787C4.83698 10.559 4.87283 10.3918 4.94463 10.2853C5.03945 10.1418 5.17604 10.07 5.35431 10.07C5.43303 10.07 5.50414 10.0862 5.56784 10.1186C5.63145 10.151 5.68537 10.1973 5.72932 10.2574C5.75599 10.2934 5.78137 10.3501 5.80567 10.4276L6.50009 10.2731C6.411 10.0045 6.2747 9.80549 6.0912 9.67591C5.90789 9.54624 5.65584 9.48145 5.33525 9.48145C4.92557 9.48145 4.60873 9.59463 4.38473 9.8209C4.16083 10.0471 4.04883 10.3709 4.04883 10.7922C4.04883 11.1082 4.11253 11.3675 4.23984 11.5699C4.36715 11.7725 4.51836 11.914 4.69377 11.9944C4.86917 12.0749 5.09515 12.1151 5.37179 12.1151H5.37169ZM7.96903 12.1133C8.21554 12.1133 8.41989 12.0778 8.58187 12.0067C8.74384 11.9355 8.87006 11.831 8.96033 11.6933C9.04938 11.5597 9.09652 11.4025 9.09574 11.2419C9.09574 11.103 9.06196 10.9773 8.99421 10.8651C8.92646 10.7529 8.81831 10.6587 8.66957 10.583C8.52083 10.5072 8.27451 10.4323 7.9308 10.3582C7.79194 10.3292 7.70404 10.2979 7.667 10.2644C7.62878 10.2321 7.60972 10.1955 7.60972 10.155C7.60972 10.0995 7.63283 10.0523 7.67915 10.0136C7.72537 9.97478 7.79431 9.95532 7.88567 9.95532C7.99678 9.95532 8.08389 9.9814 8.147 10.0335C8.21011 10.0856 8.2514 10.1689 8.27115 10.2835L9.01248 10.2401C8.97999 9.97626 8.87846 9.78377 8.70779 9.66288C8.53703 9.54189 8.28903 9.48145 7.96379 9.48145C7.6988 9.48145 7.49011 9.51473 7.33791 9.5812C7.18582 9.64787 7.07174 9.73922 6.99599 9.85557C6.92014 9.97191 6.88221 10.0955 6.88221 10.2262C6.88221 10.4253 6.95628 10.5891 7.10443 10.7176C7.2514 10.846 7.49742 10.949 7.84221 11.0266C8.05298 11.0729 8.1872 11.122 8.24508 11.1742C8.30295 11.2262 8.33189 11.2853 8.33189 11.3513C8.33189 11.4207 8.30147 11.4816 8.24073 11.5344C8.17999 11.587 8.09347 11.6134 7.98117 11.6134C7.83075 11.6134 7.715 11.5618 7.63401 11.4588C7.58424 11.3952 7.55125 11.3026 7.53505 11.1811L6.7867 11.228C6.80873 11.4849 6.90305 11.6968 7.06977 11.8634C7.23638 12.0301 7.53614 12.1133 7.96903 12.1133ZM11.0716 12.07L12.016 9.5248H11.2175L10.6533 11.3564L10.0803 9.5249H9.25742L10.2192 12.0701H11.0715L11.0716 12.07Z",fill:"#1D39C4"})]}),C.jsx("defs",{children:C.jsx("clipPath",{id:"clip0_21638_4627",children:C.jsx("rect",{width:"16",height:"16",fill:"white"})})})]}),b0=()=>C.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:[C.jsxs("g",{"clip-path":"url(#clip0_21638_4630)",children:[C.jsx("path",{d:"M10.3704 0V2.96296C10.3704 3.93383 11.1486 4.72296 12.1156 4.74044L12.1481 4.74074H15.1111V14.2222C15.1111 15.204 14.3152 16 13.3333 16H2.66666C1.68484 16 0.888885 15.204 0.888885 14.2222V1.77778C0.888885 0.795951 1.68484 0 2.66666 0H10.3704ZM12.7407 6.32099H3.25926C2.50587 6.32099 1.89333 6.92346 1.87684 7.67279L1.87654 7.7037V13.6296C1.87654 14.3829 2.47901 14.9956 3.22834 15.012L3.25926 15.0123H12.7407C13.494 15.0123 14.1067 14.4099 14.1232 13.6605L14.1235 13.6296V7.7037C14.1235 6.94005 13.5044 6.32099 12.7407 6.32099ZM11.0617 0L15.1111 4.04938H12.8395C11.8577 4.04938 11.0617 3.25343 11.0617 2.27161V0Z",fill:"#08979C"}),C.jsx("path",{d:"M5.73698 12.0266V10.1099H6.53905V9.48145H4.14844V10.1099H4.95051V12.0266H5.73698ZM7.5358 12.0266L8.0392 11.2089L8.54093 12.0266H9.42468L8.55831 10.714L9.35002 9.48145H8.49234L8.05481 10.2645L7.60345 9.48145H6.73718L7.5358 10.7002L6.65728 12.0266H7.5358ZM11.1054 12.0266V10.1099H11.9075V9.48145H9.51683V10.1099H10.3189V12.0266H11.1054Z",fill:"#08979C"})]}),C.jsx("defs",{children:C.jsx("clipPath",{id:"clip0_21638_4630",children:C.jsx("rect",{width:"16",height:"16",fill:"white"})})})]}),t_=({className:e})=>C.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"10",height:"8",viewBox:"0 0 10 8",className:e,fill:"currentColor",children:C.jsx("path",{d:"M9.5067 0.236399C9.33081 0.075254 9.09814 -0.00947067 8.85981 0.000842334C8.62149 0.0111553 8.39701 0.115663 8.2357 0.291399L3.4847 5.4714L1.6307 2.8764L1.5597 2.7884C1.40419 2.62083 1.19075 2.51872 0.962705 2.5028C0.734658 2.48687 0.509095 2.55832 0.331809 2.70264C0.154524 2.84697 0.0388021 3.05335 0.00813691 3.27988C-0.0225283 3.50642 0.0341613 3.73614 0.166697 3.9224L2.6667 7.4224L2.7427 7.5154C2.8275 7.60576 2.93004 7.67764 3.04391 7.72654C3.15778 7.77543 3.28052 7.80028 3.40444 7.79952C3.52836 7.79877 3.65079 7.77244 3.76406 7.72217C3.87733 7.6719 3.979 7.59879 4.0627 7.5074L9.5627 1.5074L9.6387 1.4124C9.76255 1.23353 9.81742 1.01586 9.79315 0.799654C9.76888 0.58345 9.66712 0.383356 9.5067 0.236399Z"})}),n_=({className:e})=>C.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",className:e,children:C.jsx("path",{d:"M12.6092 4.33894C12.4333 4.17779 12.2007 4.09307 11.9624 4.10338C11.724 4.11369 11.4995 4.2182 11.3382 4.39394L6.58724 9.57394L4.73324 6.97894L4.66224 6.89094C4.50673 6.72337 4.29329 6.62126 4.06524 6.60534C3.8372 6.58941 3.61163 6.66086 3.43435 6.80518C3.25706 6.94951 3.14134 7.15589 3.11068 7.38242C3.08001 7.60896 3.1367 7.83868 3.26924 8.02494L5.76924 11.5249L5.84524 11.6179C5.93003 11.7083 6.03258 11.7802 6.14645 11.8291C6.26032 11.878 6.38306 11.9028 6.50698 11.9021C6.6309 11.9013 6.75333 11.875 6.8666 11.8247C6.97987 11.7744 7.08154 11.7013 7.16524 11.6099L12.6652 5.60994L12.7412 5.51494C12.8651 5.33607 12.92 5.1184 12.8957 4.90219C12.8714 4.68599 12.7697 4.4859 12.6092 4.33894Z"})}),Rq=({size:e})=>C.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 24 24",fill:"none",children:[C.jsx("path",{d:"M20.2789 20.7891H3.72266C3.17188 20.7891 2.72656 20.3438 2.72656 19.793C2.72656 19.2422 3.17188 18.7969 3.72266 18.7969H20.2789C20.8297 18.7969 21.275 19.2422 21.275 19.793C21.275 20.3438 20.8297 20.7891 20.2789 20.7891Z",fill:"url(#paint0_linear_21740_6067)"}),C.jsx("path",{d:"M5.52148 17.6605H4.16211C3.72148 17.6605 3.36523 17.3043 3.36523 16.8637V12.9473C3.36523 12.5066 3.72148 12.1504 4.16211 12.1504H5.52148C5.96211 12.1504 6.31836 12.5066 6.31836 12.9473V16.8637C6.31836 17.302 5.95977 17.6605 5.52148 17.6605Z",fill:"url(#paint1_linear_21740_6067)"}),C.jsx("path",{d:"M10.2816 17.6602H8.94336C8.49805 17.6602 8.13477 17.2992 8.13477 16.8516V6.82969C8.13477 6.38437 8.4957 6.02109 8.94336 6.02109H10.2816C10.727 6.02109 11.0902 6.38203 11.0902 6.82969V16.8516C11.0902 17.2969 10.727 17.6602 10.2816 17.6602ZM15.0676 17.6602H13.7035C13.2652 17.6602 12.909 17.3039 12.909 16.8656V10.0031C12.909 9.56484 13.2652 9.20859 13.7035 9.20859H15.0676C15.5059 9.20859 15.8621 9.56484 15.8621 10.0031V16.8633C15.8621 17.3039 15.5059 17.6602 15.0676 17.6602ZM19.8371 17.6602H18.4824C18.0418 17.6602 17.6832 17.3016 17.6832 16.8609V4.01016C17.6832 3.56953 18.0418 3.21094 18.4824 3.21094H19.8371C20.2777 3.21094 20.6363 3.56953 20.6363 4.01016V16.8609C20.634 17.3016 20.2777 17.6602 19.8371 17.6602Z",fill:"url(#paint2_linear_21740_6067)"}),C.jsxs("defs",{children:[C.jsxs("linearGradient",{id:"paint0_linear_21740_6067",x1:"12.0008",y1:"18.7969",x2:"12.0008",y2:"20.7891",gradientUnits:"userSpaceOnUse",children:[C.jsx("stop",{"stop-color":"#0265FF"}),C.jsx("stop",{offset:"1","stop-color":"#A6FFFF"})]}),C.jsxs("linearGradient",{id:"paint1_linear_21740_6067",x1:"4.8418",y1:"12.1504",x2:"4.8418",y2:"17.6605",gradientUnits:"userSpaceOnUse",children:[C.jsx("stop",{"stop-color":"#0265FF"}),C.jsx("stop",{offset:"1","stop-color":"#A6FFFF"})]}),C.jsxs("linearGradient",{id:"paint2_linear_21740_6067",x1:"14.3855",y1:"3.21094",x2:"14.3855",y2:"17.6602",gradientUnits:"userSpaceOnUse",children:[C.jsx("stop",{"stop-color":"#0265FF"}),C.jsx("stop",{offset:"1","stop-color":"#A6FFFF"})]})]})]}),Aq=()=>C.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:C.jsx("path",{d:"M9.15595 1.42188V4.08854C9.15595 4.56004 9.34325 5.01222 9.67664 5.34562C10.01 5.67902 10.4622 5.86632 10.9337 5.86632H13.6004V13.8663C13.6004 14.1021 13.5067 14.3282 13.34 14.4949C13.1733 14.6616 12.9472 14.7552 12.7115 14.7552H3.28928C3.05353 14.7552 2.82744 14.6616 2.66074 14.4949C2.49404 14.3282 2.40039 14.1021 2.40039 13.8663V2.31076C2.40039 2.07502 2.49404 1.84892 2.66074 1.68222C2.82744 1.51553 3.05353 1.42188 3.28928 1.42188H9.15595ZM5.5115 8.53299C5.39363 8.53299 5.28058 8.57981 5.19723 8.66316C5.11388 8.74651 5.06706 8.85956 5.06706 8.97743C5.06706 9.0953 5.11388 9.20835 5.19723 9.2917C5.28058 9.37505 5.39363 9.42187 5.5115 9.42187H10.4893C10.6072 9.42187 10.7202 9.37505 10.8035 9.2917C10.8869 9.20835 10.9337 9.0953 10.9337 8.97743C10.9337 8.85956 10.8869 8.74651 10.8035 8.66316C10.7202 8.57981 10.6072 8.53299 10.4893 8.53299H5.5115ZM5.5115 11.1997C5.39363 11.1997 5.28058 11.2465 5.19723 11.3298C5.11388 11.4132 5.06706 11.5262 5.06706 11.6441C5.06706 11.762 5.11388 11.875 5.19723 11.9584C5.28058 12.0417 5.39363 12.0885 5.5115 12.0885H10.4893C10.6072 12.0885 10.7202 12.0417 10.8035 11.9584C10.8869 11.875 10.9337 11.762 10.9337 11.6441C10.9337 11.5262 10.8869 11.4132 10.8035 11.3298C10.7202 11.2465 10.6072 11.1997 10.4893 11.1997H5.5115ZM10.0448 1.42188L13.6004 4.97743H10.9337C10.698 4.97743 10.4719 4.88378 10.3052 4.71708C10.1385 4.55038 10.0448 4.32429 10.0448 4.08854V1.42188Z",fill:"#0265FF"})}),Nq=()=>C.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",children:C.jsx("path",{d:"M13.6028 7.93734C13.6699 7.99362 13.7252 8.06255 13.7656 8.14022C13.8061 8.21788 13.8308 8.30275 13.8385 8.38998C13.8461 8.47721 13.8365 8.56509 13.8101 8.64859C13.7838 8.7321 13.7413 8.80961 13.685 8.87668L11.8059 11.1158L13.0219 13.2218C13.0663 13.2976 13.0954 13.3815 13.1073 13.4686C13.1192 13.5557 13.1137 13.6444 13.0913 13.7294C13.0688 13.8144 13.0297 13.8941 12.9763 13.9639C12.9229 14.0337 12.8562 14.0923 12.7801 14.1363C12.704 14.1803 12.6199 14.2087 12.5327 14.2201C12.4455 14.2314 12.3569 14.2254 12.2721 14.2023C12.1872 14.1793 12.1078 14.1397 12.0383 14.0858C11.9688 14.032 11.9107 13.9649 11.8672 13.8885L10.8939 12.2029L9.39966 13.9836C9.34386 14.0521 9.275 14.1089 9.19706 14.1506C9.11913 14.1923 9.03368 14.2181 8.94569 14.2264C8.8577 14.2348 8.76893 14.2256 8.68453 14.1993C8.60013 14.1731 8.5218 14.1303 8.45409 14.0735C8.38638 14.0167 8.33064 13.947 8.29011 13.8684C8.24959 13.7899 8.22509 13.704 8.21804 13.6159C8.21099 13.5278 8.22153 13.4392 8.24905 13.3552C8.27656 13.2712 8.32051 13.1935 8.37832 13.1267L10.1843 10.974L8.97832 8.88468C8.93386 8.80883 8.90483 8.72494 8.89292 8.63783C8.88101 8.55072 8.88645 8.46211 8.90892 8.37711C8.9314 8.29211 8.97046 8.2124 9.02386 8.14256C9.07727 8.07272 9.14396 8.01413 9.2201 7.97017C9.29624 7.92621 9.38033 7.89774 9.46751 7.88641C9.5547 7.87508 9.64327 7.8811 9.72812 7.90414C9.81297 7.92717 9.89242 7.96676 9.96191 8.02063C10.0314 8.0745 10.0895 8.14158 10.133 8.21801L11.0965 9.8869L12.6634 8.01957C12.7197 7.95248 12.7886 7.89714 12.8663 7.8567C12.944 7.81626 13.0288 7.79151 13.1161 7.78388C13.2033 7.77624 13.2912 7.78587 13.3747 7.8122C13.4582 7.83853 13.5357 7.88106 13.6028 7.93734ZM9.55566 1.77734C9.72919 1.77718 9.89595 1.84468 10.0205 1.96552C10.1451 2.08635 10.2176 2.25099 10.2227 2.42445C10.2278 2.59791 10.165 2.76652 10.0478 2.89445C9.93053 3.02238 9.76801 3.09955 9.59477 3.10957L9.55566 3.11068H9.25477C8.77582 3.11068 8.31278 3.28256 7.94984 3.59506C7.58689 3.90757 7.34814 4.33994 7.27699 4.81357L7.26899 4.87246L7.24032 5.11068H8.66677C8.72513 5.11068 8.78293 5.12217 8.83685 5.14451C8.89077 5.16684 8.93977 5.19958 8.98104 5.24085C9.02231 5.28212 9.05504 5.33112 9.07738 5.38504C9.09972 5.43896 9.11121 5.49676 9.11121 5.55512V5.99957C9.11121 6.11744 9.06439 6.23049 8.98104 6.31384C8.89769 6.39719 8.78464 6.44401 8.66677 6.44401H7.08032L6.49943 11.2856C6.40386 12.0824 6.02403 12.818 5.4297 13.3572C4.83536 13.8965 4.06642 14.2032 3.2641 14.2211L3.18988 14.2218H2.88899C2.71545 14.222 2.54869 14.1545 2.42414 14.0336C2.29959 13.9128 2.22706 13.7481 2.22197 13.5747C2.21687 13.4012 2.27962 13.2326 2.39687 13.1047C2.51412 12.9768 2.67663 12.8996 2.84988 12.8896L2.88899 12.8885H3.18988C3.66882 12.8884 4.13186 12.7166 4.49481 12.4041C4.85775 12.0916 5.09651 11.6592 5.16766 11.1856L5.17566 11.1267L5.73721 6.44401H4.22232C4.10445 6.44401 3.9914 6.39719 3.90805 6.31384C3.8247 6.23049 3.77788 6.11744 3.77788 5.99957V5.55512C3.77788 5.49676 3.78937 5.43896 3.81171 5.38504C3.83404 5.33112 3.86678 5.28212 3.90805 5.24085C3.94932 5.19958 3.99832 5.16684 4.05224 5.14451C4.10616 5.12217 4.16396 5.11068 4.22232 5.11068H5.89721L5.94521 4.71357C6.04078 3.91675 6.42061 3.18117 7.01495 2.6419C7.60928 2.10264 8.37822 1.79589 9.18054 1.77801L9.25477 1.77734H9.55566Z"})}),Mq=()=>C.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"currentColor",children:C.jsx("path",{d:"M12.7549 2.5C12.1757 2.5 11.7063 2.98638 11.7063 3.58637V20.4136C11.7063 21.0136 12.1757 21.5 12.7549 21.5C13.3341 21.5 13.8035 21.0136 13.8035 20.4136V3.58637C13.8035 2.98638 13.3341 2.5 12.7549 2.5ZM16.9494 14.9819C16.8105 14.9819 16.6729 15.0105 16.5448 15.0661C16.4166 15.1217 16.3004 15.2031 16.2028 15.3056L12.8052 18.8775L9.2965 15.2948C9.199 15.192 9.08274 15.1103 8.95449 15.0546C8.82623 14.9988 8.68855 14.97 8.54946 14.9699C8.41036 14.9698 8.27264 14.9983 8.1443 15.0539C8.01596 15.1095 7.89957 15.1909 7.80192 15.2935C7.70426 15.3961 7.62728 15.5179 7.57547 15.6516C7.52366 15.7853 7.49804 15.9284 7.50012 16.0725C7.50219 16.2165 7.53192 16.3588 7.58756 16.4908C7.6432 16.6229 7.72365 16.7422 7.82422 16.8417L12.0775 21.1871C12.2767 21.3892 12.5703 21.4348 12.822 21.5C13.1004 21.4977 13.3666 21.3813 13.5624 21.1762L17.6982 16.8309C17.8434 16.6782 17.9418 16.4844 17.981 16.2739C18.0202 16.0634 17.9984 15.8457 17.9184 15.648C17.8383 15.4503 17.7036 15.2816 17.5312 15.1631C17.3588 15.0445 17.1564 14.9815 16.9494 14.9819Z"})}),Oq=()=>C.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"currentColor",children:C.jsx("path",{d:"M2.1875 4.0625C2.1875 3.56522 2.38504 3.08831 2.73667 2.73667C3.08831 2.38504 3.56522 2.1875 4.0625 2.1875H15.9375C16.4348 2.1875 16.9117 2.38504 17.2633 2.73667C17.615 3.08831 17.8125 3.56522 17.8125 4.0625V5H2.1875V4.0625ZM2.1875 6.25H17.8125V15.9375C17.8125 16.4348 17.615 16.9117 17.2633 17.2633C16.9117 17.615 16.4348 17.8125 15.9375 17.8125H4.0625C3.56522 17.8125 3.08831 17.615 2.73667 17.2633C2.38504 16.9117 2.1875 16.4348 2.1875 15.9375V6.25ZM5.42125 8.75C5.31033 8.75254 5.20465 8.79774 5.1262 8.8762C5.04774 8.95465 5.00254 9.06033 5 9.17125V10.8288C5 11.0538 5.19625 11.25 5.42125 11.25H7.075C7.3 11.25 7.49625 11.0538 7.49625 10.8288V9.17125C7.525 8.94625 7.32875 8.75 7.075 8.75H5.42125ZM9.17125 8.75C9.06033 8.75254 8.95465 8.79774 8.8762 8.8762C8.79774 8.95465 8.75254 9.06033 8.75 9.17125V10.8288C8.75 11.0538 8.94625 11.25 9.17125 11.25H10.825C11.05 11.25 11.2463 11.0538 11.2463 10.8288V9.17125C11.275 8.94625 11.0787 8.75 10.825 8.75H9.17125ZM14.5763 8.75H12.9212C12.8103 8.75254 12.7047 8.79774 12.6262 8.8762C12.5477 8.95465 12.5025 9.06033 12.5 9.17125V10.8288C12.5 11.0538 12.6962 11.25 12.9212 11.25H14.5763C14.8013 11.25 14.9975 11.0538 14.9975 10.8288V9.17125C15.025 8.94625 14.8288 8.75 14.5763 8.75ZM5.42125 13C5.31033 13.0025 5.20465 13.0477 5.1262 13.1262C5.04774 13.2047 5.00254 13.3103 5 13.4213V15.0787C5 15.3038 5.19625 15.5 5.42125 15.5H7.075C7.3 15.5 7.49625 15.3038 7.49625 15.0787V13.4213C7.52375 13.1963 7.3275 13 7.075 13H5.42125ZM10.8263 13H9.17125C9.06033 13.0025 8.95465 13.0477 8.8762 13.1262C8.79774 13.2047 8.75254 13.3103 8.75 13.4213V15.0787C8.75 15.3038 8.94625 15.5 9.17125 15.5H10.825C11.05 15.5 11.2463 15.3038 11.2463 15.0787V13.4213C11.2737 13.1963 11.0775 13 10.825 13H10.8263ZM12.9212 13C12.8103 13.0025 12.7047 13.0477 12.6262 13.1262C12.5477 13.2047 12.5025 13.3103 12.5 13.4213V15.0787C12.5 15.3038 12.6962 15.5 12.9212 15.5H14.5763C14.8013 15.5 14.9975 15.3038 14.9975 15.0787V13.4213C15.025 13.1963 14.8288 13 14.5763 13H12.9212Z"})}),Lq=({onClick:e,className:t})=>C.jsx("button",{type:"button",onClick:e,className:We("inline-flex items-center justify-center","w-[36px] h-[36px] rounded-full","bg-white text-[#666] shadow-[0px_0px_14px_0px_rgba(0,0,0,0.1)]","hover:shadow-[0px_14px_14px_0px_rgba(0,0,0,0.14)]","cursor-pointer hover:text-[#333] aspect-square",ra,t),children:C.jsx(Mq,{})}),Iq=({className:e,...t})=>C.jsx(p0,{className:Ta("relative flex-1 touch-pan-y overflow-y-auto flex will-change-scroll",e),style:{minHeight:0,height:"100%"},initial:"smooth",resize:"smooth",role:"log",...t}),Dq=({className:e,...t})=>C.jsx(p0.Content,{className:Ta("p-4",e),...t}),jq=({className:e})=>{const{isAtBottom:t,scrollToBottom:n}=kE(),a=O.useCallback(()=>{n()},[n]);return C.jsx(Lq,{className:Ta("absolute bottom-[30px] left-1/2 -translate-x-1/2",{"pointer-events-none scale-0 opacity-0":t,"pointer-events-auto scale-100 opacity-100":!t},e),onClick:a})},r_=({size:e=30,className:t})=>C.jsx("div",{className:t,style:{backgroundImage:`${uq}`,backgroundRepeat:"no-repeat",backgroundSize:"cover",width:e,height:e,aspectRatio:"1/1"}}),qh=({name:e,icon:t,variant:n="default"})=>{const a=n==="default"?20:24,i={default:"text-[#999] text-[14px] font-[400]",active:"text-[#0265FF] text-[14px] font-[700]"};return C.jsxs("div",{className:"flex items-center gap-1.5",children:[t||C.jsx(r_,{size:a}),C.jsx("div",{className:i[n],children:e})]})},a_=()=>{const{pluginList:e}=Wl(t=>({pluginList:t.chatAreaPluginInstList}));return e},U9=e=>a_().map(a=>{var i;return{pluginName:a.pluginName,Component:(i=a.customComponents)==null?void 0:i[e]}}).filter(a=>!!a.Component),mp=e=>{const t=U9(e);return t.length>0?t[0]:null};function o_(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function B9(...e){return t=>{let n=!1;const a=e.map(i=>{const l=o_(i,t);return!n&&typeof l=="function"&&(n=!0),l});if(n)return()=>{for(let i=0;i<a.length;i++){const l=a[i];typeof l=="function"?l():o_(e[i],null)}}}}function Vn(...e){return O.useCallback(B9(...e),e)}var Pq=Symbol.for("react.lazy"),C0=k3[" use ".trim().toString()];function Fq(e){return typeof e=="object"&&e!==null&&"then"in e}function i_(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===Pq&&"_payload"in e&&Fq(e._payload)}function zq(e){const t=Bq(e),n=O.forwardRef((a,i)=>{let{children:l,...u}=a;i_(l)&&typeof C0=="function"&&(l=C0(l._payload));const f=O.Children.toArray(l),h=f.find(Vq);if(h){const g=h.props.children,x=f.map(y=>y===h?O.Children.count(g)>1?O.Children.only(null):O.isValidElement(g)?g.props.children:null:y);return C.jsx(t,{...u,ref:i,children:O.isValidElement(g)?O.cloneElement(g,void 0,x):null})}return C.jsx(t,{...u,ref:i,children:l})});return n.displayName=`${e}.Slot`,n}var Uq=zq("Slot");function Bq(e){const t=O.forwardRef((n,a)=>{let{children:i,...l}=n;if(i_(i)&&typeof C0=="function"&&(i=C0(i._payload)),O.isValidElement(i)){const u=Zq(i),f=$q(l,i.props);return i.type!==O.Fragment&&(f.ref=a?B9(a,u):u),O.cloneElement(i,f)}return O.Children.count(i)>1?O.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Hq=Symbol("radix.slottable");function Vq(e){return O.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Hq}function $q(e,t){const n={...t};for(const a in t){const i=e[a],l=t[a];/^on[A-Z]/.test(a)?i&&l?n[a]=(...f)=>{const h=l(...f);return i(...f),h}:i&&(n[a]=i):a==="style"?n[a]={...i,...l}:a==="className"&&(n[a]=[i,l].filter(Boolean).join(" "))}return{...e,...n}}function Zq(e){var a,i;let t=(a=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:a.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}const s_=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,l_=TE,Wq=((e,t)=>n=>{var a;if((t==null?void 0:t.variants)==null)return l_(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:i,defaultVariants:l}=t,u=Object.keys(i).map(g=>{const x=n==null?void 0:n[g],y=l==null?void 0:l[g];if(x===null)return null;const k=s_(x)||s_(y);return i[g][k]}),f=n&&Object.entries(n).reduce((g,x)=>{let[y,k]=x;return k===void 0||(g[y]=k),g},{}),h=t==null||(a=t.compoundVariants)===null||a===void 0?void 0:a.reduce((g,x)=>{let{class:y,className:k,...b}=x;return Object.entries(b).every(_=>{let[R,M]=_;return Array.isArray(M)?M.includes({...l,...f}[R]):{...l,...f}[R]===M})?[...g,y,k]:g},[]);return l_(e,u,h,n==null?void 0:n.class,n==null?void 0:n.className)})("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline",entry:""},size:{default:"h-[34px] px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-[24px] w-[24px]",entry:"h-[30px] px-1.5 py-0 gap-1.5"}},defaultVariants:{variant:"default",size:"default"}}),Ho=O.forwardRef(({className:e,variant:t,size:n,asChild:a=!1,...i},l)=>{const u=a?Uq:"button";return C.jsx(u,{className:We(Wq({variant:t,size:n,className:e})),ref:l,...i})});Ho.displayName="Button";function nn(e,t,{checkForDefaultPrevented:n=!0}={}){return function(i){if(e==null||e(i),n===!1||!i.defaultPrevented)return t==null?void 0:t(i)}}function qq(e,t){const n=O.createContext(t),a=l=>{const{children:u,...f}=l,h=O.useMemo(()=>f,Object.values(f));return C.jsx(n.Provider,{value:h,children:u})};a.displayName=e+"Provider";function i(l){const u=O.useContext(n);if(u)return u;if(t!==void 0)return t;throw new Error(`\`${l}\` must be used within \`${e}\``)}return[a,i]}function Xs(e,t=[]){let n=[];function a(l,u){const f=O.createContext(u),h=n.length;n=[...n,u];const g=y=>{var L;const{scope:k,children:b,..._}=y,R=((L=k==null?void 0:k[e])==null?void 0:L[h])||f,M=O.useMemo(()=>_,Object.values(_));return C.jsx(R.Provider,{value:M,children:b})};g.displayName=l+"Provider";function x(y,k){var R;const b=((R=k==null?void 0:k[e])==null?void 0:R[h])||f,_=O.useContext(b);if(_)return _;if(u!==void 0)return u;throw new Error(`\`${y}\` must be used within \`${l}\``)}return[g,x]}const i=()=>{const l=n.map(u=>O.createContext(u));return function(f){const h=(f==null?void 0:f[e])||l;return O.useMemo(()=>({[`__scope${e}`]:{...f,[e]:h}}),[f,h])}};return i.scopeName=e,[a,Gq(i,...t)]}function Gq(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const a=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(l){const u=a.reduce((f,{useScope:h,scopeName:g})=>{const y=h(l)[`__scope${g}`];return{...f,...y}},{});return O.useMemo(()=>({[`__scope${t.scopeName}`]:u}),[u])}};return n.scopeName=t.scopeName,n}function Gh(e){const t=Yq(e),n=O.forwardRef((a,i)=>{const{children:l,...u}=a,f=O.Children.toArray(l),h=f.find(Xq);if(h){const g=h.props.children,x=f.map(y=>y===h?O.Children.count(g)>1?O.Children.only(null):O.isValidElement(g)?g.props.children:null:y);return C.jsx(t,{...u,ref:i,children:O.isValidElement(g)?O.cloneElement(g,void 0,x):null})}return C.jsx(t,{...u,ref:i,children:l})});return n.displayName=`${e}.Slot`,n}function Yq(e){const t=O.forwardRef((n,a)=>{const{children:i,...l}=n;if(O.isValidElement(i)){const u=Qq(i),f=Kq(l,i.props);return i.type!==O.Fragment&&(f.ref=a?B9(a,u):u),O.cloneElement(i,f)}return O.Children.count(i)>1?O.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var u_=Symbol("radix.slottable");function Jq(e){const t=({children:n})=>C.jsx(C.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=u_,t}function Xq(e){return O.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===u_}function Kq(e,t){const n={...t};for(const a in t){const i=e[a],l=t[a];/^on[A-Z]/.test(a)?i&&l?n[a]=(...f)=>{const h=l(...f);return i(...f),h}:i&&(n[a]=i):a==="style"?n[a]={...i,...l}:a==="className"&&(n[a]=[i,l].filter(Boolean).join(" "))}return{...e,...n}}function Qq(e){var a,i;let t=(a=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:a.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var eG=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],hn=eG.reduce((e,t)=>{const n=Gh(`Primitive.${t}`),a=O.forwardRef((i,l)=>{const{asChild:u,...f}=i,h=u?n:t;return typeof window!="undefined"&&(window[Symbol.for("radix-ui")]=!0),C.jsx(h,{...f,ref:l})});return a.displayName=`Primitive.${t}`,{...e,[t]:a}},{});function tG(e,t){e&&Zl.flushSync(()=>e.dispatchEvent(t))}function ec(e){const t=O.useRef(e);return O.useEffect(()=>{t.current=e}),O.useMemo(()=>(...n)=>{var a;return(a=t.current)==null?void 0:a.call(t,...n)},[])}function nG(e,t=globalThis==null?void 0:globalThis.document){const n=ec(e);O.useEffect(()=>{const a=i=>{i.key==="Escape"&&n(i)};return t.addEventListener("keydown",a,{capture:!0}),()=>t.removeEventListener("keydown",a,{capture:!0})},[n,t])}var rG="DismissableLayer",H9="dismissableLayer.update",aG="dismissableLayer.pointerDownOutside",oG="dismissableLayer.focusOutside",c_,d_=O.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),S0=O.forwardRef((e,t)=>{var Z;const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:a,onPointerDownOutside:i,onFocusOutside:l,onInteractOutside:u,onDismiss:f,...h}=e,g=O.useContext(d_),[x,y]=O.useState(null),k=(Z=x==null?void 0:x.ownerDocument)!=null?Z:globalThis==null?void 0:globalThis.document,[,b]=O.useState({}),_=Vn(t,q=>y(q)),R=Array.from(g.layers),[M]=[...g.layersWithOutsidePointerEventsDisabled].slice(-1),L=R.indexOf(M),P=x?R.indexOf(x):-1,F=g.layersWithOutsidePointerEventsDisabled.size>0,D=P>=L,V=lG(q=>{const ae=q.target,_e=[...g.branches].some(ge=>ge.contains(ae));!D||_e||(i==null||i(q),u==null||u(q),q.defaultPrevented||f==null||f())},k),H=uG(q=>{const ae=q.target;[...g.branches].some(ge=>ge.contains(ae))||(l==null||l(q),u==null||u(q),q.defaultPrevented||f==null||f())},k);return nG(q=>{P===g.layers.size-1&&(a==null||a(q),!q.defaultPrevented&&f&&(q.preventDefault(),f()))},k),O.useEffect(()=>{if(x)return n&&(g.layersWithOutsidePointerEventsDisabled.size===0&&(c_=k.body.style.pointerEvents,k.body.style.pointerEvents="none"),g.layersWithOutsidePointerEventsDisabled.add(x)),g.layers.add(x),f_(),()=>{n&&g.layersWithOutsidePointerEventsDisabled.size===1&&(k.body.style.pointerEvents=c_)}},[x,k,n,g]),O.useEffect(()=>()=>{x&&(g.layers.delete(x),g.layersWithOutsidePointerEventsDisabled.delete(x),f_())},[x,g]),O.useEffect(()=>{const q=()=>b({});return document.addEventListener(H9,q),()=>document.removeEventListener(H9,q)},[]),C.jsx(hn.div,{...h,ref:_,style:{pointerEvents:F?D?"auto":"none":void 0,...e.style},onFocusCapture:nn(e.onFocusCapture,H.onFocusCapture),onBlurCapture:nn(e.onBlurCapture,H.onBlurCapture),onPointerDownCapture:nn(e.onPointerDownCapture,V.onPointerDownCapture)})});S0.displayName=rG;var iG="DismissableLayerBranch",sG=O.forwardRef((e,t)=>{const n=O.useContext(d_),a=O.useRef(null),i=Vn(t,a);return O.useEffect(()=>{const l=a.current;if(l)return n.branches.add(l),()=>{n.branches.delete(l)}},[n.branches]),C.jsx(hn.div,{...e,ref:i})});sG.displayName=iG;function lG(e,t=globalThis==null?void 0:globalThis.document){const n=ec(e),a=O.useRef(!1),i=O.useRef(()=>{});return O.useEffect(()=>{const l=f=>{if(f.target&&!a.current){let h=function(){p_(aG,n,g,{discrete:!0})};const g={originalEvent:f};f.pointerType==="touch"?(t.removeEventListener("click",i.current),i.current=h,t.addEventListener("click",i.current,{once:!0})):h()}else t.removeEventListener("click",i.current);a.current=!1},u=window.setTimeout(()=>{t.addEventListener("pointerdown",l)},0);return()=>{window.clearTimeout(u),t.removeEventListener("pointerdown",l),t.removeEventListener("click",i.current)}},[t,n]),{onPointerDownCapture:()=>a.current=!0}}function uG(e,t=globalThis==null?void 0:globalThis.document){const n=ec(e),a=O.useRef(!1);return O.useEffect(()=>{const i=l=>{l.target&&!a.current&&p_(oG,n,{originalEvent:l},{discrete:!1})};return t.addEventListener("focusin",i),()=>t.removeEventListener("focusin",i)},[t,n]),{onFocusCapture:()=>a.current=!0,onBlurCapture:()=>a.current=!1}}function f_(){const e=new CustomEvent(H9);document.dispatchEvent(e)}function p_(e,t,n,{discrete:a}){const i=n.originalEvent.target,l=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),a?tG(i,l):i.dispatchEvent(l)}var La=globalThis!=null&&globalThis.document?O.useLayoutEffect:()=>{},cG=k3[" useId ".trim().toString()]||(()=>{}),dG=0;function tc(e){const[t,n]=O.useState(cG());return La(()=>{n(a=>a!=null?a:String(dG++))},[e]),t?`radix-${t}`:""}const fG=["top","right","bottom","left"],nc=Math.min,pi=Math.max,k0=Math.round,E0=Math.floor,Ks=e=>({x:e,y:e}),pG={left:"right",right:"left",bottom:"top",top:"bottom"},hG={start:"end",end:"start"};function V9(e,t,n){return pi(e,nc(t,n))}function Jl(e,t){return typeof e=="function"?e(t):e}function Xl(e){return e.split("-")[0]}function gp(e){return e.split("-")[1]}function $9(e){return e==="x"?"y":"x"}function Z9(e){return e==="y"?"height":"width"}const mG=new Set(["top","bottom"]);function Qs(e){return mG.has(Xl(e))?"y":"x"}function W9(e){return $9(Qs(e))}function gG(e,t,n){n===void 0&&(n=!1);const a=gp(e),i=W9(e),l=Z9(i);let u=i==="x"?a===(n?"end":"start")?"right":"left":a==="start"?"bottom":"top";return t.reference[l]>t.floating[l]&&(u=_0(u)),[u,_0(u)]}function vG(e){const t=_0(e);return[q9(e),t,q9(t)]}function q9(e){return e.replace(/start|end/g,t=>hG[t])}const h_=["left","right"],m_=["right","left"],yG=["top","bottom"],xG=["bottom","top"];function wG(e,t,n){switch(e){case"top":case"bottom":return n?t?m_:h_:t?h_:m_;case"left":case"right":return t?yG:xG;default:return[]}}function bG(e,t,n,a){const i=gp(e);let l=wG(Xl(e),n==="start",a);return i&&(l=l.map(u=>u+"-"+i),t&&(l=l.concat(l.map(q9)))),l}function _0(e){return e.replace(/left|right|bottom|top/g,t=>pG[t])}function CG(e){return{top:0,right:0,bottom:0,left:0,...e}}function g_(e){return typeof e!="number"?CG(e):{top:e,right:e,bottom:e,left:e}}function T0(e){const{x:t,y:n,width:a,height:i}=e;return{width:a,height:i,top:n,left:t,right:t+a,bottom:n+i,x:t,y:n}}function v_(e,t,n){let{reference:a,floating:i}=e;const l=Qs(t),u=W9(t),f=Z9(u),h=Xl(t),g=l==="y",x=a.x+a.width/2-i.width/2,y=a.y+a.height/2-i.height/2,k=a[f]/2-i[f]/2;let b;switch(h){case"top":b={x,y:a.y-i.height};break;case"bottom":b={x,y:a.y+a.height};break;case"right":b={x:a.x+a.width,y};break;case"left":b={x:a.x-i.width,y};break;default:b={x:a.x,y:a.y}}switch(gp(t)){case"start":b[u]-=k*(n&&g?-1:1);break;case"end":b[u]+=k*(n&&g?-1:1);break}return b}const SG=async(e,t,n)=>{const{placement:a="bottom",strategy:i="absolute",middleware:l=[],platform:u}=n,f=l.filter(Boolean),h=await(u.isRTL==null?void 0:u.isRTL(t));let g=await u.getElementRects({reference:e,floating:t,strategy:i}),{x,y}=v_(g,a,h),k=a,b={},_=0;for(let R=0;R<f.length;R++){const{name:M,fn:L}=f[R],{x:P,y:F,data:D,reset:V}=await L({x,y,initialPlacement:a,placement:k,strategy:i,middlewareData:b,rects:g,platform:u,elements:{reference:e,floating:t}});x=P!=null?P:x,y=F!=null?F:y,b={...b,[M]:{...b[M],...D}},V&&_<=50&&(_++,typeof V=="object"&&(V.placement&&(k=V.placement),V.rects&&(g=V.rects===!0?await u.getElementRects({reference:e,floating:t,strategy:i}):V.rects),{x,y}=v_(g,k,h)),R=-1)}return{x,y,placement:k,strategy:i,middlewareData:b}};async function Yh(e,t){var n;t===void 0&&(t={});const{x:a,y:i,platform:l,rects:u,elements:f,strategy:h}=e,{boundary:g="clippingAncestors",rootBoundary:x="viewport",elementContext:y="floating",altBoundary:k=!1,padding:b=0}=Jl(t,e),_=g_(b),M=f[k?y==="floating"?"reference":"floating":y],L=T0(await l.getClippingRect({element:(n=await(l.isElement==null?void 0:l.isElement(M)))==null||n?M:M.contextElement||await(l.getDocumentElement==null?void 0:l.getDocumentElement(f.floating)),boundary:g,rootBoundary:x,strategy:h})),P=y==="floating"?{x:a,y:i,width:u.floating.width,height:u.floating.height}:u.reference,F=await(l.getOffsetParent==null?void 0:l.getOffsetParent(f.floating)),D=await(l.isElement==null?void 0:l.isElement(F))?await(l.getScale==null?void 0:l.getScale(F))||{x:1,y:1}:{x:1,y:1},V=T0(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:f,rect:P,offsetParent:F,strategy:h}):P);return{top:(L.top-V.top+_.top)/D.y,bottom:(V.bottom-L.bottom+_.bottom)/D.y,left:(L.left-V.left+_.left)/D.x,right:(V.right-L.right+_.right)/D.x}}const kG=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:a,placement:i,rects:l,platform:u,elements:f,middlewareData:h}=t,{element:g,padding:x=0}=Jl(e,t)||{};if(g==null)return{};const y=g_(x),k={x:n,y:a},b=W9(i),_=Z9(b),R=await u.getDimensions(g),M=b==="y",L=M?"top":"left",P=M?"bottom":"right",F=M?"clientHeight":"clientWidth",D=l.reference[_]+l.reference[b]-k[b]-l.floating[_],V=k[b]-l.reference[b],H=await(u.getOffsetParent==null?void 0:u.getOffsetParent(g));let Z=H?H[F]:0;(!Z||!await(u.isElement==null?void 0:u.isElement(H)))&&(Z=f.floating[F]||l.floating[_]);const q=D/2-V/2,ae=Z/2-R[_]/2-1,_e=nc(y[L],ae),ge=nc(y[P],ae),he=_e,we=Z-R[_]-ge,Ne=Z/2-R[_]/2+q,xe=V9(he,Ne,we),Te=!h.arrow&&gp(i)!=null&&Ne!==xe&&l.reference[_]/2-(Ne<he?_e:ge)-R[_]/2<0,ve=Te?Ne<he?Ne-he:Ne-we:0;return{[b]:k[b]+ve,data:{[b]:xe,centerOffset:Ne-xe-ve,...Te&&{alignmentOffset:ve}},reset:Te}}}),EG=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,a;const{placement:i,middlewareData:l,rects:u,initialPlacement:f,platform:h,elements:g}=t,{mainAxis:x=!0,crossAxis:y=!0,fallbackPlacements:k,fallbackStrategy:b="bestFit",fallbackAxisSideDirection:_="none",flipAlignment:R=!0,...M}=Jl(e,t);if((n=l.arrow)!=null&&n.alignmentOffset)return{};const L=Xl(i),P=Qs(f),F=Xl(f)===f,D=await(h.isRTL==null?void 0:h.isRTL(g.floating)),V=k||(F||!R?[_0(f)]:vG(f)),H=_!=="none";!k&&H&&V.push(...bG(f,R,_,D));const Z=[f,...V],q=await Yh(t,M),ae=[];let _e=((a=l.flip)==null?void 0:a.overflows)||[];if(x&&ae.push(q[L]),y){const Ne=gG(i,u,D);ae.push(q[Ne[0]],q[Ne[1]])}if(_e=[..._e,{placement:i,overflows:ae}],!ae.every(Ne=>Ne<=0)){var ge,he;const Ne=(((ge=l.flip)==null?void 0:ge.index)||0)+1,xe=Z[Ne];if(xe&&(!(y==="alignment"?P!==Qs(xe):!1)||_e.every(K=>Qs(K.placement)===P?K.overflows[0]>0:!0)))return{data:{index:Ne,overflows:_e},reset:{placement:xe}};let Te=(he=_e.filter(ve=>ve.overflows[0]<=0).sort((ve,K)=>ve.overflows[1]-K.overflows[1])[0])==null?void 0:he.placement;if(!Te)switch(b){case"bestFit":{var we;const ve=(we=_e.filter(K=>{if(H){const ye=Qs(K.placement);return ye===P||ye==="y"}return!0}).map(K=>[K.placement,K.overflows.filter(ye=>ye>0).reduce((ye,U)=>ye+U,0)]).sort((K,ye)=>K[1]-ye[1])[0])==null?void 0:we[0];ve&&(Te=ve);break}case"initialPlacement":Te=f;break}if(i!==Te)return{reset:{placement:Te}}}return{}}}};function y_(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function x_(e){return fG.some(t=>e[t]>=0)}const _G=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:a="referenceHidden",...i}=Jl(e,t);switch(a){case"referenceHidden":{const l=await Yh(t,{...i,elementContext:"reference"}),u=y_(l,n.reference);return{data:{referenceHiddenOffsets:u,referenceHidden:x_(u)}}}case"escaped":{const l=await Yh(t,{...i,altBoundary:!0}),u=y_(l,n.floating);return{data:{escapedOffsets:u,escaped:x_(u)}}}default:return{}}}}},w_=new Set(["left","top"]);async function TG(e,t){const{placement:n,platform:a,elements:i}=e,l=await(a.isRTL==null?void 0:a.isRTL(i.floating)),u=Xl(n),f=gp(n),h=Qs(n)==="y",g=w_.has(u)?-1:1,x=l&&h?-1:1,y=Jl(t,e);let{mainAxis:k,crossAxis:b,alignmentAxis:_}=typeof y=="number"?{mainAxis:y,crossAxis:0,alignmentAxis:null}:{mainAxis:y.mainAxis||0,crossAxis:y.crossAxis||0,alignmentAxis:y.alignmentAxis};return f&&typeof _=="number"&&(b=f==="end"?_*-1:_),h?{x:b*x,y:k*g}:{x:k*g,y:b*x}}const RG=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,a;const{x:i,y:l,placement:u,middlewareData:f}=t,h=await TG(t,e);return u===((n=f.offset)==null?void 0:n.placement)&&(a=f.arrow)!=null&&a.alignmentOffset?{}:{x:i+h.x,y:l+h.y,data:{...h,placement:u}}}}},AG=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:a,placement:i}=t,{mainAxis:l=!0,crossAxis:u=!1,limiter:f={fn:M=>{let{x:L,y:P}=M;return{x:L,y:P}}},...h}=Jl(e,t),g={x:n,y:a},x=await Yh(t,h),y=Qs(Xl(i)),k=$9(y);let b=g[k],_=g[y];if(l){const M=k==="y"?"top":"left",L=k==="y"?"bottom":"right",P=b+x[M],F=b-x[L];b=V9(P,b,F)}if(u){const M=y==="y"?"top":"left",L=y==="y"?"bottom":"right",P=_+x[M],F=_-x[L];_=V9(P,_,F)}const R=f.fn({...t,[k]:b,[y]:_});return{...R,data:{x:R.x-n,y:R.y-a,enabled:{[k]:l,[y]:u}}}}}},NG=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:a,placement:i,rects:l,middlewareData:u}=t,{offset:f=0,mainAxis:h=!0,crossAxis:g=!0}=Jl(e,t),x={x:n,y:a},y=Qs(i),k=$9(y);let b=x[k],_=x[y];const R=Jl(f,t),M=typeof R=="number"?{mainAxis:R,crossAxis:0}:{mainAxis:0,crossAxis:0,...R};if(h){const F=k==="y"?"height":"width",D=l.reference[k]-l.floating[F]+M.mainAxis,V=l.reference[k]+l.reference[F]-M.mainAxis;b<D?b=D:b>V&&(b=V)}if(g){var L,P;const F=k==="y"?"width":"height",D=w_.has(Xl(i)),V=l.reference[y]-l.floating[F]+(D&&((L=u.offset)==null?void 0:L[y])||0)+(D?0:M.crossAxis),H=l.reference[y]+l.reference[F]+(D?0:((P=u.offset)==null?void 0:P[y])||0)-(D?M.crossAxis:0);_<V?_=V:_>H&&(_=H)}return{[k]:b,[y]:_}}}},MG=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,a;const{placement:i,rects:l,platform:u,elements:f}=t,{apply:h=()=>{},...g}=Jl(e,t),x=await Yh(t,g),y=Xl(i),k=gp(i),b=Qs(i)==="y",{width:_,height:R}=l.floating;let M,L;y==="top"||y==="bottom"?(M=y,L=k===(await(u.isRTL==null?void 0:u.isRTL(f.floating))?"start":"end")?"left":"right"):(L=y,M=k==="end"?"top":"bottom");const P=R-x.top-x.bottom,F=_-x.left-x.right,D=nc(R-x[M],P),V=nc(_-x[L],F),H=!t.middlewareData.shift;let Z=D,q=V;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(q=F),(a=t.middlewareData.shift)!=null&&a.enabled.y&&(Z=P),H&&!k){const _e=pi(x.left,0),ge=pi(x.right,0),he=pi(x.top,0),we=pi(x.bottom,0);b?q=_-2*(_e!==0||ge!==0?_e+ge:pi(x.left,x.right)):Z=R-2*(he!==0||we!==0?he+we:pi(x.top,x.bottom))}await h({...t,availableWidth:q,availableHeight:Z});const ae=await u.getDimensions(f.floating);return _!==ae.width||R!==ae.height?{reset:{rects:!0}}:{}}}};function R0(){return typeof window!="undefined"}function vp(e){return b_(e)?(e.nodeName||"").toLowerCase():"#document"}function hi(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function el(e){var t;return(t=(b_(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function b_(e){return R0()?e instanceof Node||e instanceof hi(e).Node:!1}function ms(e){return R0()?e instanceof Element||e instanceof hi(e).Element:!1}function tl(e){return R0()?e instanceof HTMLElement||e instanceof hi(e).HTMLElement:!1}function C_(e){return!R0()||typeof ShadowRoot=="undefined"?!1:e instanceof ShadowRoot||e instanceof hi(e).ShadowRoot}const OG=new Set(["inline","contents"]);function Jh(e){const{overflow:t,overflowX:n,overflowY:a,display:i}=gs(e);return/auto|scroll|overlay|hidden|clip/.test(t+a+n)&&!OG.has(i)}const LG=new Set(["table","td","th"]);function IG(e){return LG.has(vp(e))}const DG=[":popover-open",":modal"];function A0(e){return DG.some(t=>{try{return e.matches(t)}catch(n){return!1}})}const jG=["transform","translate","scale","rotate","perspective"],PG=["transform","translate","scale","rotate","perspective","filter"],FG=["paint","layout","strict","content"];function G9(e){const t=Y9(),n=ms(e)?gs(e):e;return jG.some(a=>n[a]?n[a]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||PG.some(a=>(n.willChange||"").includes(a))||FG.some(a=>(n.contain||"").includes(a))}function zG(e){let t=rc(e);for(;tl(t)&&!yp(t);){if(G9(t))return t;if(A0(t))return null;t=rc(t)}return null}function Y9(){return typeof CSS=="undefined"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const UG=new Set(["html","body","#document"]);function yp(e){return UG.has(vp(e))}function gs(e){return hi(e).getComputedStyle(e)}function N0(e){return ms(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function rc(e){if(vp(e)==="html")return e;const t=e.assignedSlot||e.parentNode||C_(e)&&e.host||el(e);return C_(t)?t.host:t}function S_(e){const t=rc(e);return yp(t)?e.ownerDocument?e.ownerDocument.body:e.body:tl(t)&&Jh(t)?t:S_(t)}function Xh(e,t,n){var a;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=S_(e),l=i===((a=e.ownerDocument)==null?void 0:a.body),u=hi(i);if(l){const f=J9(u);return t.concat(u,u.visualViewport||[],Jh(i)?i:[],f&&n?Xh(f):[])}return t.concat(i,Xh(i,[],n))}function J9(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function k_(e){const t=gs(e);let n=parseFloat(t.width)||0,a=parseFloat(t.height)||0;const i=tl(e),l=i?e.offsetWidth:n,u=i?e.offsetHeight:a,f=k0(n)!==l||k0(a)!==u;return f&&(n=l,a=u),{width:n,height:a,$:f}}function X9(e){return ms(e)?e:e.contextElement}function xp(e){const t=X9(e);if(!tl(t))return Ks(1);const n=t.getBoundingClientRect(),{width:a,height:i,$:l}=k_(t);let u=(l?k0(n.width):n.width)/a,f=(l?k0(n.height):n.height)/i;return(!u||!Number.isFinite(u))&&(u=1),(!f||!Number.isFinite(f))&&(f=1),{x:u,y:f}}const BG=Ks(0);function E_(e){const t=hi(e);return!Y9()||!t.visualViewport?BG:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function HG(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==hi(e)?!1:t}function bd(e,t,n,a){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),l=X9(e);let u=Ks(1);t&&(a?ms(a)&&(u=xp(a)):u=xp(e));const f=HG(l,n,a)?E_(l):Ks(0);let h=(i.left+f.x)/u.x,g=(i.top+f.y)/u.y,x=i.width/u.x,y=i.height/u.y;if(l){const k=hi(l),b=a&&ms(a)?hi(a):a;let _=k,R=J9(_);for(;R&&a&&b!==_;){const M=xp(R),L=R.getBoundingClientRect(),P=gs(R),F=L.left+(R.clientLeft+parseFloat(P.paddingLeft))*M.x,D=L.top+(R.clientTop+parseFloat(P.paddingTop))*M.y;h*=M.x,g*=M.y,x*=M.x,y*=M.y,h+=F,g+=D,_=hi(R),R=J9(_)}}return T0({width:x,height:y,x:h,y:g})}function M0(e,t){const n=N0(e).scrollLeft;return t?t.left+n:bd(el(e)).left+n}function __(e,t){const n=e.getBoundingClientRect(),a=n.left+t.scrollLeft-M0(e,n),i=n.top+t.scrollTop;return{x:a,y:i}}function VG(e){let{elements:t,rect:n,offsetParent:a,strategy:i}=e;const l=i==="fixed",u=el(a),f=t?A0(t.floating):!1;if(a===u||f&&l)return n;let h={scrollLeft:0,scrollTop:0},g=Ks(1);const x=Ks(0),y=tl(a);if((y||!y&&!l)&&((vp(a)!=="body"||Jh(u))&&(h=N0(a)),tl(a))){const b=bd(a);g=xp(a),x.x=b.x+a.clientLeft,x.y=b.y+a.clientTop}const k=u&&!y&&!l?__(u,h):Ks(0);return{width:n.width*g.x,height:n.height*g.y,x:n.x*g.x-h.scrollLeft*g.x+x.x+k.x,y:n.y*g.y-h.scrollTop*g.y+x.y+k.y}}function $G(e){return Array.from(e.getClientRects())}function ZG(e){const t=el(e),n=N0(e),a=e.ownerDocument.body,i=pi(t.scrollWidth,t.clientWidth,a.scrollWidth,a.clientWidth),l=pi(t.scrollHeight,t.clientHeight,a.scrollHeight,a.clientHeight);let u=-n.scrollLeft+M0(e);const f=-n.scrollTop;return gs(a).direction==="rtl"&&(u+=pi(t.clientWidth,a.clientWidth)-i),{width:i,height:l,x:u,y:f}}const T_=25;function WG(e,t){const n=hi(e),a=el(e),i=n.visualViewport;let l=a.clientWidth,u=a.clientHeight,f=0,h=0;if(i){l=i.width,u=i.height;const x=Y9();(!x||x&&t==="fixed")&&(f=i.offsetLeft,h=i.offsetTop)}const g=M0(a);if(g<=0){const x=a.ownerDocument,y=x.body,k=getComputedStyle(y),b=x.compatMode==="CSS1Compat"&&parseFloat(k.marginLeft)+parseFloat(k.marginRight)||0,_=Math.abs(a.clientWidth-y.clientWidth-b);_<=T_&&(l-=_)}else g<=T_&&(l+=g);return{width:l,height:u,x:f,y:h}}const qG=new Set(["absolute","fixed"]);function GG(e,t){const n=bd(e,!0,t==="fixed"),a=n.top+e.clientTop,i=n.left+e.clientLeft,l=tl(e)?xp(e):Ks(1),u=e.clientWidth*l.x,f=e.clientHeight*l.y,h=i*l.x,g=a*l.y;return{width:u,height:f,x:h,y:g}}function R_(e,t,n){let a;if(t==="viewport")a=WG(e,n);else if(t==="document")a=ZG(el(e));else if(ms(t))a=GG(t,n);else{const i=E_(e);a={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return T0(a)}function A_(e,t){const n=rc(e);return n===t||!ms(n)||yp(n)?!1:gs(n).position==="fixed"||A_(n,t)}function YG(e,t){const n=t.get(e);if(n)return n;let a=Xh(e,[],!1).filter(f=>ms(f)&&vp(f)!=="body"),i=null;const l=gs(e).position==="fixed";let u=l?rc(e):e;for(;ms(u)&&!yp(u);){const f=gs(u),h=G9(u);!h&&f.position==="fixed"&&(i=null),(l?!h&&!i:!h&&f.position==="static"&&!!i&&qG.has(i.position)||Jh(u)&&!h&&A_(e,u))?a=a.filter(x=>x!==u):i=f,u=rc(u)}return t.set(e,a),a}function JG(e){let{element:t,boundary:n,rootBoundary:a,strategy:i}=e;const u=[...n==="clippingAncestors"?A0(t)?[]:YG(t,this._c):[].concat(n),a],f=u[0],h=u.reduce((g,x)=>{const y=R_(t,x,i);return g.top=pi(y.top,g.top),g.right=nc(y.right,g.right),g.bottom=nc(y.bottom,g.bottom),g.left=pi(y.left,g.left),g},R_(t,f,i));return{width:h.right-h.left,height:h.bottom-h.top,x:h.left,y:h.top}}function XG(e){const{width:t,height:n}=k_(e);return{width:t,height:n}}function KG(e,t,n){const a=tl(t),i=el(t),l=n==="fixed",u=bd(e,!0,l,t);let f={scrollLeft:0,scrollTop:0};const h=Ks(0);function g(){h.x=M0(i)}if(a||!a&&!l)if((vp(t)!=="body"||Jh(i))&&(f=N0(t)),a){const b=bd(t,!0,l,t);h.x=b.x+t.clientLeft,h.y=b.y+t.clientTop}else i&&g();l&&!a&&i&&g();const x=i&&!a&&!l?__(i,f):Ks(0),y=u.left+f.scrollLeft-h.x-x.x,k=u.top+f.scrollTop-h.y-x.y;return{x:y,y:k,width:u.width,height:u.height}}function K9(e){return gs(e).position==="static"}function N_(e,t){if(!tl(e)||gs(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return el(e)===n&&(n=n.ownerDocument.body),n}function M_(e,t){const n=hi(e);if(A0(e))return n;if(!tl(e)){let i=rc(e);for(;i&&!yp(i);){if(ms(i)&&!K9(i))return i;i=rc(i)}return n}let a=N_(e,t);for(;a&&IG(a)&&K9(a);)a=N_(a,t);return a&&yp(a)&&K9(a)&&!G9(a)?n:a||zG(e)||n}const QG=async function(e){const t=this.getOffsetParent||M_,n=this.getDimensions,a=await n(e.floating);return{reference:KG(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:a.width,height:a.height}}};function eY(e){return gs(e).direction==="rtl"}const tY={convertOffsetParentRelativeRectToViewportRelativeRect:VG,getDocumentElement:el,getClippingRect:JG,getOffsetParent:M_,getElementRects:QG,getClientRects:$G,getDimensions:XG,getScale:xp,isElement:ms,isRTL:eY};function O_(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function nY(e,t){let n=null,a;const i=el(e);function l(){var f;clearTimeout(a),(f=n)==null||f.disconnect(),n=null}function u(f,h){f===void 0&&(f=!1),h===void 0&&(h=1),l();const g=e.getBoundingClientRect(),{left:x,top:y,width:k,height:b}=g;if(f||t(),!k||!b)return;const _=E0(y),R=E0(i.clientWidth-(x+k)),M=E0(i.clientHeight-(y+b)),L=E0(x),F={rootMargin:-_+"px "+-R+"px "+-M+"px "+-L+"px",threshold:pi(0,nc(1,h))||1};let D=!0;function V(H){const Z=H[0].intersectionRatio;if(Z!==h){if(!D)return u();Z?u(!1,Z):a=setTimeout(()=>{u(!1,1e-7)},1e3)}Z===1&&!O_(g,e.getBoundingClientRect())&&u(),D=!1}try{n=new IntersectionObserver(V,{...F,root:i.ownerDocument})}catch(H){n=new IntersectionObserver(V,F)}n.observe(e)}return u(!0),l}function rY(e,t,n,a){a===void 0&&(a={});const{ancestorScroll:i=!0,ancestorResize:l=!0,elementResize:u=typeof ResizeObserver=="function",layoutShift:f=typeof IntersectionObserver=="function",animationFrame:h=!1}=a,g=X9(e),x=i||l?[...g?Xh(g):[],...Xh(t)]:[];x.forEach(L=>{i&&L.addEventListener("scroll",n,{passive:!0}),l&&L.addEventListener("resize",n)});const y=g&&f?nY(g,n):null;let k=-1,b=null;u&&(b=new ResizeObserver(L=>{let[P]=L;P&&P.target===g&&b&&(b.unobserve(t),cancelAnimationFrame(k),k=requestAnimationFrame(()=>{var F;(F=b)==null||F.observe(t)})),n()}),g&&!h&&b.observe(g),b.observe(t));let _,R=h?bd(e):null;h&&M();function M(){const L=bd(e);R&&!O_(R,L)&&n(),R=L,_=requestAnimationFrame(M)}return n(),()=>{var L;x.forEach(P=>{i&&P.removeEventListener("scroll",n),l&&P.removeEventListener("resize",n)}),y==null||y(),(L=b)==null||L.disconnect(),b=null,h&&cancelAnimationFrame(_)}}const aY=RG,oY=AG,iY=EG,sY=MG,lY=_G,L_=kG,uY=NG,cY=(e,t,n)=>{const a=new Map,i={platform:tY,...n},l={...i.platform,_c:a};return SG(e,t,{...i,platform:l})};var dY=typeof document!="undefined",fY=function(){},O0=dY?O.useLayoutEffect:fY;function L0(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,a,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(a=n;a--!==0;)if(!L0(e[a],t[a]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(a=n;a--!==0;)if(!{}.hasOwnProperty.call(t,i[a]))return!1;for(a=n;a--!==0;){const l=i[a];if(!(l==="_owner"&&e.$$typeof)&&!L0(e[l],t[l]))return!1}return!0}return e!==e&&t!==t}function I_(e){return typeof window=="undefined"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function D_(e,t){const n=I_(e);return Math.round(t*n)/n}function Q9(e){const t=O.useRef(e);return O0(()=>{t.current=e}),t}function pY(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:a=[],platform:i,elements:{reference:l,floating:u}={},transform:f=!0,whileElementsMounted:h,open:g}=e,[x,y]=O.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[k,b]=O.useState(a);L0(k,a)||b(a);const[_,R]=O.useState(null),[M,L]=O.useState(null),P=O.useCallback(K=>{K!==H.current&&(H.current=K,R(K))},[]),F=O.useCallback(K=>{K!==Z.current&&(Z.current=K,L(K))},[]),D=l||_,V=u||M,H=O.useRef(null),Z=O.useRef(null),q=O.useRef(x),ae=h!=null,_e=Q9(h),ge=Q9(i),he=Q9(g),we=O.useCallback(()=>{if(!H.current||!Z.current)return;const K={placement:t,strategy:n,middleware:k};ge.current&&(K.platform=ge.current),cY(H.current,Z.current,K).then(ye=>{const U={...ye,isPositioned:he.current!==!1};Ne.current&&!L0(q.current,U)&&(q.current=U,Zl.flushSync(()=>{y(U)}))})},[k,t,n,ge,he]);O0(()=>{g===!1&&q.current.isPositioned&&(q.current.isPositioned=!1,y(K=>({...K,isPositioned:!1})))},[g]);const Ne=O.useRef(!1);O0(()=>(Ne.current=!0,()=>{Ne.current=!1}),[]),O0(()=>{if(D&&(H.current=D),V&&(Z.current=V),D&&V){if(_e.current)return _e.current(D,V,we);we()}},[D,V,we,_e,ae]);const xe=O.useMemo(()=>({reference:H,floating:Z,setReference:P,setFloating:F}),[P,F]),Te=O.useMemo(()=>({reference:D,floating:V}),[D,V]),ve=O.useMemo(()=>{const K={position:n,left:0,top:0};if(!Te.floating)return K;const ye=D_(Te.floating,x.x),U=D_(Te.floating,x.y);return f?{...K,transform:"translate("+ye+"px, "+U+"px)",...I_(Te.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:ye,top:U}},[n,f,Te.floating,x.x,x.y]);return O.useMemo(()=>({...x,update:we,refs:xe,elements:Te,floatingStyles:ve}),[x,we,xe,Te,ve])}const hY=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:a,padding:i}=typeof e=="function"?e(n):e;return a&&t(a)?a.current!=null?L_({element:a.current,padding:i}).fn(n):{}:a?L_({element:a,padding:i}).fn(n):{}}}},mY=(e,t)=>({...aY(e),options:[e,t]}),gY=(e,t)=>({...oY(e),options:[e,t]}),vY=(e,t)=>({...uY(e),options:[e,t]}),yY=(e,t)=>({...iY(e),options:[e,t]}),xY=(e,t)=>({...sY(e),options:[e,t]}),wY=(e,t)=>({...lY(e),options:[e,t]}),bY=(e,t)=>({...hY(e),options:[e,t]});var CY="Arrow",j_=O.forwardRef((e,t)=>{const{children:n,width:a=10,height:i=5,...l}=e;return C.jsx(hn.svg,{...l,ref:t,width:a,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:C.jsx("polygon",{points:"0,0 30,0 15,10"})})});j_.displayName=CY;var SY=j_;function e5(e){const[t,n]=O.useState(void 0);return La(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const a=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const l=i[0];let u,f;if("borderBoxSize"in l){const h=l.borderBoxSize,g=Array.isArray(h)?h[0]:h;u=g.inlineSize,f=g.blockSize}else u=e.offsetWidth,f=e.offsetHeight;n({width:u,height:f})});return a.observe(e,{box:"border-box"}),()=>a.unobserve(e)}else n(void 0)},[e]),t}var t5="Popper",[P_,I0]=Xs(t5),[kY,F_]=P_(t5),z_=e=>{const{__scopePopper:t,children:n}=e,[a,i]=O.useState(null);return C.jsx(kY,{scope:t,anchor:a,onAnchorChange:i,children:n})};z_.displayName=t5;var U_="PopperAnchor",B_=O.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:a,...i}=e,l=F_(U_,n),u=O.useRef(null),f=Vn(t,u),h=O.useRef(null);return O.useEffect(()=>{const g=h.current;h.current=(a==null?void 0:a.current)||u.current,g!==h.current&&l.onAnchorChange(h.current)}),a?null:C.jsx(hn.div,{...i,ref:f})});B_.displayName=U_;var n5="PopperContent",[EY,_Y]=P_(n5),H_=O.forwardRef((e,t)=>{var Ee,Ze,Qe,qe,tt,Et,bt,ct;const{__scopePopper:n,side:a="bottom",sideOffset:i=0,align:l="center",alignOffset:u=0,arrowPadding:f=0,avoidCollisions:h=!0,collisionBoundary:g=[],collisionPadding:x=0,sticky:y="partial",hideWhenDetached:k=!1,updatePositionStrategy:b="optimized",onPlaced:_,...R}=e,M=F_(n5,n),[L,P]=O.useState(null),F=Vn(t,yt=>P(yt)),[D,V]=O.useState(null),H=e5(D),Z=(Ee=H==null?void 0:H.width)!=null?Ee:0,q=(Ze=H==null?void 0:H.height)!=null?Ze:0,ae=a+(l!=="center"?"-"+l:""),_e=typeof x=="number"?x:{top:0,right:0,bottom:0,left:0,...x},ge=Array.isArray(g)?g:[g],he=ge.length>0,we={padding:_e,boundary:ge.filter(RY),altBoundary:he},{refs:Ne,floatingStyles:xe,placement:Te,isPositioned:ve,middlewareData:K}=pY({strategy:"fixed",placement:ae,whileElementsMounted:(...yt)=>rY(...yt,{animationFrame:b==="always"}),elements:{reference:M.anchor},middleware:[mY({mainAxis:i+q,alignmentAxis:u}),h&&gY({mainAxis:!0,crossAxis:!1,limiter:y==="partial"?vY():void 0,...we}),h&&yY({...we}),xY({...we,apply:({elements:yt,rects:Pt,availableWidth:St,availableHeight:jn})=>{const{width:Hn,height:Be}=Pt.reference,At=yt.floating.style;At.setProperty("--radix-popper-available-width",`${St}px`),At.setProperty("--radix-popper-available-height",`${jn}px`),At.setProperty("--radix-popper-anchor-width",`${Hn}px`),At.setProperty("--radix-popper-anchor-height",`${Be}px`)}}),D&&bY({element:D,padding:f}),AY({arrowWidth:Z,arrowHeight:q}),k&&wY({strategy:"referenceHidden",...we})]}),[ye,U]=Z_(Te),X=ec(_);La(()=>{ve&&(X==null||X())},[ve,X]);const ie=(Qe=K.arrow)==null?void 0:Qe.x,$=(qe=K.arrow)==null?void 0:qe.y,Ue=((tt=K.arrow)==null?void 0:tt.centerOffset)!==0,[Ke,De]=O.useState();return La(()=>{L&&De(window.getComputedStyle(L).zIndex)},[L]),C.jsx("div",{ref:Ne.setFloating,"data-radix-popper-content-wrapper":"",style:{...xe,transform:ve?xe.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Ke,"--radix-popper-transform-origin":[(Et=K.transformOrigin)==null?void 0:Et.x,(bt=K.transformOrigin)==null?void 0:bt.y].join(" "),...((ct=K.hide)==null?void 0:ct.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:C.jsx(EY,{scope:n,placedSide:ye,onArrowChange:V,arrowX:ie,arrowY:$,shouldHideArrow:Ue,children:C.jsx(hn.div,{"data-side":ye,"data-align":U,...R,ref:F,style:{...R.style,animation:ve?void 0:"none"}})})})});H_.displayName=n5;var V_="PopperArrow",TY={top:"bottom",right:"left",bottom:"top",left:"right"},$_=O.forwardRef(function(t,n){const{__scopePopper:a,...i}=t,l=_Y(V_,a),u=TY[l.placedSide];return C.jsx("span",{ref:l.onArrowChange,style:{position:"absolute",left:l.arrowX,top:l.arrowY,[u]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[l.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[l.placedSide],visibility:l.shouldHideArrow?"hidden":void 0},children:C.jsx(SY,{...i,ref:n,style:{...i.style,display:"block"}})})});$_.displayName=V_;function RY(e){return e!==null}var AY=e=>({name:"transformOrigin",options:e,fn(t){var M,L,P,F,D;const{placement:n,rects:a,middlewareData:i}=t,u=((M=i.arrow)==null?void 0:M.centerOffset)!==0,f=u?0:e.arrowWidth,h=u?0:e.arrowHeight,[g,x]=Z_(n),y={start:"0%",center:"50%",end:"100%"}[x],k=((P=(L=i.arrow)==null?void 0:L.x)!=null?P:0)+f/2,b=((D=(F=i.arrow)==null?void 0:F.y)!=null?D:0)+h/2;let _="",R="";return g==="bottom"?(_=u?y:`${k}px`,R=`${-h}px`):g==="top"?(_=u?y:`${k}px`,R=`${a.floating.height+h}px`):g==="right"?(_=`${-h}px`,R=u?y:`${b}px`):g==="left"&&(_=`${a.floating.width+h}px`,R=u?y:`${b}px`),{data:{x:_,y:R}}}});function Z_(e){const[t,n="center"]=e.split("-");return[t,n]}var NY=z_,W_=B_,q_=H_,G_=$_,MY="Portal",D0=O.forwardRef((e,t)=>{var f;const{container:n,...a}=e,[i,l]=O.useState(!1);La(()=>l(!0),[]);const u=n||i&&((f=globalThis==null?void 0:globalThis.document)==null?void 0:f.body);return u?YD.createPortal(C.jsx(hn.div,{...a,ref:t}),u):null});D0.displayName=MY;function OY(e,t){return O.useReducer((n,a)=>{const i=t[n][a];return i!=null?i:n},e)}var Kl=e=>{const{present:t,children:n}=e,a=LY(t),i=typeof n=="function"?n({present:a.isPresent}):O.Children.only(n),l=Vn(a.ref,IY(i));return typeof n=="function"||a.isPresent?O.cloneElement(i,{ref:l}):null};Kl.displayName="Presence";function LY(e){const[t,n]=O.useState(),a=O.useRef(null),i=O.useRef(e),l=O.useRef("none"),u=e?"mounted":"unmounted",[f,h]=OY(u,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return O.useEffect(()=>{const g=j0(a.current);l.current=f==="mounted"?g:"none"},[f]),La(()=>{const g=a.current,x=i.current;if(x!==e){const k=l.current,b=j0(g);e?h("MOUNT"):b==="none"||(g==null?void 0:g.display)==="none"?h("UNMOUNT"):h(x&&k!==b?"ANIMATION_OUT":"UNMOUNT"),i.current=e}},[e,h]),La(()=>{var g;if(t){let x;const y=(g=t.ownerDocument.defaultView)!=null?g:window,k=_=>{const M=j0(a.current).includes(CSS.escape(_.animationName));if(_.target===t&&M&&(h("ANIMATION_END"),!i.current)){const L=t.style.animationFillMode;t.style.animationFillMode="forwards",x=y.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=L)})}},b=_=>{_.target===t&&(l.current=j0(a.current))};return t.addEventListener("animationstart",b),t.addEventListener("animationcancel",k),t.addEventListener("animationend",k),()=>{y.clearTimeout(x),t.removeEventListener("animationstart",b),t.removeEventListener("animationcancel",k),t.removeEventListener("animationend",k)}}else h("ANIMATION_END")},[t,h]),{isPresent:["mounted","unmountSuspended"].includes(f),ref:O.useCallback(g=>{a.current=g?getComputedStyle(g):null,n(g)},[])}}function j0(e){return(e==null?void 0:e.animationName)||"none"}function IY(e){var a,i;let t=(a=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:a.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var DY=k3[" useInsertionEffect ".trim().toString()]||La;function wp({prop:e,defaultProp:t,onChange:n=()=>{},caller:a}){const[i,l,u]=jY({defaultProp:t,onChange:n}),f=e!==void 0,h=f?e:i;{const x=O.useRef(e!==void 0);O.useEffect(()=>{const y=x.current;y!==f&&console.warn(`${a} is changing from ${y?"controlled":"uncontrolled"} to ${f?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),x.current=f},[f,a])}const g=O.useCallback(x=>{var y;if(f){const k=PY(x)?x(e):x;k!==e&&((y=u.current)==null||y.call(u,k))}else l(x)},[f,e,l,u]);return[h,g]}function jY({defaultProp:e,onChange:t}){const[n,a]=O.useState(e),i=O.useRef(n),l=O.useRef(t);return DY(()=>{l.current=t},[t]),O.useEffect(()=>{var u;i.current!==n&&((u=l.current)==null||u.call(l,n),i.current=n)},[n,i]),[n,a,l]}function PY(e){return typeof e=="function"}var Y_=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),FY="VisuallyHidden",J_=O.forwardRef((e,t)=>C.jsx(hn.span,{...e,ref:t,style:{...Y_,...e.style}}));J_.displayName=FY;var zY=J_,[P0]=Xs("Tooltip",[I0]),F0=I0(),X_="TooltipProvider",UY=700,r5="tooltip.open",[BY,a5]=P0(X_),K_=e=>{const{__scopeTooltip:t,delayDuration:n=UY,skipDelayDuration:a=300,disableHoverableContent:i=!1,children:l}=e,u=O.useRef(!0),f=O.useRef(!1),h=O.useRef(0);return O.useEffect(()=>{const g=h.current;return()=>window.clearTimeout(g)},[]),C.jsx(BY,{scope:t,isOpenDelayedRef:u,delayDuration:n,onOpen:O.useCallback(()=>{window.clearTimeout(h.current),u.current=!1},[]),onClose:O.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>u.current=!0,a)},[a]),isPointerInTransitRef:f,onPointerInTransitChange:O.useCallback(g=>{f.current=g},[]),disableHoverableContent:i,children:l})};K_.displayName=X_;var Kh="Tooltip",[HY,Qh]=P0(Kh),Q_=e=>{const{__scopeTooltip:t,children:n,open:a,defaultOpen:i,onOpenChange:l,disableHoverableContent:u,delayDuration:f}=e,h=a5(Kh,e.__scopeTooltip),g=F0(t),[x,y]=O.useState(null),k=tc(),b=O.useRef(0),_=u!=null?u:h.disableHoverableContent,R=f!=null?f:h.delayDuration,M=O.useRef(!1),[L,P]=wp({prop:a,defaultProp:i!=null?i:!1,onChange:Z=>{Z?(h.onOpen(),document.dispatchEvent(new CustomEvent(r5))):h.onClose(),l==null||l(Z)},caller:Kh}),F=O.useMemo(()=>L?M.current?"delayed-open":"instant-open":"closed",[L]),D=O.useCallback(()=>{window.clearTimeout(b.current),b.current=0,M.current=!1,P(!0)},[P]),V=O.useCallback(()=>{window.clearTimeout(b.current),b.current=0,P(!1)},[P]),H=O.useCallback(()=>{window.clearTimeout(b.current),b.current=window.setTimeout(()=>{M.current=!0,P(!0),b.current=0},R)},[R,P]);return O.useEffect(()=>()=>{b.current&&(window.clearTimeout(b.current),b.current=0)},[]),C.jsx(NY,{...g,children:C.jsx(HY,{scope:t,contentId:k,open:L,stateAttribute:F,trigger:x,onTriggerChange:y,onTriggerEnter:O.useCallback(()=>{h.isOpenDelayedRef.current?H():D()},[h.isOpenDelayedRef,H,D]),onTriggerLeave:O.useCallback(()=>{_?V():(window.clearTimeout(b.current),b.current=0)},[V,_]),onOpen:D,onClose:V,disableHoverableContent:_,children:n})})};Q_.displayName=Kh;var o5="TooltipTrigger",eT=O.forwardRef((e,t)=>{const{__scopeTooltip:n,...a}=e,i=Qh(o5,n),l=a5(o5,n),u=F0(n),f=O.useRef(null),h=Vn(t,f,i.onTriggerChange),g=O.useRef(!1),x=O.useRef(!1),y=O.useCallback(()=>g.current=!1,[]);return O.useEffect(()=>()=>document.removeEventListener("pointerup",y),[y]),C.jsx(W_,{asChild:!0,...u,children:C.jsx(hn.button,{"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute,...a,ref:h,onPointerMove:nn(e.onPointerMove,k=>{k.pointerType!=="touch"&&!x.current&&!l.isPointerInTransitRef.current&&(i.onTriggerEnter(),x.current=!0)}),onPointerLeave:nn(e.onPointerLeave,()=>{i.onTriggerLeave(),x.current=!1}),onPointerDown:nn(e.onPointerDown,()=>{i.open&&i.onClose(),g.current=!0,document.addEventListener("pointerup",y,{once:!0})}),onFocus:nn(e.onFocus,()=>{g.current||i.onOpen()}),onBlur:nn(e.onBlur,i.onClose),onClick:nn(e.onClick,i.onClose)})})});eT.displayName=o5;var i5="TooltipPortal",[VY,$Y]=P0(i5,{forceMount:void 0}),tT=e=>{const{__scopeTooltip:t,forceMount:n,children:a,container:i}=e,l=Qh(i5,t);return C.jsx(VY,{scope:t,forceMount:n,children:C.jsx(Kl,{present:n||l.open,children:C.jsx(D0,{asChild:!0,container:i,children:a})})})};tT.displayName=i5;var bp="TooltipContent",nT=O.forwardRef((e,t)=>{const n=$Y(bp,e.__scopeTooltip),{forceMount:a=n.forceMount,side:i="top",...l}=e,u=Qh(bp,e.__scopeTooltip);return C.jsx(Kl,{present:a||u.open,children:u.disableHoverableContent?C.jsx(rT,{side:i,...l,ref:t}):C.jsx(ZY,{side:i,...l,ref:t})})}),ZY=O.forwardRef((e,t)=>{const n=Qh(bp,e.__scopeTooltip),a=a5(bp,e.__scopeTooltip),i=O.useRef(null),l=Vn(t,i),[u,f]=O.useState(null),{trigger:h,onClose:g}=n,x=i.current,{onPointerInTransitChange:y}=a,k=O.useCallback(()=>{f(null),y(!1)},[y]),b=O.useCallback((_,R)=>{const M=_.currentTarget,L={x:_.clientX,y:_.clientY},P=YY(L,M.getBoundingClientRect()),F=JY(L,P),D=XY(R.getBoundingClientRect()),V=QY([...F,...D]);f(V),y(!0)},[y]);return O.useEffect(()=>()=>k(),[k]),O.useEffect(()=>{if(h&&x){const _=M=>b(M,x),R=M=>b(M,h);return h.addEventListener("pointerleave",_),x.addEventListener("pointerleave",R),()=>{h.removeEventListener("pointerleave",_),x.removeEventListener("pointerleave",R)}}},[h,x,b,k]),O.useEffect(()=>{if(u){const _=R=>{const M=R.target,L={x:R.clientX,y:R.clientY},P=(h==null?void 0:h.contains(M))||(x==null?void 0:x.contains(M)),F=!KY(L,u);P?k():F&&(k(),g())};return document.addEventListener("pointermove",_),()=>document.removeEventListener("pointermove",_)}},[h,x,u,g,k]),C.jsx(rT,{...e,ref:l})}),[WY,qY]=P0(Kh,{isInside:!1}),GY=Jq("TooltipContent"),rT=O.forwardRef((e,t)=>{const{__scopeTooltip:n,children:a,"aria-label":i,onEscapeKeyDown:l,onPointerDownOutside:u,...f}=e,h=Qh(bp,n),g=F0(n),{onClose:x}=h;return O.useEffect(()=>(document.addEventListener(r5,x),()=>document.removeEventListener(r5,x)),[x]),O.useEffect(()=>{if(h.trigger){const y=k=>{const b=k.target;b!=null&&b.contains(h.trigger)&&x()};return window.addEventListener("scroll",y,{capture:!0}),()=>window.removeEventListener("scroll",y,{capture:!0})}},[h.trigger,x]),C.jsx(S0,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:y=>y.preventDefault(),onDismiss:x,children:C.jsxs(q_,{"data-state":h.stateAttribute,...g,...f,ref:t,style:{...f.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[C.jsx(GY,{children:a}),C.jsx(WY,{scope:n,isInside:!0,children:C.jsx(zY,{id:h.contentId,role:"tooltip",children:i||a})})]})})});nT.displayName=bp;var aT="TooltipArrow",oT=O.forwardRef((e,t)=>{const{__scopeTooltip:n,...a}=e,i=F0(n);return qY(aT,n).isInside?null:C.jsx(G_,{...i,...a,ref:t})});oT.displayName=aT;function YY(e,t){const n=Math.abs(t.top-e.y),a=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),l=Math.abs(t.left-e.x);switch(Math.min(n,a,i,l)){case l:return"left";case i:return"right";case n:return"top";case a:return"bottom";default:throw new Error("unreachable")}}function JY(e,t,n=5){const a=[];switch(t){case"top":a.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":a.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":a.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":a.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return a}function XY(e){const{top:t,right:n,bottom:a,left:i}=e;return[{x:i,y:t},{x:n,y:t},{x:n,y:a},{x:i,y:a}]}function KY(e,t){const{x:n,y:a}=e;let i=!1;for(let l=0,u=t.length-1;l<t.length;u=l++){const f=t[l],h=t[u],g=f.x,x=f.y,y=h.x,k=h.y;x>a!=k>a&&n<(y-g)*(a-x)/(k-x)+g&&(i=!i)}return i}function QY(e){const t=e.slice();return t.sort((n,a)=>n.x<a.x?-1:n.x>a.x?1:n.y<a.y?-1:n.y>a.y?1:0),eJ(t)}function eJ(e){if(e.length<=1)return e.slice();const t=[];for(let a=0;a<e.length;a++){const i=e[a];for(;t.length>=2;){const l=t[t.length-1],u=t[t.length-2];if((l.x-u.x)*(i.y-u.y)>=(l.y-u.y)*(i.x-u.x))t.pop();else break}t.push(i)}t.pop();const n=[];for(let a=e.length-1;a>=0;a--){const i=e[a];for(;n.length>=2;){const l=n[n.length-1],u=n[n.length-2];if((l.x-u.x)*(i.y-u.y)>=(l.y-u.y)*(i.x-u.x))n.pop();else break}n.push(i)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var tJ=K_,nJ=Q_,rJ=eT,aJ=tT,iT=nT,oJ=oT;const sT=O.createContext(void 0),iJ=({zIndex:e,children:t,...n})=>C.jsx(sT.Provider,{value:e,children:C.jsx(tJ,{...n,children:t})}),sJ=nJ,lJ=rJ,lT=O.forwardRef(({className:e,sideOffset:t=4,portalContainer:n,style:a,...i},l)=>{const u=O.useContext(sT);return C.jsx(aJ,{container:n!=null?n:void 0,children:C.jsxs(iT,{ref:l,sideOffset:t,className:We(e),style:u!=null?{...a,zIndex:u}:a,...i,children:[i.children,C.jsx(oJ,{className:"fill-[#525867]"})]})})});lT.displayName=iT.displayName;const uT=({children:e,content:t})=>{const n=O.useRef(null),[a,i]=O.useState(null);return O.useEffect(()=>{const l=n.current;if(!l)return;const u=l.getRootNode();if(u instanceof ShadowRoot){const f=u.querySelector("[data-bs-tooltip-portal]");if(f){i(f);return}const h=document.createElement("div");h.setAttribute("data-bs-tooltip-portal","true"),u.appendChild(h),i(h);return}i(null)},[]),C.jsxs(sJ,{children:[C.jsx(lJ,{asChild:!0,children:C.jsx("span",{ref:n,className:"inline-flex",children:e})}),C.jsx(lT,{portalContainer:a,className:"rounded-[4px] bg-[#525867] px-[12px] !py-[7px] text-[12px] text-white leading-normal max-w-[288px]",children:t})]})},Cd=O.forwardRef(({icon:e,className:t,tooltip:n,size:a,...i},l)=>{const u=C.jsx(Ho,{ref:l,variant:"ghost",size:"icon",className:We("p-2.5",{"rounded-full w-[26px] h-[26px] aspect-square !text-[#121111]":i.rounded,"rounded-[4px]":!i.rounded},"cursor-pointer","hover:!bg-[#EFF0F6]",t,ra),...i,children:e});return n?C.jsx(uT,{content:n,children:u}):u}),Cp=e=>{const t=a_();return{exec:O.useCallback(a=>{var l;let i=a;for(const u of t){const f=(l=u.lifecycleHooks)==null?void 0:l[e];f&&(i=f(i))}return i},[])}},Sp=e=>{const{exec:t}=Cp("onBeforeChatRender");return t(e)},z0=e=>C.jsxs("div",{className:"flex items-center gap-[6px]",children:[C.jsxs("div",{className:"flex gap-[2px] flex-shrink-0",style:{marginRight:"6px"},children:[C.jsx("div",{className:"w-[5px] h-[5px] rounded-full bg-[#999] flex-shrink-0",style:{animation:"pulse 1.4s ease-in-out infinite",animationDelay:"0s",width:"5px",height:"5px",background:"#999",marginRight:"3px"}}),C.jsx("div",{className:"w-[5px] h-[5px] rounded-full bg-[#999] flex-shrink-0",style:{animation:"pulse 1.4s ease-in-out infinite",width:"5px",height:"5px",background:"#999",animationDelay:"0.2s",marginRight:"3px"}}),C.jsx("div",{className:"w-[5px] h-[5px] rounded-full bg-[#999] flex-shrink-0",style:{animation:"pulse 1.4s ease-in-out infinite",width:"5px",height:"5px",marginRight:"3px",background:"#999",animationDelay:"0.4s"}})]}),C.jsx("span",{className:"text-[14px] text-[#999]",children:e.children||"生成中"}),C.jsx("style",{children:`
360
+ @keyframes pulse {
361
+ 0%, 60%, 100% {
362
+ opacity: 0.3;
363
+ transform: scale(1);
364
+ }
365
+ 30% {
366
+ opacity: 1;
367
+ transform: scale(1.2);
368
+ }
369
+ }
370
+ `})]}),uJ=({role:e,requiresScrollPadding:t,hasTextPart:n,hasFileType:a,children:i,isLoading:l,onCopy:u,onGenerate:f})=>{const h=e==="assistant",g=e==="user",x=Sp(),y=mp("AvatarAndName"),k=y==null?void 0:y.Component,b=k?C.jsx(k,{}):C.jsx(qh,{name:"AI表单搭建"}),[_,R]=O.useState(!1),M=h&&_&&!l,L=M?"opacity-100":"opacity-0",P=M?"pointer-events-auto":"pointer-events-none",F=C.jsxs("div",{className:We("flex items-center gap-2.5 text-[#666] h-[40px]",L,P),children:[C.jsx(Cd,{tooltip:"复制",icon:C.jsx(Tq,{}),onClick:u,className:"!hover:bg-[#eff0f6]"}),f?C.jsx(Cd,{tooltip:"重新生成",icon:C.jsx(_q,{}),onClick:()=>{f&&f()},className:"!hover:bg-[#eff0f6]"}):null]});return C.jsxs("div",{className:"group/message w-full","data-role":e,"data-testid":`message-${e}`,onMouseEnter:()=>R(!0),onMouseLeave:()=>R(!1),children:[C.jsxs("div",{className:We("flex w-full justify-start flex-col gap-2.5",{"items-end":e==="user","items-start":e==="assistant"}),children:[e==="assistant"&&b,C.jsxs("div",{className:We("flex flex-col min-w-0",{"gap-[10px]":n,grow:h,"items-end":e==="user","min-h-96":h&&t,"w-full":h&&n,"max-w-[calc(100%-2.5rem)] sm:max-w-[min(fit-content,80%)]":g&&!a,"max-w-full":a}),children:[i,l&&(x!=null&&x.appendLoadingIndicator)?C.jsx(z0,{}):null]})]}),F]})},Ka=({children:e,className:t,...n})=>C.jsx("div",{className:Ta("flex flex-col gap-[10px] overflow-hidden p-0 text-foreground text-[14px]","group-[.is-user]:bg-primary group-[.is-user]:text-primary-foreground","group-[.is-assistant]:bg-secondary group-[.is-assistant]:text-foreground","is-user:dark overflow-visible",t),...n,children:e});function s5(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var Sd=s5();function cT(e){Sd=e}var em={exec:()=>null};function Dn(e,t=""){let n=typeof e=="string"?e:e.source,a={replace:(i,l)=>{let u=typeof l=="string"?l:l.source;return u=u.replace(bo.caret,"$1"),n=n.replace(i,u),a},getRegex:()=>new RegExp(n,t)};return a}var cJ=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch(e){return!1}})(),bo={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i")},dJ=/^(?:[ \t]*(?:\n|$))+/,fJ=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,pJ=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,tm=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,hJ=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,l5=/(?:[*+-]|\d{1,9}[.)])/,dT=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,fT=Dn(dT).replace(/bull/g,l5).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),mJ=Dn(dT).replace(/bull/g,l5).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),u5=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,gJ=/^[^\n]+/,c5=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,vJ=Dn(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",c5).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),yJ=Dn(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,l5).getRegex(),U0="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",d5=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,xJ=Dn("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",d5).replace("tag",U0).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),pT=Dn(u5).replace("hr",tm).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",U0).getRegex(),wJ=Dn(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",pT).getRegex(),f5={blockquote:wJ,code:fJ,def:vJ,fences:pJ,heading:hJ,hr:tm,html:xJ,lheading:fT,list:yJ,newline:dJ,paragraph:pT,table:em,text:gJ},hT=Dn("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",tm).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",U0).getRegex(),bJ={...f5,lheading:mJ,table:hT,paragraph:Dn(u5).replace("hr",tm).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",hT).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",U0).getRegex()},CJ={...f5,html:Dn(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",d5).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:em,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Dn(u5).replace("hr",tm).replace("heading",` *#{1,6} *[^
371
+ ]`).replace("lheading",fT).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},SJ=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,kJ=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,mT=/^( {2,}|\\)\n(?!\s*$)/,EJ=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,B0=/[\p{P}\p{S}]/u,p5=/[\s\p{P}\p{S}]/u,gT=/[^\s\p{P}\p{S}]/u,_J=Dn(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,p5).getRegex(),vT=/(?!~)[\p{P}\p{S}]/u,TJ=/(?!~)[\s\p{P}\p{S}]/u,RJ=/(?:[^\s\p{P}\p{S}]|~)/u,AJ=Dn(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",cJ?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),yT=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,NJ=Dn(yT,"u").replace(/punct/g,B0).getRegex(),MJ=Dn(yT,"u").replace(/punct/g,vT).getRegex(),xT="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",OJ=Dn(xT,"gu").replace(/notPunctSpace/g,gT).replace(/punctSpace/g,p5).replace(/punct/g,B0).getRegex(),LJ=Dn(xT,"gu").replace(/notPunctSpace/g,RJ).replace(/punctSpace/g,TJ).replace(/punct/g,vT).getRegex(),IJ=Dn("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,gT).replace(/punctSpace/g,p5).replace(/punct/g,B0).getRegex(),DJ=Dn(/\\(punct)/,"gu").replace(/punct/g,B0).getRegex(),jJ=Dn(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),PJ=Dn(d5).replace("(?:-->|$)","-->").getRegex(),FJ=Dn("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",PJ).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),H0=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,zJ=Dn(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",H0).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),wT=Dn(/^!?\[(label)\]\[(ref)\]/).replace("label",H0).replace("ref",c5).getRegex(),bT=Dn(/^!?\[(ref)\](?:\[\])?/).replace("ref",c5).getRegex(),UJ=Dn("reflink|nolink(?!\\()","g").replace("reflink",wT).replace("nolink",bT).getRegex(),CT=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,h5={_backpedal:em,anyPunctuation:DJ,autolink:jJ,blockSkip:AJ,br:mT,code:kJ,del:em,emStrongLDelim:NJ,emStrongRDelimAst:OJ,emStrongRDelimUnd:IJ,escape:SJ,link:zJ,nolink:bT,punctuation:_J,reflink:wT,reflinkSearch:UJ,tag:FJ,text:EJ,url:em},BJ={...h5,link:Dn(/^!?\[(label)\]\((.*?)\)/).replace("label",H0).getRegex(),reflink:Dn(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",H0).getRegex()},m5={...h5,emStrongRDelimAst:LJ,emStrongLDelim:MJ,url:Dn(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",CT).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:Dn(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",CT).getRegex()},HJ={...m5,br:Dn(mT).replace("{2,}","*").getRegex(),text:Dn(m5.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},V0={normal:f5,gfm:bJ,pedantic:CJ},nm={normal:h5,gfm:m5,breaks:HJ,pedantic:BJ},VJ={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},ST=e=>VJ[e];function Ql(e,t){if(t){if(bo.escapeTest.test(e))return e.replace(bo.escapeReplace,ST)}else if(bo.escapeTestNoEncode.test(e))return e.replace(bo.escapeReplaceNoEncode,ST);return e}function kT(e){try{e=encodeURI(e).replace(bo.percentDecode,"%")}catch(t){return null}return e}function ET(e,t){var l;let n=e.replace(bo.findPipe,(u,f,h)=>{let g=!1,x=f;for(;--x>=0&&h[x]==="\\";)g=!g;return g?"|":" |"}),a=n.split(bo.splitPipe),i=0;if(a[0].trim()||a.shift(),a.length>0&&!((l=a.at(-1))!=null&&l.trim())&&a.pop(),t)if(a.length>t)a.splice(t);else for(;a.length<t;)a.push("");for(;i<a.length;i++)a[i]=a[i].trim().replace(bo.slashPipe,"|");return a}function rm(e,t,n){let a=e.length;if(a===0)return"";let i=0;for(;i<a&&e.charAt(a-i-1)===t;)i++;return e.slice(0,a-i)}function $J(e,t){if(e.indexOf(t[1])===-1)return-1;let n=0;for(let a=0;a<e.length;a++)if(e[a]==="\\")a++;else if(e[a]===t[0])n++;else if(e[a]===t[1]&&(n--,n<0))return a;return n>0?-2:-1}function _T(e,t,n,a,i){let l=t.href,u=t.title||null,f=e[1].replace(i.other.outputLinkReplace,"$1");a.state.inLink=!0;let h={type:e[0].charAt(0)==="!"?"image":"link",raw:n,href:l,title:u,text:f,tokens:a.inlineTokens(f)};return a.state.inLink=!1,h}function ZJ(e,t,n){let a=e.match(n.other.indentCodeCompensation);if(a===null)return t;let i=a[1];return t.split(`
372
+ `).map(l=>{let u=l.match(n.other.beginningSpace);if(u===null)return l;let[f]=u;return f.length>=i.length?l.slice(i.length):l}).join(`
373
+ `)}var $0=class{constructor(e){Ge(this,"options");Ge(this,"rules");Ge(this,"lexer");this.options=e||Sd}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let n=t[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?n:rm(n,`
374
+ `)}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let n=t[0],a=ZJ(n,t[3]||"",this.rules);return{type:"code",raw:n,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:a}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let n=t[2].trim();if(this.rules.other.endingHash.test(n)){let a=rm(n,"#");(this.options.pedantic||!a||this.rules.other.endingSpaceChar.test(a))&&(n=a.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:n,tokens:this.lexer.inline(n)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:rm(t[0],`
375
+ `)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let n=rm(t[0],`
376
+ `).split(`
377
+ `),a="",i="",l=[];for(;n.length>0;){let u=!1,f=[],h;for(h=0;h<n.length;h++)if(this.rules.other.blockquoteStart.test(n[h]))f.push(n[h]),u=!0;else if(!u)f.push(n[h]);else break;n=n.slice(h);let g=f.join(`
378
+ `),x=g.replace(this.rules.other.blockquoteSetextReplace,`
379
+ $1`).replace(this.rules.other.blockquoteSetextReplace2,"");a=a?`${a}
380
+ ${g}`:g,i=i?`${i}
381
+ ${x}`:x;let y=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(x,l,!0),this.lexer.state.top=y,n.length===0)break;let k=l.at(-1);if((k==null?void 0:k.type)==="code")break;if((k==null?void 0:k.type)==="blockquote"){let b=k,_=b.raw+`
382
+ `+n.join(`
383
+ `),R=this.blockquote(_);l[l.length-1]=R,a=a.substring(0,a.length-b.raw.length)+R.raw,i=i.substring(0,i.length-b.text.length)+R.text;break}else if((k==null?void 0:k.type)==="list"){let b=k,_=b.raw+`
384
+ `+n.join(`
385
+ `),R=this.list(_);l[l.length-1]=R,a=a.substring(0,a.length-k.raw.length)+R.raw,i=i.substring(0,i.length-b.raw.length)+R.raw,n=_.substring(l.at(-1).raw.length).split(`
386
+ `);continue}}return{type:"blockquote",raw:a,tokens:l,text:i}}}list(e){var n,a;let t=this.rules.block.list.exec(e);if(t){let i=t[1].trim(),l=i.length>1,u={type:"list",raw:"",ordered:l,start:l?+i.slice(0,-1):"",loose:!1,items:[]};i=l?`\\d{1,9}\\${i.slice(-1)}`:`\\${i}`,this.options.pedantic&&(i=l?i:"[*+-]");let f=this.rules.other.listItemRegex(i),h=!1;for(;e;){let x=!1,y="",k="";if(!(t=f.exec(e))||this.rules.block.hr.test(e))break;y=t[0],e=e.substring(y.length);let b=t[2].split(`
387
+ `,1)[0].replace(this.rules.other.listReplaceTabs,L=>" ".repeat(3*L.length)),_=e.split(`
388
+ `,1)[0],R=!b.trim(),M=0;if(this.options.pedantic?(M=2,k=b.trimStart()):R?M=t[1].length+1:(M=t[2].search(this.rules.other.nonSpaceChar),M=M>4?1:M,k=b.slice(M),M+=t[1].length),R&&this.rules.other.blankLine.test(_)&&(y+=_+`
389
+ `,e=e.substring(_.length+1),x=!0),!x){let L=this.rules.other.nextBulletRegex(M),P=this.rules.other.hrRegex(M),F=this.rules.other.fencesBeginRegex(M),D=this.rules.other.headingBeginRegex(M),V=this.rules.other.htmlBeginRegex(M);for(;e;){let H=e.split(`
390
+ `,1)[0],Z;if(_=H,this.options.pedantic?(_=_.replace(this.rules.other.listReplaceNesting," "),Z=_):Z=_.replace(this.rules.other.tabCharGlobal," "),F.test(_)||D.test(_)||V.test(_)||L.test(_)||P.test(_))break;if(Z.search(this.rules.other.nonSpaceChar)>=M||!_.trim())k+=`
391
+ `+Z.slice(M);else{if(R||b.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||F.test(b)||D.test(b)||P.test(b))break;k+=`
392
+ `+_}!R&&!_.trim()&&(R=!0),y+=H+`
393
+ `,e=e.substring(H.length+1),b=Z.slice(M)}}u.loose||(h?u.loose=!0:this.rules.other.doubleBlankLine.test(y)&&(h=!0)),u.items.push({type:"list_item",raw:y,task:!!this.options.gfm&&this.rules.other.listIsTask.test(k),loose:!1,text:k,tokens:[]}),u.raw+=y}let g=u.items.at(-1);if(g)g.raw=g.raw.trimEnd(),g.text=g.text.trimEnd();else return;u.raw=u.raw.trimEnd();for(let x of u.items){if(this.lexer.state.top=!1,x.tokens=this.lexer.blockTokens(x.text,[]),x.task){if(x.text=x.text.replace(this.rules.other.listReplaceTask,""),((n=x.tokens[0])==null?void 0:n.type)==="text"||((a=x.tokens[0])==null?void 0:a.type)==="paragraph"){x.tokens[0].raw=x.tokens[0].raw.replace(this.rules.other.listReplaceTask,""),x.tokens[0].text=x.tokens[0].text.replace(this.rules.other.listReplaceTask,"");for(let k=this.lexer.inlineQueue.length-1;k>=0;k--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[k].src)){this.lexer.inlineQueue[k].src=this.lexer.inlineQueue[k].src.replace(this.rules.other.listReplaceTask,"");break}}let y=this.rules.other.listTaskCheckbox.exec(x.raw);if(y){let k={type:"checkbox",raw:y[0]+" ",checked:y[0]!=="[ ]"};x.checked=k.checked,u.loose?x.tokens[0]&&["paragraph","text"].includes(x.tokens[0].type)&&"tokens"in x.tokens[0]&&x.tokens[0].tokens?(x.tokens[0].raw=k.raw+x.tokens[0].raw,x.tokens[0].text=k.raw+x.tokens[0].text,x.tokens[0].tokens.unshift(k)):x.tokens.unshift({type:"paragraph",raw:k.raw,text:k.raw,tokens:[k]}):x.tokens.unshift(k)}}if(!u.loose){let y=x.tokens.filter(b=>b.type==="space"),k=y.length>0&&y.some(b=>this.rules.other.anyLine.test(b.raw));u.loose=k}}if(u.loose)for(let x of u.items){x.loose=!0;for(let y of x.tokens)y.type==="text"&&(y.type="paragraph")}return u}}html(e){let t=this.rules.block.html.exec(e);if(t)return{type:"html",block:!0,raw:t[0],pre:t[1]==="pre"||t[1]==="script"||t[1]==="style",text:t[0]}}def(e){let t=this.rules.block.def.exec(e);if(t){let n=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),a=t[2]?t[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",i=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:n,raw:t[0],href:a,title:i}}}table(e){var u;let t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;let n=ET(t[1]),a=t[2].replace(this.rules.other.tableAlignChars,"").split("|"),i=(u=t[3])!=null&&u.trim()?t[3].replace(this.rules.other.tableRowBlankLine,"").split(`
394
+ `):[],l={type:"table",raw:t[0],header:[],align:[],rows:[]};if(n.length===a.length){for(let f of a)this.rules.other.tableAlignRight.test(f)?l.align.push("right"):this.rules.other.tableAlignCenter.test(f)?l.align.push("center"):this.rules.other.tableAlignLeft.test(f)?l.align.push("left"):l.align.push(null);for(let f=0;f<n.length;f++)l.header.push({text:n[f],tokens:this.lexer.inline(n[f]),header:!0,align:l.align[f]});for(let f of i)l.rows.push(ET(f,l.header.length).map((h,g)=>({text:h,tokens:this.lexer.inline(h),header:!1,align:l.align[g]})));return l}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:t[2].charAt(0)==="="?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let n=t[1].charAt(t[1].length-1)===`
395
+ `?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:n,tokens:this.lexer.inline(n)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let n=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(n)){if(!this.rules.other.endAngleBracket.test(n))return;let l=rm(n.slice(0,-1),"\\");if((n.length-l.length)%2===0)return}else{let l=$J(t[2],"()");if(l===-2)return;if(l>-1){let u=(t[0].indexOf("!")===0?5:4)+t[1].length+l;t[2]=t[2].substring(0,l),t[0]=t[0].substring(0,u).trim(),t[3]=""}}let a=t[2],i="";if(this.options.pedantic){let l=this.rules.other.pedanticHrefTitle.exec(a);l&&(a=l[1],i=l[3])}else i=t[3]?t[3].slice(1,-1):"";return a=a.trim(),this.rules.other.startAngleBracket.test(a)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(n)?a=a.slice(1):a=a.slice(1,-1)),_T(t,{href:a&&a.replace(this.rules.inline.anyPunctuation,"$1"),title:i&&i.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer,this.rules)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let a=(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," "),i=t[a.toLowerCase()];if(!i){let l=n[0].charAt(0);return{type:"text",raw:l,text:l}}return _T(n,i,n[0],this.lexer,this.rules)}}emStrong(e,t,n=""){let a=this.rules.inline.emStrongLDelim.exec(e);if(!(!a||a[3]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!(a[1]||a[2])||!n||this.rules.inline.punctuation.exec(n))){let i=[...a[0]].length-1,l,u,f=i,h=0,g=a[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(g.lastIndex=0,t=t.slice(-1*e.length+i);(a=g.exec(t))!=null;){if(l=a[1]||a[2]||a[3]||a[4]||a[5]||a[6],!l)continue;if(u=[...l].length,a[3]||a[4]){f+=u;continue}else if((a[5]||a[6])&&i%3&&!((i+u)%3)){h+=u;continue}if(f-=u,f>0)continue;u=Math.min(u,u+f+h);let x=[...a[0]][0].length,y=e.slice(0,i+a.index+x+u);if(Math.min(i,u)%2){let b=y.slice(1,-1);return{type:"em",raw:y,text:b,tokens:this.lexer.inlineTokens(b)}}let k=y.slice(2,-2);return{type:"strong",raw:y,text:k,tokens:this.lexer.inlineTokens(k)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let n=t[2].replace(this.rules.other.newLineCharGlobal," "),a=this.rules.other.nonSpaceChar.test(n),i=this.rules.other.startingSpaceChar.test(n)&&this.rules.other.endingSpaceChar.test(n);return a&&i&&(n=n.substring(1,n.length-1)),{type:"codespan",raw:t[0],text:n}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){let t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let n,a;return t[2]==="@"?(n=t[1],a="mailto:"+n):(n=t[1],a=n),{type:"link",raw:t[0],text:n,href:a,tokens:[{type:"text",raw:n,text:n}]}}}url(e){var n,a;let t;if(t=this.rules.inline.url.exec(e)){let i,l;if(t[2]==="@")i=t[0],l="mailto:"+i;else{let u;do u=t[0],t[0]=(a=(n=this.rules.inline._backpedal.exec(t[0]))==null?void 0:n[0])!=null?a:"";while(u!==t[0]);i=t[0],t[1]==="www."?l="http://"+t[0]:l=t[0]}return{type:"link",raw:t[0],text:i,href:l,tokens:[{type:"text",raw:i,text:i}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let n=this.lexer.state.inRawBlock;return{type:"text",raw:t[0],text:t[0],escaped:n}}}},vs=class iw{constructor(t){Ge(this,"tokens");Ge(this,"options");Ge(this,"state");Ge(this,"inlineQueue");Ge(this,"tokenizer");this.tokens=[],this.tokens.links=Object.create(null),this.options=t||Sd,this.options.tokenizer=this.options.tokenizer||new $0,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let n={other:bo,block:V0.normal,inline:nm.normal};this.options.pedantic?(n.block=V0.pedantic,n.inline=nm.pedantic):this.options.gfm&&(n.block=V0.gfm,this.options.breaks?n.inline=nm.breaks:n.inline=nm.gfm),this.tokenizer.rules=n}static get rules(){return{block:V0,inline:nm}}static lex(t,n){return new iw(n).lex(t)}static lexInline(t,n){return new iw(n).inlineTokens(t)}lex(t){t=t.replace(bo.carriageReturn,`
396
+ `),this.blockTokens(t,this.tokens);for(let n=0;n<this.inlineQueue.length;n++){let a=this.inlineQueue[n];this.inlineTokens(a.src,a.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,n=[],a=!1){var i,l,u;for(this.options.pedantic&&(t=t.replace(bo.tabCharGlobal," ").replace(bo.spaceLine,""));t;){let f;if((l=(i=this.options.extensions)==null?void 0:i.block)!=null&&l.some(g=>(f=g.call({lexer:this},t,n))?(t=t.substring(f.raw.length),n.push(f),!0):!1))continue;if(f=this.tokenizer.space(t)){t=t.substring(f.raw.length);let g=n.at(-1);f.raw.length===1&&g!==void 0?g.raw+=`
397
+ `:n.push(f);continue}if(f=this.tokenizer.code(t)){t=t.substring(f.raw.length);let g=n.at(-1);(g==null?void 0:g.type)==="paragraph"||(g==null?void 0:g.type)==="text"?(g.raw+=(g.raw.endsWith(`
398
+ `)?"":`
399
+ `)+f.raw,g.text+=`
400
+ `+f.text,this.inlineQueue.at(-1).src=g.text):n.push(f);continue}if(f=this.tokenizer.fences(t)){t=t.substring(f.raw.length),n.push(f);continue}if(f=this.tokenizer.heading(t)){t=t.substring(f.raw.length),n.push(f);continue}if(f=this.tokenizer.hr(t)){t=t.substring(f.raw.length),n.push(f);continue}if(f=this.tokenizer.blockquote(t)){t=t.substring(f.raw.length),n.push(f);continue}if(f=this.tokenizer.list(t)){t=t.substring(f.raw.length),n.push(f);continue}if(f=this.tokenizer.html(t)){t=t.substring(f.raw.length),n.push(f);continue}if(f=this.tokenizer.def(t)){t=t.substring(f.raw.length);let g=n.at(-1);(g==null?void 0:g.type)==="paragraph"||(g==null?void 0:g.type)==="text"?(g.raw+=(g.raw.endsWith(`
401
+ `)?"":`
402
+ `)+f.raw,g.text+=`
403
+ `+f.raw,this.inlineQueue.at(-1).src=g.text):this.tokens.links[f.tag]||(this.tokens.links[f.tag]={href:f.href,title:f.title},n.push(f));continue}if(f=this.tokenizer.table(t)){t=t.substring(f.raw.length),n.push(f);continue}if(f=this.tokenizer.lheading(t)){t=t.substring(f.raw.length),n.push(f);continue}let h=t;if((u=this.options.extensions)!=null&&u.startBlock){let g=1/0,x=t.slice(1),y;this.options.extensions.startBlock.forEach(k=>{y=k.call({lexer:this},x),typeof y=="number"&&y>=0&&(g=Math.min(g,y))}),g<1/0&&g>=0&&(h=t.substring(0,g+1))}if(this.state.top&&(f=this.tokenizer.paragraph(h))){let g=n.at(-1);a&&(g==null?void 0:g.type)==="paragraph"?(g.raw+=(g.raw.endsWith(`
404
+ `)?"":`
405
+ `)+f.raw,g.text+=`
406
+ `+f.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=g.text):n.push(f),a=h.length!==t.length,t=t.substring(f.raw.length);continue}if(f=this.tokenizer.text(t)){t=t.substring(f.raw.length);let g=n.at(-1);(g==null?void 0:g.type)==="text"?(g.raw+=(g.raw.endsWith(`
407
+ `)?"":`
408
+ `)+f.raw,g.text+=`
409
+ `+f.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=g.text):n.push(f);continue}if(t){let g="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(g);break}else throw new Error(g)}}return this.state.top=!0,n}inline(t,n=[]){return this.inlineQueue.push({src:t,tokens:n}),n}inlineTokens(t,n=[]){var h,g,x,y,k,b;let a=t,i=null;if(this.tokens.links){let _=Object.keys(this.tokens.links);if(_.length>0)for(;(i=this.tokenizer.rules.inline.reflinkSearch.exec(a))!=null;)_.includes(i[0].slice(i[0].lastIndexOf("[")+1,-1))&&(a=a.slice(0,i.index)+"["+"a".repeat(i[0].length-2)+"]"+a.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(i=this.tokenizer.rules.inline.anyPunctuation.exec(a))!=null;)a=a.slice(0,i.index)+"++"+a.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let l;for(;(i=this.tokenizer.rules.inline.blockSkip.exec(a))!=null;)l=i[2]?i[2].length:0,a=a.slice(0,i.index+l)+"["+"a".repeat(i[0].length-l-2)+"]"+a.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);a=(x=(g=(h=this.options.hooks)==null?void 0:h.emStrongMask)==null?void 0:g.call({lexer:this},a))!=null?x:a;let u=!1,f="";for(;t;){u||(f=""),u=!1;let _;if((k=(y=this.options.extensions)==null?void 0:y.inline)!=null&&k.some(M=>(_=M.call({lexer:this},t,n))?(t=t.substring(_.raw.length),n.push(_),!0):!1))continue;if(_=this.tokenizer.escape(t)){t=t.substring(_.raw.length),n.push(_);continue}if(_=this.tokenizer.tag(t)){t=t.substring(_.raw.length),n.push(_);continue}if(_=this.tokenizer.link(t)){t=t.substring(_.raw.length),n.push(_);continue}if(_=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(_.raw.length);let M=n.at(-1);_.type==="text"&&(M==null?void 0:M.type)==="text"?(M.raw+=_.raw,M.text+=_.text):n.push(_);continue}if(_=this.tokenizer.emStrong(t,a,f)){t=t.substring(_.raw.length),n.push(_);continue}if(_=this.tokenizer.codespan(t)){t=t.substring(_.raw.length),n.push(_);continue}if(_=this.tokenizer.br(t)){t=t.substring(_.raw.length),n.push(_);continue}if(_=this.tokenizer.del(t)){t=t.substring(_.raw.length),n.push(_);continue}if(_=this.tokenizer.autolink(t)){t=t.substring(_.raw.length),n.push(_);continue}if(!this.state.inLink&&(_=this.tokenizer.url(t))){t=t.substring(_.raw.length),n.push(_);continue}let R=t;if((b=this.options.extensions)!=null&&b.startInline){let M=1/0,L=t.slice(1),P;this.options.extensions.startInline.forEach(F=>{P=F.call({lexer:this},L),typeof P=="number"&&P>=0&&(M=Math.min(M,P))}),M<1/0&&M>=0&&(R=t.substring(0,M+1))}if(_=this.tokenizer.inlineText(R)){t=t.substring(_.raw.length),_.raw.slice(-1)!=="_"&&(f=_.raw.slice(-1)),u=!0;let M=n.at(-1);(M==null?void 0:M.type)==="text"?(M.raw+=_.raw,M.text+=_.text):n.push(_);continue}if(t){let M="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(M);break}else throw new Error(M)}}return n}},Z0=class{constructor(e){Ge(this,"options");Ge(this,"parser");this.options=e||Sd}space(e){return""}code({text:e,lang:t,escaped:n}){var l;let a=(l=(t||"").match(bo.notSpaceStart))==null?void 0:l[0],i=e.replace(bo.endingNewline,"")+`
410
+ `;return a?'<pre><code class="language-'+Ql(a)+'">'+(n?i:Ql(i,!0))+`</code></pre>
411
+ `:"<pre><code>"+(n?i:Ql(i,!0))+`</code></pre>
412
+ `}blockquote({tokens:e}){return`<blockquote>
413
+ ${this.parser.parse(e)}</blockquote>
414
+ `}html({text:e}){return e}def(e){return""}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>
415
+ `}hr(e){return`<hr>
416
+ `}list(e){let t=e.ordered,n=e.start,a="";for(let u=0;u<e.items.length;u++){let f=e.items[u];a+=this.listitem(f)}let i=t?"ol":"ul",l=t&&n!==1?' start="'+n+'"':"";return"<"+i+l+`>
417
+ `+a+"</"+i+`>
418
+ `}listitem(e){return`<li>${this.parser.parse(e.tokens)}</li>
419
+ `}checkbox({checked:e}){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"> '}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>
420
+ `}table(e){let t="",n="";for(let i=0;i<e.header.length;i++)n+=this.tablecell(e.header[i]);t+=this.tablerow({text:n});let a="";for(let i=0;i<e.rows.length;i++){let l=e.rows[i];n="";for(let u=0;u<l.length;u++)n+=this.tablecell(l[u]);a+=this.tablerow({text:n})}return a&&(a=`<tbody>${a}</tbody>`),`<table>
421
+ <thead>
422
+ `+t+`</thead>
423
+ `+a+`</table>
424
+ `}tablerow({text:e}){return`<tr>
425
+ ${e}</tr>
426
+ `}tablecell(e){let t=this.parser.parseInline(e.tokens),n=e.header?"th":"td";return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+`</${n}>
427
+ `}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${Ql(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:n}){let a=this.parser.parseInline(n),i=kT(e);if(i===null)return a;e=i;let l='<a href="'+e+'"';return t&&(l+=' title="'+Ql(t)+'"'),l+=">"+a+"</a>",l}image({href:e,title:t,text:n,tokens:a}){a&&(n=this.parser.parseInline(a,this.parser.textRenderer));let i=kT(e);if(i===null)return Ql(n);e=i;let l=`<img src="${e}" alt="${n}"`;return t&&(l+=` title="${Ql(t)}"`),l+=">",l}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:Ql(e.text)}},g5=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}checkbox({raw:e}){return e}},ys=class sw{constructor(t){Ge(this,"options");Ge(this,"renderer");Ge(this,"textRenderer");this.options=t||Sd,this.options.renderer=this.options.renderer||new Z0,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new g5}static parse(t,n){return new sw(n).parse(t)}static parseInline(t,n){return new sw(n).parseInline(t)}parse(t){var a,i;let n="";for(let l=0;l<t.length;l++){let u=t[l];if((i=(a=this.options.extensions)==null?void 0:a.renderers)!=null&&i[u.type]){let h=u,g=this.options.extensions.renderers[h.type].call({parser:this},h);if(g!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(h.type)){n+=g||"";continue}}let f=u;switch(f.type){case"space":{n+=this.renderer.space(f);break}case"hr":{n+=this.renderer.hr(f);break}case"heading":{n+=this.renderer.heading(f);break}case"code":{n+=this.renderer.code(f);break}case"table":{n+=this.renderer.table(f);break}case"blockquote":{n+=this.renderer.blockquote(f);break}case"list":{n+=this.renderer.list(f);break}case"checkbox":{n+=this.renderer.checkbox(f);break}case"html":{n+=this.renderer.html(f);break}case"def":{n+=this.renderer.def(f);break}case"paragraph":{n+=this.renderer.paragraph(f);break}case"text":{n+=this.renderer.text(f);break}default:{let h='Token with "'+f.type+'" type was not found.';if(this.options.silent)return console.error(h),"";throw new Error(h)}}}return n}parseInline(t,n=this.renderer){var i,l;let a="";for(let u=0;u<t.length;u++){let f=t[u];if((l=(i=this.options.extensions)==null?void 0:i.renderers)!=null&&l[f.type]){let g=this.options.extensions.renderers[f.type].call({parser:this},f);if(g!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(f.type)){a+=g||"";continue}}let h=f;switch(h.type){case"escape":{a+=n.text(h);break}case"html":{a+=n.html(h);break}case"link":{a+=n.link(h);break}case"image":{a+=n.image(h);break}case"checkbox":{a+=n.checkbox(h);break}case"strong":{a+=n.strong(h);break}case"em":{a+=n.em(h);break}case"codespan":{a+=n.codespan(h);break}case"br":{a+=n.br(h);break}case"del":{a+=n.del(h);break}case"text":{a+=n.text(h);break}default:{let g='Token with "'+h.type+'" type was not found.';if(this.options.silent)return console.error(g),"";throw new Error(g)}}}return a}},am=(N4=class{constructor(e){Ge(this,"options");Ge(this,"block");this.options=e||Sd}preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(){return this.block?vs.lex:vs.lexInline}provideParser(){return this.block?ys.parse:ys.parseInline}},Ge(N4,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens","emStrongMask"])),Ge(N4,"passThroughHooksRespectAsync",new Set(["preprocess","postprocess","processAllTokens"])),N4),WJ=class{constructor(...e){Ge(this,"defaults",s5());Ge(this,"options",this.setOptions);Ge(this,"parse",this.parseMarkdown(!0));Ge(this,"parseInline",this.parseMarkdown(!1));Ge(this,"Parser",ys);Ge(this,"Renderer",Z0);Ge(this,"TextRenderer",g5);Ge(this,"Lexer",vs);Ge(this,"Tokenizer",$0);Ge(this,"Hooks",am);this.use(...e)}walkTokens(e,t){var a,i;let n=[];for(let l of e)switch(n=n.concat(t.call(this,l)),l.type){case"table":{let u=l;for(let f of u.header)n=n.concat(this.walkTokens(f.tokens,t));for(let f of u.rows)for(let h of f)n=n.concat(this.walkTokens(h.tokens,t));break}case"list":{let u=l;n=n.concat(this.walkTokens(u.items,t));break}default:{let u=l;(i=(a=this.defaults.extensions)==null?void 0:a.childTokens)!=null&&i[u.type]?this.defaults.extensions.childTokens[u.type].forEach(f=>{let h=u[f].flat(1/0);n=n.concat(this.walkTokens(h,t))}):u.tokens&&(n=n.concat(this.walkTokens(u.tokens,t)))}}return n}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(n=>{let a={...n};if(a.async=this.defaults.async||a.async||!1,n.extensions&&(n.extensions.forEach(i=>{if(!i.name)throw new Error("extension name required");if("renderer"in i){let l=t.renderers[i.name];l?t.renderers[i.name]=function(...u){let f=i.renderer.apply(this,u);return f===!1&&(f=l.apply(this,u)),f}:t.renderers[i.name]=i.renderer}if("tokenizer"in i){if(!i.level||i.level!=="block"&&i.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let l=t[i.level];l?l.unshift(i.tokenizer):t[i.level]=[i.tokenizer],i.start&&(i.level==="block"?t.startBlock?t.startBlock.push(i.start):t.startBlock=[i.start]:i.level==="inline"&&(t.startInline?t.startInline.push(i.start):t.startInline=[i.start]))}"childTokens"in i&&i.childTokens&&(t.childTokens[i.name]=i.childTokens)}),a.extensions=t),n.renderer){let i=this.defaults.renderer||new Z0(this.defaults);for(let l in n.renderer){if(!(l in i))throw new Error(`renderer '${l}' does not exist`);if(["options","parser"].includes(l))continue;let u=l,f=n.renderer[u],h=i[u];i[u]=(...g)=>{let x=f.apply(i,g);return x===!1&&(x=h.apply(i,g)),x||""}}a.renderer=i}if(n.tokenizer){let i=this.defaults.tokenizer||new $0(this.defaults);for(let l in n.tokenizer){if(!(l in i))throw new Error(`tokenizer '${l}' does not exist`);if(["options","rules","lexer"].includes(l))continue;let u=l,f=n.tokenizer[u],h=i[u];i[u]=(...g)=>{let x=f.apply(i,g);return x===!1&&(x=h.apply(i,g)),x}}a.tokenizer=i}if(n.hooks){let i=this.defaults.hooks||new am;for(let l in n.hooks){if(!(l in i))throw new Error(`hook '${l}' does not exist`);if(["options","block"].includes(l))continue;let u=l,f=n.hooks[u],h=i[u];am.passThroughHooks.has(l)?i[u]=g=>{if(this.defaults.async&&am.passThroughHooksRespectAsync.has(l))return(async()=>{let y=await f.call(i,g);return h.call(i,y)})();let x=f.call(i,g);return h.call(i,x)}:i[u]=(...g)=>{if(this.defaults.async)return(async()=>{let y=await f.apply(i,g);return y===!1&&(y=await h.apply(i,g)),y})();let x=f.apply(i,g);return x===!1&&(x=h.apply(i,g)),x}}a.hooks=i}if(n.walkTokens){let i=this.defaults.walkTokens,l=n.walkTokens;a.walkTokens=function(u){let f=[];return f.push(l.call(this,u)),i&&(f=f.concat(i.call(this,u))),f}}this.defaults={...this.defaults,...a}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return vs.lex(e,t!=null?t:this.defaults)}parser(e,t){return ys.parse(e,t!=null?t:this.defaults)}parseMarkdown(e){return(t,n)=>{let a={...n},i={...this.defaults,...a},l=this.onError(!!i.silent,!!i.async);if(this.defaults.async===!0&&a.async===!1)return l(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof t>"u"||t===null)return l(new Error("marked(): input parameter is undefined or null"));if(typeof t!="string")return l(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected"));if(i.hooks&&(i.hooks.options=i,i.hooks.block=e),i.async)return(async()=>{let u=i.hooks?await i.hooks.preprocess(t):t,f=await(i.hooks?await i.hooks.provideLexer():e?vs.lex:vs.lexInline)(u,i),h=i.hooks?await i.hooks.processAllTokens(f):f;i.walkTokens&&await Promise.all(this.walkTokens(h,i.walkTokens));let g=await(i.hooks?await i.hooks.provideParser():e?ys.parse:ys.parseInline)(h,i);return i.hooks?await i.hooks.postprocess(g):g})().catch(l);try{i.hooks&&(t=i.hooks.preprocess(t));let u=(i.hooks?i.hooks.provideLexer():e?vs.lex:vs.lexInline)(t,i);i.hooks&&(u=i.hooks.processAllTokens(u)),i.walkTokens&&this.walkTokens(u,i.walkTokens);let f=(i.hooks?i.hooks.provideParser():e?ys.parse:ys.parseInline)(u,i);return i.hooks&&(f=i.hooks.postprocess(f)),f}catch(u){return l(u)}}}onError(e,t){return n=>{if(n.message+=`
428
+ Please report this to https://github.com/markedjs/marked.`,e){let a="<p>An error occurred:</p><pre>"+Ql(n.message+"",!0)+"</pre>";return t?Promise.resolve(a):a}if(t)return Promise.reject(n);throw n}}},kd=new WJ;function Kn(e,t){return kd.parse(e,t)}Kn.options=Kn.setOptions=function(e){return kd.setOptions(e),Kn.defaults=kd.defaults,cT(Kn.defaults),Kn},Kn.getDefaults=s5,Kn.defaults=Sd,Kn.use=function(...e){return kd.use(...e),Kn.defaults=kd.defaults,cT(Kn.defaults),Kn},Kn.walkTokens=function(e,t){return kd.walkTokens(e,t)},Kn.parseInline=kd.parseInline,Kn.Parser=ys,Kn.parser=ys.parse,Kn.Renderer=Z0,Kn.TextRenderer=g5,Kn.Lexer=vs,Kn.lexer=vs.lex,Kn.Tokenizer=$0,Kn.Hooks=am,Kn.parse=Kn,Kn.options,Kn.setOptions,Kn.use,Kn.walkTokens,Kn.parseInline,ys.parse,vs.lex;function Zpe(){}function Wpe(){}function qJ(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const GJ=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,YJ=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,JJ={};function TT(e,t){return(JJ.jsx?YJ:GJ).test(e)}const XJ=/[ \t\n\f\r]/g;function KJ(e){return typeof e=="object"?e.type==="text"?RT(e.value):!1:RT(e)}function RT(e){return e.replace(XJ,"")===""}class om{constructor(t,n,a){this.normal=n,this.property=t,a&&(this.space=a)}}om.prototype.normal={},om.prototype.property={},om.prototype.space=void 0;function AT(e,t){const n={},a={};for(const i of e)Object.assign(n,i.property),Object.assign(a,i.normal);return new om(n,a,t)}function v5(e){return e.toLowerCase()}class Vo{constructor(t,n){this.attribute=n,this.property=t}}Vo.prototype.attribute="",Vo.prototype.booleanish=!1,Vo.prototype.boolean=!1,Vo.prototype.commaOrSpaceSeparated=!1,Vo.prototype.commaSeparated=!1,Vo.prototype.defined=!1,Vo.prototype.mustUseProperty=!1,Vo.prototype.number=!1,Vo.prototype.overloadedBoolean=!1,Vo.prototype.property="",Vo.prototype.spaceSeparated=!1,Vo.prototype.space=void 0;let QJ=0;const sn=Ed(),aa=Ed(),y5=Ed(),Ve=Ed(),fr=Ed(),kp=Ed(),mi=Ed();function Ed(){return 2**++QJ}const x5=Object.freeze(Object.defineProperty({__proto__:null,boolean:sn,booleanish:aa,commaOrSpaceSeparated:mi,commaSeparated:kp,number:Ve,overloadedBoolean:y5,spaceSeparated:fr},Symbol.toStringTag,{value:"Module"})),w5=Object.keys(x5);class b5 extends Vo{constructor(t,n,a,i){let l=-1;if(super(t,n),NT(this,"space",i),typeof a=="number")for(;++l<w5.length;){const u=w5[l];NT(this,w5[l],(a&x5[u])===x5[u])}}}b5.prototype.defined=!0;function NT(e,t,n){n&&(e[t]=n)}function Ep(e){const t={},n={};for(const[a,i]of Object.entries(e.properties)){const l=new b5(a,e.transform(e.attributes||{},a),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(a)&&(l.mustUseProperty=!0),t[a]=l,n[v5(a)]=a,n[v5(l.attribute)]=a}return new om(t,n,e.space)}const MT=Ep({properties:{ariaActiveDescendant:null,ariaAtomic:aa,ariaAutoComplete:null,ariaBusy:aa,ariaChecked:aa,ariaColCount:Ve,ariaColIndex:Ve,ariaColSpan:Ve,ariaControls:fr,ariaCurrent:null,ariaDescribedBy:fr,ariaDetails:null,ariaDisabled:aa,ariaDropEffect:fr,ariaErrorMessage:null,ariaExpanded:aa,ariaFlowTo:fr,ariaGrabbed:aa,ariaHasPopup:null,ariaHidden:aa,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:fr,ariaLevel:Ve,ariaLive:null,ariaModal:aa,ariaMultiLine:aa,ariaMultiSelectable:aa,ariaOrientation:null,ariaOwns:fr,ariaPlaceholder:null,ariaPosInSet:Ve,ariaPressed:aa,ariaReadOnly:aa,ariaRelevant:null,ariaRequired:aa,ariaRoleDescription:fr,ariaRowCount:Ve,ariaRowIndex:Ve,ariaRowSpan:Ve,ariaSelected:aa,ariaSetSize:Ve,ariaSort:null,ariaValueMax:Ve,ariaValueMin:Ve,ariaValueNow:Ve,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function OT(e,t){return t in e?e[t]:t}function LT(e,t){return OT(e,t.toLowerCase())}const eX=Ep({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:kp,acceptCharset:fr,accessKey:fr,action:null,allow:null,allowFullScreen:sn,allowPaymentRequest:sn,allowUserMedia:sn,alt:null,as:null,async:sn,autoCapitalize:null,autoComplete:fr,autoFocus:sn,autoPlay:sn,blocking:fr,capture:null,charSet:null,checked:sn,cite:null,className:fr,cols:Ve,colSpan:null,content:null,contentEditable:aa,controls:sn,controlsList:fr,coords:Ve|kp,crossOrigin:null,data:null,dateTime:null,decoding:null,default:sn,defer:sn,dir:null,dirName:null,disabled:sn,download:y5,draggable:aa,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:sn,formTarget:null,headers:fr,height:Ve,hidden:y5,high:Ve,href:null,hrefLang:null,htmlFor:fr,httpEquiv:fr,id:null,imageSizes:null,imageSrcSet:null,inert:sn,inputMode:null,integrity:null,is:null,isMap:sn,itemId:null,itemProp:fr,itemRef:fr,itemScope:sn,itemType:fr,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:sn,low:Ve,manifest:null,max:null,maxLength:Ve,media:null,method:null,min:null,minLength:Ve,multiple:sn,muted:sn,name:null,nonce:null,noModule:sn,noValidate:sn,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:sn,optimum:Ve,pattern:null,ping:fr,placeholder:null,playsInline:sn,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:sn,referrerPolicy:null,rel:fr,required:sn,reversed:sn,rows:Ve,rowSpan:Ve,sandbox:fr,scope:null,scoped:sn,seamless:sn,selected:sn,shadowRootClonable:sn,shadowRootDelegatesFocus:sn,shadowRootMode:null,shape:null,size:Ve,sizes:null,slot:null,span:Ve,spellCheck:aa,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Ve,step:null,style:null,tabIndex:Ve,target:null,title:null,translate:null,type:null,typeMustMatch:sn,useMap:null,value:aa,width:Ve,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:fr,axis:null,background:null,bgColor:null,border:Ve,borderColor:null,bottomMargin:Ve,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:sn,declare:sn,event:null,face:null,frame:null,frameBorder:null,hSpace:Ve,leftMargin:Ve,link:null,longDesc:null,lowSrc:null,marginHeight:Ve,marginWidth:Ve,noResize:sn,noHref:sn,noShade:sn,noWrap:sn,object:null,profile:null,prompt:null,rev:null,rightMargin:Ve,rules:null,scheme:null,scrolling:aa,standby:null,summary:null,text:null,topMargin:Ve,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Ve,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:sn,disableRemotePlayback:sn,prefix:null,property:null,results:Ve,security:null,unselectable:null},space:"html",transform:LT}),tX=Ep({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:mi,accentHeight:Ve,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Ve,amplitude:Ve,arabicForm:null,ascent:Ve,attributeName:null,attributeType:null,azimuth:Ve,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Ve,by:null,calcMode:null,capHeight:Ve,className:fr,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:Ve,diffuseConstant:Ve,direction:null,display:null,dur:null,divisor:Ve,dominantBaseline:null,download:sn,dx:null,dy:null,edgeMode:null,editable:null,elevation:Ve,enableBackground:null,end:null,event:null,exponent:Ve,externalResourcesRequired:null,fill:null,fillOpacity:Ve,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:kp,g2:kp,glyphName:kp,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Ve,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Ve,horizOriginX:Ve,horizOriginY:Ve,id:null,ideographic:Ve,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Ve,k:Ve,k1:Ve,k2:Ve,k3:Ve,k4:Ve,kernelMatrix:mi,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Ve,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:Ve,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:Ve,overlineThickness:Ve,paintOrder:null,panose1:null,path:null,pathLength:Ve,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:fr,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Ve,pointsAtY:Ve,pointsAtZ:Ve,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:mi,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:mi,rev:mi,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:mi,requiredFeatures:mi,requiredFonts:mi,requiredFormats:mi,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:Ve,specularExponent:Ve,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Ve,strikethroughThickness:Ve,string:null,stroke:null,strokeDashArray:mi,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Ve,strokeOpacity:Ve,strokeWidth:null,style:null,surfaceScale:Ve,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:mi,tabIndex:Ve,tableValues:null,target:null,targetX:Ve,targetY:Ve,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:mi,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Ve,underlineThickness:Ve,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Ve,values:null,vAlphabetic:Ve,vMathematical:Ve,vectorEffect:null,vHanging:Ve,vIdeographic:Ve,version:null,vertAdvY:Ve,vertOriginX:Ve,vertOriginY:Ve,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Ve,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:OT}),IT=Ep({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),DT=Ep({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:LT}),jT=Ep({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),nX={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},rX=/[A-Z]/g,PT=/-[a-z]/g,aX=/^data[-\w.:]+$/i;function oX(e,t){const n=v5(t);let a=t,i=Vo;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&aX.test(t)){if(t.charAt(4)==="-"){const l=t.slice(5).replace(PT,sX);a="data"+l.charAt(0).toUpperCase()+l.slice(1)}else{const l=t.slice(4);if(!PT.test(l)){let u=l.replace(rX,iX);u.charAt(0)!=="-"&&(u="-"+u),t="data"+u}}i=b5}return new i(a,t)}function iX(e){return"-"+e.toLowerCase()}function sX(e){return e.charAt(1).toUpperCase()}const lX=AT([MT,eX,IT,DT,jT],"html"),C5=AT([MT,tX,IT,DT,jT],"svg");function uX(e){return e.join(" ").trim()}var S5={},FT=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,cX=/\n/g,dX=/^\s*/,fX=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,pX=/^:\s*/,hX=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,mX=/^[;\s]*/,gX=/^\s+|\s+$/g,vX=`
429
+ `,zT="/",UT="*",_d="",yX="comment",xX="declaration";function wX(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,a=1;function i(_){var R=_.match(cX);R&&(n+=R.length);var M=_.lastIndexOf(vX);a=~M?_.length-M:a+_.length}function l(){var _={line:n,column:a};return function(R){return R.position=new u(_),g(),R}}function u(_){this.start=_,this.end={line:n,column:a},this.source=t.source}u.prototype.content=e;function f(_){var R=new Error(t.source+":"+n+":"+a+": "+_);if(R.reason=_,R.filename=t.source,R.line=n,R.column=a,R.source=e,!t.silent)throw R}function h(_){var R=_.exec(e);if(R){var M=R[0];return i(M),e=e.slice(M.length),R}}function g(){h(dX)}function x(_){var R;for(_=_||[];R=y();)R!==!1&&_.push(R);return _}function y(){var _=l();if(!(zT!=e.charAt(0)||UT!=e.charAt(1))){for(var R=2;_d!=e.charAt(R)&&(UT!=e.charAt(R)||zT!=e.charAt(R+1));)++R;if(R+=2,_d===e.charAt(R-1))return f("End of comment missing");var M=e.slice(2,R-2);return a+=2,i(M),e=e.slice(R),a+=2,_({type:yX,comment:M})}}function k(){var _=l(),R=h(fX);if(R){if(y(),!h(pX))return f("property missing ':'");var M=h(hX),L=_({type:xX,property:BT(R[0].replace(FT,_d)),value:M?BT(M[0].replace(FT,_d)):_d});return h(mX),L}}function b(){var _=[];x(_);for(var R;R=k();)R!==!1&&(_.push(R),x(_));return _}return g(),b()}function BT(e){return e?e.replace(gX,_d):_d}var bX=wX,CX=Nv&&Nv.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(S5,"__esModule",{value:!0}),S5.default=kX;const SX=CX(bX);function kX(e,t){let n=null;if(!e||typeof e!="string")return n;const a=(0,SX.default)(e),i=typeof t=="function";return a.forEach(l=>{if(l.type!=="declaration")return;const{property:u,value:f}=l;i?t(u,f,l):f&&(n=n||{},n[u]=f)}),n}var W0={};Object.defineProperty(W0,"__esModule",{value:!0}),W0.camelCase=void 0;var EX=/^--[a-zA-Z0-9_-]+$/,_X=/-([a-z])/g,TX=/^[^-]+$/,RX=/^-(webkit|moz|ms|o|khtml)-/,AX=/^-(ms)-/,NX=function(e){return!e||TX.test(e)||EX.test(e)},MX=function(e,t){return t.toUpperCase()},HT=function(e,t){return"".concat(t,"-")},OX=function(e,t){return t===void 0&&(t={}),NX(e)?e:(e=e.toLowerCase(),t.reactCompat?e=e.replace(AX,HT):e=e.replace(RX,HT),e.replace(_X,MX))};W0.camelCase=OX;var LX=Nv&&Nv.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},IX=LX(S5),DX=W0;function k5(e,t){var n={};return!e||typeof e!="string"||(0,IX.default)(e,function(a,i){a&&i&&(n[(0,DX.camelCase)(a,t)]=i)}),n}k5.default=k5;var jX=k5;const PX=Wu(jX),VT=$T("end"),E5=$T("start");function $T(e){return t;function t(n){const a=n&&n.position&&n.position[e]||{};if(typeof a.line=="number"&&a.line>0&&typeof a.column=="number"&&a.column>0)return{line:a.line,column:a.column,offset:typeof a.offset=="number"&&a.offset>-1?a.offset:void 0}}}function FX(e){const t=E5(e),n=VT(e);if(t&&n)return{start:t,end:n}}function im(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?ZT(e.position):"start"in e||"end"in e?ZT(e):"line"in e||"column"in e?_5(e):""}function _5(e){return WT(e&&e.line)+":"+WT(e&&e.column)}function ZT(e){return _5(e&&e.start)+"-"+_5(e&&e.end)}function WT(e){return e&&typeof e=="number"?e:1}class Qa extends Error{constructor(t,n,a){super(),typeof n=="string"&&(a=n,n=void 0);let i="",l={},u=!1;if(n&&("line"in n&&"column"in n?l={place:n}:"start"in n&&"end"in n?l={place:n}:"type"in n?l={ancestors:[n],place:n.position}:l={...n}),typeof t=="string"?i=t:!l.cause&&t&&(u=!0,i=t.message,l.cause=t),!l.ruleId&&!l.source&&typeof a=="string"){const h=a.indexOf(":");h===-1?l.ruleId=a:(l.source=a.slice(0,h),l.ruleId=a.slice(h+1))}if(!l.place&&l.ancestors&&l.ancestors){const h=l.ancestors[l.ancestors.length-1];h&&(l.place=h.position)}const f=l.place&&"start"in l.place?l.place.start:l.place;this.ancestors=l.ancestors||void 0,this.cause=l.cause||void 0,this.column=f?f.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=f?f.line:void 0,this.name=im(l.place)||"1:1",this.place=l.place||void 0,this.reason=this.message,this.ruleId=l.ruleId||void 0,this.source=l.source||void 0,this.stack=u&&l.cause&&typeof l.cause.stack=="string"?l.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Qa.prototype.file="",Qa.prototype.name="",Qa.prototype.reason="",Qa.prototype.message="",Qa.prototype.stack="",Qa.prototype.column=void 0,Qa.prototype.line=void 0,Qa.prototype.ancestors=void 0,Qa.prototype.cause=void 0,Qa.prototype.fatal=void 0,Qa.prototype.place=void 0,Qa.prototype.ruleId=void 0,Qa.prototype.source=void 0;const T5={}.hasOwnProperty,zX=new Map,UX=/[A-Z]/g,BX=new Set(["table","tbody","thead","tfoot","tr"]),HX=new Set(["td","th"]),qT="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function VX(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let a;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");a=XX(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");a=JX(n,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:a,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?C5:lX,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},l=GT(i,e,void 0);return l&&typeof l!="string"?l:i.create(e,i.Fragment,{children:l||void 0},void 0)}function GT(e,t,n){if(t.type==="element")return $X(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return ZX(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return qX(e,t,n);if(t.type==="mdxjsEsm")return WX(e,t);if(t.type==="root")return GX(e,t,n);if(t.type==="text")return YX(e,t)}function $X(e,t,n){const a=e.schema;let i=a;t.tagName.toLowerCase()==="svg"&&a.space==="html"&&(i=C5,e.schema=i),e.ancestors.push(t);const l=JT(e,t.tagName,!1),u=KX(e,t);let f=A5(e,t);return BX.has(t.tagName)&&(f=f.filter(function(h){return typeof h=="string"?!KJ(h):!0})),YT(e,u,l,t),R5(u,f),e.ancestors.pop(),e.schema=a,e.create(t,l,u,n)}function ZX(e,t){if(t.data&&t.data.estree&&e.evaluater){const a=t.data.estree.body[0];return a.type,e.evaluater.evaluateExpression(a.expression)}sm(e,t.position)}function WX(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);sm(e,t.position)}function qX(e,t,n){const a=e.schema;let i=a;t.name==="svg"&&a.space==="html"&&(i=C5,e.schema=i),e.ancestors.push(t);const l=t.name===null?e.Fragment:JT(e,t.name,!0),u=QX(e,t),f=A5(e,t);return YT(e,u,l,t),R5(u,f),e.ancestors.pop(),e.schema=a,e.create(t,l,u,n)}function GX(e,t,n){const a={};return R5(a,A5(e,t)),e.create(t,e.Fragment,a,n)}function YX(e,t){return t.value}function YT(e,t,n,a){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=a)}function R5(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function JX(e,t,n){return a;function a(i,l,u,f){const g=Array.isArray(u.children)?n:t;return f?g(l,u,f):g(l,u)}}function XX(e,t){return n;function n(a,i,l,u){const f=Array.isArray(l.children),h=E5(a);return t(i,l,u,f,{columnNumber:h?h.column-1:void 0,fileName:e,lineNumber:h?h.line:void 0},void 0)}}function KX(e,t){const n={};let a,i;for(i in t.properties)if(i!=="children"&&T5.call(t.properties,i)){const l=eK(e,i,t.properties[i]);if(l){const[u,f]=l;e.tableCellAlignToStyle&&u==="align"&&typeof f=="string"&&HX.has(t.tagName)?a=f:n[u]=f}}if(a){const l=n.style||(n.style={});l[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=a}return n}function QX(e,t){const n={};for(const a of t.attributes)if(a.type==="mdxJsxExpressionAttribute")if(a.data&&a.data.estree&&e.evaluater){const l=a.data.estree.body[0];l.type;const u=l.expression;u.type;const f=u.properties[0];f.type,Object.assign(n,e.evaluater.evaluateExpression(f.argument))}else sm(e,t.position);else{const i=a.name;let l;if(a.value&&typeof a.value=="object")if(a.value.data&&a.value.data.estree&&e.evaluater){const f=a.value.data.estree.body[0];f.type,l=e.evaluater.evaluateExpression(f.expression)}else sm(e,t.position);else l=a.value===null?!0:a.value;n[i]=l}return n}function A5(e,t){const n=[];let a=-1;const i=e.passKeys?new Map:zX;for(;++a<t.children.length;){const l=t.children[a];let u;if(e.passKeys){const h=l.type==="element"?l.tagName:l.type==="mdxJsxFlowElement"||l.type==="mdxJsxTextElement"?l.name:void 0;if(h){const g=i.get(h)||0;u=h+"-"+g,i.set(h,g+1)}}const f=GT(e,l,u);f!==void 0&&n.push(f)}return n}function eK(e,t,n){const a=oX(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=a.commaSeparated?qJ(n):uX(n)),a.property==="style"){let i=typeof n=="object"?n:tK(e,String(n));return e.stylePropertyNameCase==="css"&&(i=nK(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&a.space?nX[a.property]||a.property:a.attribute,n]}}function tK(e,t){try{return PX(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const a=n,i=new Qa("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:a,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw i.file=e.filePath||void 0,i.url=qT+"#cannot-parse-style-attribute",i}}function JT(e,t,n){let a;if(!n)a={type:"Literal",value:t};else if(t.includes(".")){const i=t.split(".");let l=-1,u;for(;++l<i.length;){const f=TT(i[l])?{type:"Identifier",name:i[l]}:{type:"Literal",value:i[l]};u=u?{type:"MemberExpression",object:u,property:f,computed:!!(l&&f.type==="Literal"),optional:!1}:f}a=u}else a=TT(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(a.type==="Literal"){const i=a.value;return T5.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(a);sm(e)}function sm(e,t){const n=new Qa("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=qT+"#cannot-handle-mdx-estrees-without-createevaluater",n}function nK(e){const t={};let n;for(n in e)T5.call(e,n)&&(t[rK(n)]=e[n]);return t}function rK(e){let t=e.replace(UX,aK);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function aK(e){return"-"+e.toLowerCase()}const N5={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},oK={};function iK(e,t){const n=oK,a=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return XT(e,a,i)}function XT(e,t,n){if(sK(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return KT(e.children,t,n)}return Array.isArray(e)?KT(e,t,n):""}function KT(e,t,n){const a=[];let i=-1;for(;++i<e.length;)a[i]=XT(e[i],t,n);return a.join("")}function sK(e){return!!(e&&typeof e=="object")}const QT=document.createElement("i");function M5(e){const t="&"+e+";";QT.innerHTML=t;const n=QT.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function nl(e,t,n,a){const i=e.length;let l=0,u;if(t<0?t=-t>i?0:i+t:t=t>i?i:t,n=n>0?n:0,a.length<1e4)u=Array.from(a),u.unshift(t,n),e.splice(...u);else for(n&&e.splice(t,n);l<a.length;)u=a.slice(l,l+1e4),u.unshift(t,0),e.splice(...u),l+=1e4,t+=1e4}function Fi(e,t){return e.length>0?(nl(e,e.length,0,t),e):t}const eR={}.hasOwnProperty;function lK(e){const t={};let n=-1;for(;++n<e.length;)uK(t,e[n]);return t}function uK(e,t){let n;for(n in t){const i=(eR.call(e,n)?e[n]:void 0)||(e[n]={}),l=t[n];let u;if(l)for(u in l){eR.call(i,u)||(i[u]=[]);const f=l[u];cK(i[u],Array.isArray(f)?f:f?[f]:[])}}}function cK(e,t){let n=-1;const a=[];for(;++n<t.length;)(t[n].add==="after"?e:a).push(t[n]);nl(e,0,0,a)}function tR(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function _p(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const rl=ac(/[A-Za-z]/),gi=ac(/[\dA-Za-z]/),dK=ac(/[#-'*+\--9=?A-Z^-~]/);function O5(e){return e!==null&&(e<32||e===127)}const L5=ac(/\d/),fK=ac(/[\dA-Fa-f]/),pK=ac(/[!-/:-@[-`{-~]/);function Zt(e){return e!==null&&e<-2}function $o(e){return e!==null&&(e<0||e===32)}function Bn(e){return e===-2||e===-1||e===32}const hK=ac(/\p{P}|\p{S}/u),mK=ac(/\s/);function ac(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function Tp(e){const t=[];let n=-1,a=0,i=0;for(;++n<e.length;){const l=e.charCodeAt(n);let u="";if(l===37&&gi(e.charCodeAt(n+1))&&gi(e.charCodeAt(n+2)))i=2;else if(l<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(l))||(u=String.fromCharCode(l));else if(l>55295&&l<57344){const f=e.charCodeAt(n+1);l<56320&&f>56319&&f<57344?(u=String.fromCharCode(l,f),i=1):u="�"}else u=String.fromCharCode(l);u&&(t.push(e.slice(a,n),encodeURIComponent(u)),a=n+i+1,u=""),i&&(n+=i,i=0)}return t.join("")+e.slice(a)}function pr(e,t,n,a){const i=a?a-1:Number.POSITIVE_INFINITY;let l=0;return u;function u(h){return Bn(h)?(e.enter(n),f(h)):t(h)}function f(h){return Bn(h)&&l++<i?(e.consume(h),f):(e.exit(n),t(h))}}const gK={tokenize:vK};function vK(e){const t=e.attempt(this.parser.constructs.contentInitial,a,i);let n;return t;function a(f){if(f===null){e.consume(f);return}return e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),pr(e,t,"linePrefix")}function i(f){return e.enter("paragraph"),l(f)}function l(f){const h=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=h),n=h,u(f)}function u(f){if(f===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(f);return}return Zt(f)?(e.consume(f),e.exit("chunkText"),l):(e.consume(f),u)}}const yK={tokenize:xK},nR={tokenize:wK};function xK(e){const t=this,n=[];let a=0,i,l,u;return f;function f(F){if(a<n.length){const D=n[a];return t.containerState=D[1],e.attempt(D[0].continuation,h,g)(F)}return g(F)}function h(F){if(a++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&P();const D=t.events.length;let V=D,H;for(;V--;)if(t.events[V][0]==="exit"&&t.events[V][1].type==="chunkFlow"){H=t.events[V][1].end;break}L(a);let Z=D;for(;Z<t.events.length;)t.events[Z][1].end={...H},Z++;return nl(t.events,V+1,0,t.events.slice(D)),t.events.length=Z,g(F)}return f(F)}function g(F){if(a===n.length){if(!i)return k(F);if(i.currentConstruct&&i.currentConstruct.concrete)return _(F);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(nR,x,y)(F)}function x(F){return i&&P(),L(a),k(F)}function y(F){return t.parser.lazy[t.now().line]=a!==n.length,u=t.now().offset,_(F)}function k(F){return t.containerState={},e.attempt(nR,b,_)(F)}function b(F){return a++,n.push([t.currentConstruct,t.containerState]),k(F)}function _(F){if(F===null){i&&P(),L(0),e.consume(F);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:l}),R(F)}function R(F){if(F===null){M(e.exit("chunkFlow"),!0),L(0),e.consume(F);return}return Zt(F)?(e.consume(F),M(e.exit("chunkFlow")),a=0,t.interrupt=void 0,f):(e.consume(F),R)}function M(F,D){const V=t.sliceStream(F);if(D&&V.push(null),F.previous=l,l&&(l.next=F),l=F,i.defineSkip(F.start),i.write(V),t.parser.lazy[F.start.line]){let H=i.events.length;for(;H--;)if(i.events[H][1].start.offset<u&&(!i.events[H][1].end||i.events[H][1].end.offset>u))return;const Z=t.events.length;let q=Z,ae,_e;for(;q--;)if(t.events[q][0]==="exit"&&t.events[q][1].type==="chunkFlow"){if(ae){_e=t.events[q][1].end;break}ae=!0}for(L(a),H=Z;H<t.events.length;)t.events[H][1].end={..._e},H++;nl(t.events,q+1,0,t.events.slice(Z)),t.events.length=H}}function L(F){let D=n.length;for(;D-- >F;){const V=n[D];t.containerState=V[1],V[0].exit.call(t,e)}n.length=F}function P(){i.write([null]),l=void 0,i=void 0,t.containerState._closeFlow=void 0}}function wK(e,t,n){return pr(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function rR(e){if(e===null||$o(e)||mK(e))return 1;if(hK(e))return 2}function I5(e,t,n){const a=[];let i=-1;for(;++i<e.length;){const l=e[i].resolveAll;l&&!a.includes(l)&&(t=l(t,n),a.push(l))}return t}const D5={name:"attention",resolveAll:bK,tokenize:CK};function bK(e,t){let n=-1,a,i,l,u,f,h,g,x;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(a=n;a--;)if(e[a][0]==="exit"&&e[a][1].type==="attentionSequence"&&e[a][1]._open&&t.sliceSerialize(e[a][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[a][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[a][1].end.offset-e[a][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;h=e[a][1].end.offset-e[a][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const y={...e[a][1].end},k={...e[n][1].start};aR(y,-h),aR(k,h),u={type:h>1?"strongSequence":"emphasisSequence",start:y,end:{...e[a][1].end}},f={type:h>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:k},l={type:h>1?"strongText":"emphasisText",start:{...e[a][1].end},end:{...e[n][1].start}},i={type:h>1?"strong":"emphasis",start:{...u.start},end:{...f.end}},e[a][1].end={...u.start},e[n][1].start={...f.end},g=[],e[a][1].end.offset-e[a][1].start.offset&&(g=Fi(g,[["enter",e[a][1],t],["exit",e[a][1],t]])),g=Fi(g,[["enter",i,t],["enter",u,t],["exit",u,t],["enter",l,t]]),g=Fi(g,I5(t.parser.constructs.insideSpan.null,e.slice(a+1,n),t)),g=Fi(g,[["exit",l,t],["enter",f,t],["exit",f,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(x=2,g=Fi(g,[["enter",e[n][1],t],["exit",e[n][1],t]])):x=0,nl(e,a-1,n-a+3,g),n=a+g.length-x-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function CK(e,t){const n=this.parser.constructs.attentionMarkers.null,a=this.previous,i=rR(a);let l;return u;function u(h){return l=h,e.enter("attentionSequence"),f(h)}function f(h){if(h===l)return e.consume(h),f;const g=e.exit("attentionSequence"),x=rR(h),y=!x||x===2&&i||n.includes(h),k=!i||i===2&&x||n.includes(a);return g._open=!!(l===42?y:y&&(i||!k)),g._close=!!(l===42?k:k&&(x||!y)),t(h)}}function aR(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const SK={name:"autolink",tokenize:kK};function kK(e,t,n){let a=0;return i;function i(b){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(b),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),l}function l(b){return rl(b)?(e.consume(b),u):b===64?n(b):g(b)}function u(b){return b===43||b===45||b===46||gi(b)?(a=1,f(b)):g(b)}function f(b){return b===58?(e.consume(b),a=0,h):(b===43||b===45||b===46||gi(b))&&a++<32?(e.consume(b),f):(a=0,g(b))}function h(b){return b===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(b),e.exit("autolinkMarker"),e.exit("autolink"),t):b===null||b===32||b===60||O5(b)?n(b):(e.consume(b),h)}function g(b){return b===64?(e.consume(b),x):dK(b)?(e.consume(b),g):n(b)}function x(b){return gi(b)?y(b):n(b)}function y(b){return b===46?(e.consume(b),a=0,x):b===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(b),e.exit("autolinkMarker"),e.exit("autolink"),t):k(b)}function k(b){if((b===45||gi(b))&&a++<63){const _=b===45?k:y;return e.consume(b),_}return n(b)}}const q0={partial:!0,tokenize:EK};function EK(e,t,n){return a;function a(l){return Bn(l)?pr(e,i,"linePrefix")(l):i(l)}function i(l){return l===null||Zt(l)?t(l):n(l)}}const oR={continuation:{tokenize:TK},exit:RK,name:"blockQuote",tokenize:_K};function _K(e,t,n){const a=this;return i;function i(u){if(u===62){const f=a.containerState;return f.open||(e.enter("blockQuote",{_container:!0}),f.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(u),e.exit("blockQuoteMarker"),l}return n(u)}function l(u){return Bn(u)?(e.enter("blockQuotePrefixWhitespace"),e.consume(u),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(u))}}function TK(e,t,n){const a=this;return i;function i(u){return Bn(u)?pr(e,l,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(u):l(u)}function l(u){return e.attempt(oR,t,n)(u)}}function RK(e){e.exit("blockQuote")}const iR={name:"characterEscape",tokenize:AK};function AK(e,t,n){return a;function a(l){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(l),e.exit("escapeMarker"),i}function i(l){return pK(l)?(e.enter("characterEscapeValue"),e.consume(l),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(l)}}const sR={name:"characterReference",tokenize:NK};function NK(e,t,n){const a=this;let i=0,l,u;return f;function f(y){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(y),e.exit("characterReferenceMarker"),h}function h(y){return y===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(y),e.exit("characterReferenceMarkerNumeric"),g):(e.enter("characterReferenceValue"),l=31,u=gi,x(y))}function g(y){return y===88||y===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(y),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),l=6,u=fK,x):(e.enter("characterReferenceValue"),l=7,u=L5,x(y))}function x(y){if(y===59&&i){const k=e.exit("characterReferenceValue");return u===gi&&!M5(a.sliceSerialize(k))?n(y):(e.enter("characterReferenceMarker"),e.consume(y),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return u(y)&&i++<l?(e.consume(y),x):n(y)}}const lR={partial:!0,tokenize:OK},uR={concrete:!0,name:"codeFenced",tokenize:MK};function MK(e,t,n){const a=this,i={partial:!0,tokenize:V};let l=0,u=0,f;return h;function h(H){return g(H)}function g(H){const Z=a.events[a.events.length-1];return l=Z&&Z[1].type==="linePrefix"?Z[2].sliceSerialize(Z[1],!0).length:0,f=H,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),x(H)}function x(H){return H===f?(u++,e.consume(H),x):u<3?n(H):(e.exit("codeFencedFenceSequence"),Bn(H)?pr(e,y,"whitespace")(H):y(H))}function y(H){return H===null||Zt(H)?(e.exit("codeFencedFence"),a.interrupt?t(H):e.check(lR,R,D)(H)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),k(H))}function k(H){return H===null||Zt(H)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),y(H)):Bn(H)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),pr(e,b,"whitespace")(H)):H===96&&H===f?n(H):(e.consume(H),k)}function b(H){return H===null||Zt(H)?y(H):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),_(H))}function _(H){return H===null||Zt(H)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),y(H)):H===96&&H===f?n(H):(e.consume(H),_)}function R(H){return e.attempt(i,D,M)(H)}function M(H){return e.enter("lineEnding"),e.consume(H),e.exit("lineEnding"),L}function L(H){return l>0&&Bn(H)?pr(e,P,"linePrefix",l+1)(H):P(H)}function P(H){return H===null||Zt(H)?e.check(lR,R,D)(H):(e.enter("codeFlowValue"),F(H))}function F(H){return H===null||Zt(H)?(e.exit("codeFlowValue"),P(H)):(e.consume(H),F)}function D(H){return e.exit("codeFenced"),t(H)}function V(H,Z,q){let ae=0;return _e;function _e(xe){return H.enter("lineEnding"),H.consume(xe),H.exit("lineEnding"),ge}function ge(xe){return H.enter("codeFencedFence"),Bn(xe)?pr(H,he,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(xe):he(xe)}function he(xe){return xe===f?(H.enter("codeFencedFenceSequence"),we(xe)):q(xe)}function we(xe){return xe===f?(ae++,H.consume(xe),we):ae>=u?(H.exit("codeFencedFenceSequence"),Bn(xe)?pr(H,Ne,"whitespace")(xe):Ne(xe)):q(xe)}function Ne(xe){return xe===null||Zt(xe)?(H.exit("codeFencedFence"),Z(xe)):q(xe)}}}function OK(e,t,n){const a=this;return i;function i(u){return u===null?n(u):(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),l)}function l(u){return a.parser.lazy[a.now().line]?n(u):t(u)}}const j5={name:"codeIndented",tokenize:IK},LK={partial:!0,tokenize:DK};function IK(e,t,n){const a=this;return i;function i(g){return e.enter("codeIndented"),pr(e,l,"linePrefix",5)(g)}function l(g){const x=a.events[a.events.length-1];return x&&x[1].type==="linePrefix"&&x[2].sliceSerialize(x[1],!0).length>=4?u(g):n(g)}function u(g){return g===null?h(g):Zt(g)?e.attempt(LK,u,h)(g):(e.enter("codeFlowValue"),f(g))}function f(g){return g===null||Zt(g)?(e.exit("codeFlowValue"),u(g)):(e.consume(g),f)}function h(g){return e.exit("codeIndented"),t(g)}}function DK(e,t,n){const a=this;return i;function i(u){return a.parser.lazy[a.now().line]?n(u):Zt(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),i):pr(e,l,"linePrefix",5)(u)}function l(u){const f=a.events[a.events.length-1];return f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?t(u):Zt(u)?i(u):n(u)}}const jK={name:"codeText",previous:FK,resolve:PK,tokenize:zK};function PK(e){let t=e.length-4,n=3,a,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(a=n;++a<t;)if(e[a][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(a=n-1,t++;++a<=t;)i===void 0?a!==t&&e[a][1].type!=="lineEnding"&&(i=a):(a===t||e[a][1].type==="lineEnding")&&(e[i][1].type="codeTextData",a!==i+2&&(e[i][1].end=e[a-1][1].end,e.splice(i+2,a-i-2),t-=a-i-2,a=i+2),i=void 0);return e}function FK(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function zK(e,t,n){let a=0,i,l;return u;function u(y){return e.enter("codeText"),e.enter("codeTextSequence"),f(y)}function f(y){return y===96?(e.consume(y),a++,f):(e.exit("codeTextSequence"),h(y))}function h(y){return y===null?n(y):y===32?(e.enter("space"),e.consume(y),e.exit("space"),h):y===96?(l=e.enter("codeTextSequence"),i=0,x(y)):Zt(y)?(e.enter("lineEnding"),e.consume(y),e.exit("lineEnding"),h):(e.enter("codeTextData"),g(y))}function g(y){return y===null||y===32||y===96||Zt(y)?(e.exit("codeTextData"),h(y)):(e.consume(y),g)}function x(y){return y===96?(e.consume(y),i++,x):i===a?(e.exit("codeTextSequence"),e.exit("codeText"),t(y)):(l.type="codeTextData",g(y))}}class UK{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const a=n==null?Number.POSITIVE_INFINITY:n;return a<this.left.length?this.left.slice(t,a):t>this.left.length?this.right.slice(this.right.length-a+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-a+this.left.length).reverse())}splice(t,n,a){const i=n||0;this.setCursor(Math.trunc(t));const l=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return a&&lm(this.left,a),l.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),lm(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),lm(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);lm(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);lm(this.left,n.reverse())}}}function lm(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function cR(e){const t={};let n=-1,a,i,l,u,f,h,g;const x=new UK(e);for(;++n<x.length;){for(;n in t;)n=t[n];if(a=x.get(n),n&&a[1].type==="chunkFlow"&&x.get(n-1)[1].type==="listItemPrefix"&&(h=a[1]._tokenizer.events,l=0,l<h.length&&h[l][1].type==="lineEndingBlank"&&(l+=2),l<h.length&&h[l][1].type==="content"))for(;++l<h.length&&h[l][1].type!=="content";)h[l][1].type==="chunkText"&&(h[l][1]._isInFirstContentOfListItem=!0,l++);if(a[0]==="enter")a[1].contentType&&(Object.assign(t,BK(x,n)),n=t[n],g=!0);else if(a[1]._container){for(l=n,i=void 0;l--;)if(u=x.get(l),u[1].type==="lineEnding"||u[1].type==="lineEndingBlank")u[0]==="enter"&&(i&&(x.get(i)[1].type="lineEndingBlank"),u[1].type="lineEnding",i=l);else if(!(u[1].type==="linePrefix"||u[1].type==="listItemIndent"))break;i&&(a[1].end={...x.get(i)[1].start},f=x.slice(i,n),f.unshift(a),x.splice(i,n-i+1,f))}}return nl(e,0,Number.POSITIVE_INFINITY,x.slice(0)),!g}function BK(e,t){const n=e.get(t)[1],a=e.get(t)[2];let i=t-1;const l=[];let u=n._tokenizer;u||(u=a.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(u._contentTypeTextTrailing=!0));const f=u.events,h=[],g={};let x,y,k=-1,b=n,_=0,R=0;const M=[R];for(;b;){for(;e.get(++i)[1]!==b;);l.push(i),b._tokenizer||(x=a.sliceStream(b),b.next||x.push(null),y&&u.defineSkip(b.start),b._isInFirstContentOfListItem&&(u._gfmTasklistFirstContentOfListItem=!0),u.write(x),b._isInFirstContentOfListItem&&(u._gfmTasklistFirstContentOfListItem=void 0)),y=b,b=b.next}for(b=n;++k<f.length;)f[k][0]==="exit"&&f[k-1][0]==="enter"&&f[k][1].type===f[k-1][1].type&&f[k][1].start.line!==f[k][1].end.line&&(R=k+1,M.push(R),b._tokenizer=void 0,b.previous=void 0,b=b.next);for(u.events=[],b?(b._tokenizer=void 0,b.previous=void 0):M.pop(),k=M.length;k--;){const L=f.slice(M[k],M[k+1]),P=l.pop();h.push([P,P+L.length-1]),e.splice(P,2,L)}for(h.reverse(),k=-1;++k<h.length;)g[_+h[k][0]]=_+h[k][1],_+=h[k][1]-h[k][0]-1;return g}const HK={resolve:$K,tokenize:ZK},VK={partial:!0,tokenize:WK};function $K(e){return cR(e),e}function ZK(e,t){let n;return a;function a(f){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),i(f)}function i(f){return f===null?l(f):Zt(f)?e.check(VK,u,l)(f):(e.consume(f),i)}function l(f){return e.exit("chunkContent"),e.exit("content"),t(f)}function u(f){return e.consume(f),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,i}}function WK(e,t,n){const a=this;return i;function i(u){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),pr(e,l,"linePrefix")}function l(u){if(u===null||Zt(u))return n(u);const f=a.events[a.events.length-1];return!a.parser.constructs.disable.null.includes("codeIndented")&&f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?t(u):e.interrupt(a.parser.constructs.flow,n,t)(u)}}function dR(e,t,n,a,i,l,u,f,h){const g=h||Number.POSITIVE_INFINITY;let x=0;return y;function y(L){return L===60?(e.enter(a),e.enter(i),e.enter(l),e.consume(L),e.exit(l),k):L===null||L===32||L===41||O5(L)?n(L):(e.enter(a),e.enter(u),e.enter(f),e.enter("chunkString",{contentType:"string"}),R(L))}function k(L){return L===62?(e.enter(l),e.consume(L),e.exit(l),e.exit(i),e.exit(a),t):(e.enter(f),e.enter("chunkString",{contentType:"string"}),b(L))}function b(L){return L===62?(e.exit("chunkString"),e.exit(f),k(L)):L===null||L===60||Zt(L)?n(L):(e.consume(L),L===92?_:b)}function _(L){return L===60||L===62||L===92?(e.consume(L),b):b(L)}function R(L){return!x&&(L===null||L===41||$o(L))?(e.exit("chunkString"),e.exit(f),e.exit(u),e.exit(a),t(L)):x<g&&L===40?(e.consume(L),x++,R):L===41?(e.consume(L),x--,R):L===null||L===32||L===40||O5(L)?n(L):(e.consume(L),L===92?M:R)}function M(L){return L===40||L===41||L===92?(e.consume(L),R):R(L)}}function fR(e,t,n,a,i,l){const u=this;let f=0,h;return g;function g(b){return e.enter(a),e.enter(i),e.consume(b),e.exit(i),e.enter(l),x}function x(b){return f>999||b===null||b===91||b===93&&!h||b===94&&!f&&"_hiddenFootnoteSupport"in u.parser.constructs?n(b):b===93?(e.exit(l),e.enter(i),e.consume(b),e.exit(i),e.exit(a),t):Zt(b)?(e.enter("lineEnding"),e.consume(b),e.exit("lineEnding"),x):(e.enter("chunkString",{contentType:"string"}),y(b))}function y(b){return b===null||b===91||b===93||Zt(b)||f++>999?(e.exit("chunkString"),x(b)):(e.consume(b),h||(h=!Bn(b)),b===92?k:y)}function k(b){return b===91||b===92||b===93?(e.consume(b),f++,y):y(b)}}function pR(e,t,n,a,i,l){let u;return f;function f(k){return k===34||k===39||k===40?(e.enter(a),e.enter(i),e.consume(k),e.exit(i),u=k===40?41:k,h):n(k)}function h(k){return k===u?(e.enter(i),e.consume(k),e.exit(i),e.exit(a),t):(e.enter(l),g(k))}function g(k){return k===u?(e.exit(l),h(u)):k===null?n(k):Zt(k)?(e.enter("lineEnding"),e.consume(k),e.exit("lineEnding"),pr(e,g,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),x(k))}function x(k){return k===u||k===null||Zt(k)?(e.exit("chunkString"),g(k)):(e.consume(k),k===92?y:x)}function y(k){return k===u||k===92?(e.consume(k),x):x(k)}}function um(e,t){let n;return a;function a(i){return Zt(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,a):Bn(i)?pr(e,a,n?"linePrefix":"lineSuffix")(i):t(i)}}const qK={name:"definition",tokenize:YK},GK={partial:!0,tokenize:JK};function YK(e,t,n){const a=this;let i;return l;function l(b){return e.enter("definition"),u(b)}function u(b){return fR.call(a,e,f,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(b)}function f(b){return i=_p(a.sliceSerialize(a.events[a.events.length-1][1]).slice(1,-1)),b===58?(e.enter("definitionMarker"),e.consume(b),e.exit("definitionMarker"),h):n(b)}function h(b){return $o(b)?um(e,g)(b):g(b)}function g(b){return dR(e,x,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(b)}function x(b){return e.attempt(GK,y,y)(b)}function y(b){return Bn(b)?pr(e,k,"whitespace")(b):k(b)}function k(b){return b===null||Zt(b)?(e.exit("definition"),a.parser.defined.push(i),t(b)):n(b)}}function JK(e,t,n){return a;function a(f){return $o(f)?um(e,i)(f):n(f)}function i(f){return pR(e,l,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(f)}function l(f){return Bn(f)?pr(e,u,"whitespace")(f):u(f)}function u(f){return f===null||Zt(f)?t(f):n(f)}}const XK={name:"hardBreakEscape",tokenize:KK};function KK(e,t,n){return a;function a(l){return e.enter("hardBreakEscape"),e.consume(l),i}function i(l){return Zt(l)?(e.exit("hardBreakEscape"),t(l)):n(l)}}const QK={name:"headingAtx",resolve:eQ,tokenize:tQ};function eQ(e,t){let n=e.length-2,a=3,i,l;return e[a][1].type==="whitespace"&&(a+=2),n-2>a&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(a===n-1||n-4>a&&e[n-2][1].type==="whitespace")&&(n-=a+1===n?2:4),n>a&&(i={type:"atxHeadingText",start:e[a][1].start,end:e[n][1].end},l={type:"chunkText",start:e[a][1].start,end:e[n][1].end,contentType:"text"},nl(e,a,n-a+1,[["enter",i,t],["enter",l,t],["exit",l,t],["exit",i,t]])),e}function tQ(e,t,n){let a=0;return i;function i(x){return e.enter("atxHeading"),l(x)}function l(x){return e.enter("atxHeadingSequence"),u(x)}function u(x){return x===35&&a++<6?(e.consume(x),u):x===null||$o(x)?(e.exit("atxHeadingSequence"),f(x)):n(x)}function f(x){return x===35?(e.enter("atxHeadingSequence"),h(x)):x===null||Zt(x)?(e.exit("atxHeading"),t(x)):Bn(x)?pr(e,f,"whitespace")(x):(e.enter("atxHeadingText"),g(x))}function h(x){return x===35?(e.consume(x),h):(e.exit("atxHeadingSequence"),f(x))}function g(x){return x===null||x===35||$o(x)?(e.exit("atxHeadingText"),f(x)):(e.consume(x),g)}}const nQ=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],hR=["pre","script","style","textarea"],rQ={concrete:!0,name:"htmlFlow",resolveTo:iQ,tokenize:sQ},aQ={partial:!0,tokenize:uQ},oQ={partial:!0,tokenize:lQ};function iQ(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function sQ(e,t,n){const a=this;let i,l,u,f,h;return g;function g($){return x($)}function x($){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume($),y}function y($){return $===33?(e.consume($),k):$===47?(e.consume($),l=!0,R):$===63?(e.consume($),i=3,a.interrupt?t:U):rl($)?(e.consume($),u=String.fromCharCode($),M):n($)}function k($){return $===45?(e.consume($),i=2,b):$===91?(e.consume($),i=5,f=0,_):rl($)?(e.consume($),i=4,a.interrupt?t:U):n($)}function b($){return $===45?(e.consume($),a.interrupt?t:U):n($)}function _($){const Ue="CDATA[";return $===Ue.charCodeAt(f++)?(e.consume($),f===Ue.length?a.interrupt?t:he:_):n($)}function R($){return rl($)?(e.consume($),u=String.fromCharCode($),M):n($)}function M($){if($===null||$===47||$===62||$o($)){const Ue=$===47,Ke=u.toLowerCase();return!Ue&&!l&&hR.includes(Ke)?(i=1,a.interrupt?t($):he($)):nQ.includes(u.toLowerCase())?(i=6,Ue?(e.consume($),L):a.interrupt?t($):he($)):(i=7,a.interrupt&&!a.parser.lazy[a.now().line]?n($):l?P($):F($))}return $===45||gi($)?(e.consume($),u+=String.fromCharCode($),M):n($)}function L($){return $===62?(e.consume($),a.interrupt?t:he):n($)}function P($){return Bn($)?(e.consume($),P):_e($)}function F($){return $===47?(e.consume($),_e):$===58||$===95||rl($)?(e.consume($),D):Bn($)?(e.consume($),F):_e($)}function D($){return $===45||$===46||$===58||$===95||gi($)?(e.consume($),D):V($)}function V($){return $===61?(e.consume($),H):Bn($)?(e.consume($),V):F($)}function H($){return $===null||$===60||$===61||$===62||$===96?n($):$===34||$===39?(e.consume($),h=$,Z):Bn($)?(e.consume($),H):q($)}function Z($){return $===h?(e.consume($),h=null,ae):$===null||Zt($)?n($):(e.consume($),Z)}function q($){return $===null||$===34||$===39||$===47||$===60||$===61||$===62||$===96||$o($)?V($):(e.consume($),q)}function ae($){return $===47||$===62||Bn($)?F($):n($)}function _e($){return $===62?(e.consume($),ge):n($)}function ge($){return $===null||Zt($)?he($):Bn($)?(e.consume($),ge):n($)}function he($){return $===45&&i===2?(e.consume($),Te):$===60&&i===1?(e.consume($),ve):$===62&&i===4?(e.consume($),X):$===63&&i===3?(e.consume($),U):$===93&&i===5?(e.consume($),ye):Zt($)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(aQ,ie,we)($)):$===null||Zt($)?(e.exit("htmlFlowData"),we($)):(e.consume($),he)}function we($){return e.check(oQ,Ne,ie)($)}function Ne($){return e.enter("lineEnding"),e.consume($),e.exit("lineEnding"),xe}function xe($){return $===null||Zt($)?we($):(e.enter("htmlFlowData"),he($))}function Te($){return $===45?(e.consume($),U):he($)}function ve($){return $===47?(e.consume($),u="",K):he($)}function K($){if($===62){const Ue=u.toLowerCase();return hR.includes(Ue)?(e.consume($),X):he($)}return rl($)&&u.length<8?(e.consume($),u+=String.fromCharCode($),K):he($)}function ye($){return $===93?(e.consume($),U):he($)}function U($){return $===62?(e.consume($),X):$===45&&i===2?(e.consume($),U):he($)}function X($){return $===null||Zt($)?(e.exit("htmlFlowData"),ie($)):(e.consume($),X)}function ie($){return e.exit("htmlFlow"),t($)}}function lQ(e,t,n){const a=this;return i;function i(u){return Zt(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),l):n(u)}function l(u){return a.parser.lazy[a.now().line]?n(u):t(u)}}function uQ(e,t,n){return a;function a(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(q0,t,n)}}const cQ={name:"htmlText",tokenize:dQ};function dQ(e,t,n){const a=this;let i,l,u;return f;function f(U){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(U),h}function h(U){return U===33?(e.consume(U),g):U===47?(e.consume(U),V):U===63?(e.consume(U),F):rl(U)?(e.consume(U),q):n(U)}function g(U){return U===45?(e.consume(U),x):U===91?(e.consume(U),l=0,_):rl(U)?(e.consume(U),P):n(U)}function x(U){return U===45?(e.consume(U),b):n(U)}function y(U){return U===null?n(U):U===45?(e.consume(U),k):Zt(U)?(u=y,ve(U)):(e.consume(U),y)}function k(U){return U===45?(e.consume(U),b):y(U)}function b(U){return U===62?Te(U):U===45?k(U):y(U)}function _(U){const X="CDATA[";return U===X.charCodeAt(l++)?(e.consume(U),l===X.length?R:_):n(U)}function R(U){return U===null?n(U):U===93?(e.consume(U),M):Zt(U)?(u=R,ve(U)):(e.consume(U),R)}function M(U){return U===93?(e.consume(U),L):R(U)}function L(U){return U===62?Te(U):U===93?(e.consume(U),L):R(U)}function P(U){return U===null||U===62?Te(U):Zt(U)?(u=P,ve(U)):(e.consume(U),P)}function F(U){return U===null?n(U):U===63?(e.consume(U),D):Zt(U)?(u=F,ve(U)):(e.consume(U),F)}function D(U){return U===62?Te(U):F(U)}function V(U){return rl(U)?(e.consume(U),H):n(U)}function H(U){return U===45||gi(U)?(e.consume(U),H):Z(U)}function Z(U){return Zt(U)?(u=Z,ve(U)):Bn(U)?(e.consume(U),Z):Te(U)}function q(U){return U===45||gi(U)?(e.consume(U),q):U===47||U===62||$o(U)?ae(U):n(U)}function ae(U){return U===47?(e.consume(U),Te):U===58||U===95||rl(U)?(e.consume(U),_e):Zt(U)?(u=ae,ve(U)):Bn(U)?(e.consume(U),ae):Te(U)}function _e(U){return U===45||U===46||U===58||U===95||gi(U)?(e.consume(U),_e):ge(U)}function ge(U){return U===61?(e.consume(U),he):Zt(U)?(u=ge,ve(U)):Bn(U)?(e.consume(U),ge):ae(U)}function he(U){return U===null||U===60||U===61||U===62||U===96?n(U):U===34||U===39?(e.consume(U),i=U,we):Zt(U)?(u=he,ve(U)):Bn(U)?(e.consume(U),he):(e.consume(U),Ne)}function we(U){return U===i?(e.consume(U),i=void 0,xe):U===null?n(U):Zt(U)?(u=we,ve(U)):(e.consume(U),we)}function Ne(U){return U===null||U===34||U===39||U===60||U===61||U===96?n(U):U===47||U===62||$o(U)?ae(U):(e.consume(U),Ne)}function xe(U){return U===47||U===62||$o(U)?ae(U):n(U)}function Te(U){return U===62?(e.consume(U),e.exit("htmlTextData"),e.exit("htmlText"),t):n(U)}function ve(U){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(U),e.exit("lineEnding"),K}function K(U){return Bn(U)?pr(e,ye,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(U):ye(U)}function ye(U){return e.enter("htmlTextData"),u(U)}}const P5={name:"labelEnd",resolveAll:mQ,resolveTo:gQ,tokenize:vQ},fQ={tokenize:yQ},pQ={tokenize:xQ},hQ={tokenize:wQ};function mQ(e){let t=-1;const n=[];for(;++t<e.length;){const a=e[t][1];if(n.push(e[t]),a.type==="labelImage"||a.type==="labelLink"||a.type==="labelEnd"){const i=a.type==="labelImage"?4:2;a.type="data",t+=i}}return e.length!==n.length&&nl(e,0,e.length,n),e}function gQ(e,t){let n=e.length,a=0,i,l,u,f;for(;n--;)if(i=e[n][1],l){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[n][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(u){if(e[n][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(l=n,i.type!=="labelLink")){a=2;break}}else i.type==="labelEnd"&&(u=n);const h={type:e[l][1].type==="labelLink"?"link":"image",start:{...e[l][1].start},end:{...e[e.length-1][1].end}},g={type:"label",start:{...e[l][1].start},end:{...e[u][1].end}},x={type:"labelText",start:{...e[l+a+2][1].end},end:{...e[u-2][1].start}};return f=[["enter",h,t],["enter",g,t]],f=Fi(f,e.slice(l+1,l+a+3)),f=Fi(f,[["enter",x,t]]),f=Fi(f,I5(t.parser.constructs.insideSpan.null,e.slice(l+a+4,u-3),t)),f=Fi(f,[["exit",x,t],e[u-2],e[u-1],["exit",g,t]]),f=Fi(f,e.slice(u+1)),f=Fi(f,[["exit",h,t]]),nl(e,l,e.length,f),e}function vQ(e,t,n){const a=this;let i=a.events.length,l,u;for(;i--;)if((a.events[i][1].type==="labelImage"||a.events[i][1].type==="labelLink")&&!a.events[i][1]._balanced){l=a.events[i][1];break}return f;function f(k){return l?l._inactive?y(k):(u=a.parser.defined.includes(_p(a.sliceSerialize({start:l.end,end:a.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(k),e.exit("labelMarker"),e.exit("labelEnd"),h):n(k)}function h(k){return k===40?e.attempt(fQ,x,u?x:y)(k):k===91?e.attempt(pQ,x,u?g:y)(k):u?x(k):y(k)}function g(k){return e.attempt(hQ,x,y)(k)}function x(k){return t(k)}function y(k){return l._balanced=!0,n(k)}}function yQ(e,t,n){return a;function a(y){return e.enter("resource"),e.enter("resourceMarker"),e.consume(y),e.exit("resourceMarker"),i}function i(y){return $o(y)?um(e,l)(y):l(y)}function l(y){return y===41?x(y):dR(e,u,f,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(y)}function u(y){return $o(y)?um(e,h)(y):x(y)}function f(y){return n(y)}function h(y){return y===34||y===39||y===40?pR(e,g,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(y):x(y)}function g(y){return $o(y)?um(e,x)(y):x(y)}function x(y){return y===41?(e.enter("resourceMarker"),e.consume(y),e.exit("resourceMarker"),e.exit("resource"),t):n(y)}}function xQ(e,t,n){const a=this;return i;function i(f){return fR.call(a,e,l,u,"reference","referenceMarker","referenceString")(f)}function l(f){return a.parser.defined.includes(_p(a.sliceSerialize(a.events[a.events.length-1][1]).slice(1,-1)))?t(f):n(f)}function u(f){return n(f)}}function wQ(e,t,n){return a;function a(l){return e.enter("reference"),e.enter("referenceMarker"),e.consume(l),e.exit("referenceMarker"),i}function i(l){return l===93?(e.enter("referenceMarker"),e.consume(l),e.exit("referenceMarker"),e.exit("reference"),t):n(l)}}const bQ={name:"labelStartImage",resolveAll:P5.resolveAll,tokenize:CQ};function CQ(e,t,n){const a=this;return i;function i(f){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(f),e.exit("labelImageMarker"),l}function l(f){return f===91?(e.enter("labelMarker"),e.consume(f),e.exit("labelMarker"),e.exit("labelImage"),u):n(f)}function u(f){return f===94&&"_hiddenFootnoteSupport"in a.parser.constructs?n(f):t(f)}}const SQ={name:"labelStartLink",resolveAll:P5.resolveAll,tokenize:kQ};function kQ(e,t,n){const a=this;return i;function i(u){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(u),e.exit("labelMarker"),e.exit("labelLink"),l}function l(u){return u===94&&"_hiddenFootnoteSupport"in a.parser.constructs?n(u):t(u)}}const F5={name:"lineEnding",tokenize:EQ};function EQ(e,t){return n;function n(a){return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),pr(e,t,"linePrefix")}}const G0={name:"thematicBreak",tokenize:_Q};function _Q(e,t,n){let a=0,i;return l;function l(g){return e.enter("thematicBreak"),u(g)}function u(g){return i=g,f(g)}function f(g){return g===i?(e.enter("thematicBreakSequence"),h(g)):a>=3&&(g===null||Zt(g))?(e.exit("thematicBreak"),t(g)):n(g)}function h(g){return g===i?(e.consume(g),a++,h):(e.exit("thematicBreakSequence"),Bn(g)?pr(e,f,"whitespace")(g):f(g))}}const Zo={continuation:{tokenize:NQ},exit:OQ,name:"list",tokenize:AQ},TQ={partial:!0,tokenize:LQ},RQ={partial:!0,tokenize:MQ};function AQ(e,t,n){const a=this,i=a.events[a.events.length-1];let l=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,u=0;return f;function f(b){const _=a.containerState.type||(b===42||b===43||b===45?"listUnordered":"listOrdered");if(_==="listUnordered"?!a.containerState.marker||b===a.containerState.marker:L5(b)){if(a.containerState.type||(a.containerState.type=_,e.enter(_,{_container:!0})),_==="listUnordered")return e.enter("listItemPrefix"),b===42||b===45?e.check(G0,n,g)(b):g(b);if(!a.interrupt||b===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),h(b)}return n(b)}function h(b){return L5(b)&&++u<10?(e.consume(b),h):(!a.interrupt||u<2)&&(a.containerState.marker?b===a.containerState.marker:b===41||b===46)?(e.exit("listItemValue"),g(b)):n(b)}function g(b){return e.enter("listItemMarker"),e.consume(b),e.exit("listItemMarker"),a.containerState.marker=a.containerState.marker||b,e.check(q0,a.interrupt?n:x,e.attempt(TQ,k,y))}function x(b){return a.containerState.initialBlankLine=!0,l++,k(b)}function y(b){return Bn(b)?(e.enter("listItemPrefixWhitespace"),e.consume(b),e.exit("listItemPrefixWhitespace"),k):n(b)}function k(b){return a.containerState.size=l+a.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(b)}}function NQ(e,t,n){const a=this;return a.containerState._closeFlow=void 0,e.check(q0,i,l);function i(f){return a.containerState.furtherBlankLines=a.containerState.furtherBlankLines||a.containerState.initialBlankLine,pr(e,t,"listItemIndent",a.containerState.size+1)(f)}function l(f){return a.containerState.furtherBlankLines||!Bn(f)?(a.containerState.furtherBlankLines=void 0,a.containerState.initialBlankLine=void 0,u(f)):(a.containerState.furtherBlankLines=void 0,a.containerState.initialBlankLine=void 0,e.attempt(RQ,t,u)(f))}function u(f){return a.containerState._closeFlow=!0,a.interrupt=void 0,pr(e,e.attempt(Zo,t,n),"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(f)}}function MQ(e,t,n){const a=this;return pr(e,i,"listItemIndent",a.containerState.size+1);function i(l){const u=a.events[a.events.length-1];return u&&u[1].type==="listItemIndent"&&u[2].sliceSerialize(u[1],!0).length===a.containerState.size?t(l):n(l)}}function OQ(e){e.exit(this.containerState.type)}function LQ(e,t,n){const a=this;return pr(e,i,"listItemPrefixWhitespace",a.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(l){const u=a.events[a.events.length-1];return!Bn(l)&&u&&u[1].type==="listItemPrefixWhitespace"?t(l):n(l)}}const mR={name:"setextUnderline",resolveTo:IQ,tokenize:DQ};function IQ(e,t){let n=e.length,a,i,l;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){a=n;break}e[n][1].type==="paragraph"&&(i=n)}else e[n][1].type==="content"&&e.splice(n,1),!l&&e[n][1].type==="definition"&&(l=n);const u={type:"setextHeading",start:{...e[a][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",l?(e.splice(i,0,["enter",u,t]),e.splice(l+1,0,["exit",e[a][1],t]),e[a][1].end={...e[l][1].end}):e[a][1]=u,e.push(["exit",u,t]),e}function DQ(e,t,n){const a=this;let i;return l;function l(g){let x=a.events.length,y;for(;x--;)if(a.events[x][1].type!=="lineEnding"&&a.events[x][1].type!=="linePrefix"&&a.events[x][1].type!=="content"){y=a.events[x][1].type==="paragraph";break}return!a.parser.lazy[a.now().line]&&(a.interrupt||y)?(e.enter("setextHeadingLine"),i=g,u(g)):n(g)}function u(g){return e.enter("setextHeadingLineSequence"),f(g)}function f(g){return g===i?(e.consume(g),f):(e.exit("setextHeadingLineSequence"),Bn(g)?pr(e,h,"lineSuffix")(g):h(g))}function h(g){return g===null||Zt(g)?(e.exit("setextHeadingLine"),t(g)):n(g)}}const jQ={tokenize:PQ};function PQ(e){const t=this,n=e.attempt(q0,a,e.attempt(this.parser.constructs.flowInitial,i,pr(e,e.attempt(this.parser.constructs.flow,i,e.attempt(HK,i)),"linePrefix")));return n;function a(l){if(l===null){e.consume(l);return}return e.enter("lineEndingBlank"),e.consume(l),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(l){if(l===null){e.consume(l);return}return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const FQ={resolveAll:vR()},zQ=gR("string"),UQ=gR("text");function gR(e){return{resolveAll:vR(e==="text"?BQ:void 0),tokenize:t};function t(n){const a=this,i=this.parser.constructs[e],l=n.attempt(i,u,f);return u;function u(x){return g(x)?l(x):f(x)}function f(x){if(x===null){n.consume(x);return}return n.enter("data"),n.consume(x),h}function h(x){return g(x)?(n.exit("data"),l(x)):(n.consume(x),h)}function g(x){if(x===null)return!0;const y=i[x];let k=-1;if(y)for(;++k<y.length;){const b=y[k];if(!b.previous||b.previous.call(a,a.previous))return!0}return!1}}}function vR(e){return t;function t(n,a){let i=-1,l;for(;++i<=n.length;)l===void 0?n[i]&&n[i][1].type==="data"&&(l=i,i++):(!n[i]||n[i][1].type!=="data")&&(i!==l+2&&(n[l][1].end=n[i-1][1].end,n.splice(l+2,i-l-2),i=l+2),l=void 0);return e?e(n,a):n}}function BQ(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const a=e[n-1][1],i=t.sliceStream(a);let l=i.length,u=-1,f=0,h;for(;l--;){const g=i[l];if(typeof g=="string"){for(u=g.length;g.charCodeAt(u-1)===32;)f++,u--;if(u)break;u=-1}else if(g===-2)h=!0,f++;else if(g!==-1){l++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(f=0),f){const g={type:n===e.length||h||f<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:l?u:a.start._bufferIndex+u,_index:a.start._index+l,line:a.end.line,column:a.end.column-f,offset:a.end.offset-f},end:{...a.end}};a.end={...g.start},a.start.offset===a.end.offset?Object.assign(a,g):(e.splice(n,0,["enter",g,t],["exit",g,t]),n+=2)}n++}return e}const HQ=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:{91:qK},disable:{null:[]},document:{42:Zo,43:Zo,45:Zo,48:Zo,49:Zo,50:Zo,51:Zo,52:Zo,53:Zo,54:Zo,55:Zo,56:Zo,57:Zo,62:oR},flow:{35:QK,42:G0,45:[mR,G0],60:rQ,61:mR,95:G0,96:uR,126:uR},flowInitial:{[-2]:j5,[-1]:j5,32:j5},insideSpan:{null:[D5,FQ]},string:{38:sR,92:iR},text:{[-5]:F5,[-4]:F5,[-3]:F5,33:bQ,38:sR,42:D5,60:[SK,cQ],91:SQ,92:[XK,iR],93:P5,95:D5,96:jK}},Symbol.toStringTag,{value:"Module"}));function VQ(e,t,n){let a={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const i={},l=[];let u=[],f=[];const h={attempt:Z(V),check:Z(H),consume:P,enter:F,exit:D,interrupt:Z(H,{interrupt:!0})},g={code:null,containerState:{},defineSkip:R,events:[],now:_,parser:e,previous:null,sliceSerialize:k,sliceStream:b,write:y};let x=t.tokenize.call(g,h);return t.resolveAll&&l.push(t),g;function y(ge){return u=Fi(u,ge),M(),u[u.length-1]!==null?[]:(q(t,0),g.events=I5(l,g.events,g),g.events)}function k(ge,he){return ZQ(b(ge),he)}function b(ge){return $Q(u,ge)}function _(){const{_bufferIndex:ge,_index:he,line:we,column:Ne,offset:xe}=a;return{_bufferIndex:ge,_index:he,line:we,column:Ne,offset:xe}}function R(ge){i[ge.line]=ge.column,_e()}function M(){let ge;for(;a._index<u.length;){const he=u[a._index];if(typeof he=="string")for(ge=a._index,a._bufferIndex<0&&(a._bufferIndex=0);a._index===ge&&a._bufferIndex<he.length;)L(he.charCodeAt(a._bufferIndex));else L(he)}}function L(ge){x=x(ge)}function P(ge){Zt(ge)?(a.line++,a.column=1,a.offset+=ge===-3?2:1,_e()):ge!==-1&&(a.column++,a.offset++),a._bufferIndex<0?a._index++:(a._bufferIndex++,a._bufferIndex===u[a._index].length&&(a._bufferIndex=-1,a._index++)),g.previous=ge}function F(ge,he){const we=he||{};return we.type=ge,we.start=_(),g.events.push(["enter",we,g]),f.push(we),we}function D(ge){const he=f.pop();return he.end=_(),g.events.push(["exit",he,g]),he}function V(ge,he){q(ge,he.from)}function H(ge,he){he.restore()}function Z(ge,he){return we;function we(Ne,xe,Te){let ve,K,ye,U;return Array.isArray(Ne)?ie(Ne):"tokenize"in Ne?ie([Ne]):X(Ne);function X(De){return Ee;function Ee(Ze){const Qe=Ze!==null&&De[Ze],qe=Ze!==null&&De.null,tt=[...Array.isArray(Qe)?Qe:Qe?[Qe]:[],...Array.isArray(qe)?qe:qe?[qe]:[]];return ie(tt)(Ze)}}function ie(De){return ve=De,K=0,De.length===0?Te:$(De[K])}function $(De){return Ee;function Ee(Ze){return U=ae(),ye=De,De.partial||(g.currentConstruct=De),De.name&&g.parser.constructs.disable.null.includes(De.name)?Ke():De.tokenize.call(he?Object.assign(Object.create(g),he):g,h,Ue,Ke)(Ze)}}function Ue(De){return ge(ye,U),xe}function Ke(De){return U.restore(),++K<ve.length?$(ve[K]):Te}}}function q(ge,he){ge.resolveAll&&!l.includes(ge)&&l.push(ge),ge.resolve&&nl(g.events,he,g.events.length-he,ge.resolve(g.events.slice(he),g)),ge.resolveTo&&(g.events=ge.resolveTo(g.events,g))}function ae(){const ge=_(),he=g.previous,we=g.currentConstruct,Ne=g.events.length,xe=Array.from(f);return{from:Ne,restore:Te};function Te(){a=ge,g.previous=he,g.currentConstruct=we,g.events.length=Ne,f=xe,_e()}}function _e(){a.line in i&&a.column<2&&(a.column=i[a.line],a.offset+=i[a.line]-1)}}function $Q(e,t){const n=t.start._index,a=t.start._bufferIndex,i=t.end._index,l=t.end._bufferIndex;let u;if(n===i)u=[e[n].slice(a,l)];else{if(u=e.slice(n,i),a>-1){const f=u[0];typeof f=="string"?u[0]=f.slice(a):u.shift()}l>0&&u.push(e[i].slice(0,l))}return u}function ZQ(e,t){let n=-1;const a=[];let i;for(;++n<e.length;){const l=e[n];let u;if(typeof l=="string")u=l;else switch(l){case-5:{u="\r";break}case-4:{u=`
430
+ `;break}case-3:{u=`\r
431
+ `;break}case-2:{u=t?" ":" ";break}case-1:{if(!t&&i)continue;u=" ";break}default:u=String.fromCharCode(l)}i=l===-2,a.push(u)}return a.join("")}function WQ(e){const a={constructs:lK([HQ,...(e||{}).extensions||[]]),content:i(gK),defined:[],document:i(yK),flow:i(jQ),lazy:{},string:i(zQ),text:i(UQ)};return a;function i(l){return u;function u(f){return VQ(a,l,f)}}}function qQ(e){for(;!cR(e););return e}const yR=/[\0\t\n\r]/g;function GQ(){let e=1,t="",n=!0,a;return i;function i(l,u,f){const h=[];let g,x,y,k,b;for(l=t+(typeof l=="string"?l.toString():new TextDecoder(u||void 0).decode(l)),y=0,t="",n&&(l.charCodeAt(0)===65279&&y++,n=void 0);y<l.length;){if(yR.lastIndex=y,g=yR.exec(l),k=g&&g.index!==void 0?g.index:l.length,b=l.charCodeAt(k),!g){t=l.slice(y);break}if(b===10&&y===k&&a)h.push(-3),a=void 0;else switch(a&&(h.push(-5),a=void 0),y<k&&(h.push(l.slice(y,k)),e+=k-y),b){case 0:{h.push(65533),e++;break}case 9:{for(x=Math.ceil(e/4)*4,h.push(-2);e++<x;)h.push(-1);break}case 10:{h.push(-4),e=1;break}default:a=!0,e=1}y=k+1}return f&&(a&&h.push(-5),t&&h.push(t),h.push(null)),h}}const YQ=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function JQ(e){return e.replace(YQ,XQ)}function XQ(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),l=i===120||i===88;return tR(n.slice(l?2:1),l?16:10)}return M5(n)||e}const xR={}.hasOwnProperty;function KQ(e,t,n){return typeof t!="string"&&(n=t,t=void 0),QQ(n)(qQ(WQ(n).document().write(GQ()(e,t,!0))))}function QQ(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:l(Hn),autolinkProtocol:ae,autolinkEmail:ae,atxHeading:l(yt),blockQuote:l(qe),characterEscape:ae,characterReference:ae,codeFenced:l(tt),codeFencedFenceInfo:u,codeFencedFenceMeta:u,codeIndented:l(tt,u),codeText:l(Et,u),codeTextData:ae,data:ae,codeFlowValue:ae,definition:l(bt),definitionDestinationString:u,definitionLabelString:u,definitionTitleString:u,emphasis:l(ct),hardBreakEscape:l(Pt),hardBreakTrailing:l(Pt),htmlFlow:l(St,u),htmlFlowData:ae,htmlText:l(St,u),htmlTextData:ae,image:l(jn),label:u,link:l(Hn),listItem:l(At),listItemValue:k,listOrdered:l(Be,y),listUnordered:l(Be),paragraph:l(Pn),reference:$,referenceString:u,resourceDestinationString:u,resourceTitleString:u,setextHeading:l(yt),strong:l(Wt),thematicBreak:l($n)},exit:{atxHeading:h(),atxHeadingSequence:V,autolink:h(),autolinkEmail:Qe,autolinkProtocol:Ze,blockQuote:h(),characterEscapeValue:_e,characterReferenceMarkerHexadecimal:Ke,characterReferenceMarkerNumeric:Ke,characterReferenceValue:De,characterReference:Ee,codeFenced:h(M),codeFencedFence:R,codeFencedFenceInfo:b,codeFencedFenceMeta:_,codeFlowValue:_e,codeIndented:h(L),codeText:h(xe),codeTextData:_e,data:_e,definition:h(),definitionDestinationString:D,definitionLabelString:P,definitionTitleString:F,emphasis:h(),hardBreakEscape:h(he),hardBreakTrailing:h(he),htmlFlow:h(we),htmlFlowData:_e,htmlText:h(Ne),htmlTextData:_e,image:h(ve),label:ye,labelText:K,lineEnding:ge,link:h(Te),listItem:h(),listOrdered:h(),listUnordered:h(),paragraph:h(),referenceString:Ue,resourceDestinationString:U,resourceTitleString:X,resource:ie,setextHeading:h(q),setextHeadingLineSequence:Z,setextHeadingText:H,strong:h(),thematicBreak:h()}};wR(t,(e||{}).mdastExtensions||[]);const n={};return a;function a(me){let Me={type:"root",children:[]};const dt={stack:[Me],tokenStack:[],config:t,enter:f,exit:g,buffer:u,resume:x,data:n},It=[];let Ae=-1;for(;++Ae<me.length;)if(me[Ae][1].type==="listOrdered"||me[Ae][1].type==="listUnordered")if(me[Ae][0]==="enter")It.push(Ae);else{const Ye=It.pop();Ae=i(me,Ye,Ae)}for(Ae=-1;++Ae<me.length;){const Ye=t[me[Ae][0]];xR.call(Ye,me[Ae][1].type)&&Ye[me[Ae][1].type].call(Object.assign({sliceSerialize:me[Ae][2].sliceSerialize},dt),me[Ae][1])}if(dt.tokenStack.length>0){const Ye=dt.tokenStack[dt.tokenStack.length-1];(Ye[1]||bR).call(dt,void 0,Ye[0])}for(Me.position={start:oc(me.length>0?me[0][1].start:{line:1,column:1,offset:0}),end:oc(me.length>0?me[me.length-2][1].end:{line:1,column:1,offset:0})},Ae=-1;++Ae<t.transforms.length;)Me=t.transforms[Ae](Me)||Me;return Me}function i(me,Me,dt){let It=Me-1,Ae=-1,Ye=!1,Nt,xt,Kt,ln;for(;++It<=dt;){const Qt=me[It];switch(Qt[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Qt[0]==="enter"?Ae++:Ae--,ln=void 0;break}case"lineEndingBlank":{Qt[0]==="enter"&&(Nt&&!ln&&!Ae&&!Kt&&(Kt=It),ln=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:ln=void 0}if(!Ae&&Qt[0]==="enter"&&Qt[1].type==="listItemPrefix"||Ae===-1&&Qt[0]==="exit"&&(Qt[1].type==="listUnordered"||Qt[1].type==="listOrdered")){if(Nt){let Qn=It;for(xt=void 0;Qn--;){const dn=me[Qn];if(dn[1].type==="lineEnding"||dn[1].type==="lineEndingBlank"){if(dn[0]==="exit")continue;xt&&(me[xt][1].type="lineEndingBlank",Ye=!0),dn[1].type="lineEnding",xt=Qn}else if(!(dn[1].type==="linePrefix"||dn[1].type==="blockQuotePrefix"||dn[1].type==="blockQuotePrefixWhitespace"||dn[1].type==="blockQuoteMarker"||dn[1].type==="listItemIndent"))break}Kt&&(!xt||Kt<xt)&&(Nt._spread=!0),Nt.end=Object.assign({},xt?me[xt][1].start:Qt[1].end),me.splice(xt||It,0,["exit",Nt,Qt[2]]),It++,dt++}if(Qt[1].type==="listItemPrefix"){const Qn={type:"listItem",_spread:!1,start:Object.assign({},Qt[1].start),end:void 0};Nt=Qn,me.splice(It,0,["enter",Qn,Qt[2]]),It++,dt++,Kt=void 0,ln=!0}}}return me[Me][1]._spread=Ye,dt}function l(me,Me){return dt;function dt(It){f.call(this,me(It),It),Me&&Me.call(this,It)}}function u(){this.stack.push({type:"fragment",children:[]})}function f(me,Me,dt){this.stack[this.stack.length-1].children.push(me),this.stack.push(me),this.tokenStack.push([Me,dt||void 0]),me.position={start:oc(Me.start),end:void 0}}function h(me){return Me;function Me(dt){me&&me.call(this,dt),g.call(this,dt)}}function g(me,Me){const dt=this.stack.pop(),It=this.tokenStack.pop();if(It)It[0].type!==me.type&&(Me?Me.call(this,me,It[0]):(It[1]||bR).call(this,me,It[0]));else throw new Error("Cannot close `"+me.type+"` ("+im({start:me.start,end:me.end})+"): it’s not open");dt.position.end=oc(me.end)}function x(){return iK(this.stack.pop())}function y(){this.data.expectingFirstListItemValue=!0}function k(me){if(this.data.expectingFirstListItemValue){const Me=this.stack[this.stack.length-2];Me.start=Number.parseInt(this.sliceSerialize(me),10),this.data.expectingFirstListItemValue=void 0}}function b(){const me=this.resume(),Me=this.stack[this.stack.length-1];Me.lang=me}function _(){const me=this.resume(),Me=this.stack[this.stack.length-1];Me.meta=me}function R(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function M(){const me=this.resume(),Me=this.stack[this.stack.length-1];Me.value=me.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function L(){const me=this.resume(),Me=this.stack[this.stack.length-1];Me.value=me.replace(/(\r?\n|\r)$/g,"")}function P(me){const Me=this.resume(),dt=this.stack[this.stack.length-1];dt.label=Me,dt.identifier=_p(this.sliceSerialize(me)).toLowerCase()}function F(){const me=this.resume(),Me=this.stack[this.stack.length-1];Me.title=me}function D(){const me=this.resume(),Me=this.stack[this.stack.length-1];Me.url=me}function V(me){const Me=this.stack[this.stack.length-1];if(!Me.depth){const dt=this.sliceSerialize(me).length;Me.depth=dt}}function H(){this.data.setextHeadingSlurpLineEnding=!0}function Z(me){const Me=this.stack[this.stack.length-1];Me.depth=this.sliceSerialize(me).codePointAt(0)===61?1:2}function q(){this.data.setextHeadingSlurpLineEnding=void 0}function ae(me){const dt=this.stack[this.stack.length-1].children;let It=dt[dt.length-1];(!It||It.type!=="text")&&(It=hr(),It.position={start:oc(me.start),end:void 0},dt.push(It)),this.stack.push(It)}function _e(me){const Me=this.stack.pop();Me.value+=this.sliceSerialize(me),Me.position.end=oc(me.end)}function ge(me){const Me=this.stack[this.stack.length-1];if(this.data.atHardBreak){const dt=Me.children[Me.children.length-1];dt.position.end=oc(me.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(Me.type)&&(ae.call(this,me),_e.call(this,me))}function he(){this.data.atHardBreak=!0}function we(){const me=this.resume(),Me=this.stack[this.stack.length-1];Me.value=me}function Ne(){const me=this.resume(),Me=this.stack[this.stack.length-1];Me.value=me}function xe(){const me=this.resume(),Me=this.stack[this.stack.length-1];Me.value=me}function Te(){const me=this.stack[this.stack.length-1];if(this.data.inReference){const Me=this.data.referenceType||"shortcut";me.type+="Reference",me.referenceType=Me,delete me.url,delete me.title}else delete me.identifier,delete me.label;this.data.referenceType=void 0}function ve(){const me=this.stack[this.stack.length-1];if(this.data.inReference){const Me=this.data.referenceType||"shortcut";me.type+="Reference",me.referenceType=Me,delete me.url,delete me.title}else delete me.identifier,delete me.label;this.data.referenceType=void 0}function K(me){const Me=this.sliceSerialize(me),dt=this.stack[this.stack.length-2];dt.label=JQ(Me),dt.identifier=_p(Me).toLowerCase()}function ye(){const me=this.stack[this.stack.length-1],Me=this.resume(),dt=this.stack[this.stack.length-1];if(this.data.inReference=!0,dt.type==="link"){const It=me.children;dt.children=It}else dt.alt=Me}function U(){const me=this.resume(),Me=this.stack[this.stack.length-1];Me.url=me}function X(){const me=this.resume(),Me=this.stack[this.stack.length-1];Me.title=me}function ie(){this.data.inReference=void 0}function $(){this.data.referenceType="collapsed"}function Ue(me){const Me=this.resume(),dt=this.stack[this.stack.length-1];dt.label=Me,dt.identifier=_p(this.sliceSerialize(me)).toLowerCase(),this.data.referenceType="full"}function Ke(me){this.data.characterReferenceType=me.type}function De(me){const Me=this.sliceSerialize(me),dt=this.data.characterReferenceType;let It;dt?(It=tR(Me,dt==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):It=M5(Me);const Ae=this.stack[this.stack.length-1];Ae.value+=It}function Ee(me){const Me=this.stack.pop();Me.position.end=oc(me.end)}function Ze(me){_e.call(this,me);const Me=this.stack[this.stack.length-1];Me.url=this.sliceSerialize(me)}function Qe(me){_e.call(this,me);const Me=this.stack[this.stack.length-1];Me.url="mailto:"+this.sliceSerialize(me)}function qe(){return{type:"blockquote",children:[]}}function tt(){return{type:"code",lang:null,meta:null,value:""}}function Et(){return{type:"inlineCode",value:""}}function bt(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function ct(){return{type:"emphasis",children:[]}}function yt(){return{type:"heading",depth:0,children:[]}}function Pt(){return{type:"break"}}function St(){return{type:"html",value:""}}function jn(){return{type:"image",title:null,url:"",alt:null}}function Hn(){return{type:"link",title:null,url:"",children:[]}}function Be(me){return{type:"list",ordered:me.type==="listOrdered",start:null,spread:me._spread,children:[]}}function At(me){return{type:"listItem",spread:me._spread,checked:null,children:[]}}function Pn(){return{type:"paragraph",children:[]}}function Wt(){return{type:"strong",children:[]}}function hr(){return{type:"text",value:""}}function $n(){return{type:"thematicBreak"}}}function oc(e){return{line:e.line,column:e.column,offset:e.offset}}function wR(e,t){let n=-1;for(;++n<t.length;){const a=t[n];Array.isArray(a)?wR(e,a):eee(e,a)}}function eee(e,t){let n;for(n in t)if(xR.call(t,n))switch(n){case"canContainEols":{const a=t[n];a&&e[n].push(...a);break}case"transforms":{const a=t[n];a&&e[n].push(...a);break}case"enter":case"exit":{const a=t[n];a&&Object.assign(e[n],a);break}}}function bR(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+im({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+im({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+im({start:t.start,end:t.end})+") is still open")}function tee(e){const t=this;t.parser=n;function n(a){return KQ(a,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function nee(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function ree(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
432
+ `}]}function aee(e,t){const n=t.value?t.value+`
433
+ `:"",a={},i=t.lang?t.lang.split(/\s+/):[];i.length>0&&(a.className=["language-"+i[0]]);let l={type:"element",tagName:"code",properties:a,children:[{type:"text",value:n}]};return t.meta&&(l.data={meta:t.meta}),e.patch(t,l),l=e.applyData(t,l),l={type:"element",tagName:"pre",properties:{},children:[l]},e.patch(t,l),l}function oee(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function iee(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function see(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",a=String(t.identifier).toUpperCase(),i=Tp(a.toLowerCase()),l=e.footnoteOrder.indexOf(a);let u,f=e.footnoteCounts.get(a);f===void 0?(f=0,e.footnoteOrder.push(a),u=e.footnoteOrder.length):u=l+1,f+=1,e.footnoteCounts.set(a,f);const h={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+i,id:n+"fnref-"+i+(f>1?"-"+f:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(u)}]};e.patch(t,h);const g={type:"element",tagName:"sup",properties:{},children:[h]};return e.patch(t,g),e.applyData(t,g)}function lee(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function uee(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function CR(e,t){const n=t.referenceType;let a="]";if(n==="collapsed"?a+="[]":n==="full"&&(a+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+a}];const i=e.all(t),l=i[0];l&&l.type==="text"?l.value="["+l.value:i.unshift({type:"text",value:"["});const u=i[i.length-1];return u&&u.type==="text"?u.value+=a:i.push({type:"text",value:a}),i}function cee(e,t){const n=String(t.identifier).toUpperCase(),a=e.definitionById.get(n);if(!a)return CR(e,t);const i={src:Tp(a.url||""),alt:t.alt};a.title!==null&&a.title!==void 0&&(i.title=a.title);const l={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,l),e.applyData(t,l)}function dee(e,t){const n={src:Tp(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const a={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,a),e.applyData(t,a)}function fee(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const a={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,a),e.applyData(t,a)}function pee(e,t){const n=String(t.identifier).toUpperCase(),a=e.definitionById.get(n);if(!a)return CR(e,t);const i={href:Tp(a.url||"")};a.title!==null&&a.title!==void 0&&(i.title=a.title);const l={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,l),e.applyData(t,l)}function hee(e,t){const n={href:Tp(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const a={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function mee(e,t,n){const a=e.all(t),i=n?gee(n):SR(t),l={},u=[];if(typeof t.checked=="boolean"){const x=a[0];let y;x&&x.type==="element"&&x.tagName==="p"?y=x:(y={type:"element",tagName:"p",properties:{},children:[]},a.unshift(y)),y.children.length>0&&y.children.unshift({type:"text",value:" "}),y.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),l.className=["task-list-item"]}let f=-1;for(;++f<a.length;){const x=a[f];(i||f!==0||x.type!=="element"||x.tagName!=="p")&&u.push({type:"text",value:`
434
+ `}),x.type==="element"&&x.tagName==="p"&&!i?u.push(...x.children):u.push(x)}const h=a[a.length-1];h&&(i||h.type!=="element"||h.tagName!=="p")&&u.push({type:"text",value:`
435
+ `});const g={type:"element",tagName:"li",properties:l,children:u};return e.patch(t,g),e.applyData(t,g)}function gee(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let a=-1;for(;!t&&++a<n.length;)t=SR(n[a])}return t}function SR(e){const t=e.spread;return t==null?e.children.length>1:t}function vee(e,t){const n={},a=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++i<a.length;){const u=a[i];if(u.type==="element"&&u.tagName==="li"&&u.properties&&Array.isArray(u.properties.className)&&u.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const l={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(a,!0)};return e.patch(t,l),e.applyData(t,l)}function yee(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function xee(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function wee(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function bee(e,t){const n=e.all(t),a=n.shift(),i=[];if(a){const u={type:"element",tagName:"thead",properties:{},children:e.wrap([a],!0)};e.patch(t.children[0],u),i.push(u)}if(n.length>0){const u={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},f=E5(t.children[1]),h=VT(t.children[t.children.length-1]);f&&h&&(u.position={start:f,end:h}),i.push(u)}const l={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,l),e.applyData(t,l)}function Cee(e,t,n){const a=n?n.children:void 0,l=(a?a.indexOf(t):1)===0?"th":"td",u=n&&n.type==="table"?n.align:void 0,f=u?u.length:t.children.length;let h=-1;const g=[];for(;++h<f;){const y=t.children[h],k={},b=u?u[h]:void 0;b&&(k.align=b);let _={type:"element",tagName:l,properties:k,children:[]};y&&(_.children=e.all(y),e.patch(y,_),_=e.applyData(y,_)),g.push(_)}const x={type:"element",tagName:"tr",properties:{},children:e.wrap(g,!0)};return e.patch(t,x),e.applyData(t,x)}function See(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const kR=9,ER=32;function kee(e){const t=String(e),n=/\r?\n|\r/g;let a=n.exec(t),i=0;const l=[];for(;a;)l.push(_R(t.slice(i,a.index),i>0,!0),a[0]),i=a.index+a[0].length,a=n.exec(t);return l.push(_R(t.slice(i),i>0,!1)),l.join("")}function _R(e,t,n){let a=0,i=e.length;if(t){let l=e.codePointAt(a);for(;l===kR||l===ER;)a++,l=e.codePointAt(a)}if(n){let l=e.codePointAt(i-1);for(;l===kR||l===ER;)i--,l=e.codePointAt(i-1)}return i>a?e.slice(a,i):""}function Eee(e,t){const n={type:"text",value:kee(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function _ee(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const Tee={blockquote:nee,break:ree,code:aee,delete:oee,emphasis:iee,footnoteReference:see,heading:lee,html:uee,imageReference:cee,image:dee,inlineCode:fee,linkReference:pee,link:hee,listItem:mee,list:vee,paragraph:yee,root:xee,strong:wee,table:bee,tableCell:See,tableRow:Cee,text:Eee,thematicBreak:_ee,toml:Y0,yaml:Y0,definition:Y0,footnoteDefinition:Y0};function Y0(){}const TR=-1,J0=0,cm=1,X0=2,z5=3,U5=4,B5=5,H5=6,RR=7,AR=8,NR=typeof self=="object"?self:globalThis,Ree=(e,t)=>{const n=(i,l)=>(e.set(l,i),i),a=i=>{if(e.has(i))return e.get(i);const[l,u]=t[i];switch(l){case J0:case TR:return n(u,i);case cm:{const f=n([],i);for(const h of u)f.push(a(h));return f}case X0:{const f=n({},i);for(const[h,g]of u)f[a(h)]=a(g);return f}case z5:return n(new Date(u),i);case U5:{const{source:f,flags:h}=u;return n(new RegExp(f,h),i)}case B5:{const f=n(new Map,i);for(const[h,g]of u)f.set(a(h),a(g));return f}case H5:{const f=n(new Set,i);for(const h of u)f.add(a(h));return f}case RR:{const{name:f,message:h}=u;return n(new NR[f](h),i)}case AR:return n(BigInt(u),i);case"BigInt":return n(Object(BigInt(u)),i);case"ArrayBuffer":return n(new Uint8Array(u).buffer,u);case"DataView":{const{buffer:f}=new Uint8Array(u);return n(new DataView(f),u)}}return n(new NR[l](u),i)};return a},MR=e=>Ree(new Map,e)(0),Rp="",{toString:Aee}={},{keys:Nee}=Object,dm=e=>{const t=typeof e;if(t!=="object"||!e)return[J0,t];const n=Aee.call(e).slice(8,-1);switch(n){case"Array":return[cm,Rp];case"Object":return[X0,Rp];case"Date":return[z5,Rp];case"RegExp":return[U5,Rp];case"Map":return[B5,Rp];case"Set":return[H5,Rp];case"DataView":return[cm,n]}return n.includes("Array")?[cm,n]:n.includes("Error")?[RR,n]:[X0,n]},K0=([e,t])=>e===J0&&(t==="function"||t==="symbol"),Mee=(e,t,n,a)=>{const i=(u,f)=>{const h=a.push(u)-1;return n.set(f,h),h},l=u=>{if(n.has(u))return n.get(u);let[f,h]=dm(u);switch(f){case J0:{let x=u;switch(h){case"bigint":f=AR,x=u.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+h);x=null;break;case"undefined":return i([TR],u)}return i([f,x],u)}case cm:{if(h){let k=u;return h==="DataView"?k=new Uint8Array(u.buffer):h==="ArrayBuffer"&&(k=new Uint8Array(u)),i([h,[...k]],u)}const x=[],y=i([f,x],u);for(const k of u)x.push(l(k));return y}case X0:{if(h)switch(h){case"BigInt":return i([h,u.toString()],u);case"Boolean":case"Number":case"String":return i([h,u.valueOf()],u)}if(t&&"toJSON"in u)return l(u.toJSON());const x=[],y=i([f,x],u);for(const k of Nee(u))(e||!K0(dm(u[k])))&&x.push([l(k),l(u[k])]);return y}case z5:return i([f,u.toISOString()],u);case U5:{const{source:x,flags:y}=u;return i([f,{source:x,flags:y}],u)}case B5:{const x=[],y=i([f,x],u);for(const[k,b]of u)(e||!(K0(dm(k))||K0(dm(b))))&&x.push([l(k),l(b)]);return y}case H5:{const x=[],y=i([f,x],u);for(const k of u)(e||!K0(dm(k)))&&x.push(l(k));return y}}const{message:g}=u;return i([f,{name:h,message:g}],u)};return l},OR=(e,{json:t,lossy:n}={})=>{const a=[];return Mee(!(t||n),!!t,new Map,a)(e),a},Q0=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?MR(OR(e,t)):structuredClone(e):(e,t)=>MR(OR(e,t));function Oee(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function Lee(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function Iee(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||Oee,a=e.options.footnoteBackLabel||Lee,i=e.options.footnoteLabel||"Footnotes",l=e.options.footnoteLabelTagName||"h2",u=e.options.footnoteLabelProperties||{className:["sr-only"]},f=[];let h=-1;for(;++h<e.footnoteOrder.length;){const g=e.footnoteById.get(e.footnoteOrder[h]);if(!g)continue;const x=e.all(g),y=String(g.identifier).toUpperCase(),k=Tp(y.toLowerCase());let b=0;const _=[],R=e.footnoteCounts.get(y);for(;R!==void 0&&++b<=R;){_.length>0&&_.push({type:"text",value:" "});let P=typeof n=="string"?n:n(h,b);typeof P=="string"&&(P={type:"text",value:P}),_.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+k+(b>1?"-"+b:""),dataFootnoteBackref:"",ariaLabel:typeof a=="string"?a:a(h,b),className:["data-footnote-backref"]},children:Array.isArray(P)?P:[P]})}const M=x[x.length-1];if(M&&M.type==="element"&&M.tagName==="p"){const P=M.children[M.children.length-1];P&&P.type==="text"?P.value+=" ":M.children.push({type:"text",value:" "}),M.children.push(..._)}else x.push(..._);const L={type:"element",tagName:"li",properties:{id:t+"fn-"+k},children:e.wrap(x,!0)};e.patch(g,L),f.push(L)}if(f.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:l,properties:{...Q0(u),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:`
436
+ `},{type:"element",tagName:"ol",properties:{},children:e.wrap(f,!0)},{type:"text",value:`
437
+ `}]}}const LR=function(e){if(e==null)return Fee;if(typeof e=="function")return e4(e);if(typeof e=="object")return Array.isArray(e)?Dee(e):jee(e);if(typeof e=="string")return Pee(e);throw new Error("Expected function, string, or object as test")};function Dee(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=LR(e[n]);return e4(a);function a(...i){let l=-1;for(;++l<t.length;)if(t[l].apply(this,i))return!0;return!1}}function jee(e){const t=e;return e4(n);function n(a){const i=a;let l;for(l in e)if(i[l]!==t[l])return!1;return!0}}function Pee(e){return e4(t);function t(n){return n&&n.type===e}}function e4(e){return t;function t(n,a,i){return!!(zee(n)&&e.call(this,n,typeof a=="number"?a:void 0,i||void 0))}}function Fee(){return!0}function zee(e){return e!==null&&typeof e=="object"&&"type"in e}function n1e(e){return e}const IR=[],Uee=!0,DR=!1,Bee="skip";function Hee(e,t,n,a){let i;typeof t=="function"&&typeof n!="function"?(a=n,n=t):i=t;const l=LR(i),u=a?-1:1;f(e,void 0,[])();function f(h,g,x){const y=h&&typeof h=="object"?h:{};if(typeof y.type=="string"){const b=typeof y.tagName=="string"?y.tagName:typeof y.name=="string"?y.name:void 0;Object.defineProperty(k,"name",{value:"node ("+(h.type+(b?"<"+b+">":""))+")"})}return k;function k(){let b=IR,_,R,M;if((!t||l(h,g,x[x.length-1]||void 0))&&(b=Vee(n(h,x)),b[0]===DR))return b;if("children"in h&&h.children){const L=h;if(L.children&&b[0]!==Bee)for(R=(a?L.children.length:-1)+u,M=x.concat(L);R>-1&&R<L.children.length;){const P=L.children[R];if(_=f(P,R,M)(),_[0]===DR)return _;R=typeof _[1]=="number"?_[1]:R+u}}return b}}}function Vee(e){return Array.isArray(e)?e:typeof e=="number"?[Uee,e]:e==null?IR:[e]}function jR(e,t,n,a){let i,l,u;typeof t=="function"&&typeof n!="function"?(l=void 0,u=t,i=n):(l=t,u=n,i=a),Hee(e,l,f,i);function f(h,g){const x=g[g.length-1],y=x?x.children.indexOf(h):void 0;return u(h,y,x)}}const V5={}.hasOwnProperty,$ee={};function Zee(e,t){const n=t||$ee,a=new Map,i=new Map,l=new Map,u={...Tee,...n.handlers},f={all:g,applyData:qee,definitionById:a,footnoteById:i,footnoteCounts:l,footnoteOrder:[],handlers:u,one:h,options:n,patch:Wee,wrap:Yee};return jR(e,function(x){if(x.type==="definition"||x.type==="footnoteDefinition"){const y=x.type==="definition"?a:i,k=String(x.identifier).toUpperCase();y.has(k)||y.set(k,x)}}),f;function h(x,y){const k=x.type,b=f.handlers[k];if(V5.call(f.handlers,k)&&b)return b(f,x,y);if(f.options.passThrough&&f.options.passThrough.includes(k)){if("children"in x){const{children:R,...M}=x,L=Q0(M);return L.children=f.all(x),L}return Q0(x)}return(f.options.unknownHandler||Gee)(f,x,y)}function g(x){const y=[];if("children"in x){const k=x.children;let b=-1;for(;++b<k.length;){const _=f.one(k[b],x);if(_){if(b&&k[b-1].type==="break"&&(!Array.isArray(_)&&_.type==="text"&&(_.value=PR(_.value)),!Array.isArray(_)&&_.type==="element")){const R=_.children[0];R&&R.type==="text"&&(R.value=PR(R.value))}Array.isArray(_)?y.push(..._):y.push(_)}}}return y}}function Wee(e,t){e.position&&(t.position=FX(e))}function qee(e,t){let n=t;if(e&&e.data){const a=e.data.hName,i=e.data.hChildren,l=e.data.hProperties;if(typeof a=="string")if(n.type==="element")n.tagName=a;else{const u="children"in n?n.children:[n];n={type:"element",tagName:a,properties:{},children:u}}n.type==="element"&&l&&Object.assign(n.properties,Q0(l)),"children"in n&&n.children&&i!==null&&i!==void 0&&(n.children=i)}return n}function Gee(e,t){const n=t.data||{},a="value"in t&&!(V5.call(n,"hProperties")||V5.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function Yee(e,t){const n=[];let a=-1;for(t&&n.push({type:"text",value:`
438
+ `});++a<e.length;)a&&n.push({type:"text",value:`
439
+ `}),n.push(e[a]);return t&&e.length>0&&n.push({type:"text",value:`
440
+ `}),n}function PR(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function FR(e,t){const n=Zee(e,t),a=n.one(e,void 0),i=Iee(n),l=Array.isArray(a)?{type:"root",children:a}:a||{type:"root",children:[]};return i&&l.children.push({type:"text",value:`
441
+ `},i),l}function Jee(e,t){return e&&"run"in e?async function(n,a){const i=FR(n,{file:a,...t});await e.run(i,a)}:function(n,a){return FR(n,{file:a,...e||t})}}function zR(e){if(e)throw e}var t4=Object.prototype.hasOwnProperty,UR=Object.prototype.toString,BR=Object.defineProperty,HR=Object.getOwnPropertyDescriptor,VR=function(t){return typeof Array.isArray=="function"?Array.isArray(t):UR.call(t)==="[object Array]"},$R=function(t){if(!t||UR.call(t)!=="[object Object]")return!1;var n=t4.call(t,"constructor"),a=t.constructor&&t.constructor.prototype&&t4.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!a)return!1;var i;for(i in t);return typeof i=="undefined"||t4.call(t,i)},ZR=function(t,n){BR&&n.name==="__proto__"?BR(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},WR=function(t,n){if(n==="__proto__")if(t4.call(t,n)){if(HR)return HR(t,n).value}else return;return t[n]},Xee=function e(){var t,n,a,i,l,u,f=arguments[0],h=1,g=arguments.length,x=!1;for(typeof f=="boolean"&&(x=f,f=arguments[1]||{},h=2),(f==null||typeof f!="object"&&typeof f!="function")&&(f={});h<g;++h)if(t=arguments[h],t!=null)for(n in t)a=WR(f,n),i=WR(t,n),f!==i&&(x&&i&&($R(i)||(l=VR(i)))?(l?(l=!1,u=a&&VR(a)?a:[]):u=a&&$R(a)?a:{},ZR(f,{name:n,newValue:e(x,u,i)})):typeof i!="undefined"&&ZR(f,{name:n,newValue:i}));return f};const $5=Wu(Xee);function Z5(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Kee(){const e=[],t={run:n,use:a};return t;function n(...i){let l=-1;const u=i.pop();if(typeof u!="function")throw new TypeError("Expected function as last argument, not "+u);f(null,...i);function f(h,...g){const x=e[++l];let y=-1;if(h){u(h);return}for(;++y<i.length;)(g[y]===null||g[y]===void 0)&&(g[y]=i[y]);i=g,x?Qee(x,f)(...g):u(null,...g)}}function a(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),t}}function Qee(e,t){let n;return a;function a(...u){const f=e.length>u.length;let h;f&&u.push(i);try{h=e.apply(this,u)}catch(g){const x=g;if(f&&n)throw x;return i(x)}f||(h&&h.then&&typeof h.then=="function"?h.then(l,i):h instanceof Error?i(h):l(h))}function i(u,...f){n||(n=!0,t(u,...f))}function l(u){i(null,u)}}const al={basename:ete,dirname:tte,extname:nte,join:rte,sep:"/"};function ete(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');fm(e);let n=0,a=-1,i=e.length,l;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(l){n=i+1;break}}else a<0&&(l=!0,a=i+1);return a<0?"":e.slice(n,a)}if(t===e)return"";let u=-1,f=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(l){n=i+1;break}}else u<0&&(l=!0,u=i+1),f>-1&&(e.codePointAt(i)===t.codePointAt(f--)?f<0&&(a=i):(f=-1,a=u));return n===a?a=u:a<0&&(a=e.length),e.slice(n,a)}function tte(e){if(fm(e),e.length===0)return".";let t=-1,n=e.length,a;for(;--n;)if(e.codePointAt(n)===47){if(a){t=n;break}}else a||(a=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function nte(e){fm(e);let t=e.length,n=-1,a=0,i=-1,l=0,u;for(;t--;){const f=e.codePointAt(t);if(f===47){if(u){a=t+1;break}continue}n<0&&(u=!0,n=t+1),f===46?i<0?i=t:l!==1&&(l=1):i>-1&&(l=-1)}return i<0||n<0||l===0||l===1&&i===n-1&&i===a+1?"":e.slice(i,n)}function rte(...e){let t=-1,n;for(;++t<e.length;)fm(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":ate(n)}function ate(e){fm(e);const t=e.codePointAt(0)===47;let n=ote(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function ote(e,t){let n="",a=0,i=-1,l=0,u=-1,f,h;for(;++u<=e.length;){if(u<e.length)f=e.codePointAt(u);else{if(f===47)break;f=47}if(f===47){if(!(i===u-1||l===1))if(i!==u-1&&l===2){if(n.length<2||a!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(h=n.lastIndexOf("/"),h!==n.length-1){h<0?(n="",a=0):(n=n.slice(0,h),a=n.length-1-n.lastIndexOf("/")),i=u,l=0;continue}}else if(n.length>0){n="",a=0,i=u,l=0;continue}}t&&(n=n.length>0?n+"/..":"..",a=2)}else n.length>0?n+="/"+e.slice(i+1,u):n=e.slice(i+1,u),a=u-i-1;i=u,l=0}else f===46&&l>-1?l++:l=-1}return n}function fm(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const ite={cwd:ste};function ste(){return"/"}function W5(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function lte(e){if(typeof e=="string")e=new URL(e);else if(!W5(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return ute(e)}function ute(e){if(e.hostname!==""){const a=new TypeError('File URL host must be "localhost" or empty on darwin');throw a.code="ERR_INVALID_FILE_URL_HOST",a}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const a=t.codePointAt(n+2);if(a===70||a===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(t)}const q5=["history","path","basename","stem","extname","dirname"];class qR{constructor(t){let n;t?W5(t)?n={path:t}:typeof t=="string"||cte(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":ite.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let a=-1;for(;++a<q5.length;){const l=q5[a];l in n&&n[l]!==void 0&&n[l]!==null&&(this[l]=l==="history"?[...n[l]]:n[l])}let i;for(i in n)q5.includes(i)||(this[i]=n[i])}get basename(){return typeof this.path=="string"?al.basename(this.path):void 0}set basename(t){Y5(t,"basename"),G5(t,"basename"),this.path=al.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?al.dirname(this.path):void 0}set dirname(t){GR(this.basename,"dirname"),this.path=al.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?al.extname(this.path):void 0}set extname(t){if(G5(t,"extname"),GR(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=al.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){W5(t)&&(t=lte(t)),Y5(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?al.basename(this.path,this.extname):void 0}set stem(t){Y5(t,"stem"),G5(t,"stem"),this.path=al.join(this.dirname||"",t+(this.extname||""))}fail(t,n,a){const i=this.message(t,n,a);throw i.fatal=!0,i}info(t,n,a){const i=this.message(t,n,a);return i.fatal=void 0,i}message(t,n,a){const i=new Qa(t,n,a);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function G5(e,t){if(e&&e.includes(al.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+al.sep+"`")}function Y5(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function GR(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function cte(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const dte=function(e){const a=this.constructor.prototype,i=a[e],l=function(){return i.apply(l,arguments)};return Object.setPrototypeOf(l,a),l},fte={}.hasOwnProperty;class J5 extends dte{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=Kee()}copy(){const t=new J5;let n=-1;for(;++n<this.attachers.length;){const a=this.attachers[n];t.use(...a)}return t.data($5(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(Q5("data",this.frozen),this.namespace[t]=n,this):fte.call(this.namespace,t)&&this.namespace[t]||void 0:t?(Q5("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...a]=this.attachers[this.freezeIndex];if(a[0]===!1)continue;a[0]===!0&&(a[0]=void 0);const i=n.call(t,...a);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=n4(t),a=this.parser||this.Parser;return X5("parse",a),a(String(n),n)}process(t,n){const a=this;return this.freeze(),X5("process",this.parser||this.Parser),K5("process",this.compiler||this.Compiler),n?i(void 0,n):new Promise(i);function i(l,u){const f=n4(t),h=a.parse(f);a.run(h,f,function(x,y,k){if(x||!y||!k)return g(x);const b=y,_=a.stringify(b,k);mte(_)?k.value=_:k.result=_,g(x,k)});function g(x,y){x||!y?u(x):l?l(y):n(void 0,y)}}}processSync(t){let n=!1,a;return this.freeze(),X5("processSync",this.parser||this.Parser),K5("processSync",this.compiler||this.Compiler),this.process(t,i),JR("processSync","process",n),a;function i(l,u){n=!0,zR(l),a=u}}run(t,n,a){YR(t),this.freeze();const i=this.transformers;return!a&&typeof n=="function"&&(a=n,n=void 0),a?l(void 0,a):new Promise(l);function l(u,f){const h=n4(n);i.run(t,h,g);function g(x,y,k){const b=y||t;x?f(x):u?u(b):a(void 0,b,k)}}}runSync(t,n){let a=!1,i;return this.run(t,n,l),JR("runSync","run",a),i;function l(u,f){zR(u),i=f,a=!0}}stringify(t,n){this.freeze();const a=n4(n),i=this.compiler||this.Compiler;return K5("stringify",i),YR(t),i(t,a)}use(t,...n){const a=this.attachers,i=this.namespace;if(Q5("use",this.frozen),t!=null)if(typeof t=="function")h(t,n);else if(typeof t=="object")Array.isArray(t)?f(t):u(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function l(g){if(typeof g=="function")h(g,[]);else if(typeof g=="object")if(Array.isArray(g)){const[x,...y]=g;h(x,y)}else u(g);else throw new TypeError("Expected usable value, not `"+g+"`")}function u(g){if(!("plugins"in g)&&!("settings"in g))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");f(g.plugins),g.settings&&(i.settings=$5(!0,i.settings,g.settings))}function f(g){let x=-1;if(g!=null)if(Array.isArray(g))for(;++x<g.length;){const y=g[x];l(y)}else throw new TypeError("Expected a list of plugins, not `"+g+"`")}function h(g,x){let y=-1,k=-1;for(;++y<a.length;)if(a[y][0]===g){k=y;break}if(k===-1)a.push([g,...x]);else if(x.length>0){let[b,..._]=x;const R=a[k][1];Z5(R)&&Z5(b)&&(b=$5(!0,R,b)),a[k]=[g,b,..._]}}}}const pte=new J5().freeze();function X5(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function K5(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Q5(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function YR(e){if(!Z5(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function JR(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function n4(e){return hte(e)?e:new qR(e)}function hte(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function mte(e){return typeof e=="string"||gte(e)}function gte(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const vte="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",XR=[],KR={allowDangerousHtml:!0},yte=/^(https?|ircs?|mailto|xmpp)$/i,xte=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function wte(e){const t=bte(e),n=Cte(e);return Ste(t.runSync(t.parse(n),n),e)}function bte(e){const t=e.rehypePlugins||XR,n=e.remarkPlugins||XR,a=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...KR}:KR;return pte().use(tee).use(n).use(Jee,a).use(t)}function Cte(e){const t=e.children||"",n=new qR;return typeof t=="string"&&(n.value=t),n}function Ste(e,t){const n=t.allowedElements,a=t.allowElement,i=t.components,l=t.disallowedElements,u=t.skipHtml,f=t.unwrapDisallowed,h=t.urlTransform||kte;for(const x of xte)Object.hasOwn(t,x.from)&&(""+x.from+(x.to?"use `"+x.to+"` instead":"remove it")+vte+x.id,void 0);return jR(e,g),VX(e,{Fragment:C.Fragment,components:i,ignoreInvalidStyle:!0,jsx:C.jsx,jsxs:C.jsxs,passKeys:!0,passNode:!0});function g(x,y,k){if(x.type==="raw"&&k&&typeof y=="number")return u?k.children.splice(y,1):k.children[y]={type:"text",value:x.value},y;if(x.type==="element"){let b;for(b in N5)if(Object.hasOwn(N5,b)&&Object.hasOwn(x.properties,b)){const _=x.properties[b],R=N5[b];(R===null||R.includes(x.tagName))&&(x.properties[b]=h(String(_||""),b,x))}}if(x.type==="element"){let b=n?!n.includes(x.tagName):l?l.includes(x.tagName):!1;if(!b&&a&&typeof y=="number"&&(b=!a(x,y,k)),b&&k&&typeof y=="number")return f&&x.children?k.children.splice(y,1,...x.children):k.children.splice(y,1),y}}}function kte(e){const t=e.indexOf(":"),n=e.indexOf("?"),a=e.indexOf("#"),i=e.indexOf("/");return t===-1||i!==-1&&t>i||n!==-1&&t>n||a!==-1&&t>a||yte.test(e.slice(0,t))?e:""}function Ete(e){return Kn.lexer(e).map(n=>n.raw)}const QR=O.memo(({content:e})=>C.jsx(wte,{children:e}),(e,t)=>e.content===t.content);QR.displayName="MemoizedMarkdownBlock";const pm=O.memo(({content:e,id:t})=>O.useMemo(()=>Ete(e),[e]).map((a,i)=>C.jsx(QR,{content:a},`${t}-block_${i}`)));pm.displayName="MemoizedMarkdown";const _te=({text:e,children:t})=>C.jsx("div",{className:"px-2.5 py-[7px] text-[#0265FF] text-[14px] w-fit",style:{borderRadius:"10px 0 10px 10px",wordWrap:"break-word",background:"linear-gradient(180deg, #DBE9FF 0%, #E9FFFD 100%)"},children:e||t}),hm=({title:e,content:t,icon:n,disableExpand:a,children:i,defaultOpen:l})=>{const[u,f]=O.useState(l);return C.jsxs("div",{className:"bg-[#fafafa] border border-[#e0e0e0] border-solid flex flex-col gap-2.5 p-2.5 rounded-[10px] w-full",children:[C.jsxs("div",{className:We("flex items-center justify-between w-full",{"cursor-pointer":!a}),onClick:()=>{a||f(!u)},children:[C.jsxs("div",{className:"flex gap-[10px] items-center",children:[C.jsx("div",{className:"w-4 h-4 shrink-0 flex items-center",children:n||C.jsx(XE,{})}),C.jsx("p",{className:"text-[#666] text-[14px] leading-normal",children:e})]}),C.jsx("button",{onClick:()=>{a||f(!u)},className:We("flex items-center justify-center w-5 h-5 rounded-[4px] cursor-pointer hover:bg-[#EFF0F6]",ra,{"pointer-events-none opacity-0":a}),children:C.jsx(vq,{isOpen:u})})]}),u&&!a&&C.jsx("div",{className:"text-[#121111] text-[14px] word-wrap",children:t||i})]})},r4=e=>{const{part:t,role:n,id:a,collapsible:i=!0,collapsibleTitle:l="表单设计"}=e,u=t;if(u.type!=="text"||!u.text)return null;const f=We({prose:n==="assistant"});return n==="user"?C.jsx(_te,{children:u.text}):i?C.jsx("div",{children:C.jsxs(Ka,{className:We("text-[14px]",{"bg-transparent px-0 py-0 text-left":n==="assistant"}),"data-testid":"message-content",children:[C.jsx(hm,{title:l,icon:C.jsx(XE,{}),defaultOpen:!0,children:C.jsx("article",{className:f,style:{fontSize:14},children:C.jsx(pm,{id:a,content:y0(u.text)})})}),e.children]})}):C.jsx("div",{children:C.jsxs(Ka,{className:We("text-[14px]",{"bg-transparent px-0 py-0 text-left":n==="assistant"}),"data-testid":"message-content",children:[C.jsx("article",{className:f,style:{fontSize:14},children:C.jsx(pm,{id:a,content:y0(u.text)})}),e.children]})})},Td=({children:e,headless:t,className:n})=>{const a=mp("AvatarAndName");if(t)return C.jsx("div",{children:C.jsx(Ka,{className:We("w-fit wrap-break-words rounded-2 bg-transparent px-0 py-0 text-left",n),"data-testid":"message-content",children:e})});const i=a==null?void 0:a.Component,l=i?C.jsx(i,{}):C.jsx(qh,{name:"AI表单搭建"});return C.jsx("div",{className:We("group/message w-full"),"data-role":"assistant","data-testid":"message-assistant",children:C.jsxs("div",{className:"flex w-full flex-col items-start justify-start gap-2.5",children:[l,C.jsx("div",{className:"flex flex-col min-w-0 grow gap-2.5 w-full",children:C.jsx(Ka,{className:"w-full wrap-break-words rounded-2 bg-transparent px-0 py-0 text-left","data-testid":"message-content",children:e})})]})})},Tte=({error:e})=>C.jsx(Td,{headless:!0,children:e||"出现了一些问题,无法显示预览内容,请稍后重试。"});class Rte extends Po.Component{constructor(t){super(t),this.state={hasError:!1,error:""}}static getDerivedStateFromError(t){return{hasError:!0,error:t.message}}render(){return this.state.hasError?C.jsx(Tte,{error:this.state.error}):this.props.children}}const eA=({message:e="程序错误,请刷新页面重试",className:t})=>C.jsxs("div",{className:We("flex flex-col items-center gap-[10px]",t),children:[C.jsx("div",{className:"bg-no-repeat bg-center",style:{backgroundImage:cq,backgroundSize:"100% 100%",width:120,height:77}}),C.jsx("p",{className:"text-[12px] text-[#999] leading-normal",children:e})]}),Ate=({url:e,alt:t="",className:n,size:a=102})=>C.jsx("div",{className:We("relative overflow-hidden rounded-[10px]",n),style:{width:a,height:a},children:C.jsx("img",{src:e,alt:t,className:"block w-full h-full object-cover rounded-[10px]",loading:"lazy"})}),mm={"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{icon:w0,iconSize:52},"application/vnd.ms-excel":{icon:w0,iconSize:52},"text/csv":{icon:e_,iconSize:16},"text/plain":{icon:b0,iconSize:16},"application/octet-stream":{icon:b0,iconSize:16}},Nte={icon:QE,iconSize:16},Mte=e=>!!(e!=null&&e.startsWith("image/")),Ote=(e,t)=>{var n;if(e&&mm[e])return mm[e];if(t)switch((n=t.split(".").pop())==null?void 0:n.toLowerCase()){case"xlsx":case"xls":return mm["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"];case"csv":return mm["text/csv"];case"txt":case"ts":case"tsx":case"js":case"jsx":case"json":case"md":return mm["text/plain"]}return Nte},Lte=e=>{if(!e)return;const t=e.split("/");return t[t.length-1]},Ite=({fileName:e,icon:t,iconSize:n,className:a,size:i=102})=>{const l=i/102,u=52/102*i,f=u/n,h=!!e;return C.jsxs("div",{className:We("relative flex flex-col items-center justify-center rounded-[10px] bg-[#EFF0F6] px-[10px]",h&&"gap-[6px]",a),style:{width:i,height:i},children:[C.jsx("div",{className:"shrink-0 flex items-center justify-center",style:{width:u,height:u},children:C.jsx("div",{style:{transform:f!==1?`scale(${f})`:void 0,transformOrigin:"center"},children:C.jsx(t,{})})}),h&&C.jsx("p",{className:"block max-w-full shrink-0 truncate text-center text-[14px] leading-normal text-[#030303]",style:{fontSize:14*l,maxWidth:"100%",display:"block"},title:e,children:e})]})},tA=({part:e,className:t,size:n=102,iconOnly:a})=>{const{url:i,name:l,mediaType:u}=e;if(Mte(u))return C.jsx(Ate,{url:i,alt:l,className:t,size:n});const{icon:f,iconSize:h}=Ote(u,l),g=a?void 0:Lte(l);return C.jsx(Ite,{fileName:g,icon:f,iconSize:h,className:t,size:n})},Dte=({parts:e,className:t,size:n=102,gap:a=10,iconOnly:i})=>e.length?C.jsx("div",{className:We("flex flex-wrap content-center items-center",t),style:{gap:a},children:e.map((l,u)=>C.jsx(tA,{part:l,size:n,iconOnly:i},l.url||u))}):null,e7=()=>{const{status:e,setStatus:t}=Wl(n=>({status:n.chatStatus,setStatus:n.setChatStatus}));return{status:e,setStatus:t,isHide:e==="hide",isVisible:e!=="hide",isFloat:e==="float",isDock:e==="dock"}},xs=()=>{const{eventBus:e}=Wl(t=>({eventBus:t.eventBus}));return e},jte=({message:e,isLoading:t,addToolOutput:n,sendMessage:a,setMessages:i,status:l,regenerate:u,requiresScrollPadding:f})=>{var V,H;const h=(V=e.parts)==null?void 0:V.some(Z=>{var q;return Z.type==="text"&&((q=Z.text)==null?void 0:q.trim())}),g=e7(),x=(H=e.parts)==null?void 0:H.some(Z=>Array.isArray(Z)?Z.some(q=>(q==null?void 0:q.type)==="file"):(Z==null?void 0:Z.type)==="file"),y=U9("MessagePart"),k=y[0],b=y.length>0?k.Component:r4,{exec:_=Z=>Z}=Cp("onBeforeMessagePartsRender"),R=lq(e.parts),M=_(R),L=xs(),{exec:P}=Cp("onBeforeMessageSend"),F=()=>{var q;const Z=(q=e.parts)==null?void 0:q.filter(ae=>ae.type==="text"&&ae.text).map(ae=>ae.text).join(`
442
+ `);if(Z)try{navigator.clipboard.writeText(Z),L.emit("chat-msg-copied",{messageId:e.id,content:Z})}catch(ae){}},D=()=>{const{options:Z}=P({});u==null||u({messageId:e.id,...Z})};return g.isHide?null:C.jsx(uJ,{role:e.role,onCopy:F,onGenerate:u?D:void 0,isLoading:t,requiresScrollPadding:f,hasTextPart:h,hasFileType:x,children:M==null?void 0:M.map((Z,q)=>{const ae=`message-${e.id}-part-${q}-${Array.isArray(Z)?"file-group":Z.type}`;if(QW(Z))return C.jsx(tA,{part:Z,iconOnly:!0},ae);if(eq(Z))return C.jsx(Dte,{parts:Z,iconOnly:!0},ae);if(ZE(Z)){const _e=rq(Z);return C.jsx(eA,{message:_e},ae)}return tq(Z)?C.jsx(Td,{headless:!0,children:C.jsx(z0,{children:nq(Z)})},ae):C.jsx(Rte,{children:C.jsx(b,{setMessages:i,sendMessage:a,addToolOutput:n,isLoading:t,status:l,part:Z,index:q,role:e.role,id:e.id},ae)})})})},Pte=e=>{var a;const t=U9(e);return!t||!t.length?null:(a=t[0].Component)!=null?a:null},Fte=O.forwardRef(({className:e,...t},n)=>C.jsx("div",{ref:n,className:We("rounded-xl border bg-card text-card-foreground shadow",e),...t}));Fte.displayName="Card";const zte=O.forwardRef(({className:e,...t},n)=>C.jsx("div",{ref:n,className:We("flex flex-col space-y-1.5 p-6",e),...t}));zte.displayName="CardHeader";const Ute=O.forwardRef(({className:e,...t},n)=>C.jsx("div",{ref:n,className:We("font-semibold leading-none tracking-tight",e),...t}));Ute.displayName="CardTitle";const Bte=O.forwardRef(({className:e,...t},n)=>C.jsx("div",{ref:n,className:We("text-sm text-muted-foreground",e),...t}));Bte.displayName="CardDescription";const Hte=O.forwardRef(({className:e,...t},n)=>C.jsx("div",{ref:n,className:We("p-6 pt-0",e),...t}));Hte.displayName="CardContent";const Vte=O.forwardRef(({className:e,...t},n)=>C.jsx("div",{ref:n,className:We("flex items-center p-6 pt-0",e),...t}));Vte.displayName="CardFooter";const $te=({title:e,desc:t,index:n,icon:a,onClick:i})=>C.jsxs("div",{className:We("bs-card group flex flex-col cursor-pointer p-2.5 gap-2.5 rounded-lg bg-[#F5F7FA] max-w-[350px] border border-transparent hover:border-[#e0e0e0] hover:bg-white",{transCls:ra}),onClick:()=>{i==null||i(e)},children:[C.jsxs("div",{className:"px-2.5 flex items-center gap-1.5 rounded-[4px] h-[34px] bg-white",children:[n===void 0?null:C.jsx("div",{children:n}),a===void 0?null:C.jsx("div",{className:"text-[#0265FF]",children:a}),C.jsx("div",{className:"truncate !text-[#12111] group-hover:text-[#0265FF]",children:e})]}),C.jsx("div",{className:"text-[#666] leading-5 text-[12px]",children:t})]}),Zte=[{icon:C.jsx(GE,{}),title:"供应商管理,子表单为产品信息",description:"用于记录和管理企业供应商的基本信息、资质认证、合作状态等,便于采购部门进行供应商评估和选择。"},{icon:C.jsx(YE,{}),title:"搭建订单表",description:"子表单为商品列表(包含:商品ID、商品名称、商品供应商为关联数据字段、商品原价、商品销售价、商品型号为关联查询字段)"},{icon:C.jsx(JE,{}),title:"创建合同表关联供应商信息管理表",description:"创建合同表用于记录与供应商签订的合同信息,并与供应商信息管理表进行关联,方便查询和管理合同相关的供应商信息。"}],gm=({items:e=Zte,iconColor:t,onSelect:n})=>C.jsx(C.Fragment,{children:e.map((a,i)=>C.jsx($te,{icon:C.jsx("div",{style:{color:t},children:a.icon}),index:i+1,title:a.title,desc:a.description,onClick:n},i))}),Wte=({sendMessage:e,setMessages:t})=>{const n=Pte("OpeningLines");return n?C.jsx(n,{sendMessage:e,setMessages:t}):C.jsxs(C.Fragment,{children:["👋 你好,你想创建什么表单呢,不知道的话,可以试试下面的建议~",C.jsx(gm,{onSelect:a=>{e({text:a},{body:{stage:"design",name:a}})}})]})},qte=e=>{const t=O.useRef(null),{messages:n,setMessages:a,addToolOutput:i,sendMessage:l,regenerate:u}=e;return C.jsx("div",{className:"relative overscroll-behavior-contain -webkit-overflow-scrolling-touch flex-1 touch-pan-y overflow-y-auto m-h-0 h-full",ref:t,style:{overflowAnchor:"none",overscrollBehavior:"contain"},children:C.jsxs(Iq,{className:"mx-auto flex min-w-0 max-w-4xl flex-col",children:[C.jsxs(Dq,{className:"flex flex-col px-2 py-4 md:px-4",children:[n.length===0&&C.jsx(Td,{children:C.jsx(Wte,{sendMessage:l,setMessages:a})}),n.map((f,h)=>{const g=h===n.length-1;return C.jsx(jte,{isLoading:e.status==="streaming"&&g,regenerate:g?u:void 0,status:e.status,addToolOutput:i,sendMessage:e.sendMessage,message:f,setMessages:a},f.id)})]}),C.jsx(jq,{})]})})};var Gte=function e(t,n){if(t===n)return!0;if(t&&n&&typeof t=="object"&&typeof n=="object"){if(t.constructor!==n.constructor)return!1;var a,i,l;if(Array.isArray(t)){if(a=t.length,a!=n.length)return!1;for(i=a;i--!==0;)if(!e(t[i],n[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if(l=Object.keys(t),a=l.length,a!==Object.keys(n).length)return!1;for(i=a;i--!==0;)if(!Object.prototype.hasOwnProperty.call(n,l[i]))return!1;for(i=a;i--!==0;){var u=l[i];if(!e(t[u],n[u]))return!1}return!0}return t!==t&&n!==n};const Yte=Wu(Gte);/**
443
+ * @license lucide-react v0.554.0 - ISC
444
+ *
445
+ * This source code is licensed under the ISC license.
446
+ * See the LICENSE file in the root directory of this source tree.
447
+ */const Jte=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Xte=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,a)=>a?a.toUpperCase():n.toLowerCase()),nA=e=>{const t=Xte(e);return t.charAt(0).toUpperCase()+t.slice(1)},rA=(...e)=>e.filter((t,n,a)=>!!t&&t.trim()!==""&&a.indexOf(t)===n).join(" ").trim(),Kte=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};/**
448
+ * @license lucide-react v0.554.0 - ISC
449
+ *
450
+ * This source code is licensed under the ISC license.
451
+ * See the LICENSE file in the root directory of this source tree.
452
+ */var Qte={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
453
+ * @license lucide-react v0.554.0 - ISC
454
+ *
455
+ * This source code is licensed under the ISC license.
456
+ * See the LICENSE file in the root directory of this source tree.
457
+ */const ene=O.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:a,className:i="",children:l,iconNode:u,...f},h)=>O.createElement("svg",{ref:h,...Qte,width:t,height:t,stroke:e,strokeWidth:a?Number(n)*24/Number(t):n,className:rA("lucide",i),...!l&&!Kte(f)&&{"aria-hidden":"true"},...f},[...u.map(([g,x])=>O.createElement(g,x)),...Array.isArray(l)?l:[l]]));/**
458
+ * @license lucide-react v0.554.0 - ISC
459
+ *
460
+ * This source code is licensed under the ISC license.
461
+ * See the LICENSE file in the root directory of this source tree.
462
+ */const Ap=(e,t)=>{const n=O.forwardRef(({className:a,...i},l)=>O.createElement(ene,{ref:l,iconNode:t,className:rA(`lucide-${Jte(nA(e))}`,`lucide-${e}`,a),...i}));return n.displayName=nA(e),n};/**
463
+ * @license lucide-react v0.554.0 - ISC
464
+ *
465
+ * This source code is licensed under the ISC license.
466
+ * See the LICENSE file in the root directory of this source tree.
467
+ */const tne=Ap("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
468
+ * @license lucide-react v0.554.0 - ISC
469
+ *
470
+ * This source code is licensed under the ISC license.
471
+ * See the LICENSE file in the root directory of this source tree.
472
+ */const aA=Ap("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
473
+ * @license lucide-react v0.554.0 - ISC
474
+ *
475
+ * This source code is licensed under the ISC license.
476
+ * See the LICENSE file in the root directory of this source tree.
477
+ */const nne=Ap("chevron-up",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/**
478
+ * @license lucide-react v0.554.0 - ISC
479
+ *
480
+ * This source code is licensed under the ISC license.
481
+ * See the LICENSE file in the root directory of this source tree.
482
+ */const rne=Ap("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
483
+ * @license lucide-react v0.554.0 - ISC
484
+ *
485
+ * This source code is licensed under the ISC license.
486
+ * See the LICENSE file in the root directory of this source tree.
487
+ */const ane=Ap("send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);/**
488
+ * @license lucide-react v0.554.0 - ISC
489
+ *
490
+ * This source code is licensed under the ISC license.
491
+ * See the LICENSE file in the root directory of this source tree.
492
+ */const one=Ap("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function oA(e,[t,n]){return Math.min(n,Math.max(t,e))}function iA(e){const t=e+"CollectionProvider",[n,a]=Xs(t),[i,l]=n(t,{collectionRef:{current:null},itemMap:new Map}),u=R=>{const{scope:M,children:L}=R,P=Po.useRef(null),F=Po.useRef(new Map).current;return C.jsx(i,{scope:M,itemMap:F,collectionRef:P,children:L})};u.displayName=t;const f=e+"CollectionSlot",h=Gh(f),g=Po.forwardRef((R,M)=>{const{scope:L,children:P}=R,F=l(f,L),D=Vn(M,F.collectionRef);return C.jsx(h,{ref:D,children:P})});g.displayName=f;const x=e+"CollectionItemSlot",y="data-radix-collection-item",k=Gh(x),b=Po.forwardRef((R,M)=>{const{scope:L,children:P,...F}=R,D=Po.useRef(null),V=Vn(M,D),H=l(x,L);return Po.useEffect(()=>(H.itemMap.set(D,{ref:D,...F}),()=>void H.itemMap.delete(D))),C.jsx(k,{[y]:"",ref:V,children:P})});b.displayName=x;function _(R){const M=l(e+"CollectionConsumer",R);return Po.useCallback(()=>{const P=M.collectionRef.current;if(!P)return[];const F=Array.from(P.querySelectorAll(`[${y}]`));return Array.from(M.itemMap.values()).sort((H,Z)=>F.indexOf(H.ref.current)-F.indexOf(Z.ref.current))},[M.collectionRef,M.itemMap])}return[{Provider:u,Slot:g,ItemSlot:b},_,a]}var ine=O.createContext(void 0);function sA(e){const t=O.useContext(ine);return e||t||"ltr"}var t7=0;function lA(){O.useEffect(()=>{var t,n;const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(t=e[0])!=null?t:uA()),document.body.insertAdjacentElement("beforeend",(n=e[1])!=null?n:uA()),t7++,()=>{t7===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(a=>a.remove()),t7--}},[])}function uA(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var n7="focusScope.autoFocusOnMount",r7="focusScope.autoFocusOnUnmount",cA={bubbles:!1,cancelable:!0},sne="FocusScope",a7=O.forwardRef((e,t)=>{const{loop:n=!1,trapped:a=!1,onMountAutoFocus:i,onUnmountAutoFocus:l,...u}=e,[f,h]=O.useState(null),g=ec(i),x=ec(l),y=O.useRef(null),k=Vn(t,R=>h(R)),b=O.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;O.useEffect(()=>{if(a){let R=function(F){if(b.paused||!f)return;const D=F.target;f.contains(D)?y.current=D:ic(y.current,{select:!0})},M=function(F){if(b.paused||!f)return;const D=F.relatedTarget;D!==null&&(f.contains(D)||ic(y.current,{select:!0}))},L=function(F){if(document.activeElement===document.body)for(const V of F)V.removedNodes.length>0&&ic(f)};document.addEventListener("focusin",R),document.addEventListener("focusout",M);const P=new MutationObserver(L);return f&&P.observe(f,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",R),document.removeEventListener("focusout",M),P.disconnect()}}},[a,f,b.paused]),O.useEffect(()=>{if(f){pA.add(b);const R=document.activeElement;if(!f.contains(R)){const L=new CustomEvent(n7,cA);f.addEventListener(n7,g),f.dispatchEvent(L),L.defaultPrevented||(lne(pne(dA(f)),{select:!0}),document.activeElement===R&&ic(f))}return()=>{f.removeEventListener(n7,g),setTimeout(()=>{const L=new CustomEvent(r7,cA);f.addEventListener(r7,x),f.dispatchEvent(L),L.defaultPrevented||ic(R!=null?R:document.body,{select:!0}),f.removeEventListener(r7,x),pA.remove(b)},0)}}},[f,g,x,b]);const _=O.useCallback(R=>{if(!n&&!a||b.paused)return;const M=R.key==="Tab"&&!R.altKey&&!R.ctrlKey&&!R.metaKey,L=document.activeElement;if(M&&L){const P=R.currentTarget,[F,D]=une(P);F&&D?!R.shiftKey&&L===D?(R.preventDefault(),n&&ic(F,{select:!0})):R.shiftKey&&L===F&&(R.preventDefault(),n&&ic(D,{select:!0})):L===P&&R.preventDefault()}},[n,a,b.paused]);return C.jsx(hn.div,{tabIndex:-1,...u,ref:k,onKeyDown:_})});a7.displayName=sne;function lne(e,{select:t=!1}={}){const n=document.activeElement;for(const a of e)if(ic(a,{select:t}),document.activeElement!==n)return}function une(e){const t=dA(e),n=fA(t,e),a=fA(t.reverse(),e);return[n,a]}function dA(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:a=>{const i=a.tagName==="INPUT"&&a.type==="hidden";return a.disabled||a.hidden||i?NodeFilter.FILTER_SKIP:a.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function fA(e,t){for(const n of e)if(!cne(n,{upTo:t}))return n}function cne(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function dne(e){return e instanceof HTMLInputElement&&"select"in e}function ic(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&dne(e)&&t&&e.select()}}var pA=fne();function fne(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=hA(e,t),e.unshift(t)},remove(t){var n;e=hA(e,t),(n=e[0])==null||n.resume()}}}function hA(e,t){const n=[...e],a=n.indexOf(t);return a!==-1&&n.splice(a,1),n}function pne(e){return e.filter(t=>t.tagName!=="A")}function o7(e){const t=O.useRef({value:e,previous:e});return O.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var hne=function(e){if(typeof document=="undefined")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Np=new WeakMap,a4=new WeakMap,o4={},i7=0,mA=function(e){return e&&(e.host||mA(e.parentNode))},mne=function(e,t){return t.map(function(n){if(e.contains(n))return n;var a=mA(n);return a&&e.contains(a)?a:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},gne=function(e,t,n,a){var i=mne(t,Array.isArray(e)?e:[e]);o4[n]||(o4[n]=new WeakMap);var l=o4[n],u=[],f=new Set,h=new Set(i),g=function(y){!y||f.has(y)||(f.add(y),g(y.parentNode))};i.forEach(g);var x=function(y){!y||h.has(y)||Array.prototype.forEach.call(y.children,function(k){if(f.has(k))x(k);else try{var b=k.getAttribute(a),_=b!==null&&b!=="false",R=(Np.get(k)||0)+1,M=(l.get(k)||0)+1;Np.set(k,R),l.set(k,M),u.push(k),R===1&&_&&a4.set(k,!0),M===1&&k.setAttribute(n,"true"),_||k.setAttribute(a,"true")}catch(L){console.error("aria-hidden: cannot operate on ",k,L)}})};return x(t),f.clear(),i7++,function(){u.forEach(function(y){var k=Np.get(y)-1,b=l.get(y)-1;Np.set(y,k),l.set(y,b),k||(a4.has(y)||y.removeAttribute(a),a4.delete(y)),b||y.removeAttribute(n)}),i7--,i7||(Np=new WeakMap,Np=new WeakMap,a4=new WeakMap,o4={})}},gA=function(e,t,n){n===void 0&&(n="data-aria-hidden");var a=Array.from(Array.isArray(e)?e:[e]),i=hne(e);return i?(a.push.apply(a,Array.from(i.querySelectorAll("[aria-live], script"))),gne(a,i,n,"aria-hidden")):function(){return null}},ol=function(){return ol=Object.assign||function(t){for(var n,a=1,i=arguments.length;a<i;a++){n=arguments[a];for(var l in n)Object.prototype.hasOwnProperty.call(n,l)&&(t[l]=n[l])}return t},ol.apply(this,arguments)};function vA(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,a=Object.getOwnPropertySymbols(e);i<a.length;i++)t.indexOf(a[i])<0&&Object.prototype.propertyIsEnumerable.call(e,a[i])&&(n[a[i]]=e[a[i]]);return n}function vne(e,t,n){if(n||arguments.length===2)for(var a=0,i=t.length,l;a<i;a++)(l||!(a in t))&&(l||(l=Array.prototype.slice.call(t,0,a)),l[a]=t[a]);return e.concat(l||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var i4="right-scroll-bar-position",s4="width-before-scroll-bar",yne="with-scroll-bars-hidden",xne="--removed-body-scroll-bar-size";function s7(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function wne(e,t){var n=O.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(a){var i=n.value;i!==a&&(n.value=a,n.callback(a,i))}}}})[0];return n.callback=t,n.facade}var bne=typeof window!="undefined"?O.useLayoutEffect:O.useEffect,yA=new WeakMap;function Cne(e,t){var n=wne(null,function(a){return e.forEach(function(i){return s7(i,a)})});return bne(function(){var a=yA.get(n);if(a){var i=new Set(a),l=new Set(e),u=n.current;i.forEach(function(f){l.has(f)||s7(f,null)}),l.forEach(function(f){i.has(f)||s7(f,u)})}yA.set(n,e)},[e]),n}function Sne(e){return e}function kne(e,t){t===void 0&&(t=Sne);var n=[],a=!1,i={read:function(){if(a)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(l){var u=t(l,a);return n.push(u),function(){n=n.filter(function(f){return f!==u})}},assignSyncMedium:function(l){for(a=!0;n.length;){var u=n;n=[],u.forEach(l)}n={push:function(f){return l(f)},filter:function(){return n}}},assignMedium:function(l){a=!0;var u=[];if(n.length){var f=n;n=[],f.forEach(l),u=n}var h=function(){var x=u;u=[],x.forEach(l)},g=function(){return Promise.resolve().then(h)};g(),n={push:function(x){u.push(x),g()},filter:function(x){return u=u.filter(x),n}}}};return i}function Ene(e){e===void 0&&(e={});var t=kne(null);return t.options=ol({async:!0,ssr:!1},e),t}var xA=function(e){var t=e.sideCar,n=vA(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var a=t.read();if(!a)throw new Error("Sidecar medium not found");return O.createElement(a,ol({},n))};xA.isSideCarExport=!0;function _ne(e,t){return e.useMedium(t),xA}var wA=Ene(),l7=function(){},l4=O.forwardRef(function(e,t){var n=O.useRef(null),a=O.useState({onScrollCapture:l7,onWheelCapture:l7,onTouchMoveCapture:l7}),i=a[0],l=a[1],u=e.forwardProps,f=e.children,h=e.className,g=e.removeScrollBar,x=e.enabled,y=e.shards,k=e.sideCar,b=e.noRelative,_=e.noIsolation,R=e.inert,M=e.allowPinchZoom,L=e.as,P=L===void 0?"div":L,F=e.gapMode,D=vA(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),V=k,H=Cne([n,t]),Z=ol(ol({},D),i);return O.createElement(O.Fragment,null,x&&O.createElement(V,{sideCar:wA,removeScrollBar:g,shards:y,noRelative:b,noIsolation:_,inert:R,setCallbacks:l,allowPinchZoom:!!M,lockRef:n,gapMode:F}),u?O.cloneElement(O.Children.only(f),ol(ol({},Z),{ref:H})):O.createElement(P,ol({},Z,{className:h,ref:H}),f))});l4.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},l4.classNames={fullWidth:s4,zeroRight:i4};var Tne=function(){if(typeof __webpack_nonce__!="undefined")return __webpack_nonce__};function Rne(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Tne();return t&&e.setAttribute("nonce",t),e}function Ane(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Nne(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Mne=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Rne())&&(Ane(t,n),Nne(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},One=function(){var e=Mne();return function(t,n){O.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},bA=function(){var e=One(),t=function(n){var a=n.styles,i=n.dynamic;return e(a,i),null};return t},Lne={left:0,top:0,right:0,gap:0},u7=function(e){return parseInt(e||"",10)||0},Ine=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],a=t[e==="padding"?"paddingTop":"marginTop"],i=t[e==="padding"?"paddingRight":"marginRight"];return[u7(n),u7(a),u7(i)]},Dne=function(e){if(e===void 0&&(e="margin"),typeof window=="undefined")return Lne;var t=Ine(e),n=document.documentElement.clientWidth,a=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,a-n+t[2]-t[0])}},jne=bA(),Mp="data-scroll-locked",Pne=function(e,t,n,a){var i=e.left,l=e.top,u=e.right,f=e.gap;return n===void 0&&(n="margin"),`
493
+ .`.concat(yne,` {
494
+ overflow: hidden `).concat(a,`;
495
+ padding-right: `).concat(f,"px ").concat(a,`;
496
+ }
497
+ body[`).concat(Mp,`] {
498
+ overflow: hidden `).concat(a,`;
499
+ overscroll-behavior: contain;
500
+ `).concat([t&&"position: relative ".concat(a,";"),n==="margin"&&`
501
+ padding-left: `.concat(i,`px;
502
+ padding-top: `).concat(l,`px;
503
+ padding-right: `).concat(u,`px;
504
+ margin-left:0;
505
+ margin-top:0;
506
+ margin-right: `).concat(f,"px ").concat(a,`;
507
+ `),n==="padding"&&"padding-right: ".concat(f,"px ").concat(a,";")].filter(Boolean).join(""),`
508
+ }
509
+
510
+ .`).concat(i4,` {
511
+ right: `).concat(f,"px ").concat(a,`;
512
+ }
513
+
514
+ .`).concat(s4,` {
515
+ margin-right: `).concat(f,"px ").concat(a,`;
516
+ }
517
+
518
+ .`).concat(i4," .").concat(i4,` {
519
+ right: 0 `).concat(a,`;
520
+ }
521
+
522
+ .`).concat(s4," .").concat(s4,` {
523
+ margin-right: 0 `).concat(a,`;
524
+ }
525
+
526
+ body[`).concat(Mp,`] {
527
+ `).concat(xne,": ").concat(f,`px;
528
+ }
529
+ `)},CA=function(){var e=parseInt(document.body.getAttribute(Mp)||"0",10);return isFinite(e)?e:0},Fne=function(){O.useEffect(function(){return document.body.setAttribute(Mp,(CA()+1).toString()),function(){var e=CA()-1;e<=0?document.body.removeAttribute(Mp):document.body.setAttribute(Mp,e.toString())}},[])},zne=function(e){var t=e.noRelative,n=e.noImportant,a=e.gapMode,i=a===void 0?"margin":a;Fne();var l=O.useMemo(function(){return Dne(i)},[i]);return O.createElement(jne,{styles:Pne(l,!t,i,n?"":"!important")})},c7=!1;if(typeof window!="undefined")try{var u4=Object.defineProperty({},"passive",{get:function(){return c7=!0,!0}});window.addEventListener("test",u4,u4),window.removeEventListener("test",u4,u4)}catch(e){c7=!1}var Op=c7?{passive:!1}:!1,Une=function(e){return e.tagName==="TEXTAREA"},SA=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!Une(e)&&n[t]==="visible")},Bne=function(e){return SA(e,"overflowY")},Hne=function(e){return SA(e,"overflowX")},kA=function(e,t){var n=t.ownerDocument,a=t;do{typeof ShadowRoot!="undefined"&&a instanceof ShadowRoot&&(a=a.host);var i=EA(e,a);if(i){var l=_A(e,a),u=l[1],f=l[2];if(u>f)return!0}a=a.parentNode}while(a&&a!==n.body);return!1},Vne=function(e){var t=e.scrollTop,n=e.scrollHeight,a=e.clientHeight;return[t,n,a]},$ne=function(e){var t=e.scrollLeft,n=e.scrollWidth,a=e.clientWidth;return[t,n,a]},EA=function(e,t){return e==="v"?Bne(t):Hne(t)},_A=function(e,t){return e==="v"?Vne(t):$ne(t)},Zne=function(e,t){return e==="h"&&t==="rtl"?-1:1},Wne=function(e,t,n,a,i){var l=Zne(e,window.getComputedStyle(t).direction),u=l*a,f=n.target,h=t.contains(f),g=!1,x=u>0,y=0,k=0;do{if(!f)break;var b=_A(e,f),_=b[0],R=b[1],M=b[2],L=R-M-l*_;(_||L)&&EA(e,f)&&(y+=L,k+=_);var P=f.parentNode;f=P&&P.nodeType===Node.DOCUMENT_FRAGMENT_NODE?P.host:P}while(!h&&f!==document.body||h&&(t.contains(f)||t===f));return(x&&Math.abs(y)<1||!x&&Math.abs(k)<1)&&(g=!0),g},c4=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},TA=function(e){return[e.deltaX,e.deltaY]},RA=function(e){return e&&"current"in e?e.current:e},qne=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Gne=function(e){return`
530
+ .block-interactivity-`.concat(e,` {pointer-events: none;}
531
+ .allow-interactivity-`).concat(e,` {pointer-events: all;}
532
+ `)},Yne=0,Lp=[];function Jne(e){var t=O.useRef([]),n=O.useRef([0,0]),a=O.useRef(),i=O.useState(Yne++)[0],l=O.useState(bA)[0],u=O.useRef(e);O.useEffect(function(){u.current=e},[e]),O.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var R=vne([e.lockRef.current],(e.shards||[]).map(RA),!0).filter(Boolean);return R.forEach(function(M){return M.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),R.forEach(function(M){return M.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var f=O.useCallback(function(R,M){if("touches"in R&&R.touches.length===2||R.type==="wheel"&&R.ctrlKey)return!u.current.allowPinchZoom;var L=c4(R),P=n.current,F="deltaX"in R?R.deltaX:P[0]-L[0],D="deltaY"in R?R.deltaY:P[1]-L[1],V,H=R.target,Z=Math.abs(F)>Math.abs(D)?"h":"v";if("touches"in R&&Z==="h"&&H.type==="range")return!1;var q=window.getSelection(),ae=q&&q.anchorNode,_e=ae?ae===H||ae.contains(H):!1;if(_e)return!1;var ge=kA(Z,H);if(!ge)return!0;if(ge?V=Z:(V=Z==="v"?"h":"v",ge=kA(Z,H)),!ge)return!1;if(!a.current&&"changedTouches"in R&&(F||D)&&(a.current=V),!V)return!0;var he=a.current||V;return Wne(he,M,R,he==="h"?F:D)},[]),h=O.useCallback(function(R){var M=R;if(!(!Lp.length||Lp[Lp.length-1]!==l)){var L="deltaY"in M?TA(M):c4(M),P=t.current.filter(function(V){return V.name===M.type&&(V.target===M.target||M.target===V.shadowParent)&&qne(V.delta,L)})[0];if(P&&P.should){M.cancelable&&M.preventDefault();return}if(!P){var F=(u.current.shards||[]).map(RA).filter(Boolean).filter(function(V){return V.contains(M.target)}),D=F.length>0?f(M,F[0]):!u.current.noIsolation;D&&M.cancelable&&M.preventDefault()}}},[]),g=O.useCallback(function(R,M,L,P){var F={name:R,delta:M,target:L,should:P,shadowParent:Xne(L)};t.current.push(F),setTimeout(function(){t.current=t.current.filter(function(D){return D!==F})},1)},[]),x=O.useCallback(function(R){n.current=c4(R),a.current=void 0},[]),y=O.useCallback(function(R){g(R.type,TA(R),R.target,f(R,e.lockRef.current))},[]),k=O.useCallback(function(R){g(R.type,c4(R),R.target,f(R,e.lockRef.current))},[]);O.useEffect(function(){return Lp.push(l),e.setCallbacks({onScrollCapture:y,onWheelCapture:y,onTouchMoveCapture:k}),document.addEventListener("wheel",h,Op),document.addEventListener("touchmove",h,Op),document.addEventListener("touchstart",x,Op),function(){Lp=Lp.filter(function(R){return R!==l}),document.removeEventListener("wheel",h,Op),document.removeEventListener("touchmove",h,Op),document.removeEventListener("touchstart",x,Op)}},[]);var b=e.removeScrollBar,_=e.inert;return O.createElement(O.Fragment,null,_?O.createElement(l,{styles:Gne(i)}):null,b?O.createElement(zne,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Xne(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Kne=_ne(wA,Jne);var d7=O.forwardRef(function(e,t){return O.createElement(l4,ol({},e,{ref:t,sideCar:Kne}))});d7.classNames=l4.classNames;var Qne=[" ","Enter","ArrowUp","ArrowDown"],ere=[" ","Enter"],d4="Select",[f7,f4,tre]=iA(d4),[Ip]=Xs(d4,[tre,I0]),p7=I0(),[c1e,sc]=Ip(d4),[d1e,nre]=Ip(d4),AA="SelectTrigger",NA=O.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:a=!1,...i}=e,l=p7(n),u=sc(AA,n),f=u.disabled||a,h=Vn(t,u.onTriggerChange),g=f4(n),x=O.useRef("touch"),[y,k,b]=KA(R=>{const M=g().filter(F=>!F.disabled),L=M.find(F=>F.value===u.value),P=QA(M,R,L);P!==void 0&&u.onValueChange(P.value)}),_=R=>{f||(u.onOpenChange(!0),b()),R&&(u.triggerPointerDownPosRef.current={x:Math.round(R.pageX),y:Math.round(R.pageY)})};return C.jsx(W_,{asChild:!0,...l,children:C.jsx(hn.button,{type:"button",role:"combobox","aria-controls":u.contentId,"aria-expanded":u.open,"aria-required":u.required,"aria-autocomplete":"none",dir:u.dir,"data-state":u.open?"open":"closed",disabled:f,"data-disabled":f?"":void 0,"data-placeholder":XA(u.value)?"":void 0,...i,ref:h,onClick:nn(i.onClick,R=>{R.currentTarget.focus(),x.current!=="mouse"&&_(R)}),onPointerDown:nn(i.onPointerDown,R=>{x.current=R.pointerType;const M=R.target;M.hasPointerCapture(R.pointerId)&&M.releasePointerCapture(R.pointerId),R.button===0&&R.ctrlKey===!1&&R.pointerType==="mouse"&&(_(R),R.preventDefault())}),onKeyDown:nn(i.onKeyDown,R=>{const M=y.current!=="";!(R.ctrlKey||R.altKey||R.metaKey)&&R.key.length===1&&k(R.key),!(M&&R.key===" ")&&Qne.includes(R.key)&&(_(),R.preventDefault())})})})});NA.displayName=AA;var MA="SelectValue",rre=O.forwardRef((e,t)=>{const{__scopeSelect:n,className:a,style:i,children:l,placeholder:u="",...f}=e,h=sc(MA,n),{onValueNodeHasChildrenChange:g}=h,x=l!==void 0,y=Vn(t,h.onValueNodeChange);return La(()=>{g(x)},[g,x]),C.jsx(hn.span,{...f,ref:y,style:{pointerEvents:"none"},children:XA(h.value)?C.jsx(C.Fragment,{children:u}):l})});rre.displayName=MA;var are="SelectIcon",OA=O.forwardRef((e,t)=>{const{__scopeSelect:n,children:a,...i}=e;return C.jsx(hn.span,{"aria-hidden":!0,...i,ref:t,children:a||"▼"})});OA.displayName=are;var ore="SelectPortal",LA=e=>C.jsx(D0,{asChild:!0,...e});LA.displayName=ore;var Rd="SelectContent",IA=O.forwardRef((e,t)=>{const n=sc(Rd,e.__scopeSelect),[a,i]=O.useState();if(La(()=>{i(new DocumentFragment)},[]),!n.open){const l=a;return l?Zl.createPortal(C.jsx(DA,{scope:e.__scopeSelect,children:C.jsx(f7.Slot,{scope:e.__scopeSelect,children:C.jsx("div",{children:e.children})})}),l):null}return C.jsx(jA,{...e,ref:t})});IA.displayName=Rd;var ws=10,[DA,lc]=Ip(Rd),ire="SelectContentImpl",sre=Gh("SelectContent.RemoveScroll"),jA=O.forwardRef((e,t)=>{const{__scopeSelect:n,position:a="item-aligned",onCloseAutoFocus:i,onEscapeKeyDown:l,onPointerDownOutside:u,side:f,sideOffset:h,align:g,alignOffset:x,arrowPadding:y,collisionBoundary:k,collisionPadding:b,sticky:_,hideWhenDetached:R,avoidCollisions:M,...L}=e,P=sc(Rd,n),[F,D]=O.useState(null),[V,H]=O.useState(null),Z=Vn(t,Ee=>D(Ee)),[q,ae]=O.useState(null),[_e,ge]=O.useState(null),he=f4(n),[we,Ne]=O.useState(!1),xe=O.useRef(!1);O.useEffect(()=>{if(F)return gA(F)},[F]),lA();const Te=O.useCallback(Ee=>{const[Ze,...Qe]=he().map(Et=>Et.ref.current),[qe]=Qe.slice(-1),tt=document.activeElement;for(const Et of Ee)if(Et===tt||(Et==null||Et.scrollIntoView({block:"nearest"}),Et===Ze&&V&&(V.scrollTop=0),Et===qe&&V&&(V.scrollTop=V.scrollHeight),Et==null||Et.focus(),document.activeElement!==tt))return},[he,V]),ve=O.useCallback(()=>Te([q,F]),[Te,q,F]);O.useEffect(()=>{we&&ve()},[we,ve]);const{onOpenChange:K,triggerPointerDownPosRef:ye}=P;O.useEffect(()=>{if(F){let Ee={x:0,y:0};const Ze=qe=>{var tt,Et,bt,ct;Ee={x:Math.abs(Math.round(qe.pageX)-((Et=(tt=ye.current)==null?void 0:tt.x)!=null?Et:0)),y:Math.abs(Math.round(qe.pageY)-((ct=(bt=ye.current)==null?void 0:bt.y)!=null?ct:0))}},Qe=qe=>{Ee.x<=10&&Ee.y<=10?qe.preventDefault():F.contains(qe.target)||K(!1),document.removeEventListener("pointermove",Ze),ye.current=null};return ye.current!==null&&(document.addEventListener("pointermove",Ze),document.addEventListener("pointerup",Qe,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",Ze),document.removeEventListener("pointerup",Qe,{capture:!0})}}},[F,K,ye]),O.useEffect(()=>{const Ee=()=>K(!1);return window.addEventListener("blur",Ee),window.addEventListener("resize",Ee),()=>{window.removeEventListener("blur",Ee),window.removeEventListener("resize",Ee)}},[K]);const[U,X]=KA(Ee=>{const Ze=he().filter(tt=>!tt.disabled),Qe=Ze.find(tt=>tt.ref.current===document.activeElement),qe=QA(Ze,Ee,Qe);qe&&setTimeout(()=>qe.ref.current.focus())}),ie=O.useCallback((Ee,Ze,Qe)=>{const qe=!xe.current&&!Qe;(P.value!==void 0&&P.value===Ze||qe)&&(ae(Ee),qe&&(xe.current=!0))},[P.value]),$=O.useCallback(()=>F==null?void 0:F.focus(),[F]),Ue=O.useCallback((Ee,Ze,Qe)=>{const qe=!xe.current&&!Qe;(P.value!==void 0&&P.value===Ze||qe)&&ge(Ee)},[P.value]),Ke=a==="popper"?h7:PA,De=Ke===h7?{side:f,sideOffset:h,align:g,alignOffset:x,arrowPadding:y,collisionBoundary:k,collisionPadding:b,sticky:_,hideWhenDetached:R,avoidCollisions:M}:{};return C.jsx(DA,{scope:n,content:F,viewport:V,onViewportChange:H,itemRefCallback:ie,selectedItem:q,onItemLeave:$,itemTextRefCallback:Ue,focusSelectedItem:ve,selectedItemText:_e,position:a,isPositioned:we,searchRef:U,children:C.jsx(d7,{as:sre,allowPinchZoom:!0,children:C.jsx(a7,{asChild:!0,trapped:P.open,onMountAutoFocus:Ee=>{Ee.preventDefault()},onUnmountAutoFocus:nn(i,Ee=>{var Ze;(Ze=P.trigger)==null||Ze.focus({preventScroll:!0}),Ee.preventDefault()}),children:C.jsx(S0,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:Ee=>Ee.preventDefault(),onDismiss:()=>P.onOpenChange(!1),children:C.jsx(Ke,{role:"listbox",id:P.contentId,"data-state":P.open?"open":"closed",dir:P.dir,onContextMenu:Ee=>Ee.preventDefault(),...L,...De,onPlaced:()=>Ne(!0),ref:Z,style:{display:"flex",flexDirection:"column",outline:"none",...L.style},onKeyDown:nn(L.onKeyDown,Ee=>{const Ze=Ee.ctrlKey||Ee.altKey||Ee.metaKey;if(Ee.key==="Tab"&&Ee.preventDefault(),!Ze&&Ee.key.length===1&&X(Ee.key),["ArrowUp","ArrowDown","Home","End"].includes(Ee.key)){let qe=he().filter(tt=>!tt.disabled).map(tt=>tt.ref.current);if(["ArrowUp","End"].includes(Ee.key)&&(qe=qe.slice().reverse()),["ArrowUp","ArrowDown"].includes(Ee.key)){const tt=Ee.target,Et=qe.indexOf(tt);qe=qe.slice(Et+1)}setTimeout(()=>Te(qe)),Ee.preventDefault()}})})})})})})});jA.displayName=ire;var lre="SelectItemAlignedPosition",PA=O.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:a,...i}=e,l=sc(Rd,n),u=lc(Rd,n),[f,h]=O.useState(null),[g,x]=O.useState(null),y=Vn(t,Z=>x(Z)),k=f4(n),b=O.useRef(!1),_=O.useRef(!0),{viewport:R,selectedItem:M,selectedItemText:L,focusSelectedItem:P}=u,F=O.useCallback(()=>{if(l.trigger&&l.valueNode&&f&&g&&R&&M&&L){const Z=l.trigger.getBoundingClientRect(),q=g.getBoundingClientRect(),ae=l.valueNode.getBoundingClientRect(),_e=L.getBoundingClientRect();if(l.dir!=="rtl"){const tt=_e.left-q.left,Et=ae.left-tt,bt=Z.left-Et,ct=Z.width+bt,yt=Math.max(ct,q.width),Pt=window.innerWidth-ws,St=oA(Et,[ws,Math.max(ws,Pt-yt)]);f.style.minWidth=ct+"px",f.style.left=St+"px"}else{const tt=q.right-_e.right,Et=window.innerWidth-ae.right-tt,bt=window.innerWidth-Z.right-Et,ct=Z.width+bt,yt=Math.max(ct,q.width),Pt=window.innerWidth-ws,St=oA(Et,[ws,Math.max(ws,Pt-yt)]);f.style.minWidth=ct+"px",f.style.right=St+"px"}const ge=k(),he=window.innerHeight-ws*2,we=R.scrollHeight,Ne=window.getComputedStyle(g),xe=parseInt(Ne.borderTopWidth,10),Te=parseInt(Ne.paddingTop,10),ve=parseInt(Ne.borderBottomWidth,10),K=parseInt(Ne.paddingBottom,10),ye=xe+Te+we+K+ve,U=Math.min(M.offsetHeight*5,ye),X=window.getComputedStyle(R),ie=parseInt(X.paddingTop,10),$=parseInt(X.paddingBottom,10),Ue=Z.top+Z.height/2-ws,Ke=he-Ue,De=M.offsetHeight/2,Ee=M.offsetTop+De,Ze=xe+Te+Ee,Qe=ye-Ze;if(Ze<=Ue){const tt=ge.length>0&&M===ge[ge.length-1].ref.current;f.style.bottom="0px";const Et=g.clientHeight-R.offsetTop-R.offsetHeight,bt=Math.max(Ke,De+(tt?$:0)+Et+ve),ct=Ze+bt;f.style.height=ct+"px"}else{const tt=ge.length>0&&M===ge[0].ref.current;f.style.top="0px";const bt=Math.max(Ue,xe+R.offsetTop+(tt?ie:0)+De)+Qe;f.style.height=bt+"px",R.scrollTop=Ze-Ue+R.offsetTop}f.style.margin=`${ws}px 0`,f.style.minHeight=U+"px",f.style.maxHeight=he+"px",a==null||a(),requestAnimationFrame(()=>b.current=!0)}},[k,l.trigger,l.valueNode,f,g,R,M,L,l.dir,a]);La(()=>F(),[F]);const[D,V]=O.useState();La(()=>{g&&V(window.getComputedStyle(g).zIndex)},[g]);const H=O.useCallback(Z=>{Z&&_.current===!0&&(F(),P==null||P(),_.current=!1)},[F,P]);return C.jsx(cre,{scope:n,contentWrapper:f,shouldExpandOnScrollRef:b,onScrollButtonChange:H,children:C.jsx("div",{ref:h,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:D},children:C.jsx(hn.div,{...i,ref:y,style:{boxSizing:"border-box",maxHeight:"100%",...i.style}})})})});PA.displayName=lre;var ure="SelectPopperPosition",h7=O.forwardRef((e,t)=>{const{__scopeSelect:n,align:a="start",collisionPadding:i=ws,...l}=e,u=p7(n);return C.jsx(q_,{...u,...l,ref:t,align:a,collisionPadding:i,style:{boxSizing:"border-box",...l.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});h7.displayName=ure;var[cre,m7]=Ip(Rd,{}),g7="SelectViewport",FA=O.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:a,...i}=e,l=lc(g7,n),u=m7(g7,n),f=Vn(t,l.onViewportChange),h=O.useRef(0);return C.jsxs(C.Fragment,{children:[C.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:a}),C.jsx(f7.Slot,{scope:n,children:C.jsx(hn.div,{"data-radix-select-viewport":"",role:"presentation",...i,ref:f,style:{position:"relative",flex:1,overflow:"hidden auto",...i.style},onScroll:nn(i.onScroll,g=>{const x=g.currentTarget,{contentWrapper:y,shouldExpandOnScrollRef:k}=u;if(k!=null&&k.current&&y){const b=Math.abs(h.current-x.scrollTop);if(b>0){const _=window.innerHeight-ws*2,R=parseFloat(y.style.minHeight),M=parseFloat(y.style.height),L=Math.max(R,M);if(L<_){const P=L+b,F=Math.min(_,P),D=P-F;y.style.height=F+"px",y.style.bottom==="0px"&&(x.scrollTop=D>0?D:0,y.style.justifyContent="flex-end")}}}h.current=x.scrollTop})})})]})});FA.displayName=g7;var zA="SelectGroup",[dre,fre]=Ip(zA),pre=O.forwardRef((e,t)=>{const{__scopeSelect:n,...a}=e,i=tc();return C.jsx(dre,{scope:n,id:i,children:C.jsx(hn.div,{role:"group","aria-labelledby":i,...a,ref:t})})});pre.displayName=zA;var UA="SelectLabel",BA=O.forwardRef((e,t)=>{const{__scopeSelect:n,...a}=e,i=fre(UA,n);return C.jsx(hn.div,{id:i.id,...a,ref:t})});BA.displayName=UA;var p4="SelectItem",[hre,HA]=Ip(p4),VA=O.forwardRef((e,t)=>{const{__scopeSelect:n,value:a,disabled:i=!1,textValue:l,...u}=e,f=sc(p4,n),h=lc(p4,n),g=f.value===a,[x,y]=O.useState(l!=null?l:""),[k,b]=O.useState(!1),_=Vn(t,P=>{var F;return(F=h.itemRefCallback)==null?void 0:F.call(h,P,a,i)}),R=tc(),M=O.useRef("touch"),L=()=>{i||(f.onValueChange(a),f.onOpenChange(!1))};if(a==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return C.jsx(hre,{scope:n,value:a,disabled:i,textId:R,isSelected:g,onItemTextChange:O.useCallback(P=>{y(F=>{var D;return F||((D=P==null?void 0:P.textContent)!=null?D:"").trim()})},[]),children:C.jsx(f7.ItemSlot,{scope:n,value:a,disabled:i,textValue:x,children:C.jsx(hn.div,{role:"option","aria-labelledby":R,"data-highlighted":k?"":void 0,"aria-selected":g&&k,"data-state":g?"checked":"unchecked","aria-disabled":i||void 0,"data-disabled":i?"":void 0,tabIndex:i?void 0:-1,...u,ref:_,onFocus:nn(u.onFocus,()=>b(!0)),onBlur:nn(u.onBlur,()=>b(!1)),onClick:nn(u.onClick,()=>{M.current!=="mouse"&&L()}),onPointerUp:nn(u.onPointerUp,()=>{M.current==="mouse"&&L()}),onPointerDown:nn(u.onPointerDown,P=>{M.current=P.pointerType}),onPointerMove:nn(u.onPointerMove,P=>{var F;M.current=P.pointerType,i?(F=h.onItemLeave)==null||F.call(h):M.current==="mouse"&&P.currentTarget.focus({preventScroll:!0})}),onPointerLeave:nn(u.onPointerLeave,P=>{var F;P.currentTarget===document.activeElement&&((F=h.onItemLeave)==null||F.call(h))}),onKeyDown:nn(u.onKeyDown,P=>{var D;((D=h.searchRef)==null?void 0:D.current)!==""&&P.key===" "||(ere.includes(P.key)&&L(),P.key===" "&&P.preventDefault())})})})})});VA.displayName=p4;var vm="SelectItemText",$A=O.forwardRef((e,t)=>{const{__scopeSelect:n,className:a,style:i,...l}=e,u=sc(vm,n),f=lc(vm,n),h=HA(vm,n),g=nre(vm,n),[x,y]=O.useState(null),k=Vn(t,L=>y(L),h.onItemTextChange,L=>{var P;return(P=f.itemTextRefCallback)==null?void 0:P.call(f,L,h.value,h.disabled)}),b=x==null?void 0:x.textContent,_=O.useMemo(()=>C.jsx("option",{value:h.value,disabled:h.disabled,children:b},h.value),[h.disabled,h.value,b]),{onNativeOptionAdd:R,onNativeOptionRemove:M}=g;return La(()=>(R(_),()=>M(_)),[R,M,_]),C.jsxs(C.Fragment,{children:[C.jsx(hn.span,{id:h.textId,...l,ref:k}),h.isSelected&&u.valueNode&&!u.valueNodeHasChildren?Zl.createPortal(l.children,u.valueNode):null]})});$A.displayName=vm;var ZA="SelectItemIndicator",WA=O.forwardRef((e,t)=>{const{__scopeSelect:n,...a}=e;return HA(ZA,n).isSelected?C.jsx(hn.span,{"aria-hidden":!0,...a,ref:t}):null});WA.displayName=ZA;var v7="SelectScrollUpButton",qA=O.forwardRef((e,t)=>{const n=lc(v7,e.__scopeSelect),a=m7(v7,e.__scopeSelect),[i,l]=O.useState(!1),u=Vn(t,a.onScrollButtonChange);return La(()=>{if(n.viewport&&n.isPositioned){let f=function(){const g=h.scrollTop>0;l(g)};const h=n.viewport;return f(),h.addEventListener("scroll",f),()=>h.removeEventListener("scroll",f)}},[n.viewport,n.isPositioned]),i?C.jsx(YA,{...e,ref:u,onAutoScroll:()=>{const{viewport:f,selectedItem:h}=n;f&&h&&(f.scrollTop=f.scrollTop-h.offsetHeight)}}):null});qA.displayName=v7;var y7="SelectScrollDownButton",GA=O.forwardRef((e,t)=>{const n=lc(y7,e.__scopeSelect),a=m7(y7,e.__scopeSelect),[i,l]=O.useState(!1),u=Vn(t,a.onScrollButtonChange);return La(()=>{if(n.viewport&&n.isPositioned){let f=function(){const g=h.scrollHeight-h.clientHeight,x=Math.ceil(h.scrollTop)<g;l(x)};const h=n.viewport;return f(),h.addEventListener("scroll",f),()=>h.removeEventListener("scroll",f)}},[n.viewport,n.isPositioned]),i?C.jsx(YA,{...e,ref:u,onAutoScroll:()=>{const{viewport:f,selectedItem:h}=n;f&&h&&(f.scrollTop=f.scrollTop+h.offsetHeight)}}):null});GA.displayName=y7;var YA=O.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:a,...i}=e,l=lc("SelectScrollButton",n),u=O.useRef(null),f=f4(n),h=O.useCallback(()=>{u.current!==null&&(window.clearInterval(u.current),u.current=null)},[]);return O.useEffect(()=>()=>h(),[h]),La(()=>{var x;const g=f().find(y=>y.ref.current===document.activeElement);(x=g==null?void 0:g.ref.current)==null||x.scrollIntoView({block:"nearest"})},[f]),C.jsx(hn.div,{"aria-hidden":!0,...i,ref:t,style:{flexShrink:0,...i.style},onPointerDown:nn(i.onPointerDown,()=>{u.current===null&&(u.current=window.setInterval(a,50))}),onPointerMove:nn(i.onPointerMove,()=>{var g;(g=l.onItemLeave)==null||g.call(l),u.current===null&&(u.current=window.setInterval(a,50))}),onPointerLeave:nn(i.onPointerLeave,()=>{h()})})}),mre="SelectSeparator",JA=O.forwardRef((e,t)=>{const{__scopeSelect:n,...a}=e;return C.jsx(hn.div,{"aria-hidden":!0,...a,ref:t})});JA.displayName=mre;var x7="SelectArrow",gre=O.forwardRef((e,t)=>{const{__scopeSelect:n,...a}=e,i=p7(n),l=sc(x7,n),u=lc(x7,n);return l.open&&u.position==="popper"?C.jsx(G_,{...i,...a,ref:t}):null});gre.displayName=x7;var vre="SelectBubbleInput",yre=O.forwardRef(({__scopeSelect:e,value:t,...n},a)=>{const i=O.useRef(null),l=Vn(a,i),u=o7(t);return O.useEffect(()=>{const f=i.current;if(!f)return;const h=window.HTMLSelectElement.prototype,x=Object.getOwnPropertyDescriptor(h,"value").set;if(u!==t&&x){const y=new Event("change",{bubbles:!0});x.call(f,t),f.dispatchEvent(y)}},[u,t]),C.jsx(hn.select,{...n,style:{...Y_,...n.style},ref:l,defaultValue:t})});yre.displayName=vre;function XA(e){return e===""||e===void 0}function KA(e){const t=ec(e),n=O.useRef(""),a=O.useRef(0),i=O.useCallback(u=>{const f=n.current+u;t(f),function h(g){n.current=g,window.clearTimeout(a.current),g!==""&&(a.current=window.setTimeout(()=>h(""),1e3))}(f)},[t]),l=O.useCallback(()=>{n.current="",window.clearTimeout(a.current)},[]);return O.useEffect(()=>()=>window.clearTimeout(a.current),[]),[n,i,l]}function QA(e,t,n){const i=t.length>1&&Array.from(t).every(g=>g===t[0])?t[0]:t,l=n?e.indexOf(n):-1;let u=xre(e,Math.max(l,0));i.length===1&&(u=u.filter(g=>g!==n));const h=u.find(g=>g.textValue.toLowerCase().startsWith(i.toLowerCase()));return h!==n?h:void 0}function xre(e,t){return e.map((n,a)=>e[(t+a)%e.length])}var eN=NA,wre=OA,bre=LA,tN=IA,Cre=FA,nN=BA,rN=VA,Sre=$A,kre=WA,aN=qA,oN=GA,iN=JA;const Ere=O.forwardRef(({className:e,children:t,...n},a)=>C.jsxs(eN,{ref:a,className:We("flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background data-[placeholder]:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",e),...n,children:[t,C.jsx(wre,{asChild:!0,children:C.jsx(aA,{className:"h-4 w-4 opacity-50"})})]}));Ere.displayName=eN.displayName;const sN=O.forwardRef(({className:e,...t},n)=>C.jsx(aN,{ref:n,className:We("flex cursor-default items-center justify-center py-1",e),...t,children:C.jsx(nne,{className:"h-4 w-4"})}));sN.displayName=aN.displayName;const lN=O.forwardRef(({className:e,...t},n)=>C.jsx(oN,{ref:n,className:We("flex cursor-default items-center justify-center py-1",e),...t,children:C.jsx(aA,{className:"h-4 w-4"})}));lN.displayName=oN.displayName;const _re=O.forwardRef(({className:e,children:t,position:n="popper",...a},i)=>C.jsx(bre,{children:C.jsxs(tN,{ref:i,className:We("relative z-50 max-h-[--radix-select-content-available-height] min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-select-content-transform-origin]",n==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:n,...a,children:[C.jsx(sN,{}),C.jsx(Cre,{className:We("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),C.jsx(lN,{})]})}));_re.displayName=tN.displayName;const Tre=O.forwardRef(({className:e,...t},n)=>C.jsx(nN,{ref:n,className:We("px-2 py-1.5 text-sm font-semibold",e),...t}));Tre.displayName=nN.displayName;const Rre=O.forwardRef(({className:e,children:t,...n},a)=>C.jsxs(rN,{ref:a,className:We("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[C.jsx("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:C.jsx(kre,{children:C.jsx(tne,{className:"h-4 w-4"})})}),C.jsx(Sre,{children:t})]}));Rre.displayName=rN.displayName;const Are=O.forwardRef(({className:e,...t},n)=>C.jsx(iN,{ref:n,className:We("-mx-1 my-1 h-px bg-muted",e),...t}));Are.displayName=iN.displayName;const uN=O.forwardRef(({className:e,...t},n)=>C.jsx("textarea",{className:We("flex min-h-[60px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-base shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:n,...t}));uN.displayName="Textarea";const Nre=({className:e,...t})=>C.jsx("form",{className:We("w-full overflow-hidden rounded-[10px] border bg-background shadow-xs",e),...t}),Mre=O.forwardRef(({onChange:e,className:t,placeholder:n="What would you like to know?",minHeight:a=50,maxHeight:i=164,disableAutoResize:l=!1,resizeOnNewLinesOnly:u=!1,...f},h)=>{const g=x=>{if(x.key==="Enter"){if(x.nativeEvent.isComposing||x.shiftKey)return;x.preventDefault();const y=x.currentTarget.form;y&&y.requestSubmit()}};return C.jsx(uN,{className:We("w-full resize-none rounded-none border-none shadow-none outline-hidden ring-0",l||u?"field-sizing-fixed":"field-sizing-content max-h-[6lh]","bg-transparent dark:bg-transparent","focus-visible:ring-0",t),name:"message",onChange:x=>{e==null||e(x)},ref:h,onKeyDown:g,placeholder:n,...f})}),Ore=({className:e,...t})=>C.jsx("div",{className:We("flex items-center justify-between p-1",e),...t}),Lre=({className:e,...t})=>C.jsx("div",{className:We("flex items-center gap-1",e),...t}),Ire=e=>{const t=rne,n=one,a=ane;return e===void 0?C.jsx(a,{className:"size-4"}):{submitted:C.jsx(t,{className:"size-4 animate-spin"}),streaming:C.jsx(bq,{}),error:C.jsx(n,{className:"size-4"}),ready:C.jsx(a,{className:"size-4"})}[e]||C.jsx(a,{className:"size-4"})},Dre=({className:e,variant:t="default",size:n="icon",status:a,children:i,...l})=>{let u=Ire(a);return C.jsx(Ho,{className:We("gap-1.5 rounded-full",e),size:n,type:"submit",variant:t,...l,children:i!=null?i:u})},jre=({size:e=16})=>C.jsxs("svg",{height:e,strokeLinejoin:"round",style:{color:"currentcolor"},viewBox:"0 0 16 16",width:e,children:[C.jsxs("g",{clipPath:"url(#clip0_2393_1490)",children:[C.jsx("path",{d:"M8 0V4",stroke:"currentColor",strokeWidth:"1.5"}),C.jsx("path",{d:"M8 16V12",opacity:"0.5",stroke:"currentColor",strokeWidth:"1.5"}),C.jsx("path",{d:"M3.29773 1.52783L5.64887 4.7639",opacity:"0.9",stroke:"currentColor",strokeWidth:"1.5"}),C.jsx("path",{d:"M12.7023 1.52783L10.3511 4.7639",opacity:"0.1",stroke:"currentColor",strokeWidth:"1.5"}),C.jsx("path",{d:"M12.7023 14.472L10.3511 11.236",opacity:"0.4",stroke:"currentColor",strokeWidth:"1.5"}),C.jsx("path",{d:"M3.29773 14.472L5.64887 11.236",opacity:"0.6",stroke:"currentColor",strokeWidth:"1.5"}),C.jsx("path",{d:"M15.6085 5.52783L11.8043 6.7639",opacity:"0.2",stroke:"currentColor",strokeWidth:"1.5"}),C.jsx("path",{d:"M0.391602 10.472L4.19583 9.23598",opacity:"0.7",stroke:"currentColor",strokeWidth:"1.5"}),C.jsx("path",{d:"M15.6085 10.4722L11.8043 9.2361",opacity:"0.3",stroke:"currentColor",strokeWidth:"1.5"}),C.jsx("path",{d:"M0.391602 5.52783L4.19583 6.7639",opacity:"0.8",stroke:"currentColor",strokeWidth:"1.5"})]}),C.jsx("defs",{children:C.jsx("clipPath",{id:"clip0_2393_1490",children:C.jsx("rect",{fill:"white",height:"16",width:"16"})})})]}),Pre=({size:e=16})=>C.jsx("svg",{height:e,strokeLinejoin:"round",style:{color:"currentcolor"},viewBox:"0 0 16 16",width:e,children:C.jsx("path",{clipRule:"evenodd",d:"M12.0607 6.74999L11.5303 7.28032L8.7071 10.1035C8.31657 10.4941 7.68341 10.4941 7.29288 10.1035L4.46966 7.28032L3.93933 6.74999L4.99999 5.68933L5.53032 6.21966L7.99999 8.68933L10.4697 6.21966L11 5.68933L12.0607 6.74999Z",fill:"currentColor",fillRule:"evenodd"})}),ym={"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{icon:w0,iconSize:52},"application/vnd.ms-excel":{icon:w0,iconSize:52},"text/csv":{icon:e_,iconSize:16},"text/plain":{icon:b0,iconSize:16},"application/octet-stream":{icon:b0,iconSize:16}},Fre={icon:QE,iconSize:16},zre=e=>!!(e!=null&&e.startsWith("image/")),Ure=(e,t)=>{var n;if(e&&ym[e])return ym[e];if(t)switch((n=t.split(".").pop())==null?void 0:n.toLowerCase()){case"xlsx":case"xls":return ym["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"];case"csv":return ym["text/csv"];case"txt":case"ts":case"tsx":case"js":case"jsx":case"json":case"md":return ym["text/plain"]}return Fre},Bre=()=>C.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:C.jsx("path",{d:"M9 6L15 12L9 18",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}),Hre=()=>C.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:C.jsx("path",{d:"M15 6L9 12L15 18",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}),cN=({direction:e,onClick:t,className:n})=>C.jsx("button",{type:"button",onClick:t,className:We("flex items-center justify-center","size-[36px] p-1 rounded-[18px]","bg-white shadow-[0px_0px_10px_0px_rgba(0,0,0,0.06)]","cursor-pointer","hover:bg-gray-50","text-gray-600",ra,n),children:e==="left"?C.jsx(Hre,{}):C.jsx(Bre,{})}),dN=({direction:e,height:t,visible:n})=>{const a=e==="left";return C.jsxs("div",{className:We("absolute top-[8px] pointer-events-none z-[5]",a?"left-0":"right-0",ra,n?"opacity-100":"opacity-0"),style:{height:`${t}px`,width:"46px"},children:[C.jsx("div",{className:We("absolute inset-0",a?"bg-gradient-to-r from-white via-white via-[63.57%] to-transparent":"bg-gradient-to-l from-white via-white via-[63.57%] to-transparent")}),C.jsx("div",{className:"absolute inset-0 bg-white blur-[7px]"})]})},Vre=({attachments:e,className:t,imageSize:n=53,gap:a=10,onImageClick:i,onImageRemove:l})=>{const u=O.useRef(null),f=O.useRef(null),[h,g]=O.useState(!1),[x,y]=O.useState(!1),k=O.useCallback(()=>{const _=f.current;if(!_)return;const{scrollLeft:R,scrollWidth:M,clientWidth:L}=_;g(R>0),y(R+L<M-1)},[]);O.useEffect(()=>{k();const _=f.current;if(_)return _.addEventListener("scroll",k),window.addEventListener("resize",k),()=>{_.removeEventListener("scroll",k),window.removeEventListener("resize",k)}},[k,e]);const b=_=>{const R=f.current;if(!R)return;const M=n+a,L=_==="left"?R.scrollLeft-M*2:R.scrollLeft+M*2;R.scrollTo({left:L,behavior:"smooth"})};return e.length?C.jsxs("div",{ref:u,className:We("relative w-full",t),style:{height:n+16},children:[C.jsx("div",{ref:f,className:"flex overflow-x-auto scrollbar-hide py-[8px]",style:{gap:a,height:n+16},children:e.map((_,R)=>{const M=zre(_.contentType),{icon:L,iconSize:P}=Ure(_.contentType,_.alt),F=52/102*n,D=F/P;return C.jsxs("div",{className:We("relative shrink-0 cursor-pointer group",ra),style:{width:n,height:n},onClick:()=>i==null?void 0:i(_,R),children:[M&&_.url?C.jsx("img",{src:_.url,alt:_.alt||`Attachment ${R+1}`,className:"absolute inset-0 h-full w-full rounded-[10px] object-cover"}):C.jsx("div",{className:"absolute inset-0 flex h-full w-full items-center justify-center rounded-[10px] bg-[#EFF0F6]",children:C.jsx("div",{className:"shrink-0 flex items-center justify-center",style:{width:F,height:F},children:C.jsx("div",{style:{transform:D!==1?`scale(${D})`:void 0,transformOrigin:"center"},children:C.jsx(L,{})})})}),_.isLoading&&C.jsx("div",{className:"absolute inset-0 flex items-center justify-center rounded-[10px] bg-black/50",children:C.jsx("div",{className:"inline-flex animate-spin items-center justify-center",children:C.jsx(jre,{size:16})})}),l&&!_.isLoading&&C.jsx("button",{className:We("absolute -top-[6px] -right-[6px]","flex items-center justify-center","opacity-0 group-hover:opacity-100 cursor-pointer",ra),onClick:V=>{V.stopPropagation(),l(_,R)},children:C.jsx(kq,{})})]},_.id)})}),C.jsx(dN,{direction:"left",height:n,visible:h}),C.jsx(cN,{direction:"left",onClick:()=>b("left"),className:We("absolute left-0 top-1/2 -translate-y-1/2 z-10",h?"opacity-100":"opacity-0 pointer-events-none")}),C.jsx(dN,{direction:"right",height:n,visible:x}),C.jsx(cN,{direction:"right",onClick:()=>b("right"),className:We("absolute right-0 top-1/2 -translate-y-1/2 z-10",x?"opacity-100":"opacity-0 pointer-events-none")})]}):null},$re=({setMessages:e,status:t})=>{const{exec:n=()=>{}}=Cp("onBeforeMessagesClear"),a=O.useCallback(()=>{n(null),e(()=>[])},[n,e]),{clearTimestamp:i}=Wl(l=>({clearTimestamp:l.msgClearTimestamp}));return O.useEffect(()=>{i&&a()},[i]),C.jsx(Cd,{rounded:!0,tooltip:"删除历史消息",icon:C.jsx(gq,{}),disabled:t!=="ready",onClick:l=>{l.preventDefault(),a()}})},Zre=()=>{const e=xs();return O.useCallback(n=>{e.emit("send-toast",n)},[e])};function Wre({chatId:e,input:t,setInput:n,status:a,stop:i,attachments:l,setAttachments:u,fileUploadEndpoint:f,setMessages:h,sendMessage:g,className:x}){var Ne,xe,Te,ve,K;const y=O.useRef(null),k=O.useCallback(()=>{y.current&&(y.current.style.height="44px")},[]);O.useEffect(()=>{y.current&&k()},[k]);const b=O.useCallback(()=>{y.current&&(y.current.style.height="44px")},[]);O.useEffect(()=>{if(y.current){const U=y.current.value||"";n(U),k()}},[k,n]);const _=ye=>{n(ye.target.value)},R=O.useRef(null),[M,L]=O.useState([]),{exec:P}=Cp("onBeforeMessageSend"),F=((Ne=Sp())==null?void 0:Ne.placeholder)||"Send a message...",D=((xe=Sp())==null?void 0:xe.acceptAttachmentMaxCount)||5,V=((Te=Sp())==null?void 0:Te.acceptAttachmentMaxSizeMb)||100,H=`上传附件(仅识别文字),最多${D}个,单个文件最大${V}MB`,Z=O.useCallback(()=>{const ye=P({text:t,options:{body:{stage:"design",name:t}}});g({role:"user",parts:[...l.map(U=>({type:"file",url:U.url,name:U.name,mediaType:U.contentType,providerMetadata:{uploadMetadata:U}})),{type:"text",text:t}]},ye.options),u([]),b(),n("")},[t,n,l,g,u,e,b]),q=Zre(),ae=O.useCallback(async ye=>{const U=new FormData;U.append("file",ye);try{const X=await fetch(f,{method:"POST",body:U});if(X.ok){const $=await X.json();return console.log($),$}const{error:ie}=await X.json();console.error("upload error",ie)}catch(X){}},[]),_e=O.useCallback(async ye=>{const U=Array.from(ye.target.files||[]);if(U.length===0)return;if(l.length+U.length>=D){q({type:"error",msg:`最多只能上传${D}个附件`});return}if(U.some(ie=>ie.size>V*1024*1024)){q({type:"error",msg:`单个文件大小不能超过${V}MB`});return}L(U.map(ie=>ie.name));try{const ie=U.map(Ke=>ae(Ke)),$=await Promise.all(ie),Ue=$.filter(Ke=>Ke!==void 0);console.log("uploaded attachements",$),u(Ke=>[...Ke,...Ue])}catch(ie){console.error("Error uploading files!",ie)}finally{L([])}},[u,ae,l]),ge=O.useCallback(async ye=>{var ie;const U=(ie=ye.clipboardData)==null?void 0:ie.items;if(!U)return;const X=Array.from(U).filter($=>$.type.startsWith("image/"));if(X.length!==0){ye.preventDefault(),L($=>[...$,"Pasted image"]);try{const $=X.map(De=>De.getAsFile()).filter(De=>De!==null).map(De=>ae(De)),Ke=(await Promise.all($)).filter(De=>De!==void 0&&De.url!==void 0&&De.contentType!==void 0);u(De=>[...De,...Ke])}catch($){console.error("Error uploading pasted images:",$)}finally{L([])}}},[u,ae]),he=(K=(ve=Sp())==null?void 0:ve.acceptAttachmentFileType)==null?void 0:K.join(","),we=!!he;return O.useEffect(()=>{const ye=y.current;if(ye)return ye.addEventListener("paste",ge),()=>ye.removeEventListener("paste",ge)},[ge]),C.jsxs("div",{className:We("relative flex w-full flex-col gap-4",x),children:[C.jsx("input",{className:"-top-4 -left-4 pointer-events-none fixed size-0.5 opacity-0",multiple:!0,onChange:_e,ref:R,tabIndex:-1,type:"file",accept:he}),C.jsxs(Nre,{className:"border border-[#e0e0e0] bg-background p-[10px] shadow-xs transition-all duration-200 focus-within:border-border hover:border-[#0265ff]",onSubmit:ye=>{ye.preventDefault(),a!=="ready"||Z()},children:[(l.length>0||M.length>0)&&C.jsx(Vre,{attachments:[...l.map(ye=>({id:ye.url,url:ye.url,alt:ye.name,contentType:ye.contentType})),...M.map(ye=>({id:`uploading-${ye}`,url:"",alt:ye,isLoading:!0}))],onImageRemove:ye=>{ye.id.startsWith("uploading-")||(u(U=>U.filter(X=>X.url!==ye.id)),R.current&&(R.current.value=""))}}),C.jsx("div",{className:"flex flex-row items-start gap-1 sm:gap-2",children:C.jsx(Mre,{className:"grow resize-none border-0! border-none! bg-transparent p-0 text-base outline-none ring-0 [-ms-overflow-style:none] [scrollbar-width:none] placeholder:text-[#999] focus-visible:outline-none focus-visible:ring-0 focus-visible:ring-offset-0 [&::-webkit-scrollbar]:hidden text-[#12111]","data-testid":"multimodal-input",disableAutoResize:!0,maxHeight:200,minHeight:44,onChange:_,placeholder:F,ref:y,rows:1,value:t})}),C.jsxs(Ore,{className:"border-top-0! border-t-0! p-0 shadow-none dark:border-0 dark:border-transparent!",children:[C.jsx("div",{}),C.jsxs(Lre,{className:"gap-2.5",children:[we?C.jsx(Yre,{fileInputRef:R,status:a,tooltip:H}):null,C.jsx($re,{setMessages:h,status:a}),C.jsx(xq,{}),a==="submitted"||a==="streaming"?C.jsx(Xre,{setMessages:h,stop:i}):C.jsx(Dre,{className:"cursor-pointer rounded-full bg-[#0265FF] text-primary-foreground transition-colors duration-200 hover:bg-[#0265FF]/90 disabled:bg-[#E5E6EB] disabled:text-white h-[26px] w-[26px] disabled:opacity-100","data-testid":"send-button",disabled:!t.trim()||M.length>0,status:a,children:C.jsx(mq,{})})]})]})]})]})}const qre=O.memo(Wre,(e,t)=>!(e.input!==t.input||e.status!==t.status||!Yte(e.attachments,t.attachments)));function Gre({fileInputRef:e,status:t,tooltip:n}){return C.jsx(Cd,{tooltip:n,rounded:!0,icon:C.jsx(wq,{}),disabled:t!=="ready",onClick:a=>{var i;a.preventDefault(),(i=e.current)==null||i.click()}})}const Yre=O.memo(Gre);function Jre({stop:e,setMessages:t}){return C.jsx(Ho,{className:"cursor-pointer rounded-full bg-[#0265FF] text-primary-foreground transition-colors duration-200 hover:bg-[#0265FF]/90 disabled:bg-[#E5E6EB] disabled:text-white h-[26px] w-[26px] flex items-center justify-center aspect-square p-0 disabled:!opacity-100",onClick:n=>{n.preventDefault(),e(),t(a=>a)},children:C.jsx("div",{className:"rounded-[2px] w-[8px] h-[8px] bg-white flex-shrink-0"})})}const Xre=O.memo(Jre);function Kre(e,t){if(typeof e!="function")throw new TypeError(`Expected the first argument to be a \`function\`, got \`${typeof e}\`.`);let n,a=0;return function(...l){clearTimeout(n);const u=Date.now(),f=u-a,h=t-f;h<=0?(a=u,e.apply(this,l)):n=setTimeout(()=>{a=Date.now(),e.apply(this,l)},h)}}var Qre=Kre;const eae=Wu(Qre);var fN=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},vr=(e,t,n)=>(fN(e,t,"read from private field"),n?n.call(e):t.get(e)),il=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},uc=(e,t,n,a)=>(fN(e,t,"write to private field"),t.set(e,n),n);function tae(e,t){return t!=null?eae(e,t):e}var zi,h4,m4,xm,wm,bm,Dp,w7,b7,nae=class{constructor(e=[]){il(this,zi,void 0),il(this,h4,"ready"),il(this,m4,void 0),il(this,xm,new Set),il(this,wm,new Set),il(this,bm,new Set),this.pushMessage=t=>{uc(this,zi,vr(this,zi).concat(t)),vr(this,Dp).call(this)},this.popMessage=()=>{uc(this,zi,vr(this,zi).slice(0,-1)),vr(this,Dp).call(this)},this.replaceMessage=(t,n)=>{uc(this,zi,[...vr(this,zi).slice(0,t),this.snapshot(n),...vr(this,zi).slice(t+1)]),vr(this,Dp).call(this)},this.snapshot=t=>structuredClone(t),this["~registerMessagesCallback"]=(t,n)=>{const a=n?tae(t,n):t;return vr(this,xm).add(a),()=>{vr(this,xm).delete(a)}},this["~registerStatusCallback"]=t=>(vr(this,wm).add(t),()=>{vr(this,wm).delete(t)}),this["~registerErrorCallback"]=t=>(vr(this,bm).add(t),()=>{vr(this,bm).delete(t)}),il(this,Dp,()=>{vr(this,xm).forEach(t=>t())}),il(this,w7,()=>{vr(this,wm).forEach(t=>t())}),il(this,b7,()=>{vr(this,bm).forEach(t=>t())}),uc(this,zi,e)}get status(){return vr(this,h4)}set status(e){uc(this,h4,e),vr(this,w7).call(this)}get error(){return vr(this,m4)}set error(e){uc(this,m4,e),vr(this,b7).call(this)}get messages(){return vr(this,zi)}set messages(e){uc(this,zi,[...e]),vr(this,Dp).call(this)}};zi=new WeakMap,h4=new WeakMap,m4=new WeakMap,xm=new WeakMap,wm=new WeakMap,bm=new WeakMap,Dp=new WeakMap,w7=new WeakMap,b7=new WeakMap;var jp,pN=class extends eW{constructor({messages:t,...n}){const a=new nae(t);super({...n,state:a}),il(this,jp,void 0),this["~registerMessagesCallback"]=(i,l)=>vr(this,jp)["~registerMessagesCallback"](i,l),this["~registerStatusCallback"]=i=>vr(this,jp)["~registerStatusCallback"](i),this["~registerErrorCallback"]=i=>vr(this,jp)["~registerErrorCallback"](i),uc(this,jp,a)}};jp=new WeakMap;function hN({experimental_throttle:e,resume:t=!1,...n}={}){const a=O.useRef("chat"in n?n.chat:new pN(n));("chat"in n&&n.chat!==a.current||"id"in n&&a.current.id!==n.id)&&(a.current="chat"in n?n.chat:new pN(n));const l=O.useCallback(x=>a.current["~registerMessagesCallback"](x,e),[e,a.current.id]),u=O.useSyncExternalStore(l,()=>a.current.messages,()=>a.current.messages),f=O.useSyncExternalStore(a.current["~registerStatusCallback"],()=>a.current.status,()=>a.current.status),h=O.useSyncExternalStore(a.current["~registerErrorCallback"],()=>a.current.error,()=>a.current.error),g=O.useCallback(x=>{typeof x=="function"&&(x=x(a.current.messages)),a.current.messages=x},[a]);return O.useEffect(()=>{t&&a.current.resumeStream()},[t,a]),{id:a.current.id,messages:u,setMessages:g,sendMessage:a.current.sendMessage,regenerate:a.current.regenerate,clearError:a.current.clearError,stop:a.current.stop,error:h,resumeStream:a.current.resumeStream,status:f,addToolResult:a.current.addToolOutput,addToolOutput:a.current.addToolOutput}}function rae(e){const t=new Map,n=[],a=i=>i.parts.filter(l=>{if(l.type==="text"){const u=l.text;return u&&u.trim()!==""}return l.type!=="step-start"});for(const i of e)if(t.has(i.id)){const l=t.get(i.id);t.set(i.id,{...l,parts:[...a(l),...a(i)]})}else n.push(i.id),t.set(i.id,{...i,parts:a(i)});return n.map(i=>t.get(i)).filter(i=>i.parts.length>0)}function aae(e){const t=hN(e);if(!(e!=null&&e.enableMerge))return t;const n=O.useMemo(()=>rae(t.messages),[t.messages]);return{...t,messages:n}}const oae=(e,t)=>{const n=xs();O.useEffect(()=>{n.emit("chat-msg-status-change",{messageId:e,status:t})},[e,t])},Cm=(e,t)=>{const n=xs();O.useEffect(()=>{const a=i=>t(i);return n.on(e,a),()=>{n.off(e,a)}},[e,t])},iae=({client:e})=>{var H,Z;const t=Sp(e),{exec:n=()=>{}}=Cp("onAfterChatAreaHide"),a=O.useMemo(()=>{var q;return new N9({api:(q=e==null?void 0:e.options)==null?void 0:q.chatApiEndpoint,headers:()=>{var ae;return{...(ae=e==null?void 0:e.options)==null?void 0:ae.chatApiHeaders}}})},[(H=e==null?void 0:e.options)==null?void 0:H.chatApiEndpoint,(Z=e==null?void 0:e.options)==null?void 0:Z.chatApiHeaders]),{messages:i,sendMessage:l,status:u,id:f,setMessages:h,stop:g,addToolOutput:x,regenerate:y}=aae({transport:a,enableMerge:t==null?void 0:t.enableMessageMerge});Cm("send-ghost-msg",q=>{const{text:ae,options:_e}=q;l({text:ae},_e)});const{isHide:k}=e7();O.useEffect(()=>{k&&(g(),n({clearMsgs:()=>{h(()=>[])}}))},[k,g]);const[b,_]=O.useState(""),[R,M]=O.useState([]),L=mp("MessageInputTopSlot"),P=L==null?void 0:L.Component,F=C.jsx(qre,{fileUploadEndpoint:e.options.fileUploadEndPoint,attachments:R,chatId:f,input:b,messages:i,sendMessage:l,setAttachments:M,setInput:_,setMessages:h,status:u,stop:g}),D=P?C.jsx(P,{}):null,V=P?C.jsxs("div",{className:"flex flex-col gap-[12px]",children:[D,F]}):F;return oae(f,u),O.useEffect(()=>()=>{g()},[]),C.jsx(nW,{messagesArea:C.jsx(qte,{regenerate:y,status:u,messages:i,setMessages:h,sendMessage:l,addToolOutput:x}),inputArea:V})},g4=({children:e,className:t,minimal:n,entryVariant:a="default",icon:i,...l})=>{const u={default:"relative overflow-hidden bg-[linear-gradient(180deg,#DBE9FF_0%,#E9FFFD_100%)] h-[30px] hover:text-white before:content-[''] before:absolute before:inset-0 before:z-0 before:bg-[linear-gradient(180deg,#267AFF_0%,#B2EEFF_100%)] before:opacity-0 hover:before:opacity-100 before:transition-opacity before:duration-200 before:ease-out font-[500] text-[#0265ff]",ghost:"bg-transparent text-[#030303] font-[400] px-[10px] hover:bg-[#EFF0F6] h-[34px]",selected:"bg-[#EFF0F6] text-[#030303] font-[400] px-[10px]"};return C.jsx(Ho,{...l,variant:"entry",size:"entry",className:We("rounded-[4px] cursor-pointer",ra,u[a],t),children:C.jsxs("span",{className:"relative z-10 inline-flex items-center gap-1.5",children:[i!=null?i:C.jsx(r_,{}),n?null:e]})})},v4=({id:e,style:t="",rootEl:n,containerClasses:a=[],wrapperClasses:i=[],wrapperStyle:l={},extraHtml:u=""})=>{const[f,h]=O.useState(null),g=O.useRef(null);return O.useEffect(()=>{var x;(x=g.current)==null||x.classList.add(...i),f==null||f.classList.add(...a)},[i,a]),O.useEffect(()=>{g.current&&Object.entries(l).forEach(([x,y])=>{y!==void 0&&(g.current.style[x]=y)})},[l]),O.useEffect(()=>{g.current&&g.current.parentNode&&(g.current.parentNode.removeChild(g.current),g.current=null);try{const x=document.createElement("div");x.classList.add(...i,"wrapper"),g.current=x,Object.entries(l).forEach(([_,R])=>{R!==void 0&&(x.style[_]=R)});const y=x.attachShadow({mode:"open"});if(u&&(y.innerHTML=u),t){const _=document.createElement("style");_.textContent=t,y.appendChild(_)}const k=document.createElement("div");k.classList.add(...a,"shadow-container"),y.appendChild(k),(n||document.body).appendChild(x),h(k)}catch(x){console.error("创建Shadow DOM失败:",x),h(null)}},[n]),f&&(f.id=e),{shadowContainer:f,destroy:()=>{g.current&&g.current.parentNode&&(g.current.parentNode.removeChild(g.current),g.current=null)}}},sae=({avatar:e,width:t,onDockClick:n,onCloseClick:a,draggable:i,isDragging:l,isDocked:u,onDragStart:f})=>C.jsxs("div",{className:We("flex items-center justify-between","px-4","h-[52px] min-w-[200px]",{"w-full":!t,[`w-[${t}px]`]:t,"cursor-grab":i&&!l,"cursor-grabbing":l}),style:{backgroundImage:dq,backgroundSize:"cover",backgroundRepeat:"no-repeat"},onMouseDown:i?f:void 0,children:[e,C.jsxs("div",{className:"actions flex items-center gap-2.5 text-[#666]",children:[C.jsx(Cd,{tooltip:u?"悬浮":"停靠",className:"hover:!bg-[#ffffff]",icon:u?C.jsx(pq,{}):C.jsx(fq,{}),onClick:n}),C.jsx(Cd,{tooltip:"关闭",className:"hover:!bg-[#ffffff]",icon:C.jsx(hq,{}),onClick:a})]})]}),lae={bottom:10,right:10};function uae(e={}){const{enabled:t=!0,initialPosition:n=lae,onPositionChange:a}=e,i=O.useMemo(()=>n,[n.bottom,n.right]),[l,u]=O.useState(i),[f,h]=O.useState(!1),g=O.useRef(a);g.current=a;const x=O.useRef({isDragging:!1,startX:0,startY:0,startBottom:0,startRight:0}),y=O.useRef(null),k=O.useCallback(()=>{var _;u(i),(_=g.current)==null||_.call(g,i)},[i]),b=O.useCallback(_=>{if(!t)return;_.preventDefault(),_.stopPropagation(),x.current={isDragging:!0,startX:_.clientX,startY:_.clientY,startBottom:l.bottom,startRight:l.right},h(!0),document.body.style.userSelect="none",document.body.style.cursor="grabbing";const R=L=>{x.current.isDragging&&(y.current!==null&&cancelAnimationFrame(y.current),y.current=requestAnimationFrame(()=>{var V;const P=L.clientX-x.current.startX,F=L.clientY-x.current.startY,D={right:Math.max(10,x.current.startRight-P),bottom:Math.min(x.current.startBottom-F,10)};u(D),(V=g.current)==null||V.call(g,D)}))},M=()=>{x.current.isDragging=!1,h(!1),document.body.style.userSelect="",document.body.style.cursor="",y.current!==null&&(cancelAnimationFrame(y.current),y.current=null),document.removeEventListener("mousemove",R),document.removeEventListener("mouseup",M)};document.addEventListener("mousemove",R),document.addEventListener("mouseup",M)},[t,l]);return O.useEffect(()=>()=>{y.current!==null&&cancelAnimationFrame(y.current),document.body.style.userSelect="",document.body.style.cursor=""},[]),{position:l,isDragging:f,handleDragStart:b,resetPosition:k}}const cae=({client:e})=>{var _,R;const{setStatus:t,isVisible:n,isFloat:a,isDock:i}=e7(),{position:l,isDragging:u,handleDragStart:f,resetPosition:h}=uae({enabled:a,initialPosition:{bottom:10,right:10}});O.useEffect(()=>{i&&h()},[i,h]);const g=We({"fixed z-50 rounded-lg":a,"shadow-lg":a&&!u,"shadow-2xl scale-[1.01] transition-shadow":a&&u,hidden:!n,"static w-full h-full shadow-md":i}),x=mp("AvatarAndName"),y=x==null?void 0:x.Component,k=y?C.jsx(y,{variant:"active"}):C.jsx(qh,{name:"AI表单搭建",variant:"active"}),b=a?{width:354,height:"calc(100% - 20px)",bottom:`${l.bottom}px`,right:`${l.right}px`,zIndex:(R=(_=e==null?void 0:e.options)==null?void 0:_.safeZIndex)!=null?R:1}:{};return C.jsxs("div",{className:We("bg-white flex flex-col overflow-hidden",g),style:b,children:[C.jsx(sae,{onDockClick:()=>{t(a?"dock":"float")},isDocked:i,avatar:k,onCloseClick:()=>{t("hide")},draggable:a,isDragging:u,onDragStart:f}),C.jsx(iae,{client:e})]})},dae=({client:e})=>{var u,f,h;const{isVisible:t,container:n}=Wl(g=>({isVisible:g.chatStatus!=="hide",container:g.chatAreaContainer})),a=["h-full","w-full"],i={height:"100%",width:"100%"},{shadowContainer:l}=v4({id:"chat-sdk-content",style:((u=e==null?void 0:e.options)==null?void 0:u.style)||"",rootEl:n||((f=e==null?void 0:e.options)==null?void 0:f.el)||document.body,containerClasses:t?a:[],wrapperClasses:t?a:[],wrapperStyle:t?i:{},extraHtml:((h=e==null?void 0:e.options)==null?void 0:h.extraHtml)||""});return l?Zl.createPortal(C.jsx(cae,{client:e}),l):null},fae=({client:e})=>{var R,M,L;const{bottom:t=10,right:n=10}=((R=e==null?void 0:e.options)==null?void 0:R.btnOffset)||{},{entryVisible:a,entryWrapper:i,setStatus:l,isVisible:u,entryVariant:f}=Wl(P=>({setStatus:P.setChatStatus,entryVariant:P.chatEntryVariant,entryWrapper:P.chatEntryElWrapper,isVisible:P.chatStatus!=="hide",entryVisible:P.chatEntryVisible})),h=!!i,g=mp("EntryButton"),x=g==null?void 0:g.Component,y=h?{cursor:"pointer"}:{position:"fixed",cursor:"pointer",bottom:t,right:n,zIndex:(M=e==null?void 0:e.options)==null?void 0:M.safeZIndex},k=x?C.jsx(x,{client:e,variant:f,chatVisible:u,style:y,onClick:()=>{l("dock")}}):C.jsx(g4,{style:y,minimal:u,onClick:()=>{l("dock")},children:"AI助手"}),{shadowContainer:b,destroy:_}=v4({id:"chat-sdk-entry",rootEl:i,containerClasses:["inline-flex"],wrapperClasses:["inline-flex","flex","items-center"],style:((L=e==null?void 0:e.options)==null?void 0:L.style)||""});return a?h?b?Zl.createPortal(k,b):null:(_(),k):null},pae=({client:e,config:t})=>{var k,b;const{setStatus:n,isVisible:a}=Wl(_=>({setStatus:_.setChatStatus,isVisible:_.chatStatus!=="hide"})),i=mp("EntryButton"),l=i==null?void 0:i.Component,u=!!t.wrapperEl,f=u?{cursor:"pointer"}:{position:"fixed",cursor:"pointer",zIndex:(k=e==null?void 0:e.options)==null?void 0:k.safeZIndex},h=()=>{n("dock")},g=l?C.jsx(l,{client:e,variant:t.variant,chatVisible:a,style:f,onClick:h}):C.jsx(g4,{style:f,minimal:a,onClick:h,children:"AI助手"}),{shadowContainer:x,destroy:y}=v4({id:`chat-sdk-entry-${t.id}`,rootEl:t.wrapperEl,containerClasses:["inline-flex"],wrapperClasses:["inline-flex"],style:((b=e==null?void 0:e.options)==null?void 0:b.style)||""});return t.visible?u?x?Zl.createPortal(g,x):null:(y(),g):null},hae=({client:e})=>{const t=Wl(a=>a.chatEntryButtons),n=Array.from(t.values());return n.length===0?null:C.jsx(C.Fragment,{children:n.map(a=>C.jsx(pae,{client:e,config:a},a.id))})},mae=({client:e})=>C.jsxs(C.Fragment,{children:[C.jsx(dae,{client:e}),C.jsx(fae,{client:e}),C.jsx(hae,{client:e})]}),gae=({store:e,client:t})=>{var n;return C.jsx(hj,{store:e,children:C.jsx(iJ,{zIndex:((n=t==null?void 0:t.options)==null?void 0:n.safeZIndex)!=null?t.options.safeZIndex+1:50,children:C.jsx(mae,{client:t})})})};class vae{constructor(){Ge(this,"events",new Map)}on(t,n){return this.events.has(t)||this.events.set(t,[]),this.events.get(t).push(n),this}off(t,n){const a=this.events.get(t);if(!a)return this;const i=a.indexOf(n);return i>-1&&a.splice(i,1),this}emit(t,n){const a=this.events.get(t);return!a||a.length===0?!1:(a.slice().forEach(i=>{try{i(n)}catch(l){console.error(`Error in event handler for "${String(t)}":`,l)}}),!0)}once(t,n){const a=i=>{n(i),this.off(t,a)};return this.on(t,a)}listenerCount(t){var n,a;return(a=(n=this.events.get(t))==null?void 0:n.length)!=null?a:0}eventNames(){return Array.from(this.events.keys())}removeAllListeners(t){return t?this.events.delete(t):this.events.clear(),this}listeners(t){var n,a;return(a=(n=this.events.get(t))==null?void 0:n.slice())!=null?a:[]}}class yae extends vae{}const zp=class zp{constructor(t){Ge(this,"root");Ge(this,"Store");Ge(this,"options");Ge(this,"eventBus",new yae);this.options=t;const n=document.createElement("div");document.body.appendChild(n),n.id=`bs-chat-sdk-inst-root-${Date.now()}`,this.options.style+=__SDK_STYLES__,this.Store=tj(this),nj(this.Store,this.options),this.initPlugins(),this.root=Ov(n),this.root.render(C.jsx(gae,{client:this,store:this.Store})),zp.instances.push(this)}diposePlugins(){this.Store.getState().chatAreaPluginInstList.forEach(n=>{typeof n.dispose=="function"&&(n.dispose(),n.Context={})})}initPlugins(){var n;if(!this.options||!((n=this.options.plugins)!=null&&n.length))return;const t=this.options.plugins.map(a=>{var u;const i=a.createContext(),l=new a.Plugin(i);return(u=l.init)==null||u.call(l,this),l});this.Store.getState().setChatAreaPluginInstList(t)}getPluginCtx(t){var a;const n=this.Store.getState().chatAreaPluginInstList.find(i=>i.pluginName===t);return n?(a=n.getReadonlyContext)==null?void 0:a.call(n):void 0}getPluginMethod(t,n){const a=this.Store.getState().chatAreaPluginInstList.find(i=>i.pluginName===t);if(a&&typeof a[n]=="function")return a[n]}clearChatHistory(){this.Store.getState().clearMessages()}getFullStyle(){return this.options.style}showChatArea(t,n){t?this.dockChatArea(n):this.Store.getState().setChatStatus("float")}setAuthToken(t){var a;((a=this.options.chatApiHeaders)==null?void 0:a.Authorization)!==`Bearer ${t}`&&(this.options.chatApiHeaders={...this.options.chatApiHeaders,Authorization:`Bearer ${t}`})}setUserId(t){this.options.chatApiHeaders={...this.options.chatApiHeaders,"X-User-Id":t}}getChatStatus(){return this.Store.getState().chatStatus}isChatVisible(){return this.Store.getState().chatStatus!=="hide"}hideChatArea(){this.Store.getState().setChatStatus("hide")}dockChatArea(t){const n=this.Store.getState().chatAreaContainer;t===n&&this.Store.getState().chatStatus==="dock"||(this.Store.getState().setChatEntryVisible(!1),this.Store.getState().setChatAreaContainer(t),this.Store.getState().setChatStatus("dock"))}undockChatArea(){this.Store.getState().setChatAreaContainer(void 0),this.Store.getState().setChatEntryVisible(!0),this.Store.getState().setChatStatus("float")}isChatFloat(){return this.Store.getState().chatStatus==="float"}isChatDocked(){return this.Store.getState().chatStatus==="dock"}showChatEntryButton(t,n="default",a){a?this.upsertChatEntryButton(a,t,n):(this.Store.getState().setChatEntryVariant(n),this.Store.getState().setChatEntryVisible(!0,t))}hideChatEntryButton(t){t?this.Store.getState().setChatEntryButtonVisible(t,!1):this.Store.getState().setChatEntryVisible(!1)}upsertChatEntryButton(t,n,a="default"){this.Store.getState().upsertChatEntryButton({id:t,visible:!0,variant:a,wrapperEl:n})}removeChatEntryButton(t){this.Store.getState().removeChatEntryButton(t)}destroy(){this.diposePlugins(),this.eventBus.removeAllListeners(),zp.instances=zp.instances.filter(t=>t!==this)}};Ge(zp,"instances",[]);let C7=zp;const xae=({children:e,onClick:t,disabled:n=!1,className:a})=>C.jsx("div",{className:We("relative rounded-[6px] p-[1px] cursor-pointer h-[34px] flex items-center justify-center","bg-gradient-to-b from-[#84B4FF] to-[#B1FAFF]",a),style:{background:"linear-gradient(180deg, #84B4FF 0%, #B1FAFF 100%)"},children:C.jsx("button",{className:We("w-full h-[32px] px-[10px]","bg-white rounded-[5px]","flex items-center justify-center","text-[#0265ff] text-[14px]","cursor-pointer","transition-all duration-200","hover:bg-[#f5f9ff]","disabled:opacity-95 disabled:cursor-not-allowed"),onClick:t,disabled:n,children:e})}),wae=e=>C.jsx(xae,{className:"self-start",onClick:()=>{var t;(t=e.onSelect)==null||t.call(e,e.title)},children:e.description}),Ui={CREATE_FORM:"form-builder-FormCreateConfirmed",CREATE_FORM_SUCCESS:"form-builder-FormCreateSuccess",CREATE_FORM_FAILED:"form-builder-FormCreateFailed",UPDATE_FORM_INFO:"form-builder-FormInfoUpdated",SAVE_FIELDS:"form-builder-FieldsConfirmed",FIELD_CREATED:"form-builder-FieldCreated",FIELDS_CREATED_FINISH:"form-builder-FieldsCreatedFinish",FIELD_CHECK_UPDATE:"form-builder-FieldCheckedChanged"},bae=()=>{const[e,t]=O.useState(!1);return Cm(Ui.SAVE_FIELDS,()=>{t(!0)}),e},Pp=e=>{const{pluginMap:t}=Wl(n=>({pluginMap:n.chatAreaPluginMap}));return t.get(e)},y4="McpFormBuilderPlugin",Cae={mode:"tree",extendSet:{sort:["datahelp","module","formEvent"],status:!0,triggerField:"",triggerFieldMode:"none"},dataloadmode:["add","cover"]};function mN(e,t){const n=e.match(t);return n?n[1]:""}function Sae(e,t="表"){return e.endsWith(t)?e:e+t}function gN(e){if(!e)return"";const t=[/关联来源:(.*)表?,/,/关联(.*)表?/,/(从(.*)表?中查询)/,/来自(.*)表?/];for(const n of t){const a=mN(e,n);if(a)return Sae(a)}return""}function kae(e){const t=e.split(`
533
+ `).filter(a=>a.trim()),n=[];return t.forEach(a=>{const[i,l,u,f,h=""]=a.split("|").map(M=>M.trim());if(!i||!l||!u||!f)return;const g=l.match(/类型:(.*)/),x=g?g[1]:"",y=u.match(/必填:(\w+)/),k=y?y[1]==="是":!1,b=f.match(/说明:(.+)/),_=b?b[1]:"",R=mN(h,/关系:(.+)/);n.push({fieldName:i,type:x,required:k,description:_,relationDesc:R})}),n}function Eae(e){const t=new Map;return e.forEach(n=>{if(n.type==="关联查询"||n.type==="关联数据"){const a=gN(n.relationDesc)||gN(n.description),i=n.fieldName.match(/\d+\. (.*)/),l=i?i[1]:n.fieldName,u=l.split("-"),f=u.length>1?u[u.length-1]:l;t.set(f,{fieldName:f,targetFormName:a})}}),t}const _ae=e=>({linkInfoMap:Eae(kae(e)),formName:oq(e)}),Ad=(e,t)=>!e||!e.widget?!1:e.widget.type===t,Tae=e=>{var t,n;return Ad(e,"subform")?((n=(t=e.widget)==null?void 0:t.items)==null?void 0:n.length)>0:!1},Rae=e=>Ad(e,"linkdata")||Ad(e,"linkquery"),Aae=e=>!e||!e.widget?!1:e.widget.type==="sn",Nae=e=>!e||!e.widget?!1:e.widget.type==="text",Mae=e=>e?e.linkInfoMap&&e.linkInfoMap.size>0:!1,Oae=(e,t)=>{const{isTargetForm:n,isTargetField:a,fieldProcessor:i,onFormProcessed:l}=t;let u;for(const[f,h]of e){if(u=!1,!n(f,h)){console.log("不是目标表单,不处理");continue}const g=h.designInfo.linkInfoMap;for(const[x,y]of g)if(a(x,y)){u=!0;const k=h.fieldMap.get(x),b=i(h,k,y);h.fieldMap.set(x,b)}u&&l(h)}},vN=(e="_widget",t)=>{const n=`${e}_${Date.now()}`;if(t===void 0)return n;const a=t.toString().length;return`${n.slice(0,-a)}${t}`},Lae=(e,t,n,a)=>{var f,h,g,x;if(!Ad(e,"dataload"))return console.log("非数据加载字段,跳过处理",e),e;if(!t.targetFormName)return console.log("无关联信息,跳过处理",e),e;if(n.size===0)return console.log("无表单映射,跳过处理",e),e;const i=n.get(t.targetFormName);if(!i)return console.log("无表单映射,跳过处理",e),e.widget.loaddataconfig=Cae,e;const l=((h=(f=e.widget)==null?void 0:f.loaddataconfig)==null?void 0:h.mapFields)||[],u=((x=(g=e.widget)==null?void 0:g.loaddataconfig)==null?void 0:x.fields)||[];if(!l||l.length===0||l.length!==u.length)return console.log("无映射字段,跳过处理",e),e;console.log("开始数据加载补全逻辑",e,i),e.widget.loaddataconfig.forms=i.formId;for(let y=0;y<l.length;y++){const k=l[y],b=u[y],_=k.depend.field,R=i.fieldMap.get(_);if(!R){console.log("未找到目标依赖字段,跳过处理该映射字段",k);continue}const M=vN("f",y);k.field=vN("_widget",y),k.depend.field=M,b.name=R.widget.widgetName,b.form=i.formId,b.tag=M}return console.log("数据加载字段信息已补全",e),a(e),e},yN=(e,t,n,a)=>{if(console.log(e,t,n),!Rae(e))return console.log("非关联字段,跳过处理",e),e;if(!t.targetFormName)return console.log("无关联信息,跳过处理",e),e;if(n.size===0)return console.log("无表单映射,跳过处理",e),e;const i=n.get(t.targetFormName);if(!i)return console.log("未找到目标表单,跳过处理",e),e;try{e.widget.refAppId=i.appId,e.widget.linkForm=i.formId}catch(f){return console.error("尝试建立表单关联失败"),e}const l=i.fields.find(Aae);if(!l)return console.log("未找到目标表单的主键字段,跳过处理",e),e;if(Ad(e,"linkdata"))try{e.widget.linkKey=l.widget.widgetName,e.widget.linkType="sn"}catch(f){return console.error("尝试建立主键关联失败"),e}const u=i.fields.find(Nae);if(!u)return console.log("未找到目标表单的显示字段,跳过处理",e),e;try{e.widget.linkFields=[{text:u.label,name:u.widget.widgetName,type:"text"}]}catch(f){return console.error("尝试建立显示字段关联失败"),e}return console.log("关联字段信息已补全",e),a(e),e},S7={linkdata:e=>(t,n,a)=>yN(n,a,e,i=>{t.designInfo.linkInfoMap.delete(a.fieldName)}),linkquery:e=>(t,n,a)=>yN(n,a,e,i=>{t.designInfo.linkInfoMap.delete(a.fieldName)}),dataload:e=>(t,n,a)=>Lae(n,a,e,i=>{t.designInfo.linkInfoMap.delete(a.fieldName)})},Nd=({text:e="确认",prefixDesc:t,className:n,disabled:a,light:i,icon:l,children:u,...f})=>{const h=C.jsxs(Ho,{...f,variant:"default",disabled:a,className:We("px-[10px] py-0 rounded-[100px] text-[14px] leading-normal h-[34px] min-w-[100px] cursor-pointer w-full disabled:opacity-100 gap-[6px] shadow-none",a?"bg-[#f0f0f0] text-[#999] cursor-not-allowed shadow-none":i?"bg-[#F0F6FF] text-[#0265FF] hover:bg-[#0265FF] hover:text-white":"bg-[#0265ff] text-white hover:bg-[#0265ff]/80",ra,{"!bg-[#E5E6EB] !text-[#121111] shadow-none font-[400]":f.disabledWithInfo},n),children:[l,u||e]});return t?C.jsxs("div",{className:"flex flex-col items-start gap-2.5",children:[C.jsx("p",{className:"text-[#4D609F]",children:t}),h]}):h},xN=[{id:"biaodan1",code:"&#xe814;",label:"表单1",value:25},{id:"biaodan2",code:"&#xe81d;",label:"表单2",value:26},{id:"biaodan3",code:"&#xe81c;",label:"表单3",value:27},{id:"biaodan4",code:"&#xe81a;",label:"表单4",value:28},{id:"biaodan5",code:"&#xe813;",label:"表单5",value:29},{id:"biaodan6",code:"&#xe81b;",label:"表单6",value:30},{id:"biaodan7",code:"&#xe818;",label:"表单7",value:31},{id:"biaodan8",code:"&#xe819;",label:"表单8",value:32},{id:"biaodan9",code:"&#xe817;",label:"表单9",value:33},{id:"biaodan10",code:"&#xe816;",label:"表单10",value:34},{id:"biaodan11",code:"&#xe810;",label:"表单11",value:35},{id:"biaodan12",code:"&#xe815;",label:"表单12",value:36},{id:"biaodan13",code:"&#xe812;",label:"表单13",value:37},{id:"biaodan14",code:"&#xe811;",label:"表单14",value:38},{id:"biaodan15",code:"&#xe80e;",label:"表单15",value:39},{id:"biaodan16",code:"&#xe80f;",label:"表单16",value:40},{id:"biaodan17",code:"&#xe80d;",label:"表单17",value:41},{id:"biaodan18",code:"&#xe807;",label:"表单18",value:42},{id:"biaodan19",code:"&#xe80b;",label:"表单19",value:43},{id:"biaodan20",code:"&#xe80a;",label:"表单20",value:44},{id:"biaodan21",code:"&#xe80c;",label:"表单21",value:45},{id:"biaodan22",code:"&#xe809;",label:"表单22",value:46},{id:"biaodan23",code:"&#xe808;",label:"表单23",value:47},{id:"biaodan24",code:"&#xe805;",label:"表单24",value:48},{id:"biaodan25",code:"&#xe7ff;",label:"表单25",value:49},{id:"biaodan26",code:"&#xe803;",label:"表单26",value:50},{id:"biaodan27",code:"&#xe806;",label:"表单27",value:51},{id:"biaodan28",code:"&#xe802;",label:"表单28",value:52},{id:"biaodan29",code:"&#xe800;",label:"表单29",value:53},{id:"biaodan30",code:"&#xe804;",label:"表单30",value:54},{id:"biaodan31",code:"&#xe801;",label:"表单31",value:55},{id:"biaodan32",code:"&#xe7fe;",label:"表单32",value:56},{id:"biaodan33",code:"&#xe7fc;",label:"表单33",value:57},{id:"biaodan34",code:"&#xe7fd;",label:"表单34",value:58},{id:"biaodan35",code:"&#xe7fb;",label:"表单35",value:59},{id:"biaodan36",code:"&#xe7fa;",label:"表单36",value:60}],k7=({size:e=36,code:t,style:n})=>{const a=e*.238,i=e*.6875;return C.jsx("div",{className:"relative flex items-center justify-center bg-[#0265ff] flex-shrink-0 text-white",style:{width:e,height:e,borderRadius:a,fontSize:i,...n},children:C.jsx(x0,{code:t||xN[0].code,style:{fontSize:i}})})},Iae=O.memo(({name:e,onNameChange:t,onMount:n,selectedIcon:a,iconOptions:i=[],onIconChange:l,readonly:u,onConfirm:f,expanded:h,onExpandedChange:g,className:x})=>{const[y,k]=O.useState(!1),[b,_]=O.useState(!1),R=h!=null?h:y,M=V=>{k(V),g==null||g(V)},[L,P]=O.useState(e),[F,D]=O.useState(a);return O.useEffect(()=>{n==null||n()},[]),!R||u?C.jsxs("div",{className:We("bg-white hover:bg-[#fafafa] border border-[#e0e0e0] rounded-[10px] px-[10px] py-0 flex items-center justify-between h-[56px] cursor-pointer",ra,x,"duration-100"),onClick:()=>{u||M(!0)},children:[C.jsxs("div",{className:"flex items-center gap-[10px] min-w-0 flex-1 mr-[10px]",children:[C.jsx(k7,{size:36,code:F==null?void 0:F.code}),C.jsx("p",{className:"text-[14px] text-black leading-normal truncate",children:L})]}),C.jsx("button",{onClick:()=>{u||M(!0)},className:We("w-[16px] h-[16px] flex items-center justify-center cursor-pointer hover:text-[#0265ff]",ra,{"pointer-events-none opacity-0":u}),children:C.jsx(KE,{})})]}):C.jsxs("div",{className:We("bg-[#fafafa] border border-[#e0e0e0] rounded-[10px] p-[12px] flex flex-col gap-[22px]",ra,x,"duration-100"),children:[C.jsxs("div",{className:"flex flex-col gap-[10px] w-full",children:[C.jsx("p",{className:"text-[14px] text-[#030303] font-bold leading-normal",children:"名称"}),C.jsx("input",{type:"text",value:L,onChange:V=>{P(V.target.value)},onBlur:()=>{t==null||t(L)},className:We("bg-white border border-[#e0e0e0] rounded-[4px] h-[34px] px-[10px] py-[7px] w-full","text-[14px] text-[#030303] leading-normal outline-none","focus:border-[#0265ff]","hover:border-[#0265ff]",ra)})]}),C.jsxs("div",{className:"flex flex-col gap-[10px] w-full",children:[C.jsx("p",{className:"text-[14px] text-[#030303] font-bold leading-normal",children:"图标"}),C.jsxs("div",{className:"relative",style:{zIndex:10},children:[C.jsxs("button",{onClick:()=>_(!b),className:We("bg-white border border-[#e0e0e0] rounded-[4px] h-[34px] px-[10px] py-[7px] w-full","flex items-center justify-between cursor-pointer","hover:border-[#0265ff]",ra),children:[C.jsx("div",{className:"flex items-center",children:C.jsx(k7,{size:16,code:F==null?void 0:F.code})}),C.jsx("div",{className:We("text-[#666]",ra,b&&"rotate-180"),children:C.jsx(Pre,{size:16})})]}),b&&i.length>0&&C.jsx("div",{className:We("absolute top-full left-0 mt-[4px] bg-white rounded-[10px] shadow-md z-10 p-[12px]",ra),children:C.jsx("div",{className:"grid grid-cols-6 gap-[8px]",children:i.map(V=>C.jsx("button",{onClick:()=>{l==null||l(V),D(V),_(!1)},className:We("aspect-square rounded-[9.5px] border flex items-center justify-center cursor-pointer overflow-hidden",(F==null?void 0:F.id)===V.id?"border-[#0265ff] border-2":"border-[#e0e0e0] hover:bg-[#eff0f6]",ra),title:V.label,children:C.jsx(k7,{code:V.code,style:{background:"transparent",color:"#0265ff"}})},V.id))})})]})]}),C.jsx(Nd,{text:"确认",onClick:()=>{f==null||f(L,(F==null?void 0:F.value)||25),M(!1)}})]})},(e,t)=>{var n,a;return e.name===t.name&&((n=e.selectedIcon)==null?void 0:n.id)===((a=t.selectedIcon)==null?void 0:a.id)&&e.expanded===t.expanded&&e.iconOptions===t.iconOptions}),Dae=O.memo(({designDoc:e,sendMessage:t})=>{const n=Pp(y4),[a,i]=O.useState(!1),[l,u]=O.useState(!1),[f,h]=O.useState(!1),g=xs(),x=O.useRef(null);Cm(Ui.CREATE_FORM_SUCCESS,_=>{const R=_;n==null||n.onFormCreate(R),u(!0),x.current=R}),Cm(Ui.CREATE_FORM_FAILED,_=>{h(!0)}),O.useEffect(()=>{x.current&&g.emit("form-builder-FieldsCreatedFinish",x.current)},[]);const y=_ae(e),k=f?C.jsx(eA,{message:"表单创建失败"}):C.jsx(z0,{children:"创建中"}),b=C.jsx(Td,{children:l?C.jsxs(C.Fragment,{children:[C.jsxs("span",{className:"text-[#4d609f]",children:["已为你创建",y.formName]}),C.jsx(Iae,{onConfirm:(_,R)=>{x.current&&(x.current.formName=_,x.current.formIcon=R,g.emit(Ui.UPDATE_FORM_INFO,x.current))},onNameChange:_=>{x.current&&(x.current.formName=_,g.emit(Ui.UPDATE_FORM_INFO,x.current))},onIconChange:_=>{x.current&&(x.current.formIcon=_.value,g.emit(Ui.UPDATE_FORM_INFO,x.current))},name:y.formName,iconOptions:xN,className:"w-full",onMount:()=>{setTimeout(()=>{var _;t({text:`确认搭建:${(_=n.getCurrentWorkingForm())==null?void 0:_.formName}`},{body:{stage:"build"}})},500)}})]}):k});return C.jsxs(C.Fragment,{children:[C.jsx(Nd,{disabled:a,prefixDesc:`确认搭建:${y.formName}`,onClick:()=>{n==null||n.onBeforeFormCreate(y),g.emit("form-builder-FormCreateConfirmed",{name:y.formName}),i(!0)}}),a?b:null]})},(e,t)=>e.designDoc===t.designDoc),Md={text:"输入框",password:"密码输入框",location:"定位",datetime:"日期时间选择器",radiogroup:"单选框",radio:"单选框",combo:"下拉框",address:"地址",button:"按钮",textarea:"多行输入框",combocheck:"多选下拉框",checkboxgroup:"多选框组",separator:"分割线",upload:"附件上传",number:"数字输入框",dataload:"数据加载",image:"图片上传",signature:"签名",dept:"部门选择",user:"成员选择",usergroup:"成员多选",deptgroup:"部门多选",unknown:"未知类型",sn:"流水号",formula:"公式字段",linkdata:"关联数据",linkquery:"关联查询",subform:"子表单",flowState:"流程状态",flowstate:"流程状态"},jae={address:"&#xe881;",subform:"&#xe847;",password:"&#xe854;",button:"&#xe8e8;",textarea:"&#xe84f;",datetime:"&#xe849;",text:"&#xe854;",location:"&#xe87f;",radiogroup:"&#xe853;",radio:"&#xe861;",combo:"&#xe84a;",formula:"",flowState:"",flowstate:"",combocheck:"&#xe84b;",separator:"&#xe850;",checkboxgroup:"&#xe84c;",upload:"&#xe621;",number:"&#xe846;",image:"&#xe880;",signature:"&#xe87e;",user:"&#xe856;",dataload:"&#xe848;",linkdata:"&#xe857;",linkquery:"&#xe857;",usergroup:"&#xe851;",dept:"&#xe84d;",sn:"&#xe882;",deptgroup:"&#xe852;",unknown:"&#xe848;"},Pae={metric_table:"&#xe88c;",gauge_chart:"&#xe88d;",column_chart:"&#xe892;",funnel_chart:"&#xe89c;",line_chart:"&#xe88b;",pie_chart:"&#xe89e;",area_chart:"&#xe898;",radar_chart:"&#xe893;",bar_chart:"&#xe896;",gantt:"&#xe899;",multi_axes_chart:"&#xe88f;",data_table:"&#xe894;",background_table:"&#xe894;",pivot_table:"&#xe891;",map_chart:"&#xe89d;",newMap:"&#xe89d;",card:"&#xe8f4;",rili:"&#xe849;",description:"&#xe88e;",image:"&#xe890;",gauge_imageMore:"&#xe88d;"};var x4="Checkbox",[Fae]=Xs(x4),[zae,E7]=Fae(x4);function Uae(e){const{__scopeCheckbox:t,checked:n,children:a,defaultChecked:i,disabled:l,form:u,name:f,onCheckedChange:h,required:g,value:x="on",internal_do_not_use_render:y}=e,[k,b]=wp({prop:n,defaultProp:i!=null?i:!1,onChange:h,caller:x4}),[_,R]=O.useState(null),[M,L]=O.useState(null),P=O.useRef(!1),F=_?!!u||!!_.closest("form"):!0,D={checked:k,disabled:l,setChecked:b,control:_,setControl:R,name:f,form:u,value:x,hasConsumerStoppedPropagationRef:P,required:g,defaultChecked:cc(i)?!1:i,isFormControl:F,bubbleInput:M,setBubbleInput:L};return C.jsx(zae,{scope:t,...D,children:Bae(y)?y(D):a})}var wN="CheckboxTrigger",bN=O.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:n,...a},i)=>{const{control:l,value:u,disabled:f,checked:h,required:g,setControl:x,setChecked:y,hasConsumerStoppedPropagationRef:k,isFormControl:b,bubbleInput:_}=E7(wN,e),R=Vn(i,x),M=O.useRef(h);return O.useEffect(()=>{const L=l==null?void 0:l.form;if(L){const P=()=>y(M.current);return L.addEventListener("reset",P),()=>L.removeEventListener("reset",P)}},[l,y]),C.jsx(hn.button,{type:"button",role:"checkbox","aria-checked":cc(h)?"mixed":h,"aria-required":g,"data-state":TN(h),"data-disabled":f?"":void 0,disabled:f,value:u,...a,ref:R,onKeyDown:nn(t,L=>{L.key==="Enter"&&L.preventDefault()}),onClick:nn(n,L=>{y(P=>cc(P)?!0:!P),_&&b&&(k.current=L.isPropagationStopped(),k.current||L.stopPropagation())})})});bN.displayName=wN;var CN=O.forwardRef((e,t)=>{const{__scopeCheckbox:n,name:a,checked:i,defaultChecked:l,required:u,disabled:f,value:h,onCheckedChange:g,form:x,...y}=e;return C.jsx(Uae,{__scopeCheckbox:n,checked:i,defaultChecked:l,disabled:f,required:u,onCheckedChange:g,name:a,form:x,value:h,internal_do_not_use_render:({isFormControl:k})=>C.jsxs(C.Fragment,{children:[C.jsx(bN,{...y,ref:t,__scopeCheckbox:n}),k&&C.jsx(_N,{__scopeCheckbox:n})]})})});CN.displayName=x4;var SN="CheckboxIndicator",kN=O.forwardRef((e,t)=>{const{__scopeCheckbox:n,forceMount:a,...i}=e,l=E7(SN,n);return C.jsx(Kl,{present:a||cc(l.checked)||l.checked===!0,children:C.jsx(hn.span,{"data-state":TN(l.checked),"data-disabled":l.disabled?"":void 0,...i,ref:t,style:{pointerEvents:"none",...e.style}})})});kN.displayName=SN;var EN="CheckboxBubbleInput",_N=O.forwardRef(({__scopeCheckbox:e,...t},n)=>{const{control:a,hasConsumerStoppedPropagationRef:i,checked:l,defaultChecked:u,required:f,disabled:h,name:g,value:x,form:y,bubbleInput:k,setBubbleInput:b}=E7(EN,e),_=Vn(n,b),R=o7(l),M=e5(a);O.useEffect(()=>{const P=k;if(!P)return;const F=window.HTMLInputElement.prototype,V=Object.getOwnPropertyDescriptor(F,"checked").set,H=!i.current;if(R!==l&&V){const Z=new Event("click",{bubbles:H});P.indeterminate=cc(l),V.call(P,cc(l)?!1:l),P.dispatchEvent(Z)}},[k,R,l,i]);const L=O.useRef(cc(l)?!1:l);return C.jsx(hn.input,{type:"checkbox","aria-hidden":!0,defaultChecked:u!=null?u:L.current,required:f,disabled:h,name:g,value:x,form:y,...t,tabIndex:-1,ref:_,style:{...t.style,...M,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});_N.displayName=EN;function Bae(e){return typeof e=="function"}function cc(e){return e==="indeterminate"}function TN(e){return cc(e)?"indeterminate":e?"checked":"unchecked"}const RN=O.forwardRef(({className:e,children:t,id:n,disabled:a,...i},l)=>{const u=O.useId(),f=n!=null?n:u;return C.jsxs("label",{htmlFor:f,className:We("inline-flex items-center gap-[6px] select-none text-[#121111] text-[14px]",a?"cursor-not-allowed":"cursor-pointer"),children:[C.jsx(CN,{ref:l,id:f,disabled:a,className:We("inline-flex shrink-0 items-center justify-center","w-[16px] h-[16px] rounded-[2px] box-border border","transition-colors duration-200","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#0265FF] focus-visible:ring-offset-1","border-[#E0E0E0] bg-white","hover:border-[#0265FF]","data-[state=checked]:bg-[#0265FF] data-[state=checked]:border-[#0265FF]","disabled:cursor-not-allowed disabled:bg-[#F0F0F0] disabled:border-[#C2C2C2]","disabled:data-[state=checked]:bg-[#C2C2C2] disabled:data-[state=checked]:border-[#C2C2C2]",e),...i,children:C.jsx(kN,{className:"text-white",children:C.jsx(t_,{})})}),t!=null&&C.jsx("span",{className:We("text-sm leading-none",a&&"text-[#C2C2C2]"),children:t})]})});RN.displayName="SquareChecker";const w4=({defaultChecked:e=!1,disabled:t=!1,onCheckedChange:n,icon:a,className:i,title:l,extra:u,style:f,streaming:h,confirmed:g,readonly:x,shortDesc:y})=>{const[k,b]=O.useState(e),_=()=>{if(h||t)return;const L=!k;b(L),n==null||n(L)},R=!!u,M=g&&k?C.jsx(n_,{className:"grow-0 shrink-0 text-[#0265ff]"}):C.jsx(RN,{className:Ta("outline-none grow-0 shrink-0 cursor-pointer",{"mt-[2px]":R,"opacity-80 cursor-not-allowed":t,"opacity-50":h,"pointer-events-none":h}),id:l,checked:k,disabled:t||g,onCheckedChange:_});return C.jsxs("div",{className:We("flex items-center gap-[10px] px-4 py-[10px] rounded-[4px]","w-full transition-colors cursor-pointer",{"cursor-not-allowed":t,"hover:bg-[#EFF0F6]":!t,"items-start":R,"items-center":!R,"pointer-events-none":h||t||x||g},i),style:f,onClick:()=>{_()},children:[x?null:M,C.jsxs("div",{className:Ta("flex flex-col flex-1 min-w-0",{"gap-2.5":R}),children:[C.jsxs("div",{className:Ta("flex items-center justify-between w-full",{"gap-1.5":!!a,"gap-2.5":!a}),children:[C.jsxs("div",{className:Ta("flex items-center gap-[6px] min-w-0",{"flex-1":!!a,"w-[100px] flex-shrink-0":!a}),children:[a&&C.jsx("div",{className:"w-4 h-4 flex-shrink-0 text-[#6F829E] leading-[16px]",children:a}),C.jsx("p",{className:Ta(" min-w-0 text-sm text-[#121111] truncate",{"flex-1":!!a,"flex-grow-1 flex-shrink-0":!a,"!text-[#666]":x}),children:l})]}),y&&C.jsx("p",{className:Ta("text-sm text-[#666]",{"whitespace-nowrap flex-shrink-0":!!a,anywhere:!a,"!text-[#121111]":x}),children:y})]}),R?C.jsx("div",{className:"overflow-x-auto whitespace-nowrap no-scrollbar flex items-center gap-2",children:u}):null]})]})},Hae=({bgColor:e="#E8F4FF",color:t="#0265FF",label:n,children:a})=>C.jsx("div",{className:"flex items-center justify-center gap-1.5 px-1.5 h-[26px] rounded-[100px] text-[13px]",style:{backgroundColor:e,color:t},children:n||a}),_7=({type:e})=>{const t=jae[e]||"unknown";return e==="formula"?C.jsx(Nq,{}):C.jsx(x0,{code:t})},T7=O.memo(({field:e,disabled:t,isSubField:n,onChange:a,onLoaded:i,icon:l,value:u,streaming:f,confirmed:h})=>{const{widget:g,label:x}=e;if(!g)return null;const{type:y}=g,k=y;if(!Md.hasOwnProperty(y))return null;const b=Md[k]||Md.unknown,_=y==="subform",R=_?[]:g.items||[];O.useEffect(()=>{i==null||i(e)},[]);const M=P=>{a==null||a(P,e)},L=n?"pl-[38px]":"";return u?C.jsx(w4,{title:x,disabled:t,defaultChecked:!0,onCheckedChange:M,icon:l,className:L,shortDesc:u}):C.jsxs(C.Fragment,{children:[C.jsx(w4,{streaming:f,confirmed:h,title:x,disabled:t,defaultChecked:!0,onCheckedChange:M,icon:l,shortDesc:b,className:L,extra:R.length?C.jsx(C.Fragment,{children:R.map(({value:P,text:F,color:D})=>C.jsx(Hae,{color:D?"white":void 0,bgColor:D,children:F},P))}):null}),_?g.items.map((P,F)=>{var D;return C.jsx(T7,{confirmed:h,streaming:f,isSubField:!0,disabled:t,field:P,icon:C.jsx(_7,{type:(D=P.widget)==null?void 0:D.type}),onChange:V=>{a==null||a(V,P,e.widget.widgetName,F)}},P.label)}):null]})},(e,t)=>{var n,a;return((n=e.field)==null?void 0:n.label)===((a=t.field)==null?void 0:a.label)&&e.disabled===t.disabled&&e.confirmed===t.confirmed&&e.streaming===t.streaming}),Od="form-filling-plugin",Co={FORM_STRUCTURE_READY:"form-filling-structure-ready",FIELD_FILLED_UPDATE:"form-filling-field-filling-update",FIELDS_CHECKED_UPDATE:"form-filling-fields-checked-update",FILL_MODE_UPDATE:"form-filling-mode-update",BATCH_FILL_BEGIN:"form-filling-batch-fill-begin",FILL_DATA_CONFIRMED:"form-filling-fields-data-confirmed"},Vae=new Set(["password","textarea","datetime","text","radiogroup","radio","combo","combocheck","checkboxgroup","number"]),Sm=10;function $ae(e){return Array.isArray(e)?e.every(t=>typeof t=="string"):!1}function AN(e){return Array.isArray(e)?e.every(t=>typeof t=="object"&&t!==null&&"label"in t&&"value"in t&&typeof t.label=="string"&&typeof t.value=="string"):!1}const NN=e=>$ae(e)?e.join(", "):AN(e)?e.map(n=>n.value).join(", "):e,MN=(e,t)=>{if(t==="address"&&typeof e=="object"){const n=e;return`${n.province} ${n.city} ${n.district} ${n.detail}`}if(t==="location"&&typeof e=="object"){const a=e.lnglatXY||["",""];return`经度: ${a[0]||""}, 纬度: ${a[1]||""}`}return Array.isArray(e)?e.join(", "):AN(e)?e.map(a=>a.value).join(", "):e},ON=e=>Array.isArray(e)?e.filter(t=>{var n;return Vae.has((n=t.widget)==null?void 0:n.type)}):[];var b4="Collapsible",[Zae]=Xs(b4),[Wae,R7]=Zae(b4),LN=O.forwardRef((e,t)=>{const{__scopeCollapsible:n,open:a,defaultOpen:i,disabled:l,onOpenChange:u,...f}=e,[h,g]=wp({prop:a,defaultProp:i!=null?i:!1,onChange:u,caller:b4});return C.jsx(Wae,{scope:n,disabled:l,contentId:tc(),open:h,onOpenToggle:O.useCallback(()=>g(x=>!x),[g]),children:C.jsx(hn.div,{"data-state":N7(h),"data-disabled":l?"":void 0,...f,ref:t})})});LN.displayName=b4;var IN="CollapsibleTrigger",qae=O.forwardRef((e,t)=>{const{__scopeCollapsible:n,...a}=e,i=R7(IN,n);return C.jsx(hn.button,{type:"button","aria-controls":i.contentId,"aria-expanded":i.open||!1,"data-state":N7(i.open),"data-disabled":i.disabled?"":void 0,disabled:i.disabled,...a,ref:t,onClick:nn(e.onClick,i.onOpenToggle)})});qae.displayName=IN;var A7="CollapsibleContent",DN=O.forwardRef((e,t)=>{const{forceMount:n,...a}=e,i=R7(A7,e.__scopeCollapsible);return C.jsx(Kl,{present:n||i.open,children:({present:l})=>C.jsx(Gae,{...a,ref:t,present:l})})});DN.displayName=A7;var Gae=O.forwardRef((e,t)=>{const{__scopeCollapsible:n,present:a,children:i,...l}=e,u=R7(A7,n),[f,h]=O.useState(a),g=O.useRef(null),x=Vn(t,g),y=O.useRef(0),k=y.current,b=O.useRef(0),_=b.current,R=u.open||f,M=O.useRef(R),L=O.useRef(void 0);return O.useEffect(()=>{const P=requestAnimationFrame(()=>M.current=!1);return()=>cancelAnimationFrame(P)},[]),La(()=>{const P=g.current;if(P){L.current=L.current||{transitionDuration:P.style.transitionDuration,animationName:P.style.animationName},P.style.transitionDuration="0s",P.style.animationName="none";const F=P.getBoundingClientRect();y.current=F.height,b.current=F.width,M.current||(P.style.transitionDuration=L.current.transitionDuration,P.style.animationName=L.current.animationName),h(a)}},[u.open,a]),C.jsx(hn.div,{"data-state":N7(u.open),"data-disabled":u.disabled?"":void 0,id:u.contentId,hidden:!R,...l,ref:x,style:{"--radix-collapsible-content-height":k?`${k}px`:void 0,"--radix-collapsible-content-width":_?`${_}px`:void 0,...e.style},children:R&&i})});function N7(e){return e?"open":"closed"}var Yae=LN;const jN=Yae,PN=DN,Jae=({disabled:e,onCheckedChange:t,label:n,val:a,streaming:i,readonly:l})=>C.jsx(w4,{streaming:i,readonly:l,title:n,disabled:e,defaultChecked:!0,onCheckedChange:t,className:"pl-[36px]",shortDesc:a}),Xae=O.memo(({field:e,readonly:t,onCheckedChange:n,streaming:a})=>{const{widget:i,label:l}=e;if(!i)return null;const{type:u,value:f}=i,h=u;if(!Md.hasOwnProperty(h))return null;const g=MN(f,h),x=Md[h]||Md.unknown,y=O.useCallback(k=>{n(k,e)},[e]);return O.useEffect(()=>{y(!0)},[]),C.jsx(Jae,{streaming:a,readonly:t,desc:x,label:l,val:g,onCheckedChange:y})},(e,t)=>{var a,i;return((a=e.field.widget)==null?void 0:a.widgetName)===((i=t.field.widget)==null?void 0:i.widgetName)&&e.readonly===t.readonly&&e.streaming===t.streaming}),Kae=({subformField:e,onChange:t,streaming:n,readonly:a})=>{if(!e.widget.value||!e.widget.value.length)return null;const i=e.widget.value,[l,u]=O.useState(!0);return C.jsx(jN,{open:l,onOpenChange:u,children:C.jsx(PN,{children:i.map((f,h)=>C.jsx(jN,{defaultOpen:!0,children:C.jsx(PN,{children:f.map((g,x)=>C.jsx(Xae,{readonly:a,streaming:n,field:{label:g.label,widget:{widgetName:g.fieldName,type:g.fieldType,value:g.value}},onCheckedChange:(y,k)=>{t({checked:y,field:k,row:h,col:x,parentFieldName:e.widget.widgetName})}}))})},h))})})},Qae=O.memo(({field:e,disabled:t,isSubField:n,readonly:a,streaming:i,onChange:l,onLoaded:u})=>{const{widget:f,label:h}=e;if(!f)return null;const{type:g,value:x}=f,k=MN(x,g);if(!Md.hasOwnProperty(g))return null;const b=g==="subform";O.useEffect(()=>{u==null||u(e)},[]);const _=M=>{l==null||l(M,e)},R=n?"pl-6":"";return C.jsxs(C.Fragment,{children:[C.jsx(w4,{streaming:i,title:h,disabled:t,defaultChecked:!0,onCheckedChange:_,className:R,readonly:a,shortDesc:b?"":k}),b&&C.jsx(Kae,{readonly:a,subformField:e,onChange:M=>{l==null||l(M.checked,M.field,M.parentFieldName,M.row)},streaming:i})]})},(e,t)=>{var f,h,g,x,y,k;return!(((f=e.field)==null?void 0:f.label)===((h=t.field)==null?void 0:h.label))||!(((x=(g=e.field)==null?void 0:g.widget)==null?void 0:x.widgetName)===((k=(y=t.field)==null?void 0:y.widget)==null?void 0:k.widgetName))||!(e.disabled===t.disabled)||!(e.readonly===t.readonly)||!(e.streaming===t.streaming)?!1:sq(e==null?void 0:e.field,t==null?void 0:t.field)}),eoe=O.memo(({fields:e,children:t,streaming:n,confirmed:a})=>C.jsxs(hm,{title:"字段生成",icon:C.jsx(yq,{}),defaultOpen:!0,children:[e.map(i=>C.jsx(T7,{...i,streaming:n,confirmed:a})),t]}),(e,t)=>e.fields.length===t.fields.length&&e.streaming===t.streaming&&e.confirmed===t.confirmed&&e.children===t.children),toe=O.memo(({props:e,readonly:t,children:n,streaming:a})=>C.jsxs(hm,{title:"字段填写",icon:C.jsx(KE,{}),defaultOpen:!0,children:[e.map(i=>C.jsx(Qae,{...i,readonly:t,streaming:a})),n]})),noe=e=>{var k,b;const{part:t,sendMessage:n,status:a}=e,i=bae(),l=t,u=v0(l),f=qE(l),h=xs(),g=Pp(y4),x=Array.isArray(l)&&l.length?l:u?[l]:[];if(x.length){const _=x.map(M=>{var P;const L=WE(M);return{field:L,disabled:i,onLoaded:F=>{const D=g==null?void 0:g.onBeforeFieldCreate(F);h.emit("form-builder-FieldCreated",{field:D,checked:!0}),g==null||g.onAfterFieldCreate(F)},icon:C.jsx(_7,{type:(P=L.widget)==null?void 0:P.type}),onChange:(F,D,V,H)=>{h.emit("form-builder-FieldCheckedChanged",{field:D,checked:F,parentFieldName:V,index:H})}}}),R=((k=g==null?void 0:g.getCurrentWorkingForm())==null?void 0:k.formName)||"";return C.jsxs(Ka,{className:"gap-0 py-0",compact:!0,children:[C.jsxs("div",{children:[C.jsx("b",{style:{display:"inline-block"},children:R}),` 已生成${_.length}个字段`]}),C.jsx(eoe,{fields:_,streaming:a==="streaming",confirmed:i,children:a==="ready"?C.jsx(Nd,{className:"mt-[20px] mb-[10px]",disabledWithInfo:i,onClick:()=>{h.emit("form-builder-FieldsConfirmed",g==null?void 0:g.getCurrentWorkingForm()),g.onAfterFieldsSave(M=>{h.emit("form-builder-FieldsConfirmed",M)})},children:i?C.jsxs(C.Fragment,{children:[C.jsx(n_,{className:"text-[#0265ff]"})," 已保存"]}):"保存字段"}):null}),a==="ready"?"请选择需要的字段添加到表单。您可以补充描述后重新生成,表单中已添加字段在下次生成时保留。":null]})}if(aq(l))return i?C.jsx(wae,{title:l.text,description:l.text,onSelect:_=>{n({text:_},{body:{stage:"design"}})},headless:!0}):null;if(f){const _=g==null?void 0:g.getCurrentWorkingForm();return h.emit("form-builder-FieldsCreatedFinish",_),C.jsx(C.Fragment,{children:i?C.jsx(Td,{children:"试试以下建议"}):null})}const y=(b=l.text)==null?void 0:b.includes("【确认搭建");return C.jsx(r4,{...e,children:y?C.jsx(Dae,{sendMessage:n,designDoc:l.text}):null})},roe={countDistinct:"去重计数",count:"计数",sum:"求和",max:"最大值",min:"最小值",average:"平均"};var Fp;(function(e){e.NONE="none",e.SHALLOW="shallow",e.DEEP="deep"})(Fp||(Fp={}));class M7{constructor(t){this.Context=t}}class FN extends M7{constructor(){super(...arguments);Ge(this,"pluginName","base-form-builder-plugin");Ge(this,"publicMethods",{dispatchCreateFormEvent:n=>{const a=new CustomEvent(Ui.CREATE_FORM,{detail:{name:n}});return dispatchEvent(a),a},dispatchSaveFieldsEvent:()=>{const n=new CustomEvent(Ui.SAVE_FIELDS);return dispatchEvent(n),n},dispatchFieldCreatedEvt:n=>{const a=new CustomEvent(Ui.FIELD_CREATED,{detail:{field:n,checked:!0}});return dispatchEvent(a),a},dispatchFieldCheckUpdateEvt:(n,a)=>{const i=new CustomEvent(Ui.FIELD_CHECK_UPDATE,{detail:{field:n,checked:a}});return dispatchEvent(i),i},dispatchCreateRleatedFormsEvent:n=>{const a=new CustomEvent(Ui.CREATE_RELATED_FORMS,{detail:{fields:n}});return dispatchEvent(a),a}})}}const C4=O.forwardRef(({className:e,children:t,icon:n,type:a,...i},l)=>C.jsxs("button",{ref:l,type:a!=null?a:"button",className:We("group inline-flex items-center gap-[6px] px-[16px] rounded-[4px] h-[34px]","border border-[#E0E0E0] bg-transparent","text-[14px] font-[400] leading-[normal] text-[#030303]","hover:bg-[#EFF0F6] hover:text-[#0265FF] hover:border-transparent","cursor-pointer",ra,e),...i,children:[n?C.jsx("span",{className:"shrink-0",children:n}):null,C.jsx("span",{className:"whitespace-nowrap",children:t})]}));C4.displayName="BaseButton";const aoe=({style:e,chatVisible:t,onClick:n,variant:a,client:i})=>{const l=Pp(y4);return a==="build-fields"?C.jsx(C4,{icon:C.jsx(F9,{}),onClick:()=>{n==null||n();const u=l==null?void 0:l.getCurrentWorkingForm();u&&i.eventBus.emit("send-ghost-msg",{text:`确认搭建:${u.formName}`,options:{body:{stage:"build"}}})},children:"AI生成字段"}):C.jsx(g4,{style:e,minimal:t,onClick:n,children:"AI表单搭建"})};class zN extends FN{constructor(n){super(n);Ge(this,"pluginName",y4);Ge(this,"currentWorkingFormName","");Ge(this,"customComponents",{MessagePart:noe,EntryButton:aoe});Ge(this,"lifecycleHooks",{onBeforeMessagePartsRender(n){return P9(n,v0)},onAfterChatAreaHide({clearMsgs:n}){n()},onBeforeChatRender:()=>({appendLoadingIndicator:!0,placeholder:"描述你的需求,如:搭建一张供应商管理表"})});Ge(this,"dispose",()=>{this.removeEventListeners()});Ge(this,"skipDesignToBuildFields",n=>{this.onBeforeFormCreate({formName:n.formName,linkInfoMap:new Map}),this.onFormCreate(n)});this.addEventListeners()}onAfterFieldCreate(n){var i;const a=this.Context.formMap.get(this.currentWorkingFormName);a&&(a.fieldMap.has(n.label)||(a.fields.push(n),a.fieldMap.set(n.label,n)),Tae(n)&&n.widget.items.forEach(l=>{a.fieldMap.set(l.label,l)}),Ad(n,"dataload")&&a.designInfo.linkInfoMap.set(n.label,{fieldName:n.label,targetFormName:((i=n.widget.loaddataconfig)==null?void 0:i.forms)||""}))}enhanceField(n){const a=S7[n.widget.type];if(!a)return n;const i=this.Context.formMap.get(this.currentWorkingFormName);if(!i)return n;const l=a(this.Context.formMap),u=i.designInfo.linkInfoMap.get(n.label);return u?(console.log("识别到表单中有关联字段,尝试补全关联信息"),l(i,n,u)):n}onBeforeFieldCreate(n){return Ad(n,"subform")?(!n.widget.items||n.widget.items.length===0||(n.widget.items=n.widget.items.map(a=>this.enhanceField(a))),n):this.enhanceField(n)}onBeforeFormCreate(n){const a=n.formName||"Unnamed Form";console.log("表单设计信息提取完毕,结构化数据如下:",n),this.Context.formMap.get(a)||this.Context.formMap.set(a,{designInfo:n,fields:[],fieldMap:new Map,formName:a}),this.currentWorkingFormName=a}onFormCreate(n){const a=this.Context.formMap.get(n.formName);if(!a){console.log("未找到已有表单,放弃更新信息");return}a.formId=n.formId,a.appId=n.appId}onAfterFieldsSave(n){const a=this.getCurrentWorkingForm();a&&Oae(this.Context.formMap,{isTargetForm:(i,l)=>i===a.formName?(console.log("跳过自身表单"),!1):Mae(l.designInfo)?!0:(console.log("关联信息为空,不处理"),!1),isTargetField:(i,l)=>l.targetFormName===a.formName,fieldProcessor:(i,l,u)=>{var x;const f=(x=l.widget)==null?void 0:x.type;if(!S7[f])return;const h=S7[f];return h(this.Context.formMap)(i,l,u)},onFormProcessed:n})}getCurrentWorkingForm(){return this.Context.formMap.get(this.currentWorkingFormName)}addEventListeners(){}removeEventListeners(){}}const ooe={EVENTS:Ui,Plugin:zN,createContext:()=>({formMap:new Map})},ioe=({input:e,type:t,onConfirm:n,onCancel:a})=>t==="tool-confirmToCreateForm"||t==="tool-confirmToSaveCheckedFields"?C.jsx(Ka,{className:"gap-0 py-0",compact:!0,children:C.jsx(Ho,{onClick:()=>{n({body:{stage:t==="tool-confirmToCreateForm"?"build":"continue"}})},children:"确认"})}):t==="tool-confirmToCreateRelatedForm"&&e.forms.length>0?C.jsxs(Ka,{className:"gap-0 py-0",compact:!0,children:[C.jsx(Ho,{onClick:()=>{n({body:{stage:"continue "}})},children:"确认"}),C.jsx(Ho,{onClick:()=>{a&&a()},children:"跳过"})]}):t==="tool-confirmToCreateFieldsForRelatedForm"?C.jsxs(Ka,{className:"gap-0 py-0",compact:!0,children:[C.jsx(gm,{items:e.forms,onSelect:i=>{n({body:{stage:"design"}},i)}}),C.jsx(Ho,{onClick:()=>{a&&a()},children:"取消"})]}):null,O7="ModelFormBuilderPlugin",UN=new CustomEvent("default"),soe={"tool-confirmToCreateForm":e=>(t,n)=>e.publicMethods.dispatchCreateFormEvent(n.formName),"tool-confirmToSaveCheckedFields":e=>t=>e.publicMethods.dispatchSaveFieldsEvent(),"tool-confirmToCreateFieldsForRelatedForm":e=>t=>UN,"tool-confirmToCreateRelatedForm":e=>t=>UN},loe=({output:e,input:t,type:n})=>{const a=Pp(O7);if(a)return O.useEffect(()=>{const i=soe[n];if(i){const l=i(a)(e,t);dispatchEvent(l)}},[]),C.jsx(Td,{headless:!0,children:e})},uoe=O.memo(loe,(e,t)=>!(e.output!==t.output||e.type!==t.type||e.input!==t.input)),S4=e=>{const[t,n]=O.useState(!1);return C.jsx(Ho,{...e,disabled:t||e.disabled,onClick:a=>{var i;(i=e.onClick)==null||i.call(e,a),n(!0)}})},coe=({input:e,type:t,sendMessage:n,onConfirm:a,onCancel:i})=>{const[l,u]=O.useState(!1),[f,h]=O.useState(!1),[g,x]=O.useState(!1),y=Pp(O7);if(t==="tool-confirmToCreateForm")return C.jsx(Ka,{className:"gap-0 py-0",compact:!0,children:C.jsx(S4,{onClick:()=>{var k;(k=y==null?void 0:y.publicMethods)==null||k.dispatchCreateFormEvent(e.formName),n(void 0,{body:{stage:"build",name:e.formName}})},children:"确认"})});if(t==="tool-confirmToSaveCheckedFields"){const k=Object.keys(e.relatedForms),b=k.length,_=`${k.join("、")}暂无已有工作表,将为您继续创建工作表`;return C.jsxs(Ka,{className:"gap-0 py-0",compact:!0,children:[C.jsx(S4,{onClick:()=>{var R;(R=y==null?void 0:y.publicMethods)==null||R.dispatchSaveFieldsEvent(),u(!0)},children:"保存字段"}),b&&l&&!f&&!g?C.jsxs(C.Fragment,{children:[_,C.jsx(S4,{onClick:()=>{h(!0)},children:"继续创建?"}),C.jsx(S4,{onClick:()=>{x(!0)},children:"跳过"})]}):null,f?C.jsxs(C.Fragment,{children:["请选择要创建的关联表:",C.jsx(gm,{items:k.map(R=>({title:R,description:""})),onSelect:R=>{n({text:R},{body:{stage:"design",name:R}})}})]}):null]})}return t==="tool-confirmToCreateRelatedForm"&&e.forms.length>0?C.jsxs(Ka,{className:"gap-0 py-0",compact:!0,children:[C.jsx(Ho,{onClick:()=>{a==null||a({body:{stage:"continue"}})},children:"确认"}),C.jsx(Ho,{onClick:()=>{i&&i()},children:"跳过"})]}):t==="tool-confirmToCreateFieldsForRelatedForm"?C.jsxs(Ka,{className:"gap-0 py-0",compact:!0,children:[C.jsx(gm,{items:e.forms,onSelect:k=>{a==null||a({body:{stage:"design"}},k)}}),C.jsx(Ho,{onClick:()=>{i&&i()},children:"取消"})]}):null};function doe({prompt:e,responseFormat:t}){const n=[],a=[];(t==null?void 0:t.type)==="json"&&(t.schema==null?n.push({role:"system",content:"Return JSON."}):n.push({role:"system",content:"Return JSON that conforms to the following schema: "+JSON.stringify(t.schema)}));let i=-1;for(let u=e.length-1;u>=0;u--)if(e[u].role==="user"){i=u;break}let l=-1;for(const{role:u,content:f}of e)switch(l++,u){case"system":{n.push({role:"system",content:f});break}case"user":{let h="";for(const g of f)g.type==="text"?h+=g.text:a.push({type:"other",message:`Unsupported user message part type: ${g.type}`});n.push({role:"user",content:h});break}case"assistant":{let h="",g;const x=[];for(const y of f)switch(y.type){case"text":{h+=y.text;break}case"reasoning":{if(l<=i)break;g==null?g=y.text:g+=y.text;break}case"tool-call":{x.push({id:y.toolCallId,type:"function",function:{name:y.toolName,arguments:JSON.stringify(y.input)}});break}}n.push({role:"assistant",content:h,reasoning_content:g,tool_calls:x.length>0?x:void 0});break}case"tool":{for(const h of f){const g=h.output;let x;switch(g.type){case"text":case"error-text":x=g.value;break;case"content":case"json":case"error-json":x=JSON.stringify(g.value);break}n.push({role:"tool",tool_call_id:h.toolCallId,content:x})}break}default:{a.push({type:"other",message:`Unsupported message role: ${u}`});break}}return{messages:n,warnings:a}}var BN=$e({prompt_tokens:or().nullish(),completion_tokens:or().nullish(),prompt_cache_hit_tokens:or().nullish(),prompt_cache_miss_tokens:or().nullish(),total_tokens:or().nullish(),completion_tokens_details:$e({reasoning_tokens:or().nullish()}).nullish()}).nullish(),HN=$e({error:$e({message:ee(),type:ee().nullish(),param:ql().nullish(),code:ca([ee(),or()]).nullish()})}),foe=$e({id:ee().nullish(),created:or().nullish(),model:ee().nullish(),choices:Un($e({message:$e({role:$t("assistant").nullish(),content:ee().nullish(),reasoning_content:ee().nullish(),tool_calls:Un($e({id:ee().nullish(),function:$e({name:ee(),arguments:ee()})})).nullish()}),finish_reason:ee().nullish()})),usage:BN}),poe=t9(()=>hs(ca([$e({id:ee().nullish(),created:or().nullish(),model:ee().nullish(),choices:Un($e({delta:$e({role:vn(["assistant"]).nullish(),content:ee().nullish(),reasoning_content:ee().nullish(),tool_calls:Un($e({index:or(),id:ee().nullish(),function:$e({name:ee().nullish(),arguments:ee().nullish()})})).nullish()}).nullish(),finish_reason:ee().nullish()})),usage:BN}),HN]))),hoe=$e({thinking:$e({type:vn(["enabled","disabled"]).optional()}).optional()});function moe({tools:e,toolChoice:t}){e=e!=null&&e.length?e:void 0;const n=[];if(e==null)return{tools:void 0,toolChoice:void 0,toolWarnings:n};const a=[];for(const l of e)l.type==="provider-defined"?n.push({type:"unsupported-tool",tool:l}):a.push({type:"function",function:{name:l.name,description:l.description,parameters:l.inputSchema}});if(t==null)return{tools:a,toolChoice:void 0,toolWarnings:n};const i=t.type;switch(i){case"auto":case"none":case"required":return{tools:a,toolChoice:i,toolWarnings:n};case"tool":return{tools:a,toolChoice:{type:"function",function:{name:t.toolName}},toolWarnings:n};default:{const l=i;throw new Tj({functionality:`tool choice type: ${l}`})}}}function VN({id:e,model:t,created:n}){return{id:e!=null?e:void 0,modelId:t!=null?t:void 0,timestamp:n!=null?new Date(n*1e3):void 0}}function $N(e){switch(e){case"stop":return"stop";case"length":return"length";case"content_filter":return"content-filter";case"tool_calls":return"tool-calls";case"insufficient_system_resource":return"error";default:return"unknown"}}var goe=class{constructor(e,t){this.specificationVersion="v2",this.supportedUrls={},this.modelId=e,this.config=t,this.failedResponseHandler=md({errorSchema:HN,errorToMessage:n=>n.error.message})}get provider(){return this.config.provider}get providerOptionsName(){return this.config.provider.split(".")[0].trim()}async getArgs({prompt:e,maxOutputTokens:t,temperature:n,topP:a,topK:i,frequencyPenalty:l,presencePenalty:u,providerOptions:f,stopSequences:h,responseFormat:g,tools:x,toolChoice:y,seed:k}){var b,_;const R=(b=await TB({provider:this.providerOptionsName,providerOptions:f,schema:hoe}))!=null?b:{},{messages:M,warnings:L}=doe({prompt:e,responseFormat:g});i!=null&&L.push({type:"unsupported-setting",setting:"topK"}),k!=null&&L.push({type:"unsupported-setting",setting:"seed"});const{tools:P,toolChoice:F,toolWarnings:D}=moe({tools:x,toolChoice:y});return{args:{model:this.modelId,max_tokens:t,temperature:n,top_p:a,frequency_penalty:l,presence_penalty:u,response_format:(g==null?void 0:g.type)==="json"?{type:"json_object"}:void 0,stop:h,messages:M,tools:P,tool_choice:F,thinking:((_=R.thinking)==null?void 0:_.type)!=null?{type:R.thinking.type}:void 0},warnings:[...L,...D]}}async doGenerate(e){var t,n,a,i,l,u,f,h,g,x,y,k,b,_,R,M;const{args:L,warnings:P}=await this.getArgs({...e}),{responseHeaders:F,value:D,rawValue:V}=await sp({url:this.config.url({path:"/chat/completions",modelId:this.modelId}),headers:ip(this.config.headers(),e.headers),body:L,failedResponseHandler:this.failedResponseHandler,successfulResponseHandler:lp(foe),abortSignal:e.abortSignal,fetch:this.config.fetch}),H=D.choices[0],Z=[],q=H.message.reasoning_content;if(q!=null&&q.length>0&&Z.push({type:"reasoning",text:q}),H.message.tool_calls!=null)for(const _e of H.message.tool_calls)Z.push({type:"tool-call",toolCallId:(t=_e.id)!=null?t:cd(),toolName:_e.function.name,input:_e.function.arguments});const ae=H.message.content;return ae!=null&&ae.length>0&&Z.push({type:"text",text:ae}),{content:Z,finishReason:$N(H.finish_reason),usage:{inputTokens:(a=(n=D.usage)==null?void 0:n.prompt_tokens)!=null?a:void 0,outputTokens:(l=(i=D.usage)==null?void 0:i.completion_tokens)!=null?l:void 0,totalTokens:(f=(u=D.usage)==null?void 0:u.total_tokens)!=null?f:void 0,reasoningTokens:(x=(g=(h=D.usage)==null?void 0:h.completion_tokens_details)==null?void 0:g.reasoning_tokens)!=null?x:void 0,cachedInputTokens:(k=(y=D.usage)==null?void 0:y.prompt_cache_hit_tokens)!=null?k:void 0},providerMetadata:{[this.providerOptionsName]:{promptCacheHitTokens:(_=(b=D.usage)==null?void 0:b.prompt_cache_hit_tokens)!=null?_:null,promptCacheMissTokens:(M=(R=D.usage)==null?void 0:R.prompt_cache_miss_tokens)!=null?M:null}},request:{body:L},response:{...VN(D),headers:F,body:V},warnings:P}}async doStream(e){const{args:t,warnings:n}=await this.getArgs({...e}),a={...t,stream:!0,stream_options:{include_usage:!0}},{responseHeaders:i,value:l}=await sp({url:this.config.url({path:"/chat/completions",modelId:this.modelId}),headers:ip(this.config.headers(),e.headers),body:a,failedResponseHandler:this.failedResponseHandler,successfulResponseHandler:nS(poe),abortSignal:e.abortSignal,fetch:this.config.fetch}),u=[];let f="unknown",h,g=!0;const x=this.providerOptionsName;let y=!1,k=!1;return{stream:l.pipeThrough(new TransformStream({start(b){b.enqueue({type:"stream-start",warnings:n})},transform(b,_){var R,M,L,P,F,D,V,H,Z,q,ae,_e;if(e.includeRawChunks&&_.enqueue({type:"raw",rawValue:b.rawValue}),!b.success){f="error",_.enqueue({type:"error",error:b.error});return}const ge=b.value;if("error"in ge){f="error",_.enqueue({type:"error",error:ge.error.message});return}g&&(g=!1,_.enqueue({type:"response-metadata",...VN(ge)})),ge.usage!=null&&(h=ge.usage);const he=ge.choices[0];if((he==null?void 0:he.finish_reason)!=null&&(f=$N(he.finish_reason)),(he==null?void 0:he.delta)==null)return;const we=he.delta,Ne=we.reasoning_content;if(Ne&&(y||(_.enqueue({type:"reasoning-start",id:"reasoning-0"}),y=!0),_.enqueue({type:"reasoning-delta",id:"reasoning-0",delta:Ne})),we.content&&(k||(_.enqueue({type:"text-start",id:"txt-0"}),k=!0),y&&(_.enqueue({type:"reasoning-end",id:"reasoning-0"}),y=!1),_.enqueue({type:"text-delta",id:"txt-0",delta:we.content})),we.tool_calls!=null){y&&(_.enqueue({type:"reasoning-end",id:"reasoning-0"}),y=!1);for(const xe of we.tool_calls){const Te=xe.index;if(u[Te]==null){if(xe.id==null)throw new tb({data:xe,message:"Expected 'id' to be a string."});if(((R=xe.function)==null?void 0:R.name)==null)throw new tb({data:xe,message:"Expected 'function.name' to be a string."});_.enqueue({type:"tool-input-start",id:xe.id,toolName:xe.function.name}),u[Te]={id:xe.id,type:"function",function:{name:xe.function.name,arguments:(M=xe.function.arguments)!=null?M:""},hasFinished:!1};const K=u[Te];((L=K.function)==null?void 0:L.name)!=null&&((P=K.function)==null?void 0:P.arguments)!=null&&(K.function.arguments.length>0&&_.enqueue({type:"tool-input-delta",id:K.id,delta:K.function.arguments}),eS(K.function.arguments)&&(_.enqueue({type:"tool-input-end",id:K.id}),_.enqueue({type:"tool-call",toolCallId:(F=K.id)!=null?F:cd(),toolName:K.function.name,input:K.function.arguments}),K.hasFinished=!0));continue}const ve=u[Te];ve.hasFinished||(((D=xe.function)==null?void 0:D.arguments)!=null&&(ve.function.arguments+=(H=(V=xe.function)==null?void 0:V.arguments)!=null?H:""),_.enqueue({type:"tool-input-delta",id:ve.id,delta:(Z=xe.function.arguments)!=null?Z:""}),((q=ve.function)==null?void 0:q.name)!=null&&((ae=ve.function)==null?void 0:ae.arguments)!=null&&eS(ve.function.arguments)&&(_.enqueue({type:"tool-input-end",id:ve.id}),_.enqueue({type:"tool-call",toolCallId:(_e=ve.id)!=null?_e:cd(),toolName:ve.function.name,input:ve.function.arguments}),ve.hasFinished=!0))}}},flush(b){var _,R,M,L,P,F,D,V,H;y&&b.enqueue({type:"reasoning-end",id:"reasoning-0"}),k&&b.enqueue({type:"text-end",id:"txt-0"});for(const Z of u.filter(q=>!q.hasFinished))b.enqueue({type:"tool-input-end",id:Z.id}),b.enqueue({type:"tool-call",toolCallId:(_=Z.id)!=null?_:cd(),toolName:Z.function.name,input:Z.function.arguments});b.enqueue({type:"finish",finishReason:f,usage:{inputTokens:(R=h==null?void 0:h.prompt_tokens)!=null?R:void 0,outputTokens:(M=h==null?void 0:h.completion_tokens)!=null?M:void 0,totalTokens:(L=h==null?void 0:h.total_tokens)!=null?L:void 0,reasoningTokens:(F=(P=h==null?void 0:h.completion_tokens_details)==null?void 0:P.reasoning_tokens)!=null?F:void 0,cachedInputTokens:(D=h==null?void 0:h.prompt_cache_hit_tokens)!=null?D:void 0},providerMetadata:{[x]:{promptCacheHitTokens:(V=h==null?void 0:h.prompt_cache_hit_tokens)!=null?V:null,promptCacheMissTokens:(H=h==null?void 0:h.prompt_cache_miss_tokens)!=null?H:null}}})}})),request:{body:a},response:{headers:i}}}},voe="1.0.33";function ZN(e={}){var t;const n=uS((t=e.baseURL)!=null?t:"https://api.deepseek.com"),a=()=>Xu({Authorization:`Bearer ${yB({apiKey:e.apiKey,environmentVariableName:"DEEPSEEK_API_KEY",description:"DeepSeek API key"})}`,...e.headers},`ai-sdk/deepseek/${voe}`),i=u=>new goe(u,{provider:"deepseek.chat",url:({path:f})=>`${n}${f}`,headers:a,fetch:e.fetch}),l=u=>i(u);return l.languageModel=i,l.chat=i,l.textEmbeddingModel=u=>{throw new hb({modelId:u,modelType:"textEmbeddingModel"})},l.imageModel=u=>{throw new hb({modelId:u,modelType:"imageModel"})},l}ZN();const WN=ZN({apiKey:"sk-f86317613ca4472b97ee4957af550b5c"})("deepseek-chat"),yoe={name:"buildDateTimeField",description:"Builds a date-time field",inputSchema:$e({format:ee().min(1).max(100).default("yyyy-MM-dd"),label:ee().min(1).max(100),required:fn().default(!1),fieldWidth:vn(["3","4","6","8","9","12"]).default("12"),description:ee().min(1).max(100).default("")}),execute:e=>{const{label:t,required:n,format:a,fieldWidth:i,description:l}=e;return{widget:{type:"datetime",height:34,width:350,enable:!0,visible:!0,allowBlank:!n,funMode:"module",format:a,widgetName:`_widget_${Date.now()}`,widgetNameAlias:"",customCls:null,value:"today",rely:null,labelStyle:t,module:null,libs:[],extendSet:{sort:["datahelp","module","formEvent"],status:!0,triggerField:"",triggerFieldMode:"none",version:1},hint:"",dateLimit:{week:{enable:!1,value:[1,2,6]},start:{enable:!1,mode:"dynamic",value:"yesterday"},end:{enable:!1,mode:"static",value:17620938e5}}},description:l,label:t,lineWidth:parseInt(i),tab:null}}},xoe=$e({label:ee().min(1).max(100),required:fn().default(!1),options:Un($e({value:ee().min(1).max(100),text:ee().min(1).max(100)})),description:ee().min(1).max(100).optional(),fieldWidth:vn(["3","4","6","8","9","12"]).default("12")}),woe={name:"buildSelectField",description:"Builds a select field",inputSchema:xoe,execute:e=>{const{label:t,required:n,options:a,fieldWidth:i,description:l}=e;return{widget:{type:"combo",height:34,width:350,enable:!0,visible:!0,allowBlank:!n,labelStyle:t,mode:1,allowAddLinkData:!1,items:a,widgetName:`_widget_${Date.now()}`,widgetNameAlias:"",customCls:null,funMode:"module",module:null,libs:[],extendSet:{sort:["datahelp","module","formEvent"],status:!0,triggerField:"",triggerFieldMode:"none",version:1},colorEnable:!0},description:l,label:t,lineWidth:parseInt(i),tab:null}}},boe={name:"buildInputField",inputSchema:$e({label:ee().min(1).max(100),placeholder:ee().min(1).max(100).optional(),required:fn().default(!1),fieldWidth:vn(["3","4","6","8","9","12"]).default("12"),description:ee().min(1).max(100).optional(),textMode:vn(["text","email","password","number"]).default("text"),regex:ee().min(1).max(1e3).optional()}),execute:e=>{const{label:t,placeholder:n,required:a,textMode:i,regex:l,fieldWidth:u,description:f}=e;return{widget:{type:"text",widgetName:`_widget_${Date.now()}`,widgetNameAlias:"",customCls:null,height:34,width:350,text:null,value:"",enable:!0,visible:!0,hint:n,allowBlank:!a,rely:null,labelStyle:t,libs:[],extendSet:{sort:["datahelp","module","formEvent"],status:!0,triggerField:"",triggerFieldMode:"none",version:1},regex:l,noRepeat:!0,scan:null,textMode:i,generateQR:!1,eventAlert:!0,alertinfo:{icon:"error",tip:n,msg:n},enterClearText:!0},description:f,label:t,lineWidth:parseInt(u),tab:null}}},Coe={name:"buildRadioField",inputSchema:$e({label:ee().min(1).max(100),fieldWidth:vn(["3","4","6","8","9","12"]).default("12"),description:ee().min(1).max(100).optional(),required:fn().default(!1),layout:vn(["horizontal","vertical"]).default("horizontal"),options:Un($e({value:ee().min(1).max(100),text:ee().min(1).max(100),color:ee().min(1).max(7)}))}),execute:e=>{const{label:t,fieldWidth:n,description:a,options:i,required:l,layout:u}=e;return{widget:{type:"radiogroup",enable:!0,visible:!0,allowBlank:!l,funMode:"module",module:null,libs:[],items:i,layout:u,stopCancel:!1,widgetName:`_widget_${Date.now()}`,widgetNameAlias:"",customCls:null,value:null,labelStyle:t,extendSet:{sort:["datahelp","module","formEvent"],status:!0,triggerField:"",triggerFieldMode:"none",version:1},colorEnable:!0},description:a,label:t,lineWidth:parseInt(n),tab:null}}},Soe={name:"confirmToSaveCheckedFields",description:"confirm after fields created and checked",inputSchema:$e({message:ee().min(2).max(100)}),outputSchema:ee()},koe={name:"confirmToCreateForm",description:"confirm to start creating a form",inputSchema:$e({formName:ee().min(2).max(100)}),outputSchema:ee()},Eoe={name:"confirmToCreateFieldsForRelatedForm",description:"require user confirm to create fields for related forms.",inputSchema:$e({forms:Un($e({title:ee().min(2).max(100),description:ee().min(2).max(500)}))}),outputSchema:ee()},_oe={name:"confirmToCreateRelatedForm",description:"require user confirm to create following related forms.",inputSchema:$e({forms:Un($e({title:ee().min(2).max(100),description:ee().min(2).max(500)}))}),outputSchema:ee()},Toe={name:"promptToCreateRelatedForm",description:"Determines whether to create a related form based on user input. Returns true if a related form should be created, otherwise false.",inputSchema:$e({hasRelatedForm:fn()}),outputSchema:fn()},qN={YES:"Yes, confirmed.",NO:"No, denied."};function GN(e){return Object.keys(e).filter(t=>typeof e[t].execute!="function")}function YN(e){const t=new Set;return Object.keys(e).forEach(n=>{typeof e[n].execute=="function"&&t.add(n)}),t}const Ra=()=>`_widget_${Date.now()}`,Roe={name:"buildTextareaField",description:"build a multiline text field",inputSchema:$e({label:ee().min(1).max(100),placeholder:ee().min(1).max(100).optional(),required:fn().default(!1),fieldWidth:vn(["3","4","6","8","9","12"]).default("12"),description:ee().min(1).max(100).optional()}),execute:e=>{const{label:t,required:n,fieldWidth:a,description:i}=e;return{widget:{type:"textarea",widgetName:Ra(),widgetNameAlias:"",triggerEvent:!1,customCls:null,height:140,width:734,value:"",enable:!0,visible:!0,allowBlank:!n,labelStyle:t,funMode:"module",module:null,libs:[],extendSet:{sort:["datahelp","module","formEvent"],status:!0,triggerField:"",triggerFieldMode:"none",version:1},noRepeat:!1,alertinfo:{icon:"success",tip:"请设置提示内容"},autoHeight:!0,maxLength:5e3},description:i,label:t,lineWidth:parseInt(a),tab:null}}},Aoe={name:"buildCheckBoxGroupField",description:"build a check boxk group field",inputSchema:$e({label:ee().min(1).max(100),fieldWidth:vn(["3","4","6","8","9","12"]).default("12"),description:ee().min(1).max(100).optional(),required:fn().default(!1),layout:vn(["horizontal","vertical"]).default("horizontal"),options:Un($e({value:ee().min(1).max(100),text:ee().min(1).max(100),color:ee().min(1).max(7)}))}),execute:e=>{const{label:t,fieldWidth:n,description:a,options:i,required:l,layout:u}=e;return{widget:{type:"checkboxgroup",widgetName:Ra(),widgetNameAlias:"",customCls:null,enable:!0,visible:!0,allowBlank:!l,labelStyle:t,funMode:"module",module:null,libs:[],extendSet:{sort:["datahelp","module","formEvent"],status:!0,triggerField:"",triggerFieldMode:"none",version:1},items:i,colorEnable:!0,layout:u,allowAddOptions:!1},description:a,label:t,lineWidth:parseInt(n),tab:null}}},Noe=$e({label:ee().min(1).max(100),required:fn().default(!1),options:Un($e({value:ee().min(1).max(100),text:ee().min(1).max(100)})),description:ee().min(1).max(100).optional(),fieldWidth:vn(["3","4","6","8","9","12"]).default("12")}),Moe={name:"buildSelectCheckerField",description:"Builds a select checker field",inputSchema:Noe,execute:e=>{const{label:t,required:n,options:a,fieldWidth:i,description:l}=e;return{widget:{type:"combocheck",widgetName:Ra(),widgetNameAlias:"",customCls:null,height:34,width:350,enable:!0,visible:!0,allowBlank:!n,labelStyle:t,funMode:"module",module:null,libs:[],extendSet:{sort:["datahelp","module","formEvent"],status:!0,triggerField:"",triggerFieldMode:"none",version:1},colorEnable:!0,mode:"",allowAddOptions:!1,allowAddLinkData:!1,items:a},description:l,label:t,lineWidth:parseInt(i),tab:null}}},Ooe={name:"buildButtonField",description:"build a button field",inputSchema:$e({label:ee().min(1).max(100),theme:vn(["primary","bordered","ghost"]).default("primary"),buttonText:ee().min(1).max(100),backgroundColor:ee().min(1).max(7),required:fn().default(!1),fieldWidth:vn(["3","4","6","8","9","12"]).default("12"),description:ee().min(1).max(100).default("")}),execute:e=>{const{label:t,buttonText:n,backgroundColor:a,theme:i,required:l,fieldWidth:u,description:f}=e,h={primary:"default",bordered:"style1",ghost:"none"};return{widget:{type:"button",widgetName:Ra(),widgetNameAlias:"",triggerEvent:0,customCls:null,height:36,width:350,text:n,enable:!0,visible:!0,allowBlank:!l,labelStyle:t,extendSet:{sort:["datahelp","module","formEvent"],status:!0,triggerField:"",triggerFieldMode:"none",funMode:"popupreport"},background:{mode:"color",color:a,position:"center"},mode:"all",theme:h[i]||"default",eventAlert:!1,alertinfo:{icon:"success",tip:"请设置提示内容"}},description:f,label:t,lineWidth:parseInt(u),tab:null}}},Loe={name:"buildFieldSplitline",description:"build a split line to split fields",inputSchema:$e({label:ee().min(1).max(100),fieldWidth:vn(["3","4","6","8","9","12"]).default("12"),lineStyle:vn(["default","ghost","dashed","thin"]).default("default"),labelColor:ee().min(1).max(7).default("#000000"),lineColor:ee().min(1).max(7).default("#000000"),description:ee().min(1).max(100).default("")}),execute:e=>{const{label:t,fieldWidth:n,description:a,labelColor:i,lineColor:l,lineStyle:u}=e;return{widget:{type:"separator",widgetName:Ra(),widgetNameAlias:"",customCls:null,enable:!0,visible:!0,allowBlank:!0,labelStyle:t,lineStyle:u,labelColor:i,lineColor:l},description:a,label:t,lineWidth:parseInt(n),tab:null}}},Ioe={name:"buildAddressField",description:"Builds a form field for collecting address information from users.",inputSchema:$e({label:ee().min(1).max(100),required:fn().default(!1),fieldWidth:vn(["3","4","6","8","9","12"]).default("12"),description:ee().min(1).max(100).optional(),addressMode:vn(["all","provinceCityDistrict","provinceCity","provinceOnly"]).default("all")}),execute:e=>{const{label:t,required:n,fieldWidth:a,description:i,addressMode:l}=e,u={all:"pcda",provinceCityDistrict:"pcd",provinceCity:"pc",provinceOnly:"p"};return{widget:{type:"address",widgetName:Ra(),widgetNameAlias:"",customCls:null,width:720,enable:!0,visible:!0,allowBlank:!n,labelStyle:t,funMode:"module",module:null,libs:[],extendSet:{sort:["datahelp","module","formEvent"],status:!0,triggerField:"",triggerFieldMode:"none",version:1},needDetail:!0,format:u[l]||"all",eventMode:1,seleceMapAddress:!0},description:i,label:t,lineWidth:parseInt(a,10),tab:null}}},Doe={name:"buildLocationField",description:"Builds a location field for a form.",inputSchema:$e({radius:or().min(0).max(1e4).optional().describe("The radius for location accuracy in meters.").default(1500),label:ee().min(1).max(100).describe("The label for the location field."),limits:q3(Un($e({name:ee().min(1).max(100).describe("The name of the location limit."),position:Un(or()).length(2).describe("The [longitude, latitude] of the location limit."),radius:or().min(0).max(1e4).describe("The radius of the location limit in meters.")}))).default([]).describe("The location limits for the field."),description:ee().max(500).optional().describe("An optional description for the location field."),required:fn().default(!1).describe("Whether the field can be left blank."),fieldWidth:vn(["3","4","6","8","9","12"]).default("12").describe("The width of the field in the form. total is 12.")}),execute:e=>{const{label:t,description:n,required:a,fieldWidth:i,radius:l,limits:u}=e;return{widget:{type:"location",widgetName:Ra(),widgetNameAlias:"",customCls:null,enable:!0,visible:!0,allowBlank:!a,labelStyle:t,funMode:"module",module:null,libs:[],extendSet:{sort:["datahelp","module","formEvent"],status:!0,triggerField:"",triggerFieldMode:"none",version:1},adjustable:!0,radius:l,limits:u,lnglatVisible:!0,autoLocation:!0,enablePcLocation:!0},description:n,label:t,lineWidth:parseInt(i,10),tab:null}}},joe={name:"buildNumberInputField",description:"build a number input field",inputSchema:$e({label:ee().min(1).max(100).describe("The label of the number input field"),min:or().optional().describe("The minimum value of the number input field"),regex:ee().optional().default("^[-]?[\\d]{0,}[\\.]?[\\d]{0,}$").describe("The regex for validating the number input"),placeholder:ee().min(1).max(100).optional(),max:or().optional().describe("The maximum value of the number input field"),required:fn().optional().describe("Whether the number input field is required"),description:ee().max(500).optional().describe("The description of the number input field"),fieldWidth:vn(["3","4","6","8","9","12"]).optional().default("12").describe("The width of the number input field in the form layout")}),execute:e=>{const{label:t,fieldWidth:n,description:a,required:i,regex:l,placeholder:u,max:f,min:h}=e;return{widget:{type:"number",widgetName:Ra(),widgetNameAlias:"",triggerEvent:!1,customCls:null,height:34,width:350,enable:!0,visible:!0,allowBlank:!i,labelStyle:t,funMode:"module",module:null,libs:[],extendSet:{sort:["datahelp","module","formEvent"],status:!0,triggerField:"",triggerFieldMode:"none",version:1},regex:l,hint:u,noRepeat:!1,alertinfo:{icon:"success",tip:"请设置提示内容"},allowDecimals:!0,allowNegative:!0,maxNumber:f,minNumber:h,displayMode:"percent",precision:null,thousandsSeparator:!1,notround:!0,format:"",afterSuffix:{zh_cn:"",en_us:"",zh_tw:""}},description:a,label:t,lineWidth:parseInt(n),tab:null}}},Poe={name:"buildImageField",description:"Build an image field for a form.",inputSchema:$e({label:ee().min(1).max(100).describe("The label for the image field."),required:fn().describe("Whether the image field is required."),fieldWidth:vn(["3","4","6","8","9","12"]).describe("The width of the field in the form layout."),maxFileCount:or().optional().describe("Maximum number of files allowed.").default(50),fileSizeLimit:or().optional().describe("Maximum file size limit in bytes.").default(20971520),watermarkField:Un($e({text:ee().describe("Field name."),name:ee().describe("Field ID."),type:ee().describe("Field type."),regex:ee().optional().describe("Field regex."),value:ee().describe("Field value."),newText:ee().describe("New field text.")})).optional().describe("Fields to be used for watermarking."),watermarkColor:ee().optional().describe("Color of the watermark text.").default("#616161"),description:ee().max(300).optional().describe("A brief description of the image field.")}),execute:e=>{const{label:t,required:n,fieldWidth:a,description:i,maxFileCount:l,fileSizeLimit:u,watermarkColor:f,watermarkField:h}=e;return{widget:{type:"image",widgetName:Ra(),widgetNameAlias:"",customCls:null,height:100,enable:!0,visible:!0,allowBlank:!n,labelStyle:t,funMode:"module",module:null,libs:[],extendSet:{sort:["datahelp","module","formEvent"],status:!0,triggerField:"",triggerFieldMode:"none",version:1},maxFileCount:l,download:!0,is_file_down:!0,check_image_exif:!0,online_edit:!1,online_edit_record:!1,fileSizeLimit:u,fileType:["jpg","jpeg","png","gif","bmp","tif"],compressed:!0,wxOriginalComponent:!0,onlyCamera:!1,preview:!0,watermarkSwitch:!0,watermarkPosition:"center",watermarkFieldTitle:!0,watermarkSize:"14",watermarkColor:f,watermarkField:h,watermarkFixedField:{},previewWidth:450,previewHeight:450,browserCompress:!0,quality:.7},description:i,label:t,lineWidth:parseInt(a,10),tab:null}}},Foe={name:"buildAttachmentField",description:"Builds an attachment field for a form.",inputSchema:$e({label:ee().min(1).max(100),placeholder:ee().min(1).max(100).optional(),required:fn().default(!1),fieldWidth:vn(["3","4","6","8","9","12"]).default("12"),description:ee().min(1).max(100).optional(),fileType:vn(["exe","pdf","doc","docx","xls","xlsx","ppt","pptx","txt","jpg","jpeg","png","gif","bmp"]).array().optional().default(["exe","pdf"])}),execute:e=>{const{label:t,required:n,fieldWidth:a,description:i,fileType:l}=e;return{widget:{type:"upload",widgetName:Ra(),widgetNameAlias:"",customCls:null,enable:!0,visible:!0,allowBlank:!n,labelStyle:t,maxFileCount:50,download:!0,is_file_down:!0,check_image_exif:!0,online_edit:!0,online_edit_record:!0,fileSizeLimit:10485760,fileType:l},description:i,label:t,lineWidth:parseInt(a),tab:null}}},zoe={name:"buildSignatureField",description:"Build a signature field for a form. The signature field should allow users to draw their signature using a mouse or touchscreen.",inputSchema:$e({label:ee().min(1).max(100),placeholder:ee().min(1).max(100).optional(),required:fn().default(!1),fieldWidth:vn(["3","4","6","8","9","12"]).default("12"),description:ee().min(1).max(100).optional()}),execute:e=>{const{label:t,required:n,fieldWidth:a}=e;return{widget:{type:"signature",widgetName:Ra(),widgetNameAlias:"",customCls:null,height:34,width:350,enable:!0,visible:!0,allowBlank:!n,rely:null,labelStyle:t},description:null,label:t,lineWidth:parseInt(a,10),tab:null}}},Uoe={name:"buildMemberSelectField",description:"Build a team member select field for a form. The field allows users to select one members from own orgnization.",inputSchema:$e({label:ee().min(1).max(100),placeholder:ee().min(1).max(100).optional(),required:fn().default(!1),fieldWidth:vn(["3","4","6","8","9","12"]).default("12"),description:ee().min(1).max(100).optional()}),execute:e=>{const{label:t,required:n,fieldWidth:a,description:i}=e;return{widget:{type:"user",widgetName:Ra(),widgetNameAlias:"",customCls:null,height:"34",width:350,enable:!0,visible:!0,allowBlank:!n,labelStyle:t,funMode:"module",module:null,libs:[],extendSet:{sort:["datahelp","module","formEvent"],status:!0,triggerField:"",triggerFieldMode:"none",version:1},noRepeat:!1,limit:{},limitWidget:null,valueOption:0},description:i,label:t,lineWidth:parseInt(a),tab:null}}},Boe={name:"buildDepartmentSelectField",description:"build a department select field for a form",inputSchema:$e({label:ee().min(1).max(100),placeholder:ee().min(1).max(100).optional(),required:fn().default(!1),fieldWidth:vn(["3","4","6","8","9","12"]).default("12"),description:ee().min(1).max(100).optional()}),execute:e=>{const{label:t,description:n,fieldWidth:a,required:i}=e;return{widget:{type:"dept",widgetName:Ra(),widgetNameAlias:"",customCls:null,height:"34",width:350,enable:!0,visible:!0,allowBlank:!i,labelStyle:t,funMode:"module",module:null,libs:[],extendSet:{sort:["datahelp","module","formEvent"],status:!0,triggerField:"",triggerFieldMode:"none",version:1},noRepeat:!1,limit:{},valueOption:0},description:n,label:t,lineWidth:parseInt(a,10),tab:null}}},Hoe={name:"buildDepartmentGroupSelectField",description:"build a multiple department select field for a form",inputSchema:$e({label:ee().min(1).max(100),placeholder:ee().min(1).max(100).optional(),required:fn().default(!1),fieldWidth:vn(["3","4","6","8","9","12"]).default("12"),description:ee().min(1).max(100).optional()}),execute:e=>{const{label:t,description:n,fieldWidth:a,required:i}=e;return{widget:{type:"deptgroup",widgetName:Ra(),widgetNameAlias:"",customCls:null,height:"34",width:350,enable:!0,visible:!0,allowBlank:!i,labelStyle:t,funMode:"module",module:null,libs:[],extendSet:{sort:["datahelp","module","formEvent"],status:!0,triggerField:"",triggerFieldMode:"none",version:1},noRepeat:!1,limit:{},valueOption:0},description:n,label:t,lineWidth:parseInt(a,10),tab:null}}},Voe={name:"buildMemberGroupSelectField",description:"Build a team member multipyle select field for a form. The field allows users to select multiple members from own orgnization.",inputSchema:$e({label:ee().min(1).max(100),placeholder:ee().min(1).max(100).optional(),required:fn().default(!1),fieldWidth:vn(["3","4","6","8","9","12"]).default("12"),description:ee().min(1).max(100).optional()}),execute:e=>{const{label:t,required:n,fieldWidth:a,description:i}=e;return{widget:{type:"usergroup",widgetName:Ra(),widgetNameAlias:"",customCls:null,height:"34",width:350,enable:!0,visible:!0,allowBlank:!n,labelStyle:t,funMode:"module",module:null,libs:[],extendSet:{sort:["datahelp","module","formEvent"],status:!0,triggerField:"",triggerFieldMode:"none",version:1},noRepeat:!1,limit:{},limitWidget:null,valueOption:0},description:i,label:t,lineWidth:parseInt(a),tab:null}}},$oe=$e({type:$t("incNumber"),digitsNum:or().min(2).max(12),resetDuration:vn(["none","day","week","month","year"]),startValue:or().min(0),fixedLength:fn()}),Zoe=$e({type:$t("fixedChars"),chars:ee().min(1).max(100)}),Woe=$e({type:$t("widget"),widgetName:ee().min(1).max(100)}),qoe=ca([$oe,Zoe,Woe]),Goe={name:"buildSerialNumberField",description:"Builds a serial number field for a form.",inputSchema:$e({label:ee().min(1).max(100).describe("The label for the serial number field."),description:ee().max(500).optional().describe("An optional description for the serial number field."),fieldWidth:vn(["3","4","6","8","9","12"]).default("12").describe("The width of the field in the form. total is 12."),rules:Un(qoe).min(1).describe("The rules for generating the serial number.")}),execute:e=>{const{label:t,description:n,fieldWidth:a,rules:i}=e;return{widget:{type:"sn",widgetName:Ra(),widgetNameAlias:"",triggerEvent:0,customCls:null,width:350,enable:!0,visible:!0,labelStyle:"流水号",rules:i,importMode:1},description:n,label:t,lineWidth:parseInt(a),tab:null}}},Yoe={name:"buildLoadDataBtn",description:"add a button field to load data from another form.",inputSchema:$e({label:ee().min(1).max(100),placeholder:ee().min(1).max(100).optional(),required:fn().default(!1),fieldWidth:vn(["3","4","6","8","9","12"]).default("12"),description:ee().min(1).max(100).optional()}),execute:e=>{const{label:t,required:n,fieldWidth:a,description:i}=e;return{widget:{type:"dataload",widgetName:Ra(),widgetNameAlias:"",customCls:null,width:350,text:t,enable:!0,visible:!0,allowBlank:!n,labelStyle:t,loaddataconfig:{mode:"tree",extendSet:{sort:["datahelp","module","formEvent"],status:!0,triggerField:"",triggerFieldMode:"none"},dataloadmode:["add","cover"]},allowAddData:!0,mode:"list"},description:i,label:t,lineWidth:parseInt(a),tab:null}}},Joe={name:"buildLinkDataField",description:"Build a field to present multipyle related fields from another form",inputSchema:$e({label:ee().min(1).max(100),required:fn().default(!1),fieldWidth:vn(["3","4","6","8","9","12"]).default("12"),description:ee().min(1).max(100).optional(),relatedFormName:ee().min(1).max(100).optional()}),execute:(e,{experimental_context:t})=>{const{label:n,description:a,required:i,fieldWidth:l}=e,u=t,f=Ra();return n&&u&&(u.relatedForms[n]=f),{widget:{type:"linkdata",widgetName:f,widgetNameAlias:"",customCls:null,enable:!0,visible:!0,allowBlank:!i,rely:{widgets:[]},labelStyle:n,linkFilter:{},linkFields:[],allowAdd:!0,refType:"form"},description:a,label:n,lineWidth:parseInt(l,10),tab:null}}},dc=Object.freeze(Object.defineProperty({__proto__:null,buildAddressField:Ioe,buildAttachmentField:Foe,buildButtonField:Ooe,buildCheckBoxGroupField:Aoe,buildDateTimeField:yoe,buildDepartmentGroupSelectField:Hoe,buildDepartmentSelectField:Boe,buildFieldSplitline:Loe,buildImageField:Poe,buildInputField:boe,buildLinkDataField:Joe,buildLoadDataBtn:Yoe,buildLocationField:Doe,buildMemberGroupSelectField:Voe,buildMemberSelectField:Uoe,buildNumberInputField:joe,buildRadioField:Coe,buildSelectCheckerField:Moe,buildSelectField:woe,buildSerialNumberField:Goe,buildSignatureField:zoe,buildTextareaField:Roe,confirmToCreateFieldsForRelatedForm:Eoe,confirmToCreateForm:koe,confirmToCreateRelatedForm:_oe,confirmToSaveCheckedFields:Soe,promptToCreateRelatedForm:Toe},Symbol.toStringTag,{value:"Module"})),JN=GN(dc),Xoe=YN(dc);$e({value:ee().min(1).max(100),text:ee().min(1).max(100),color:ee().optional()});const Koe=()=>{const e={},t=YN(dc);for(const n of Object.keys(dc)){const a=n;t.has(n)&&(e[n]=dc[a])}return e},Qoe=()=>{const e={},t=GN(dc);for(const n of Object.keys(dc)){const a=n;t.includes(n)&&(e[n]=dc[a])}return e},eie=Koe();Qoe();const tie=`
534
+ 你是表单字段设计专家,根据设计说明理解业务需求,首先对表单进行介绍,从业务角度输出简要的字段设计说明。
535
+
536
+ 格式:
537
+ - 关联字段 label 命名无需加“关联”二字,直接像设计普通字段一样命名
538
+ - 关联字段创建无需特定分区和说明,像设计普通字段一样设计
539
+ - 统一使用中文
540
+
541
+ 注意:
542
+ - 必须设计一个关联字段,即使在关联表中,也尝试继续生成关联字段(优先使用记录类字段)
543
+ - 如果设计的是关联表,设计流水号字段,用来被其他表单关联
544
+ - 字段数量控制在 10 个以内
545
+ - 涉及到合同、记录相关等信息时,使用关联字段,组织架构相关信息,无需关联
546
+ - 无需设计真实的表单,只需输出字段设计说明
547
+ - 直接根据用户输入推断需求
548
+ - 字段类型尽量使用多样化字段,避免单一字段类型
549
+
550
+ 输出示例:
551
+
552
+ 创建一张“用户信息”表,用于系统中管理和维护所有用户的基本资料和账户状态,支持用户身份识别、权限管理及后续业务流程的对接。该表是用户相关业务的核心表单,广泛应用于认证授权、客户管理、营销活动、服务交付等环节。
553
+
554
+ **字段列举:**
555
+ - 用户编号(唯一标识,主键)
556
+ - 用户姓名(真实姓名)
557
+ - 用户昵称(系统显示名)
558
+ - 账户类型(如普通用户、管理员、VIP客户等)
559
+ - 手机号码(用于登录和联系)
560
+ - 电子邮箱(用于通知与找回密码)
561
+ - 性别
562
+ - 出生日期
563
+ - 所在地区(省市区)
564
+ - 详细地址
565
+ - 注册渠道(如官网、App、第三方授权)
566
+ - 用户状态(激活、冻结、注销等)
567
+ - 最近登录时间
568
+ - 登录次数
569
+ - 关联账户(如公司/组织、合作伙伴)
570
+ - 用户等级(积分等级或会员等级)
571
+ - 备注说明
572
+
573
+ **关联说明:**
574
+ - 关联订单表(用户可关联多个订单)
575
+ - 关联权限角色表(实现权限管理)
576
+ - 关联营销活动参与记录表(用户参与的营销活动)
577
+ - 关联客服工单表(用户反馈与支持)
578
+
579
+ **设计说明:**
580
+ 该表结构设计兼顾用户身份信息的完整性与业务拓展需求,注重数据的规范化和关联性。字段覆盖用户基本身份信息及账户状态,有助于实现精准营销及服务管理。可根据实际业务需求扩展用户画像字段(如兴趣爱好、行为标签),或增加多账户、多设备管理等功能。与其他业务实体的关联设计方便后续业务流程的整合和数据分析。
581
+
582
+ `;class k4{constructor(t,n,a={},i=()=>({})){Ge(this,"agent");Ge(this,"confirmInfo");Ge(this,"context",{});Ge(this,"buildPayload");a&&(this.context={...this.context,...a}),this.agent=new qZ({...t,experimental_context:this.context}),this.buildPayload=i,this.confirmInfo=n}static create(t,n,a={},i=()=>({})){return new k4(t,n,a,i)}getCtx(){return this.context}getResp(t,n){const a=tW({originalMessages:t,execute:async({writer:i})=>{const l=this.agent.stream({messages:bE(t)});i.merge(l.toUIMessageStream({originalMessages:t}));for await(const u of l.fullStream);this.confirmInfo&&(this.confirmInfo.data.payload=this.buildPayload(this.context,n),i.write(this.confirmInfo))}});return fE({stream:a})}}new k4({system:tie,model:WN},{type:"data-confirm",data:{type:"tool-confirmToCreateForm",payload:{formName:""}}},{},(e,t)=>({formName:t.name}));const nie=`
583
+ 你是表单字段构建专家,根据上下文设计说明理解业务需求,完成表单字段构建,生成字段描述 json。设计文档中字段设计完毕后,立即停止。
584
+
585
+ 输出:
586
+ - 仅包含工具的结构化输出,不包含任何其他文字说明
587
+ - 严格按设计说明的个数,严禁新增、遗漏字段
588
+ - 设计中提到要关联其他表的字段,必须使用关联字段设计工具
589
+ -
590
+
591
+ 注意:
592
+ - 关联字段有最高优先级,如果上下文提到字段需要关联其他表,必须使用关联字段设计工具
593
+ - 涉及到合同、记录相关等字段信息时,使用关联字段
594
+ - 表单布局需要紧凑合理
595
+ - 关联表单无需重复设计字段反向关联
596
+ - 对于身份证号、手机号等字段,使用文本字段,并添加相应的正则表达式校验
597
+ - 字段设计时,注意字段的必填项和选填项
598
+ - 字段类型尽量使用多样化字段,避免单一字段类型
599
+ - 请至少使用(buildLinkDataField)工具设计一个关联字段
600
+ `,rie={name:"promptToStop",description:"stop when all fields have been built and no more fields are needed to be added.",inputSchema:$e({hasRelatedForm:fn()}),outputSchema:fn(),execute:e=>e.hasRelatedForm},aie={...eie,promptToStop:rie},oie=({steps:e})=>e.some(t=>t.content.some(n=>n.type==="tool-result"&&n.toolName==="promptToStop"));new k4({system:nie,model:WN,tools:aie,toolChoice:"required",stopWhen:oie},{type:"data-confirm",data:{type:"tool-confirmToSaveCheckedFields",payload:{formName:"",relatedForms:{}}}},{relatedForms:{}},(e,t)=>(console.log("ctx",e),{formName:t.name,relatedForms:e.relatedForms}));const iie=e=>{const{part:t,id:n,index:a,sendMessage:i,role:l,addToolOutput:u}=e,f=t,h=`message-${n}-part-${a}-${f.type}`;if(f.type==="text"&&f.text)return C.jsx("div",{children:C.jsx(Ka,{className:We({"w-fit wrap-break-words rounded-2 px-3 py-2 text-right text-white":l==="user","bg-transparent px-0 py-0 text-left":l==="assistant"}),"data-testid":"message-content",style:l==="user"?{backgroundColor:"#006cff"}:void 0,children:C.jsx(pm,{id:n,content:y0(f.text)})})},h);if(f.type==="data-confirm"){const g=f.data;return C.jsx(coe,{input:g.payload,sendMessage:i,onCancel:()=>{},type:g.type},h)}if(xd(f)){const g=Zh(f);if(g==="promptToCreateRelatedForm"&&f.state==="output-available")return C.jsx("div",{children:C.jsx(Ka,{className:"gap-0 py-0",compact:!0,children:C.jsx(pm,{id:n,content:y0(f.output?"是否继续创建关联表?":"表单创建已完成。")})})},h);if(f.state==="output-available"&&Xoe.has(g))return C.jsx("div",{children:C.jsx(Ka,{className:"gap-0 py-0",compact:!0,children:(f==null?void 0:f.output)&&C.jsx(T7,{field:f.output})})},h);if(JN.includes(g)&&f.state==="input-available"){const x=O.useCallback(k=>{u({toolCallId:f.toolCallId,tool:g,output:qN.YES}),i(void 0,k)},[f.toolCallId,g]),y=O.useCallback(()=>{u({toolCallId:f.toolCallId,tool:g,output:qN.NO}),i()},[f.toolCallId,g]);return C.jsx(ioe,{input:f.input,onConfirm:x,onCancel:y,type:f.type},h)}if(JN.includes(g)&&f.state==="output-available"){const x=f;return C.jsx(uoe,{input:x.input,output:x.output,type:x.type},f.toolCallId)}}return null};class XN extends FN{constructor(){super(...arguments);Ge(this,"pluginName",O7);Ge(this,"customComponents",{MessagePart:iie})}}const sie={Plugin:XN,createContext:()=>({})},eu=e=>{const t=Pp(e);return t?t.Context:null},lie=({sendMessage:e})=>{const t=eu(Od),n=xs();if((t==null?void 0:t.fillMode)==="batch"){const a=Array.from((t==null?void 0:t.fieldMap.values())||[]);return C.jsxs(C.Fragment,{children:["需要测试数据?试试AI示例数据功能。如果您对添加的数据有具体要求也可以告诉我。",C.jsx(Nd,{light:!0,onClick:()=>{n.emit("form-filling-batch-fill-begin",{}),e({text:`添加 ${Sm} 条示例数据`},{body:{stage:"fill",formStructure:ON(a),mode:t==null?void 0:t.fillMode,count:Sm}})},text:"直接添加"})]})}return C.jsx(C.Fragment,{children:"我可以为您解析文本内容,智能填写到表单字段,请方输入内容开始创建"})},L7=({children:e,width:t,height:n,padding:a,borderWidth:i=2,borderRadius:l=12,bgInset:u,style:f})=>{const h=typeof t=="number"&&typeof n=="number",g=h?Math.max(t!=null?t:0,n!=null?n:0):0,x=h?-1*g*1.5:"-150%";return C.jsxs("div",{style:{position:"relative",width:t!=null?t:"100%",height:n!=null?n:"100%",borderRadius:l,overflow:"hidden"},children:[C.jsx("div",{style:{position:"absolute",inset:u!==void 0?-u:x,background:"conic-gradient(from 0deg, #0265FF, #00D4FF, #0265FF, #00D4FF, #0265FF)",animation:"borderRotate 4s linear infinite"}}),C.jsx("div",{style:{...f,position:"absolute",inset:i,borderRadius:l-2,background:"white",zIndex:1,padding:a||0},children:e}),C.jsx("style",{children:`
601
+ @keyframes borderRotate {
602
+ 0% {
603
+ transform: rotate(0deg);
604
+ }
605
+ 100% {
606
+ transform: rotate(360deg);
607
+ }
608
+ }
609
+ `})]})},uie=({defaultChecked:e=!1,checked:t,onCheckedChange:n,children:a,disabled:i=!1,className:l})=>{const[u,f]=O.useState(e),h=t!==void 0,g=h?t:u,x=()=>{if(i)return;const y=!g;h||f(y),n==null||n(y)};return C.jsxs("button",{type:"button",role:"checkbox","aria-checked":g,disabled:i,onClick:x,className:We("inline-flex items-center gap-[6px] cursor-pointer select-none","text-[#121111] text-[14px]",i&&"cursor-not-allowed opacity-50",l),children:[C.jsx("span",{className:We("inline-flex items-center justify-center w-4 h-4 rounded-full transition-colors duration-200 box-border border",g?"bg-[#2E60FF] border-transparent":"bg-white border-[#e0e0e0]"),children:g&&C.jsx("span",{className:"text-white",children:C.jsx(t_,{})})}),a&&C.jsx("span",{className:"text-sm",children:a})]})},cie=e=>{const t=xs();return O.useCallback(n=>{const a=NN(n.value);t.emit(Co.FIELD_FILLED_UPDATE,{field:{label:n.label,widget:{widgetName:n.fieldName,type:n.fieldType,value:a,row:n.row||0}},messageId:e,checked:!0})},[])},die=(e,t)=>{const n=O.useRef(null);O.useEffect(()=>{var u;if(!e)return;const a=e.text,l=`[${a==null?void 0:a.replace(/,\s*$/,"")}]`;try{const f=JSON.parse(l);if(!Array.isArray(f)||f.length===0)return;const h=f[f.length-1];if(((u=n.current)==null?void 0:u.fieldName)===(h==null?void 0:h.fieldName))return;t(f,h),n.current=h}catch(f){console.error("Failed to parse fields JSON:",f,l)}},[e])},fie=({sendMessage:e,status:t,id:n,fields:a})=>{const[i,l]=O.useState(t==="streaming"),u=xs();O.useEffect(()=>{(t==="ready"||t==="error")&&l(!1)},[t]);const f=eu(Od),h=()=>!a||a.length===0?0:a[a.length-1].row||0,g=O.useCallback(x=>{u.emit("form-filling-fields-checked-update",{messageId:n,checked:x}),console.log("filling-fields check udpate",n,x)},[n]);return i?C.jsx(L7,{width:"100%",height:40,padding:10,borderRadius:4,bgInset:1e3,borderWidth:1.5,style:{display:"flex",alignItems:"center"},children:C.jsx(z0,{children:"数据生成中,可点击下方按钮暂停"})}):C.jsxs("div",{className:"rounded-[10px] border border-[var(--e0e0e0,#E0E0E0)] w-full flex items-center flex-col gap-[10px] p-[4px] pb-[20px]",children:[C.jsx("div",{className:"flex items-center w-full py-[10px] px-[16px] gap-[6px]",children:C.jsxs(uie,{defaultChecked:!0,onCheckedChange:g,children:["已生成",h(),"条数据"]})}),C.jsx(Nd,{text:`继续生成${Sm}条`,className:"w-[300px]",onClick:()=>{if(t==="streaming"||i)return;l(!0);const x=Array.from((f==null?void 0:f.fieldMap.values())||[]);e({text:""},{body:{mode:"batch",count:Sm,msg:`继续生成${Sm}条`,formStructure:ON(x),continueMessageId:n}})}})]})},pie=({parts:e,...t})=>{const[n,a]=O.useState([]),i=e!=null&&e.length?e==null?void 0:e[e.length-1]:void 0,l=cie(t.id);return die(i,(u,f)=>{a(u),l(f)}),i?C.jsx(fie,{fields:n,...t}):null},hie=O.memo(pie,(e,t)=>{var i,l,u,f,h,g;const n=(i=t.parts)!=null&&i.length?(l=t.parts)==null?void 0:l[t.parts.length-1]:void 0,a=(u=e.parts)!=null&&u.length?(f=e.parts)==null?void 0:f[e.parts.length-1]:void 0;return((h=e.parts)==null?void 0:h.length)===((g=t.parts)==null?void 0:g.length)&&(a==null?void 0:a.text)===(n==null?void 0:n.text)&&e.status===t.status&&e.sendMessage===t.sendMessage&&e.id===t.id}),mie=e=>{const{part:t,id:n,sendMessage:a,setMessages:i,status:l}=e,u=t,f=v0(u),h=eu(Od),g=qE(u),[x,y]=O.useState(!1);h&&(h.conversationId=n),Cm("chat-area-visibility-change",_=>{(_==null?void 0:_.visible)===!1&&(h==null?void 0:h.fillMode)==="batch"&&i(()=>[])});const k=xs(),b=Array.isArray(u)&&u.length?u:f?[u]:[];if(b.length&&h&&h.fillMode!=="batch"){const R=b.map(M=>{var F,D;const L=WE(M);if(!((F=h.fieldMap)!=null&&F.has(L.fieldName))&&!((D=h.subFieldsNameMap)!=null&&D.has(L.fieldName)))return console.warn("unregistered field:",L.fieldName,h.fieldMap),null;const P=NN(L.value);return{field:{label:L.label,widget:{widgetName:L.fieldName,type:L.fieldType,value:L.value}},onLoaded:V=>{var H;V.widget.value=P,h.valueMap.set((H=V.widget)==null?void 0:H.widgetName,P),k.emit(Co.FIELD_FILLED_UPDATE,{field:V,checked:!0})},onChange:(V,H,Z,q)=>{var ae;V&&h.valueMap.set((ae=H.widget)==null?void 0:ae.widgetName,P),k.emit(Co.FIELD_FILLED_UPDATE,{field:H,checked:V,parentFieldName:Z,rowIndex:q})}}}).filter(M=>M!==null);return C.jsxs(Ka,{className:"gap-0 py-0",compact:!0,children:[l==="ready"?`已为你填写${R.length}个字段`:null,C.jsx(toe,{props:R,readonly:x,streaming:l==="streaming",children:l==="ready"?C.jsx(Nd,{className:"mt-[20px] mb-[10px]",disabled:x,onClick:()=>{y(!0)},children:x?"已确认":"确认"}):null}),l==="ready"?"请选择需要的字段添加到表单。你可以补充描述后重新生成,表单中已添加字段在下次生成时保留。":null]})}return(h==null?void 0:h.fillMode)==="batch"&&b.length?C.jsx(hie,{id:n,setMessages:i,status:l,parts:b,sendMessage:a}):g?C.jsx(Nd,{children:"保存"}):u.text!==void 0&&u.text.trim()!==""?C.jsx(r4,{...e}):null},gie=({style:e,onClick:t,variant:n})=>{const a=eu(Od);return n==="batch"?C.jsx(C4,{icon:C.jsx(z9,{}),onClick:()=>{a!=null&&a.fillMode&&(a.fillMode="batch"),t==null||t()},children:"AI填报示例数据"}):C.jsx(g4,{style:e,onClick:()=>{a!=null&&a.fillMode&&(a.fillMode="AI"),t==null||t()},entryVariant:"ghost",icon:C.jsx(z9,{}),children:"AI填写"})},vie=({variant:e="default"})=>{const t=e==="default"?20:24,n=eu(Od),a=(n==null?void 0:n.fillMode)==="batch"?"AI填报示例数据":"AI填写";return C.jsx(qh,{name:a,icon:C.jsx(z9,{size:t}),variant:e})};var I7="rovingFocusGroup.onEntryFocus",yie={bubbles:!1,cancelable:!0},km="RovingFocusGroup",[D7,KN,xie]=iA(km),[wie,QN]=Xs(km,[xie]),[bie,Cie]=wie(km),eM=O.forwardRef((e,t)=>C.jsx(D7.Provider,{scope:e.__scopeRovingFocusGroup,children:C.jsx(D7.Slot,{scope:e.__scopeRovingFocusGroup,children:C.jsx(Sie,{...e,ref:t})})}));eM.displayName=km;var Sie=O.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:a,loop:i=!1,dir:l,currentTabStopId:u,defaultCurrentTabStopId:f,onCurrentTabStopIdChange:h,onEntryFocus:g,preventScrollOnEntryFocus:x=!1,...y}=e,k=O.useRef(null),b=Vn(t,k),_=sA(l),[R,M]=wp({prop:u,defaultProp:f!=null?f:null,onChange:h,caller:km}),[L,P]=O.useState(!1),F=ec(g),D=KN(n),V=O.useRef(!1),[H,Z]=O.useState(0);return O.useEffect(()=>{const q=k.current;if(q)return q.addEventListener(I7,F),()=>q.removeEventListener(I7,F)},[F]),C.jsx(bie,{scope:n,orientation:a,dir:_,loop:i,currentTabStopId:R,onItemFocus:O.useCallback(q=>M(q),[M]),onItemShiftTab:O.useCallback(()=>P(!0),[]),onFocusableItemAdd:O.useCallback(()=>Z(q=>q+1),[]),onFocusableItemRemove:O.useCallback(()=>Z(q=>q-1),[]),children:C.jsx(hn.div,{tabIndex:L||H===0?-1:0,"data-orientation":a,...y,ref:b,style:{outline:"none",...e.style},onMouseDown:nn(e.onMouseDown,()=>{V.current=!0}),onFocus:nn(e.onFocus,q=>{const ae=!V.current;if(q.target===q.currentTarget&&ae&&!L){const _e=new CustomEvent(I7,yie);if(q.currentTarget.dispatchEvent(_e),!_e.defaultPrevented){const ge=D().filter(Te=>Te.focusable),he=ge.find(Te=>Te.active),we=ge.find(Te=>Te.id===R),xe=[he,we,...ge].filter(Boolean).map(Te=>Te.ref.current);rM(xe,x)}}V.current=!1}),onBlur:nn(e.onBlur,()=>P(!1))})})}),tM="RovingFocusGroupItem",nM=O.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:a=!0,active:i=!1,tabStopId:l,children:u,...f}=e,h=tc(),g=l||h,x=Cie(tM,n),y=x.currentTabStopId===g,k=KN(n),{onFocusableItemAdd:b,onFocusableItemRemove:_,currentTabStopId:R}=x;return O.useEffect(()=>{if(a)return b(),()=>_()},[a,b,_]),C.jsx(D7.ItemSlot,{scope:n,id:g,focusable:a,active:i,children:C.jsx(hn.span,{tabIndex:y?0:-1,"data-orientation":x.orientation,...f,ref:t,onMouseDown:nn(e.onMouseDown,M=>{a?x.onItemFocus(g):M.preventDefault()}),onFocus:nn(e.onFocus,()=>x.onItemFocus(g)),onKeyDown:nn(e.onKeyDown,M=>{if(M.key==="Tab"&&M.shiftKey){x.onItemShiftTab();return}if(M.target!==M.currentTarget)return;const L=_ie(M,x.orientation,x.dir);if(L!==void 0){if(M.metaKey||M.ctrlKey||M.altKey||M.shiftKey)return;M.preventDefault();let F=k().filter(D=>D.focusable).map(D=>D.ref.current);if(L==="last")F.reverse();else if(L==="prev"||L==="next"){L==="prev"&&F.reverse();const D=F.indexOf(M.currentTarget);F=x.loop?Tie(F,D+1):F.slice(D+1)}setTimeout(()=>rM(F))}}),children:typeof u=="function"?u({isCurrentTabStop:y,hasTabStop:R!=null}):u})})});nM.displayName=tM;var kie={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Eie(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function _ie(e,t,n){const a=Eie(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(a))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(a)))return kie[a]}function rM(e,t=!1){const n=document.activeElement;for(const a of e)if(a===n||(a.focus({preventScroll:t}),document.activeElement!==n))return}function Tie(e,t){return e.map((n,a)=>e[(t+a)%e.length])}var Rie=eM,Aie=nM,j7="Radio",[Nie,aM]=Xs(j7),[Mie,Oie]=Nie(j7),oM=O.forwardRef((e,t)=>{const{__scopeRadio:n,name:a,checked:i=!1,required:l,disabled:u,value:f="on",onCheck:h,form:g,...x}=e,[y,k]=O.useState(null),b=Vn(t,M=>k(M)),_=O.useRef(!1),R=y?g||!!y.closest("form"):!0;return C.jsxs(Mie,{scope:n,checked:i,disabled:u,children:[C.jsx(hn.button,{type:"button",role:"radio","aria-checked":i,"data-state":uM(i),"data-disabled":u?"":void 0,disabled:u,value:f,...x,ref:b,onClick:nn(e.onClick,M=>{i||h==null||h(),R&&(_.current=M.isPropagationStopped(),_.current||M.stopPropagation())})}),R&&C.jsx(lM,{control:y,bubbles:!_.current,name:a,value:f,checked:i,required:l,disabled:u,form:g,style:{transform:"translateX(-100%)"}})]})});oM.displayName=j7;var iM="RadioIndicator",sM=O.forwardRef((e,t)=>{const{__scopeRadio:n,forceMount:a,...i}=e,l=Oie(iM,n);return C.jsx(Kl,{present:a||l.checked,children:C.jsx(hn.span,{"data-state":uM(l.checked),"data-disabled":l.disabled?"":void 0,...i,ref:t})})});sM.displayName=iM;var Lie="RadioBubbleInput",lM=O.forwardRef(({__scopeRadio:e,control:t,checked:n,bubbles:a=!0,...i},l)=>{const u=O.useRef(null),f=Vn(u,l),h=o7(n),g=e5(t);return O.useEffect(()=>{const x=u.current;if(!x)return;const y=window.HTMLInputElement.prototype,b=Object.getOwnPropertyDescriptor(y,"checked").set;if(h!==n&&b){const _=new Event("click",{bubbles:a});b.call(x,n),x.dispatchEvent(_)}},[h,n,a]),C.jsx(hn.input,{type:"radio","aria-hidden":!0,defaultChecked:n,...i,tabIndex:-1,ref:f,style:{...i.style,...g,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});lM.displayName=Lie;function uM(e){return e?"checked":"unchecked"}var Iie=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],E4="RadioGroup",[Die]=Xs(E4,[QN,aM]),cM=QN(),dM=aM(),[jie,Pie]=Die(E4),fM=O.forwardRef((e,t)=>{const{__scopeRadioGroup:n,name:a,defaultValue:i,value:l,required:u=!1,disabled:f=!1,orientation:h,dir:g,loop:x=!0,onValueChange:y,...k}=e,b=cM(n),_=sA(g),[R,M]=wp({prop:l,defaultProp:i!=null?i:null,onChange:y,caller:E4});return C.jsx(jie,{scope:n,name:a,required:u,disabled:f,value:R,onValueChange:M,children:C.jsx(Rie,{asChild:!0,...b,orientation:h,dir:_,loop:x,children:C.jsx(hn.div,{role:"radiogroup","aria-required":u,"aria-orientation":h,"data-disabled":f?"":void 0,dir:_,...k,ref:t})})})});fM.displayName=E4;var pM="RadioGroupItem",hM=O.forwardRef((e,t)=>{const{__scopeRadioGroup:n,disabled:a,...i}=e,l=Pie(pM,n),u=l.disabled||a,f=cM(n),h=dM(n),g=O.useRef(null),x=Vn(t,g),y=l.value===i.value,k=O.useRef(!1);return O.useEffect(()=>{const b=R=>{Iie.includes(R.key)&&(k.current=!0)},_=()=>k.current=!1;return document.addEventListener("keydown",b),document.addEventListener("keyup",_),()=>{document.removeEventListener("keydown",b),document.removeEventListener("keyup",_)}},[]),C.jsx(Aie,{asChild:!0,...f,focusable:!u,active:y,children:C.jsx(oM,{disabled:u,required:l.required,checked:y,...h,...i,name:l.name,ref:x,onCheck:()=>l.onValueChange(i.value),onKeyDown:nn(b=>{b.key==="Enter"&&b.preventDefault()}),onFocus:nn(i.onFocus,()=>{var b;k.current&&((b=g.current)==null||b.click())})})})});hM.displayName=pM;var Fie="RadioGroupIndicator",zie=O.forwardRef((e,t)=>{const{__scopeRadioGroup:n,...a}=e,i=dM(n);return C.jsx(sM,{...i,...a,ref:t})});zie.displayName=Fie;var Uie=fM,Bie=hM;const mM=O.forwardRef(({className:e,options:t,...n},a)=>C.jsx(Uie,{ref:a,className:We("flex flex-col items-start justify-center p-[2px] rounded-[4px] bg-[#EFF0F6]",e),...n,children:C.jsx("div",{className:"flex gap-[2px] items-center w-full",children:t.map(i=>C.jsx(gM,{value:i.value,tooltips:i.tooltips,className:i.className,children:i.label},i.value))})}));mM.displayName="TabRadioGroup";const gM=O.forwardRef(({className:e,children:t,tooltips:n,...a},i)=>C.jsx(Bie,{ref:i,className:We("flex-1 h-[30px] flex items-center justify-center px-[10px] py-[7px] rounded-[4px] text-[14px] text-[#121111] cursor-pointer","border border-solid border-[#EFF0F6] bg-transparent","transition-all ease-out duration-200","outline-none","hover:text-[#121111] hover:border-[#E0E0E0] hover:bg-white","data-[state=checked]:text-[#0265FF] data-[state=checked]:border-[#E0E0E0] data-[state=checked]:bg-white",e),...a,children:n?C.jsx(uT,{content:n,children:t}):t}));gM.displayName="TabRadioItem";const Hie=()=>{const e=xs(),t=eu(Od);return(t==null?void 0:t.fillMode)==="batch"?null:C.jsx(mM,{onValueChange:n=>{e.emit(Co.MODE_CHANGE,{mode:n})},options:[{value:"AI",label:"✨智能填写",tooltips:"✨AI根据输入内容智能推测或联网搜索相关信息,为你补全尽可能多的字段"},{value:"normal",label:"普通填写",tooltips:"AI只填写输入内容中明确包含的字段"}],defaultValue:"AI"})};function Vie(e,t={}){const{prototype:n=!1,depth:a=1/0,customHandler:i,nonEnumerable:l=!0}=t,u=new WeakMap;function f(h,g){if(h===null||typeof h!="object"||g>=a)return h;if(i){const k=i(h);if(k!==void 0)return k}if(u.has(h))return u.get(h);if(h instanceof Date)return new Date(h.getTime());if(h instanceof RegExp){const k=new RegExp(h.source,h.flags);return k.lastIndex=h.lastIndex,k}if(h instanceof Map){const k=new Map;return u.set(h,k),h.forEach((b,_)=>{k.set(f(_,g+1),f(b,g+1))}),k}if(h instanceof Set){const k=new Set;return u.set(h,k),h.forEach(b=>{k.add(f(b,g+1))}),k}if(h instanceof ArrayBuffer){const k=new ArrayBuffer(h.byteLength);return new Uint8Array(k).set(new Uint8Array(h)),k}if(typeof SharedArrayBuffer!="undefined"&&h instanceof SharedArrayBuffer)return h;if(ArrayBuffer.isView(h)&&!(h instanceof DataView)){const k=h.constructor,b=h.buffer.slice(0);return new k(b,h.byteOffset,h.byteLength/h.BYTES_PER_ELEMENT)}if(h instanceof DataView)return new DataView(h.buffer.slice(0),h.byteOffset,h.byteLength);let x;if(Array.isArray(h)){x=[],u.set(h,x);const k=h.length;for(let b=0;b<k;b++)b in h&&(x[b]=f(h[b],g+1))}else{const k=n?Object.getPrototypeOf(h):Object.prototype;x=Object.create(k),u.set(h,x),(l?Reflect.ownKeys(h):Object.keys(h)).forEach(_=>{const R=Object.getOwnPropertyDescriptor(h,_);if(!R)return;const M={};"value"in R?M.value=f(R.value,g+1):(R.get&&(M.get=R.get),R.set&&(M.set=R.set)),R.writable!==void 0&&(M.writable=R.writable),R.enumerable!==void 0&&(M.enumerable=R.enumerable),R.configurable!==void 0&&(M.configurable=R.configurable),Object.defineProperty(x,_,M)})}return x}return f(e,0)}function vM(e,t){const n={get(a,i){const l=a[i];return l&&typeof l=="object"?vM(l,t):l},set(){return P7(t),!1},deleteProperty(){return P7(t),!1},defineProperty(){return P7(t),!1}};return new Proxy(e,n)}function yM(e){return!e||typeof e!="object"?e:(Object.getOwnPropertyNames(e).forEach(t=>{const n=e[t];n&&typeof n=="object"&&yM(n)}),Object.freeze(e))}function $ie(e,t=Fp.DEEP,n){const a=Vie(e,{prototype:!1,depth:100,nonEnumerable:!0}),i=vM(a,n);switch(t){case Fp.DEEP:return yM(i);case Fp.SHALLOW:return Object.freeze(i);default:return i}}function P7(e){throw new Error(e?`[Plugin:${e}] Context is readonly`:"Context is readonly")}class Zie{constructor(t){Ge(this,"evtBus");Ge(this,"allMessageIds",new Set);Ge(this,"uncheckedMessageIds",new Set);Ge(this,"handleFieldFillingUpdate",t=>{const{messageId:n}=t;n&&this.allMessageIds.add(n)});Ge(this,"handleFieldsCheckedUpdate",t=>{const{messageId:n,checked:a}=t;n&&(a?this.uncheckedMessageIds.delete(n):this.uncheckedMessageIds.add(n))});Ge(this,"handleFieldsDataConfirmed",()=>{this.clear(),console.log("batch filling msg cleared")});this.evtBus=t,this.evtBus.on(Co.FIELD_FILLED_UPDATE,this.handleFieldFillingUpdate),this.evtBus.on(Co.FIELDS_CHECKED_UPDATE,this.handleFieldsCheckedUpdate),this.evtBus.on(Co.FILL_DATA_CONFIRMED,this.handleFieldsDataConfirmed)}getCheckedMessageIds(){const t=new Set;for(const n of this.allMessageIds)this.uncheckedMessageIds.has(n)||t.add(n);return t}clear(){this.allMessageIds.clear(),this.uncheckedMessageIds.clear()}dispose(){this.evtBus.off(Co.FIELD_FILLED_UPDATE,this.handleFieldFillingUpdate),this.evtBus.off(Co.FIELDS_CHECKED_UPDATE,this.handleFieldsCheckedUpdate),this.evtBus.off(Co.FILL_DATA_CONFIRMED,this.handleFieldsDataConfirmed),this.clear()}}class xM extends M7{constructor(){super(...arguments);Ge(this,"pluginName",Od);Ge(this,"customComponents",{OpeningLines:lie,MessagePart:mie,EntryButton:gie,MessageInputTopSlot:Hie,AvatarAndName:vie});Ge(this,"batchFillingDataManager");Ge(this,"sdkInst");Ge(this,"getReadonlyContext",()=>$ie(this.Context,Fp.DEEP,this.pluginName));Ge(this,"getValidFilledMessageIds",()=>this.batchFillingDataManager.getCheckedMessageIds());Ge(this,"hasValidStructure",()=>{var n;return((n=this.Context)==null?void 0:n.fieldMap.size)!==0});Ge(this,"init",n=>{this.sdkInst=n,this.batchFillingDataManager=new Zie(n.eventBus),n.eventBus.on(Co.FORM_STRUCTURE_READY,this.handleFormStructureReady),n.eventBus.on(Co.FORM_FILLING_MODE_UPDATE,this.handleFillModeUpdate),n.eventBus.on("chat-area-visibility-change",this.handleChatAreaVisibilityChange)});Ge(this,"handleChatAreaVisibilityChange",({visible:n})=>{var a,i;n||(i=(a=this.lifecycleHooks)==null?void 0:a.onBeforeMessagesClear)==null||i.call(a)});Ge(this,"handleFillModeUpdate",({mode:n})=>{this.Context.fillMode=n});Ge(this,"dispose",()=>{this.batchFillingDataManager.dispose(),this.sdkInst.eventBus.off(Co.FORM_STRUCTURE_READY,this.handleFormStructureReady),this.sdkInst.eventBus.off(Co.FORM_FILLING_MODE_UPDATE,this.handleFillModeUpdate),this.sdkInst.eventBus.off("chat-area-visibility-change",this.handleChatAreaVisibilityChange)});Ge(this,"handleFormStructureReady",n=>{var i,l;const{fields:a}=n;(i=this.Context)==null||i.fieldMap.clear(),(l=this.Context)==null||l.subFieldsNameMap.clear(),!(!a||!a.length)&&a.forEach(u=>{var f,h;if((f=this.Context)==null||f.fieldMap.set(u.widget.widgetName,u),u.widget.type==="subform")for(const g of u.widget.items)(h=this.Context)==null||h.subFieldsNameMap.set(g.widget.widgetName,u.widget.widgetName)})});Ge(this,"lifecycleHooks",{onBeforeChatRender:()=>({enableMessageMerge:!0,placeholder:"请输入",acceptAttachmentFileType:[".csv","text/csv","text/plain",".txt","image/*",".xls",".xlsx"]}),onBeforeMessagePartsRender:n=>{const a=iq(n,(i,l)=>{var h,g;if(Array.isArray(i)||Array.isArray(l))return!1;const u=Pi(i),f=Pi(l);return((h=u==null?void 0:u.field)==null?void 0:h.fieldName)==((g=f==null?void 0:f.field)==null?void 0:g.fieldName)});return P9(a,v0)},onBeforeMessagesClear:()=>{var i;const n=((i=this.Context)==null?void 0:i.conversationId)||"";if(!n)return;(async()=>{await fetch("https://agent.online-office.net/web/api/form/conversation/clear",{method:"POST",body:JSON.stringify({conversationId:n})}),this.Context.fillMode!=="batch"&&(this.Context=wM.createContext())})()},onBeforeMessageSend:n=>{var i,l;const a=Array.from(((i=this.Context)==null?void 0:i.fieldMap.values())||[]);return this.Context.fillMode==="batch"&&this.sdkInst.isChatVisible()&&this.sdkInst.eventBus.emit("form-filling-batch-fill-begin",{}),{...n,options:{body:{stage:"fill",formStructure:a,mode:(l=this.Context)==null?void 0:l.fillMode}}}}})}}const wM={EVENTS:Co,Plugin:xM,createContext:()=>({fieldMap:new Map,valueMap:new Map,subFieldsNameMap:new Map,conversationId:"",fillMode:"AI"})},_4="ReportQueryPlugin",Wie=[{icon:C.jsx(GE,{}),title:"库存统计看板",description:"聚焦资金占用率与周转天数,高亮异常库存TOP3,辅助供应链决策。"},{icon:C.jsx(YE,{}),title:"仓库经营看板",description:"聚焦单仓ROI与履约及时率,联动库存健康度与物流成本占比,辅助资源配置决策。"},{icon:C.jsx(JE,{}),title:"销售订单看板",description:"聚焦订单履约及时率与客单价分层,联动销售目标完成进度,辅助策略调整。"}],qie=()=>{const{messages:e,sendMessage:t}=hN({transport:new N9({api:"http://localhost:3001/web/api/report/query/suggest"})}),n=eu(_4);return console.log(e),O.useEffect(()=>{var a;t({text:""},{body:{forms:(a=n==null?void 0:n.appInfo)!=null&&a.formMap?Array.from(n.appInfo.formMap.values()):void 0}})},[n]),C.jsxs(C.Fragment,{children:["👋 你好,你想创建什么报表呢,不知道的话,可以试试下面的建议~",C.jsx(gm,{items:Wie,onSelect:a=>{},iconColor:"#4ACC8C"})]})},Gie=({style:e,onClick:t})=>C.jsx(C4,{style:e,onClick:()=>{t==null||t()},icon:C.jsx(F9,{}),children:"使用AI创建报表"}),Yie=({variant:e="default"})=>{const t=e==="default"?20:24;return C.jsx(qh,{name:"AI问数",icon:C.jsx(Rq,{size:t}),variant:e})},F7=({label:e,children:t,className:n})=>C.jsxs("div",{className:We("flex gap-2 items-start w-full",n),children:[C.jsx("div",{className:"w-[100px] shrink-0 text-[#666] text-sm leading-normal truncate",children:e}),C.jsx("div",{className:"flex-1 min-w-0 text-sm leading-normal whitespace-pre-wrap break-words",children:t!=null?t:C.jsx("span",{className:"text-[#666]",children:"无"})})]}),Jie=({children:e})=>C.jsx("div",{className:"flex flex-col gap-[10px] w-full",children:e}),Xie={sum:"#3767F1",max:"#F06648",min:"#4ACC8C",average:"#4AC0EC",count:"#9362CE",countDistinct:"#F168B6"},Kie=({type:e,className:t})=>C.jsx("span",{className:We("inline-flex items-center justify-center rounded-[100px] px-[6px] text-[14px] leading-[20px] text-white",t),style:{backgroundColor:Xie[e]},children:roe[e]}),Qie=({name:e,children:t})=>C.jsx(F7,{label:"数据源",children:C.jsxs("div",{className:"flex gap-[6px] items-center",children:[C.jsx(Aq,{}),e||t||"N/A"]})}),z7=({children:e,isCol:t})=>C.jsx(F7,{label:`维度(${t?"列":"行"})`,children:e}),ese=({children:e})=>C.jsx(F7,{label:"筛选条件",children:e}),tse=({metric:e,className:t})=>C.jsxs("div",{className:We("flex items-center justify-between",t),children:[C.jsxs("div",{className:"flex min-w-0 items-center gap-[6px]",children:[C.jsx("span",{className:"shrink-0 text-[#6f829e]",children:C.jsx(_7,{type:e.type})}),C.jsx("span",{className:"truncate text-sm leading-normal text-[#030303]",children:e.title})]}),e.op&&C.jsx(Kie,{type:e.op})]}),nse={eq:"等于",ne:"不等于",in:"等于任意一个",nin:"不等于任意一个",like:"包含",unlike:"不包含",empty:"为空",not_empty:"不为空",gt:"大于",lt:"小于",gte:"大于等于",lte:"小于等于",range:"范围",formula:"动态",all:"同时包含"},rse={user:{in:"等于任意一个",ne:"不等于",eq:"等于",nin:"不等于任意一个",empty:"为空",not_empty:"不为空"},flowstate:{ne:"不等于",eq:"等于",empty:"为空"},_id:{eq:"等于",ne:"不等于",in:"等于任意一个",nin:"不等于任意一个",like:"包含",unlike:"不包含",empty:"为空",not_empty:"不为空"},updateTime:{eq:"等于",ne:"不等于",gte:"大于等于",lte:"小于等于",formula:"动态",range:"范围",empty:"为空",not_empty:"不为空"},createTime:{eq:"等于",ne:"不等于",gte:"大于等于",lte:"小于等于",formula:"动态",range:"范围",empty:"为空",not_empty:"不为空"},creator:{in:"等于任意一个",ne:"不等于",eq:"等于",nin:"不等于任意一个",empty:"为空",not_empty:"不为空"},assist_outtime:{gt:"大于",lt:"小于",range:"范围",empty:"为空",not_empty:"不为空"},assist_protime:{gt:"大于",lt:"小于",range:"范围",empty:"为空",not_empty:"不为空"},assist_prostatus:{ne:"不等于",eq:"等于",empty:"为空"},assist_flowid:{like:"包含"},flow_chargers:{in:"等于任意一个",ne:"不等于",eq:"等于",nin:"不等于任意一个",empty:"为空",not_empty:"不为空"},flowdecision:{in:"等于任意一个"},deptgroup:{in:"包含任意一个",all:"同时包含",eq:"等于",empty:"为空",not_empty:"不为空"},usergroup:{in:"包含任意一个",all:"同时包含",eq:"等于",empty:"为空",not_empty:"不为空"},dept:{in:"等于任意一个",ne:"不等于",eq:"等于",nin:"不等于任意一个",empty:"为空",not_empty:"不为空"},text:{eq:"等于",ne:"不等于",in:"等于任意一个",nin:"不等于任意一个",like:"包含",unlike:"不包含",empty:"为空",not_empty:"不为空"},signature:{empty:"为空",not_empty:"不为空"},upload:{empty:"为空",not_empty:"不为空"},image:{empty:"为空",not_empty:"不为空"},location:{nin:"不包含",all:"包含",empty:"为空",not_empty:"不为空"},radiogroup:{eq:"等于",ne:"不等于",in:"等于任意一个",nin:"不等于任意一个",empty:"为空",not_empty:"不为空"},checkboxgroup:{in:"包含任意一个",all:"同时包含",eq:"等于",empty:"为空",not_empty:"不为空"},number:{eq:"等于",ne:"不等于",gt:"大于",lt:"小于",gte:"大于等于",lte:"小于等于",range:"范围",empty:"为空",not_empty:"不为空"},datetime:{eq:"等于",ne:"不等于",gte:"大于等于",lte:"小于等于",formula:"动态",range:"范围",empty:"为空",not_empty:"不为空"},date:{eq:"等于",ne:"不等于",gte:"大于等于",lte:"小于等于",formula:"动态",range:"范围",empty:"为空",not_empty:"不为空"},select:{eq:"等于",ne:"不等于",in:"等于任意一个",nin:"不等于任意一个",empty:"为空",not_empty:"不为空"}},ase=(e,t)=>{const n=rse[t];return n&&n[e]?n[e]:nse[e]||e},ose=(e,t)=>t==="empty"||t==="not_empty"||!e||e.length===0?"":t==="range"&&e.length===2?`${e[0]} 至 ${e[1]}`:e.length>1?`[${e.map(n=>String(n)).join(", ")}]`:String(e[0]),bM=e=>{if(e.endsWith("一个")){const t=e.slice(0,-1),n=e.slice(-1);return C.jsxs(C.Fragment,{children:[C.jsx("span",{className:"text-[#666]",children:t}),C.jsx("span",{className:"text-[#999]",children:n})]})}return C.jsx("span",{className:"text-[#666]",children:e})},ise=e=>{switch(e){case"range":return{prefix:"在",suffix:"之间"};case"gt":case"gte":case"lt":case"lte":return{prefix:"",suffix:""};case"like":case"unlike":return{prefix:"",suffix:""};case"in":case"nin":return{prefix:"",suffix:""};case"all":return{prefix:"",suffix:""};case"empty":case"not_empty":return{prefix:"",suffix:""};default:return{prefix:"",suffix:""}}},sse=e=>{const{title:t,method:n,value:a,type:i}=e,l=ase(n,i),u=ose(a,n),{prefix:f,suffix:h}=ise(n);return n==="empty"||n==="not_empty"?C.jsxs("span",{className:"leading-[normal]",children:[C.jsx("span",{className:"text-[#030303]",children:t}),C.jsx("span",{className:"text-[#4d609f]",children:" "}),bM(l)]}):C.jsxs("span",{className:"leading-[normal]",children:[C.jsx("span",{className:"text-[#030303]",children:t}),C.jsx("span",{className:"text-[#4d609f]",children:" "}),f&&C.jsx("span",{className:"text-[#666]",children:f}),bM(l),C.jsx("span",{className:"text-[#4d609f]",children:" "}),C.jsx("span",{className:"text-[#0265ff]",children:u}),h&&C.jsxs("span",{className:"text-[#666]",children:[" ",h]})]})},lse=({conds:e,rel:t})=>{if(!e||e.length===0)return null;const n=t==="or"?"或":"且";return C.jsx("span",{className:"font-['Alibaba_PuHuiTi_2.0:55_Regular',sans-serif] text-[14px] text-[#030303] whitespace-pre-wrap",children:e.map((a,i)=>C.jsxs("span",{className:"leading-[normal]",children:[sse(a),i<e.length-1&&C.jsxs("span",{className:"text-[#999]",children:[" ",n," "]})]},`${a.name}-${i}`))})},use=({className:e})=>C.jsx("div",{className:We("h-[1px] w-full bg-[#E0E0E0]",e)}),cse=({type:e,className:t,style:n})=>{const a=Pae[e]||"&#xe894;";return C.jsx(x0,{code:a,className:t,style:n})},dse=e=>{var u,f,h,g,x,y,k,b,_;const t=eu(_4),n=O.useCallback(R=>{var L,P;const M=(P=(L=t==null?void 0:t.appInfo)==null?void 0:L.formMap)==null?void 0:P.get(R);return(M==null?void 0:M.name)||""},[t]),a=((u=e.formIds)==null?void 0:u[0])||"",i=a?n(a):"",l=e.metrics&&e.metrics.length>0;return C.jsx(hm,{title:(e==null?void 0:e.title)||"",icon:C.jsx(cse,{type:e.type}),defaultOpen:!0,children:C.jsxs(Jie,{children:[i&&C.jsx(Qie,{children:i}),(f=e.fields)!=null&&f.length?C.jsx(z7,{children:(h=e.fields)==null?void 0:h.map(R=>R.title).join("、")}):null,(g=e.xFields)!=null&&g.length?C.jsx(z7,{isCol:!0,children:(x=e.xFields)==null?void 0:x.map(R=>R.title).join("、")}):null,(y=e.yFields)!=null&&y.length?C.jsx(z7,{children:e.yFields.map(R=>R.title).join("、")}):null,(b=(k=e.filter)==null?void 0:k.conds)!=null&&b.length?C.jsx(ese,{children:C.jsx(lse,{...e.filter})}):null,l?C.jsx(use,{}):null,l?(_=e.metrics)==null?void 0:_.map(R=>C.jsx(tse,{metric:R},R.id)):null]})})},fse=({children:e})=>C.jsx("div",{className:"text-[#4D609F]",children:e}),pse=({part:e,...t})=>{var i;const n=e,a=eu(_4);if(!a)return null;if(XW(e)){const l=KW(e);return l?l.isAggregate?C.jsxs(Td,{headless:!0,className:"w-full",children:[C.jsx(fse,{children:"已为你创建聚合表"}),C.jsx(hm,{icon:C.jsx("span",{className:"text-[#0265ff]",children:C.jsx(Oq,{})}),title:l.title,disableExpand:!0})]}):(console.log("set query result in context",l),a.queryResult=l,a.queryResult.appID=((i=a.appInfo)==null?void 0:i.appId)||"",C.jsx(dse,{...l||{}})):null}return n.text!==void 0&&n.text.trim()!==""?C.jsx(r4,{part:n,...t,collapsibleTitle:"报表设计"}):null},hse=new Set(["textarea","subform","checkboxgroup","combocheck","address","user","usergroup","deptgroup","location","linkdata","image","upload","signature","chargers","button","dataload","separator","linkquery"]);function mse(e,t,n){const{chartType:a,limitFields:i,isHidden:l=!1}=n,u=[],f=t(e),h=e.type;return gse(u,a,f,l,i),!l&&i.dashQuota.includes(f)&&u.push("quota"),!l&&i.dashDimensionLAL.includes(f)&&e.name!=="_id"&&u.push("LALDimension"),!l&&i.dashTableField.includes(f)&&u.push("$dimension"),vse(u,a,h,i),a==="gantt"?yse(h,u):u}function gse(e,t,n,a,i){t==="newMap"?!a&&i.dashTableField.includes(n)&&e.push("dimension"):i.dashDimension.includes(n)&&e.push("dimension")}function vse(e,t,n,a){(t==="newMap"?a.dashFilters:a.dashFilter).includes(n)&&e.push("filter")}function yse(e,t){const n=[...t];return n.push("ganttshowfield"),e==="number"?n.push("n-dimension"):e==="datetime"&&n.push("t-dimension"),hse.has(e)?n.filter(a=>a!=="dimension"&&a!=="$dimension"):n}const CM=(e,t)=>{var n;return mse({type:t.type,name:t.name},a=>a.type,{chartType:e,limitFields:(n=window.FX)==null?void 0:n.LimitFields,isHidden:!1}).join(",")},T4=e=>({text:"icon-widget-text",textarea:"icon-widget-textarea",number:"icon-widget-number",datetime:"icon-widget-datetime",date:"icon-widget-date",time:"icon-widget-time",radiogroup:"icon-widget-radiogroup",checkboxgroup:"icon-widget-checkboxgroup",user:"icon-widget-user",usergroup:"icon-widget-usergroup",dept:"icon-widget-dept",deptgroup:"icon-widget-deptgroup",upload:"icon-widget-upload",image:"icon-widget-image",location:"icon-widget-location",select:"icon-widget-select",combo:"icon-widget-combo",signature:"icon-widget-signature"})[e]||"icon-widget-text";function xse(e,t){switch(e){case"datetime":return"year_month";case"address":case"location":return t==="map_chart"?void 0:"province_city";default:return}}const SM=(e,t,n)=>({...e,id:n,icon:T4(e.type),group:CM(t,e),groupRule:xse(e.type,t),text:e.title}),wse=(e,t,n)=>({...e,id:n,text:e.title,icon:T4(e.type),group:CM(t,{type:e.type,name:e.name||e.title})}),kM=(e,t,n)=>{var a,i;return{id:(a=e.id)!=null?a:n,name:e.name,text:e.title,type:e.type,title:e.title,form:t,isEditable:(i=e.isEditable)!=null?i:!1,icon:T4(e.type),group:e.group||"dimension",formula:"",tag:`f_${Date.now()+n}`}},bse=e=>({name:"label",text:"标题",type:"textarea",title:"标题",form:e,isEditable:!0,icon:T4("textarea"),group:"dimension",formula:"",tag:`f_${Date.now()}`}),Cse=(e,t)=>{var n;return{title:e.title,name:e.name,type:e.type,entryId:t,form:t,field:e.name,method:e.method,value:(n=e.value)!=null?n:[],hasEmpty:e.method!=="not_empty",fieldvalueMode:"widget",fieldvalueName:""}},Sse=()=>({theme:{name:"preset_style_light_1",highLightColor:"#0265FF",palette:"preset_1",gradation:"preset_map_1"},background:{type:"color",color:"#F4F6F9"},widget:{theme:{color:"#E9E9E9",icon:1,cardName:"preset_metric_1"},background:{type:"color",color:"#FFFFFF"},fontSetting:{titleColor:"#1F2D3D",headColor:"#5E6D82",textColor:"#1F2D3D",textAlign:"default"}}}),kse=()=>({title:{show:!1,text:"标题内容",textStyle:{color:"#333333",fontStyle:"normal",fontSize:16,fontWeight:"normal"},left:"left",borderColor:"transparent",borderWidth:2,padding:5,onBorderColor:!1,borderRadius:0,backgroundColor:"transparent"},orient:"vertical",legend:{textStyle:{fontStyle:"normal",fontSize:10,fontWeight:"normal"},itemWidth:12,itemHeight:12,position:"bottom",type:"plain",padding:10},itemStyle:{opacity:.7,borderWidth:2},tooltip:{show:!0,triggerOn:"mousemove",position:"0",seriesName:"",formatter:"1",opacity:1,textStyle:{color:"#FFFFFF",fontStyle:"normal",fontSize:14,fontWeight:"normal"}},label:{fontStyle:"normal",fontWeight:"normal",fontSize:10,position:"top",formatter:"1"}}),EM=()=>`_widget_${Date.now()}`,_M=({result:e,formId:t,widgetId:n,fields:a,overrides:i})=>{var g,x,y;const l=e.title||"未命名数据表",u=((x=(g=e.filter)==null?void 0:g.conds)==null?void 0:x.map(k=>Cse(k,t)))||[],f=((y=e.filter)==null?void 0:y.rel)||"and";return{title:l,hasExport:!1,widgetId:n,palette:"default",chart_label:{enable:!0},width:30,height:20,posX:0,posY:0,formulas:e.formulas||[],widgetNameAlias:n,permission:"all",triggers:[],defaultSort:[],reportAuth:[],enableRowEdit:!1,attrList:kse(),batchmenu:{enable:!0,set:[]},itemSeleable:!0,itemMarekerable:!0,mapScale:14,itemDataable:!0,scopefields:[],menu:{enable:!0,set:[]},onSwitchButton:!1,BtnName:"点击操作",FunctionBtn:"itemManualData",DataMode:!1,mapfields:[],tFields:[],bgColorFilter:[],cardConfigFields:[],selectFields:[],mapFields:[],selectArg:{},thresholds:[],guideline:[],treeFields:{},...e,forms:e.formIds||[],type:e.type||"data_table",yAxes:[{chart_type:"column_chart"},{chart_type:"line_chart"}],rowOrder:{},top:{},xFields:(e.xFields||[]).map((k,b)=>SM(k,e.type,b)),yFields:(e.yFields||[]).map((k,b)=>SM(k,e.type,b)),metrics:(e.metrics||[]).map((k,b)=>wse(k,e.type,b)),fields:a,filter:{cond:u,rel:f},...i}},Ese=(e,t)=>{var y,k,b;const n=e.appID||"",a=EM(),i=((y=e.formIds)==null?void 0:y[0])||"",l=((k=e.filter)==null?void 0:k.rel)||"and",u=((b=e.fields)==null?void 0:b.map((_,R)=>kM(_,i,R)))||[],f=_M({result:e,formId:i,widgetId:a,fields:u,overrides:{dryRun:!0,cardConfig:{widget_id:"{}"},batchmenuAuth:{}}}),h={[a]:f},g=Sse(),x={appId:n,entryId:t,hasLazyLoad:!0,styles:g,autoLoad:!0,rel:l,cacheFilter:0,isMobileFilteringButton:0,showFilter:0,components:h,mode:"preview",dryRun:!0,name:e.title||"未命名分析报表"};return{appId:n,entryId:t,hasLazyLoad:!0,styles:g,autoLoad:!0,rel:"and",cacheFilter:0,isMobileFilteringButton:1,showFilter:0,components:h,mode:"preview",showType:"popup",name:e.title||"未命名分析报表",allComponentDash:{entry:x}}},_se=(e,t)=>{var h,g;const n=e.appID||"",a=EM(),i=((h=e.formIds)==null?void 0:h[0])||"",u=[bse(i)].concat(((g=e.fields)==null?void 0:g.map((x,y)=>kM(x,i,y)))||[]),f=_M({result:e,formId:i,widgetId:a,fields:u,overrides:{type:e.type||"data_table",cardConfig:{widget_id:{}}}});return{appId:n,entryId:t,widget:f,datahelpers_remove:[],datahelpers:{}}};class TM extends M7{constructor(n){super(n);Ge(this,"pluginName",_4);Ge(this,"customComponents",{OpeningLines:qie,EntryButton:Gie,AvatarAndName:Yie,MessagePart:pse});Ge(this,"lifecycleHooks",{onAfterChatAreaHide:({clearMsgs:n})=>{},onBeforeChatRender:()=>({appendLoadingIndicator:!0}),onBeforeMessageSend:n=>{var a;return{...n,options:{body:{appId:(a=this.Context.appInfo)==null?void 0:a.appId}}}}});Ge(this,"getPreviewerProps",n=>this.Context.queryResult?Ese(this.Context.queryResult,n):(console.log("No query result in context"),null));Ge(this,"getCreateParams",n=>this.Context.queryResult?_se(this.Context.queryResult,n):(console.log("No query result in context"),null));Ge(this,"setAppId",n=>{this.Context.appInfo?this.Context.appInfo.appId=n:this.Context.appInfo={appId:n}});Ge(this,"setForms",n=>{if(!n||n.length===0)return;const a=new Map;n.forEach(i=>{a.set(i.entryId,i)}),this.Context.appInfo||(this.Context.appInfo={appId:""}),this.Context.appInfo.formMap=a,console.log("forms received in plugin:",a)});Ge(this,"clearCtx",()=>{});this.Context=n}}const Tse={Plugin:TM,createContext:()=>({})},RM=O.forwardRef(({children:e,zIndex:t,padding:n,disableGradient:a,bgColor:i="#fff"},l)=>C.jsx("div",{ref:l,style:{position:"absolute",top:0,left:0,width:"100%",height:"100%",background:a?i:"linear-gradient(180deg, #DBE9FF 0%, #E9FFFD 100%)",padding:n||0,zIndex:t},children:e}));RM.displayName="AbsFullscreenGradientBg";const Rse=()=>C.jsxs(C.Fragment,{children:[C.jsxs("div",{className:"flex gap-[2px] flex-shrink-0 relative -left-[4px] top-[3px]",children:[C.jsx("div",{className:"w-[2px] h-[2px] rounded-full bg-[#0265FF] flex-shrink-0",style:{animation:"pulse 1.4s ease-in-out infinite",animationDelay:"0s",marginRight:"2px"}}),C.jsx("div",{className:"w-[2px] h-[2px] rounded-full bg-[#0265FF] flex-shrink-0",style:{animation:"pulse 1.4s ease-in-out infinite",animationDelay:"0.2s",marginRight:"2px"}}),C.jsx("div",{className:"w-[2px] h-[2px] rounded-full bg-[#0265FF] flex-shrink-0",style:{animation:"pulse 1.4s ease-in-out infinite",animationDelay:"0.4s"}})]}),C.jsx("style",{children:`
610
+ @keyframes pulse {
611
+ 0%, 60%, 100% {
612
+ opacity: 0.3;
613
+ transform: scale(1);
614
+ }
615
+ 30% {
616
+ opacity: 1;
617
+ transform: scale(1.2);
618
+ }
619
+ }
620
+ `})]}),Ase=({children:e,loading:t=!0})=>{const a=t?14:0,i=16,l=O.useRef(null),[u,f]=O.useState(0),h=u+38+a+i;return O.useLayoutEffect(()=>{if(l.current){const g=l.current.getBoundingClientRect();f(g.width)}},[e]),O.useEffect(()=>{if(l.current){const g=l.current.getBoundingClientRect();console.log("rect.width",g.width),f(g.width)}},[]),C.jsx(L7,{borderRadius:100,width:h,height:34,borderWidth:1,children:C.jsxs("div",{className:"flex items-center gap-[6px] h-[31px] ml-[16px]",children:[C.jsx("div",{className:"shrink-0",children:C.jsx(F9,{})}),C.jsx("span",{className:"text-[14px] text-[#0265FF] shrink-0",ref:l,children:e||"字段生成中"}),t&&C.jsx(Rse,{})]})})},Nse=({children:e,width:t,height:n,style:a,childrenContainerStyle:i})=>C.jsxs("div",{style:{position:"relative",width:t!=null?t:"100%",height:n!=null?n:"100%",overflow:"hidden",borderRadius:"10px 10px 0 0",...a},children:[C.jsx("div",{style:{position:"absolute",width:"100%",height:"100%",top:0,left:0,background:"#F4FFFC"}}),C.jsx("div",{style:{position:"absolute",width:"100%",height:"100%",top:0,left:0,background:"radial-gradient(circle at 25% -15%, #EEFFCE 0%, transparent 55%)",filter:"blur(70px)",animation:"floatCircle1 4s ease-in-out infinite"}}),C.jsx("div",{style:{position:"absolute",width:"100%",height:"100%",top:0,left:0,background:"radial-gradient(circle at 80% 200%, #CEFFFB 0%, transparent 45%)",filter:"blur(70px)",animation:"floatCircle2 5s ease-in-out infinite 0.5s"}}),C.jsx("div",{style:{position:"relative",zIndex:1,width:"100%",height:"100%",...i},children:e}),C.jsx("style",{children:`
621
+ @keyframes floatCircle1 {
622
+ 0%, 100% {
623
+ transform: translate(0%, 0%) scale(1.2);
624
+ opacity: 1;
625
+ }
626
+ 25% {
627
+ transform: translate(-15%, 20%) scale(1.6);
628
+ opacity: 0.95;
629
+ }
630
+ 50% {
631
+ transform: translate(12%, -15%) scale(0.9);
632
+ opacity: 1;
633
+ }
634
+ 75% {
635
+ transform: translate(-10%, 10%) scale(1.4);
636
+ opacity: 0.9;
637
+ }
638
+ }
639
+
640
+ @keyframes floatCircle2 {
641
+ 0%, 100% {
642
+ transform: translate(0%, 0%) scale(1.1);
643
+ opacity: 1;
644
+ }
645
+ 30% {
646
+ transform: translate(18%, -12%) scale(1.5);
647
+ opacity: 1;
648
+ }
649
+ 60% {
650
+ transform: translate(-12%, 15%) scale(0.85);
651
+ opacity: 0.95;
652
+ }
653
+ 85% {
654
+ transform: translate(14%, -8%) scale(1.3);
655
+ opacity: 0.9;
656
+ }
657
+ }
658
+ `})]});var R4="Dialog",[AM]=Xs(R4),[Mse,bs]=AM(R4),NM=e=>{const{__scopeDialog:t,children:n,open:a,defaultOpen:i,onOpenChange:l,modal:u=!0}=e,f=O.useRef(null),h=O.useRef(null),[g,x]=wp({prop:a,defaultProp:i!=null?i:!1,onChange:l,caller:R4});return C.jsx(Mse,{scope:t,triggerRef:f,contentRef:h,contentId:tc(),titleId:tc(),descriptionId:tc(),open:g,onOpenChange:x,onOpenToggle:O.useCallback(()=>x(y=>!y),[x]),modal:u,children:n})};NM.displayName=R4;var MM="DialogTrigger",Ose=O.forwardRef((e,t)=>{const{__scopeDialog:n,...a}=e,i=bs(MM,n),l=Vn(t,i.triggerRef);return C.jsx(hn.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":H7(i.open),...a,ref:l,onClick:nn(e.onClick,i.onOpenToggle)})});Ose.displayName=MM;var U7="DialogPortal",[Lse,OM]=AM(U7,{forceMount:void 0}),LM=e=>{const{__scopeDialog:t,forceMount:n,children:a,container:i}=e,l=bs(U7,t);return C.jsx(Lse,{scope:t,forceMount:n,children:O.Children.map(a,u=>C.jsx(Kl,{present:n||l.open,children:C.jsx(D0,{asChild:!0,container:i,children:u})}))})};LM.displayName=U7;var A4="DialogOverlay",IM=O.forwardRef((e,t)=>{const n=OM(A4,e.__scopeDialog),{forceMount:a=n.forceMount,...i}=e,l=bs(A4,e.__scopeDialog);return l.modal?C.jsx(Kl,{present:a||l.open,children:C.jsx(Dse,{...i,ref:t})}):null});IM.displayName=A4;var Ise=Gh("DialogOverlay.RemoveScroll"),Dse=O.forwardRef((e,t)=>{const{__scopeDialog:n,...a}=e,i=bs(A4,n);return C.jsx(d7,{as:Ise,allowPinchZoom:!0,shards:[i.contentRef],children:C.jsx(hn.div,{"data-state":H7(i.open),...a,ref:t,style:{pointerEvents:"auto",...a.style}})})}),Ld="DialogContent",DM=O.forwardRef((e,t)=>{const n=OM(Ld,e.__scopeDialog),{forceMount:a=n.forceMount,...i}=e,l=bs(Ld,e.__scopeDialog);return C.jsx(Kl,{present:a||l.open,children:l.modal?C.jsx(jse,{...i,ref:t}):C.jsx(Pse,{...i,ref:t})})});DM.displayName=Ld;var jse=O.forwardRef((e,t)=>{const n=bs(Ld,e.__scopeDialog),a=O.useRef(null),i=Vn(t,n.contentRef,a);return O.useEffect(()=>{const l=a.current;if(l)return gA(l)},[]),C.jsx(jM,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:nn(e.onCloseAutoFocus,l=>{var u;l.preventDefault(),(u=n.triggerRef.current)==null||u.focus()}),onPointerDownOutside:nn(e.onPointerDownOutside,l=>{const u=l.detail.originalEvent,f=u.button===0&&u.ctrlKey===!0;(u.button===2||f)&&l.preventDefault()}),onFocusOutside:nn(e.onFocusOutside,l=>l.preventDefault())})}),Pse=O.forwardRef((e,t)=>{const n=bs(Ld,e.__scopeDialog),a=O.useRef(!1),i=O.useRef(!1);return C.jsx(jM,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:l=>{var u,f;(u=e.onCloseAutoFocus)==null||u.call(e,l),l.defaultPrevented||(a.current||(f=n.triggerRef.current)==null||f.focus(),l.preventDefault()),a.current=!1,i.current=!1},onInteractOutside:l=>{var h,g;(h=e.onInteractOutside)==null||h.call(e,l),l.defaultPrevented||(a.current=!0,l.detail.originalEvent.type==="pointerdown"&&(i.current=!0));const u=l.target;((g=n.triggerRef.current)==null?void 0:g.contains(u))&&l.preventDefault(),l.detail.originalEvent.type==="focusin"&&i.current&&l.preventDefault()}})}),jM=O.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:a,onOpenAutoFocus:i,onCloseAutoFocus:l,...u}=e,f=bs(Ld,n),h=O.useRef(null),g=Vn(t,h);return lA(),C.jsxs(C.Fragment,{children:[C.jsx(a7,{asChild:!0,loop:!0,trapped:a,onMountAutoFocus:i,onUnmountAutoFocus:l,children:C.jsx(S0,{role:"dialog",id:f.contentId,"aria-describedby":f.descriptionId,"aria-labelledby":f.titleId,"data-state":H7(f.open),...u,ref:g,onDismiss:()=>f.onOpenChange(!1)})}),C.jsxs(C.Fragment,{children:[C.jsx(zse,{titleId:f.titleId}),C.jsx(Bse,{contentRef:h,descriptionId:f.descriptionId})]})]})}),B7="DialogTitle",PM=O.forwardRef((e,t)=>{const{__scopeDialog:n,...a}=e,i=bs(B7,n);return C.jsx(hn.h2,{id:i.titleId,...a,ref:t})});PM.displayName=B7;var FM="DialogDescription",zM=O.forwardRef((e,t)=>{const{__scopeDialog:n,...a}=e,i=bs(FM,n);return C.jsx(hn.p,{id:i.descriptionId,...a,ref:t})});zM.displayName=FM;var UM="DialogClose",Fse=O.forwardRef((e,t)=>{const{__scopeDialog:n,...a}=e,i=bs(UM,n);return C.jsx(hn.button,{type:"button",...a,ref:t,onClick:nn(e.onClick,()=>i.onOpenChange(!1))})});Fse.displayName=UM;function H7(e){return e?"open":"closed"}var BM="DialogTitleWarning",[p1e,HM]=qq(BM,{contentName:Ld,titleName:B7,docsSlug:"dialog"}),zse=({titleId:e})=>{const t=HM(BM),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
659
+
660
+ If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
661
+
662
+ For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return O.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},Use="DialogDescriptionWarning",Bse=({contentRef:e,descriptionId:t})=>{const a=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${HM(Use).contentName}}.`;return O.useEffect(()=>{var l;const i=(l=e.current)==null?void 0:l.getAttribute("aria-describedby");t&&i&&(document.getElementById(t)||console.warn(a))},[a,e,t]),null},Hse=NM,Vse=LM,VM=IM,$M=DM,ZM=PM,WM=zM;const $se=Hse,Zse=Vse,qM=O.forwardRef(({className:e,position:t="fixed",...n},a)=>C.jsx(VM,{ref:a,className:We("inset-0 z-50 bg-black/30 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",t==="absolute"?"absolute":"fixed",e),...n}));qM.displayName=VM.displayName;const GM=O.forwardRef(({className:e,children:t,container:n,...a},i)=>C.jsxs(Zse,{container:n,children:[C.jsx(qM,{position:n?"absolute":"fixed"}),C.jsx($M,{style:{padding:0},ref:i,className:We("left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",n?"absolute":"fixed",e),...a,children:t})]}));GM.displayName=$M.displayName;const YM=({className:e,...t})=>C.jsx("div",{className:We("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});YM.displayName="DialogHeader";const JM=({className:e,...t})=>C.jsx("div",{className:We("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});JM.displayName="DialogFooter";const XM=O.forwardRef(({className:e,...t},n)=>C.jsx(ZM,{ref:n,className:We("text-lg font-semibold leading-none tracking-tight",e),...t}));XM.displayName=ZM.displayName;const KM=O.forwardRef(({className:e,...t},n)=>C.jsx(WM,{ref:n,className:We("text-sm text-muted-foreground",e),...t}));KM.displayName=WM.displayName;function Wse({open:e,onOpenChange:t,title:n,description:a,linkText:i="留在此页",onLinkClick:l,cancelText:u="不保存",onCancel:f,confirmText:h="保存并继续",onConfirm:g,container:x,showLink:y=!0,showCancel:k=!0}){const b={borderRadius:4,padding:"6px 20px"};return C.jsx($se,{open:e,onOpenChange:t,children:C.jsxs(GM,{container:x,className:We("w-[480px] max-w-[480px] p-0 gap-0 rounded-[10px] border-none","shadow-[0px_0px_10px_0px_rgba(0,0,0,0.04)]","[&>button]:hidden"),children:[C.jsxs(YM,{className:"flex flex-row items-start gap-[10px] p-9 pb-0",children:[C.jsx("div",{className:"size-[30px] shrink-0 text-[#0265FF]",children:C.jsx(Cq,{})}),C.jsxs("div",{className:"flex flex-col gap-2",children:[C.jsx(XM,{className:"text-[16px] font-[700] text-[#030303] leading-normal",children:n}),a&&C.jsx(KM,{className:"text-[14px] text-[#666] leading-normal",children:a})]})]}),C.jsxs(JM,{className:"flex flex-row items-center !justify-between p-9 pt-6",children:[y?C.jsx("button",{type:"button",onClick:l,className:"text-[14px] text-[#0265ff] hover:text-[#0265ff]/80 bg-transparent border-none cursor-pointer",children:i}):C.jsx("div",{}),C.jsxs("div",{className:"flex items-center gap-3",children:[k&&C.jsx("button",{type:"button",onClick:f,style:b,className:We("h-8 px-5 py-1.5 rounded border border-[#e0e0e0]","text-[14px] text-[#030303] bg-white","hover:bg-gray-50 cursor-pointer"),children:u}),C.jsx("button",{type:"button",onClick:g,style:b,className:We("h-8 px-5 py-1.5 rounded","text-[14px] text-white bg-[#0265ff]","hover:bg-[#0265ff]/80 cursor-pointer border-none"),children:h})]})]})]})})}const qse=({title:e,tips:t,style:n,confirmContent:a,confirmTitle:i,className:l,active:u,onBackClick:f,onSave:h,closeBtnLabel:g,onCancel:x,variant:y="fields-previewer",dialogContainer:k,disableOperation:b})=>{const[_,R]=O.useState(!1),[M,L]=O.useState(!1),P=Ta("w-[94px] h-[34px] flex items-center justify-center rounded-[4px]"),F=y==="data-previewer",D=y==="fields-previewer",V=Ta("font-[700]",{"text-[16px]":D,"text-[18px]":F}),H=C.jsxs(C.Fragment,{children:[C.jsxs("div",{className:"flex items-center gap-3",children:[F?null:C.jsx(Cd,{icon:C.jsx(Eq,{}),onClick:()=>R(!0),className:"text-[#0265FF] hover:text-[#0265FF]"}),C.jsx("span",{className:V,children:e}),t&&u&&C.jsxs("div",{className:"flex items-center gap-[6px] text-[#999999] text-[12px]",children:[C.jsx(Sq,{}),t]})]}),C.jsxs("div",{className:"flex items-center gap-[10px]",children:[h&&C.jsx("button",{onClick:async()=>{L(!0);try{await h()}catch(ae){console.error("Save failed:",ae)}finally{L(!1)}},className:Ta(P,"bg-[#0265FF] hover:opacity-90 text-white text-[14px]",{"w-[115px]":F,"pointer-events-none opacity-50":b||M}),children:D?"保存":"添加到表单"}),x&&C.jsx("button",{onClick:()=>{R(!0)},className:Ta(P,"text-[#121111] text-[14px] bg-[#fff] border border-solid border-[#e0e0e0] hover:bg-[#f0f0f0]",{"pointer-events-none opacity-50":b||M}),children:g||"取消"})]}),C.jsx(Wse,{container:k,open:_,onOpenChange:R,title:i||"AI表单搭建有修改,是否保存?",description:a||"您修改了AI表单搭建但没有保存,是否需要保存并继续?",onLinkClick:()=>R(!1),onCancel:()=>{R(!1),x==null||x(),f==null||f()},onConfirm:async()=>{R(!1),L(!0);try{await(h==null?void 0:h())}catch(ae){console.error("Save failed:",ae)}finally{L(!1)}}})]}),Z=Ta({"border-b border-solid border-[#e0e0e0]":!u&&D,"border-none":F});if(u)return C.jsx(Nse,{height:52,style:n,childrenContainerStyle:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"0 20px"},children:H});const q=Ta({"px-[20px]":D,"px-[10px]":F});return C.jsx("div",{style:n,className:Ta("w-full h-[52px] flex items-center justify-between",q,l,Z),children:H})},Gse=()=>C.jsx("div",{style:{borderRadius:10,width:"100%",height:"100%",border:"1px dashed var(---e0e0e0, #E0E0E0)"}}),Yse=O.forwardRef(({zIndex:e=1,children:t,title:n,tips:a,active:i,fullscreen:l,padding:u=10,className:f,empty:h,rightSpaceWidth:g,rightSpaceRef:x,rightElement:y,streaming:k,streamingText:b,onBackClick:_,dialogContainer:R,variant:M="fields-previewer",onSave:L,onCancel:P,style:F,confirmContent:D,fullContent:V,confirmTitle:H,containerStyle:Z,readonly:q,closeBtnLabel:ae,disableOperation:_e})=>{const ge=l?0:u,he=l?0:g,[we,Ne]=O.useState(null),xe=M==="fields-previewer",Te=M==="data-previewer",ve=Ta({"m-[20px]":xe,"mx-[12px] mb-[10px]":Te,"p-[10px]":xe,"p-0":Te,"opacity-60":k&&xe,"w-[calc(100%-40px)] h-[calc(100%-90px)] relative overflow-x-hidden overflow-y-auto":xe,"w-[calc(100%-24px)] h-[calc(100%-62px)] relative overflow-x-hidden overflow-y-auto":Te,"rounded-[4px] bg-white":Te}),K=V?{width:"100%",height:"100%",padding:0,margin:0}:{},{shadowContainer:ye}=v4({id:"dialog-container",rootEl:R,style:Z,wrapperStyle:{zIndex:Date.now(),position:"absolute",width:"100%",height:"100%",pointerEvents:"none"}}),U=C.jsxs(C.Fragment,{children:[C.jsx(qse,{title:n,tips:a,active:i,variant:M,className:f,onBackClick:_,onSave:k?void 0:L,onCancel:k?void 0:P,style:F,dialogContainer:ye||we,confirmTitle:H,confirmContent:D,closeBtnLabel:ae,disableOperation:_e}),C.jsxs("div",{className:ve,style:K,children:[h&&xe?C.jsx(Gse,{}):t,q&&C.jsx("div",{className:"absolute inset-0 z-50 cursor-not-allowed"})]}),k&&C.jsx("div",{className:"absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2",children:C.jsx(Ase,{children:b})})]}),X=xe?C.jsx(L7,{width:he?`calc(100% - ${he}px)`:"100%",style:{overflow:"hidden"},children:U}):C.jsx("div",{className:"h-full",style:{width:he?`calc(100% - ${he}px)`:"100%"},children:U}),ie=C.jsx("div",{style:{width:l?0:g,position:"absolute",top:0,right:0,pointerEvents:l?"none":"auto"},className:"h-full",ref:$=>{$&&(x==null||x($))},children:y});return C.jsxs(RM,{zIndex:e,padding:xe?ge:0,disableGradient:l||!xe,bgColor:xe?"#fff":"#F5F7FA",ref:Ne,children:[l?U:X,ie]})}),Jse=()=>O.createElement("slot");class QM extends HTMLElement{constructor(){super();Ge(this,"root",null);Ge(this,"shadowContainer",null);Ge(this,"shadowWrapper",null);Ge(this,"_props",{});Ge(this,"_childrenOverride",null);Ge(this,"_externalRootEl",null)}static get observedAttributes(){return["title","tips","fullscreen","streaming","empty","z-index","padding","right-space-width","active","variant","fields-count"]}connectedCallback(){this._externalRootEl||(this.setupShadowDOM(),this.render())}disconnectedCallback(){this.root&&(this.root.unmount(),this.root=null),this.shadowWrapper&&this.shadowWrapper.parentNode&&(this.shadowWrapper.parentNode.removeChild(this.shadowWrapper),this.shadowWrapper=null)}setRootEl(n){this._externalRootEl===n&&!n||(this._externalRootEl=n,this.isConnected&&(this.cleanup(),this.setupShadowDOM(),this.render()))}cleanup(){this.root&&(this.root.unmount(),this.root=null),this.shadowWrapper&&this.shadowWrapper.parentNode&&(this.shadowWrapper.parentNode.removeChild(this.shadowWrapper),this.shadowWrapper=null)}attributeChangedCallback(n,a,i){a!==i&&(this.updatePropsFromAttributes(),this.render())}injectStyles(n){var l;const a=this._externalRootEl?(l=this.shadowWrapper)==null?void 0:l.shadowRoot:this.shadowRoot;if(!a)return;const i=new CSSStyleSheet;i.replaceSync(n),a.adoptedStyleSheets=[...a.adoptedStyleSheets,i],console.log("injected styles into shadow root")}setupShadowDOM(){this._externalRootEl?(this.shadowWrapper=document.createElement("div"),this.shadowWrapper.style.width="100%",this.shadowWrapper.style.height="100%",this._externalRootEl.appendChild(this.shadowWrapper),this.shadowWrapper.attachShadow({mode:"open"})):this.shadowRoot||this.attachShadow({mode:"open"});const n=this._externalRootEl?this.shadowWrapper.shadowRoot:this.shadowRoot;if(!n)return;console.log("found new shadow root:",this._externalRootEl);const a=document.createElement("style");a.textContent=typeof __SDK_STYLES__!="undefined"?__SDK_STYLES__:"",n.appendChild(a),this.shadowContainer=document.createElement("div"),this.shadowContainer.style.width="100%",this.shadowContainer.style.height="100%",n.appendChild(this.shadowContainer),this.root=Ov(this.shadowContainer)}updatePropsFromAttributes(){var i,l,u,f,h,g,x,y,k,b;const n=_=>{const R=this.getAttribute(_);if(R!==null)return R==="true"||R===""},a=_=>{const R=this.getAttribute(_);if(R===null)return;const M=parseFloat(R);return isNaN(M)?void 0:M};this._props={...this._props,title:(i=this.getAttribute("title"))!=null?i:this._props.title,variant:(l=this.getAttribute("variant"))!=null?l:"fields-previewer",tips:(u=this.getAttribute("tips"))!=null?u:this._props.tips,fullscreen:(f=n("fullscreen"))!=null?f:this._props.fullscreen,streaming:(h=n("streaming"))!=null?h:this._props.streaming,empty:(g=n("empty"))!=null?g:this._props.empty,active:(x=n("active"))!=null?x:this._props.active,zIndex:(y=a("z-index"))!=null?y:this._props.zIndex,padding:(k=a("padding"))!=null?k:this._props.padding,rightSpaceWidth:(b=a("right-space-width"))!=null?b:this._props.rightSpaceWidth}}setProps(n){if("children"in n){this._childrenOverride=n.children;const{children:a,...i}=n;this._props={...this._props,...i}}else this._props={...this._props,...n};this.render()}getProps(){return{...this._props}}render(){var i;if(!this.root)return;this.updatePropsFromAttributes();const n=(i=this._childrenOverride)!=null?i:O.createElement(Jse),a=O.createElement(Yse,{...this._props,children:n});this.root.render(a)}}function Xse(e="previewer-container"){customElements.get(e)||customElements.define(e,QM)}typeof window!="undefined"&&Xse(),Gr.ChatSDK=C7,Gr.FieldsPreviewerWebComponent=QM,Gr.FormBuilderPlugin=zN,Gr.FormBuilderPluginRegisterEntry=ooe,Gr.FormFillingPlugin=xM,Gr.FormFillingPluginRegisterEntry=wM,Gr.ModelFormBuilderPlugin=XN,Gr.ModelFormBuilderPluginRegisterEntry=sie,Gr.ReportQueryPlugin=TM,Gr.ReportQueryPluginEntry=Tse,Object.defineProperty(Gr,Symbol.toStringTag,{value:"Module"})});
663
+ //# sourceMappingURL=chat-sdk.umd.cjs.map