@schmitech/chatbot-widget 0.2.0 → 0.2.1

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,187 @@
1
+
2
+ // Add CSS to the document
3
+ (function() {
4
+ const style = document.createElement('style');
5
+ style.textContent = `*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.\!container{width:100%!important}.container{width:100%}@media (min-width: 640px){.\!container{max-width:640px!important}.container{max-width:640px}}@media (min-width: 768px){.\!container{max-width:768px!important}.container{max-width:768px}}@media (min-width: 1024px){.\!container{max-width:1024px!important}.container{max-width:1024px}}@media (min-width: 1280px){.\!container{max-width:1280px!important}.container{max-width:1280px}}@media (min-width: 1536px){.\!container{max-width:1536px!important}.container{max-width:1536px}}.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);font-size:1.25em;line-height:1.6;margin-top:1.2em;margin-bottom:1.2em}.prose :where(a):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-links);text-decoration:underline;font-weight:500}.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] *)){color:inherit}.prose :where(blockquote strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.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] *)){list-style-type:decimal;margin-top:1.25em;margin-bottom:1.25em;padding-inline-start:1.625em}.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] *)){list-style-type:disc;margin-top:1.25em;margin-bottom:1.25em;padding-inline-start:1.625em}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{font-weight:400;color:var(--tw-prose-counters)}.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);font-weight:600;margin-top:1.25em}.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] *)){font-weight:500;font-style:italic;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}.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);font-weight:800;font-size:2.25em;margin-top:0;margin-bottom:.8888889em;line-height:1.1111111}.prose :where(h1 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:900;color:inherit}.prose :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:700;font-size:1.5em;margin-top:2em;margin-bottom:1em;line-height:1.3333333}.prose :where(h2 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:800;color:inherit}.prose :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;font-size:1.25em;margin-top:1.6em;margin-bottom:.6em;line-height:1.6}.prose :where(h3 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:700;color:inherit}.prose :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;margin-top:1.5em;margin-bottom:.5em;line-height:1.5}.prose :where(h4 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:700;color:inherit}.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] *)){display:block;margin-top:2em;margin-bottom:2em}.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] *)){font-weight:500;font-family:inherit;color:var(--tw-prose-kbd);box-shadow:0 0 0 1px rgb(var(--tw-prose-kbd-shadows) / 10%),0 3px rgb(var(--tw-prose-kbd-shadows) / 10%);font-size:.875em;border-radius:.3125rem;padding-top:.1875em;padding-inline-end:.375em;padding-bottom:.1875em;padding-inline-start:.375em}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-code);font-weight:600;font-size:.875em}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:"`"}.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] *)){color:inherit}.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] *)){color:inherit}.prose :where(blockquote code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.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);overflow-x:auto;font-weight:400;font-size:.875em;line-height:1.7142857;margin-top:1.7142857em;margin-bottom:1.7142857em;border-radius:.375rem;padding-top:.8571429em;padding-inline-end:1.1428571em;padding-bottom:.8571429em;padding-inline-start:1.1428571em}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)){background-color:transparent;border-width:0;border-radius:0;padding:0;font-weight:inherit;color:inherit;font-size:inherit;font-family:inherit;line-height:inherit}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:none}.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] *)){width:100%;table-layout:auto;margin-top:2em;margin-bottom:2em;font-size:.875em;line-height:1.7142857}.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);font-weight:600;vertical-align:bottom;padding-inline-end:.5714286em;padding-bottom:.5714286em;padding-inline-start:.5714286em}.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);font-size:.875em;line-height:1.4285714;margin-top:.8571429em}.prose{--tw-prose-body: #374151;--tw-prose-headings: #111827;--tw-prose-lead: #4b5563;--tw-prose-links: #111827;--tw-prose-bold: #111827;--tw-prose-counters: #6b7280;--tw-prose-bullets: #d1d5db;--tw-prose-hr: #e5e7eb;--tw-prose-quotes: #111827;--tw-prose-quote-borders: #e5e7eb;--tw-prose-captions: #6b7280;--tw-prose-kbd: #111827;--tw-prose-kbd-shadows: 17 24 39;--tw-prose-code: #111827;--tw-prose-pre-code: #e5e7eb;--tw-prose-pre-bg: #1f2937;--tw-prose-th-borders: #d1d5db;--tw-prose-td-borders: #e5e7eb;--tw-prose-invert-body: #d1d5db;--tw-prose-invert-headings: #fff;--tw-prose-invert-lead: #9ca3af;--tw-prose-invert-links: #fff;--tw-prose-invert-bold: #fff;--tw-prose-invert-counters: #9ca3af;--tw-prose-invert-bullets: #4b5563;--tw-prose-invert-hr: #374151;--tw-prose-invert-quotes: #f3f4f6;--tw-prose-invert-quote-borders: #374151;--tw-prose-invert-captions: #9ca3af;--tw-prose-invert-kbd: #fff;--tw-prose-invert-kbd-shadows: 255 255 255;--tw-prose-invert-code: #fff;--tw-prose-invert-pre-code: #d1d5db;--tw-prose-invert-pre-bg: rgb(0 0 0 / 50%);--tw-prose-invert-th-borders: #4b5563;--tw-prose-invert-td-borders: #374151;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] *)){padding-inline-start:.375em}.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] *)){margin-top:0}.prose :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.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:.5714286em;padding-inline-end:.5714286em;padding-bottom:.5714286em;padding-inline-start:.5714286em}.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}.prose-base{font-size:1rem;line-height:1.75}.prose-base :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose-base :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.25em;line-height:1.6;margin-top:1.2em;margin-bottom:1.2em}.prose-base :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.6em;margin-bottom:1.6em;padding-inline-start:1em}.prose-base :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:2.25em;margin-top:0;margin-bottom:.8888889em;line-height:1.1111111}.prose-base :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.5em;margin-top:2em;margin-bottom:1em;line-height:1.3333333}.prose-base :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.25em;margin-top:1.6em;margin-bottom:.6em;line-height:1.6}.prose-base :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.5em;margin-bottom:.5em;line-height:1.5}.prose-base :where(img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose-base :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose-base :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose-base :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose-base :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.875em;border-radius:.3125rem;padding-top:.1875em;padding-inline-end:.375em;padding-bottom:.1875em;padding-inline-start:.375em}.prose-base :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.875em}.prose-base :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.875em}.prose-base :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.9em}.prose-base :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.875em;line-height:1.7142857;margin-top:1.7142857em;margin-bottom:1.7142857em;border-radius:.375rem;padding-top:.8571429em;padding-inline-end:1.1428571em;padding-bottom:.8571429em;padding-inline-start:1.1428571em}.prose-base :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em;padding-inline-start:1.625em}.prose-base :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em;padding-inline-start:1.625em}.prose-base :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;margin-bottom:.5em}.prose-base :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.375em}.prose-base :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.375em}.prose-base :where(.prose-base>ul>li p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.prose-base :where(.prose-base>ul>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}.prose-base :where(.prose-base>ul>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}.prose-base :where(.prose-base>ol>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}.prose-base :where(.prose-base>ol>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}.prose-base :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.prose-base :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose-base :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}.prose-base :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;padding-inline-start:1.625em}.prose-base :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:3em;margin-bottom:3em}.prose-base :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-base :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-base :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-base :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-base :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.875em;line-height:1.7142857}.prose-base :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:.5714286em;padding-bottom:.5714286em;padding-inline-start:.5714286em}.prose-base :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose-base :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose-base :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.5714286em;padding-inline-end:.5714286em;padding-bottom:.5714286em;padding-inline-start:.5714286em}.prose-base :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose-base :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose-base :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose-base :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose-base :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.875em;line-height:1.4285714;margin-top:.8571429em}.prose-base :where(.prose-base>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-base :where(.prose-base>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.-right-1{right:-.25rem}.-top-1{top:-.25rem}.bottom-2{bottom:.5rem}.bottom-3{bottom:.75rem}.bottom-4{bottom:1rem}.bottom-full{bottom:100%}.left-\[calc\(100\%-48px\)\]{left:calc(100% - 48px)}.right-0{right:0}.right-3{right:.75rem}.right-4{right:1rem}.top-3{top:.75rem}.z-10{z-index:10}.z-50{z-index:50}.mx-auto{margin-left:auto;margin-right:auto}.mb-1{margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.mb-6{margin-bottom:1.5rem}.ml-2{margin-left:.5rem}.mr-2{margin-right:.5rem}.mr-3{margin-right:.75rem}.mt-2{margin-top:.5rem}.block{display:block}.flex{display:flex}.h-4{height:1rem}.w-4{width:1rem}.w-full{width:100%}.max-w-\[85\%\]{max-width:85%}.max-w-full{max-width:100%}.flex-1{flex:1 1 0%}.flex-shrink-0,.shrink-0{flex-shrink:0}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}.cursor-not-allowed{cursor:not-allowed}.resize-none{resize:none}.flex-col{flex-direction:column}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-3{gap:.75rem}.space-x-3>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.75rem * var(--tw-space-x-reverse));margin-left:calc(.75rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.25rem * var(--tw-space-y-reverse))}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.scroll-smooth{scroll-behavior:smooth}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-xl{border-radius:.75rem}.rounded-tl-none{border-top-left-radius:0}.rounded-tr-none{border-top-right-radius:0}.border{border-width:1px}.border-t{border-top-width:1px}.border-gray-200{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity, 1))}.bg-gray-200{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity, 1))}.bg-orange-500{--tw-bg-opacity: 1;background-color:rgb(249 115 22 / var(--tw-bg-opacity, 1))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-4{padding-left:1rem;padding-right:1rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-16{padding-top:4rem;padding-bottom:4rem}.pr-12{padding-right:3rem}.text-left{text-align:left}.text-center{text-align:center}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-medium{font-weight:500}.text-\[\#2C3E50\]{--tw-text-opacity: 1;color:rgb(44 62 80 / var(--tw-text-opacity, 1))}.text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.text-gray-600{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity, 1))}.text-orange-500{--tw-text-opacity: 1;color:rgb(249 115 22 / var(--tw-text-opacity, 1))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.text-white\/70{color:rgba(255,255,255,.7)}.underline{text-decoration-line:underline}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.ring-0{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-2{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.custom-scrollbar{scrollbar-width:thin}.custom-scrollbar::-webkit-scrollbar{width:8px}.custom-scrollbar::-webkit-scrollbar-track{background:transparent}.custom-scrollbar::-webkit-scrollbar-thumb{background-color:rgba(30,58,138,.5);border-radius:4px}.custom-scrollbar::-webkit-scrollbar-thumb:hover{background-color:#1e3a8a}.messages-container{scrollbar-width:thin}.messages-container::-webkit-scrollbar{width:8px}.messages-container::-webkit-scrollbar-track{background:transparent}.messages-container::-webkit-scrollbar-thumb{background-color:rgba(30,58,138,.5);border-radius:4px}.messages-container::-webkit-scrollbar-thumb:hover{background-color:#1e3a8a}.hover\:-translate-y-0\.5:hover{--tw-translate-y: -.125rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\:bg-black:hover{--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity, 1))}.hover\:bg-gray-100:hover{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity, 1))}.hover\:bg-opacity-20:hover{--tw-bg-opacity: .2}.hover\:text-gray-600:hover{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity, 1))}.hover\:text-orange-700:hover{--tw-text-opacity: 1;color:rgb(194 65 12 / var(--tw-text-opacity, 1))}.hover\:shadow-md:hover{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}@media (min-width: 640px){.sm\:w-\[500px\]{width:500px}}@media (min-width: 768px){.md\:w-\[650px\]{width:650px}}@media (min-width: 1024px){.lg\:w-\[700px\]{width:700px}}
6
+ `;
7
+ document.head.appendChild(style);
8
+ })();
9
+
10
+ (function(Ee,N){typeof exports=="object"&&typeof module<"u"?N(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],N):(Ee=typeof globalThis<"u"?globalThis:Ee||self,N(Ee.ChatbotWidget={},Ee.React))})(this,function(Ee,N){"use strict";typeof window<"u"&&(window.global=window);var Ut={},_n=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof Ut<"u"?Ut:typeof self<"u"?self:{};function Hn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Wn={exports:{}},pn={};/**
11
+ * @license React
12
+ * react-jsx-runtime.production.min.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
+ */var Ht;function qi(){if(Ht)return pn;Ht=1;var e=N,n=Symbol.for("react.element"),t=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,o={key:!0,ref:!0,__self:!0,__source:!0};function l(a,u,c){var s,f={},h=null,p=null;c!==void 0&&(h=""+c),u.key!==void 0&&(h=""+u.key),u.ref!==void 0&&(p=u.ref);for(s in u)r.call(u,s)&&!o.hasOwnProperty(s)&&(f[s]=u[s]);if(a&&a.defaultProps)for(s in u=a.defaultProps,u)f[s]===void 0&&(f[s]=u[s]);return{$$typeof:n,type:a,key:h,ref:p,props:f,_owner:i.current}}return pn.Fragment=t,pn.jsx=l,pn.jsxs=l,pn}var hn={},Wt;function Gi(){if(Wt)return hn;Wt=1;var e={};/**
19
+ * @license React
20
+ * react-jsx-runtime.development.js
21
+ *
22
+ * Copyright (c) Facebook, Inc. and its affiliates.
23
+ *
24
+ * This source code is licensed under the MIT license found in the
25
+ * LICENSE file in the root directory of this source tree.
26
+ */return e.NODE_ENV!=="production"&&function(){var n=N,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),u=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),s=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),y=Symbol.for("react.offscreen"),x=Symbol.iterator,T="@@iterator";function k(d){if(d===null||typeof d!="object")return null;var v=x&&d[x]||d[T];return typeof v=="function"?v:null}var O=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function _(d){{for(var v=arguments.length,I=new Array(v>1?v-1:0),B=1;B<v;B++)I[B-1]=arguments[B];U("error",d,I)}}function U(d,v,I){{var B=O.ReactDebugCurrentFrame,ee=B.getStackAddendum();ee!==""&&(v+="%s",I=I.concat([ee]));var ne=I.map(function(K){return String(K)});ne.unshift("Warning: "+v),Function.prototype.apply.call(console[d],console,ne)}}var Y=!1,w=!1,D=!1,G=!1,W=!1,J;J=Symbol.for("react.module.reference");function P(d){return!!(typeof d=="string"||typeof d=="function"||d===i||d===l||W||d===o||d===s||d===f||G||d===y||Y||w||D||typeof d=="object"&&d!==null&&(d.$$typeof===p||d.$$typeof===h||d.$$typeof===a||d.$$typeof===u||d.$$typeof===c||d.$$typeof===J||d.getModuleId!==void 0))}function L(d,v,I){var B=d.displayName;if(B)return B;var ee=v.displayName||v.name||"";return ee!==""?I+"("+ee+")":I}function $(d){return d.displayName||"Context"}function Z(d){if(d==null)return null;if(typeof d.tag=="number"&&_("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof d=="function")return d.displayName||d.name||null;if(typeof d=="string")return d;switch(d){case i:return"Fragment";case r:return"Portal";case l:return"Profiler";case o:return"StrictMode";case s:return"Suspense";case f:return"SuspenseList"}if(typeof d=="object")switch(d.$$typeof){case u:var v=d;return $(v)+".Consumer";case a:var I=d;return $(I._context)+".Provider";case c:return L(d,d.render,"ForwardRef");case h:var B=d.displayName||null;return B!==null?B:Z(d.type)||"Memo";case p:{var ee=d,ne=ee._payload,K=ee._init;try{return Z(K(ne))}catch{return null}}}return null}var F=Object.assign,ie=0,j,oe,ae,m,xe,we,g;function be(){}be.__reactDisabledLog=!0;function Ne(){{if(ie===0){j=console.log,oe=console.info,ae=console.warn,m=console.error,xe=console.group,we=console.groupCollapsed,g=console.groupEnd;var d={configurable:!0,enumerable:!0,value:be,writable:!0};Object.defineProperties(console,{info:d,log:d,warn:d,error:d,group:d,groupCollapsed:d,groupEnd:d})}ie++}}function se(){{if(ie--,ie===0){var d={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:F({},d,{value:j}),info:F({},d,{value:oe}),warn:F({},d,{value:ae}),error:F({},d,{value:m}),group:F({},d,{value:xe}),groupCollapsed:F({},d,{value:we}),groupEnd:F({},d,{value:g})})}ie<0&&_("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Fe=O.ReactCurrentDispatcher,ue;function ke(d,v,I){{if(ue===void 0)try{throw Error()}catch(ee){var B=ee.stack.trim().match(/\n( *(at )?)/);ue=B&&B[1]||""}return`
27
+ `+ue+d}}var je=!1,Me;{var Sn=typeof WeakMap=="function"?WeakMap:Map;Me=new Sn}function Je(d,v){if(!d||je)return"";{var I=Me.get(d);if(I!==void 0)return I}var B;je=!0;var ee=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var ne;ne=Fe.current,Fe.current=null,Ne();try{if(v){var K=function(){throw Error()};if(Object.defineProperty(K.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(K,[])}catch(Ae){B=Ae}Reflect.construct(d,[],K)}else{try{K.call()}catch(Ae){B=Ae}d.call(K.prototype)}}else{try{throw Error()}catch(Ae){B=Ae}d()}}catch(Ae){if(Ae&&B&&typeof Ae.stack=="string"){for(var q=Ae.stack.split(`
28
+ `),Se=B.stack.split(`
29
+ `),ce=q.length-1,pe=Se.length-1;ce>=1&&pe>=0&&q[ce]!==Se[pe];)pe--;for(;ce>=1&&pe>=0;ce--,pe--)if(q[ce]!==Se[pe]){if(ce!==1||pe!==1)do if(ce--,pe--,pe<0||q[ce]!==Se[pe]){var De=`
30
+ `+q[ce].replace(" at new "," at ");return d.displayName&&De.includes("<anonymous>")&&(De=De.replace("<anonymous>",d.displayName)),typeof d=="function"&&Me.set(d,De),De}while(ce>=1&&pe>=0);break}}}finally{je=!1,Fe.current=ne,se(),Error.prepareStackTrace=ee}var fn=d?d.displayName||d.name:"",tn=fn?ke(fn):"";return typeof d=="function"&&Me.set(d,tn),tn}function En(d,v,I){return Je(d,!1)}function R(d){var v=d.prototype;return!!(v&&v.isReactComponent)}function H(d,v,I){if(d==null)return"";if(typeof d=="function")return Je(d,R(d));if(typeof d=="string")return ke(d);switch(d){case s:return ke("Suspense");case f:return ke("SuspenseList")}if(typeof d=="object")switch(d.$$typeof){case c:return En(d.render);case h:return H(d.type,v,I);case p:{var B=d,ee=B._payload,ne=B._init;try{return H(ne(ee),v,I)}catch{}}}return""}var le=Object.prototype.hasOwnProperty,Pe={},me=O.ReactDebugCurrentFrame;function he(d){if(d){var v=d._owner,I=H(d.type,d._source,v?v.type:null);me.setExtraStackFrame(I)}else me.setExtraStackFrame(null)}function Ze(d,v,I,B,ee){{var ne=Function.call.bind(le);for(var K in d)if(ne(d,K)){var q=void 0;try{if(typeof d[K]!="function"){var Se=Error((B||"React class")+": "+I+" type `"+K+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof d[K]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Se.name="Invariant Violation",Se}q=d[K](v,K,B,I,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(ce){q=ce}q&&!(q instanceof Error)&&(he(ee),_("%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).",B||"React class",I,K,typeof q),he(null)),q instanceof Error&&!(q.message in Pe)&&(Pe[q.message]=!0,he(ee),_("Failed %s type: %s",I,q.message),he(null))}}}var Cn=Array.isArray;function $e(d){return Cn(d)}function Vn(d){{var v=typeof Symbol=="function"&&Symbol.toStringTag,I=v&&d[Symbol.toStringTag]||d.constructor.name||"Object";return I}}function Un(d){try{return b(d),!1}catch{return!0}}function b(d){return""+d}function E(d){if(Un(d))return _("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Vn(d)),b(d)}var A=O.ReactCurrentOwner,M={key:!0,ref:!0,__self:!0,__source:!0},X,ge;function ze(d){if(le.call(d,"ref")){var v=Object.getOwnPropertyDescriptor(d,"ref").get;if(v&&v.isReactWarning)return!1}return d.ref!==void 0}function Be(d){if(le.call(d,"key")){var v=Object.getOwnPropertyDescriptor(d,"key").get;if(v&&v.isReactWarning)return!1}return d.key!==void 0}function en(d,v){typeof d.ref=="string"&&A.current}function nn(d,v){{var I=function(){X||(X=!0,_("%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)",v))};I.isReactWarning=!0,Object.defineProperty(d,"key",{get:I,configurable:!0})}}function ve(d,v){{var I=function(){ge||(ge=!0,_("%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)",v))};I.isReactWarning=!0,Object.defineProperty(d,"ref",{get:I,configurable:!0})}}var Ke=function(d,v,I,B,ee,ne,K){var q={$$typeof:t,type:d,key:v,ref:I,props:K,_owner:ne};return q._store={},Object.defineProperty(q._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(q,"_self",{configurable:!1,enumerable:!1,writable:!1,value:B}),Object.defineProperty(q,"_source",{configurable:!1,enumerable:!1,writable:!1,value:ee}),Object.freeze&&(Object.freeze(q.props),Object.freeze(q)),q};function Ve(d,v,I,B,ee){{var ne,K={},q=null,Se=null;I!==void 0&&(E(I),q=""+I),Be(v)&&(E(v.key),q=""+v.key),ze(v)&&(Se=v.ref,en(v,ee));for(ne in v)le.call(v,ne)&&!M.hasOwnProperty(ne)&&(K[ne]=v[ne]);if(d&&d.defaultProps){var ce=d.defaultProps;for(ne in ce)K[ne]===void 0&&(K[ne]=ce[ne])}if(q||Se){var pe=typeof d=="function"?d.displayName||d.name||"Unknown":d;q&&nn(K,pe),Se&&ve(K,pe)}return Ke(d,q,Se,ee,B,A.current,K)}}var Mt=O.ReactCurrentOwner,zi=O.ReactDebugCurrentFrame;function cn(d){if(d){var v=d._owner,I=H(d.type,d._source,v?v.type:null);zi.setExtraStackFrame(I)}else zi.setExtraStackFrame(null)}var zt;zt=!1;function Bt(d){return typeof d=="object"&&d!==null&&d.$$typeof===t}function Bi(){{if(Mt.current){var d=Z(Mt.current.type);if(d)return`
31
+
32
+ Check the render method of \``+d+"`."}return""}}function lc(d){return""}var Vi={};function ac(d){{var v=Bi();if(!v){var I=typeof d=="string"?d:d.displayName||d.name;I&&(v=`
33
+
34
+ Check the top-level render call using <`+I+">.")}return v}}function Ui(d,v){{if(!d._store||d._store.validated||d.key!=null)return;d._store.validated=!0;var I=ac(v);if(Vi[I])return;Vi[I]=!0;var B="";d&&d._owner&&d._owner!==Mt.current&&(B=" It was passed a child from "+Z(d._owner.type)+"."),cn(d),_('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',I,B),cn(null)}}function Hi(d,v){{if(typeof d!="object")return;if($e(d))for(var I=0;I<d.length;I++){var B=d[I];Bt(B)&&Ui(B,v)}else if(Bt(d))d._store&&(d._store.validated=!0);else if(d){var ee=k(d);if(typeof ee=="function"&&ee!==d.entries)for(var ne=ee.call(d),K;!(K=ne.next()).done;)Bt(K.value)&&Ui(K.value,v)}}}function sc(d){{var v=d.type;if(v==null||typeof v=="string")return;var I;if(typeof v=="function")I=v.propTypes;else if(typeof v=="object"&&(v.$$typeof===c||v.$$typeof===h))I=v.propTypes;else return;if(I){var B=Z(v);Ze(I,d.props,"prop",B,d)}else if(v.PropTypes!==void 0&&!zt){zt=!0;var ee=Z(v);_("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",ee||"Unknown")}typeof v.getDefaultProps=="function"&&!v.getDefaultProps.isReactClassApproved&&_("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function uc(d){{for(var v=Object.keys(d.props),I=0;I<v.length;I++){var B=v[I];if(B!=="children"&&B!=="key"){cn(d),_("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",B),cn(null);break}}d.ref!==null&&(cn(d),_("Invalid attribute `ref` supplied to `React.Fragment`."),cn(null))}}var Wi={};function Yi(d,v,I,B,ee,ne){{var K=P(d);if(!K){var q="";(d===void 0||typeof d=="object"&&d!==null&&Object.keys(d).length===0)&&(q+=" 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 Se=lc();Se?q+=Se:q+=Bi();var ce;d===null?ce="null":$e(d)?ce="array":d!==void 0&&d.$$typeof===t?(ce="<"+(Z(d.type)||"Unknown")+" />",q=" Did you accidentally export a JSX literal instead of a component?"):ce=typeof d,_("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",ce,q)}var pe=Ve(d,v,I,ee,ne);if(pe==null)return pe;if(K){var De=v.children;if(De!==void 0)if(B)if($e(De)){for(var fn=0;fn<De.length;fn++)Hi(De[fn],d);Object.freeze&&Object.freeze(De)}else _("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 Hi(De,d)}if(le.call(v,"key")){var tn=Z(d),Ae=Object.keys(v).filter(function(mc){return mc!=="key"}),Vt=Ae.length>0?"{key: someKey, "+Ae.join(": ..., ")+": ...}":"{key: someKey}";if(!Wi[tn+Vt]){var dc=Ae.length>0?"{"+Ae.join(": ..., ")+": ...}":"{}";_(`A props object containing a "key" prop is being spread into JSX:
35
+ let props = %s;
36
+ <%s {...props} />
37
+ React keys must be passed directly to JSX without using spread:
38
+ let props = %s;
39
+ <%s key={someKey} {...props} />`,Vt,tn,dc,tn),Wi[tn+Vt]=!0}}return d===i?uc(pe):sc(pe),pe}}function cc(d,v,I){return Yi(d,v,I,!0)}function fc(d,v,I){return Yi(d,v,I,!1)}var pc=fc,hc=cc;hn.Fragment=i,hn.jsx=pc,hn.jsxs=hc}(),hn}var Ki={};Ki.NODE_ENV==="production"?Wn.exports=qi():Wn.exports=Gi();var C=Wn.exports;/**
40
+ * @license lucide-react v0.344.0 - ISC
41
+ *
42
+ * This source code is licensed under the ISC license.
43
+ * See the LICENSE file in the root directory of this source tree.
44
+ */var Xi={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"};/**
45
+ * @license lucide-react v0.344.0 - ISC
46
+ *
47
+ * This source code is licensed under the ISC license.
48
+ * See the LICENSE file in the root directory of this source tree.
49
+ */const Qi=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase().trim(),Ce=(e,n)=>{const t=N.forwardRef(({color:r="currentColor",size:i=24,strokeWidth:o=2,absoluteStrokeWidth:l,className:a="",children:u,...c},s)=>N.createElement("svg",{ref:s,...Xi,width:i,height:i,stroke:r,strokeWidth:l?Number(o)*24/Number(i):o,className:["lucide",`lucide-${Qi(e)}`,a].join(" "),...c},[...n.map(([f,h])=>N.createElement(f,h)),...Array.isArray(u)?u:[u]]));return t.displayName=`${e}`,t};/**
50
+ * @license lucide-react v0.344.0 - ISC
51
+ *
52
+ * This source code is licensed under the ISC license.
53
+ * See the LICENSE file in the root directory of this source tree.
54
+ */const Ji=Ce("Bot",[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]]);/**
55
+ * @license lucide-react v0.344.0 - ISC
56
+ *
57
+ * This source code is licensed under the ISC license.
58
+ * See the LICENSE file in the root directory of this source tree.
59
+ */const Zi=Ce("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
60
+ * @license lucide-react v0.344.0 - ISC
61
+ *
62
+ * This source code is licensed under the ISC license.
63
+ * See the LICENSE file in the root directory of this source tree.
64
+ */const $i=Ce("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
65
+ * @license lucide-react v0.344.0 - ISC
66
+ *
67
+ * This source code is licensed under the ISC license.
68
+ * See the LICENSE file in the root directory of this source tree.
69
+ */const eo=Ce("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/**
70
+ * @license lucide-react v0.344.0 - ISC
71
+ *
72
+ * This source code is licensed under the ISC license.
73
+ * See the LICENSE file in the root directory of this source tree.
74
+ */const no=Ce("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);/**
75
+ * @license lucide-react v0.344.0 - ISC
76
+ *
77
+ * This source code is licensed under the ISC license.
78
+ * See the LICENSE file in the root directory of this source tree.
79
+ */const to=Ce("Heart",[["path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z",key:"c3ymky"}]]);/**
80
+ * @license lucide-react v0.344.0 - ISC
81
+ *
82
+ * This source code is licensed under the ISC license.
83
+ * See the LICENSE file in the root directory of this source tree.
84
+ */const ro=Ce("HelpCircle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
85
+ * @license lucide-react v0.344.0 - ISC
86
+ *
87
+ * This source code is licensed under the ISC license.
88
+ * See the LICENSE file in the root directory of this source tree.
89
+ */const io=Ce("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);/**
90
+ * @license lucide-react v0.344.0 - ISC
91
+ *
92
+ * This source code is licensed under the ISC license.
93
+ * See the LICENSE file in the root directory of this source tree.
94
+ */const Yt=Ce("MessageCircle",[["path",{d:"M7.9 20A9 9 0 1 0 4 16.1L2 22Z",key:"vv11sd"}]]);/**
95
+ * @license lucide-react v0.344.0 - ISC
96
+ *
97
+ * This source code is licensed under the ISC license.
98
+ * See the LICENSE file in the root directory of this source tree.
99
+ */const oo=Ce("MessageSquare",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]]);/**
100
+ * @license lucide-react v0.344.0 - ISC
101
+ *
102
+ * This source code is licensed under the ISC license.
103
+ * See the LICENSE file in the root directory of this source tree.
104
+ */const qt=Ce("Minimize2",[["polyline",{points:"4 14 10 14 10 20",key:"11kfnr"}],["polyline",{points:"20 10 14 10 14 4",key:"rlmsce"}],["line",{x1:"14",x2:"21",y1:"10",y2:"3",key:"o5lafz"}],["line",{x1:"3",x2:"10",y1:"21",y2:"14",key:"1atl0r"}]]);/**
105
+ * @license lucide-react v0.344.0 - ISC
106
+ *
107
+ * This source code is licensed under the ISC license.
108
+ * See the LICENSE file in the root directory of this source tree.
109
+ */const lo=Ce("Send",[["path",{d:"m22 2-7 20-4-9-9-4Z",key:"1q3vgg"}],["path",{d:"M22 2 11 13",key:"nzbqef"}]]);/**
110
+ * @license lucide-react v0.344.0 - ISC
111
+ *
112
+ * This source code is licensed under the ISC license.
113
+ * See the LICENSE file in the root directory of this source tree.
114
+ */const ao=Ce("Sparkles",[["path",{d:"m12 3-1.912 5.813a2 2 0 0 1-1.275 1.275L3 12l5.813 1.912a2 2 0 0 1 1.275 1.275L12 21l1.912-5.813a2 2 0 0 1 1.275-1.275L21 12l-5.813-1.912a2 2 0 0 1-1.275-1.275L12 3Z",key:"17u4zn"}],["path",{d:"M5 3v4",key:"bklmnn"}],["path",{d:"M19 17v4",key:"iiml17"}],["path",{d:"M3 5h4",key:"nem4j1"}],["path",{d:"M17 19h4",key:"lbex7p"}]]);/**
115
+ * @license lucide-react v0.344.0 - ISC
116
+ *
117
+ * This source code is licensed under the ISC license.
118
+ * See the LICENSE file in the root directory of this source tree.
119
+ */const so=Ce("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]),uo={},Gt=e=>{let n;const t=new Set,r=(s,f)=>{const h=typeof s=="function"?s(n):s;if(!Object.is(h,n)){const p=n;n=f??(typeof h!="object"||h===null)?h:Object.assign({},n,h),t.forEach(y=>y(n,p))}},i=()=>n,u={setState:r,getState:i,getInitialState:()=>c,subscribe:s=>(t.add(s),()=>t.delete(s)),destroy:()=>{(uo?"production":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),t.clear()}},c=n=e(r,i,u);return u},co=e=>e?Gt(e):Gt;var Yn={exports:{}},qn={},Tn={exports:{}},Gn={};/**
120
+ * @license React
121
+ * use-sync-external-store-shim.production.js
122
+ *
123
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
124
+ *
125
+ * This source code is licensed under the MIT license found in the
126
+ * LICENSE file in the root directory of this source tree.
127
+ */var Kt;function fo(){if(Kt)return Gn;Kt=1;var e=N;function n(f,h){return f===h&&(f!==0||1/f===1/h)||f!==f&&h!==h}var t=typeof Object.is=="function"?Object.is:n,r=e.useState,i=e.useEffect,o=e.useLayoutEffect,l=e.useDebugValue;function a(f,h){var p=h(),y=r({inst:{value:p,getSnapshot:h}}),x=y[0].inst,T=y[1];return o(function(){x.value=p,x.getSnapshot=h,u(x)&&T({inst:x})},[f,p,h]),i(function(){return u(x)&&T({inst:x}),f(function(){u(x)&&T({inst:x})})},[f]),l(p),p}function u(f){var h=f.getSnapshot;f=f.value;try{var p=h();return!t(f,p)}catch{return!0}}function c(f,h){return h()}var s=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?c:a;return Gn.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:s,Gn}var Kn={},Xt;function po(){if(Xt)return Kn;Xt=1;var e={};/**
128
+ * @license React
129
+ * use-sync-external-store-shim.development.js
130
+ *
131
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
132
+ *
133
+ * This source code is licensed under the MIT license found in the
134
+ * LICENSE file in the root directory of this source tree.
135
+ */return e.NODE_ENV!=="production"&&function(){function n(y,x){return y===x&&(y!==0||1/y===1/x)||y!==y&&x!==x}function t(y,x){f||o.startTransition===void 0||(f=!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 T=x();if(!h){var k=x();l(T,k)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),h=!0)}k=a({inst:{value:T,getSnapshot:x}});var O=k[0].inst,_=k[1];return c(function(){O.value=T,O.getSnapshot=x,r(O)&&_({inst:O})},[y,T,x]),u(function(){return r(O)&&_({inst:O}),y(function(){r(O)&&_({inst:O})})},[y]),s(T),T}function r(y){var x=y.getSnapshot;y=y.value;try{var T=x();return!l(y,T)}catch{return!0}}function i(y,x){return x()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var o=N,l=typeof Object.is=="function"?Object.is:n,a=o.useState,u=o.useEffect,c=o.useLayoutEffect,s=o.useDebugValue,f=!1,h=!1,p=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?i:t;Kn.useSyncExternalStore=o.useSyncExternalStore!==void 0?o.useSyncExternalStore:p,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}(),Kn}var Qt;function Jt(){if(Qt)return Tn.exports;Qt=1;var e={};return e.NODE_ENV==="production"?Tn.exports=fo():Tn.exports=po(),Tn.exports}/**
136
+ * @license React
137
+ * use-sync-external-store-shim/with-selector.production.js
138
+ *
139
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
140
+ *
141
+ * This source code is licensed under the MIT license found in the
142
+ * LICENSE file in the root directory of this source tree.
143
+ */var Zt;function ho(){if(Zt)return qn;Zt=1;var e=N,n=Jt();function t(c,s){return c===s&&(c!==0||1/c===1/s)||c!==c&&s!==s}var r=typeof Object.is=="function"?Object.is:t,i=n.useSyncExternalStore,o=e.useRef,l=e.useEffect,a=e.useMemo,u=e.useDebugValue;return qn.useSyncExternalStoreWithSelector=function(c,s,f,h,p){var y=o(null);if(y.current===null){var x={hasValue:!1,value:null};y.current=x}else x=y.current;y=a(function(){function k(w){if(!O){if(O=!0,_=w,w=h(w),p!==void 0&&x.hasValue){var D=x.value;if(p(D,w))return U=D}return U=w}if(D=U,r(_,w))return D;var G=h(w);return p!==void 0&&p(D,G)?(_=w,D):(_=w,U=G)}var O=!1,_,U,Y=f===void 0?null:f;return[function(){return k(s())},Y===null?void 0:function(){return k(Y())}]},[s,f,h,p]);var T=i(c,y[0],y[1]);return l(function(){x.hasValue=!0,x.value=T},[T]),u(T),T},qn}var Xn={},$t;function mo(){if($t)return Xn;$t=1;var e={};/**
144
+ * @license React
145
+ * use-sync-external-store-shim/with-selector.development.js
146
+ *
147
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
148
+ *
149
+ * This source code is licensed under the MIT license found in the
150
+ * LICENSE file in the root directory of this source tree.
151
+ */return e.NODE_ENV!=="production"&&function(){function n(s,f){return s===f&&(s!==0||1/s===1/f)||s!==s&&f!==f}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var t=N,r=Jt(),i=typeof Object.is=="function"?Object.is:n,o=r.useSyncExternalStore,l=t.useRef,a=t.useEffect,u=t.useMemo,c=t.useDebugValue;Xn.useSyncExternalStoreWithSelector=function(s,f,h,p,y){var x=l(null);if(x.current===null){var T={hasValue:!1,value:null};x.current=T}else T=x.current;x=u(function(){function O(D){if(!_){if(_=!0,U=D,D=p(D),y!==void 0&&T.hasValue){var G=T.value;if(y(G,D))return Y=G}return Y=D}if(G=Y,i(U,D))return G;var W=p(D);return y!==void 0&&y(G,W)?(U=D,G):(U=D,Y=W)}var _=!1,U,Y,w=h===void 0?null:h;return[function(){return O(f())},w===null?void 0:function(){return O(w())}]},[f,h,p,y]);var k=o(s,x[0],x[1]);return a(function(){T.hasValue=!0,T.value=k},[k]),c(k),k},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}(),Xn}var go={};go.NODE_ENV==="production"?Yn.exports=ho():Yn.exports=mo();var yo=Yn.exports;const xo=Hn(yo),er={},{useDebugValue:bo}=N,{useSyncExternalStoreWithSelector:wo}=xo;let nr=!1;const ko=e=>e;function vo(e,n=ko,t){(er?"production":void 0)!=="production"&&t&&!nr&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),nr=!0);const r=wo(e.subscribe,e.getState,e.getServerState||e.getInitialState,n,t);return bo(r),r}const tr=e=>{(er?"production":void 0)!=="production"&&typeof e!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const n=typeof e=="function"?co(e):e,t=(r,i)=>vo(n,r,i);return Object.assign(t,n),t},So=e=>e?tr(e):tr;let dn=null,Qn=null,Eo=0,Co=0;const _o=async()=>{if(typeof window>"u")try{let e,n;try{e=await Promise.resolve().then(()=>Mi),n=await Promise.resolve().then(()=>Mi)}catch(r){console.warn("[Connection Pool] Failed to import Node.js modules:",r);return}dn=new e.Agent({keepAlive:!0,keepAliveMsecs:3e4,maxSockets:5});const t=dn.createConnection;dn.createConnection=function(r,i){Eo++;const o=t.call(this,r,i);return o.on("reuse",()=>{Co++}),o},Qn=new n.Agent({keepAlive:!0,keepAliveMsecs:3e4,maxSockets:5})}catch(e){console.warn("[Connection Pool] Failed to initialize HTTP agents:",e)}};(async()=>{try{await _o()}catch(e){console.warn("Failed to initialize connection pool:",e)}})();let Jn=null;const rr=e=>{if(!e||typeof e!="string")throw new Error("API URL must be a valid string");Jn=e},To=()=>{if(!Jn)throw new Error("API URL not configured. Please call configureApi() with your server URL before using any API functions.");return Jn},Io=(e,n={})=>{const t=e.startsWith("https:");if(typeof window>"u"){if(t&&Qn)return{...n,agent:Qn};if(dn)return{...n,agent:dn}}const r=Date.now().toString(36)+Math.random().toString(36).substring(2);return{...n,headers:{...n.headers,Connection:"keep-alive","X-Request-ID":r}}};async function*Ao(e,n){var t;try{const r=To(),i=await fetch(`${r}/chat`,Io(r,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({message:e,voiceEnabled:n})}));if(!i.ok){const u=await i.text();throw console.error(`API request failed: ${i.status} ${u}`),new Error(`Network response was not ok: ${i.status} ${u}`)}const o=(t=i.body)==null?void 0:t.getReader();if(!o)throw new Error("No reader available");const l=new TextDecoder;let a="";for(;;){const{done:u,value:c}=await o.read();if(u)break;const s=l.decode(c,{stream:!0});a+=s;const f=a.split(`
152
+ `);a=f.pop()||"";for(const h of f)if(h.trim())try{const p=JSON.parse(h);p.content&&!p.text&&(p.text=p.content),yield p}catch{console.warn("Error parsing JSON chunk:",h)}}if(a)try{const u=JSON.parse(a);u.content&&!u.text&&(u.text=u.content),yield u}catch{console.warn("Error parsing final JSON buffer:",a)}}catch(r){console.error("Chat API error:",r.message),yield{text:`Error connecting to chat server: ${r.message}`,done:!0}}}function ir(){try{if(typeof window<"u"&&window.CHATBOT_API_URL)return rr(window.CHATBOT_API_URL),!0}catch(e){console.error("Failed to configure API:",e)}return!1}ir();const Zn=So((e,n)=>({messages:[],isLoading:!1,error:null,voiceEnabled:!1,toggleVoice:()=>e(t=>({voiceEnabled:!t.voiceEnabled})),sendMessage:async t=>{try{if(!ir())throw new Error("API URL not configured");e(i=>({messages:[...i.messages,{role:"user",content:t}],isLoading:!0,error:null})),e(i=>({messages:[...i.messages,{role:"assistant",content:""}]}));let r=!1;try{for await(const i of Ao(t,n().voiceEnabled))i.text&&(n().appendToLastMessage(i.text),r=!0);r||n().appendToLastMessage("No response received from the server. Please try again later.")}catch(i){console.error("Chat API error:",i),n().appendToLastMessage("Sorry, there was an error processing your request.")}e({isLoading:!1})}catch(r){console.error("Chat store error:",r),e(i=>({isLoading:!1,error:`Failed to send message: ${r instanceof Error?r.message:"Unknown error"}`}))}},appendToLastMessage:t=>{e(r=>{const i=[...r.messages],o=i[i.length-1];return o&&o.role==="assistant"&&(i[i.length-1]={...o,content:o.content+t}),{messages:i}})},clearMessages:()=>{e({messages:[]})}}));function gc(){}function yc(){}function Oo(e,n){const t={};return(e[e.length-1]===""?[...e,""]:e).join((t.padRight?" ":"")+","+(t.padLeft===!1?"":" ")).trim()}const Ro=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Po=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Lo={};function or(e,n){return(Lo.jsx?Po:Ro).test(e)}const jo=/[ \t\n\f\r]/g;function Do(e){return typeof e=="object"?e.type==="text"?lr(e.value):!1:lr(e)}function lr(e){return e.replace(jo,"")===""}class mn{constructor(n,t,r){this.normal=t,this.property=n,r&&(this.space=r)}}mn.prototype.normal={},mn.prototype.property={},mn.prototype.space=void 0;function ar(e,n){const t={},r={};for(const i of e)Object.assign(t,i.property),Object.assign(r,i.normal);return new mn(t,r,n)}function $n(e){return e.toLowerCase()}class _e{constructor(n,t){this.attribute=t,this.property=n}}_e.prototype.attribute="",_e.prototype.booleanish=!1,_e.prototype.boolean=!1,_e.prototype.commaOrSpaceSeparated=!1,_e.prototype.commaSeparated=!1,_e.prototype.defined=!1,_e.prototype.mustUseProperty=!1,_e.prototype.number=!1,_e.prototype.overloadedBoolean=!1,_e.prototype.property="",_e.prototype.spaceSeparated=!1,_e.prototype.space=void 0;let No=0;const V=Xe(),fe=Xe(),sr=Xe(),S=Xe(),te=Xe(),rn=Xe(),Oe=Xe();function Xe(){return 2**++No}const et=Object.freeze(Object.defineProperty({__proto__:null,boolean:V,booleanish:fe,commaOrSpaceSeparated:Oe,commaSeparated:rn,number:S,overloadedBoolean:sr,spaceSeparated:te},Symbol.toStringTag,{value:"Module"})),nt=Object.keys(et);class tt extends _e{constructor(n,t,r,i){let o=-1;if(super(n,t),ur(this,"space",i),typeof r=="number")for(;++o<nt.length;){const l=nt[o];ur(this,nt[o],(r&et[l])===et[l])}}}tt.prototype.defined=!0;function ur(e,n,t){t&&(e[n]=t)}function on(e){const n={},t={};for(const[r,i]of Object.entries(e.properties)){const o=new tt(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),n[r]=o,t[$n(r)]=r,t[$n(o.attribute)]=r}return new mn(n,t,e.space)}const cr=on({properties:{ariaActiveDescendant:null,ariaAtomic:fe,ariaAutoComplete:null,ariaBusy:fe,ariaChecked:fe,ariaColCount:S,ariaColIndex:S,ariaColSpan:S,ariaControls:te,ariaCurrent:null,ariaDescribedBy:te,ariaDetails:null,ariaDisabled:fe,ariaDropEffect:te,ariaErrorMessage:null,ariaExpanded:fe,ariaFlowTo:te,ariaGrabbed:fe,ariaHasPopup:null,ariaHidden:fe,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:te,ariaLevel:S,ariaLive:null,ariaModal:fe,ariaMultiLine:fe,ariaMultiSelectable:fe,ariaOrientation:null,ariaOwns:te,ariaPlaceholder:null,ariaPosInSet:S,ariaPressed:fe,ariaReadOnly:fe,ariaRelevant:null,ariaRequired:fe,ariaRoleDescription:te,ariaRowCount:S,ariaRowIndex:S,ariaRowSpan:S,ariaSelected:fe,ariaSetSize:S,ariaSort:null,ariaValueMax:S,ariaValueMin:S,ariaValueNow:S,ariaValueText:null,role:null},transform(e,n){return n==="role"?n:"aria-"+n.slice(4).toLowerCase()}});function fr(e,n){return n in e?e[n]:n}function pr(e,n){return fr(e,n.toLowerCase())}const Fo=on({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:rn,acceptCharset:te,accessKey:te,action:null,allow:null,allowFullScreen:V,allowPaymentRequest:V,allowUserMedia:V,alt:null,as:null,async:V,autoCapitalize:null,autoComplete:te,autoFocus:V,autoPlay:V,blocking:te,capture:null,charSet:null,checked:V,cite:null,className:te,cols:S,colSpan:null,content:null,contentEditable:fe,controls:V,controlsList:te,coords:S|rn,crossOrigin:null,data:null,dateTime:null,decoding:null,default:V,defer:V,dir:null,dirName:null,disabled:V,download:sr,draggable:fe,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:V,formTarget:null,headers:te,height:S,hidden:V,high:S,href:null,hrefLang:null,htmlFor:te,httpEquiv:te,id:null,imageSizes:null,imageSrcSet:null,inert:V,inputMode:null,integrity:null,is:null,isMap:V,itemId:null,itemProp:te,itemRef:te,itemScope:V,itemType:te,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:V,low:S,manifest:null,max:null,maxLength:S,media:null,method:null,min:null,minLength:S,multiple:V,muted:V,name:null,nonce:null,noModule:V,noValidate:V,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:V,optimum:S,pattern:null,ping:te,placeholder:null,playsInline:V,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:V,referrerPolicy:null,rel:te,required:V,reversed:V,rows:S,rowSpan:S,sandbox:te,scope:null,scoped:V,seamless:V,selected:V,shadowRootClonable:V,shadowRootDelegatesFocus:V,shadowRootMode:null,shape:null,size:S,sizes:null,slot:null,span:S,spellCheck:fe,src:null,srcDoc:null,srcLang:null,srcSet:null,start:S,step:null,style:null,tabIndex:S,target:null,title:null,translate:null,type:null,typeMustMatch:V,useMap:null,value:fe,width:S,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:te,axis:null,background:null,bgColor:null,border:S,borderColor:null,bottomMargin:S,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:V,declare:V,event:null,face:null,frame:null,frameBorder:null,hSpace:S,leftMargin:S,link:null,longDesc:null,lowSrc:null,marginHeight:S,marginWidth:S,noResize:V,noHref:V,noShade:V,noWrap:V,object:null,profile:null,prompt:null,rev:null,rightMargin:S,rules:null,scheme:null,scrolling:fe,standby:null,summary:null,text:null,topMargin:S,valueType:null,version:null,vAlign:null,vLink:null,vSpace:S,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:V,disableRemotePlayback:V,prefix:null,property:null,results:S,security:null,unselectable:null},space:"html",transform:pr}),Mo=on({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:Oe,accentHeight:S,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:S,amplitude:S,arabicForm:null,ascent:S,attributeName:null,attributeType:null,azimuth:S,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:S,by:null,calcMode:null,capHeight:S,className:te,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:S,diffuseConstant:S,direction:null,display:null,dur:null,divisor:S,dominantBaseline:null,download:V,dx:null,dy:null,edgeMode:null,editable:null,elevation:S,enableBackground:null,end:null,event:null,exponent:S,externalResourcesRequired:null,fill:null,fillOpacity:S,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:rn,g2:rn,glyphName:rn,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:S,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:S,horizOriginX:S,horizOriginY:S,id:null,ideographic:S,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:S,k:S,k1:S,k2:S,k3:S,k4:S,kernelMatrix:Oe,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:S,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:S,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:S,overlineThickness:S,paintOrder:null,panose1:null,path:null,pathLength:S,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:te,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:S,pointsAtY:S,pointsAtZ:S,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Oe,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Oe,rev:Oe,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Oe,requiredFeatures:Oe,requiredFonts:Oe,requiredFormats:Oe,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:S,specularExponent:S,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:S,strikethroughThickness:S,string:null,stroke:null,strokeDashArray:Oe,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:S,strokeOpacity:S,strokeWidth:null,style:null,surfaceScale:S,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Oe,tabIndex:S,tableValues:null,target:null,targetX:S,targetY:S,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Oe,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:S,underlineThickness:S,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:S,values:null,vAlphabetic:S,vMathematical:S,vectorEffect:null,vHanging:S,vIdeographic:S,version:null,vertAdvY:S,vertOriginX:S,vertOriginY:S,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:S,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:fr}),hr=on({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,n){return"xlink:"+n.slice(5).toLowerCase()}}),dr=on({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:pr}),mr=on({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,n){return"xml:"+n.slice(3).toLowerCase()}}),zo={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"},Bo=/[A-Z]/g,gr=/-[a-z]/g,Vo=/^data[-\w.:]+$/i;function Uo(e,n){const t=$n(n);let r=n,i=_e;if(t in e.normal)return e.property[e.normal[t]];if(t.length>4&&t.slice(0,4)==="data"&&Vo.test(n)){if(n.charAt(4)==="-"){const o=n.slice(5).replace(gr,Wo);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=n.slice(4);if(!gr.test(o)){let l=o.replace(Bo,Ho);l.charAt(0)!=="-"&&(l="-"+l),n="data"+l}}i=tt}return new i(r,n)}function Ho(e){return"-"+e.toLowerCase()}function Wo(e){return e.charAt(1).toUpperCase()}const Yo=ar([cr,Fo,hr,dr,mr],"html"),rt=ar([cr,Mo,hr,dr,mr],"svg");function qo(e){return e.join(" ").trim()}var it={},yr=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,Go=/\n/g,Ko=/^\s*/,Xo=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,Qo=/^:\s*/,Jo=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,Zo=/^[;\s]*/,$o=/^\s+|\s+$/g,el=`
153
+ `,xr="/",br="*",Qe="",nl="comment",tl="declaration",rl=function(e,n){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];n=n||{};var t=1,r=1;function i(y){var x=y.match(Go);x&&(t+=x.length);var T=y.lastIndexOf(el);r=~T?y.length-T:r+y.length}function o(){var y={line:t,column:r};return function(x){return x.position=new l(y),c(),x}}function l(y){this.start=y,this.end={line:t,column:r},this.source=n.source}l.prototype.content=e;function a(y){var x=new Error(n.source+":"+t+":"+r+": "+y);if(x.reason=y,x.filename=n.source,x.line=t,x.column=r,x.source=e,!n.silent)throw x}function u(y){var x=y.exec(e);if(x){var T=x[0];return i(T),e=e.slice(T.length),x}}function c(){u(Ko)}function s(y){var x;for(y=y||[];x=f();)x!==!1&&y.push(x);return y}function f(){var y=o();if(!(xr!=e.charAt(0)||br!=e.charAt(1))){for(var x=2;Qe!=e.charAt(x)&&(br!=e.charAt(x)||xr!=e.charAt(x+1));)++x;if(x+=2,Qe===e.charAt(x-1))return a("End of comment missing");var T=e.slice(2,x-2);return r+=2,i(T),e=e.slice(x),r+=2,y({type:nl,comment:T})}}function h(){var y=o(),x=u(Xo);if(x){if(f(),!u(Qo))return a("property missing ':'");var T=u(Jo),k=y({type:tl,property:wr(x[0].replace(yr,Qe)),value:T?wr(T[0].replace(yr,Qe)):Qe});return u(Zo),k}}function p(){var y=[];s(y);for(var x;x=h();)x!==!1&&(y.push(x),s(y));return y}return c(),p()};function wr(e){return e?e.replace($o,Qe):Qe}var il=_n&&_n.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(it,"__esModule",{value:!0}),it.default=ll;var ol=il(rl);function ll(e,n){var t=null;if(!e||typeof e!="string")return t;var r=(0,ol.default)(e),i=typeof n=="function";return r.forEach(function(o){if(o.type==="declaration"){var l=o.property,a=o.value;i?n(l,a,o):a&&(t=t||{},t[l]=a)}}),t}var In={};Object.defineProperty(In,"__esModule",{value:!0}),In.camelCase=void 0;var al=/^--[a-zA-Z0-9_-]+$/,sl=/-([a-z])/g,ul=/^[^-]+$/,cl=/^-(webkit|moz|ms|o|khtml)-/,fl=/^-(ms)-/,pl=function(e){return!e||ul.test(e)||al.test(e)},hl=function(e,n){return n.toUpperCase()},kr=function(e,n){return"".concat(n,"-")},dl=function(e,n){return n===void 0&&(n={}),pl(e)?e:(e=e.toLowerCase(),n.reactCompat?e=e.replace(fl,kr):e=e.replace(cl,kr),e.replace(sl,hl))};In.camelCase=dl;var ml=_n&&_n.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},gl=ml(it),yl=In;function ot(e,n){var t={};return!e||typeof e!="string"||(0,gl.default)(e,function(r,i){r&&i&&(t[(0,yl.camelCase)(r,n)]=i)}),t}ot.default=ot;var xl=ot;const bl=Hn(xl),vr=Sr("end"),lt=Sr("start");function Sr(e){return n;function n(t){const r=t&&t.position&&t.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function wl(e){const n=lt(e),t=vr(e);if(n&&t)return{start:n,end:t}}function gn(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Er(e.position):"start"in e||"end"in e?Er(e):"line"in e||"column"in e?at(e):""}function at(e){return Cr(e&&e.line)+":"+Cr(e&&e.column)}function Er(e){return at(e&&e.start)+"-"+at(e&&e.end)}function Cr(e){return e&&typeof e=="number"?e:1}class ye extends Error{constructor(n,t,r){super(),typeof t=="string"&&(r=t,t=void 0);let i="",o={},l=!1;if(t&&("line"in t&&"column"in t?o={place:t}:"start"in t&&"end"in t?o={place:t}:"type"in t?o={ancestors:[t],place:t.position}:o={...t}),typeof n=="string"?i=n:!o.cause&&n&&(l=!0,i=n.message,o.cause=n),!o.ruleId&&!o.source&&typeof r=="string"){const u=r.indexOf(":");u===-1?o.ruleId=r:(o.source=r.slice(0,u),o.ruleId=r.slice(u+1))}if(!o.place&&o.ancestors&&o.ancestors){const u=o.ancestors[o.ancestors.length-1];u&&(o.place=u.position)}const a=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file,this.message=i,this.line=a?a.line:void 0,this.name=gn(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=l&&o.cause&&typeof o.cause.stack=="string"?o.cause.stack:"",this.actual,this.expected,this.note,this.url}}ye.prototype.file="",ye.prototype.name="",ye.prototype.reason="",ye.prototype.message="",ye.prototype.stack="",ye.prototype.column=void 0,ye.prototype.line=void 0,ye.prototype.ancestors=void 0,ye.prototype.cause=void 0,ye.prototype.fatal=void 0,ye.prototype.place=void 0,ye.prototype.ruleId=void 0,ye.prototype.source=void 0;const st={}.hasOwnProperty,kl=new Map,vl=/[A-Z]/g,Sl=new Set(["table","tbody","thead","tfoot","tr"]),El=new Set(["td","th"]),_r="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Cl(e,n){if(!n||n.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const t=n.filePath||void 0;let r;if(n.development){if(typeof n.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=Ll(t,n.jsxDEV)}else{if(typeof n.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof n.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=Pl(t,n.jsx,n.jsxs)}const i={Fragment:n.Fragment,ancestors:[],components:n.components||{},create:r,elementAttributeNameCase:n.elementAttributeNameCase||"react",evaluater:n.createEvaluater?n.createEvaluater():void 0,filePath:t,ignoreInvalidStyle:n.ignoreInvalidStyle||!1,passKeys:n.passKeys!==!1,passNode:n.passNode||!1,schema:n.space==="svg"?rt:Yo,stylePropertyNameCase:n.stylePropertyNameCase||"dom",tableCellAlignToStyle:n.tableCellAlignToStyle!==!1},o=Tr(i,e,void 0);return o&&typeof o!="string"?o:i.create(e,i.Fragment,{children:o||void 0},void 0)}function Tr(e,n,t){if(n.type==="element")return _l(e,n,t);if(n.type==="mdxFlowExpression"||n.type==="mdxTextExpression")return Tl(e,n);if(n.type==="mdxJsxFlowElement"||n.type==="mdxJsxTextElement")return Al(e,n,t);if(n.type==="mdxjsEsm")return Il(e,n);if(n.type==="root")return Ol(e,n,t);if(n.type==="text")return Rl(e,n)}function _l(e,n,t){const r=e.schema;let i=r;n.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=rt,e.schema=i),e.ancestors.push(n);const o=Ar(e,n.tagName,!1),l=jl(e,n);let a=ct(e,n);return Sl.has(n.tagName)&&(a=a.filter(function(u){return typeof u=="string"?!Do(u):!0})),Ir(e,l,o,n),ut(l,a),e.ancestors.pop(),e.schema=r,e.create(n,o,l,t)}function Tl(e,n){if(n.data&&n.data.estree&&e.evaluater){const r=n.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}yn(e,n.position)}function Il(e,n){if(n.data&&n.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(n.data.estree);yn(e,n.position)}function Al(e,n,t){const r=e.schema;let i=r;n.name==="svg"&&r.space==="html"&&(i=rt,e.schema=i),e.ancestors.push(n);const o=n.name===null?e.Fragment:Ar(e,n.name,!0),l=Dl(e,n),a=ct(e,n);return Ir(e,l,o,n),ut(l,a),e.ancestors.pop(),e.schema=r,e.create(n,o,l,t)}function Ol(e,n,t){const r={};return ut(r,ct(e,n)),e.create(n,e.Fragment,r,t)}function Rl(e,n){return n.value}function Ir(e,n,t,r){typeof t!="string"&&t!==e.Fragment&&e.passNode&&(n.node=r)}function ut(e,n){if(n.length>0){const t=n.length>1?n:n[0];t&&(e.children=t)}}function Pl(e,n,t){return r;function r(i,o,l,a){const c=Array.isArray(l.children)?t:n;return a?c(o,l,a):c(o,l)}}function Ll(e,n){return t;function t(r,i,o,l){const a=Array.isArray(o.children),u=lt(r);return n(i,o,l,a,{columnNumber:u?u.column-1:void 0,fileName:e,lineNumber:u?u.line:void 0},void 0)}}function jl(e,n){const t={};let r,i;for(i in n.properties)if(i!=="children"&&st.call(n.properties,i)){const o=Nl(e,i,n.properties[i]);if(o){const[l,a]=o;e.tableCellAlignToStyle&&l==="align"&&typeof a=="string"&&El.has(n.tagName)?r=a:t[l]=a}}if(r){const o=t.style||(t.style={});o[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return t}function Dl(e,n){const t={};for(const r of n.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const o=r.data.estree.body[0];o.type;const l=o.expression;l.type;const a=l.properties[0];a.type,Object.assign(t,e.evaluater.evaluateExpression(a.argument))}else yn(e,n.position);else{const i=r.name;let o;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const a=r.value.data.estree.body[0];a.type,o=e.evaluater.evaluateExpression(a.expression)}else yn(e,n.position);else o=r.value===null?!0:r.value;t[i]=o}return t}function ct(e,n){const t=[];let r=-1;const i=e.passKeys?new Map:kl;for(;++r<n.children.length;){const o=n.children[r];let l;if(e.passKeys){const u=o.type==="element"?o.tagName:o.type==="mdxJsxFlowElement"||o.type==="mdxJsxTextElement"?o.name:void 0;if(u){const c=i.get(u)||0;l=u+"-"+c,i.set(u,c+1)}}const a=Tr(e,o,l);a!==void 0&&t.push(a)}return t}function Nl(e,n,t){const r=Uo(e.schema,n);if(!(t==null||typeof t=="number"&&Number.isNaN(t))){if(Array.isArray(t)&&(t=r.commaSeparated?Oo(t):qo(t)),r.property==="style"){let i=typeof t=="object"?t:Fl(e,String(t));return e.stylePropertyNameCase==="css"&&(i=Ml(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&r.space?zo[r.property]||r.property:r.attribute,t]}}function Fl(e,n){try{return bl(n,{reactCompat:!0})}catch(t){if(e.ignoreInvalidStyle)return{};const r=t,i=new ye("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw i.file=e.filePath||void 0,i.url=_r+"#cannot-parse-style-attribute",i}}function Ar(e,n,t){let r;if(!t)r={type:"Literal",value:n};else if(n.includes(".")){const i=n.split(".");let o=-1,l;for(;++o<i.length;){const a=or(i[o])?{type:"Identifier",name:i[o]}:{type:"Literal",value:i[o]};l=l?{type:"MemberExpression",object:l,property:a,computed:!!(o&&a.type==="Literal"),optional:!1}:a}r=l}else r=or(n)&&!/^[a-z]/.test(n)?{type:"Identifier",name:n}:{type:"Literal",value:n};if(r.type==="Literal"){const i=r.value;return st.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(r);yn(e)}function yn(e,n){const t=new ye("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:n,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw t.file=e.filePath||void 0,t.url=_r+"#cannot-handle-mdx-estrees-without-createevaluater",t}function Ml(e){const n={};let t;for(t in e)st.call(e,t)&&(n[zl(t)]=e[t]);return n}function zl(e){let n=e.replace(vl,Bl);return n.slice(0,3)==="ms-"&&(n="-"+n),n}function Bl(e){return"-"+e.toLowerCase()}const ft={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"]},Vl={};function Ul(e,n){const t=Vl,r=typeof t.includeImageAlt=="boolean"?t.includeImageAlt:!0,i=typeof t.includeHtml=="boolean"?t.includeHtml:!0;return Or(e,r,i)}function Or(e,n,t){if(Hl(e)){if("value"in e)return e.type==="html"&&!t?"":e.value;if(n&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Rr(e.children,n,t)}return Array.isArray(e)?Rr(e,n,t):""}function Rr(e,n,t){const r=[];let i=-1;for(;++i<e.length;)r[i]=Or(e[i],n,t);return r.join("")}function Hl(e){return!!(e&&typeof e=="object")}const Pr=document.createElement("i");function pt(e){const n="&"+e+";";Pr.innerHTML=n;const t=Pr.textContent;return t.charCodeAt(t.length-1)===59&&e!=="semi"||t===n?!1:t}function Ue(e,n,t,r){const i=e.length;let o=0,l;if(n<0?n=-n>i?0:i+n:n=n>i?i:n,t=t>0?t:0,r.length<1e4)l=Array.from(r),l.unshift(n,t),e.splice(...l);else for(t&&e.splice(n,t);o<r.length;)l=r.slice(o,o+1e4),l.unshift(n,0),e.splice(...l),o+=1e4,n+=1e4}function Le(e,n){return e.length>0?(Ue(e,e.length,0,n),e):n}const Lr={}.hasOwnProperty;function Wl(e){const n={};let t=-1;for(;++t<e.length;)Yl(n,e[t]);return n}function Yl(e,n){let t;for(t in n){const i=(Lr.call(e,t)?e[t]:void 0)||(e[t]={}),o=n[t];let l;if(o)for(l in o){Lr.call(i,l)||(i[l]=[]);const a=o[l];ql(i[l],Array.isArray(a)?a:a?[a]:[])}}}function ql(e,n){let t=-1;const r=[];for(;++t<n.length;)(n[t].add==="after"?e:r).push(n[t]);Ue(e,0,0,r)}function jr(e,n){const t=Number.parseInt(e,n);return t<9||t===11||t>13&&t<32||t>126&&t<160||t>55295&&t<57344||t>64975&&t<65008||(t&65535)===65535||(t&65535)===65534||t>1114111?"�":String.fromCodePoint(t)}function ln(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const He=Ye(/[A-Za-z]/),Re=Ye(/[\dA-Za-z]/),Gl=Ye(/[#-'*+\--9=?A-Z^-~]/);function ht(e){return e!==null&&(e<32||e===127)}const dt=Ye(/\d/),Kl=Ye(/[\dA-Fa-f]/),Xl=Ye(/[!-/:-@[-`{-~]/);function z(e){return e!==null&&e<-2}function Te(e){return e!==null&&(e<0||e===32)}function Q(e){return e===-2||e===-1||e===32}const Ql=Ye(new RegExp("\\p{P}|\\p{S}","u")),Jl=Ye(/\s/);function Ye(e){return n;function n(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}function an(e){const n=[];let t=-1,r=0,i=0;for(;++t<e.length;){const o=e.charCodeAt(t);let l="";if(o===37&&Re(e.charCodeAt(t+1))&&Re(e.charCodeAt(t+2)))i=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(l=String.fromCharCode(o));else if(o>55295&&o<57344){const a=e.charCodeAt(t+1);o<56320&&a>56319&&a<57344?(l=String.fromCharCode(o,a),i=1):l="�"}else l=String.fromCharCode(o);l&&(n.push(e.slice(r,t),encodeURIComponent(l)),r=t+i+1,l=""),i&&(t+=i,i=0)}return n.join("")+e.slice(r)}function re(e,n,t,r){const i=r?r-1:Number.POSITIVE_INFINITY;let o=0;return l;function l(u){return Q(u)?(e.enter(t),a(u)):n(u)}function a(u){return Q(u)&&o++<i?(e.consume(u),a):(e.exit(t),n(u))}}const Zl={tokenize:$l};function $l(e){const n=e.attempt(this.parser.constructs.contentInitial,r,i);let t;return n;function r(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),re(e,n,"linePrefix")}function i(a){return e.enter("paragraph"),o(a)}function o(a){const u=e.enter("chunkText",{contentType:"text",previous:t});return t&&(t.next=u),t=u,l(a)}function l(a){if(a===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(a);return}return z(a)?(e.consume(a),e.exit("chunkText"),o):(e.consume(a),l)}}const ea={tokenize:na},Dr={tokenize:ta};function na(e){const n=this,t=[];let r=0,i,o,l;return a;function a(_){if(r<t.length){const U=t[r];return n.containerState=U[1],e.attempt(U[0].continuation,u,c)(_)}return c(_)}function u(_){if(r++,n.containerState._closeFlow){n.containerState._closeFlow=void 0,i&&O();const U=n.events.length;let Y=U,w;for(;Y--;)if(n.events[Y][0]==="exit"&&n.events[Y][1].type==="chunkFlow"){w=n.events[Y][1].end;break}k(r);let D=U;for(;D<n.events.length;)n.events[D][1].end={...w},D++;return Ue(n.events,Y+1,0,n.events.slice(U)),n.events.length=D,c(_)}return a(_)}function c(_){if(r===t.length){if(!i)return h(_);if(i.currentConstruct&&i.currentConstruct.concrete)return y(_);n.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return n.containerState={},e.check(Dr,s,f)(_)}function s(_){return i&&O(),k(r),h(_)}function f(_){return n.parser.lazy[n.now().line]=r!==t.length,l=n.now().offset,y(_)}function h(_){return n.containerState={},e.attempt(Dr,p,y)(_)}function p(_){return r++,t.push([n.currentConstruct,n.containerState]),h(_)}function y(_){if(_===null){i&&O(),k(0),e.consume(_);return}return i=i||n.parser.flow(n.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:o}),x(_)}function x(_){if(_===null){T(e.exit("chunkFlow"),!0),k(0),e.consume(_);return}return z(_)?(e.consume(_),T(e.exit("chunkFlow")),r=0,n.interrupt=void 0,a):(e.consume(_),x)}function T(_,U){const Y=n.sliceStream(_);if(U&&Y.push(null),_.previous=o,o&&(o.next=_),o=_,i.defineSkip(_.start),i.write(Y),n.parser.lazy[_.start.line]){let w=i.events.length;for(;w--;)if(i.events[w][1].start.offset<l&&(!i.events[w][1].end||i.events[w][1].end.offset>l))return;const D=n.events.length;let G=D,W,J;for(;G--;)if(n.events[G][0]==="exit"&&n.events[G][1].type==="chunkFlow"){if(W){J=n.events[G][1].end;break}W=!0}for(k(r),w=D;w<n.events.length;)n.events[w][1].end={...J},w++;Ue(n.events,G+1,0,n.events.slice(D)),n.events.length=w}}function k(_){let U=t.length;for(;U-- >_;){const Y=t[U];n.containerState=Y[1],Y[0].exit.call(n,e)}t.length=_}function O(){i.write([null]),o=void 0,i=void 0,n.containerState._closeFlow=void 0}}function ta(e,n,t){return re(e,e.attempt(this.parser.constructs.document,n,t),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Nr(e){if(e===null||Te(e)||Jl(e))return 1;if(Ql(e))return 2}function mt(e,n,t){const r=[];let i=-1;for(;++i<e.length;){const o=e[i].resolveAll;o&&!r.includes(o)&&(n=o(n,t),r.push(o))}return n}const gt={name:"attention",resolveAll:ra,tokenize:ia};function ra(e,n){let t=-1,r,i,o,l,a,u,c,s;for(;++t<e.length;)if(e[t][0]==="enter"&&e[t][1].type==="attentionSequence"&&e[t][1]._close){for(r=t;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&n.sliceSerialize(e[r][1]).charCodeAt(0)===n.sliceSerialize(e[t][1]).charCodeAt(0)){if((e[r][1]._close||e[t][1]._open)&&(e[t][1].end.offset-e[t][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[t][1].end.offset-e[t][1].start.offset)%3))continue;u=e[r][1].end.offset-e[r][1].start.offset>1&&e[t][1].end.offset-e[t][1].start.offset>1?2:1;const f={...e[r][1].end},h={...e[t][1].start};Fr(f,-u),Fr(h,u),l={type:u>1?"strongSequence":"emphasisSequence",start:f,end:{...e[r][1].end}},a={type:u>1?"strongSequence":"emphasisSequence",start:{...e[t][1].start},end:h},o={type:u>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[t][1].start}},i={type:u>1?"strong":"emphasis",start:{...l.start},end:{...a.end}},e[r][1].end={...l.start},e[t][1].start={...a.end},c=[],e[r][1].end.offset-e[r][1].start.offset&&(c=Le(c,[["enter",e[r][1],n],["exit",e[r][1],n]])),c=Le(c,[["enter",i,n],["enter",l,n],["exit",l,n],["enter",o,n]]),c=Le(c,mt(n.parser.constructs.insideSpan.null,e.slice(r+1,t),n)),c=Le(c,[["exit",o,n],["enter",a,n],["exit",a,n],["exit",i,n]]),e[t][1].end.offset-e[t][1].start.offset?(s=2,c=Le(c,[["enter",e[t][1],n],["exit",e[t][1],n]])):s=0,Ue(e,r-1,t-r+3,c),t=r+c.length-s-2;break}}for(t=-1;++t<e.length;)e[t][1].type==="attentionSequence"&&(e[t][1].type="data");return e}function ia(e,n){const t=this.parser.constructs.attentionMarkers.null,r=this.previous,i=Nr(r);let o;return l;function l(u){return o=u,e.enter("attentionSequence"),a(u)}function a(u){if(u===o)return e.consume(u),a;const c=e.exit("attentionSequence"),s=Nr(u),f=!s||s===2&&i||t.includes(u),h=!i||i===2&&s||t.includes(r);return c._open=!!(o===42?f:f&&(i||!h)),c._close=!!(o===42?h:h&&(s||!f)),n(u)}}function Fr(e,n){e.column+=n,e.offset+=n,e._bufferIndex+=n}const oa={name:"autolink",tokenize:la};function la(e,n,t){let r=0;return i;function i(p){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o}function o(p){return He(p)?(e.consume(p),l):p===64?t(p):c(p)}function l(p){return p===43||p===45||p===46||Re(p)?(r=1,a(p)):c(p)}function a(p){return p===58?(e.consume(p),r=0,u):(p===43||p===45||p===46||Re(p))&&r++<32?(e.consume(p),a):(r=0,c(p))}function u(p){return p===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),n):p===null||p===32||p===60||ht(p)?t(p):(e.consume(p),u)}function c(p){return p===64?(e.consume(p),s):Gl(p)?(e.consume(p),c):t(p)}function s(p){return Re(p)?f(p):t(p)}function f(p){return p===46?(e.consume(p),r=0,s):p===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),n):h(p)}function h(p){if((p===45||Re(p))&&r++<63){const y=p===45?h:f;return e.consume(p),y}return t(p)}}const An={partial:!0,tokenize:aa};function aa(e,n,t){return r;function r(o){return Q(o)?re(e,i,"linePrefix")(o):i(o)}function i(o){return o===null||z(o)?n(o):t(o)}}const Mr={continuation:{tokenize:ua},exit:ca,name:"blockQuote",tokenize:sa};function sa(e,n,t){const r=this;return i;function i(l){if(l===62){const a=r.containerState;return a.open||(e.enter("blockQuote",{_container:!0}),a.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(l),e.exit("blockQuoteMarker"),o}return t(l)}function o(l){return Q(l)?(e.enter("blockQuotePrefixWhitespace"),e.consume(l),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),n):(e.exit("blockQuotePrefix"),n(l))}}function ua(e,n,t){const r=this;return i;function i(l){return Q(l)?re(e,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l):o(l)}function o(l){return e.attempt(Mr,n,t)(l)}}function ca(e){e.exit("blockQuote")}const zr={name:"characterEscape",tokenize:fa};function fa(e,n,t){return r;function r(o){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(o),e.exit("escapeMarker"),i}function i(o){return Xl(o)?(e.enter("characterEscapeValue"),e.consume(o),e.exit("characterEscapeValue"),e.exit("characterEscape"),n):t(o)}}const Br={name:"characterReference",tokenize:pa};function pa(e,n,t){const r=this;let i=0,o,l;return a;function a(f){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),u}function u(f){return f===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(f),e.exit("characterReferenceMarkerNumeric"),c):(e.enter("characterReferenceValue"),o=31,l=Re,s(f))}function c(f){return f===88||f===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(f),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,l=Kl,s):(e.enter("characterReferenceValue"),o=7,l=dt,s(f))}function s(f){if(f===59&&i){const h=e.exit("characterReferenceValue");return l===Re&&!pt(r.sliceSerialize(h))?t(f):(e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),e.exit("characterReference"),n)}return l(f)&&i++<o?(e.consume(f),s):t(f)}}const Vr={partial:!0,tokenize:da},Ur={concrete:!0,name:"codeFenced",tokenize:ha};function ha(e,n,t){const r=this,i={partial:!0,tokenize:Y};let o=0,l=0,a;return u;function u(w){return c(w)}function c(w){const D=r.events[r.events.length-1];return o=D&&D[1].type==="linePrefix"?D[2].sliceSerialize(D[1],!0).length:0,a=w,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),s(w)}function s(w){return w===a?(l++,e.consume(w),s):l<3?t(w):(e.exit("codeFencedFenceSequence"),Q(w)?re(e,f,"whitespace")(w):f(w))}function f(w){return w===null||z(w)?(e.exit("codeFencedFence"),r.interrupt?n(w):e.check(Vr,x,U)(w)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),h(w))}function h(w){return w===null||z(w)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),f(w)):Q(w)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),re(e,p,"whitespace")(w)):w===96&&w===a?t(w):(e.consume(w),h)}function p(w){return w===null||z(w)?f(w):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),y(w))}function y(w){return w===null||z(w)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),f(w)):w===96&&w===a?t(w):(e.consume(w),y)}function x(w){return e.attempt(i,U,T)(w)}function T(w){return e.enter("lineEnding"),e.consume(w),e.exit("lineEnding"),k}function k(w){return o>0&&Q(w)?re(e,O,"linePrefix",o+1)(w):O(w)}function O(w){return w===null||z(w)?e.check(Vr,x,U)(w):(e.enter("codeFlowValue"),_(w))}function _(w){return w===null||z(w)?(e.exit("codeFlowValue"),O(w)):(e.consume(w),_)}function U(w){return e.exit("codeFenced"),n(w)}function Y(w,D,G){let W=0;return J;function J(F){return w.enter("lineEnding"),w.consume(F),w.exit("lineEnding"),P}function P(F){return w.enter("codeFencedFence"),Q(F)?re(w,L,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(F):L(F)}function L(F){return F===a?(w.enter("codeFencedFenceSequence"),$(F)):G(F)}function $(F){return F===a?(W++,w.consume(F),$):W>=l?(w.exit("codeFencedFenceSequence"),Q(F)?re(w,Z,"whitespace")(F):Z(F)):G(F)}function Z(F){return F===null||z(F)?(w.exit("codeFencedFence"),D(F)):G(F)}}}function da(e,n,t){const r=this;return i;function i(l){return l===null?t(l):(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),o)}function o(l){return r.parser.lazy[r.now().line]?t(l):n(l)}}const yt={name:"codeIndented",tokenize:ga},ma={partial:!0,tokenize:ya};function ga(e,n,t){const r=this;return i;function i(c){return e.enter("codeIndented"),re(e,o,"linePrefix",5)(c)}function o(c){const s=r.events[r.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?l(c):t(c)}function l(c){return c===null?u(c):z(c)?e.attempt(ma,l,u)(c):(e.enter("codeFlowValue"),a(c))}function a(c){return c===null||z(c)?(e.exit("codeFlowValue"),l(c)):(e.consume(c),a)}function u(c){return e.exit("codeIndented"),n(c)}}function ya(e,n,t){const r=this;return i;function i(l){return r.parser.lazy[r.now().line]?t(l):z(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),i):re(e,o,"linePrefix",5)(l)}function o(l){const a=r.events[r.events.length-1];return a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?n(l):z(l)?i(l):t(l)}}const xa={name:"codeText",previous:wa,resolve:ba,tokenize:ka};function ba(e){let n=e.length-4,t=3,r,i;if((e[t][1].type==="lineEnding"||e[t][1].type==="space")&&(e[n][1].type==="lineEnding"||e[n][1].type==="space")){for(r=t;++r<n;)if(e[r][1].type==="codeTextData"){e[t][1].type="codeTextPadding",e[n][1].type="codeTextPadding",t+=2,n-=2;break}}for(r=t-1,n++;++r<=n;)i===void 0?r!==n&&e[r][1].type!=="lineEnding"&&(i=r):(r===n||e[r][1].type==="lineEnding")&&(e[i][1].type="codeTextData",r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),n-=r-i-2,r=i+2),i=void 0);return e}function wa(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function ka(e,n,t){let r=0,i,o;return l;function l(f){return e.enter("codeText"),e.enter("codeTextSequence"),a(f)}function a(f){return f===96?(e.consume(f),r++,a):(e.exit("codeTextSequence"),u(f))}function u(f){return f===null?t(f):f===32?(e.enter("space"),e.consume(f),e.exit("space"),u):f===96?(o=e.enter("codeTextSequence"),i=0,s(f)):z(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),u):(e.enter("codeTextData"),c(f))}function c(f){return f===null||f===32||f===96||z(f)?(e.exit("codeTextData"),u(f)):(e.consume(f),c)}function s(f){return f===96?(e.consume(f),i++,s):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),n(f)):(o.type="codeTextData",c(f))}}class va{constructor(n){this.left=n?[...n]:[],this.right=[]}get(n){if(n<0||n>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+n+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return n<this.left.length?this.left[n]:this.right[this.right.length-n+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(n,t){const r=t??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(n,r):n>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-n+this.left.length).reverse():this.left.slice(n).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(n,t,r){const i=t||0;this.setCursor(Math.trunc(n));const o=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&xn(this.left,r),o.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(n){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(n)}pushMany(n){this.setCursor(Number.POSITIVE_INFINITY),xn(this.left,n)}unshift(n){this.setCursor(0),this.right.push(n)}unshiftMany(n){this.setCursor(0),xn(this.right,n.reverse())}setCursor(n){if(!(n===this.left.length||n>this.left.length&&this.right.length===0||n<0&&this.left.length===0))if(n<this.left.length){const t=this.left.splice(n,Number.POSITIVE_INFINITY);xn(this.right,t.reverse())}else{const t=this.right.splice(this.left.length+this.right.length-n,Number.POSITIVE_INFINITY);xn(this.left,t.reverse())}}}function xn(e,n){let t=0;if(n.length<1e4)e.push(...n);else for(;t<n.length;)e.push(...n.slice(t,t+1e4)),t+=1e4}function Hr(e){const n={};let t=-1,r,i,o,l,a,u,c;const s=new va(e);for(;++t<s.length;){for(;t in n;)t=n[t];if(r=s.get(t),t&&r[1].type==="chunkFlow"&&s.get(t-1)[1].type==="listItemPrefix"&&(u=r[1]._tokenizer.events,o=0,o<u.length&&u[o][1].type==="lineEndingBlank"&&(o+=2),o<u.length&&u[o][1].type==="content"))for(;++o<u.length&&u[o][1].type!=="content";)u[o][1].type==="chunkText"&&(u[o][1]._isInFirstContentOfListItem=!0,o++);if(r[0]==="enter")r[1].contentType&&(Object.assign(n,Sa(s,t)),t=n[t],c=!0);else if(r[1]._container){for(o=t,i=void 0;o--;)if(l=s.get(o),l[1].type==="lineEnding"||l[1].type==="lineEndingBlank")l[0]==="enter"&&(i&&(s.get(i)[1].type="lineEndingBlank"),l[1].type="lineEnding",i=o);else if(!(l[1].type==="linePrefix"||l[1].type==="listItemIndent"))break;i&&(r[1].end={...s.get(i)[1].start},a=s.slice(i,t),a.unshift(r),s.splice(i,t-i+1,a))}}return Ue(e,0,Number.POSITIVE_INFINITY,s.slice(0)),!c}function Sa(e,n){const t=e.get(n)[1],r=e.get(n)[2];let i=n-1;const o=[];let l=t._tokenizer;l||(l=r.parser[t.contentType](t.start),t._contentTypeTextTrailing&&(l._contentTypeTextTrailing=!0));const a=l.events,u=[],c={};let s,f,h=-1,p=t,y=0,x=0;const T=[x];for(;p;){for(;e.get(++i)[1]!==p;);o.push(i),p._tokenizer||(s=r.sliceStream(p),p.next||s.push(null),f&&l.defineSkip(p.start),p._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=!0),l.write(s),p._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=void 0)),f=p,p=p.next}for(p=t;++h<a.length;)a[h][0]==="exit"&&a[h-1][0]==="enter"&&a[h][1].type===a[h-1][1].type&&a[h][1].start.line!==a[h][1].end.line&&(x=h+1,T.push(x),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(l.events=[],p?(p._tokenizer=void 0,p.previous=void 0):T.pop(),h=T.length;h--;){const k=a.slice(T[h],T[h+1]),O=o.pop();u.push([O,O+k.length-1]),e.splice(O,2,k)}for(u.reverse(),h=-1;++h<u.length;)c[y+u[h][0]]=y+u[h][1],y+=u[h][1]-u[h][0]-1;return c}const Ea={resolve:_a,tokenize:Ta},Ca={partial:!0,tokenize:Ia};function _a(e){return Hr(e),e}function Ta(e,n){let t;return r;function r(a){return e.enter("content"),t=e.enter("chunkContent",{contentType:"content"}),i(a)}function i(a){return a===null?o(a):z(a)?e.check(Ca,l,o)(a):(e.consume(a),i)}function o(a){return e.exit("chunkContent"),e.exit("content"),n(a)}function l(a){return e.consume(a),e.exit("chunkContent"),t.next=e.enter("chunkContent",{contentType:"content",previous:t}),t=t.next,i}}function Ia(e,n,t){const r=this;return i;function i(l){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),re(e,o,"linePrefix")}function o(l){if(l===null||z(l))return t(l);const a=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?n(l):e.interrupt(r.parser.constructs.flow,t,n)(l)}}function Wr(e,n,t,r,i,o,l,a,u){const c=u||Number.POSITIVE_INFINITY;let s=0;return f;function f(k){return k===60?(e.enter(r),e.enter(i),e.enter(o),e.consume(k),e.exit(o),h):k===null||k===32||k===41||ht(k)?t(k):(e.enter(r),e.enter(l),e.enter(a),e.enter("chunkString",{contentType:"string"}),x(k))}function h(k){return k===62?(e.enter(o),e.consume(k),e.exit(o),e.exit(i),e.exit(r),n):(e.enter(a),e.enter("chunkString",{contentType:"string"}),p(k))}function p(k){return k===62?(e.exit("chunkString"),e.exit(a),h(k)):k===null||k===60||z(k)?t(k):(e.consume(k),k===92?y:p)}function y(k){return k===60||k===62||k===92?(e.consume(k),p):p(k)}function x(k){return!s&&(k===null||k===41||Te(k))?(e.exit("chunkString"),e.exit(a),e.exit(l),e.exit(r),n(k)):s<c&&k===40?(e.consume(k),s++,x):k===41?(e.consume(k),s--,x):k===null||k===32||k===40||ht(k)?t(k):(e.consume(k),k===92?T:x)}function T(k){return k===40||k===41||k===92?(e.consume(k),x):x(k)}}function Yr(e,n,t,r,i,o){const l=this;let a=0,u;return c;function c(p){return e.enter(r),e.enter(i),e.consume(p),e.exit(i),e.enter(o),s}function s(p){return a>999||p===null||p===91||p===93&&!u||p===94&&!a&&"_hiddenFootnoteSupport"in l.parser.constructs?t(p):p===93?(e.exit(o),e.enter(i),e.consume(p),e.exit(i),e.exit(r),n):z(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),s):(e.enter("chunkString",{contentType:"string"}),f(p))}function f(p){return p===null||p===91||p===93||z(p)||a++>999?(e.exit("chunkString"),s(p)):(e.consume(p),u||(u=!Q(p)),p===92?h:f)}function h(p){return p===91||p===92||p===93?(e.consume(p),a++,f):f(p)}}function qr(e,n,t,r,i,o){let l;return a;function a(h){return h===34||h===39||h===40?(e.enter(r),e.enter(i),e.consume(h),e.exit(i),l=h===40?41:h,u):t(h)}function u(h){return h===l?(e.enter(i),e.consume(h),e.exit(i),e.exit(r),n):(e.enter(o),c(h))}function c(h){return h===l?(e.exit(o),u(l)):h===null?t(h):z(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),re(e,c,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),s(h))}function s(h){return h===l||h===null||z(h)?(e.exit("chunkString"),c(h)):(e.consume(h),h===92?f:s)}function f(h){return h===l||h===92?(e.consume(h),s):s(h)}}function bn(e,n){let t;return r;function r(i){return z(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),t=!0,r):Q(i)?re(e,r,t?"linePrefix":"lineSuffix")(i):n(i)}}const Aa={name:"definition",tokenize:Ra},Oa={partial:!0,tokenize:Pa};function Ra(e,n,t){const r=this;let i;return o;function o(p){return e.enter("definition"),l(p)}function l(p){return Yr.call(r,e,a,t,"definitionLabel","definitionLabelMarker","definitionLabelString")(p)}function a(p){return i=ln(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),p===58?(e.enter("definitionMarker"),e.consume(p),e.exit("definitionMarker"),u):t(p)}function u(p){return Te(p)?bn(e,c)(p):c(p)}function c(p){return Wr(e,s,t,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(p)}function s(p){return e.attempt(Oa,f,f)(p)}function f(p){return Q(p)?re(e,h,"whitespace")(p):h(p)}function h(p){return p===null||z(p)?(e.exit("definition"),r.parser.defined.push(i),n(p)):t(p)}}function Pa(e,n,t){return r;function r(a){return Te(a)?bn(e,i)(a):t(a)}function i(a){return qr(e,o,t,"definitionTitle","definitionTitleMarker","definitionTitleString")(a)}function o(a){return Q(a)?re(e,l,"whitespace")(a):l(a)}function l(a){return a===null||z(a)?n(a):t(a)}}const La={name:"hardBreakEscape",tokenize:ja};function ja(e,n,t){return r;function r(o){return e.enter("hardBreakEscape"),e.consume(o),i}function i(o){return z(o)?(e.exit("hardBreakEscape"),n(o)):t(o)}}const Da={name:"headingAtx",resolve:Na,tokenize:Fa};function Na(e,n){let t=e.length-2,r=3,i,o;return e[r][1].type==="whitespace"&&(r+=2),t-2>r&&e[t][1].type==="whitespace"&&(t-=2),e[t][1].type==="atxHeadingSequence"&&(r===t-1||t-4>r&&e[t-2][1].type==="whitespace")&&(t-=r+1===t?2:4),t>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[t][1].end},o={type:"chunkText",start:e[r][1].start,end:e[t][1].end,contentType:"text"},Ue(e,r,t-r+1,[["enter",i,n],["enter",o,n],["exit",o,n],["exit",i,n]])),e}function Fa(e,n,t){let r=0;return i;function i(s){return e.enter("atxHeading"),o(s)}function o(s){return e.enter("atxHeadingSequence"),l(s)}function l(s){return s===35&&r++<6?(e.consume(s),l):s===null||Te(s)?(e.exit("atxHeadingSequence"),a(s)):t(s)}function a(s){return s===35?(e.enter("atxHeadingSequence"),u(s)):s===null||z(s)?(e.exit("atxHeading"),n(s)):Q(s)?re(e,a,"whitespace")(s):(e.enter("atxHeadingText"),c(s))}function u(s){return s===35?(e.consume(s),u):(e.exit("atxHeadingSequence"),a(s))}function c(s){return s===null||s===35||Te(s)?(e.exit("atxHeadingText"),a(s)):(e.consume(s),c)}}const Ma=["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"],Gr=["pre","script","style","textarea"],za={concrete:!0,name:"htmlFlow",resolveTo:Ua,tokenize:Ha},Ba={partial:!0,tokenize:Ya},Va={partial:!0,tokenize:Wa};function Ua(e){let n=e.length;for(;n--&&!(e[n][0]==="enter"&&e[n][1].type==="htmlFlow"););return n>1&&e[n-2][1].type==="linePrefix"&&(e[n][1].start=e[n-2][1].start,e[n+1][1].start=e[n-2][1].start,e.splice(n-2,2)),e}function Ha(e,n,t){const r=this;let i,o,l,a,u;return c;function c(g){return s(g)}function s(g){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(g),f}function f(g){return g===33?(e.consume(g),h):g===47?(e.consume(g),o=!0,x):g===63?(e.consume(g),i=3,r.interrupt?n:m):He(g)?(e.consume(g),l=String.fromCharCode(g),T):t(g)}function h(g){return g===45?(e.consume(g),i=2,p):g===91?(e.consume(g),i=5,a=0,y):He(g)?(e.consume(g),i=4,r.interrupt?n:m):t(g)}function p(g){return g===45?(e.consume(g),r.interrupt?n:m):t(g)}function y(g){const be="CDATA[";return g===be.charCodeAt(a++)?(e.consume(g),a===be.length?r.interrupt?n:L:y):t(g)}function x(g){return He(g)?(e.consume(g),l=String.fromCharCode(g),T):t(g)}function T(g){if(g===null||g===47||g===62||Te(g)){const be=g===47,Ne=l.toLowerCase();return!be&&!o&&Gr.includes(Ne)?(i=1,r.interrupt?n(g):L(g)):Ma.includes(l.toLowerCase())?(i=6,be?(e.consume(g),k):r.interrupt?n(g):L(g)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?t(g):o?O(g):_(g))}return g===45||Re(g)?(e.consume(g),l+=String.fromCharCode(g),T):t(g)}function k(g){return g===62?(e.consume(g),r.interrupt?n:L):t(g)}function O(g){return Q(g)?(e.consume(g),O):J(g)}function _(g){return g===47?(e.consume(g),J):g===58||g===95||He(g)?(e.consume(g),U):Q(g)?(e.consume(g),_):J(g)}function U(g){return g===45||g===46||g===58||g===95||Re(g)?(e.consume(g),U):Y(g)}function Y(g){return g===61?(e.consume(g),w):Q(g)?(e.consume(g),Y):_(g)}function w(g){return g===null||g===60||g===61||g===62||g===96?t(g):g===34||g===39?(e.consume(g),u=g,D):Q(g)?(e.consume(g),w):G(g)}function D(g){return g===u?(e.consume(g),u=null,W):g===null||z(g)?t(g):(e.consume(g),D)}function G(g){return g===null||g===34||g===39||g===47||g===60||g===61||g===62||g===96||Te(g)?Y(g):(e.consume(g),G)}function W(g){return g===47||g===62||Q(g)?_(g):t(g)}function J(g){return g===62?(e.consume(g),P):t(g)}function P(g){return g===null||z(g)?L(g):Q(g)?(e.consume(g),P):t(g)}function L(g){return g===45&&i===2?(e.consume(g),ie):g===60&&i===1?(e.consume(g),j):g===62&&i===4?(e.consume(g),xe):g===63&&i===3?(e.consume(g),m):g===93&&i===5?(e.consume(g),ae):z(g)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(Ba,we,$)(g)):g===null||z(g)?(e.exit("htmlFlowData"),$(g)):(e.consume(g),L)}function $(g){return e.check(Va,Z,we)(g)}function Z(g){return e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),F}function F(g){return g===null||z(g)?$(g):(e.enter("htmlFlowData"),L(g))}function ie(g){return g===45?(e.consume(g),m):L(g)}function j(g){return g===47?(e.consume(g),l="",oe):L(g)}function oe(g){if(g===62){const be=l.toLowerCase();return Gr.includes(be)?(e.consume(g),xe):L(g)}return He(g)&&l.length<8?(e.consume(g),l+=String.fromCharCode(g),oe):L(g)}function ae(g){return g===93?(e.consume(g),m):L(g)}function m(g){return g===62?(e.consume(g),xe):g===45&&i===2?(e.consume(g),m):L(g)}function xe(g){return g===null||z(g)?(e.exit("htmlFlowData"),we(g)):(e.consume(g),xe)}function we(g){return e.exit("htmlFlow"),n(g)}}function Wa(e,n,t){const r=this;return i;function i(l){return z(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),o):t(l)}function o(l){return r.parser.lazy[r.now().line]?t(l):n(l)}}function Ya(e,n,t){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(An,n,t)}}const qa={name:"htmlText",tokenize:Ga};function Ga(e,n,t){const r=this;let i,o,l;return a;function a(m){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(m),u}function u(m){return m===33?(e.consume(m),c):m===47?(e.consume(m),Y):m===63?(e.consume(m),_):He(m)?(e.consume(m),G):t(m)}function c(m){return m===45?(e.consume(m),s):m===91?(e.consume(m),o=0,y):He(m)?(e.consume(m),O):t(m)}function s(m){return m===45?(e.consume(m),p):t(m)}function f(m){return m===null?t(m):m===45?(e.consume(m),h):z(m)?(l=f,j(m)):(e.consume(m),f)}function h(m){return m===45?(e.consume(m),p):f(m)}function p(m){return m===62?ie(m):m===45?h(m):f(m)}function y(m){const xe="CDATA[";return m===xe.charCodeAt(o++)?(e.consume(m),o===xe.length?x:y):t(m)}function x(m){return m===null?t(m):m===93?(e.consume(m),T):z(m)?(l=x,j(m)):(e.consume(m),x)}function T(m){return m===93?(e.consume(m),k):x(m)}function k(m){return m===62?ie(m):m===93?(e.consume(m),k):x(m)}function O(m){return m===null||m===62?ie(m):z(m)?(l=O,j(m)):(e.consume(m),O)}function _(m){return m===null?t(m):m===63?(e.consume(m),U):z(m)?(l=_,j(m)):(e.consume(m),_)}function U(m){return m===62?ie(m):_(m)}function Y(m){return He(m)?(e.consume(m),w):t(m)}function w(m){return m===45||Re(m)?(e.consume(m),w):D(m)}function D(m){return z(m)?(l=D,j(m)):Q(m)?(e.consume(m),D):ie(m)}function G(m){return m===45||Re(m)?(e.consume(m),G):m===47||m===62||Te(m)?W(m):t(m)}function W(m){return m===47?(e.consume(m),ie):m===58||m===95||He(m)?(e.consume(m),J):z(m)?(l=W,j(m)):Q(m)?(e.consume(m),W):ie(m)}function J(m){return m===45||m===46||m===58||m===95||Re(m)?(e.consume(m),J):P(m)}function P(m){return m===61?(e.consume(m),L):z(m)?(l=P,j(m)):Q(m)?(e.consume(m),P):W(m)}function L(m){return m===null||m===60||m===61||m===62||m===96?t(m):m===34||m===39?(e.consume(m),i=m,$):z(m)?(l=L,j(m)):Q(m)?(e.consume(m),L):(e.consume(m),Z)}function $(m){return m===i?(e.consume(m),i=void 0,F):m===null?t(m):z(m)?(l=$,j(m)):(e.consume(m),$)}function Z(m){return m===null||m===34||m===39||m===60||m===61||m===96?t(m):m===47||m===62||Te(m)?W(m):(e.consume(m),Z)}function F(m){return m===47||m===62||Te(m)?W(m):t(m)}function ie(m){return m===62?(e.consume(m),e.exit("htmlTextData"),e.exit("htmlText"),n):t(m)}function j(m){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),oe}function oe(m){return Q(m)?re(e,ae,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(m):ae(m)}function ae(m){return e.enter("htmlTextData"),l(m)}}const xt={name:"labelEnd",resolveAll:Ja,resolveTo:Za,tokenize:$a},Ka={tokenize:es},Xa={tokenize:ns},Qa={tokenize:ts};function Ja(e){let n=-1;const t=[];for(;++n<e.length;){const r=e[n][1];if(t.push(e[n]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const i=r.type==="labelImage"?4:2;r.type="data",n+=i}}return e.length!==t.length&&Ue(e,0,e.length,t),e}function Za(e,n){let t=e.length,r=0,i,o,l,a;for(;t--;)if(i=e[t][1],o){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[t][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(l){if(e[t][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(o=t,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(l=t);const u={type:e[o][1].type==="labelLink"?"link":"image",start:{...e[o][1].start},end:{...e[e.length-1][1].end}},c={type:"label",start:{...e[o][1].start},end:{...e[l][1].end}},s={type:"labelText",start:{...e[o+r+2][1].end},end:{...e[l-2][1].start}};return a=[["enter",u,n],["enter",c,n]],a=Le(a,e.slice(o+1,o+r+3)),a=Le(a,[["enter",s,n]]),a=Le(a,mt(n.parser.constructs.insideSpan.null,e.slice(o+r+4,l-3),n)),a=Le(a,[["exit",s,n],e[l-2],e[l-1],["exit",c,n]]),a=Le(a,e.slice(l+1)),a=Le(a,[["exit",u,n]]),Ue(e,o,e.length,a),e}function $a(e,n,t){const r=this;let i=r.events.length,o,l;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){o=r.events[i][1];break}return a;function a(h){return o?o._inactive?f(h):(l=r.parser.defined.includes(ln(r.sliceSerialize({start:o.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(h),e.exit("labelMarker"),e.exit("labelEnd"),u):t(h)}function u(h){return h===40?e.attempt(Ka,s,l?s:f)(h):h===91?e.attempt(Xa,s,l?c:f)(h):l?s(h):f(h)}function c(h){return e.attempt(Qa,s,f)(h)}function s(h){return n(h)}function f(h){return o._balanced=!0,t(h)}}function es(e,n,t){return r;function r(f){return e.enter("resource"),e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),i}function i(f){return Te(f)?bn(e,o)(f):o(f)}function o(f){return f===41?s(f):Wr(e,l,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(f)}function l(f){return Te(f)?bn(e,u)(f):s(f)}function a(f){return t(f)}function u(f){return f===34||f===39||f===40?qr(e,c,t,"resourceTitle","resourceTitleMarker","resourceTitleString")(f):s(f)}function c(f){return Te(f)?bn(e,s)(f):s(f)}function s(f){return f===41?(e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),e.exit("resource"),n):t(f)}}function ns(e,n,t){const r=this;return i;function i(a){return Yr.call(r,e,o,l,"reference","referenceMarker","referenceString")(a)}function o(a){return r.parser.defined.includes(ln(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?n(a):t(a)}function l(a){return t(a)}}function ts(e,n,t){return r;function r(o){return e.enter("reference"),e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),i}function i(o){return o===93?(e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),e.exit("reference"),n):t(o)}}const rs={name:"labelStartImage",resolveAll:xt.resolveAll,tokenize:is};function is(e,n,t){const r=this;return i;function i(a){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(a),e.exit("labelImageMarker"),o}function o(a){return a===91?(e.enter("labelMarker"),e.consume(a),e.exit("labelMarker"),e.exit("labelImage"),l):t(a)}function l(a){return a===94&&"_hiddenFootnoteSupport"in r.parser.constructs?t(a):n(a)}}const os={name:"labelStartLink",resolveAll:xt.resolveAll,tokenize:ls};function ls(e,n,t){const r=this;return i;function i(l){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(l),e.exit("labelMarker"),e.exit("labelLink"),o}function o(l){return l===94&&"_hiddenFootnoteSupport"in r.parser.constructs?t(l):n(l)}}const bt={name:"lineEnding",tokenize:as};function as(e,n){return t;function t(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),re(e,n,"linePrefix")}}const On={name:"thematicBreak",tokenize:ss};function ss(e,n,t){let r=0,i;return o;function o(c){return e.enter("thematicBreak"),l(c)}function l(c){return i=c,a(c)}function a(c){return c===i?(e.enter("thematicBreakSequence"),u(c)):r>=3&&(c===null||z(c))?(e.exit("thematicBreak"),n(c)):t(c)}function u(c){return c===i?(e.consume(c),r++,u):(e.exit("thematicBreakSequence"),Q(c)?re(e,a,"whitespace")(c):a(c))}}const Ie={continuation:{tokenize:ps},exit:ds,name:"list",tokenize:fs},us={partial:!0,tokenize:ms},cs={partial:!0,tokenize:hs};function fs(e,n,t){const r=this,i=r.events[r.events.length-1];let o=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,l=0;return a;function a(p){const y=r.containerState.type||(p===42||p===43||p===45?"listUnordered":"listOrdered");if(y==="listUnordered"?!r.containerState.marker||p===r.containerState.marker:dt(p)){if(r.containerState.type||(r.containerState.type=y,e.enter(y,{_container:!0})),y==="listUnordered")return e.enter("listItemPrefix"),p===42||p===45?e.check(On,t,c)(p):c(p);if(!r.interrupt||p===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),u(p)}return t(p)}function u(p){return dt(p)&&++l<10?(e.consume(p),u):(!r.interrupt||l<2)&&(r.containerState.marker?p===r.containerState.marker:p===41||p===46)?(e.exit("listItemValue"),c(p)):t(p)}function c(p){return e.enter("listItemMarker"),e.consume(p),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||p,e.check(An,r.interrupt?t:s,e.attempt(us,h,f))}function s(p){return r.containerState.initialBlankLine=!0,o++,h(p)}function f(p){return Q(p)?(e.enter("listItemPrefixWhitespace"),e.consume(p),e.exit("listItemPrefixWhitespace"),h):t(p)}function h(p){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,n(p)}}function ps(e,n,t){const r=this;return r.containerState._closeFlow=void 0,e.check(An,i,o);function i(a){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,re(e,n,"listItemIndent",r.containerState.size+1)(a)}function o(a){return r.containerState.furtherBlankLines||!Q(a)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,l(a)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(cs,n,l)(a))}function l(a){return r.containerState._closeFlow=!0,r.interrupt=void 0,re(e,e.attempt(Ie,n,t),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}function hs(e,n,t){const r=this;return re(e,i,"listItemIndent",r.containerState.size+1);function i(o){const l=r.events[r.events.length-1];return l&&l[1].type==="listItemIndent"&&l[2].sliceSerialize(l[1],!0).length===r.containerState.size?n(o):t(o)}}function ds(e){e.exit(this.containerState.type)}function ms(e,n,t){const r=this;return re(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(o){const l=r.events[r.events.length-1];return!Q(o)&&l&&l[1].type==="listItemPrefixWhitespace"?n(o):t(o)}}const Kr={name:"setextUnderline",resolveTo:gs,tokenize:ys};function gs(e,n){let t=e.length,r,i,o;for(;t--;)if(e[t][0]==="enter"){if(e[t][1].type==="content"){r=t;break}e[t][1].type==="paragraph"&&(i=t)}else e[t][1].type==="content"&&e.splice(t,1),!o&&e[t][1].type==="definition"&&(o=t);const l={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",o?(e.splice(i,0,["enter",l,n]),e.splice(o+1,0,["exit",e[r][1],n]),e[r][1].end={...e[o][1].end}):e[r][1]=l,e.push(["exit",l,n]),e}function ys(e,n,t){const r=this;let i;return o;function o(c){let s=r.events.length,f;for(;s--;)if(r.events[s][1].type!=="lineEnding"&&r.events[s][1].type!=="linePrefix"&&r.events[s][1].type!=="content"){f=r.events[s][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||f)?(e.enter("setextHeadingLine"),i=c,l(c)):t(c)}function l(c){return e.enter("setextHeadingLineSequence"),a(c)}function a(c){return c===i?(e.consume(c),a):(e.exit("setextHeadingLineSequence"),Q(c)?re(e,u,"lineSuffix")(c):u(c))}function u(c){return c===null||z(c)?(e.exit("setextHeadingLine"),n(c)):t(c)}}const xs={tokenize:bs};function bs(e){const n=this,t=e.attempt(An,r,e.attempt(this.parser.constructs.flowInitial,i,re(e,e.attempt(this.parser.constructs.flow,i,e.attempt(Ea,i)),"linePrefix")));return t;function r(o){if(o===null){e.consume(o);return}return e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),n.currentConstruct=void 0,t}function i(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),n.currentConstruct=void 0,t}}const ws={resolveAll:Qr()},ks=Xr("string"),vs=Xr("text");function Xr(e){return{resolveAll:Qr(e==="text"?Ss:void 0),tokenize:n};function n(t){const r=this,i=this.parser.constructs[e],o=t.attempt(i,l,a);return l;function l(s){return c(s)?o(s):a(s)}function a(s){if(s===null){t.consume(s);return}return t.enter("data"),t.consume(s),u}function u(s){return c(s)?(t.exit("data"),o(s)):(t.consume(s),u)}function c(s){if(s===null)return!0;const f=i[s];let h=-1;if(f)for(;++h<f.length;){const p=f[h];if(!p.previous||p.previous.call(r,r.previous))return!0}return!1}}}function Qr(e){return n;function n(t,r){let i=-1,o;for(;++i<=t.length;)o===void 0?t[i]&&t[i][1].type==="data"&&(o=i,i++):(!t[i]||t[i][1].type!=="data")&&(i!==o+2&&(t[o][1].end=t[i-1][1].end,t.splice(o+2,i-o-2),i=o+2),o=void 0);return e?e(t,r):t}}function Ss(e,n){let t=0;for(;++t<=e.length;)if((t===e.length||e[t][1].type==="lineEnding")&&e[t-1][1].type==="data"){const r=e[t-1][1],i=n.sliceStream(r);let o=i.length,l=-1,a=0,u;for(;o--;){const c=i[o];if(typeof c=="string"){for(l=c.length;c.charCodeAt(l-1)===32;)a++,l--;if(l)break;l=-1}else if(c===-2)u=!0,a++;else if(c!==-1){o++;break}}if(n._contentTypeTextTrailing&&t===e.length&&(a=0),a){const c={type:t===e.length||u||a<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:o?l:r.start._bufferIndex+l,_index:r.start._index+o,line:r.end.line,column:r.end.column-a,offset:r.end.offset-a},end:{...r.end}};r.end={...c.start},r.start.offset===r.end.offset?Object.assign(r,c):(e.splice(t,0,["enter",c,n],["exit",c,n]),t+=2)}t++}return e}const Es=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:{91:Aa},disable:{null:[]},document:{42:Ie,43:Ie,45:Ie,48:Ie,49:Ie,50:Ie,51:Ie,52:Ie,53:Ie,54:Ie,55:Ie,56:Ie,57:Ie,62:Mr},flow:{35:Da,42:On,45:[Kr,On],60:za,61:Kr,95:On,96:Ur,126:Ur},flowInitial:{[-2]:yt,[-1]:yt,32:yt},insideSpan:{null:[gt,ws]},string:{38:Br,92:zr},text:{[-5]:bt,[-4]:bt,[-3]:bt,33:rs,38:Br,42:gt,60:[oa,qa],91:os,92:[La,zr],93:xt,95:gt,96:xa}},Symbol.toStringTag,{value:"Module"}));function Cs(e,n,t){let r={_bufferIndex:-1,_index:0,line:t&&t.line||1,column:t&&t.column||1,offset:t&&t.offset||0};const i={},o=[];let l=[],a=[];const u={attempt:D(Y),check:D(w),consume:O,enter:_,exit:U,interrupt:D(w,{interrupt:!0})},c={code:null,containerState:{},defineSkip:x,events:[],now:y,parser:e,previous:null,sliceSerialize:h,sliceStream:p,write:f};let s=n.tokenize.call(c,u);return n.resolveAll&&o.push(n),c;function f(P){return l=Le(l,P),T(),l[l.length-1]!==null?[]:(G(n,0),c.events=mt(o,c.events,c),c.events)}function h(P,L){return Ts(p(P),L)}function p(P){return _s(l,P)}function y(){const{_bufferIndex:P,_index:L,line:$,column:Z,offset:F}=r;return{_bufferIndex:P,_index:L,line:$,column:Z,offset:F}}function x(P){i[P.line]=P.column,J()}function T(){let P;for(;r._index<l.length;){const L=l[r._index];if(typeof L=="string")for(P=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===P&&r._bufferIndex<L.length;)k(L.charCodeAt(r._bufferIndex));else k(L)}}function k(P){s=s(P)}function O(P){z(P)?(r.line++,r.column=1,r.offset+=P===-3?2:1,J()):P!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===l[r._index].length&&(r._bufferIndex=-1,r._index++)),c.previous=P}function _(P,L){const $=L||{};return $.type=P,$.start=y(),c.events.push(["enter",$,c]),a.push($),$}function U(P){const L=a.pop();return L.end=y(),c.events.push(["exit",L,c]),L}function Y(P,L){G(P,L.from)}function w(P,L){L.restore()}function D(P,L){return $;function $(Z,F,ie){let j,oe,ae,m;return Array.isArray(Z)?we(Z):"tokenize"in Z?we([Z]):xe(Z);function xe(se){return Fe;function Fe(ue){const ke=ue!==null&&se[ue],je=ue!==null&&se.null,Me=[...Array.isArray(ke)?ke:ke?[ke]:[],...Array.isArray(je)?je:je?[je]:[]];return we(Me)(ue)}}function we(se){return j=se,oe=0,se.length===0?ie:g(se[oe])}function g(se){return Fe;function Fe(ue){return m=W(),ae=se,se.partial||(c.currentConstruct=se),se.name&&c.parser.constructs.disable.null.includes(se.name)?Ne():se.tokenize.call(L?Object.assign(Object.create(c),L):c,u,be,Ne)(ue)}}function be(se){return P(ae,m),F}function Ne(se){return m.restore(),++oe<j.length?g(j[oe]):ie}}}function G(P,L){P.resolveAll&&!o.includes(P)&&o.push(P),P.resolve&&Ue(c.events,L,c.events.length-L,P.resolve(c.events.slice(L),c)),P.resolveTo&&(c.events=P.resolveTo(c.events,c))}function W(){const P=y(),L=c.previous,$=c.currentConstruct,Z=c.events.length,F=Array.from(a);return{from:Z,restore:ie};function ie(){r=P,c.previous=L,c.currentConstruct=$,c.events.length=Z,a=F,J()}}function J(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function _s(e,n){const t=n.start._index,r=n.start._bufferIndex,i=n.end._index,o=n.end._bufferIndex;let l;if(t===i)l=[e[t].slice(r,o)];else{if(l=e.slice(t,i),r>-1){const a=l[0];typeof a=="string"?l[0]=a.slice(r):l.shift()}o>0&&l.push(e[i].slice(0,o))}return l}function Ts(e,n){let t=-1;const r=[];let i;for(;++t<e.length;){const o=e[t];let l;if(typeof o=="string")l=o;else switch(o){case-5:{l="\r";break}case-4:{l=`
154
+ `;break}case-3:{l=`\r
155
+ `;break}case-2:{l=n?" ":" ";break}case-1:{if(!n&&i)continue;l=" ";break}default:l=String.fromCharCode(o)}i=o===-2,r.push(l)}return r.join("")}function Is(e){const r={constructs:Wl([Es,...(e||{}).extensions||[]]),content:i(Zl),defined:[],document:i(ea),flow:i(xs),lazy:{},string:i(ks),text:i(vs)};return r;function i(o){return l;function l(a){return Cs(r,o,a)}}}function As(e){for(;!Hr(e););return e}const Jr=/[\0\t\n\r]/g;function Os(){let e=1,n="",t=!0,r;return i;function i(o,l,a){const u=[];let c,s,f,h,p;for(o=n+(typeof o=="string"?o.toString():new TextDecoder(l||void 0).decode(o)),f=0,n="",t&&(o.charCodeAt(0)===65279&&f++,t=void 0);f<o.length;){if(Jr.lastIndex=f,c=Jr.exec(o),h=c&&c.index!==void 0?c.index:o.length,p=o.charCodeAt(h),!c){n=o.slice(f);break}if(p===10&&f===h&&r)u.push(-3),r=void 0;else switch(r&&(u.push(-5),r=void 0),f<h&&(u.push(o.slice(f,h)),e+=h-f),p){case 0:{u.push(65533),e++;break}case 9:{for(s=Math.ceil(e/4)*4,u.push(-2);e++<s;)u.push(-1);break}case 10:{u.push(-4),e=1;break}default:r=!0,e=1}f=h+1}return a&&(r&&u.push(-5),n&&u.push(n),u.push(null)),u}}const Rs=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Ps(e){return e.replace(Rs,Ls)}function Ls(e,n,t){if(n)return n;if(t.charCodeAt(0)===35){const i=t.charCodeAt(1),o=i===120||i===88;return jr(t.slice(o?2:1),o?16:10)}return pt(t)||e}const Zr={}.hasOwnProperty;function js(e,n,t){return typeof n!="string"&&(t=n,n=void 0),Ds(t)(As(Is(t).document().write(Os()(e,n,!0))))}function Ds(e){const n={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(me),autolinkProtocol:W,autolinkEmail:W,atxHeading:o(R),blockQuote:o(je),characterEscape:W,characterReference:W,codeFenced:o(Me),codeFencedFenceInfo:l,codeFencedFenceMeta:l,codeIndented:o(Me,l),codeText:o(Sn,l),codeTextData:W,data:W,codeFlowValue:W,definition:o(Je),definitionDestinationString:l,definitionLabelString:l,definitionTitleString:l,emphasis:o(En),hardBreakEscape:o(H),hardBreakTrailing:o(H),htmlFlow:o(le,l),htmlFlowData:W,htmlText:o(le,l),htmlTextData:W,image:o(Pe),label:l,link:o(me),listItem:o(Ze),listItemValue:h,listOrdered:o(he,f),listUnordered:o(he),paragraph:o(Cn),reference:g,referenceString:l,resourceDestinationString:l,resourceTitleString:l,setextHeading:o(R),strong:o($e),thematicBreak:o(Un)},exit:{atxHeading:u(),atxHeadingSequence:Y,autolink:u(),autolinkEmail:ke,autolinkProtocol:ue,blockQuote:u(),characterEscapeValue:J,characterReferenceMarkerHexadecimal:Ne,characterReferenceMarkerNumeric:Ne,characterReferenceValue:se,characterReference:Fe,codeFenced:u(T),codeFencedFence:x,codeFencedFenceInfo:p,codeFencedFenceMeta:y,codeFlowValue:J,codeIndented:u(k),codeText:u(F),codeTextData:J,data:J,definition:u(),definitionDestinationString:U,definitionLabelString:O,definitionTitleString:_,emphasis:u(),hardBreakEscape:u(L),hardBreakTrailing:u(L),htmlFlow:u($),htmlFlowData:J,htmlText:u(Z),htmlTextData:J,image:u(j),label:ae,labelText:oe,lineEnding:P,link:u(ie),listItem:u(),listOrdered:u(),listUnordered:u(),paragraph:u(),referenceString:be,resourceDestinationString:m,resourceTitleString:xe,resource:we,setextHeading:u(G),setextHeadingLineSequence:D,setextHeadingText:w,strong:u(),thematicBreak:u()}};$r(n,(e||{}).mdastExtensions||[]);const t={};return r;function r(b){let E={type:"root",children:[]};const A={stack:[E],tokenStack:[],config:n,enter:a,exit:c,buffer:l,resume:s,data:t},M=[];let X=-1;for(;++X<b.length;)if(b[X][1].type==="listOrdered"||b[X][1].type==="listUnordered")if(b[X][0]==="enter")M.push(X);else{const ge=M.pop();X=i(b,ge,X)}for(X=-1;++X<b.length;){const ge=n[b[X][0]];Zr.call(ge,b[X][1].type)&&ge[b[X][1].type].call(Object.assign({sliceSerialize:b[X][2].sliceSerialize},A),b[X][1])}if(A.tokenStack.length>0){const ge=A.tokenStack[A.tokenStack.length-1];(ge[1]||ei).call(A,void 0,ge[0])}for(E.position={start:qe(b.length>0?b[0][1].start:{line:1,column:1,offset:0}),end:qe(b.length>0?b[b.length-2][1].end:{line:1,column:1,offset:0})},X=-1;++X<n.transforms.length;)E=n.transforms[X](E)||E;return E}function i(b,E,A){let M=E-1,X=-1,ge=!1,ze,Be,en,nn;for(;++M<=A;){const ve=b[M];switch(ve[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{ve[0]==="enter"?X++:X--,nn=void 0;break}case"lineEndingBlank":{ve[0]==="enter"&&(ze&&!nn&&!X&&!en&&(en=M),nn=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:nn=void 0}if(!X&&ve[0]==="enter"&&ve[1].type==="listItemPrefix"||X===-1&&ve[0]==="exit"&&(ve[1].type==="listUnordered"||ve[1].type==="listOrdered")){if(ze){let Ke=M;for(Be=void 0;Ke--;){const Ve=b[Ke];if(Ve[1].type==="lineEnding"||Ve[1].type==="lineEndingBlank"){if(Ve[0]==="exit")continue;Be&&(b[Be][1].type="lineEndingBlank",ge=!0),Ve[1].type="lineEnding",Be=Ke}else if(!(Ve[1].type==="linePrefix"||Ve[1].type==="blockQuotePrefix"||Ve[1].type==="blockQuotePrefixWhitespace"||Ve[1].type==="blockQuoteMarker"||Ve[1].type==="listItemIndent"))break}en&&(!Be||en<Be)&&(ze._spread=!0),ze.end=Object.assign({},Be?b[Be][1].start:ve[1].end),b.splice(Be||M,0,["exit",ze,ve[2]]),M++,A++}if(ve[1].type==="listItemPrefix"){const Ke={type:"listItem",_spread:!1,start:Object.assign({},ve[1].start),end:void 0};ze=Ke,b.splice(M,0,["enter",Ke,ve[2]]),M++,A++,en=void 0,nn=!0}}}return b[E][1]._spread=ge,A}function o(b,E){return A;function A(M){a.call(this,b(M),M),E&&E.call(this,M)}}function l(){this.stack.push({type:"fragment",children:[]})}function a(b,E,A){this.stack[this.stack.length-1].children.push(b),this.stack.push(b),this.tokenStack.push([E,A||void 0]),b.position={start:qe(E.start),end:void 0}}function u(b){return E;function E(A){b&&b.call(this,A),c.call(this,A)}}function c(b,E){const A=this.stack.pop(),M=this.tokenStack.pop();if(M)M[0].type!==b.type&&(E?E.call(this,b,M[0]):(M[1]||ei).call(this,b,M[0]));else throw new Error("Cannot close `"+b.type+"` ("+gn({start:b.start,end:b.end})+"): it’s not open");A.position.end=qe(b.end)}function s(){return Ul(this.stack.pop())}function f(){this.data.expectingFirstListItemValue=!0}function h(b){if(this.data.expectingFirstListItemValue){const E=this.stack[this.stack.length-2];E.start=Number.parseInt(this.sliceSerialize(b),10),this.data.expectingFirstListItemValue=void 0}}function p(){const b=this.resume(),E=this.stack[this.stack.length-1];E.lang=b}function y(){const b=this.resume(),E=this.stack[this.stack.length-1];E.meta=b}function x(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function T(){const b=this.resume(),E=this.stack[this.stack.length-1];E.value=b.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function k(){const b=this.resume(),E=this.stack[this.stack.length-1];E.value=b.replace(/(\r?\n|\r)$/g,"")}function O(b){const E=this.resume(),A=this.stack[this.stack.length-1];A.label=E,A.identifier=ln(this.sliceSerialize(b)).toLowerCase()}function _(){const b=this.resume(),E=this.stack[this.stack.length-1];E.title=b}function U(){const b=this.resume(),E=this.stack[this.stack.length-1];E.url=b}function Y(b){const E=this.stack[this.stack.length-1];if(!E.depth){const A=this.sliceSerialize(b).length;E.depth=A}}function w(){this.data.setextHeadingSlurpLineEnding=!0}function D(b){const E=this.stack[this.stack.length-1];E.depth=this.sliceSerialize(b).codePointAt(0)===61?1:2}function G(){this.data.setextHeadingSlurpLineEnding=void 0}function W(b){const A=this.stack[this.stack.length-1].children;let M=A[A.length-1];(!M||M.type!=="text")&&(M=Vn(),M.position={start:qe(b.start),end:void 0},A.push(M)),this.stack.push(M)}function J(b){const E=this.stack.pop();E.value+=this.sliceSerialize(b),E.position.end=qe(b.end)}function P(b){const E=this.stack[this.stack.length-1];if(this.data.atHardBreak){const A=E.children[E.children.length-1];A.position.end=qe(b.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&n.canContainEols.includes(E.type)&&(W.call(this,b),J.call(this,b))}function L(){this.data.atHardBreak=!0}function $(){const b=this.resume(),E=this.stack[this.stack.length-1];E.value=b}function Z(){const b=this.resume(),E=this.stack[this.stack.length-1];E.value=b}function F(){const b=this.resume(),E=this.stack[this.stack.length-1];E.value=b}function ie(){const b=this.stack[this.stack.length-1];if(this.data.inReference){const E=this.data.referenceType||"shortcut";b.type+="Reference",b.referenceType=E,delete b.url,delete b.title}else delete b.identifier,delete b.label;this.data.referenceType=void 0}function j(){const b=this.stack[this.stack.length-1];if(this.data.inReference){const E=this.data.referenceType||"shortcut";b.type+="Reference",b.referenceType=E,delete b.url,delete b.title}else delete b.identifier,delete b.label;this.data.referenceType=void 0}function oe(b){const E=this.sliceSerialize(b),A=this.stack[this.stack.length-2];A.label=Ps(E),A.identifier=ln(E).toLowerCase()}function ae(){const b=this.stack[this.stack.length-1],E=this.resume(),A=this.stack[this.stack.length-1];if(this.data.inReference=!0,A.type==="link"){const M=b.children;A.children=M}else A.alt=E}function m(){const b=this.resume(),E=this.stack[this.stack.length-1];E.url=b}function xe(){const b=this.resume(),E=this.stack[this.stack.length-1];E.title=b}function we(){this.data.inReference=void 0}function g(){this.data.referenceType="collapsed"}function be(b){const E=this.resume(),A=this.stack[this.stack.length-1];A.label=E,A.identifier=ln(this.sliceSerialize(b)).toLowerCase(),this.data.referenceType="full"}function Ne(b){this.data.characterReferenceType=b.type}function se(b){const E=this.sliceSerialize(b),A=this.data.characterReferenceType;let M;A?(M=jr(E,A==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):M=pt(E);const X=this.stack[this.stack.length-1];X.value+=M}function Fe(b){const E=this.stack.pop();E.position.end=qe(b.end)}function ue(b){J.call(this,b);const E=this.stack[this.stack.length-1];E.url=this.sliceSerialize(b)}function ke(b){J.call(this,b);const E=this.stack[this.stack.length-1];E.url="mailto:"+this.sliceSerialize(b)}function je(){return{type:"blockquote",children:[]}}function Me(){return{type:"code",lang:null,meta:null,value:""}}function Sn(){return{type:"inlineCode",value:""}}function Je(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function En(){return{type:"emphasis",children:[]}}function R(){return{type:"heading",depth:0,children:[]}}function H(){return{type:"break"}}function le(){return{type:"html",value:""}}function Pe(){return{type:"image",title:null,url:"",alt:null}}function me(){return{type:"link",title:null,url:"",children:[]}}function he(b){return{type:"list",ordered:b.type==="listOrdered",start:null,spread:b._spread,children:[]}}function Ze(b){return{type:"listItem",spread:b._spread,checked:null,children:[]}}function Cn(){return{type:"paragraph",children:[]}}function $e(){return{type:"strong",children:[]}}function Vn(){return{type:"text",value:""}}function Un(){return{type:"thematicBreak"}}}function qe(e){return{line:e.line,column:e.column,offset:e.offset}}function $r(e,n){let t=-1;for(;++t<n.length;){const r=n[t];Array.isArray(r)?$r(e,r):Ns(e,r)}}function Ns(e,n){let t;for(t in n)if(Zr.call(n,t))switch(t){case"canContainEols":{const r=n[t];r&&e[t].push(...r);break}case"transforms":{const r=n[t];r&&e[t].push(...r);break}case"enter":case"exit":{const r=n[t];r&&Object.assign(e[t],r);break}}}function ei(e,n){throw e?new Error("Cannot close `"+e.type+"` ("+gn({start:e.start,end:e.end})+"): a different token (`"+n.type+"`, "+gn({start:n.start,end:n.end})+") is open"):new Error("Cannot close document, a token (`"+n.type+"`, "+gn({start:n.start,end:n.end})+") is still open")}function Fs(e){const n=this;n.parser=t;function t(r){return js(r,{...n.data("settings"),...e,extensions:n.data("micromarkExtensions")||[],mdastExtensions:n.data("fromMarkdownExtensions")||[]})}}function Ms(e,n){const t={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(n),!0)};return e.patch(n,t),e.applyData(n,t)}function zs(e,n){const t={type:"element",tagName:"br",properties:{},children:[]};return e.patch(n,t),[e.applyData(n,t),{type:"text",value:`
156
+ `}]}function Bs(e,n){const t=n.value?n.value+`
157
+ `:"",r={};n.lang&&(r.className=["language-"+n.lang]);let i={type:"element",tagName:"code",properties:r,children:[{type:"text",value:t}]};return n.meta&&(i.data={meta:n.meta}),e.patch(n,i),i=e.applyData(n,i),i={type:"element",tagName:"pre",properties:{},children:[i]},e.patch(n,i),i}function Vs(e,n){const t={type:"element",tagName:"del",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function Us(e,n){const t={type:"element",tagName:"em",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function Hs(e,n){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(n.identifier).toUpperCase(),i=an(r.toLowerCase()),o=e.footnoteOrder.indexOf(r);let l,a=e.footnoteCounts.get(r);a===void 0?(a=0,e.footnoteOrder.push(r),l=e.footnoteOrder.length):l=o+1,a+=1,e.footnoteCounts.set(r,a);const u={type:"element",tagName:"a",properties:{href:"#"+t+"fn-"+i,id:t+"fnref-"+i+(a>1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(l)}]};e.patch(n,u);const c={type:"element",tagName:"sup",properties:{},children:[u]};return e.patch(n,c),e.applyData(n,c)}function Ws(e,n){const t={type:"element",tagName:"h"+n.depth,properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function Ys(e,n){if(e.options.allowDangerousHtml){const t={type:"raw",value:n.value};return e.patch(n,t),e.applyData(n,t)}}function ni(e,n){const t=n.referenceType;let r="]";if(t==="collapsed"?r+="[]":t==="full"&&(r+="["+(n.label||n.identifier)+"]"),n.type==="imageReference")return[{type:"text",value:"!["+n.alt+r}];const i=e.all(n),o=i[0];o&&o.type==="text"?o.value="["+o.value:i.unshift({type:"text",value:"["});const l=i[i.length-1];return l&&l.type==="text"?l.value+=r:i.push({type:"text",value:r}),i}function qs(e,n){const t=String(n.identifier).toUpperCase(),r=e.definitionById.get(t);if(!r)return ni(e,n);const i={src:an(r.url||""),alt:n.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const o={type:"element",tagName:"img",properties:i,children:[]};return e.patch(n,o),e.applyData(n,o)}function Gs(e,n){const t={src:an(n.url)};n.alt!==null&&n.alt!==void 0&&(t.alt=n.alt),n.title!==null&&n.title!==void 0&&(t.title=n.title);const r={type:"element",tagName:"img",properties:t,children:[]};return e.patch(n,r),e.applyData(n,r)}function Ks(e,n){const t={type:"text",value:n.value.replace(/\r?\n|\r/g," ")};e.patch(n,t);const r={type:"element",tagName:"code",properties:{},children:[t]};return e.patch(n,r),e.applyData(n,r)}function Xs(e,n){const t=String(n.identifier).toUpperCase(),r=e.definitionById.get(t);if(!r)return ni(e,n);const i={href:an(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const o={type:"element",tagName:"a",properties:i,children:e.all(n)};return e.patch(n,o),e.applyData(n,o)}function Qs(e,n){const t={href:an(n.url)};n.title!==null&&n.title!==void 0&&(t.title=n.title);const r={type:"element",tagName:"a",properties:t,children:e.all(n)};return e.patch(n,r),e.applyData(n,r)}function Js(e,n,t){const r=e.all(n),i=t?Zs(t):ti(n),o={},l=[];if(typeof n.checked=="boolean"){const s=r[0];let f;s&&s.type==="element"&&s.tagName==="p"?f=s:(f={type:"element",tagName:"p",properties:{},children:[]},r.unshift(f)),f.children.length>0&&f.children.unshift({type:"text",value:" "}),f.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:n.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let a=-1;for(;++a<r.length;){const s=r[a];(i||a!==0||s.type!=="element"||s.tagName!=="p")&&l.push({type:"text",value:`
158
+ `}),s.type==="element"&&s.tagName==="p"&&!i?l.push(...s.children):l.push(s)}const u=r[r.length-1];u&&(i||u.type!=="element"||u.tagName!=="p")&&l.push({type:"text",value:`
159
+ `});const c={type:"element",tagName:"li",properties:o,children:l};return e.patch(n,c),e.applyData(n,c)}function Zs(e){let n=!1;if(e.type==="list"){n=e.spread||!1;const t=e.children;let r=-1;for(;!n&&++r<t.length;)n=ti(t[r])}return n}function ti(e){const n=e.spread;return n??e.children.length>1}function $s(e,n){const t={},r=e.all(n);let i=-1;for(typeof n.start=="number"&&n.start!==1&&(t.start=n.start);++i<r.length;){const l=r[i];if(l.type==="element"&&l.tagName==="li"&&l.properties&&Array.isArray(l.properties.className)&&l.properties.className.includes("task-list-item")){t.className=["contains-task-list"];break}}const o={type:"element",tagName:n.ordered?"ol":"ul",properties:t,children:e.wrap(r,!0)};return e.patch(n,o),e.applyData(n,o)}function eu(e,n){const t={type:"element",tagName:"p",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function nu(e,n){const t={type:"root",children:e.wrap(e.all(n))};return e.patch(n,t),e.applyData(n,t)}function tu(e,n){const t={type:"element",tagName:"strong",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function ru(e,n){const t=e.all(n),r=t.shift(),i=[];if(r){const l={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(n.children[0],l),i.push(l)}if(t.length>0){const l={type:"element",tagName:"tbody",properties:{},children:e.wrap(t,!0)},a=lt(n.children[1]),u=vr(n.children[n.children.length-1]);a&&u&&(l.position={start:a,end:u}),i.push(l)}const o={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(n,o),e.applyData(n,o)}function iu(e,n,t){const r=t?t.children:void 0,o=(r?r.indexOf(n):1)===0?"th":"td",l=t&&t.type==="table"?t.align:void 0,a=l?l.length:n.children.length;let u=-1;const c=[];for(;++u<a;){const f=n.children[u],h={},p=l?l[u]:void 0;p&&(h.align=p);let y={type:"element",tagName:o,properties:h,children:[]};f&&(y.children=e.all(f),e.patch(f,y),y=e.applyData(f,y)),c.push(y)}const s={type:"element",tagName:"tr",properties:{},children:e.wrap(c,!0)};return e.patch(n,s),e.applyData(n,s)}function ou(e,n){const t={type:"element",tagName:"td",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}const ri=9,ii=32;function lu(e){const n=String(e),t=/\r?\n|\r/g;let r=t.exec(n),i=0;const o=[];for(;r;)o.push(oi(n.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=t.exec(n);return o.push(oi(n.slice(i),i>0,!1)),o.join("")}function oi(e,n,t){let r=0,i=e.length;if(n){let o=e.codePointAt(r);for(;o===ri||o===ii;)r++,o=e.codePointAt(r)}if(t){let o=e.codePointAt(i-1);for(;o===ri||o===ii;)i--,o=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function au(e,n){const t={type:"text",value:lu(String(n.value))};return e.patch(n,t),e.applyData(n,t)}function su(e,n){const t={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(n,t),e.applyData(n,t)}const uu={blockquote:Ms,break:zs,code:Bs,delete:Vs,emphasis:Us,footnoteReference:Hs,heading:Ws,html:Ys,imageReference:qs,image:Gs,inlineCode:Ks,linkReference:Xs,link:Qs,listItem:Js,list:$s,paragraph:eu,root:nu,strong:tu,table:ru,tableCell:ou,tableRow:iu,text:au,thematicBreak:su,toml:Rn,yaml:Rn,definition:Rn,footnoteDefinition:Rn};function Rn(){}const li=-1,Pn=0,wn=1,Ln=2,wt=3,kt=4,vt=5,St=6,ai=7,si=8,ui=typeof self=="object"?self:globalThis,cu=(e,n)=>{const t=(i,o)=>(e.set(o,i),i),r=i=>{if(e.has(i))return e.get(i);const[o,l]=n[i];switch(o){case Pn:case li:return t(l,i);case wn:{const a=t([],i);for(const u of l)a.push(r(u));return a}case Ln:{const a=t({},i);for(const[u,c]of l)a[r(u)]=r(c);return a}case wt:return t(new Date(l),i);case kt:{const{source:a,flags:u}=l;return t(new RegExp(a,u),i)}case vt:{const a=t(new Map,i);for(const[u,c]of l)a.set(r(u),r(c));return a}case St:{const a=t(new Set,i);for(const u of l)a.add(r(u));return a}case ai:{const{name:a,message:u}=l;return t(new ui[a](u),i)}case si:return t(BigInt(l),i);case"BigInt":return t(Object(BigInt(l)),i);case"ArrayBuffer":return t(new Uint8Array(l).buffer,l);case"DataView":{const{buffer:a}=new Uint8Array(l);return t(new DataView(a),l)}}return t(new ui[o](l),i)};return r},ci=e=>cu(new Map,e)(0),sn="",{toString:fu}={},{keys:pu}=Object,kn=e=>{const n=typeof e;if(n!=="object"||!e)return[Pn,n];const t=fu.call(e).slice(8,-1);switch(t){case"Array":return[wn,sn];case"Object":return[Ln,sn];case"Date":return[wt,sn];case"RegExp":return[kt,sn];case"Map":return[vt,sn];case"Set":return[St,sn];case"DataView":return[wn,t]}return t.includes("Array")?[wn,t]:t.includes("Error")?[ai,t]:[Ln,t]},jn=([e,n])=>e===Pn&&(n==="function"||n==="symbol"),hu=(e,n,t,r)=>{const i=(l,a)=>{const u=r.push(l)-1;return t.set(a,u),u},o=l=>{if(t.has(l))return t.get(l);let[a,u]=kn(l);switch(a){case Pn:{let s=l;switch(u){case"bigint":a=si,s=l.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+u);s=null;break;case"undefined":return i([li],l)}return i([a,s],l)}case wn:{if(u){let h=l;return u==="DataView"?h=new Uint8Array(l.buffer):u==="ArrayBuffer"&&(h=new Uint8Array(l)),i([u,[...h]],l)}const s=[],f=i([a,s],l);for(const h of l)s.push(o(h));return f}case Ln:{if(u)switch(u){case"BigInt":return i([u,l.toString()],l);case"Boolean":case"Number":case"String":return i([u,l.valueOf()],l)}if(n&&"toJSON"in l)return o(l.toJSON());const s=[],f=i([a,s],l);for(const h of pu(l))(e||!jn(kn(l[h])))&&s.push([o(h),o(l[h])]);return f}case wt:return i([a,l.toISOString()],l);case kt:{const{source:s,flags:f}=l;return i([a,{source:s,flags:f}],l)}case vt:{const s=[],f=i([a,s],l);for(const[h,p]of l)(e||!(jn(kn(h))||jn(kn(p))))&&s.push([o(h),o(p)]);return f}case St:{const s=[],f=i([a,s],l);for(const h of l)(e||!jn(kn(h)))&&s.push(o(h));return f}}const{message:c}=l;return i([a,{name:u,message:c}],l)};return o},fi=(e,{json:n,lossy:t}={})=>{const r=[];return hu(!(n||t),!!n,new Map,r)(e),r},Dn=typeof structuredClone=="function"?(e,n)=>n&&("json"in n||"lossy"in n)?ci(fi(e,n)):structuredClone(e):(e,n)=>ci(fi(e,n));function du(e,n){const t=[{type:"text",value:"↩"}];return n>1&&t.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(n)}]}),t}function mu(e,n){return"Back to reference "+(e+1)+(n>1?"-"+n:"")}function gu(e){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",t=e.options.footnoteBackContent||du,r=e.options.footnoteBackLabel||mu,i=e.options.footnoteLabel||"Footnotes",o=e.options.footnoteLabelTagName||"h2",l=e.options.footnoteLabelProperties||{className:["sr-only"]},a=[];let u=-1;for(;++u<e.footnoteOrder.length;){const c=e.footnoteById.get(e.footnoteOrder[u]);if(!c)continue;const s=e.all(c),f=String(c.identifier).toUpperCase(),h=an(f.toLowerCase());let p=0;const y=[],x=e.footnoteCounts.get(f);for(;x!==void 0&&++p<=x;){y.length>0&&y.push({type:"text",value:" "});let O=typeof t=="string"?t:t(u,p);typeof O=="string"&&(O={type:"text",value:O}),y.push({type:"element",tagName:"a",properties:{href:"#"+n+"fnref-"+h+(p>1?"-"+p:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(u,p),className:["data-footnote-backref"]},children:Array.isArray(O)?O:[O]})}const T=s[s.length-1];if(T&&T.type==="element"&&T.tagName==="p"){const O=T.children[T.children.length-1];O&&O.type==="text"?O.value+=" ":T.children.push({type:"text",value:" "}),T.children.push(...y)}else s.push(...y);const k={type:"element",tagName:"li",properties:{id:n+"fn-"+h},children:e.wrap(s,!0)};e.patch(c,k),a.push(k)}if(a.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...Dn(l),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:`
160
+ `},{type:"element",tagName:"ol",properties:{},children:e.wrap(a,!0)},{type:"text",value:`
161
+ `}]}}const pi=function(e){if(e==null)return wu;if(typeof e=="function")return Nn(e);if(typeof e=="object")return Array.isArray(e)?yu(e):xu(e);if(typeof e=="string")return bu(e);throw new Error("Expected function, string, or object as test")};function yu(e){const n=[];let t=-1;for(;++t<e.length;)n[t]=pi(e[t]);return Nn(r);function r(...i){let o=-1;for(;++o<n.length;)if(n[o].apply(this,i))return!0;return!1}}function xu(e){const n=e;return Nn(t);function t(r){const i=r;let o;for(o in e)if(i[o]!==n[o])return!1;return!0}}function bu(e){return Nn(n);function n(t){return t&&t.type===e}}function Nn(e){return n;function n(t,r,i){return!!(ku(t)&&e.call(this,t,typeof r=="number"?r:void 0,i||void 0))}}function wu(){return!0}function ku(e){return e!==null&&typeof e=="object"&&"type"in e}function Tc(e){return e}const hi=[],vu=!0,di=!1,Su="skip";function Eu(e,n,t,r){let i;typeof n=="function"&&typeof t!="function"?(r=t,t=n):i=n;const o=pi(i),l=r?-1:1;a(e,void 0,[])();function a(u,c,s){const f=u&&typeof u=="object"?u:{};if(typeof f.type=="string"){const p=typeof f.tagName=="string"?f.tagName:typeof f.name=="string"?f.name:void 0;Object.defineProperty(h,"name",{value:"node ("+(u.type+(p?"<"+p+">":""))+")"})}return h;function h(){let p=hi,y,x,T;if((!n||o(u,c,s[s.length-1]||void 0))&&(p=Cu(t(u,s)),p[0]===di))return p;if("children"in u&&u.children){const k=u;if(k.children&&p[0]!==Su)for(x=(r?k.children.length:-1)+l,T=s.concat(k);x>-1&&x<k.children.length;){const O=k.children[x];if(y=a(O,x,T)(),y[0]===di)return y;x=typeof y[1]=="number"?y[1]:x+l}}return p}}}function Cu(e){return Array.isArray(e)?e:typeof e=="number"?[vu,e]:e==null?hi:[e]}function mi(e,n,t,r){let i,o,l;typeof n=="function"?(o=void 0,l=n,i=t):(o=n,l=t,i=r),Eu(e,o,a,i);function a(u,c){const s=c[c.length-1],f=s?s.children.indexOf(u):void 0;return l(u,f,s)}}const Et={}.hasOwnProperty,_u={};function Tu(e,n){const t=n||_u,r=new Map,i=new Map,o=new Map,l={...uu,...t.handlers},a={all:c,applyData:Au,definitionById:r,footnoteById:i,footnoteCounts:o,footnoteOrder:[],handlers:l,one:u,options:t,patch:Iu,wrap:Ru};return mi(e,function(s){if(s.type==="definition"||s.type==="footnoteDefinition"){const f=s.type==="definition"?r:i,h=String(s.identifier).toUpperCase();f.has(h)||f.set(h,s)}}),a;function u(s,f){const h=s.type,p=a.handlers[h];if(Et.call(a.handlers,h)&&p)return p(a,s,f);if(a.options.passThrough&&a.options.passThrough.includes(h)){if("children"in s){const{children:x,...T}=s,k=Dn(T);return k.children=a.all(s),k}return Dn(s)}return(a.options.unknownHandler||Ou)(a,s,f)}function c(s){const f=[];if("children"in s){const h=s.children;let p=-1;for(;++p<h.length;){const y=a.one(h[p],s);if(y){if(p&&h[p-1].type==="break"&&(!Array.isArray(y)&&y.type==="text"&&(y.value=gi(y.value)),!Array.isArray(y)&&y.type==="element")){const x=y.children[0];x&&x.type==="text"&&(x.value=gi(x.value))}Array.isArray(y)?f.push(...y):f.push(y)}}}return f}}function Iu(e,n){e.position&&(n.position=wl(e))}function Au(e,n){let t=n;if(e&&e.data){const r=e.data.hName,i=e.data.hChildren,o=e.data.hProperties;if(typeof r=="string")if(t.type==="element")t.tagName=r;else{const l="children"in t?t.children:[t];t={type:"element",tagName:r,properties:{},children:l}}t.type==="element"&&o&&Object.assign(t.properties,Dn(o)),"children"in t&&t.children&&i!==null&&i!==void 0&&(t.children=i)}return t}function Ou(e,n){const t=n.data||{},r="value"in n&&!(Et.call(t,"hProperties")||Et.call(t,"hChildren"))?{type:"text",value:n.value}:{type:"element",tagName:"div",properties:{},children:e.all(n)};return e.patch(n,r),e.applyData(n,r)}function Ru(e,n){const t=[];let r=-1;for(n&&t.push({type:"text",value:`
162
+ `});++r<e.length;)r&&t.push({type:"text",value:`
163
+ `}),t.push(e[r]);return n&&e.length>0&&t.push({type:"text",value:`
164
+ `}),t}function gi(e){let n=0,t=e.charCodeAt(n);for(;t===9||t===32;)n++,t=e.charCodeAt(n);return e.slice(n)}function yi(e,n){const t=Tu(e,n),r=t.one(e,void 0),i=gu(t),o=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&o.children.push({type:"text",value:`
165
+ `},i),o}function Pu(e,n){return e&&"run"in e?async function(t,r){const i=yi(t,{file:r,...n});await e.run(i,r)}:function(t,r){return yi(t,{file:r,...e||n})}}function xi(e){if(e)throw e}var Fn=Object.prototype.hasOwnProperty,bi=Object.prototype.toString,wi=Object.defineProperty,ki=Object.getOwnPropertyDescriptor,vi=function(n){return typeof Array.isArray=="function"?Array.isArray(n):bi.call(n)==="[object Array]"},Si=function(n){if(!n||bi.call(n)!=="[object Object]")return!1;var t=Fn.call(n,"constructor"),r=n.constructor&&n.constructor.prototype&&Fn.call(n.constructor.prototype,"isPrototypeOf");if(n.constructor&&!t&&!r)return!1;var i;for(i in n);return typeof i>"u"||Fn.call(n,i)},Ei=function(n,t){wi&&t.name==="__proto__"?wi(n,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):n[t.name]=t.newValue},Ci=function(n,t){if(t==="__proto__")if(Fn.call(n,t)){if(ki)return ki(n,t).value}else return;return n[t]},Lu=function e(){var n,t,r,i,o,l,a=arguments[0],u=1,c=arguments.length,s=!1;for(typeof a=="boolean"&&(s=a,a=arguments[1]||{},u=2),(a==null||typeof a!="object"&&typeof a!="function")&&(a={});u<c;++u)if(n=arguments[u],n!=null)for(t in n)r=Ci(a,t),i=Ci(n,t),a!==i&&(s&&i&&(Si(i)||(o=vi(i)))?(o?(o=!1,l=r&&vi(r)?r:[]):l=r&&Si(r)?r:{},Ei(a,{name:t,newValue:e(s,l,i)})):typeof i<"u"&&Ei(a,{name:t,newValue:i}));return a};const Ct=Hn(Lu);function _t(e){if(typeof e!="object"||e===null)return!1;const n=Object.getPrototypeOf(e);return(n===null||n===Object.prototype||Object.getPrototypeOf(n)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function ju(){const e=[],n={run:t,use:r};return n;function t(...i){let o=-1;const l=i.pop();if(typeof l!="function")throw new TypeError("Expected function as last argument, not "+l);a(null,...i);function a(u,...c){const s=e[++o];let f=-1;if(u){l(u);return}for(;++f<i.length;)(c[f]===null||c[f]===void 0)&&(c[f]=i[f]);i=c,s?Du(s,a)(...c):l(null,...c)}}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),n}}function Du(e,n){let t;return r;function r(...l){const a=e.length>l.length;let u;a&&l.push(i);try{u=e.apply(this,l)}catch(c){const s=c;if(a&&t)throw s;return i(s)}a||(u&&u.then&&typeof u.then=="function"?u.then(o,i):u instanceof Error?i(u):o(u))}function i(l,...a){t||(t=!0,n(l,...a))}function o(l){i(null,l)}}const We={basename:Nu,dirname:Fu,extname:Mu,join:zu,sep:"/"};function Nu(e,n){if(n!==void 0&&typeof n!="string")throw new TypeError('"ext" argument must be a string');vn(e);let t=0,r=-1,i=e.length,o;if(n===void 0||n.length===0||n.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(o){t=i+1;break}}else r<0&&(o=!0,r=i+1);return r<0?"":e.slice(t,r)}if(n===e)return"";let l=-1,a=n.length-1;for(;i--;)if(e.codePointAt(i)===47){if(o){t=i+1;break}}else l<0&&(o=!0,l=i+1),a>-1&&(e.codePointAt(i)===n.codePointAt(a--)?a<0&&(r=i):(a=-1,r=l));return t===r?r=l:r<0&&(r=e.length),e.slice(t,r)}function Fu(e){if(vn(e),e.length===0)return".";let n=-1,t=e.length,r;for(;--t;)if(e.codePointAt(t)===47){if(r){n=t;break}}else r||(r=!0);return n<0?e.codePointAt(0)===47?"/":".":n===1&&e.codePointAt(0)===47?"//":e.slice(0,n)}function Mu(e){vn(e);let n=e.length,t=-1,r=0,i=-1,o=0,l;for(;n--;){const a=e.codePointAt(n);if(a===47){if(l){r=n+1;break}continue}t<0&&(l=!0,t=n+1),a===46?i<0?i=n:o!==1&&(o=1):i>-1&&(o=-1)}return i<0||t<0||o===0||o===1&&i===t-1&&i===r+1?"":e.slice(i,t)}function zu(...e){let n=-1,t;for(;++n<e.length;)vn(e[n]),e[n]&&(t=t===void 0?e[n]:t+"/"+e[n]);return t===void 0?".":Bu(t)}function Bu(e){vn(e);const n=e.codePointAt(0)===47;let t=Vu(e,!n);return t.length===0&&!n&&(t="."),t.length>0&&e.codePointAt(e.length-1)===47&&(t+="/"),n?"/"+t:t}function Vu(e,n){let t="",r=0,i=-1,o=0,l=-1,a,u;for(;++l<=e.length;){if(l<e.length)a=e.codePointAt(l);else{if(a===47)break;a=47}if(a===47){if(!(i===l-1||o===1))if(i!==l-1&&o===2){if(t.length<2||r!==2||t.codePointAt(t.length-1)!==46||t.codePointAt(t.length-2)!==46){if(t.length>2){if(u=t.lastIndexOf("/"),u!==t.length-1){u<0?(t="",r=0):(t=t.slice(0,u),r=t.length-1-t.lastIndexOf("/")),i=l,o=0;continue}}else if(t.length>0){t="",r=0,i=l,o=0;continue}}n&&(t=t.length>0?t+"/..":"..",r=2)}else t.length>0?t+="/"+e.slice(i+1,l):t=e.slice(i+1,l),r=l-i-1;i=l,o=0}else a===46&&o>-1?o++:o=-1}return t}function vn(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Uu={cwd:Hu};function Hu(){return"/"}function Tt(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function Wu(e){if(typeof e=="string")e=new URL(e);else if(!Tt(e)){const n=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw n.code="ERR_INVALID_ARG_TYPE",n}if(e.protocol!=="file:"){const n=new TypeError("The URL must be of scheme file");throw n.code="ERR_INVALID_URL_SCHEME",n}return Yu(e)}function Yu(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const n=e.pathname;let t=-1;for(;++t<n.length;)if(n.codePointAt(t)===37&&n.codePointAt(t+1)===50){const r=n.codePointAt(t+2);if(r===70||r===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(n)}const It=["history","path","basename","stem","extname","dirname"];class _i{constructor(n){let t;n?Tt(n)?t={path:n}:typeof n=="string"||qu(n)?t={value:n}:t=n:t={},this.cwd="cwd"in t?"":Uu.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<It.length;){const o=It[r];o in t&&t[o]!==void 0&&t[o]!==null&&(this[o]=o==="history"?[...t[o]]:t[o])}let i;for(i in t)It.includes(i)||(this[i]=t[i])}get basename(){return typeof this.path=="string"?We.basename(this.path):void 0}set basename(n){Ot(n,"basename"),At(n,"basename"),this.path=We.join(this.dirname||"",n)}get dirname(){return typeof this.path=="string"?We.dirname(this.path):void 0}set dirname(n){Ti(this.basename,"dirname"),this.path=We.join(n||"",this.basename)}get extname(){return typeof this.path=="string"?We.extname(this.path):void 0}set extname(n){if(At(n,"extname"),Ti(this.dirname,"extname"),n){if(n.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(n.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=We.join(this.dirname,this.stem+(n||""))}get path(){return this.history[this.history.length-1]}set path(n){Tt(n)&&(n=Wu(n)),Ot(n,"path"),this.path!==n&&this.history.push(n)}get stem(){return typeof this.path=="string"?We.basename(this.path,this.extname):void 0}set stem(n){Ot(n,"stem"),At(n,"stem"),this.path=We.join(this.dirname||"",n+(this.extname||""))}fail(n,t,r){const i=this.message(n,t,r);throw i.fatal=!0,i}info(n,t,r){const i=this.message(n,t,r);return i.fatal=void 0,i}message(n,t,r){const i=new ye(n,t,r);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(n){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(n||void 0).decode(this.value)}}function At(e,n){if(e&&e.includes(We.sep))throw new Error("`"+n+"` cannot be a path: did not expect `"+We.sep+"`")}function Ot(e,n){if(!e)throw new Error("`"+n+"` cannot be empty")}function Ti(e,n){if(!e)throw new Error("Setting `"+n+"` requires `path` to be set too")}function qu(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Gu=function(e){const r=this.constructor.prototype,i=r[e],o=function(){return i.apply(o,arguments)};return Object.setPrototypeOf(o,r),o},Ku={}.hasOwnProperty;class Rt extends Gu{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=ju()}copy(){const n=new Rt;let t=-1;for(;++t<this.attachers.length;){const r=this.attachers[t];n.use(...r)}return n.data(Ct(!0,{},this.namespace)),n}data(n,t){return typeof n=="string"?arguments.length===2?(jt("data",this.frozen),this.namespace[n]=t,this):Ku.call(this.namespace,n)&&this.namespace[n]||void 0:n?(jt("data",this.frozen),this.namespace=n,this):this.namespace}freeze(){if(this.frozen)return this;const n=this;for(;++this.freezeIndex<this.attachers.length;){const[t,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const i=t.call(n,...r);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(n){this.freeze();const t=Mn(n),r=this.parser||this.Parser;return Pt("parse",r),r(String(t),t)}process(n,t){const r=this;return this.freeze(),Pt("process",this.parser||this.Parser),Lt("process",this.compiler||this.Compiler),t?i(void 0,t):new Promise(i);function i(o,l){const a=Mn(n),u=r.parse(a);r.run(u,a,function(s,f,h){if(s||!f||!h)return c(s);const p=f,y=r.stringify(p,h);Ju(y)?h.value=y:h.result=y,c(s,h)});function c(s,f){s||!f?l(s):o?o(f):t(void 0,f)}}}processSync(n){let t=!1,r;return this.freeze(),Pt("processSync",this.parser||this.Parser),Lt("processSync",this.compiler||this.Compiler),this.process(n,i),Ai("processSync","process",t),r;function i(o,l){t=!0,xi(o),r=l}}run(n,t,r){Ii(n),this.freeze();const i=this.transformers;return!r&&typeof t=="function"&&(r=t,t=void 0),r?o(void 0,r):new Promise(o);function o(l,a){const u=Mn(t);i.run(n,u,c);function c(s,f,h){const p=f||n;s?a(s):l?l(p):r(void 0,p,h)}}}runSync(n,t){let r=!1,i;return this.run(n,t,o),Ai("runSync","run",r),i;function o(l,a){xi(l),i=a,r=!0}}stringify(n,t){this.freeze();const r=Mn(t),i=this.compiler||this.Compiler;return Lt("stringify",i),Ii(n),i(n,r)}use(n,...t){const r=this.attachers,i=this.namespace;if(jt("use",this.frozen),n!=null)if(typeof n=="function")u(n,t);else if(typeof n=="object")Array.isArray(n)?a(n):l(n);else throw new TypeError("Expected usable value, not `"+n+"`");return this;function o(c){if(typeof c=="function")u(c,[]);else if(typeof c=="object")if(Array.isArray(c)){const[s,...f]=c;u(s,f)}else l(c);else throw new TypeError("Expected usable value, not `"+c+"`")}function l(c){if(!("plugins"in c)&&!("settings"in c))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");a(c.plugins),c.settings&&(i.settings=Ct(!0,i.settings,c.settings))}function a(c){let s=-1;if(c!=null)if(Array.isArray(c))for(;++s<c.length;){const f=c[s];o(f)}else throw new TypeError("Expected a list of plugins, not `"+c+"`")}function u(c,s){let f=-1,h=-1;for(;++f<r.length;)if(r[f][0]===c){h=f;break}if(h===-1)r.push([c,...s]);else if(s.length>0){let[p,...y]=s;const x=r[h][1];_t(x)&&_t(p)&&(p=Ct(!0,x,p)),r[h]=[c,p,...y]}}}}const Xu=new Rt().freeze();function Pt(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Lt(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function jt(e,n){if(n)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Ii(e){if(!_t(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Ai(e,n,t){if(!t)throw new Error("`"+e+"` finished async. Use `"+n+"` instead")}function Mn(e){return Qu(e)?e:new _i(e)}function Qu(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function Ju(e){return typeof e=="string"||Zu(e)}function Zu(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const $u="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Oi=[],Ri={allowDangerousHtml:!0},ec=/^(https?|ircs?|mailto|xmpp)$/i,nc=[{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:"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 Pi(e){const n=tc(e),t=rc(e);return ic(n.runSync(n.parse(t),t),e)}function tc(e){const n=e.rehypePlugins||Oi,t=e.remarkPlugins||Oi,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Ri}:Ri;return Xu().use(Fs).use(t).use(Pu,r).use(n)}function rc(e){const n=e.children||"",t=new _i;return typeof n=="string"&&(t.value=n),t}function ic(e,n){const t=n.allowedElements,r=n.allowElement,i=n.components,o=n.disallowedElements,l=n.skipHtml,a=n.unwrapDisallowed,u=n.urlTransform||oc;for(const s of nc)Object.hasOwn(n,s.from)&&(""+s.from+(s.to?"use `"+s.to+"` instead":"remove it")+$u+s.id,void 0);return n.className&&(e={type:"element",tagName:"div",properties:{className:n.className},children:e.type==="root"?e.children:[e]}),mi(e,c),Cl(e,{Fragment:C.Fragment,components:i,ignoreInvalidStyle:!0,jsx:C.jsx,jsxs:C.jsxs,passKeys:!0,passNode:!0});function c(s,f,h){if(s.type==="raw"&&h&&typeof f=="number")return l?h.children.splice(f,1):h.children[f]={type:"text",value:s.value},f;if(s.type==="element"){let p;for(p in ft)if(Object.hasOwn(ft,p)&&Object.hasOwn(s.properties,p)){const y=s.properties[p],x=ft[p];(x===null||x.includes(s.tagName))&&(s.properties[p]=u(String(y||""),p,s))}}if(s.type==="element"){let p=t?!t.includes(s.tagName):o?o.includes(s.tagName):!1;if(!p&&r&&typeof f=="number"&&(p=!r(s,f,h)),p&&h&&typeof f=="number")return a&&s.children?h.children.splice(f,1,...s.children):h.children.splice(f,1),f}}}function oc(e){const n=e.indexOf(":"),t=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return n===-1||i!==-1&&n>i||t!==-1&&n>t||r!==-1&&n>r||ec.test(e.slice(0,n))?e:""}function Li(e){var n,t,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(n=0;n<i;n++)e[n]&&(t=Li(e[n]))&&(r&&(r+=" "),r+=t)}else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function un(){for(var e,n,t=0,r="",i=arguments.length;t<i;t++)(e=arguments[t])&&(n=Li(e))&&(r&&(r+=" "),r+=n);return r}const ji={primary:"#EC994B",secondary:"#1E3A8A",background:"#FFFFFF",text:{primary:"#1F2937",inverse:"#FFFFFF"},input:{background:"#F9FAFB",border:"#E5E7EB"},message:{user:"#1E3A8A",userText:"#FFFFFF",assistant:"#FFFFFF"},suggestedQuestions:{background:"#F3F4F6",text:"#1F2937",hoverBackground:"#E5E7EB"},iconColor:"#EC994B"},Ge=()=>({header:{title:"AI Assistant"},theme:ji,welcome:{title:"Hello! How can I help you today?",description:"I'm your AI assistant, ready to help with any questions you might have."},suggestedQuestions:[{text:"What can you help me with?",query:"What can you help me with?"},{text:"Tell me about your features",query:"Tell me about your features"},{text:"How do I get started?",query:"How do I get started?"}],icon:"sparkles"}),Di=e=>C.jsx("a",{...e,target:"_blank",rel:"noopener noreferrer",className:"text-orange-500 hover:text-orange-700 underline",children:e.children}),Dt=({iconName:e,size:n,className:t,style:r})=>{switch(e){case"heart":return C.jsx(to,{size:n,className:t,style:r});case"message-circle":return C.jsx(Yt,{size:n,className:t,style:r});case"help-circle":return C.jsx(ro,{size:n,className:t,style:r});case"info":return C.jsx(io,{size:n,className:t,style:r});case"bot":return C.jsx(Ji,{size:n,className:t,style:r});case"sparkles":return C.jsx(ao,{size:n,className:t,style:r});case"message-square":default:return C.jsx(oo,{size:n,className:t,style:r})}},zn=e=>{const[n,t]=N.useState(!1),[r,i]=N.useState(""),[o,l]=N.useState(!1),[a,u]=N.useState(!1),c=N.useRef(null),s=N.useRef(null),f=250,h=N.useRef(null),[p,y]=N.useState(!1),[x,T]=N.useState(!1),[k,O]=N.useState(!1),[_,U]=N.useState(!1),Y=N.useRef(new Set),w=N.useRef(!0),D=N.useRef(),G=N.useRef(null),W=N.useRef(!1),[J,P]=N.useState(!1),[L,$]=N.useState(null),Z=Ge(),[F,ie]=N.useState({...Z,...e}),j=F.theme||ji;N.useEffect(()=>{const R=H=>{ie(H.detail)};return window.addEventListener("chatbot-config-update",R),()=>{window.removeEventListener("chatbot-config-update",R)}},[]),N.useEffect(()=>{e&&ie(R=>({...R,...e}))},[e]);const{messages:oe,isLoading:ae,sendMessage:m,clearMessages:xe}=Zn(),we=()=>{t(!n),n||(l(!1),setTimeout(()=>ue(!0),100))},g=()=>{r.trim()&&!ae&&(w.current=!0,m(r),i(""),setTimeout(()=>ue(!0),100))},be=R=>{R.key==="Enter"&&!R.shiftKey&&(R.preventDefault(),g())},Ne=async(R,H)=>{try{await navigator.clipboard.writeText(R),$(H),setTimeout(()=>{$(null)},2e3)}catch(le){console.error("Failed to copy text: ",le)}},se=R=>{const H=/(https?:\/\/[^\s]+?)([.,;:!?)]*)(?=\s|$)/g;return R.replace(H,(Pe,me,he)=>`[${me}](${me})${he}`).replace(/\n{2,}/g,`
166
+
167
+ `).replace(/\n/g,`
168
+ `)},Fe=R=>R.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"}),ue=(R=!1)=>{if(h.current){const{scrollHeight:H}=h.current;h.current.scrollTo({top:H,behavior:R?"auto":"smooth"}),setTimeout(()=>{ke()},R?0:300)}},ke=()=>{if(h.current&&!J){const{scrollTop:R,scrollHeight:H,clientHeight:le}=h.current,Pe=Math.abs(H-R-le)<10,me=R<10;y(!me&&R>200),T(!Pe)}},je=()=>{h.current&&(U(!0),h.current.scrollTo({top:0,behavior:"smooth"}),setTimeout(()=>{U(!1),ke()},300))},Me=R=>{const H=R.target.value;H.length<=f&&i(H)},Sn=R=>{Y.current.add(R),R===oe.length-1&&(P(!1),setTimeout(()=>ue(),50))},Je=R=>Y.current.has(R);N.useEffect(()=>{(ae||oe.length===0)&&ue(!0)},[oe,ae]),N.useEffect(()=>{n&&s.current&&s.current.focus()},[n]),N.useEffect(()=>()=>{D.current&&clearTimeout(D.current)},[]);const En=({content:R,onComplete:H,messageIndex:le})=>{const[Pe,me]=N.useState(""),[he,Ze]=N.useState(!0),[Cn,$e]=N.useState(".");N.useRef(R),N.useRef(0);const[Vn,Un]=N.useState(!1),b=N.useRef(!1),E=N.useRef();return N.useEffect(()=>{if(Je(le)){me(R),Ze(!1),H();return}if(!b.current){b.current=!0,W.current=!0,P(!0);let A=0,M=0;const X=ge=>{if(A<R.length){const ze=R.slice(0,A+1);me(ze),A===0&&Ze(!1),ge-M>100&&(ue(),M=ge),A++,E.current=requestAnimationFrame(X)}else W.current=!1,H(),b.current=!1,P(!1),ue()};E.current=requestAnimationFrame(X)}return()=>{E.current&&cancelAnimationFrame(E.current),b.current=!1,W.current=!1,P(!1)}},[R,le,H]),N.useEffect(()=>{const A=()=>{b.current&&(E.current&&cancelAnimationFrame(E.current),me(R),Ze(!1),H(),b.current=!1,W.current=!1,P(!1),ue())},M=document.querySelector("textarea");return M&&M.addEventListener("input",A),()=>{M&&M.removeEventListener("input",A)}},[R,H]),N.useEffect(()=>{if(!he)return;const A=setInterval(()=>{$e(M=>M==="."?"..":M===".."?"...":".")},400);return()=>clearInterval(A)},[he]),C.jsxs(C.Fragment,{children:[Pe&&C.jsx("div",{className:"prose prose-base max-w-full whitespace-pre-wrap",style:{overflowWrap:"anywhere",wordBreak:"break-word",width:"100%",maxWidth:"100%"},children:C.jsx(Pi,{components:{a:A=>C.jsx(Di,{...A}),p:A=>C.jsx("p",{className:"mb-4",style:{overflowWrap:"anywhere",wordBreak:"break-word"},...A}),code:A=>C.jsx("code",{style:{display:"block",whiteSpace:"pre-wrap",overflowX:"auto",overflowWrap:"anywhere"},...A})},children:se(Pe)})}),he&&C.jsxs("div",{className:"text-gray-500",children:[C.jsx("span",{className:"font-medium",children:"Thinking"}),C.jsx("span",{className:"font-mono",children:Cn})]})]})};return C.jsxs("div",{className:"fixed bottom-4 right-4 z-50 flex flex-col items-end",children:[n&&C.jsxs("div",{className:"mb-4 w-full sm:w-[500px] md:w-[650px] lg:w-[700px] rounded-xl shadow-xl flex flex-col overflow-hidden border border-gray-200 transition-all duration-300 ease-in-out",style:{background:j.background,height:"650px",maxHeight:"calc(100vh - 100px)",width:window.innerWidth<640?"100%":window.innerWidth<768?"500px":window.innerWidth<1024?"650px":"700px",minWidth:window.innerWidth<640?"100%":"500px"},children:[C.jsxs("div",{className:"p-4 flex justify-between items-center shrink-0",style:{background:j.primary,color:j.text.inverse},children:[C.jsxs("div",{className:"flex items-center",children:[C.jsx(Dt,{iconName:F.icon,size:32,className:"mr-3",style:{color:j.secondary}}),C.jsx("h3",{className:"text-xl font-medium",children:F.header.title})]}),C.jsxs("div",{className:"flex items-center space-x-3",children:[C.jsx("button",{onClick:()=>xe(),className:"transition-colors p-2 rounded-full hover:bg-opacity-20 hover:bg-black",style:{color:j.text.inverse},"aria-label":"Clear conversation",title:"Clear conversation",children:C.jsx(so,{size:20})}),C.jsx("button",{onClick:we,className:"transition-colors p-2 rounded-full hover:bg-opacity-20 hover:bg-black",style:{color:j.text.inverse},"aria-label":"Minimize chat",children:C.jsx(qt,{size:20})})]})]}),C.jsxs("div",{ref:h,className:"flex-1 p-4 overflow-y-auto scroll-smooth relative messages-container",style:{background:j.input.background,overflowY:"auto"},onScroll:ke,children:[p&&C.jsx("button",{onClick:je,className:"sticky top-3 left-[calc(100%-48px)] z-10 flex items-center justify-center p-2 rounded-full shadow-md",style:{backgroundColor:j.primary,color:j.text.inverse},"aria-label":"Scroll to top",title:"Scroll to top",children:C.jsx(eo,{size:20})}),x&&!J&&C.jsx("button",{onClick:()=>ue(),className:"sticky bottom-3 left-[calc(100%-48px)] z-10 flex items-center justify-center p-2 rounded-full shadow-md",style:{backgroundColor:j.primary,color:j.text.inverse},"aria-label":"Scroll to bottom",title:"Scroll to bottom",children:C.jsx($i,{size:20})}),oe.length===0?C.jsxs("div",{className:"text-center py-16",children:[C.jsx(Dt,{iconName:F.icon,size:56,className:"mx-auto mb-4",style:{color:j.iconColor}}),C.jsx("h4",{className:"font-medium text-xl text-[#2C3E50] mb-2",children:F.welcome.title}),C.jsx("p",{className:"text-lg text-gray-600 mb-6",children:F.welcome.description}),C.jsx("div",{className:"w-full px-4",children:F.suggestedQuestions.map((R,H)=>C.jsxs("button",{onClick:()=>m(R.query),className:"w-full text-left text-base p-3 rounded-lg transition-colors mb-3 flex items-center",style:{backgroundColor:j.suggestedQuestions.background,color:j.suggestedQuestions.text},onMouseEnter:le=>{le.currentTarget.style.backgroundColor=j.suggestedQuestions.hoverBackground},onMouseLeave:le=>{le.currentTarget.style.backgroundColor=j.suggestedQuestions.background},children:[C.jsx(Yt,{size:20,className:"mr-2 flex-shrink-0"}),C.jsx("span",{children:R.text})]},H))})]}):C.jsxs("div",{className:"space-y-5",children:[oe.map((R,H)=>{const le=new Date;le.setMinutes(le.getMinutes()-(oe.length-H));const Pe=R.role==="assistant"&&H===oe.length-1,me=Pe&&ae;return C.jsx("div",{className:un("flex",R.role==="user"?"justify-end":"justify-start"),ref:H===oe.length-1?G:null,children:C.jsxs("div",{className:un("max-w-[85%] rounded-xl p-4 shadow-sm",R.role==="user"?"rounded-tr-none":"rounded-tl-none"),style:{background:R.role==="user"?j.message.user:j.message.assistant,color:R.role==="user"?j.message.userText:j.text.primary,border:R.role==="assistant"?`1px solid ${j.input.border}`:"none",width:"100%",maxWidth:"85%",wordWrap:"break-word",overflowWrap:"anywhere"},children:[R.role==="assistant"?me?C.jsxs("div",{className:"text-gray-500",children:[C.jsx("span",{className:"font-medium",children:"Thinking"}),C.jsx("span",{className:"font-mono",children:"..."})]}):!Je(H)&&Pe?C.jsx(En,{content:R.content,onComplete:()=>Sn(H),messageIndex:H}):C.jsx("div",{className:"prose prose-base max-w-full whitespace-pre-wrap",style:{overflowWrap:"anywhere",wordBreak:"break-word",width:"100%",maxWidth:"100%"},children:C.jsx(Pi,{components:{a:he=>C.jsx(Di,{...he}),p:he=>C.jsx("p",{className:"mb-4",style:{overflowWrap:"anywhere",wordBreak:"break-word"},...he}),code:he=>C.jsx("code",{style:{display:"block",whiteSpace:"pre-wrap",overflowX:"auto",overflowWrap:"anywhere"},...he})},children:se(R.content)})}):C.jsx("p",{className:"text-base",style:{overflowWrap:"anywhere",wordBreak:"break-word",whiteSpace:"pre-wrap",width:"100%"},children:R.content}),C.jsxs("div",{className:un("flex text-xs mt-2",R.role==="user"?"justify-start text-white/70":"justify-between text-gray-400"),children:[C.jsx("span",{children:Fe(le)}),R.role==="assistant"&&!me&&C.jsxs("div",{className:"relative",children:[C.jsx("button",{onClick:()=>Ne(R.content,H),className:"text-gray-400 hover:text-gray-600 transition-colors ml-2 p-1 rounded-full hover:bg-gray-100","aria-label":"Copy to clipboard",children:L===H?C.jsx(Zi,{size:16}):C.jsx(no,{size:16})}),L===H&&C.jsx("div",{className:"absolute bottom-full right-0 mb-1 px-2 py-1 text-xs rounded-md shadow-sm animate-fade-in-out whitespace-nowrap",style:{backgroundColor:j.secondary,color:j.text.inverse},children:"Copied!"})]})]})]})},H)}),ae&&oe.length===0&&C.jsx("div",{className:"flex justify-start",children:C.jsx("div",{className:"bg-white border border-gray-200 rounded-xl rounded-tl-none max-w-[85%] p-4 shadow-sm",children:C.jsxs("div",{className:"text-gray-500",children:[C.jsx("span",{className:"font-medium",children:"Thinking"}),C.jsx("span",{className:"font-mono",children:"..."})]})})}),C.jsx("div",{ref:c})]})]}),C.jsx("div",{className:"p-4 border-t shrink-0",style:{borderColor:j.input.border,background:j.background,boxShadow:"0 -2px 10px rgba(0,0,0,0.05)"},children:C.jsxs("div",{className:"flex items-end gap-3",children:[C.jsxs("div",{className:un("flex-1 relative rounded-xl transition-all duration-200 overflow-hidden",k?"ring-2":"ring-0"),style:{borderColor:j.input.border,border:"1px solid",boxShadow:k?"0 0 0 2px rgba(236, 153, 75, 0.2)":"none","--tw-ring-color":j.secondary,background:j.input.background},children:[C.jsx("textarea",{ref:s,value:r,onChange:Me,onKeyDown:be,onFocus:()=>O(!0),onBlur:()=>O(!1),placeholder:"Type your message...",maxLength:f,className:"w-full resize-none outline-none p-3 pr-12 text-base custom-scrollbar",style:{background:"transparent",color:j.text.primary,height:"48px",minHeight:"48px",maxHeight:"96px",overflow:"auto",lineHeight:"1.5",boxSizing:"border-box"}}),r.length>0&&C.jsxs("div",{className:"absolute bottom-2 right-3 text-xs px-2 py-1 rounded-full",style:{color:r.length>=f*.9?"#ef4444":"#6b7280",backgroundColor:r.length>=f*.9?"rgba(239, 68, 68, 0.1)":"rgba(107, 114, 128, 0.1)",fontSize:"0.7rem"},children:[r.length,"/",f]})]}),C.jsx("button",{onClick:g,disabled:!r.trim()||ae,className:un("rounded-full transition-all duration-200 flex items-center justify-center shrink-0",r.trim()&&!ae?"hover:shadow-md transform hover:-translate-y-0.5":"bg-gray-200 text-gray-400 cursor-not-allowed"),style:{backgroundColor:r.trim()&&!ae?j.secondary:void 0,color:r.trim()&&!ae?"white":void 0,width:"48px",height:"48px",padding:"12px"},"aria-label":"Send message",children:C.jsx(lo,{size:24})})]})})]}),C.jsxs("div",{className:"relative",children:[o&&!n&&C.jsx("span",{className:"absolute -top-1 -right-1 h-4 w-4 bg-orange-500 rounded-full animate-pulse z-10"}),C.jsx("button",{onClick:we,onMouseEnter:()=>u(!0),onMouseLeave:()=>u(!1),className:un("rounded-full shadow-lg flex items-center justify-center transition-all duration-300",a&&!n&&"animate-pulse",!n&&"animate-bounce-gentle"),style:{backgroundColor:j.primary,color:j.text.inverse,width:"80px",height:"80px"},"aria-label":n?"Close chat":"Open chat",children:n?C.jsx(qt,{size:40,className:"text-white",style:{opacity:.9}}):C.jsx(Dt,{iconName:"message-square",size:40,className:"text-white"})})]}),C.jsx("style",{children:`
169
+ @keyframes fadeInOut {
170
+ 0% { opacity: 0; transform: translateY(4px); }
171
+ 20% { opacity: 1; transform: translateY(0); }
172
+ 80% { opacity: 1; transform: translateY(0); }
173
+ 100% { opacity: 0; transform: translateY(-4px); }
174
+ }
175
+ .animate-fade-in-out {
176
+ animation: fadeInOut 2s ease-in-out forwards;
177
+ }
178
+ @keyframes bounce-gentle {
179
+ 0%, 100% { transform: translateY(0); }
180
+ 50% { transform: translateY(-10px); }
181
+ }
182
+ .animate-bounce-gentle {
183
+ animation: bounce-gentle 2s ease-in-out infinite;
184
+ animation-delay: 1s;
185
+ }
186
+ `})]})};let Bn=null,de=null;function Ni(){if(!Bn)if(typeof window<"u"&&window.CHATBOT_API_URL)Bn=window.CHATBOT_API_URL;else throw new Error("API URL not set. Call setApiUrl or use injectChatWidget to configure the API URL.");return Bn}function Nt(e){Bn=e,typeof window<"u"&&(window.CHATBOT_API_URL=e,rr(e))}function Fi(e){typeof window>"u"||(de={...Ge(),...de,...e,header:{...Ge().header,...de==null?void 0:de.header,...e.header},welcome:{...Ge().welcome,...de==null?void 0:de.welcome,...e.welcome},suggestedQuestions:e.suggestedQuestions||(de==null?void 0:de.suggestedQuestions)||Ge().suggestedQuestions,theme:{...Ge().theme,...de==null?void 0:de.theme,...e.theme}},window.dispatchEvent(new CustomEvent("chatbot-config-update",{detail:de})))}function Ft(e){if(typeof window>"u")return;Nt(e.apiUrl),e.widgetConfig&&(de={...Ge(),...e.widgetConfig});function n(){try{if(!window.React||!window.ReactDOM){console.log("React or ReactDOM not available yet, retrying in 100ms..."),setTimeout(n,100);return}const t=e.containerSelector?document.querySelector(e.containerSelector):document.createElement("div");if(!t){console.error(`Container with selector "${e.containerSelector}" not found`);return}e.containerSelector||(t.id="chatbot-widget-container",document.body.appendChild(t)),window.ReactDOM.createRoot(t).render(window.React.createElement(zn,de)),console.log("Chatbot widget initialized successfully!")}catch(t){console.error("Error initializing chatbot widget:",t)}}setTimeout(n,100)}typeof window<"u"&&(window.initChatbotWidget=Ft,window.ChatbotWidget={ChatWidget:zn,useChatStore:Zn,injectChatWidget:Ft,setApiUrl:Nt,getApiUrl:Ni,updateWidgetConfig:Fi},console.log("Chatbot widget loaded."));const Mi=Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"}));Ee.ChatWidget=zn,Ee.default=zn,Ee.getApiUrl=Ni,Ee.getChatConfig=Ge,Ee.injectChatWidget=Ft,Ee.setApiUrl=Nt,Ee.updateWidgetConfig=Fi,Ee.useChatStore=Zn,Object.defineProperties(Ee,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
187
+