@chatsystem/client 1.1.33 → 1.1.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +30 -30
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +2267 -2112
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -1,40 +1,40 @@
|
|
|
1
1
|
(function(){"use strict";try{if(typeof document<"u"){var t=document.createElement("style");t.appendChild(document.createTextNode('*,: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%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.bottom-0{bottom:0}.bottom-1\\.5{bottom:.375rem}.bottom-\\[120px\\]{bottom:120px}.left-0{left:0}.right-0{right:0}.right-2{right:.5rem}.right-4{right:1rem}.top-0{top:0}.z-10{z-index:10}.z-\\[999999999\\]{z-index:999999999}.z-\\[99999999\\]{z-index:99999999}.mx-3{margin-left:.75rem;margin-right:.75rem}.mx-auto{margin-left:auto;margin-right:auto}.my-1{margin-top:.25rem;margin-bottom:.25rem}.my-2{margin-top:.5rem;margin-bottom:.5rem}.mr-3{margin-right:.75rem}.mt-0\\.5{margin-top:.125rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-6{margin-top:1.5rem}.mt-8{margin-top:2rem}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.hidden{display:none}.\\!h-5{height:1.25rem!important}.h-6{height:1.5rem}.h-auto{height:auto}.h-5{height:1.25rem}.min-h-0{min-height:0px}.\\!w-5{width:1.25rem!important}.w-10{width:2.5rem}.w-6{width:1.5rem}.w-full{width:100%}.w-5{width:1.25rem}.min-w-0{min-width:0px}.max-w-\\[90\\%\\]{max-width:90%}.flex-1{flex:1 1 0%}.flex-shrink-0{flex-shrink:0}@keyframes fadeIn{0%{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}.animate-fade-in{animation:fadeIn .3s ease-in-out}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.resize{resize:both}.flex-col{flex-direction:column}.content-center{align-content:center}.items-start{align-items:flex-start}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-3{gap:.75rem}.gap-2{gap:.5rem}.overflow-hidden{overflow:hidden}.overflow-scroll{overflow:scroll}.overflow-y-auto{overflow-y:auto}.break-words{overflow-wrap:break-word}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-xl{border-radius:.75rem}.border,.border-\\[1px\\]{border-width:1px}.border-l-4{border-left-width:4px}.border-dashed{border-style:dashed}.border-black{--tw-border-opacity: 1;border-color:rgb(0 0 0 / var(--tw-border-opacity, 1))}.border-blue-500{--tw-border-opacity: 1;border-color:rgb(59 130 246 / var(--tw-border-opacity, 1))}.border-red-400{--tw-border-opacity: 1;border-color:rgb(248 113 113 / var(--tw-border-opacity, 1))}.border-slate-400{--tw-border-opacity: 1;border-color:rgb(148 163 184 / var(--tw-border-opacity, 1))}.border-white{--tw-border-opacity: 1;border-color:rgb(255 255 255 / var(--tw-border-opacity, 1))}.\\!bg-blue-700{--tw-bg-opacity: 1 !important;background-color:rgb(29 78 216 / var(--tw-bg-opacity, 1))!important}.\\!bg-gray-400{--tw-bg-opacity: 1 !important;background-color:rgb(156 163 175 / var(--tw-bg-opacity, 1))!important}.\\!bg-green-700{--tw-bg-opacity: 1 !important;background-color:rgb(21 128 61 / var(--tw-bg-opacity, 1))!important}.\\!bg-red-700{--tw-bg-opacity: 1 !important;background-color:rgb(185 28 28 / var(--tw-bg-opacity, 1))!important}.\\!bg-white{--tw-bg-opacity: 1 !important;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))!important}.bg-black{--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity, 1))}.bg-blue-50{--tw-bg-opacity: 1;background-color:rgb(239 246 255 / var(--tw-bg-opacity, 1))}.bg-blue-500{--tw-bg-opacity: 1;background-color:rgb(59 130 246 / var(--tw-bg-opacity, 1))}.bg-blue-700{--tw-bg-opacity: 1;background-color:rgb(29 78 216 / var(--tw-bg-opacity, 1))}.bg-gray-200{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity, 1))}.bg-red-100{--tw-bg-opacity: 1;background-color:rgb(254 226 226 / var(--tw-bg-opacity, 1))}.bg-slate-300{--tw-bg-opacity: 1;background-color:rgb(203 213 225 / var(--tw-bg-opacity, 1))}.bg-violet-700{--tw-bg-opacity: 1;background-color:rgb(109 40 217 / var(--tw-bg-opacity, 1))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.bg-blue-50\\/70{background-color:#eff6ffb3}.p-0\\.5{padding:.125rem}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3\\.5{padding-top:.875rem;padding-bottom:.875rem}.py-1\\.5{padding-top:.375rem;padding-bottom:.375rem}.pb-2{padding-bottom:.5rem}.text-center{text-align:center}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.font-bold{font-weight:700}.font-semibold{font-weight:600}.font-medium{font-weight:500}.text-blue-800{--tw-text-opacity: 1;color:rgb(30 64 175 / var(--tw-text-opacity, 1))}.text-gray-800{--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity, 1))}.text-red-600{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}.text-red-800{--tw-text-opacity: 1;color:rgb(153 27 27 / var(--tw-text-opacity, 1))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.text-blue-700{--tw-text-opacity: 1;color:rgb(29 78 216 / var(--tw-text-opacity, 1))}.opacity-70{opacity:.7}.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)}.outline{outline-style:solid}.ring-1{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-inset{--tw-ring-inset: inset}.ring-blue-600\\/20{--tw-ring-color: rgb(37 99 235 / .2)}.grayscale{--tw-grayscale: grayscale(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-300{transition-duration:.3s}.duration-200{transition-duration:.2s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.hover\\:scale-110:hover{--tw-scale-x: 1.1;--tw-scale-y: 1.1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\\:\\!bg-blue-800:hover{--tw-bg-opacity: 1 !important;background-color:rgb(30 64 175 / var(--tw-bg-opacity, 1))!important}.hover\\:\\!bg-blue-900:hover{--tw-bg-opacity: 1 !important;background-color:rgb(30 58 138 / var(--tw-bg-opacity, 1))!important}.hover\\:\\!bg-green-800:hover{--tw-bg-opacity: 1 !important;background-color:rgb(22 101 52 / var(--tw-bg-opacity, 1))!important}.hover\\:\\!bg-red-800:hover{--tw-bg-opacity: 1 !important;background-color:rgb(153 27 27 / var(--tw-bg-opacity, 1))!important}.hover\\:\\!bg-slate-500:hover{--tw-bg-opacity: 1 !important;background-color:rgb(100 116 139 / var(--tw-bg-opacity, 1))!important}.hover\\:bg-blue-600:hover{--tw-bg-opacity: 1;background-color:rgb(37 99 235 / var(--tw-bg-opacity, 1))}.hover\\:bg-blue-100:hover{--tw-bg-opacity: 1;background-color:rgb(219 234 254 / var(--tw-bg-opacity, 1))}.hover\\:text-white:hover{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.hover\\:underline:hover{text-decoration-line:underline}.hover\\:ring-blue-600\\/30:hover{--tw-ring-color: rgb(37 99 235 / .3)}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:ring-4:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\\:ring-blue-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(147 197 253 / var(--tw-ring-opacity, 1))}.focus\\:ring-green-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(134 239 172 / var(--tw-ring-opacity, 1))}.focus\\:ring-red-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(252 165 165 / var(--tw-ring-opacity, 1))}.focus\\:ring-slate-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(203 213 225 / var(--tw-ring-opacity, 1))}.focus-visible\\:ring-2:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus-visible\\:ring-blue-600\\/50:focus-visible{--tw-ring-color: rgb(37 99 235 / .5)}.active\\:scale-\\[0\\.98\\]:active{--tw-scale-x: .98;--tw-scale-y: .98;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))}.enabled\\:bg-black:enabled{--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity, 1))}.enabled\\:bg-white:enabled{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.disabled\\:text-gray-400:disabled{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}.disabled\\:opacity-10:disabled{opacity:.1}.group:hover .group-hover\\:rotate-180{--tw-rotate: 180deg;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))}.dark\\:border-white:is(.dark *){--tw-border-opacity: 1;border-color:rgb(255 255 255 / var(--tw-border-opacity, 1))}.dark\\:bg-white:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.dark\\:bg-blue-900\\/20:is(.dark *){background-color:#1e3a8a33}.dark\\:text-black:is(.dark *){--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity, 1))}.dark\\:text-blue-300:is(.dark *){--tw-text-opacity: 1;color:rgb(147 197 253 / var(--tw-text-opacity, 1))}.dark\\:hover\\:bg-white:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.dark\\:hover\\:bg-blue-900\\/30:hover:is(.dark *){background-color:#1e3a8a4d}.dark\\:focus\\:ring-blue-900:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(30 58 138 / var(--tw-ring-opacity, 1))}.dark\\:focus\\:ring-green-900:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(20 83 45 / var(--tw-ring-opacity, 1))}.dark\\:focus\\:ring-red-900:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(127 29 29 / var(--tw-ring-opacity, 1))}.dark\\:focus\\:ring-slate-900:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(15 23 42 / var(--tw-ring-opacity, 1))}@media (min-width: 768px){.md\\:bottom-2{bottom:.5rem}.md\\:bottom-\\[110px\\]{bottom:110px}.md\\:left-auto{left:auto}.md\\:right-3{right:.75rem}.md\\:right-\\[40px\\]{right:40px}.md\\:top-auto{top:auto}.md\\:h-\\[600px\\]{height:600px}.md\\:w-\\[400px\\]{width:400px}}.chatBox{overflow-x:hidden}.chatBox ol>li{margin-top:10px;background-color:#0000001a;padding:.5rem 1rem 1rem;border-radius:.5rem}.chatBox ol>li>p:first-child,.chatBox ol>li>li:first-child,.chatBox h3,.chatBox h2{font-size:1.5rem;margin:1rem 0}.chatBox a{display:block;cursor:pointer;color:#00f;font-size:1.1rem;margin:1rem 0}.chatBox a:hover{text-decoration:underline}.chatBox img{display:block;margin:2rem 0;max-width:200px}.chatBox hr{margin:1.5rem 0}.menuTransition-enter{opacity:0;transform:scale(.9) translate(200px)}.menuTransition-enter-active{opacity:1;transform:translate(0);transition:opacity .3s,transform .3s}.menuTransition-exit{opacity:1}.menuTransition-exit-active{opacity:0;transform:scale(.5) translate(400px);transition:opacity .3s,transform .3s}p,li,textarea{font-size:14px}textarea::placeholder{font-size:14px}.assetContainer svg{width:2rem;height:2rem}.launcher{background-color:#7c3aed;border-radius:50%;box-shadow:0 0 4px 5px #0003;width:3rem;height:3rem;bottom:40px;right:40px}.launcher .assetContainer svg{fill:#fff}.assistant .assetContainer svg{fill:#32cf56}@tailwind base;@tailwind components;@tailwind utilities;')),document.head.appendChild(t)}}catch(r){console.error("vite-plugin-css-injected-by-js",r)}})();
|
|
2
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const L=require("react/jsx-runtime"),
|
|
2
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const L=require("react/jsx-runtime"),N=require("react"),Cl=require("lottie-react"),Il=require("@lottiefiles/dotlottie-react"),jn=require("react-dom");function Nl(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const De=Nl(N);var sa=function(e,t){return sa=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(n[a]=r[a])},sa(e,t)};function Je(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");sa(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var q=function(){return q=Object.assign||function(t){for(var n,r=1,a=arguments.length;r<a;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},q.apply(this,arguments)};function pr(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n}function st(e,t,n){if(n||arguments.length===2)for(var r=0,a=t.length,i;r<a;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}function Ba(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var $n={exports:{}},Te={};/** @license React v16.13.1
|
|
3
3
|
* react-is.production.min.js
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
6
6
|
*
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var di;function
|
|
9
|
+
*/var di;function Ol(){if(di)return Te;di=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,u=e?Symbol.for("react.provider"):60109,o=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,f=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,_=e?Symbol.for("react.lazy"):60116,A=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,x=e?Symbol.for("react.responder"):60118,P=e?Symbol.for("react.scope"):60119;function R(C){if(typeof C=="object"&&C!==null){var O=C.$$typeof;switch(O){case t:switch(C=C.type,C){case l:case c:case r:case i:case a:case d:return C;default:switch(C=C&&C.$$typeof,C){case o:case f:case _:case m:case u:return C;default:return O}}case n:return O}}}function B(C){return R(C)===c}return Te.AsyncMode=l,Te.ConcurrentMode=c,Te.ContextConsumer=o,Te.ContextProvider=u,Te.Element=t,Te.ForwardRef=f,Te.Fragment=r,Te.Lazy=_,Te.Memo=m,Te.Portal=n,Te.Profiler=i,Te.StrictMode=a,Te.Suspense=d,Te.isAsyncMode=function(C){return B(C)||R(C)===l},Te.isConcurrentMode=B,Te.isContextConsumer=function(C){return R(C)===o},Te.isContextProvider=function(C){return R(C)===u},Te.isElement=function(C){return typeof C=="object"&&C!==null&&C.$$typeof===t},Te.isForwardRef=function(C){return R(C)===f},Te.isFragment=function(C){return R(C)===r},Te.isLazy=function(C){return R(C)===_},Te.isMemo=function(C){return R(C)===m},Te.isPortal=function(C){return R(C)===n},Te.isProfiler=function(C){return R(C)===i},Te.isStrictMode=function(C){return R(C)===a},Te.isSuspense=function(C){return R(C)===d},Te.isValidElementType=function(C){return typeof C=="string"||typeof C=="function"||C===r||C===c||C===i||C===a||C===d||C===h||typeof C=="object"&&C!==null&&(C.$$typeof===_||C.$$typeof===m||C.$$typeof===u||C.$$typeof===o||C.$$typeof===f||C.$$typeof===v||C.$$typeof===x||C.$$typeof===P||C.$$typeof===A)},Te.typeOf=R,Te}var Ae={};/** @license React v16.13.1
|
|
10
10
|
* react-is.development.js
|
|
11
11
|
*
|
|
12
12
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
13
13
|
*
|
|
14
14
|
* This source code is licensed under the MIT license found in the
|
|
15
15
|
* LICENSE file in the root directory of this source tree.
|
|
16
|
-
*/var hi;function Ol(){return hi||(hi=1,process.env.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,u=e?Symbol.for("react.provider"):60109,o=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,f=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,y=e?Symbol.for("react.lazy"):60116,A=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,x=e?Symbol.for("react.responder"):60118,P=e?Symbol.for("react.scope"):60119;function R(U){return typeof U=="string"||typeof U=="function"||U===r||U===c||U===i||U===a||U===d||U===h||typeof U=="object"&&U!==null&&(U.$$typeof===y||U.$$typeof===m||U.$$typeof===u||U.$$typeof===o||U.$$typeof===f||U.$$typeof===v||U.$$typeof===x||U.$$typeof===P||U.$$typeof===A)}function B(U){if(typeof U=="object"&&U!==null){var Re=U.$$typeof;switch(Re){case t:var ke=U.type;switch(ke){case l:case c:case r:case i:case a:case d:return ke;default:var ze=ke&&ke.$$typeof;switch(ze){case o:case f:case y:case m:case u:return ze;default:return Re}}case n:return Re}}}var C=l,N=c,Q=o,de=u,re=t,z=f,j=r,F=y,$=m,Y=n,Z=i,he=a,se=d,Ee=!1;function Le(U){return Ee||(Ee=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),p(U)||B(U)===l}function p(U){return B(U)===c}function H(U){return B(U)===o}function G(U){return B(U)===u}function g(U){return typeof U=="object"&&U!==null&&U.$$typeof===t}function W(U){return B(U)===f}function K(U){return B(U)===r}function V(U){return B(U)===y}function J(U){return B(U)===m}function ee(U){return B(U)===n}function te(U){return B(U)===i}function ae(U){return B(U)===a}function Ne(U){return B(U)===d}Ae.AsyncMode=C,Ae.ConcurrentMode=N,Ae.ContextConsumer=Q,Ae.ContextProvider=de,Ae.Element=re,Ae.ForwardRef=z,Ae.Fragment=j,Ae.Lazy=F,Ae.Memo=$,Ae.Portal=Y,Ae.Profiler=Z,Ae.StrictMode=he,Ae.Suspense=se,Ae.isAsyncMode=Le,Ae.isConcurrentMode=p,Ae.isContextConsumer=H,Ae.isContextProvider=G,Ae.isElement=g,Ae.isForwardRef=W,Ae.isFragment=K,Ae.isLazy=V,Ae.isMemo=J,Ae.isPortal=ee,Ae.isProfiler=te,Ae.isStrictMode=ae,Ae.isSuspense=Ne,Ae.isValidElementType=R,Ae.typeOf=B})()),Ae}var mi;function Fa(){return mi||(mi=1,process.env.NODE_ENV==="production"?jn.exports=Nl():jn.exports=Ol()),jn.exports}var Lr,pi;function Ll(){if(pi)return Lr;pi=1;var e=Fa(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},i={};i[e.ForwardRef]=r,i[e.Memo]=a;function u(y){return e.isMemo(y)?a:i[y.$$typeof]||t}var o=Object.defineProperty,l=Object.getOwnPropertyNames,c=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,h=Object.prototype;function m(y,A,v){if(typeof A!="string"){if(h){var x=d(A);x&&x!==h&&m(y,x,v)}var P=l(A);c&&(P=P.concat(c(A)));for(var R=u(y),B=u(A),C=0;C<P.length;++C){var N=P[C];if(!n[N]&&!(v&&v[N])&&!(B&&B[N])&&!(R&&R[N])){var Q=f(A,N);try{o(y,N,Q)}catch{}}}}return y}return Lr=m,Lr}Ll();function es(e,t,n){if(n===void 0&&(n=Error),!e)throw new n(t)}var me;(function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(me||(me={}));var Ce;(function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"})(Ce||(Ce={}));var Zt;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(Zt||(Zt={}));function Ei(e){return e.type===Ce.literal}function Rl(e){return e.type===Ce.argument}function ts(e){return e.type===Ce.number}function ns(e){return e.type===Ce.date}function rs(e){return e.type===Ce.time}function as(e){return e.type===Ce.select}function is(e){return e.type===Ce.plural}function vl(e){return e.type===Ce.pound}function us(e){return e.type===Ce.tag}function ss(e){return!!(e&&typeof e=="object"&&e.type===Zt.number)}function oa(e){return!!(e&&typeof e=="object"&&e.type===Zt.dateTime)}var os=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Pl=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function Dl(e){var t={};return e.replace(Pl,function(n){var r=n.length;switch(n[0]){case"G":t.era=r===4?"long":r===5?"narrow":"short";break;case"y":t.year=r===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][r-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][r-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=r===4?"long":r===5?"narrow":"short";break;case"e":if(r<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"c":if(r<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][r-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][r-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][r-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][r-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][r-1];break;case"s":t.second=["numeric","2-digit"][r-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=r<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),t}var kl=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function wl(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(kl).filter(function(h){return h.length>0}),n=[],r=0,a=t;r<a.length;r++){var i=a[r],u=i.split("/");if(u.length===0)throw new Error("Invalid number skeleton");for(var o=u[0],l=u.slice(1),c=0,f=l;c<f.length;c++){var d=f[c];if(d.length===0)throw new Error("Invalid number skeleton")}n.push({stem:o,options:l})}return n}function Ml(e){return e.replace(/^(.*?)-/,"")}var bi=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,ls=/^(@+)?(\+|#+)?[rs]?$/g,Bl=/(\*)(0+)|(#+)(0+)|(0+)/g,cs=/^(0+)$/;function gi(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(ls,function(n,r,a){return typeof a!="string"?(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length):a==="+"?t.minimumSignificantDigits=r.length:r[0]==="#"?t.maximumSignificantDigits=r.length:(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length+(typeof a=="string"?a.length:0)),""}),t}function fs(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function Fl(e){var t;if(e[0]==="E"&&e[1]==="E"?(t={notation:"engineering"},e=e.slice(2)):e[0]==="E"&&(t={notation:"scientific"},e=e.slice(1)),t){var n=e.slice(0,2);if(n==="+!"?(t.signDisplay="always",e=e.slice(2)):n==="+?"&&(t.signDisplay="exceptZero",e=e.slice(2)),!cs.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function Ti(e){var t={},n=fs(e);return n||t}function Hl(e){for(var t={},n=0,r=e;n<r.length;n++){var a=r[n];switch(a.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=a.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=Ml(a.options[0]);continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=q(q(q({},t),{notation:"scientific"}),a.options.reduce(function(l,c){return q(q({},l),Ti(c))},{}));continue;case"engineering":t=q(q(q({},t),{notation:"engineering"}),a.options.reduce(function(l,c){return q(q({},l),Ti(c))},{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(a.options[0]);continue;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.roundingMode="halfExpand";continue;case"integer-width":if(a.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");a.options[0].replace(Bl,function(l,c,f,d,h,m){if(c)t.minimumIntegerDigits=f.length;else{if(d&&h)throw new Error("We currently do not support maximum integer digits");if(m)throw new Error("We currently do not support exact integer digits")}return""});continue}if(cs.test(a.stem)){t.minimumIntegerDigits=a.stem.length;continue}if(bi.test(a.stem)){if(a.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");a.stem.replace(bi,function(l,c,f,d,h,m){return f==="*"?t.minimumFractionDigits=c.length:d&&d[0]==="#"?t.maximumFractionDigits=d.length:h&&m?(t.minimumFractionDigits=h.length,t.maximumFractionDigits=h.length+m.length):(t.minimumFractionDigits=c.length,t.maximumFractionDigits=c.length),""});var i=a.options[0];i==="w"?t=q(q({},t),{trailingZeroDisplay:"stripIfInteger"}):i&&(t=q(q({},t),gi(i)));continue}if(ls.test(a.stem)){t=q(q({},t),gi(a.stem));continue}var u=fs(a.stem);u&&(t=q(q({},t),u));var o=Fl(a.stem);o&&(t=q(q({},t),o))}return t}var $n={"001":["H","h"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["H","h","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["H","hB","h","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["H","h","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["H","hB","h","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["H","h","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["H","h","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["H","h","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["H","h","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["H","hB","h","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["H","h","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["H","h","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["H","h","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function Ul(e,t){for(var n="",r=0;r<e.length;r++){var a=e.charAt(r);if(a==="j"){for(var i=0;r+1<e.length&&e.charAt(r+1)===a;)i++,r++;var u=1+(i&1),o=i<2?1:3+(i>>1),l="a",c=jl(t);for((c=="H"||c=="k")&&(o=0);o-- >0;)n+=l;for(;u-- >0;)n=c+n}else a==="J"?n+="H":n+=a}return n}function jl(e){var t=e.hourCycle;if(t===void 0&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var n=e.language,r;n!=="root"&&(r=e.maximize().region);var a=$n[r||""]||$n[n||""]||$n["".concat(n,"-001")]||$n["001"];return a[0]}var Rr,$l=new RegExp("^".concat(os.source,"*")),Yl=new RegExp("".concat(os.source,"*$"));function pe(e,t){return{start:e,end:t}}var Gl=!!String.prototype.startsWith&&"_a".startsWith("a",1),zl=!!String.fromCodePoint,Vl=!!Object.fromEntries,ql=!!String.prototype.codePointAt,Wl=!!String.prototype.trimStart,Xl=!!String.prototype.trimEnd,Ql=!!Number.isSafeInteger,Kl=Ql?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},la=!0;try{var Zl=hs("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");la=((Rr=Zl.exec("a"))===null||Rr===void 0?void 0:Rr[0])==="a"}catch{la=!1}var Ai=Gl?function(t,n,r){return t.startsWith(n,r)}:function(t,n,r){return t.slice(r,r+n.length)===n},ca=zl?String.fromCodePoint:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];for(var r="",a=t.length,i=0,u;a>i;){if(u=t[i++],u>1114111)throw RangeError(u+" is not a valid code point");r+=u<65536?String.fromCharCode(u):String.fromCharCode(((u-=65536)>>10)+55296,u%1024+56320)}return r},_i=Vl?Object.fromEntries:function(t){for(var n={},r=0,a=t;r<a.length;r++){var i=a[r],u=i[0],o=i[1];n[u]=o}return n},ds=ql?function(t,n){return t.codePointAt(n)}:function(t,n){var r=t.length;if(!(n<0||n>=r)){var a=t.charCodeAt(n),i;return a<55296||a>56319||n+1===r||(i=t.charCodeAt(n+1))<56320||i>57343?a:(a-55296<<10)+(i-56320)+65536}},Jl=Wl?function(t){return t.trimStart()}:function(t){return t.replace($l,"")},ec=Xl?function(t){return t.trimEnd()}:function(t){return t.replace(Yl,"")};function hs(e,t){return new RegExp(e,t)}var fa;if(la){var yi=hs("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");fa=function(t,n){var r;yi.lastIndex=n;var a=yi.exec(t);return(r=a[1])!==null&&r!==void 0?r:""}}else fa=function(t,n){for(var r=[];;){var a=ds(t,n);if(a===void 0||ms(a)||ac(a))break;r.push(a),n+=a>=65536?2:1}return ca.apply(void 0,r)};var tc=(function(){function e(t,n){n===void 0&&(n={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!n.ignoreTag,this.locale=n.locale,this.requiresOtherClause=!!n.requiresOtherClause,this.shouldParseSkeletons=!!n.shouldParseSkeletons}return e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(t,n,r){for(var a=[];!this.isEOF();){var i=this.char();if(i===123){var u=this.parseArgument(t,r);if(u.err)return u;a.push(u.val)}else{if(i===125&&t>0)break;if(i===35&&(n==="plural"||n==="selectordinal")){var o=this.clonePosition();this.bump(),a.push({type:Ce.pound,location:pe(o,this.clonePosition())})}else if(i===60&&!this.ignoreTag&&this.peek()===47){if(r)break;return this.error(me.UNMATCHED_CLOSING_TAG,pe(this.clonePosition(),this.clonePosition()))}else if(i===60&&!this.ignoreTag&&da(this.peek()||0)){var u=this.parseTag(t,n);if(u.err)return u;a.push(u.val)}else{var u=this.parseLiteral(t,n);if(u.err)return u;a.push(u.val)}}}return{val:a,err:null}},e.prototype.parseTag=function(t,n){var r=this.clonePosition();this.bump();var a=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:Ce.literal,value:"<".concat(a,"/>"),location:pe(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var i=this.parseMessage(t+1,n,!0);if(i.err)return i;var u=i.val,o=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!da(this.char()))return this.error(me.INVALID_TAG,pe(o,this.clonePosition()));var l=this.clonePosition(),c=this.parseTagName();return a!==c?this.error(me.UNMATCHED_CLOSING_TAG,pe(l,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:Ce.tag,value:a,children:u,location:pe(r,this.clonePosition())},err:null}:this.error(me.INVALID_TAG,pe(o,this.clonePosition())))}else return this.error(me.UNCLOSED_TAG,pe(r,this.clonePosition()))}else return this.error(me.INVALID_TAG,pe(r,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&rc(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,n){for(var r=this.clonePosition(),a="";;){var i=this.tryParseQuote(n);if(i){a+=i;continue}var u=this.tryParseUnquoted(t,n);if(u){a+=u;continue}var o=this.tryParseLeftAngleBracket();if(o){a+=o;continue}break}var l=pe(r,this.clonePosition());return{val:{type:Ce.literal,value:a,location:l},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!nc(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(t){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(t==="plural"||t==="selectordinal")break;return null;default:return null}this.bump();var n=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(r===39)if(this.peek()===39)n.push(39),this.bump();else{this.bump();break}else n.push(r);this.bump()}return ca.apply(void 0,n)},e.prototype.tryParseUnquoted=function(t,n){if(this.isEOF())return null;var r=this.char();return r===60||r===123||r===35&&(n==="plural"||n==="selectordinal")||r===125&&t>0?null:(this.bump(),ca(r))},e.prototype.parseArgument=function(t,n){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(me.EXPECT_ARGUMENT_CLOSING_BRACE,pe(r,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(me.EMPTY_ARGUMENT,pe(r,this.clonePosition()));var a=this.parseIdentifierIfPossible().value;if(!a)return this.error(me.MALFORMED_ARGUMENT,pe(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(me.EXPECT_ARGUMENT_CLOSING_BRACE,pe(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:Ce.argument,value:a,location:pe(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(me.EXPECT_ARGUMENT_CLOSING_BRACE,pe(r,this.clonePosition())):this.parseArgumentOptions(t,n,a,r);default:return this.error(me.MALFORMED_ARGUMENT,pe(r,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),n=this.offset(),r=fa(this.message,n),a=n+r.length;this.bumpTo(a);var i=this.clonePosition(),u=pe(t,i);return{value:r,location:u}},e.prototype.parseArgumentOptions=function(t,n,r,a){var i,u=this.clonePosition(),o=this.parseIdentifierIfPossible().value,l=this.clonePosition();switch(o){case"":return this.error(me.EXPECT_ARGUMENT_TYPE,pe(u,l));case"number":case"date":case"time":{this.bumpSpace();var c=null;if(this.bumpIf(",")){this.bumpSpace();var f=this.clonePosition(),d=this.parseSimpleArgStyleIfPossible();if(d.err)return d;var h=ec(d.val);if(h.length===0)return this.error(me.EXPECT_ARGUMENT_STYLE,pe(this.clonePosition(),this.clonePosition()));var m=pe(f,this.clonePosition());c={style:h,styleLocation:m}}var y=this.tryParseArgumentClose(a);if(y.err)return y;var A=pe(a,this.clonePosition());if(c&&Ai(c?.style,"::",0)){var v=Jl(c.style.slice(2));if(o==="number"){var d=this.parseNumberSkeletonFromString(v,c.styleLocation);return d.err?d:{val:{type:Ce.number,value:r,location:A,style:d.val},err:null}}else{if(v.length===0)return this.error(me.EXPECT_DATE_TIME_SKELETON,A);var x=v;this.locale&&(x=Ul(v,this.locale));var h={type:Zt.dateTime,pattern:x,location:c.styleLocation,parsedOptions:this.shouldParseSkeletons?Dl(x):{}},P=o==="date"?Ce.date:Ce.time;return{val:{type:P,value:r,location:A,style:h},err:null}}}return{val:{type:o==="number"?Ce.number:o==="date"?Ce.date:Ce.time,value:r,location:A,style:(i=c?.style)!==null&&i!==void 0?i:null},err:null}}case"plural":case"selectordinal":case"select":{var R=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(me.EXPECT_SELECT_ARGUMENT_OPTIONS,pe(R,q({},R)));this.bumpSpace();var B=this.parseIdentifierIfPossible(),C=0;if(o!=="select"&&B.value==="offset"){if(!this.bumpIf(":"))return this.error(me.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,pe(this.clonePosition(),this.clonePosition()));this.bumpSpace();var d=this.tryParseDecimalInteger(me.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,me.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(d.err)return d;this.bumpSpace(),B=this.parseIdentifierIfPossible(),C=d.val}var N=this.tryParsePluralOrSelectOptions(t,o,n,B);if(N.err)return N;var y=this.tryParseArgumentClose(a);if(y.err)return y;var Q=pe(a,this.clonePosition());return o==="select"?{val:{type:Ce.select,value:r,options:_i(N.val),location:Q},err:null}:{val:{type:Ce.plural,value:r,options:_i(N.val),offset:C,pluralType:o==="plural"?"cardinal":"ordinal",location:Q},err:null}}default:return this.error(me.INVALID_ARGUMENT_TYPE,pe(u,l))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(me.EXPECT_ARGUMENT_CLOSING_BRACE,pe(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,n=this.clonePosition();!this.isEOF();){var r=this.char();switch(r){case 39:{this.bump();var a=this.clonePosition();if(!this.bumpUntil("'"))return this.error(me.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,pe(a,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return{val:this.message.slice(n.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(n.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,n){var r=[];try{r=wl(t)}catch{return this.error(me.INVALID_NUMBER_SKELETON,n)}return{val:{type:Zt.number,tokens:r,location:n,parsedOptions:this.shouldParseSkeletons?Hl(r):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,n,r,a){for(var i,u=!1,o=[],l=new Set,c=a.value,f=a.location;;){if(c.length===0){var d=this.clonePosition();if(n!=="select"&&this.bumpIf("=")){var h=this.tryParseDecimalInteger(me.EXPECT_PLURAL_ARGUMENT_SELECTOR,me.INVALID_PLURAL_ARGUMENT_SELECTOR);if(h.err)return h;f=pe(d,this.clonePosition()),c=this.message.slice(d.offset,this.offset())}else break}if(l.has(c))return this.error(n==="select"?me.DUPLICATE_SELECT_ARGUMENT_SELECTOR:me.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,f);c==="other"&&(u=!0),this.bumpSpace();var m=this.clonePosition();if(!this.bumpIf("{"))return this.error(n==="select"?me.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:me.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,pe(this.clonePosition(),this.clonePosition()));var y=this.parseMessage(t+1,n,r);if(y.err)return y;var A=this.tryParseArgumentClose(m);if(A.err)return A;o.push([c,{value:y.val,location:pe(m,this.clonePosition())}]),l.add(c),this.bumpSpace(),i=this.parseIdentifierIfPossible(),c=i.value,f=i.location}return o.length===0?this.error(n==="select"?me.EXPECT_SELECT_ARGUMENT_SELECTOR:me.EXPECT_PLURAL_ARGUMENT_SELECTOR,pe(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!u?this.error(me.MISSING_OTHER_CLAUSE,pe(this.clonePosition(),this.clonePosition())):{val:o,err:null}},e.prototype.tryParseDecimalInteger=function(t,n){var r=1,a=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var i=!1,u=0;!this.isEOF();){var o=this.char();if(o>=48&&o<=57)i=!0,u=u*10+(o-48),this.bump();else break}var l=pe(a,this.clonePosition());return i?(u*=r,Kl(u)?{val:u,err:null}:this.error(n,l)):this.error(t,l)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var n=ds(this.message,t);if(n===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return n},e.prototype.error=function(t,n){return{val:null,err:{kind:t,message:this.message,location:n}}},e.prototype.bump=function(){if(!this.isEOF()){var t=this.char();t===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},e.prototype.bumpIf=function(t){if(Ai(this.message,t,this.offset())){for(var n=0;n<t.length;n++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(t){var n=this.offset(),r=this.message.indexOf(t,n);return r>=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var n=this.offset();if(n===t)break;if(n>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&ms(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),n=this.offset(),r=this.message.charCodeAt(n+(t>=65536?2:1));return r??null},e})();function da(e){return e>=97&&e<=122||e>=65&&e<=90}function nc(e){return da(e)||e===47}function rc(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function ms(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function ac(e){return e>=33&&e<=35||e===36||e>=37&&e<=39||e===40||e===41||e===42||e===43||e===44||e===45||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||e===91||e===92||e===93||e===94||e===96||e===123||e===124||e===125||e===126||e===161||e>=162&&e<=165||e===166||e===167||e===169||e===171||e===172||e===174||e===176||e===177||e===182||e===187||e===191||e===215||e===247||e>=8208&&e<=8213||e>=8214&&e<=8215||e===8216||e===8217||e===8218||e>=8219&&e<=8220||e===8221||e===8222||e===8223||e>=8224&&e<=8231||e>=8240&&e<=8248||e===8249||e===8250||e>=8251&&e<=8254||e>=8257&&e<=8259||e===8260||e===8261||e===8262||e>=8263&&e<=8273||e===8274||e===8275||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||e===8608||e>=8609&&e<=8610||e===8611||e>=8612&&e<=8613||e===8614||e>=8615&&e<=8621||e===8622||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||e===8658||e===8659||e===8660||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||e===8968||e===8969||e===8970||e===8971||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||e===9001||e===9002||e>=9003&&e<=9083||e===9084||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||e===9655||e>=9656&&e<=9664||e===9665||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||e===9839||e>=9840&&e<=10087||e===10088||e===10089||e===10090||e===10091||e===10092||e===10093||e===10094||e===10095||e===10096||e===10097||e===10098||e===10099||e===10100||e===10101||e>=10132&&e<=10175||e>=10176&&e<=10180||e===10181||e===10182||e>=10183&&e<=10213||e===10214||e===10215||e===10216||e===10217||e===10218||e===10219||e===10220||e===10221||e===10222||e===10223||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||e===10627||e===10628||e===10629||e===10630||e===10631||e===10632||e===10633||e===10634||e===10635||e===10636||e===10637||e===10638||e===10639||e===10640||e===10641||e===10642||e===10643||e===10644||e===10645||e===10646||e===10647||e===10648||e>=10649&&e<=10711||e===10712||e===10713||e===10714||e===10715||e>=10716&&e<=10747||e===10748||e===10749||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||e===11158||e>=11159&&e<=11263||e>=11776&&e<=11777||e===11778||e===11779||e===11780||e===11781||e>=11782&&e<=11784||e===11785||e===11786||e===11787||e===11788||e===11789||e>=11790&&e<=11798||e===11799||e>=11800&&e<=11801||e===11802||e===11803||e===11804||e===11805||e>=11806&&e<=11807||e===11808||e===11809||e===11810||e===11811||e===11812||e===11813||e===11814||e===11815||e===11816||e===11817||e>=11818&&e<=11822||e===11823||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||e===11840||e===11841||e===11842||e>=11843&&e<=11855||e>=11856&&e<=11857||e===11858||e>=11859&&e<=11903||e>=12289&&e<=12291||e===12296||e===12297||e===12298||e===12299||e===12300||e===12301||e===12302||e===12303||e===12304||e===12305||e>=12306&&e<=12307||e===12308||e===12309||e===12310||e===12311||e===12312||e===12313||e===12314||e===12315||e===12316||e===12317||e>=12318&&e<=12319||e===12320||e===12336||e===64830||e===64831||e>=65093&&e<=65094}function ha(e){e.forEach(function(t){if(delete t.location,as(t)||is(t))for(var n in t.options)delete t.options[n].location,ha(t.options[n].value);else ts(t)&&ss(t.style)||(ns(t)||rs(t))&&oa(t.style)?delete t.style.location:us(t)&&ha(t.children)})}function ic(e,t){t===void 0&&(t={}),t=q({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new tc(e,t).parse();if(n.err){var r=SyntaxError(me[n.err.kind]);throw r.location=n.err.location,r.originalMessage=n.err.message,r}return t?.captureLocation||ha(n.val),n.val}function it(e,t){var n=t&&t.cache?t.cache:fc,r=t&&t.serializer?t.serializer:cc,a=t&&t.strategy?t.strategy:oc;return a(e,{cache:n,serializer:r})}function uc(e){return e==null||typeof e=="number"||typeof e=="boolean"}function sc(e,t,n,r){var a=uc(r)?r:n(r),i=t.get(a);return typeof i>"u"&&(i=e.call(this,r),t.set(a,i)),i}function ps(e,t,n){var r=Array.prototype.slice.call(arguments,3),a=n(r),i=t.get(a);return typeof i>"u"&&(i=e.apply(this,r),t.set(a,i)),i}function Es(e,t,n,r,a){return n.bind(t,e,r,a)}function oc(e,t){var n=e.length===1?sc:ps;return Es(e,this,n,t.cache.create(),t.serializer)}function lc(e,t){return Es(e,this,ps,t.cache.create(),t.serializer)}var cc=function(){return JSON.stringify(arguments)};function Ha(){this.cache=Object.create(null)}Ha.prototype.get=function(e){return this.cache[e]};Ha.prototype.set=function(e,t){this.cache[e]=t};var fc={create:function(){return new Ha}},ut={variadic:lc},ct;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(ct||(ct={}));var yt=(function(e){Je(t,e);function t(n,r,a){var i=e.call(this,n)||this;return i.code=r,i.originalMessage=a,i}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t})(Error),xi=(function(e){Je(t,e);function t(n,r,a,i){return e.call(this,'Invalid values for "'.concat(n,'": "').concat(r,'". Options are "').concat(Object.keys(a).join('", "'),'"'),ct.INVALID_VALUE,i)||this}return t})(yt),dc=(function(e){Je(t,e);function t(n,r,a){return e.call(this,'Value for "'.concat(n,'" must be of type ').concat(r),ct.INVALID_VALUE,a)||this}return t})(yt),hc=(function(e){Je(t,e);function t(n,r){return e.call(this,'The intl string context variable "'.concat(n,'" was not provided to the string "').concat(r,'"'),ct.MISSING_VALUE,r)||this}return t})(yt),Ue;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(Ue||(Ue={}));function mc(e){return e.length<2?e:e.reduce(function(t,n){var r=t[t.length-1];return!r||r.type!==Ue.literal||n.type!==Ue.literal?t.push(n):r.value+=n.value,t},[])}function bs(e){return typeof e=="function"}function Zn(e,t,n,r,a,i,u){if(e.length===1&&Ei(e[0]))return[{type:Ue.literal,value:e[0].value}];for(var o=[],l=0,c=e;l<c.length;l++){var f=c[l];if(Ei(f)){o.push({type:Ue.literal,value:f.value});continue}if(vl(f)){typeof i=="number"&&o.push({type:Ue.literal,value:n.getNumberFormat(t).format(i)});continue}var d=f.value;if(!(a&&d in a))throw new hc(d,u);var h=a[d];if(Rl(f)){(!h||typeof h=="string"||typeof h=="number")&&(h=typeof h=="string"||typeof h=="number"?String(h):""),o.push({type:typeof h=="string"?Ue.literal:Ue.object,value:h});continue}if(ns(f)){var m=typeof f.style=="string"?r.date[f.style]:oa(f.style)?f.style.parsedOptions:void 0;o.push({type:Ue.literal,value:n.getDateTimeFormat(t,m).format(h)});continue}if(rs(f)){var m=typeof f.style=="string"?r.time[f.style]:oa(f.style)?f.style.parsedOptions:r.time.medium;o.push({type:Ue.literal,value:n.getDateTimeFormat(t,m).format(h)});continue}if(ts(f)){var m=typeof f.style=="string"?r.number[f.style]:ss(f.style)?f.style.parsedOptions:void 0;m&&m.scale&&(h=h*(m.scale||1)),o.push({type:Ue.literal,value:n.getNumberFormat(t,m).format(h)});continue}if(us(f)){var y=f.children,A=f.value,v=a[A];if(!bs(v))throw new dc(A,"function",u);var x=Zn(y,t,n,r,a,i),P=v(x.map(function(C){return C.value}));Array.isArray(P)||(P=[P]),o.push.apply(o,P.map(function(C){return{type:typeof C=="string"?Ue.literal:Ue.object,value:C}}))}if(as(f)){var R=f.options[h]||f.options.other;if(!R)throw new xi(f.value,h,Object.keys(f.options),u);o.push.apply(o,Zn(R.value,t,n,r,a));continue}if(is(f)){var R=f.options["=".concat(h)];if(!R){if(!Intl.PluralRules)throw new yt(`Intl.PluralRules is not available in this environment.
|
|
16
|
+
*/var hi;function Ll(){return hi||(hi=1,process.env.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,u=e?Symbol.for("react.provider"):60109,o=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,f=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,_=e?Symbol.for("react.lazy"):60116,A=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,x=e?Symbol.for("react.responder"):60118,P=e?Symbol.for("react.scope"):60119;function R(U){return typeof U=="string"||typeof U=="function"||U===r||U===c||U===i||U===a||U===d||U===h||typeof U=="object"&&U!==null&&(U.$$typeof===_||U.$$typeof===m||U.$$typeof===u||U.$$typeof===o||U.$$typeof===f||U.$$typeof===v||U.$$typeof===x||U.$$typeof===P||U.$$typeof===A)}function B(U){if(typeof U=="object"&&U!==null){var Re=U.$$typeof;switch(Re){case t:var ke=U.type;switch(ke){case l:case c:case r:case i:case a:case d:return ke;default:var ze=ke&&ke.$$typeof;switch(ze){case o:case f:case _:case m:case u:return ze;default:return Re}}case n:return Re}}}var C=l,O=c,Q=o,de=u,re=t,z=f,j=r,F=_,$=m,Y=n,Z=i,he=a,se=d,Ee=!1;function Le(U){return Ee||(Ee=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),p(U)||B(U)===l}function p(U){return B(U)===c}function H(U){return B(U)===o}function G(U){return B(U)===u}function g(U){return typeof U=="object"&&U!==null&&U.$$typeof===t}function W(U){return B(U)===f}function K(U){return B(U)===r}function V(U){return B(U)===_}function J(U){return B(U)===m}function ee(U){return B(U)===n}function te(U){return B(U)===i}function ae(U){return B(U)===a}function Oe(U){return B(U)===d}Ae.AsyncMode=C,Ae.ConcurrentMode=O,Ae.ContextConsumer=Q,Ae.ContextProvider=de,Ae.Element=re,Ae.ForwardRef=z,Ae.Fragment=j,Ae.Lazy=F,Ae.Memo=$,Ae.Portal=Y,Ae.Profiler=Z,Ae.StrictMode=he,Ae.Suspense=se,Ae.isAsyncMode=Le,Ae.isConcurrentMode=p,Ae.isContextConsumer=H,Ae.isContextProvider=G,Ae.isElement=g,Ae.isForwardRef=W,Ae.isFragment=K,Ae.isLazy=V,Ae.isMemo=J,Ae.isPortal=ee,Ae.isProfiler=te,Ae.isStrictMode=ae,Ae.isSuspense=Oe,Ae.isValidElementType=R,Ae.typeOf=B})()),Ae}var mi;function Fa(){return mi||(mi=1,process.env.NODE_ENV==="production"?$n.exports=Ol():$n.exports=Ll()),$n.exports}var Lr,pi;function Rl(){if(pi)return Lr;pi=1;var e=Fa(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},i={};i[e.ForwardRef]=r,i[e.Memo]=a;function u(_){return e.isMemo(_)?a:i[_.$$typeof]||t}var o=Object.defineProperty,l=Object.getOwnPropertyNames,c=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,h=Object.prototype;function m(_,A,v){if(typeof A!="string"){if(h){var x=d(A);x&&x!==h&&m(_,x,v)}var P=l(A);c&&(P=P.concat(c(A)));for(var R=u(_),B=u(A),C=0;C<P.length;++C){var O=P[C];if(!n[O]&&!(v&&v[O])&&!(B&&B[O])&&!(R&&R[O])){var Q=f(A,O);try{o(_,O,Q)}catch{}}}}return _}return Lr=m,Lr}Rl();function ts(e,t,n){if(n===void 0&&(n=Error),!e)throw new n(t)}var me;(function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(me||(me={}));var Ce;(function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"})(Ce||(Ce={}));var Zt;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(Zt||(Zt={}));function Ei(e){return e.type===Ce.literal}function vl(e){return e.type===Ce.argument}function ns(e){return e.type===Ce.number}function rs(e){return e.type===Ce.date}function as(e){return e.type===Ce.time}function is(e){return e.type===Ce.select}function us(e){return e.type===Ce.plural}function Pl(e){return e.type===Ce.pound}function ss(e){return e.type===Ce.tag}function os(e){return!!(e&&typeof e=="object"&&e.type===Zt.number)}function oa(e){return!!(e&&typeof e=="object"&&e.type===Zt.dateTime)}var ls=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Dl=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function kl(e){var t={};return e.replace(Dl,function(n){var r=n.length;switch(n[0]){case"G":t.era=r===4?"long":r===5?"narrow":"short";break;case"y":t.year=r===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][r-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][r-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=r===4?"long":r===5?"narrow":"short";break;case"e":if(r<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"c":if(r<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][r-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][r-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][r-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][r-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][r-1];break;case"s":t.second=["numeric","2-digit"][r-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=r<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),t}var wl=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function Ml(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(wl).filter(function(h){return h.length>0}),n=[],r=0,a=t;r<a.length;r++){var i=a[r],u=i.split("/");if(u.length===0)throw new Error("Invalid number skeleton");for(var o=u[0],l=u.slice(1),c=0,f=l;c<f.length;c++){var d=f[c];if(d.length===0)throw new Error("Invalid number skeleton")}n.push({stem:o,options:l})}return n}function Bl(e){return e.replace(/^(.*?)-/,"")}var bi=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,cs=/^(@+)?(\+|#+)?[rs]?$/g,Fl=/(\*)(0+)|(#+)(0+)|(0+)/g,fs=/^(0+)$/;function gi(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(cs,function(n,r,a){return typeof a!="string"?(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length):a==="+"?t.minimumSignificantDigits=r.length:r[0]==="#"?t.maximumSignificantDigits=r.length:(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length+(typeof a=="string"?a.length:0)),""}),t}function ds(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function Hl(e){var t;if(e[0]==="E"&&e[1]==="E"?(t={notation:"engineering"},e=e.slice(2)):e[0]==="E"&&(t={notation:"scientific"},e=e.slice(1)),t){var n=e.slice(0,2);if(n==="+!"?(t.signDisplay="always",e=e.slice(2)):n==="+?"&&(t.signDisplay="exceptZero",e=e.slice(2)),!fs.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function Ti(e){var t={},n=ds(e);return n||t}function Ul(e){for(var t={},n=0,r=e;n<r.length;n++){var a=r[n];switch(a.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=a.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=Bl(a.options[0]);continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=q(q(q({},t),{notation:"scientific"}),a.options.reduce(function(l,c){return q(q({},l),Ti(c))},{}));continue;case"engineering":t=q(q(q({},t),{notation:"engineering"}),a.options.reduce(function(l,c){return q(q({},l),Ti(c))},{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(a.options[0]);continue;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.roundingMode="halfExpand";continue;case"integer-width":if(a.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");a.options[0].replace(Fl,function(l,c,f,d,h,m){if(c)t.minimumIntegerDigits=f.length;else{if(d&&h)throw new Error("We currently do not support maximum integer digits");if(m)throw new Error("We currently do not support exact integer digits")}return""});continue}if(fs.test(a.stem)){t.minimumIntegerDigits=a.stem.length;continue}if(bi.test(a.stem)){if(a.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");a.stem.replace(bi,function(l,c,f,d,h,m){return f==="*"?t.minimumFractionDigits=c.length:d&&d[0]==="#"?t.maximumFractionDigits=d.length:h&&m?(t.minimumFractionDigits=h.length,t.maximumFractionDigits=h.length+m.length):(t.minimumFractionDigits=c.length,t.maximumFractionDigits=c.length),""});var i=a.options[0];i==="w"?t=q(q({},t),{trailingZeroDisplay:"stripIfInteger"}):i&&(t=q(q({},t),gi(i)));continue}if(cs.test(a.stem)){t=q(q({},t),gi(a.stem));continue}var u=ds(a.stem);u&&(t=q(q({},t),u));var o=Hl(a.stem);o&&(t=q(q({},t),o))}return t}var Yn={"001":["H","h"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["H","h","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["H","hB","h","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["H","h","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["H","hB","h","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["H","h","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["H","h","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["H","h","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["H","h","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["H","hB","h","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["H","h","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["H","h","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["H","h","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function jl(e,t){for(var n="",r=0;r<e.length;r++){var a=e.charAt(r);if(a==="j"){for(var i=0;r+1<e.length&&e.charAt(r+1)===a;)i++,r++;var u=1+(i&1),o=i<2?1:3+(i>>1),l="a",c=$l(t);for((c=="H"||c=="k")&&(o=0);o-- >0;)n+=l;for(;u-- >0;)n=c+n}else a==="J"?n+="H":n+=a}return n}function $l(e){var t=e.hourCycle;if(t===void 0&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var n=e.language,r;n!=="root"&&(r=e.maximize().region);var a=Yn[r||""]||Yn[n||""]||Yn["".concat(n,"-001")]||Yn["001"];return a[0]}var Rr,Yl=new RegExp("^".concat(ls.source,"*")),Gl=new RegExp("".concat(ls.source,"*$"));function pe(e,t){return{start:e,end:t}}var zl=!!String.prototype.startsWith&&"_a".startsWith("a",1),Vl=!!String.fromCodePoint,ql=!!Object.fromEntries,Wl=!!String.prototype.codePointAt,Xl=!!String.prototype.trimStart,Ql=!!String.prototype.trimEnd,Kl=!!Number.isSafeInteger,Zl=Kl?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},la=!0;try{var Jl=ms("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");la=((Rr=Jl.exec("a"))===null||Rr===void 0?void 0:Rr[0])==="a"}catch{la=!1}var Ai=zl?function(t,n,r){return t.startsWith(n,r)}:function(t,n,r){return t.slice(r,r+n.length)===n},ca=Vl?String.fromCodePoint:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];for(var r="",a=t.length,i=0,u;a>i;){if(u=t[i++],u>1114111)throw RangeError(u+" is not a valid code point");r+=u<65536?String.fromCharCode(u):String.fromCharCode(((u-=65536)>>10)+55296,u%1024+56320)}return r},_i=ql?Object.fromEntries:function(t){for(var n={},r=0,a=t;r<a.length;r++){var i=a[r],u=i[0],o=i[1];n[u]=o}return n},hs=Wl?function(t,n){return t.codePointAt(n)}:function(t,n){var r=t.length;if(!(n<0||n>=r)){var a=t.charCodeAt(n),i;return a<55296||a>56319||n+1===r||(i=t.charCodeAt(n+1))<56320||i>57343?a:(a-55296<<10)+(i-56320)+65536}},ec=Xl?function(t){return t.trimStart()}:function(t){return t.replace(Yl,"")},tc=Ql?function(t){return t.trimEnd()}:function(t){return t.replace(Gl,"")};function ms(e,t){return new RegExp(e,t)}var fa;if(la){var yi=ms("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");fa=function(t,n){var r;yi.lastIndex=n;var a=yi.exec(t);return(r=a[1])!==null&&r!==void 0?r:""}}else fa=function(t,n){for(var r=[];;){var a=hs(t,n);if(a===void 0||ps(a)||ic(a))break;r.push(a),n+=a>=65536?2:1}return ca.apply(void 0,r)};var nc=(function(){function e(t,n){n===void 0&&(n={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!n.ignoreTag,this.locale=n.locale,this.requiresOtherClause=!!n.requiresOtherClause,this.shouldParseSkeletons=!!n.shouldParseSkeletons}return e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(t,n,r){for(var a=[];!this.isEOF();){var i=this.char();if(i===123){var u=this.parseArgument(t,r);if(u.err)return u;a.push(u.val)}else{if(i===125&&t>0)break;if(i===35&&(n==="plural"||n==="selectordinal")){var o=this.clonePosition();this.bump(),a.push({type:Ce.pound,location:pe(o,this.clonePosition())})}else if(i===60&&!this.ignoreTag&&this.peek()===47){if(r)break;return this.error(me.UNMATCHED_CLOSING_TAG,pe(this.clonePosition(),this.clonePosition()))}else if(i===60&&!this.ignoreTag&&da(this.peek()||0)){var u=this.parseTag(t,n);if(u.err)return u;a.push(u.val)}else{var u=this.parseLiteral(t,n);if(u.err)return u;a.push(u.val)}}}return{val:a,err:null}},e.prototype.parseTag=function(t,n){var r=this.clonePosition();this.bump();var a=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:Ce.literal,value:"<".concat(a,"/>"),location:pe(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var i=this.parseMessage(t+1,n,!0);if(i.err)return i;var u=i.val,o=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!da(this.char()))return this.error(me.INVALID_TAG,pe(o,this.clonePosition()));var l=this.clonePosition(),c=this.parseTagName();return a!==c?this.error(me.UNMATCHED_CLOSING_TAG,pe(l,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:Ce.tag,value:a,children:u,location:pe(r,this.clonePosition())},err:null}:this.error(me.INVALID_TAG,pe(o,this.clonePosition())))}else return this.error(me.UNCLOSED_TAG,pe(r,this.clonePosition()))}else return this.error(me.INVALID_TAG,pe(r,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&ac(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,n){for(var r=this.clonePosition(),a="";;){var i=this.tryParseQuote(n);if(i){a+=i;continue}var u=this.tryParseUnquoted(t,n);if(u){a+=u;continue}var o=this.tryParseLeftAngleBracket();if(o){a+=o;continue}break}var l=pe(r,this.clonePosition());return{val:{type:Ce.literal,value:a,location:l},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!rc(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(t){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(t==="plural"||t==="selectordinal")break;return null;default:return null}this.bump();var n=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(r===39)if(this.peek()===39)n.push(39),this.bump();else{this.bump();break}else n.push(r);this.bump()}return ca.apply(void 0,n)},e.prototype.tryParseUnquoted=function(t,n){if(this.isEOF())return null;var r=this.char();return r===60||r===123||r===35&&(n==="plural"||n==="selectordinal")||r===125&&t>0?null:(this.bump(),ca(r))},e.prototype.parseArgument=function(t,n){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(me.EXPECT_ARGUMENT_CLOSING_BRACE,pe(r,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(me.EMPTY_ARGUMENT,pe(r,this.clonePosition()));var a=this.parseIdentifierIfPossible().value;if(!a)return this.error(me.MALFORMED_ARGUMENT,pe(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(me.EXPECT_ARGUMENT_CLOSING_BRACE,pe(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:Ce.argument,value:a,location:pe(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(me.EXPECT_ARGUMENT_CLOSING_BRACE,pe(r,this.clonePosition())):this.parseArgumentOptions(t,n,a,r);default:return this.error(me.MALFORMED_ARGUMENT,pe(r,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),n=this.offset(),r=fa(this.message,n),a=n+r.length;this.bumpTo(a);var i=this.clonePosition(),u=pe(t,i);return{value:r,location:u}},e.prototype.parseArgumentOptions=function(t,n,r,a){var i,u=this.clonePosition(),o=this.parseIdentifierIfPossible().value,l=this.clonePosition();switch(o){case"":return this.error(me.EXPECT_ARGUMENT_TYPE,pe(u,l));case"number":case"date":case"time":{this.bumpSpace();var c=null;if(this.bumpIf(",")){this.bumpSpace();var f=this.clonePosition(),d=this.parseSimpleArgStyleIfPossible();if(d.err)return d;var h=tc(d.val);if(h.length===0)return this.error(me.EXPECT_ARGUMENT_STYLE,pe(this.clonePosition(),this.clonePosition()));var m=pe(f,this.clonePosition());c={style:h,styleLocation:m}}var _=this.tryParseArgumentClose(a);if(_.err)return _;var A=pe(a,this.clonePosition());if(c&&Ai(c?.style,"::",0)){var v=ec(c.style.slice(2));if(o==="number"){var d=this.parseNumberSkeletonFromString(v,c.styleLocation);return d.err?d:{val:{type:Ce.number,value:r,location:A,style:d.val},err:null}}else{if(v.length===0)return this.error(me.EXPECT_DATE_TIME_SKELETON,A);var x=v;this.locale&&(x=jl(v,this.locale));var h={type:Zt.dateTime,pattern:x,location:c.styleLocation,parsedOptions:this.shouldParseSkeletons?kl(x):{}},P=o==="date"?Ce.date:Ce.time;return{val:{type:P,value:r,location:A,style:h},err:null}}}return{val:{type:o==="number"?Ce.number:o==="date"?Ce.date:Ce.time,value:r,location:A,style:(i=c?.style)!==null&&i!==void 0?i:null},err:null}}case"plural":case"selectordinal":case"select":{var R=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(me.EXPECT_SELECT_ARGUMENT_OPTIONS,pe(R,q({},R)));this.bumpSpace();var B=this.parseIdentifierIfPossible(),C=0;if(o!=="select"&&B.value==="offset"){if(!this.bumpIf(":"))return this.error(me.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,pe(this.clonePosition(),this.clonePosition()));this.bumpSpace();var d=this.tryParseDecimalInteger(me.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,me.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(d.err)return d;this.bumpSpace(),B=this.parseIdentifierIfPossible(),C=d.val}var O=this.tryParsePluralOrSelectOptions(t,o,n,B);if(O.err)return O;var _=this.tryParseArgumentClose(a);if(_.err)return _;var Q=pe(a,this.clonePosition());return o==="select"?{val:{type:Ce.select,value:r,options:_i(O.val),location:Q},err:null}:{val:{type:Ce.plural,value:r,options:_i(O.val),offset:C,pluralType:o==="plural"?"cardinal":"ordinal",location:Q},err:null}}default:return this.error(me.INVALID_ARGUMENT_TYPE,pe(u,l))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(me.EXPECT_ARGUMENT_CLOSING_BRACE,pe(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,n=this.clonePosition();!this.isEOF();){var r=this.char();switch(r){case 39:{this.bump();var a=this.clonePosition();if(!this.bumpUntil("'"))return this.error(me.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,pe(a,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return{val:this.message.slice(n.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(n.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,n){var r=[];try{r=Ml(t)}catch{return this.error(me.INVALID_NUMBER_SKELETON,n)}return{val:{type:Zt.number,tokens:r,location:n,parsedOptions:this.shouldParseSkeletons?Ul(r):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,n,r,a){for(var i,u=!1,o=[],l=new Set,c=a.value,f=a.location;;){if(c.length===0){var d=this.clonePosition();if(n!=="select"&&this.bumpIf("=")){var h=this.tryParseDecimalInteger(me.EXPECT_PLURAL_ARGUMENT_SELECTOR,me.INVALID_PLURAL_ARGUMENT_SELECTOR);if(h.err)return h;f=pe(d,this.clonePosition()),c=this.message.slice(d.offset,this.offset())}else break}if(l.has(c))return this.error(n==="select"?me.DUPLICATE_SELECT_ARGUMENT_SELECTOR:me.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,f);c==="other"&&(u=!0),this.bumpSpace();var m=this.clonePosition();if(!this.bumpIf("{"))return this.error(n==="select"?me.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:me.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,pe(this.clonePosition(),this.clonePosition()));var _=this.parseMessage(t+1,n,r);if(_.err)return _;var A=this.tryParseArgumentClose(m);if(A.err)return A;o.push([c,{value:_.val,location:pe(m,this.clonePosition())}]),l.add(c),this.bumpSpace(),i=this.parseIdentifierIfPossible(),c=i.value,f=i.location}return o.length===0?this.error(n==="select"?me.EXPECT_SELECT_ARGUMENT_SELECTOR:me.EXPECT_PLURAL_ARGUMENT_SELECTOR,pe(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!u?this.error(me.MISSING_OTHER_CLAUSE,pe(this.clonePosition(),this.clonePosition())):{val:o,err:null}},e.prototype.tryParseDecimalInteger=function(t,n){var r=1,a=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var i=!1,u=0;!this.isEOF();){var o=this.char();if(o>=48&&o<=57)i=!0,u=u*10+(o-48),this.bump();else break}var l=pe(a,this.clonePosition());return i?(u*=r,Zl(u)?{val:u,err:null}:this.error(n,l)):this.error(t,l)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var n=hs(this.message,t);if(n===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return n},e.prototype.error=function(t,n){return{val:null,err:{kind:t,message:this.message,location:n}}},e.prototype.bump=function(){if(!this.isEOF()){var t=this.char();t===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},e.prototype.bumpIf=function(t){if(Ai(this.message,t,this.offset())){for(var n=0;n<t.length;n++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(t){var n=this.offset(),r=this.message.indexOf(t,n);return r>=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var n=this.offset();if(n===t)break;if(n>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&ps(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),n=this.offset(),r=this.message.charCodeAt(n+(t>=65536?2:1));return r??null},e})();function da(e){return e>=97&&e<=122||e>=65&&e<=90}function rc(e){return da(e)||e===47}function ac(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function ps(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function ic(e){return e>=33&&e<=35||e===36||e>=37&&e<=39||e===40||e===41||e===42||e===43||e===44||e===45||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||e===91||e===92||e===93||e===94||e===96||e===123||e===124||e===125||e===126||e===161||e>=162&&e<=165||e===166||e===167||e===169||e===171||e===172||e===174||e===176||e===177||e===182||e===187||e===191||e===215||e===247||e>=8208&&e<=8213||e>=8214&&e<=8215||e===8216||e===8217||e===8218||e>=8219&&e<=8220||e===8221||e===8222||e===8223||e>=8224&&e<=8231||e>=8240&&e<=8248||e===8249||e===8250||e>=8251&&e<=8254||e>=8257&&e<=8259||e===8260||e===8261||e===8262||e>=8263&&e<=8273||e===8274||e===8275||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||e===8608||e>=8609&&e<=8610||e===8611||e>=8612&&e<=8613||e===8614||e>=8615&&e<=8621||e===8622||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||e===8658||e===8659||e===8660||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||e===8968||e===8969||e===8970||e===8971||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||e===9001||e===9002||e>=9003&&e<=9083||e===9084||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||e===9655||e>=9656&&e<=9664||e===9665||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||e===9839||e>=9840&&e<=10087||e===10088||e===10089||e===10090||e===10091||e===10092||e===10093||e===10094||e===10095||e===10096||e===10097||e===10098||e===10099||e===10100||e===10101||e>=10132&&e<=10175||e>=10176&&e<=10180||e===10181||e===10182||e>=10183&&e<=10213||e===10214||e===10215||e===10216||e===10217||e===10218||e===10219||e===10220||e===10221||e===10222||e===10223||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||e===10627||e===10628||e===10629||e===10630||e===10631||e===10632||e===10633||e===10634||e===10635||e===10636||e===10637||e===10638||e===10639||e===10640||e===10641||e===10642||e===10643||e===10644||e===10645||e===10646||e===10647||e===10648||e>=10649&&e<=10711||e===10712||e===10713||e===10714||e===10715||e>=10716&&e<=10747||e===10748||e===10749||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||e===11158||e>=11159&&e<=11263||e>=11776&&e<=11777||e===11778||e===11779||e===11780||e===11781||e>=11782&&e<=11784||e===11785||e===11786||e===11787||e===11788||e===11789||e>=11790&&e<=11798||e===11799||e>=11800&&e<=11801||e===11802||e===11803||e===11804||e===11805||e>=11806&&e<=11807||e===11808||e===11809||e===11810||e===11811||e===11812||e===11813||e===11814||e===11815||e===11816||e===11817||e>=11818&&e<=11822||e===11823||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||e===11840||e===11841||e===11842||e>=11843&&e<=11855||e>=11856&&e<=11857||e===11858||e>=11859&&e<=11903||e>=12289&&e<=12291||e===12296||e===12297||e===12298||e===12299||e===12300||e===12301||e===12302||e===12303||e===12304||e===12305||e>=12306&&e<=12307||e===12308||e===12309||e===12310||e===12311||e===12312||e===12313||e===12314||e===12315||e===12316||e===12317||e>=12318&&e<=12319||e===12320||e===12336||e===64830||e===64831||e>=65093&&e<=65094}function ha(e){e.forEach(function(t){if(delete t.location,is(t)||us(t))for(var n in t.options)delete t.options[n].location,ha(t.options[n].value);else ns(t)&&os(t.style)||(rs(t)||as(t))&&oa(t.style)?delete t.style.location:ss(t)&&ha(t.children)})}function uc(e,t){t===void 0&&(t={}),t=q({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new nc(e,t).parse();if(n.err){var r=SyntaxError(me[n.err.kind]);throw r.location=n.err.location,r.originalMessage=n.err.message,r}return t?.captureLocation||ha(n.val),n.val}function it(e,t){var n=t&&t.cache?t.cache:dc,r=t&&t.serializer?t.serializer:fc,a=t&&t.strategy?t.strategy:lc;return a(e,{cache:n,serializer:r})}function sc(e){return e==null||typeof e=="number"||typeof e=="boolean"}function oc(e,t,n,r){var a=sc(r)?r:n(r),i=t.get(a);return typeof i>"u"&&(i=e.call(this,r),t.set(a,i)),i}function Es(e,t,n){var r=Array.prototype.slice.call(arguments,3),a=n(r),i=t.get(a);return typeof i>"u"&&(i=e.apply(this,r),t.set(a,i)),i}function bs(e,t,n,r,a){return n.bind(t,e,r,a)}function lc(e,t){var n=e.length===1?oc:Es;return bs(e,this,n,t.cache.create(),t.serializer)}function cc(e,t){return bs(e,this,Es,t.cache.create(),t.serializer)}var fc=function(){return JSON.stringify(arguments)};function Ha(){this.cache=Object.create(null)}Ha.prototype.get=function(e){return this.cache[e]};Ha.prototype.set=function(e,t){this.cache[e]=t};var dc={create:function(){return new Ha}},ut={variadic:cc},ct;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(ct||(ct={}));var yt=(function(e){Je(t,e);function t(n,r,a){var i=e.call(this,n)||this;return i.code=r,i.originalMessage=a,i}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t})(Error),xi=(function(e){Je(t,e);function t(n,r,a,i){return e.call(this,'Invalid values for "'.concat(n,'": "').concat(r,'". Options are "').concat(Object.keys(a).join('", "'),'"'),ct.INVALID_VALUE,i)||this}return t})(yt),hc=(function(e){Je(t,e);function t(n,r,a){return e.call(this,'Value for "'.concat(n,'" must be of type ').concat(r),ct.INVALID_VALUE,a)||this}return t})(yt),mc=(function(e){Je(t,e);function t(n,r){return e.call(this,'The intl string context variable "'.concat(n,'" was not provided to the string "').concat(r,'"'),ct.MISSING_VALUE,r)||this}return t})(yt),Ue;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(Ue||(Ue={}));function pc(e){return e.length<2?e:e.reduce(function(t,n){var r=t[t.length-1];return!r||r.type!==Ue.literal||n.type!==Ue.literal?t.push(n):r.value+=n.value,t},[])}function gs(e){return typeof e=="function"}function Jn(e,t,n,r,a,i,u){if(e.length===1&&Ei(e[0]))return[{type:Ue.literal,value:e[0].value}];for(var o=[],l=0,c=e;l<c.length;l++){var f=c[l];if(Ei(f)){o.push({type:Ue.literal,value:f.value});continue}if(Pl(f)){typeof i=="number"&&o.push({type:Ue.literal,value:n.getNumberFormat(t).format(i)});continue}var d=f.value;if(!(a&&d in a))throw new mc(d,u);var h=a[d];if(vl(f)){(!h||typeof h=="string"||typeof h=="number")&&(h=typeof h=="string"||typeof h=="number"?String(h):""),o.push({type:typeof h=="string"?Ue.literal:Ue.object,value:h});continue}if(rs(f)){var m=typeof f.style=="string"?r.date[f.style]:oa(f.style)?f.style.parsedOptions:void 0;o.push({type:Ue.literal,value:n.getDateTimeFormat(t,m).format(h)});continue}if(as(f)){var m=typeof f.style=="string"?r.time[f.style]:oa(f.style)?f.style.parsedOptions:r.time.medium;o.push({type:Ue.literal,value:n.getDateTimeFormat(t,m).format(h)});continue}if(ns(f)){var m=typeof f.style=="string"?r.number[f.style]:os(f.style)?f.style.parsedOptions:void 0;m&&m.scale&&(h=h*(m.scale||1)),o.push({type:Ue.literal,value:n.getNumberFormat(t,m).format(h)});continue}if(ss(f)){var _=f.children,A=f.value,v=a[A];if(!gs(v))throw new hc(A,"function",u);var x=Jn(_,t,n,r,a,i),P=v(x.map(function(C){return C.value}));Array.isArray(P)||(P=[P]),o.push.apply(o,P.map(function(C){return{type:typeof C=="string"?Ue.literal:Ue.object,value:C}}))}if(is(f)){var R=f.options[h]||f.options.other;if(!R)throw new xi(f.value,h,Object.keys(f.options),u);o.push.apply(o,Jn(R.value,t,n,r,a));continue}if(us(f)){var R=f.options["=".concat(h)];if(!R){if(!Intl.PluralRules)throw new yt(`Intl.PluralRules is not available in this environment.
|
|
17
17
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
18
|
-
`,ct.MISSING_INTL_API,u);var B=n.getPluralRules(t,{type:f.pluralType}).select(h-(f.offset||0));R=f.options[B]||f.options.other}if(!R)throw new xi(f.value,h,Object.keys(f.options),u);o.push.apply(o,
|
|
18
|
+
`,ct.MISSING_INTL_API,u);var B=n.getPluralRules(t,{type:f.pluralType}).select(h-(f.offset||0));R=f.options[B]||f.options.other}if(!R)throw new xi(f.value,h,Object.keys(f.options),u);o.push.apply(o,Jn(R.value,t,n,r,a,h-(f.offset||0)));continue}}return pc(o)}function Ec(e,t){return t?q(q(q({},e||{}),t||{}),Object.keys(e).reduce(function(n,r){return n[r]=q(q({},e[r]),t[r]||{}),n},{})):e}function bc(e,t){return t?Object.keys(e).reduce(function(n,r){return n[r]=Ec(e[r],t[r]),n},q({},e)):e}function vr(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}function gc(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:it(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.NumberFormat).bind.apply(t,st([void 0],n,!1)))},{cache:vr(e.number),strategy:ut.variadic}),getDateTimeFormat:it(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.DateTimeFormat).bind.apply(t,st([void 0],n,!1)))},{cache:vr(e.dateTime),strategy:ut.variadic}),getPluralRules:it(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.PluralRules).bind.apply(t,st([void 0],n,!1)))},{cache:vr(e.pluralRules),strategy:ut.variadic})}}var Ts=(function(){function e(t,n,r,a){var i=this;if(n===void 0&&(n=e.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(l){var c=i.formatToParts(l);if(c.length===1)return c[0].value;var f=c.reduce(function(d,h){return!d.length||h.type!==Ue.literal||typeof d[d.length-1]!="string"?d.push(h.value):d[d.length-1]+=h.value,d},[]);return f.length<=1?f[0]||"":f},this.formatToParts=function(l){return Jn(i.ast,i.locales,i.formatters,i.formats,l,void 0,i.message)},this.resolvedOptions=function(){var l;return{locale:((l=i.resolvedLocale)===null||l===void 0?void 0:l.toString())||Intl.NumberFormat.supportedLocalesOf(i.locales)[0]}},this.getAst=function(){return i.ast},this.locales=n,this.resolvedLocale=e.resolveLocale(n),typeof t=="string"){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var u=a||{};u.formatters;var o=pr(u,["formatters"]);this.ast=e.__parse(t,q(q({},o),{locale:this.resolvedLocale}))}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=bc(e.formats,r),this.formatters=a&&a.formatters||gc(this.formatterCache)}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(t){if(!(typeof Intl.Locale>"u")){var n=Intl.NumberFormat.supportedLocalesOf(t);return n.length>0?new Intl.Locale(n[0]):new Intl.Locale(typeof t=="string"?t:t[0])}},e.__parse=uc,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e})(),Mt;(function(e){e.FORMAT_ERROR="FORMAT_ERROR",e.UNSUPPORTED_FORMATTER="UNSUPPORTED_FORMATTER",e.INVALID_CONFIG="INVALID_CONFIG",e.MISSING_DATA="MISSING_DATA",e.MISSING_TRANSLATION="MISSING_TRANSLATION"})(Mt||(Mt={}));var vn=(function(e){Je(t,e);function t(n,r,a){var i=this,u=a?a instanceof Error?a:new Error(String(a)):void 0;return i=e.call(this,"[@formatjs/intl Error ".concat(n,"] ").concat(r,`
|
|
19
19
|
`).concat(u?`
|
|
20
20
|
`.concat(u.message,`
|
|
21
|
-
`).concat(u.stack):""))||this,i.code=n,typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(i,t),i}return t})(Error),
|
|
21
|
+
`).concat(u.stack):""))||this,i.code=n,typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(i,t),i}return t})(Error),Tc=(function(e){Je(t,e);function t(n,r){return e.call(this,Mt.UNSUPPORTED_FORMATTER,n,r)||this}return t})(vn),Ac=(function(e){Je(t,e);function t(n,r){return e.call(this,Mt.INVALID_CONFIG,n,r)||this}return t})(vn),Si=(function(e){Je(t,e);function t(n,r){return e.call(this,Mt.MISSING_DATA,n,r)||this}return t})(vn),et=(function(e){Je(t,e);function t(n,r,a){var i=e.call(this,Mt.FORMAT_ERROR,"".concat(n,`
|
|
22
22
|
Locale: `).concat(r,`
|
|
23
|
-
`),a)||this;return i.locale=r,i}return t})(
|
|
23
|
+
`),a)||this;return i.locale=r,i}return t})(vn),Pr=(function(e){Je(t,e);function t(n,r,a,i){var u=e.call(this,"".concat(n,`
|
|
24
24
|
MessageID: `).concat(a?.id,`
|
|
25
25
|
Default Message: `).concat(a?.defaultMessage,`
|
|
26
26
|
Description: `).concat(a?.description,`
|
|
27
|
-
`),r,i)||this;return u.descriptor=a,u.locale=r,u}return t})(et),
|
|
27
|
+
`),r,i)||this;return u.descriptor=a,u.locale=r,u}return t})(et),_c=(function(e){Je(t,e);function t(n,r){var a=e.call(this,Mt.MISSING_TRANSLATION,'Missing message: "'.concat(n.id,'" for locale "').concat(r,'", using ').concat(n.defaultMessage?"default message (".concat(typeof n.defaultMessage=="string"?n.defaultMessage:n.defaultMessage.map(function(i){var u;return(u=i.value)!==null&&u!==void 0?u:JSON.stringify(i)}).join(),")"):"id"," as fallback."))||this;return a.descriptor=n,a}return t})(vn);function Ft(e,t,n){return n===void 0&&(n={}),t.reduce(function(r,a){return a in e?r[a]=e[a]:a in n&&(r[a]=n[a]),r},{})}var yc=function(e){process.env.NODE_ENV!=="production"&&console.error(e)},xc=function(e){process.env.NODE_ENV!=="production"&&console.warn(e)},As={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},fallbackOnEmptyString:!0,onError:yc,onWarn:xc};function _s(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function Lt(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}function Sc(e){e===void 0&&(e=_s());var t=Intl.RelativeTimeFormat,n=Intl.ListFormat,r=Intl.DisplayNames,a=it(function(){for(var o,l=[],c=0;c<arguments.length;c++)l[c]=arguments[c];return new((o=Intl.DateTimeFormat).bind.apply(o,st([void 0],l,!1)))},{cache:Lt(e.dateTime),strategy:ut.variadic}),i=it(function(){for(var o,l=[],c=0;c<arguments.length;c++)l[c]=arguments[c];return new((o=Intl.NumberFormat).bind.apply(o,st([void 0],l,!1)))},{cache:Lt(e.number),strategy:ut.variadic}),u=it(function(){for(var o,l=[],c=0;c<arguments.length;c++)l[c]=arguments[c];return new((o=Intl.PluralRules).bind.apply(o,st([void 0],l,!1)))},{cache:Lt(e.pluralRules),strategy:ut.variadic});return{getDateTimeFormat:a,getNumberFormat:i,getMessageFormat:it(function(o,l,c,f){return new Ts(o,l,c,q({formatters:{getNumberFormat:i,getDateTimeFormat:a,getPluralRules:u}},f||{}))},{cache:Lt(e.message),strategy:ut.variadic}),getRelativeTimeFormat:it(function(){for(var o=[],l=0;l<arguments.length;l++)o[l]=arguments[l];return new(t.bind.apply(t,st([void 0],o,!1)))},{cache:Lt(e.relativeTime),strategy:ut.variadic}),getPluralRules:u,getListFormat:it(function(){for(var o=[],l=0;l<arguments.length;l++)o[l]=arguments[l];return new(n.bind.apply(n,st([void 0],o,!1)))},{cache:Lt(e.list),strategy:ut.variadic}),getDisplayNames:it(function(){for(var o=[],l=0;l<arguments.length;l++)o[l]=arguments[l];return new(r.bind.apply(r,st([void 0],o,!1)))},{cache:Lt(e.displayNames),strategy:ut.variadic})}}function Ua(e,t,n,r){var a=e&&e[t],i;if(a&&(i=a[n]),i)return i;r(new Tc("No ".concat(t," format named: ").concat(n)))}function Gn(e,t){return Object.keys(e).reduce(function(n,r){return n[r]=q({timeZone:t},e[r]),n},{})}function Ci(e,t){var n=Object.keys(q(q({},e),t));return n.reduce(function(r,a){return r[a]=q(q({},e[a]||{}),t[a]||{}),r},{})}function Ii(e,t){if(!t)return e;var n=Ts.formats;return q(q(q({},n),e),{date:Ci(Gn(n.date,t),Gn(e.date||{},t)),time:Ci(Gn(n.time,t),Gn(e.time||{},t))})}var ma=function(e,t,n,r,a){var i=e.locale,u=e.formats,o=e.messages,l=e.defaultLocale,c=e.defaultFormats,f=e.fallbackOnEmptyString,d=e.onError,h=e.timeZone,m=e.defaultRichTextElements;n===void 0&&(n={id:""});var _=n.id,A=n.defaultMessage;ts(!!_,"[@formatjs/intl] An `id` must be provided to format a message. You can either:\n1. Configure your build toolchain with [babel-plugin-formatjs](https://formatjs.io/docs/tooling/babel-plugin)\nor [@formatjs/ts-transformer](https://formatjs.io/docs/tooling/ts-transformer) OR\n2. Configure your `eslint` config to include [eslint-plugin-formatjs](https://formatjs.io/docs/tooling/linter#enforce-id)\nto autofix this issue");var v=String(_),x=o&&Object.prototype.hasOwnProperty.call(o,v)&&o[v];if(Array.isArray(x)&&x.length===1&&x[0].type===Ce.literal)return x[0].value;if(!r&&x&&typeof x=="string"&&!m)return x.replace(/'\{(.*?)\}'/gi,"{$1}");if(r=q(q({},m),r||{}),u=Ii(u,h),c=Ii(c,h),!x){if(f===!1&&x==="")return x;if((!A||i&&i.toLowerCase()!==l.toLowerCase())&&d(new _c(n,i)),A)try{var P=t.getMessageFormat(A,l,c,a);return P.format(r)}catch(R){return d(new Pr('Error formatting default message for: "'.concat(v,'", rendering default message verbatim'),i,n,R)),typeof A=="string"?A:v}return v}try{var P=t.getMessageFormat(x,i,u,q({formatters:t},a||{}));return P.format(r)}catch(R){d(new Pr('Error formatting message: "'.concat(v,'", using ').concat(A?"default message":"id"," as fallback."),i,n,R))}if(A)try{var P=t.getMessageFormat(A,l,c,a);return P.format(r)}catch(R){d(new Pr('Error formatting the default message for: "'.concat(v,'", rendering message verbatim'),i,n,R))}return typeof x=="string"?x:typeof A=="string"?A:v},ys=["formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle","dateStyle","timeStyle","calendar","numberingSystem","fractionalSecondDigits"];function Er(e,t,n,r){var a=e.locale,i=e.formats,u=e.onError,o=e.timeZone;r===void 0&&(r={});var l=r.format,c=q(q({},o&&{timeZone:o}),l&&Ua(i,t,l,u)),f=Ft(r,ys,c);return t==="time"&&!f.hour&&!f.minute&&!f.second&&!f.timeStyle&&!f.dateStyle&&(f=q(q({},f),{hour:"numeric",minute:"numeric"})),n(a,f)}function Cc(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var a=n[0],i=n[1],u=i===void 0?{}:i,o=typeof a=="string"?new Date(a||0):a;try{return Er(e,"date",t,u).format(o)}catch(l){e.onError(new et("Error formatting date.",e.locale,l))}return String(o)}function Ic(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var a=n[0],i=n[1],u=i===void 0?{}:i,o=typeof a=="string"?new Date(a||0):a;try{return Er(e,"time",t,u).format(o)}catch(l){e.onError(new et("Error formatting time.",e.locale,l))}return String(o)}function Nc(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var a=n[0],i=n[1],u=n[2],o=u===void 0?{}:u,l=e.timeZone,c=e.locale,f=e.onError,d=Ft(o,ys,l?{timeZone:l}:{});try{return t(c,d).formatRange(a,i)}catch(h){f(new et("Error formatting date time range.",e.locale,h))}return String(a)}function Oc(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var a=n[0],i=n[1],u=i===void 0?{}:i,o=typeof a=="string"?new Date(a||0):a;try{return Er(e,"date",t,u).formatToParts(o)}catch(l){e.onError(new et("Error formatting date.",e.locale,l))}return[]}function Lc(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var a=n[0],i=n[1],u=i===void 0?{}:i,o=typeof a=="string"?new Date(a||0):a;try{return Er(e,"time",t,u).formatToParts(o)}catch(l){e.onError(new et("Error formatting time.",e.locale,l))}return[]}var Rc=["style","type","fallback","languageDisplay"];function vc(e,t,n,r){var a=e.locale,i=e.onError,u=Intl.DisplayNames;u||i(new yt(`Intl.DisplayNames is not available in this environment.
|
|
28
28
|
Try polyfilling it using "@formatjs/intl-displaynames"
|
|
29
|
-
`,ct.MISSING_INTL_API));var o=Ft(r,
|
|
29
|
+
`,ct.MISSING_INTL_API));var o=Ft(r,Rc);try{return t(a,o).of(n)}catch(l){i(new et("Error formatting display name.",a,l))}}var Pc=["type","style"],Ni=Date.now();function Dc(e){return"".concat(Ni,"_").concat(e,"_").concat(Ni)}function kc(e,t,n,r){r===void 0&&(r={});var a=xs(e,t,n,r).reduce(function(i,u){var o=u.value;return typeof o!="string"?i.push(o):typeof i[i.length-1]=="string"?i[i.length-1]+=o:i.push(o),i},[]);return a.length===1?a[0]:a.length===0?"":a}function xs(e,t,n,r){var a=e.locale,i=e.onError;r===void 0&&(r={});var u=Intl.ListFormat;u||i(new yt(`Intl.ListFormat is not available in this environment.
|
|
30
30
|
Try polyfilling it using "@formatjs/intl-listformat"
|
|
31
|
-
`,ct.MISSING_INTL_API));var o=Ft(r,
|
|
31
|
+
`,ct.MISSING_INTL_API));var o=Ft(r,Pc);try{var l={},c=n.map(function(f,d){if(typeof f=="object"){var h=Dc(d);return l[h]=f,h}return String(f)});return t(a,o).formatToParts(c).map(function(f){return f.type==="literal"?f:q(q({},f),{value:l[f.value]||f.value})})}catch(f){i(new et("Error formatting list.",a,f))}return n}var wc=["type"];function Mc(e,t,n,r){var a=e.locale,i=e.onError;r===void 0&&(r={}),Intl.PluralRules||i(new yt(`Intl.PluralRules is not available in this environment.
|
|
32
32
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
33
|
-
`,ct.MISSING_INTL_API));var u=Ft(r,
|
|
33
|
+
`,ct.MISSING_INTL_API));var u=Ft(r,wc);try{return t(a,u).select(n)}catch(o){i(new et("Error formatting plural.",a,o))}return"other"}var Bc=["numeric","style"];function Fc(e,t,n){var r=e.locale,a=e.formats,i=e.onError;n===void 0&&(n={});var u=n.format,o=!!u&&Ua(a,"relative",u,i)||{},l=Ft(n,Bc,o);return t(r,l)}function Hc(e,t,n,r,a){a===void 0&&(a={}),r||(r="second");var i=Intl.RelativeTimeFormat;i||e.onError(new yt(`Intl.RelativeTimeFormat is not available in this environment.
|
|
34
34
|
Try polyfilling it using "@formatjs/intl-relativetimeformat"
|
|
35
|
-
`,ct.MISSING_INTL_API));try{return
|
|
35
|
+
`,ct.MISSING_INTL_API));try{return Fc(e,t,a).format(n,r)}catch(u){e.onError(new et("Error formatting relative time.",e.locale,u))}return String(n)}var Uc=["style","currency","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay","numberingSystem","trailingZeroDisplay","roundingPriority","roundingIncrement","roundingMode"];function Ss(e,t,n){var r=e.locale,a=e.formats,i=e.onError;n===void 0&&(n={});var u=n.format,o=u&&Ua(a,"number",u,i)||{},l=Ft(n,Uc,o);return t(r,l)}function jc(e,t,n,r){r===void 0&&(r={});try{return Ss(e,t,r).format(n)}catch(a){e.onError(new et("Error formatting number.",e.locale,a))}return String(n)}function $c(e,t,n,r){r===void 0&&(r={});try{return Ss(e,t,r).formatToParts(n)}catch(a){e.onError(new et("Error formatting number.",e.locale,a))}return[]}function Yc(e){var t=e?e[Object.keys(e)[0]]:void 0;return typeof t=="string"}function Gc(e){e.onWarn&&e.defaultRichTextElements&&Yc(e.messages||{})&&e.onWarn(`[@formatjs/intl] "defaultRichTextElements" was specified but "message" was not pre-compiled.
|
|
36
36
|
Please consider using "@formatjs/cli" to pre-compile your messages for performance.
|
|
37
|
-
For more details see https://formatjs.io/docs/getting-started/message-distribution`)}function Gc(e,t){var n=xc(t),r=q(q({},Ts),e),a=r.locale,i=r.defaultLocale,u=r.onError;return a?!Intl.NumberFormat.supportedLocalesOf(a).length&&u?u(new Si('Missing locale data for locale: "'.concat(a,'" in Intl.NumberFormat. Using default locale: "').concat(i,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):!Intl.DateTimeFormat.supportedLocalesOf(a).length&&u&&u(new Si('Missing locale data for locale: "'.concat(a,'" in Intl.DateTimeFormat. Using default locale: "').concat(i,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):(u&&u(new Tc('"locale" was not configured, using "'.concat(i,'" as fallback. See https://formatjs.io/docs/react-intl/api#intlshape for more details'))),r.locale=r.defaultLocale||"en"),Yc(r),q(q({},r),{formatters:n,formatNumber:Uc.bind(null,r,n.getNumberFormat),formatNumberToParts:jc.bind(null,r,n.getNumberFormat),formatRelativeTime:Fc.bind(null,r,n.getRelativeTimeFormat),formatDate:Sc.bind(null,r,n.getDateTimeFormat),formatDateToParts:Nc.bind(null,r,n.getDateTimeFormat),formatTime:Cc.bind(null,r,n.getDateTimeFormat),formatDateTimeRange:Ic.bind(null,r,n.getDateTimeFormat),formatTimeToParts:Oc.bind(null,r,n.getDateTimeFormat),formatPlural:wc.bind(null,r,n.getPluralRules),formatMessage:ma.bind(null,r,n),$t:ma.bind(null,r,n),formatList:Dc.bind(null,r,n.getListFormat),formatListToParts:ys.bind(null,r,n.getListFormat),formatDisplayName:Rc.bind(null,r,n.getDisplayNames)})}function Ss(e){es(e,"[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.")}var Cs=q(q({},Ts),{textComponent:De.Fragment});function zc(e){return function(t){return e(De.Children.toArray(t))}}function Vc(e,t){if(e===t)return!0;if(!e||!t)return!1;var n=Object.keys(e),r=Object.keys(t),a=n.length;if(r.length!==a)return!1;for(var i=0;i<a;i++){var u=n[i];if(e[u]!==t[u]||!Object.prototype.hasOwnProperty.call(t,u))return!1}return!0}var ja=typeof window<"u"&&!window.__REACT_INTL_BYPASS_GLOBAL_CONTEXT__?window.__REACT_INTL_CONTEXT__||(window.__REACT_INTL_CONTEXT__=De.createContext(null)):De.createContext(null);ja.Consumer;var qc=ja.Provider,Wc=qc,Xc=ja;function vn(){var e=De.useContext(Xc);return Ss(e),e}var pa;(function(e){e.formatDate="FormattedDate",e.formatTime="FormattedTime",e.formatNumber="FormattedNumber",e.formatList="FormattedList",e.formatDisplayName="FormattedDisplayName"})(pa||(pa={}));var Ea;(function(e){e.formatDate="FormattedDateParts",e.formatTime="FormattedTimeParts",e.formatNumber="FormattedNumberParts",e.formatList="FormattedListParts"})(Ea||(Ea={}));function Is(e){var t=function(n){var r=vn(),a=n.value,i=n.children,u=pr(n,["value","children"]),o=typeof a=="string"?new Date(a||0):a,l=e==="formatDate"?r.formatDateToParts(o,u):r.formatTimeToParts(o,u);return i(l)};return t.displayName=Ea[e],t}function Pn(e){var t=function(n){var r=vn(),a=n.value,i=n.children,u=pr(n,["value","children"]),o=r[e](a,u);if(typeof i=="function")return i(o);var l=r.textComponent||De.Fragment;return De.createElement(l,null,o)};return t.displayName=pa[e],t}function Ns(e){return e&&Object.keys(e).reduce(function(t,n){var r=e[n];return t[n]=bs(r)?zc(r):r,t},{})}var Oi=function(e,t,n,r){for(var a=[],i=4;i<arguments.length;i++)a[i-4]=arguments[i];var u=Ns(r),o=ma.apply(void 0,st([e,t,n,u],a,!1));return Array.isArray(o)?De.Children.toArray(o):o},Li=function(e,t){var n=e.defaultRichTextElements,r=pr(e,["defaultRichTextElements"]),a=Ns(n),i=Gc(q(q(q({},Cs),r),{defaultRichTextElements:a}),t),u={locale:i.locale,timeZone:i.timeZone,fallbackOnEmptyString:i.fallbackOnEmptyString,formats:i.formats,defaultLocale:i.defaultLocale,defaultFormats:i.defaultFormats,messages:i.messages,onError:i.onError,defaultRichTextElements:a};return q(q({},i),{formatMessage:Oi.bind(null,u,i.formatters),$t:Oi.bind(null,u,i.formatters)})};function Dr(e){return{locale:e.locale,timeZone:e.timeZone,fallbackOnEmptyString:e.fallbackOnEmptyString,formats:e.formats,textComponent:e.textComponent,messages:e.messages,defaultLocale:e.defaultLocale,defaultFormats:e.defaultFormats,onError:e.onError,onWarn:e.onWarn,wrapRichTextChunksInFragment:e.wrapRichTextChunksInFragment,defaultRichTextElements:e.defaultRichTextElements}}var Qc=(function(e){Je(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.cache=As(),n.state={cache:n.cache,intl:Li(Dr(n.props),n.cache),prevConfig:Dr(n.props)},n}return t.getDerivedStateFromProps=function(n,r){var a=r.prevConfig,i=r.cache,u=Dr(n);return Vc(a,u)?null:{intl:Li(u,i),prevConfig:u}},t.prototype.render=function(){return Ss(this.state.intl),De.createElement(Wc,{value:this.state.intl},this.props.children)},t.displayName="IntlProvider",t.defaultProps=Cs,t})(De.PureComponent);Pn("formatDate");Pn("formatTime");Pn("formatNumber");Pn("formatList");Pn("formatDisplayName");Is("formatDate");Is("formatTime");const Kc={"generic.language.english":"English","generic.language.french":"French","generic.connect.google":"Connect with Google","generic.button.title.save":"Save","page.login.button.login":"Login / Register","page.login.google.login":"Continue with Google","navbar.button.home":"Home","navbar.button.pricing":"Pricing","navbar.button.login":"Login","navbar.button.demo":"Demo","navbar.userMenu.logout":"Log out","navbar.userMenu.profile":"Profile","navbar.userMenu.backOffice":"Back-office","home.header.catchphase":"The catchphrase you wanted","home.header.subcatchphase":"Discover the new software that will change it all","home.header.CTA":"See more","home.section.bulletsPointParagraphe1.title":"Management","home.section.bulletsPointParagraphe1.text":"Take advantage of a complete solution to have a direct point of view on all of your units.","home.section.bulletsPointParagraphe2.title":"Automation","home.section.bulletsPointParagraphe2.text":"In just a few clicks, manage your entire fleet. Implement macros and synergies on your systems.","home.section.bulletsPointParagraphe3.title":"Reporting","home.section.bulletsPointParagraphe3.text":"With its BI module, our software allows you to monitor performance and optimize your costs.","home.realm.title":"See the root of your business in a few clicks","home.realm.text":"The security of your data is at the heart of our concerns. Our software was created in France, we are ISO 27001 certified and all our servers are located in Europe.","home.realm.cta":"Discover our solution","home.testimonials.title":"What our customers say","home.testimonials.1.text":"Since using the software, we have better control of the flow of goods and relevant performance monitoring.","home.testimonials.1.job":"Developer @Wordpress","home.testimonials.1.name":"Loic Martins","home.testimonials.2.text":"Putting the software solution into production allowed us to completely reorganize the teams.","home.testimonials.2.job":"Community Manager @Comet","home.testimonials.2.name":"Anna Wang","home.testimonials.3.text":"Mastery of the logistics subject is obvious with the software solution.","home.testimonials.3.job":"Product Owner @April","home.testimonials.3.name":"Louis Bachant","home.test.section.title":"Try it out now","home.test.section.CTA":"See our solution","pricing.CTA.pleaseLogin":"Login to buy","pricing.page.title":"Choose your plan","pricing.page.subtitle":"No obligation: cancel at any time with one click.","subscribe.paymentRecap.title":"Payment Summary","subscribe.paymentRecap.customerName":"Name","subscribe.paymentRecap.customerMail":"Email","subscribe.paymentRecap.additionnalMention":"Mention to add","subscribe.paymentRecap.totalAmount":"Total Amount","subscribe.paymentForm.title":"Bank card","subscribe.paymentForm.cardNumber":"Card number","subscribe.paymentForm.expiresAt":"Expires at","subscribe.paymentForm.CVCNumber":"CVC number","subscribe.paymentForm.CTA.loading":"Loading ...","subscribe.paymentForm.CTA.pay":"Pay now","subscribe.success.title":"Payment successful","subscribe.success.paragraph1":"Your payment has been processed successfully. You are now suscribed !","subscribe.success.paragraph2":"Your new options are now available.","myAccount.page.leftMenu.general":"General","myAccount.page.leftMenu.profile":"Profile","chatbot.placeholder.content":"Message the assistant...","chatbot.DiscussionLimitReached.title":"Discussion limit reached","chatbot.DiscussionLimitReached.explaination":"The discussion has reached its maximum number of messages. Please start a new one.","chatbot.DiscussionLimitReached.cta":"Restart","chatbot.error.api.409":"Oups ! The discussion if full. Please start a new one.","chatbot.error.api.429":"⏳ The chatbot is a little busy at the time. Please try again later.","chatbot.error.api.500":"Oops ! There has been an error. Please try again later.","chatbot.chatline.label.user":"You","chatbot.chatline.label.assistant":"Assistant","chatbot.chatline.loading.function.genericSearchMessage":"I'm looking for products","chatbot.chatline.loading.function.search":"Search","chatbot.chatline.loading.function.extractProductName":"Looking into the cavern","chatbot.chatline.loading.function.suggestProductName":"Consulting the shadocks","chatbot.chatline.loading.function.criteriaDefinition":"Looking for ziboublis","chatbot.chatline.loading.function.searchStock":"Searching Stock","chatbot.chatline.loading.function.step":"Step","chatbot.chatline.loading.cancel":"Cancel","footer.tab.title.general":"General","footer.tab.title.about":"About","footer.tab.title.resources":"Resources","footer.tab.title.legal":"Legal","footer.tab.title.social":"Social","footer.tab.search":"Search","footer.tab.pricing":"Pricing","footer.tab.termsAndConditions":"Terms and conditions","footer.tab.finalCopyright":"Copyright © 2023 Logiciel, Inc. All rights reserved."},Zc={"generic.language.english":"Anglais","generic.language.french":"Français","generic.connect.google":"Se connecter avec Google","generic.button.title.save":"Sauvegarder","page.login.button.login":"Se connecter / S'inscrire","page.login.google.login":"Continuer avec Google","navbar.button.home":"Accueil","navbar.button.pricing":"Tarifs","navbar.button.login":"Se Connecter","navbar.button.demo":"Demo","navbar.userMenu.logout":"Déconnection","navbar.userMenu.profile":"Profil","navbar.userMenu.backOffice":"Back-office","home.header.catchphase":"Catchphrase de l'espace","home.header.subcatchphase":"Découvrez le logiciel qui met fin à vos problèmes","home.header.CTA":"Voir notre solution","home.section.bulletsPointParagraphe1.title":"Management","home.section.bulletsPointParagraphe1.text":"Profitez d'une solution complète pour avoir un point de vue direct sur l'ensemble de vos unités.","home.section.bulletsPointParagraphe2.title":"Automatisation","home.section.bulletsPointParagraphe2.text":"En quelques clicks, gérez l'ensemble de votre flotte. Mettez en place des macros et des synergies sur vos systèmes.","home.section.bulletsPointParagraphe3.title":"Reporting","home.section.bulletsPointParagraphe3.text":"Avec son module BI, notre logiciel vous permet de monitorer la performance et d'optimiser vos coûts. A l'euro prêt","home.realm.title":"Le coeur du métier en quelques clics","home.realm.text":"La sécurité de vos données est au cœur de nos préoccupations. Notre logiciel a été créé en France, nous sommes certifiés ISO 27001 et tous nos serveurs sont situés en Europe.","home.realm.cta":"Voir notre solution","home.testimonials.title":"Nos clients parlent de nous","home.testimonials.1.text":"Depuis notre utilisation du logiciel, nous avons un meilleur contrôle du flux de marchandises et un suivi de performance pertinent.","home.testimonials.1.job":"Developpeur @Wordpress","home.testimonials.1.name":"Loic Martins","home.testimonials.2.text":"La mise en production de la solution logicielle nous a permis de réorganiser complètement les équipes.","home.testimonials.2.job":"Community Manager @Comet","home.testimonials.2.name":"Anna Wang","home.testimonials.3.text":"La maitrise du sujet logistique est une évidence avec la solution logicielle.","home.testimonials.3.job":"Product Owner @April","home.testimonials.3.name":"Louis Bachant","home.test.section.title":"Testez dès maintenant","home.test.section.CTA":"Voir notre solution","pricing.CTA.pleaseLogin":"Connectez-vous","pricing.page.title":"Choisissez votre plan","pricing.page.subtitle":"Sans engagement : annulez à tout moment en un clic.","subscribe.paymentRecap.title":"Récapitulatif de paiement","subscribe.paymentRecap.customerName":"Nom","subscribe.paymentRecap.customerMail":"Email","subscribe.paymentRecap.additionnalMention":"Mention à ajouter","subscribe.paymentRecap.totalAmount":"Total","subscribe.paymentForm.title":"Carte bancaire","subscribe.paymentForm.cardNumber":"Numéro de carte","subscribe.paymentForm.expiresAt":"Expire le","subscribe.paymentForm.CVCNumber":"Numéro CVV","subscribe.paymentForm.CTA.loading":"Chargement ...","subscribe.paymentForm.CTA.pay":"S'abonner","subscribe.success.title":"Paiement effectué avec succès","subscribe.success.paragraph1":"Votre paiement a bien été accepté. Vous êtes désormais abonné !","subscribe.success.paragraph2":"Toutes vos options sont maintenant disponibles.","myAccount.page.leftMenu.general":"Général","myAccount.page.leftMenu.profile":"Profil","chatbot.placeholder.content":"Envoyez un message à l'assistant ...","chatbot.DiscussionLimitReached.title":"Maximum de messages envoyés atteint.","chatbot.DiscussionLimitReached.explaination":"Le robot est à son maximum et ne peut plus envoyer de message. Merci de relancer une conversation.","chatbot.DiscussionLimitReached.cta":"Relancer une nouvelle conversation","chatbot.error.api.409":"Oups ! La discussion est à son maximum. Merci d'en commencer une nouvelle.","chatbot.error.api.429":"⏳ Le robot est un peu occupé actuellement. Merci de réessayer plus tard.","chatbot.error.api.500":"Oups ! Une erreur est survenue. Merci de réessayer plus tard !","chatbot.chatline.label.user":"Vous","chatbot.chatline.label.assistant":"Assistant","chatbot.chatline.loading.function.search":"Recherche","chatbot.chatline.loading.function.genericSearchMessage":"Je cherche des produits","chatbot.chatline.loading.function.extractProductName":"Recherche dans la caverne","chatbot.chatline.loading.function.suggestProductName":"Consultation des shadocks","chatbot.chatline.loading.function.criteriaDefinition":"Recherche des ziboublis","chatbot.chatline.loading.function.searchStock":"Recherche en stock","chatbot.chatline.loading.function.step":"Etape","chatbot.chatline.loading.cancel":"Annuler","footer.tab.title.general":"Général","footer.tab.title.about":"A propos","footer.tab.title.resources":"Ressources","footer.tab.title.legal":"Mentions Légales","footer.tab.title.social":"Social","footer.tab.search":"Rechercher","footer.tab.pricing":"Tarifs","footer.tab.termsAndConditions":"Termes et conditions","footer.tab.finalCopyright":"Copyright © 2023 Logiciel, Inc. Tous droits réservés."};var Xe=(e=>(e.FRENCH="fr-FR",e.ENGLISH="en-US",e))(Xe||{});const br={[Xe.ENGLISH]:{translatedText:Kc,pictureName:Xe.ENGLISH,langID:0,locale:Xe.ENGLISH},[Xe.FRENCH]:{translatedText:Zc,pictureName:Xe.FRENCH,langID:1,locale:Xe.FRENCH}},Jc=Object.keys(br);Jc.reduce((e,t)=>{const n=br[t];return[...e,n]},[]);const ef="languageSettings",tf=(e,t)=>{let n,r;return typeof window<"u"&&(r=window.localStorage.getItem(ef)),r&&e?.[r]!==void 0?n=e[r]:(n=e[t],n.isDefault=!0),n},nf=(e,t)=>{const[n,r]=O.useState(e[t]),a=i=>{Object.keys(e).includes(i?.locale)?r(i):r(e[Xe.ENGLISH])};return O.useEffect(()=>{let i=tf(e,t);i.locale!==t&&r(e[i.locale])},[]),{appCurrentLang:n,handleSetContextCurrentLang:a}},Os=O.createContext({appCurrentLang:br[Xe.ENGLISH],setAppCurrentLang:()=>{}}),Ls=O.createContext({conversation:[],setConversation:()=>{}});var Rt={},Ri;function rf(){if(Ri)return Rt;Ri=1,Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.AgentDisplayFacetRoleType=Rt.AgentDisplayFacetModeType=void 0;var e;(function(n){n.SPRITESHEET="spritesheet",n.LOTTIE="lottie",n.IMAGE="image",n.SVG="svg",n.VIDEO="video"})(e||(Rt.AgentDisplayFacetModeType=e={}));var t;return(function(n){n.LAUNCHER="launcher",n.ASSISTANT="assistant",n.SEARCH="search"})(t||(Rt.AgentDisplayFacetRoleType=t={})),Rt}var Ye=rf();const kr=e=>({mode:Ye.AgentDisplayFacetModeType.SVG,role:e}),af=()=>({agent:{display:{name:"",CSSRules:"",[Ye.AgentDisplayFacetRoleType.LAUNCHER]:kr(Ye.AgentDisplayFacetRoleType.LAUNCHER),[Ye.AgentDisplayFacetRoleType.ASSISTANT]:kr(Ye.AgentDisplayFacetRoleType.ASSISTANT),[Ye.AgentDisplayFacetRoleType.SEARCH]:kr(Ye.AgentDisplayFacetRoleType.SEARCH)},text:{initialText:""}},api:{settings:{maxUserMessagesPerDiscussion:20}}}),Dn=O.createContext({companySettings:af(),setCompanySettings:()=>{}}),Rs=()=>({hasFetchedSettings:!1,hasDisplayedCSS:!1}),uf=()=>{const[e,t]=O.useState(Rs());return{appInternalContext:e,setAppInternalContext:t,setHasFetchedSettings:()=>{t(a=>({...a,hasFetchedSettings:!0}))},setHasDisplayedCss:()=>{t(a=>({...a,hasDisplayedCSS:!0}))}}},vs=O.createContext({appInternalContext:Rs(),setAppInternalContext:()=>{},setHasFetchedSettings:()=>{}}),sf=e=>Object.values(Xe).includes(e),of=e=>sf(e)?e:(console.log(`Language ${e} not handled for now. Using ${Xe.ENGLISH}.`),Xe.ENGLISH);class nr{constructor(){}static getApiUrl=()=>process.env.NODE_ENV==="development"?"http://localhost:3001":"https://www.api.chatsystem.ai";static getHeaders=({contentType:t="text/plain"})=>({"Content-Type":t});static getFetchConfig=({contentType:t="text/plain",httpVerb:n="GET",body:r,options:a={}})=>{const i={method:n,headers:this.getHeaders({contentType:t}),...a};return r&&(i.body=JSON.stringify(r)),i}}const lf=({agentId:e,appToken:t,onFetched:n})=>{const[r,a]=O.useState({}),i={companySettings:r,setCompanySettings:a},[u,o]=O.useState([]),l={conversation:u,setConversation:o};return O.useEffect(()=>{const c=nr.getApiUrl(),f=nr.getFetchConfig({httpVerb:"GET",contentType:"application/json"});fetch(`${c}/company/settings/${t}/${e}`,f).then(async d=>{const h=await d.json();a(h),o([{userType:"assistant",content:h.agent.text.initialText}]),n?.()}).catch(d=>console.log("error in settings fetch",d))},[t,e]),{contextCompanySettings:i,contextInitialChatbotStartingText:l}};function cf(e,t={},n,r){const{id:a,nonce:i,target:u,disableConstructable:o}=t,l=u??document.head,c=O.useRef(null),f=O.useRef(null);O.useEffect(()=>{if(!e){n&&(console.log("No custom css found."),r?.());return}if(!o&&"adoptedStyleSheets"in l&&typeof CSSStyleSheet<"u"&&"replaceSync"in CSSStyleSheet.prototype)return c.current||(c.current=new CSSStyleSheet,l.adoptedStyleSheets=[...l.adoptedStyleSheets,c.current]),c.current.replaceSync(e),console.log("Loading custom css via stylesheet."),r?.(),()=>{const h=l.adoptedStyleSheets||[],m=h.indexOf(c.current);if(m>=0){const y=h.slice();y.splice(m,1),l.adoptedStyleSheets=y}c.current=null};if(!f.current){const h=document.createElement("style");h.type="text/css",a&&(h.id=a),i&&(h.nonce=i),(l instanceof Document&&l.head||l).appendChild(h),f.current=h}return f.current.textContent=e,console.log("Loading custom css via style tag."),r?.(),()=>{f.current?.parentNode?.removeChild(f.current),f.current=null}},[e,a,i,u,o])}const Jt=globalThis;Jt.__WIDGET_ASSET_CACHE__||(Jt.__WIDGET_ASSET_CACHE__={svg:new Map,img:new Map,lot:new Map,spr:new Map});Jt.__WIDGET_PRELOAD_KEYS__||(Jt.__WIDGET_PRELOAD_KEYS__=new Set);const wr=Jt.__WIDGET_PRELOAD_KEYS__,_t=Jt.__WIDGET_ASSET_CACHE__,ff="widget-assets-v1";async function gr(e,t){try{const n=await caches.open(ff),r=await n.match(e,{ignoreSearch:!1});if(r)return r.clone();const a=await fetch(e,{cache:"force-cache",mode:"cors",keepalive:!0,...t});if(!a.ok)throw new Error(`HTTP ${a.status} for ${e}`);return n.put(e,a.clone()),a}catch(n){return console.log("error while fetching",n),new Response(null,{status:520,statusText:"Error in client - Fetch failed"})}}async function Ps(e){const t=_t.svg.get(e);if(t)return t.promise;const n=(async()=>{const a=await(await gr(e)).text();if(typeof globalThis.DOMPurify<"u"&&typeof globalThis.DOMPurify.sanitize=="function")try{const u=new DOMParser().parseFromString(a,"image/svg+xml"),o=new XMLSerializer().serializeToString(u.documentElement);return{sanitized:globalThis.DOMPurify.sanitize(o,{USE_PROFILES:{svg:!0,svgFilters:!0}})}}catch{return{sanitized:globalThis.DOMPurify.sanitize(a,{USE_PROFILES:{svg:!0,svgFilters:!0}})}}else return{sanitized:a}})();return _t.svg.set(e,{promise:n,ts:Date.now()}),n}function Ds(e){const t=_t.img.get(e);if(t)return t.promise;const n=(async()=>{const a=await(await gr(e)).blob();return{blobUrl:URL.createObjectURL(a)}})();return _t.img.set(e,{promise:n,ts:Date.now()}),n}function ks(e){const t=_t.lot.get(e);if(t)return t.promise;const n=(async()=>{const a=await(await gr(e)).arrayBuffer(),i=new Uint8Array(a);if(i.length>=4&&i[0]===80&&i[1]===75&&i[2]===3&&i[3]===4||e.endsWith(".lottie"))return{kind:"zip",blobUrl:URL.createObjectURL(new Blob([a],{type:"application/zip"}))};const o=new TextDecoder().decode(i);return{kind:"json",data:JSON.parse(o)}})();return _t.lot.set(e,{promise:n,ts:Date.now()}),n}function ws(e){const t=_t.spr.get(e);if(t)return t.promise;const n=(async()=>{const a=await(await gr(e)).blob();let i=null;try{i=await createImageBitmap(a)}catch{i=null}const{imgEl:u,width:o,height:l}=await new Promise((c,f)=>{const d=URL.createObjectURL(a),h=new Image;h.crossOrigin="anonymous",h.onload=()=>{const m=h.naturalWidth,y=h.naturalHeight;c({imgEl:h,width:m,height:y})},h.onerror=()=>{URL.revokeObjectURL(d),f(new Error("Spritesheet image decode failed"))},h.src=d,h.decode?.().catch(()=>{})});return{imgEl:u,bitmap:i,width:o,height:l}})();return _t.spr.set(e,{promise:n,ts:Date.now()}),n}function df(e){e.images?.forEach(t=>void Ds(t)),e.svgs?.forEach(t=>void Ps(t)),e.lotties?.forEach(t=>void ks(t)),e.sprites?.forEach(t=>void ws(t))}function hf(e){try{const t=document.createElement("link");t.rel="preconnect",t.href=e,t.crossOrigin="anonymous",document.head.appendChild(t);const n=document.createElement("link");n.rel="dns-prefetch",n.href=e,document.head.appendChild(n)}catch(t){console.log("error in injectPreconnect",t)}}function Ms(e){return new URL(e,document.baseURI).toString()}function mf(e,t){const n=document.head.querySelectorAll('link[rel="preload"]');for(const r of n)if((e?r.as===e||r.getAttribute("as")===e:!0)&&r.href===t)return!0;return!1}function Gn(e,t,n,r){const a=Ms(n),i=`${e}|${t??""}|${a}`;if(wr.has(i))return;if(mf(t,a)){wr.add(i);return}const u=document.createElement("link");u.rel=e,t&&(u.as=t),u.href=a,u.crossOrigin="anonymous",r&&(u.type=r),u.setAttribute("data-chatsystem-preload","1"),document.head.appendChild(u),wr.add(i)}function pf(e){const t=u=>Array.from(new Set((u??[]).map(Ms))),n=t(e.images),r=t(e.svgs),a=t(e.lotties),i=t(e.sprites);n.forEach(u=>Gn("preload","image",u)),r.forEach(u=>Gn("preload","fetch",u,"image/svg+xml")),a.forEach(u=>Gn("preload","fetch",u,"application/zip")),i.forEach(u=>Gn("preload","fetch",u))}function Ef(e){const{manifest:t,origins:n}=bf(e);n.forEach(hf),pf(t),df(t)}function bf(e){const t=gf(e),n=new Set,r=new Set,a=new Set,i=new Set;for(const{url:l,mode:c}of t)switch(Tf(c,l)){case"svg":r.add(l);break;case"lottie":a.add(l);break;case"spritesheet":i.add(l);break;case"image":n.add(l);break}const u={images:Array.from(n),svgs:Array.from(r),lotties:Array.from(a),sprites:Array.from(i)},o=Af(u);return{manifest:u,origins:o}}function gf(e){if(!e?.agent?.display)return[];const t=e.agent.display,n=[t.launcher,t.assistant,t.search].filter(Boolean),r=[];for(const a of n)a?.assetUrl&&r.push({url:a.assetUrl,mode:a.mode});return r}function Tf(e,t){if(e)switch(e){case"svg":return"svg";case"lottie":return"lottie";case"spritesheet":return"spritesheet";case"image":return"image";case"video":return"video"}try{const r=new URL(t,document.baseURI).pathname.toLowerCase();if(r.endsWith(".svg"))return"svg";if(r.endsWith(".lottie")||r.endsWith(".zip")||r.endsWith(".json"))return r.endsWith(".json"),"lottie";if(/\.(png|webp|jpg|jpeg|gif|avi,ef)$/.test(r))return"image";if(/\.(mp4|webm|mov|m4v|ogg)$/.test(r))return"video"}catch(n){console.log("error in normalizeKind:",n)}return"unknown"}function Af(e){const t=new Set,n=r=>{if(r)try{const a=new URL(r,document.baseURI);t.add(`${a.protocol}//${a.host}`)}catch(a){console.log("error in uniqueOriginsFromManifest",a)}};return(e.images??[]).forEach(n),(e.svgs??[]).forEach(n),(e.lotties??[]).forEach(n),(e.sprites??[]).forEach(n),Array.from(t)}const _f=({children:e,appToken:t,agentId:n})=>{var r=navigator.language;console.log("App boot"),console.log("Brower language",r);const a=of(r),{appCurrentLang:i,handleSetContextCurrentLang:u}=nf(br,a),o={appCurrentLang:i,setAppCurrentLang:u},l=uf(),{contextCompanySettings:c,contextInitialChatbotStartingText:f}=lf({agentId:n,appToken:t,onFetched:l.setHasFetchedSettings});return Ef(c.companySettings),cf(c.companySettings?.agent?.display?.CSSRules,{id:`${n}`},l.appInternalContext.hasFetchedSettings,l.setHasDisplayedCss),L.jsx(L.Fragment,{children:L.jsx(Qc,{locale:i?.locale,messages:i?.translatedText,children:L.jsx(Os.Provider,{value:o,children:L.jsx(vs.Provider,{value:l,children:L.jsx(Dn.Provider,{value:c,children:L.jsx(Ls.Provider,{value:f,children:l.appInternalContext.hasDisplayedCSS&&e})})})})})})},yf=e=>Object.values(nn).includes(e),xf=e=>yf(e)?e:(console.warn(`Display mode not valid. Using ${nn.LAUNCHER} as default.`),nn.LAUNCHER),Sf=e=>De.createElement("svg",{fill:"#000000",height:"800px",width:"800px",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 330 330",xmlSpace:"preserve",...e},De.createElement("path",{id:"XMLID_102_",d:"M325.607,79.393c-5.857-5.857-15.355-5.858-21.213,0.001l-139.39,139.393L25.607,79.393 c-5.857-5.857-15.355-5.858-21.213,0.001c-5.858,5.858-5.858,15.355,0,21.213l150.004,150c2.813,2.813,6.628,4.393,10.606,4.393 s7.794-1.581,10.606-4.394l149.996-150C331.465,94.749,331.465,85.251,325.607,79.393z"})),Cf=({src:e})=>{const[t,n]=O.useState(null);return O.useEffect(()=>{let r=!1;return Ds(e).then(({blobUrl:a})=>{n(a)}).catch(()=>n(null)),()=>{t&&!r&&(URL.revokeObjectURL(t),r=!0)}},[e]),L.jsx("img",{src:t??e,decoding:"async",loading:"eager"})};function If(e){return!!e&&typeof e=="object"&&"blob"in e&&e.blob instanceof Blob}function Nf({src:e,autoplay:t=!0,loop:n=!0,className:r,style:a,placeholder:i,fallback:u,onLoaded:o,onError:l}){const[c,f]=O.useState({kind:"loading"});return O.useEffect(()=>{let d=null,h=!1;return f({kind:"loading"}),ks(e).then(async m=>{if(!h)if(m.kind==="zip"){const y=If(m)?m.blob:await(await fetch(m.blobUrl)).blob();d=URL.createObjectURL(y),f({kind:"lottieZip",blobUrl:d}),o?.(d)}else f({kind:"json",data:m.data}),o?.(m.data)}).catch(m=>!h&&(f({kind:"error",err:m}),l?.(m))),()=>{h=!0,d&&URL.revokeObjectURL(d)}},[e]),c.kind==="loading"?L.jsx("div",{className:"flex items-center justify-center rounded-xl border border-dashed p-6 text-sm opacity-70 "+(r??""),style:{minHeight:96,...a},children:i??"Loading animation…"}):c.kind==="error"?L.jsx("div",{className:"flex items-center justify-center rounded-xl border p-6 text-sm text-red-600 "+(r??""),style:{minHeight:96,...a},children:u??"Failed to load animation"}):c.kind==="json"?L.jsx(Sl,{animationData:c.data,loop:n,autoplay:t,className:r,style:a,rendererSettings:{preserveAspectRatio:"xMidYMid meet"}}):L.jsx(Cl.DotLottieReact,{src:c.blobUrl,loop:n,autoplay:t,className:r,style:a})}async function Of(e,t={}){const{minPeriod:n=8,maxPeriod:r=Math.floor(Math.min(e.width,e.height)/2),gutterSearchRadius:a=3,debug:i=!1}=t;if(e.width<n*2||e.height<n*2)return i&&console.warn("detectGrid: image too small"),null;const u=document.createElement("canvas");u.width=e.naturalWidth,u.height=e.naturalHeight;const o=u.getContext("2d");if(!o)return null;o.drawImage(e,0,0);const{data:l}=o.getImageData(0,0,u.width,u.height),c=u.width,f=u.height,d=new Uint8ClampedArray(c*f);for(let z=0;z<f;z++){let j=z*c;for(let F=0;F<c;F++){const $=(j+F)*4;d[j+F]=.299*l[$]+.587*l[$+1]+.114*l[$+2]|0}}const h=new Float32Array(c),m=new Float32Array(f);for(let z=1;z<c-1;z++){let j=0;for(let F=0;F<f;F++){const $=F*c+z,Y=d[$+1]-d[$-1];j+=Math.abs(Y)}h[z]=j}for(let z=1;z<f-1;z++){let j=0;for(let F=0;F<c;F++){const $=z*c+F,Y=d[$+c]-d[$-c];j+=Math.abs(Y)}m[z]=j}const y=vi(h,n,Math.min(r,c/2)),A=vi(m,n,Math.min(r,f/2));if(!y||!A)return i&&console.warn("detectGrid: could not find periods"),null;const v=Math.max(1,Math.round(c/y)),x=Math.max(1,Math.round(f/A)),P=Pi(h,y,v,a),R=Pi(m,A,x,a),B=Math.max(1,y-P),C=Math.max(1,A-R);if(B*v>c+2||C*x>f+2)return i&&console.warn("detectGrid: sanity check failed"),null;const N=ba(h,60),Q=ba(m,60),de=Math.max(0,Di(h,N)),re=Math.max(0,Di(m,Q));return i&&console.log({periodX:y,periodY:A,columns:v,rows:x,gutterX:P,gutterY:R,frameWidth:B,frameHeight:C,originX:de,originY:re}),{columns:v,rows:x,frameWidth:B,frameHeight:C,gutterX:P,gutterY:R,originX:de,originY:re}}function vi(e,t,n){const r=Bs(e);let a=0;for(let m=0;m<e.length;m++){const y=e[m]-r;a+=y*y}if(a===0)return null;const i=new Float32Array(n+1);let u=0,o=-1/0;for(let m=t;m<=n;m++){let y=0;for(let v=0;v+m<e.length;v++)y+=(e[v]-r)*(e[v+m]-r);const A=y/a;i[m]=A,A>o&&(o=A,u=m)}if(u<=t||u>=n)return u||null;const l=i[u-1],c=i[u],f=i[u+1],d=l-2*c+f,h=d===0?0:.5*(l-f)/d;return u+h}function Pi(e,t,n,r){const a=[];for(let o=1;o<n;o++){const l=o*t;let c=1/0,f=l;for(let d=-r;d<=r;d++){const h=l+d;if(h<=0||h>=e.length)continue;const m=e[h];m<c&&(c=m,f=h)}a.push(f)}if(a.length<1)return 0;let i=[];for(const o of a){const l=e[o]*1.5+ba(e,10)*.5;let c=o,f=o;for(;c>1&&e[c-1]<=l;)c--;for(;f<e.length-2&&e[f+1]<=l;)f++;i.push(Math.max(0,f-c+1))}const u=Math.round(Bs(i));return Math.max(0,Math.min(u,Math.floor(t/4)))}function Bs(e){let t=0;for(let n=0;n<e.length;n++)t+=e[n];return t/e.length}function ba(e,t){const n=Array.from(e);n.sort((a,i)=>a-i);const r=Math.max(0,Math.min(n.length-1,Math.floor(t/100*n.length)));return n[r]}function Di(e,t){for(let n=0;n<e.length;n++)if(e[n]>t)return n;return 0}function Lf(e,t,n,r,a){const{data:i}=e.getImageData(t,n,r,a);let u=0;for(let o=3;o<i.length;o+=4)u+=i[o];return u/(255*(i.length/4))<.03}const Rf=O.forwardRef(function({src:t,frameWidth:n,frameHeight:r,columns:a,rows:i,gutterX:u=0,gutterY:o=0,frameCount:l,atlasFrames:c,fps:f=12,autoplay:d=!0,loop:h=!0,startFrame:m=0,direction:y="forward",scale:A=1,backgroundColor:v,className:x,style:P,pauseWhenHidden:R=!1,originX:B,originY:C,onLoad:N,onEnd:Q,onFrame:de},re){const z=O.useRef(null),j=O.useRef(null),[F,$]=O.useState(null),[Y,Z]=O.useState(null),[he,se]=O.useState(null),[Ee,Le]=O.useState(!1),[p,H]=O.useState(!!d),[G,g]=O.useState(m),W=O.useRef(1),[K,V]=O.useState(null),J=Math.max(1,Math.floor(typeof window<"u"&&window.devicePixelRatio||1));O.useEffect(()=>{let ue=!1;return Le(!1),ws(t).then(({imgEl:ce,bitmap:_e})=>{ue||($(ce),Z(_e),se({w:ce.naturalWidth,h:ce.naturalHeight}),Le(!0),N?.())}).catch(()=>{}),()=>{ue=!0}},[t,N]),O.useEffect(()=>{let ue=!1;return(async()=>{if(!F)return;if(c&&c.length){V(null);return}if(!(!n||!r||!a||!i)){V(null);return}const _e=await Of(F,{debug:!0});ue||(_e?V({frameWidth:_e.frameWidth,frameHeight:_e.frameHeight,columns:_e.columns,rows:_e.rows,gutterX:_e.gutterX,gutterY:_e.gutterY}):(V(null),console.warn("RemoteSpritesheet: auto-detect failed; please provide grid props.")))})(),()=>{ue=!0}},[F,c,n,r,a,i]);const ee=K?.frameWidth??n,te=K?.frameHeight??r,ae=K?.columns??a,Ne=K?.rows??i,U=K?.gutterX??u,Re=K?.gutterY??o,ke=K?.originX??B??0,ze=K?.originY??C??0,Ct=O.useMemo(()=>{if(c&&c.length>0)return{cols:0,rows:0};if(!he||!ee||!te)return{cols:0,rows:0};const ue=ae??Math.floor((he.w+U)/(ee+U)),ce=Ne??Math.floor((he.h+Re)/(te+Re));return{cols:Math.max(0,ue),rows:Math.max(0,ce)}},[c,he,ee,te,ae,Ne,U,Re]),He=O.useMemo(()=>{if(c?.length)return c;if(!ee||!te)return[];const{cols:ue,rows:ce}=Ct;if(!ue||!ce)return[];const _e=Math.min(l??ue*ce,ue*ce),ge=[];for(let Oe=0;Oe<_e;Oe++){const I=Oe%ue,k=Math.floor(Oe/ue),X=ke+I*(ee+U),le=ze+k*(te+Re);ge.push({x:X,y:le,w:ee,h:te})}if(F&&ge.length){const Oe=document.createElement("canvas");Oe.width=F.naturalWidth,Oe.height=F.naturalHeight;const I=Oe.getContext("2d");if(I){I.drawImage(F,0,0);let k=ge.length;for(;k>0&&Lf(I,ge[k-1].x,ge[k-1].y,ge[k-1].w,ge[k-1].h);)k--;return ge.slice(0,k)}}return ge},[c,Ct,l,ee,te,U,Re,F,ke,ze]),It=()=>{const ue=z.current;if(!ue||He.length===0)return;const ce=He[Math.max(0,Math.min(G,He.length-1))],_e=Math.max(1,Math.round(ce.w*A)),ge=Math.max(1,Math.round(ce.h*A));ue.style.width=_e+"px",ue.style.height=ge+"px",ue.width=_e*J,ue.height=ge*J};O.useEffect(()=>{It()},[Ee,A,He.length,J,G]);const Nt=ue=>{const ce=Y??F??null,_e=z.current;if(!_e||!ce||He.length===0)return;const ge=_e.getContext("2d");if(!ge)return;ge.save(),ge.setTransform(1,0,0,1,0,0),ge.clearRect(0,0,_e.width,_e.height),v&&(ge.fillStyle=v,ge.fillRect(0,0,_e.width,_e.height));const Oe=He[ue];ge.scale(J,J),ge.drawImage(ce,Oe.x,Oe.y,Oe.w,Oe.h,0,0,Math.round(Oe.w*A),Math.round(Oe.h*A)),ge.restore()};return O.useEffect(()=>{if(!Ee||He.length===0)return;let ue=performance.now();const ce=1e3/Math.max(1,Math.min(120,f)),_e=ge=>{if(j.current=requestAnimationFrame(_e),!p){Nt(G);return}const Oe=ge-ue;if(Oe<ce){Nt(G);return}ue=ge-Oe%ce,g(I=>{const k=He.length-1;let X=I;return y==="forward"?X=I+1:y==="backward"?X=I-1:((I>=k&&W.current===1||I<=0&&W.current===-1)&&(W.current*=-1),X=I+W.current),(X>k||X<0)&&(h?X=y==="backward"?k:0:(X=Math.max(0,Math.min(X,k)),H(!1),Q?.())),X})};return j.current=requestAnimationFrame(_e),()=>{j.current&&cancelAnimationFrame(j.current)}},[Ee,f,p,h,y,He.length,G]),O.useEffect(()=>{Nt(G),de?.(G)},[G,Ee,A,J]),O.useEffect(()=>{if(!R)return;const ue=()=>{document.hidden&&H(!1)};return document.addEventListener("visibilitychange",ue),()=>document.removeEventListener("visibilitychange",ue)},[R]),O.useImperativeHandle(re,()=>({play:()=>H(!0),pause:()=>H(!1),toggle:()=>H(ue=>!ue),gotoFrame:ue=>g(()=>Math.max(0,Math.min(ue,Math.max(0,He.length-1)))),isPlaying:()=>p,currentFrame:()=>G}),[p,G,He.length]),L.jsx("div",{className:x,style:P,children:L.jsx("canvas",{ref:z,"aria-label":"spritesheet animation"})})});function vf({url:e,className:t}){const[n,r]=O.useState(""),[a,i]=O.useState(null);return O.useEffect(()=>{let u=!1;return Ps(e).then(({sanitized:o})=>{u||(r(o),i(null))}).catch(o=>!u&&i(o.message??"Failed to load")),()=>{u=!0}},[e]),a?L.jsxs("div",{className:t,role:"alert",children:["Couldn’t load SVG: ",a]}):n?L.jsx("div",{className:t,dangerouslySetInnerHTML:{__html:n}}):L.jsx("div",{className:t})}const $a=({facet:e})=>{const{mode:t,assetUrl:n,spr_columns:r,spr_fps:a,spr_frameCount:i,spr_frameHeight:u,spr_frameWidth:o,spr_gutterX:l,spr_gutterY:c,spr_rows:f,spr_originX:d,spr_originY:h}=e;return console.log("facet displayed",e),L.jsxs("div",{className:"assetContainer",children:[t===Ye.AgentDisplayFacetModeType.LOTTIE&&L.jsx(Nf,{src:n,autoplay:!0,onError:m=>console.error(m)}),t===Ye.AgentDisplayFacetModeType.SVG&&L.jsx("div",{children:L.jsx(vf,{url:n})}),t===Ye.AgentDisplayFacetModeType.IMAGE&&L.jsx(Cf,{src:n}),t===Ye.AgentDisplayFacetModeType.SPRITESHEET&&L.jsx(Rf,{src:n,frameCount:i,columns:r,rows:f,fps:a,frameHeight:u,frameWidth:o,gutterX:l,gutterY:c,originX:d,originY:h,autoplay:!0})]})},Pf=({isWidgetOpen:e,setIsWidgetOpen:t})=>{const{companySettings:n}=O.useContext(Dn);return L.jsxs("div",{className:`launcher
|
|
37
|
+
For more details see https://formatjs.io/docs/getting-started/message-distribution`)}function zc(e,t){var n=Sc(t),r=q(q({},As),e),a=r.locale,i=r.defaultLocale,u=r.onError;return a?!Intl.NumberFormat.supportedLocalesOf(a).length&&u?u(new Si('Missing locale data for locale: "'.concat(a,'" in Intl.NumberFormat. Using default locale: "').concat(i,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):!Intl.DateTimeFormat.supportedLocalesOf(a).length&&u&&u(new Si('Missing locale data for locale: "'.concat(a,'" in Intl.DateTimeFormat. Using default locale: "').concat(i,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):(u&&u(new Ac('"locale" was not configured, using "'.concat(i,'" as fallback. See https://formatjs.io/docs/react-intl/api#intlshape for more details'))),r.locale=r.defaultLocale||"en"),Gc(r),q(q({},r),{formatters:n,formatNumber:jc.bind(null,r,n.getNumberFormat),formatNumberToParts:$c.bind(null,r,n.getNumberFormat),formatRelativeTime:Hc.bind(null,r,n.getRelativeTimeFormat),formatDate:Cc.bind(null,r,n.getDateTimeFormat),formatDateToParts:Oc.bind(null,r,n.getDateTimeFormat),formatTime:Ic.bind(null,r,n.getDateTimeFormat),formatDateTimeRange:Nc.bind(null,r,n.getDateTimeFormat),formatTimeToParts:Lc.bind(null,r,n.getDateTimeFormat),formatPlural:Mc.bind(null,r,n.getPluralRules),formatMessage:ma.bind(null,r,n),$t:ma.bind(null,r,n),formatList:kc.bind(null,r,n.getListFormat),formatListToParts:xs.bind(null,r,n.getListFormat),formatDisplayName:vc.bind(null,r,n.getDisplayNames)})}function Cs(e){ts(e,"[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.")}var Is=q(q({},As),{textComponent:De.Fragment});function Vc(e){return function(t){return e(De.Children.toArray(t))}}function qc(e,t){if(e===t)return!0;if(!e||!t)return!1;var n=Object.keys(e),r=Object.keys(t),a=n.length;if(r.length!==a)return!1;for(var i=0;i<a;i++){var u=n[i];if(e[u]!==t[u]||!Object.prototype.hasOwnProperty.call(t,u))return!1}return!0}var ja=typeof window<"u"&&!window.__REACT_INTL_BYPASS_GLOBAL_CONTEXT__?window.__REACT_INTL_CONTEXT__||(window.__REACT_INTL_CONTEXT__=De.createContext(null)):De.createContext(null);ja.Consumer;var Wc=ja.Provider,Xc=Wc,Qc=ja;function Pn(){var e=De.useContext(Qc);return Cs(e),e}var pa;(function(e){e.formatDate="FormattedDate",e.formatTime="FormattedTime",e.formatNumber="FormattedNumber",e.formatList="FormattedList",e.formatDisplayName="FormattedDisplayName"})(pa||(pa={}));var Ea;(function(e){e.formatDate="FormattedDateParts",e.formatTime="FormattedTimeParts",e.formatNumber="FormattedNumberParts",e.formatList="FormattedListParts"})(Ea||(Ea={}));function Ns(e){var t=function(n){var r=Pn(),a=n.value,i=n.children,u=pr(n,["value","children"]),o=typeof a=="string"?new Date(a||0):a,l=e==="formatDate"?r.formatDateToParts(o,u):r.formatTimeToParts(o,u);return i(l)};return t.displayName=Ea[e],t}function Dn(e){var t=function(n){var r=Pn(),a=n.value,i=n.children,u=pr(n,["value","children"]),o=r[e](a,u);if(typeof i=="function")return i(o);var l=r.textComponent||De.Fragment;return De.createElement(l,null,o)};return t.displayName=pa[e],t}function Os(e){return e&&Object.keys(e).reduce(function(t,n){var r=e[n];return t[n]=gs(r)?Vc(r):r,t},{})}var Oi=function(e,t,n,r){for(var a=[],i=4;i<arguments.length;i++)a[i-4]=arguments[i];var u=Os(r),o=ma.apply(void 0,st([e,t,n,u],a,!1));return Array.isArray(o)?De.Children.toArray(o):o},Li=function(e,t){var n=e.defaultRichTextElements,r=pr(e,["defaultRichTextElements"]),a=Os(n),i=zc(q(q(q({},Is),r),{defaultRichTextElements:a}),t),u={locale:i.locale,timeZone:i.timeZone,fallbackOnEmptyString:i.fallbackOnEmptyString,formats:i.formats,defaultLocale:i.defaultLocale,defaultFormats:i.defaultFormats,messages:i.messages,onError:i.onError,defaultRichTextElements:a};return q(q({},i),{formatMessage:Oi.bind(null,u,i.formatters),$t:Oi.bind(null,u,i.formatters)})};function Dr(e){return{locale:e.locale,timeZone:e.timeZone,fallbackOnEmptyString:e.fallbackOnEmptyString,formats:e.formats,textComponent:e.textComponent,messages:e.messages,defaultLocale:e.defaultLocale,defaultFormats:e.defaultFormats,onError:e.onError,onWarn:e.onWarn,wrapRichTextChunksInFragment:e.wrapRichTextChunksInFragment,defaultRichTextElements:e.defaultRichTextElements}}var Kc=(function(e){Je(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.cache=_s(),n.state={cache:n.cache,intl:Li(Dr(n.props),n.cache),prevConfig:Dr(n.props)},n}return t.getDerivedStateFromProps=function(n,r){var a=r.prevConfig,i=r.cache,u=Dr(n);return qc(a,u)?null:{intl:Li(u,i),prevConfig:u}},t.prototype.render=function(){return Cs(this.state.intl),De.createElement(Xc,{value:this.state.intl},this.props.children)},t.displayName="IntlProvider",t.defaultProps=Is,t})(De.PureComponent);Dn("formatDate");Dn("formatTime");Dn("formatNumber");Dn("formatList");Dn("formatDisplayName");Ns("formatDate");Ns("formatTime");const Zc={"generic.language.english":"English","generic.language.french":"French","generic.connect.google":"Connect with Google","generic.button.title.save":"Save","page.login.button.login":"Login / Register","page.login.google.login":"Continue with Google","navbar.button.home":"Home","navbar.button.pricing":"Pricing","navbar.button.login":"Login","navbar.button.demo":"Demo","navbar.userMenu.logout":"Log out","navbar.userMenu.profile":"Profile","navbar.userMenu.backOffice":"Back-office","home.header.catchphase":"The catchphrase you wanted","home.header.subcatchphase":"Discover the new software that will change it all","home.header.CTA":"See more","home.section.bulletsPointParagraphe1.title":"Management","home.section.bulletsPointParagraphe1.text":"Take advantage of a complete solution to have a direct point of view on all of your units.","home.section.bulletsPointParagraphe2.title":"Automation","home.section.bulletsPointParagraphe2.text":"In just a few clicks, manage your entire fleet. Implement macros and synergies on your systems.","home.section.bulletsPointParagraphe3.title":"Reporting","home.section.bulletsPointParagraphe3.text":"With its BI module, our software allows you to monitor performance and optimize your costs.","home.realm.title":"See the root of your business in a few clicks","home.realm.text":"The security of your data is at the heart of our concerns. Our software was created in France, we are ISO 27001 certified and all our servers are located in Europe.","home.realm.cta":"Discover our solution","home.testimonials.title":"What our customers say","home.testimonials.1.text":"Since using the software, we have better control of the flow of goods and relevant performance monitoring.","home.testimonials.1.job":"Developer @Wordpress","home.testimonials.1.name":"Loic Martins","home.testimonials.2.text":"Putting the software solution into production allowed us to completely reorganize the teams.","home.testimonials.2.job":"Community Manager @Comet","home.testimonials.2.name":"Anna Wang","home.testimonials.3.text":"Mastery of the logistics subject is obvious with the software solution.","home.testimonials.3.job":"Product Owner @April","home.testimonials.3.name":"Louis Bachant","home.test.section.title":"Try it out now","home.test.section.CTA":"See our solution","pricing.CTA.pleaseLogin":"Login to buy","pricing.page.title":"Choose your plan","pricing.page.subtitle":"No obligation: cancel at any time with one click.","subscribe.paymentRecap.title":"Payment Summary","subscribe.paymentRecap.customerName":"Name","subscribe.paymentRecap.customerMail":"Email","subscribe.paymentRecap.additionnalMention":"Mention to add","subscribe.paymentRecap.totalAmount":"Total Amount","subscribe.paymentForm.title":"Bank card","subscribe.paymentForm.cardNumber":"Card number","subscribe.paymentForm.expiresAt":"Expires at","subscribe.paymentForm.CVCNumber":"CVC number","subscribe.paymentForm.CTA.loading":"Loading ...","subscribe.paymentForm.CTA.pay":"Pay now","subscribe.success.title":"Payment successful","subscribe.success.paragraph1":"Your payment has been processed successfully. You are now suscribed !","subscribe.success.paragraph2":"Your new options are now available.","myAccount.page.leftMenu.general":"General","myAccount.page.leftMenu.profile":"Profile","chatbot.placeholder.content":"Message the assistant...","chatbot.DiscussionLimitReached.title":"Discussion limit reached","chatbot.DiscussionLimitReached.explaination":"The discussion has reached its maximum number of messages. Please start a new one.","chatbot.DiscussionLimitReached.cta":"Restart","chatbot.error.api.409":"Oups ! The discussion if full. Please start a new one.","chatbot.error.api.429":"⏳ The chatbot is a little busy at the time. Please try again later.","chatbot.error.api.500":"Oops ! There has been an error. Please try again later.","chatbot.chatline.label.user":"You","chatbot.chatline.label.assistant":"Assistant","chatbot.chatline.loading.function.genericSearchMessage":"I'm looking for products","chatbot.chatline.loading.function.search":"Search","chatbot.chatline.loading.function.extractProductName":"Looking into the cavern","chatbot.chatline.loading.function.suggestProductName":"Consulting the shadocks","chatbot.chatline.loading.function.criteriaDefinition":"Looking for ziboublis","chatbot.chatline.loading.function.searchStock":"Searching Stock","chatbot.chatline.loading.function.step":"Step","chatbot.chatline.loading.cancel":"Cancel","footer.tab.title.general":"General","footer.tab.title.about":"About","footer.tab.title.resources":"Resources","footer.tab.title.legal":"Legal","footer.tab.title.social":"Social","footer.tab.search":"Search","footer.tab.pricing":"Pricing","footer.tab.termsAndConditions":"Terms and conditions","footer.tab.finalCopyright":"Copyright © 2023 Logiciel, Inc. All rights reserved."},Jc={"generic.language.english":"Anglais","generic.language.french":"Français","generic.connect.google":"Se connecter avec Google","generic.button.title.save":"Sauvegarder","page.login.button.login":"Se connecter / S'inscrire","page.login.google.login":"Continuer avec Google","navbar.button.home":"Accueil","navbar.button.pricing":"Tarifs","navbar.button.login":"Se Connecter","navbar.button.demo":"Demo","navbar.userMenu.logout":"Déconnection","navbar.userMenu.profile":"Profil","navbar.userMenu.backOffice":"Back-office","home.header.catchphase":"Catchphrase de l'espace","home.header.subcatchphase":"Découvrez le logiciel qui met fin à vos problèmes","home.header.CTA":"Voir notre solution","home.section.bulletsPointParagraphe1.title":"Management","home.section.bulletsPointParagraphe1.text":"Profitez d'une solution complète pour avoir un point de vue direct sur l'ensemble de vos unités.","home.section.bulletsPointParagraphe2.title":"Automatisation","home.section.bulletsPointParagraphe2.text":"En quelques clicks, gérez l'ensemble de votre flotte. Mettez en place des macros et des synergies sur vos systèmes.","home.section.bulletsPointParagraphe3.title":"Reporting","home.section.bulletsPointParagraphe3.text":"Avec son module BI, notre logiciel vous permet de monitorer la performance et d'optimiser vos coûts. A l'euro prêt","home.realm.title":"Le coeur du métier en quelques clics","home.realm.text":"La sécurité de vos données est au cœur de nos préoccupations. Notre logiciel a été créé en France, nous sommes certifiés ISO 27001 et tous nos serveurs sont situés en Europe.","home.realm.cta":"Voir notre solution","home.testimonials.title":"Nos clients parlent de nous","home.testimonials.1.text":"Depuis notre utilisation du logiciel, nous avons un meilleur contrôle du flux de marchandises et un suivi de performance pertinent.","home.testimonials.1.job":"Developpeur @Wordpress","home.testimonials.1.name":"Loic Martins","home.testimonials.2.text":"La mise en production de la solution logicielle nous a permis de réorganiser complètement les équipes.","home.testimonials.2.job":"Community Manager @Comet","home.testimonials.2.name":"Anna Wang","home.testimonials.3.text":"La maitrise du sujet logistique est une évidence avec la solution logicielle.","home.testimonials.3.job":"Product Owner @April","home.testimonials.3.name":"Louis Bachant","home.test.section.title":"Testez dès maintenant","home.test.section.CTA":"Voir notre solution","pricing.CTA.pleaseLogin":"Connectez-vous","pricing.page.title":"Choisissez votre plan","pricing.page.subtitle":"Sans engagement : annulez à tout moment en un clic.","subscribe.paymentRecap.title":"Récapitulatif de paiement","subscribe.paymentRecap.customerName":"Nom","subscribe.paymentRecap.customerMail":"Email","subscribe.paymentRecap.additionnalMention":"Mention à ajouter","subscribe.paymentRecap.totalAmount":"Total","subscribe.paymentForm.title":"Carte bancaire","subscribe.paymentForm.cardNumber":"Numéro de carte","subscribe.paymentForm.expiresAt":"Expire le","subscribe.paymentForm.CVCNumber":"Numéro CVV","subscribe.paymentForm.CTA.loading":"Chargement ...","subscribe.paymentForm.CTA.pay":"S'abonner","subscribe.success.title":"Paiement effectué avec succès","subscribe.success.paragraph1":"Votre paiement a bien été accepté. Vous êtes désormais abonné !","subscribe.success.paragraph2":"Toutes vos options sont maintenant disponibles.","myAccount.page.leftMenu.general":"Général","myAccount.page.leftMenu.profile":"Profil","chatbot.placeholder.content":"Envoyez un message à l'assistant ...","chatbot.DiscussionLimitReached.title":"Maximum de messages envoyés atteint.","chatbot.DiscussionLimitReached.explaination":"Le robot est à son maximum et ne peut plus envoyer de message. Merci de relancer une conversation.","chatbot.DiscussionLimitReached.cta":"Relancer une nouvelle conversation","chatbot.error.api.409":"Oups ! La discussion est à son maximum. Merci d'en commencer une nouvelle.","chatbot.error.api.429":"⏳ Le robot est un peu occupé actuellement. Merci de réessayer plus tard.","chatbot.error.api.500":"Oups ! Une erreur est survenue. Merci de réessayer plus tard !","chatbot.chatline.label.user":"Vous","chatbot.chatline.label.assistant":"Assistant","chatbot.chatline.loading.function.search":"Recherche","chatbot.chatline.loading.function.genericSearchMessage":"Je cherche des produits","chatbot.chatline.loading.function.extractProductName":"Recherche dans la caverne","chatbot.chatline.loading.function.suggestProductName":"Consultation des shadocks","chatbot.chatline.loading.function.criteriaDefinition":"Recherche des ziboublis","chatbot.chatline.loading.function.searchStock":"Recherche en stock","chatbot.chatline.loading.function.step":"Etape","chatbot.chatline.loading.cancel":"Annuler","footer.tab.title.general":"Général","footer.tab.title.about":"A propos","footer.tab.title.resources":"Ressources","footer.tab.title.legal":"Mentions Légales","footer.tab.title.social":"Social","footer.tab.search":"Rechercher","footer.tab.pricing":"Tarifs","footer.tab.termsAndConditions":"Termes et conditions","footer.tab.finalCopyright":"Copyright © 2023 Logiciel, Inc. Tous droits réservés."};var Xe=(e=>(e.FRENCH="fr-FR",e.ENGLISH="en-US",e))(Xe||{});const br={[Xe.ENGLISH]:{translatedText:Zc,pictureName:Xe.ENGLISH,langID:0,locale:Xe.ENGLISH},[Xe.FRENCH]:{translatedText:Jc,pictureName:Xe.FRENCH,langID:1,locale:Xe.FRENCH}},ef=Object.keys(br);ef.reduce((e,t)=>{const n=br[t];return[...e,n]},[]);const tf="languageSettings",nf=(e,t)=>{let n,r;return typeof window<"u"&&(r=window.localStorage.getItem(tf)),r&&e?.[r]!==void 0?n=e[r]:(n=e[t],n.isDefault=!0),n},rf=(e,t)=>{const[n,r]=N.useState(e[t]),a=i=>{Object.keys(e).includes(i?.locale)?r(i):r(e[Xe.ENGLISH])};return N.useEffect(()=>{let i=nf(e,t);i.locale!==t&&r(e[i.locale])},[]),{appCurrentLang:n,handleSetContextCurrentLang:a}},Ls=N.createContext({appCurrentLang:br[Xe.ENGLISH],setAppCurrentLang:()=>{}}),Rs=N.createContext({conversation:[],setConversation:()=>{},discussionId:null,setDiscussionId:()=>{}});var Rt={},Ri;function af(){if(Ri)return Rt;Ri=1,Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.AgentDisplayFacetRoleType=Rt.AgentDisplayFacetModeType=void 0;var e;(function(n){n.SPRITESHEET="spritesheet",n.LOTTIE="lottie",n.IMAGE="image",n.SVG="svg",n.VIDEO="video"})(e||(Rt.AgentDisplayFacetModeType=e={}));var t;return(function(n){n.LAUNCHER="launcher",n.ASSISTANT="assistant",n.SEARCH="search"})(t||(Rt.AgentDisplayFacetRoleType=t={})),Rt}var Ye=af();const kr=e=>({mode:Ye.AgentDisplayFacetModeType.SVG,role:e}),uf=()=>({agent:{display:{name:"",CSSRules:"",[Ye.AgentDisplayFacetRoleType.LAUNCHER]:kr(Ye.AgentDisplayFacetRoleType.LAUNCHER),[Ye.AgentDisplayFacetRoleType.ASSISTANT]:kr(Ye.AgentDisplayFacetRoleType.ASSISTANT),[Ye.AgentDisplayFacetRoleType.SEARCH]:kr(Ye.AgentDisplayFacetRoleType.SEARCH)},text:{initialText:""}},api:{settings:{maxUserMessagesPerDiscussion:20}}}),kn=N.createContext({companySettings:uf(),setCompanySettings:()=>{}}),vs=()=>({hasFetchedSettings:!1,hasDisplayedCSS:!1}),sf=()=>{const[e,t]=N.useState(vs());return{appInternalContext:e,setAppInternalContext:t,setHasFetchedSettings:()=>{t(a=>({...a,hasFetchedSettings:!0}))},setHasDisplayedCss:()=>{t(a=>({...a,hasDisplayedCSS:!0}))}}},Ps=N.createContext({appInternalContext:vs(),setAppInternalContext:()=>{},setHasFetchedSettings:()=>{}}),of=e=>Object.values(Xe).includes(e),lf=e=>of(e)?e:(console.log(`Language ${e} not handled for now. Using ${Xe.ENGLISH}.`),Xe.ENGLISH);class Nn{constructor(){}static getApiUrl=()=>process.env.NODE_ENV==="development"?"http://localhost:3001":"https://www.api.chatsystem.ai";static getHeaders=({contentType:t="text/plain"})=>({"Content-Type":t});static getFetchConfig=({contentType:t="text/plain",httpVerb:n="GET",body:r,options:a={}})=>{const i={method:n,headers:this.getHeaders({contentType:t}),...a};return r&&(i.body=JSON.stringify(r)),i}}const cf=({agentId:e,appToken:t,onFetched:n})=>{const[r,a]=N.useState({}),i={companySettings:r,setCompanySettings:a},[u,o]=N.useState([]),[l,c]=N.useState(null),f={conversation:u,setConversation:o,discussionId:l,setDiscussionId:c};return N.useEffect(()=>{const d=Nn.getApiUrl(),h=Nn.getFetchConfig({httpVerb:"GET",contentType:"application/json"});fetch(`${d}/company/settings/${t}/${e}`,h).then(async m=>{const _=await m.json();a(_),o([{userType:"assistant",content:_.agent.text.initialText}]),n?.()}).catch(m=>console.log("error in settings fetch",m))},[t,e]),{contextCompanySettings:i,contextInitialChatbotStartingText:f}};function ff(e,t={},n,r){const{id:a,nonce:i,target:u,disableConstructable:o}=t,l=u??document.head,c=N.useRef(null),f=N.useRef(null);N.useEffect(()=>{if(!e){n&&(console.log("No custom css found."),r?.());return}if(!o&&"adoptedStyleSheets"in l&&typeof CSSStyleSheet<"u"&&"replaceSync"in CSSStyleSheet.prototype)return c.current||(c.current=new CSSStyleSheet,l.adoptedStyleSheets=[...l.adoptedStyleSheets,c.current]),c.current.replaceSync(e),console.log("Loading custom css via stylesheet."),r?.(),()=>{const h=l.adoptedStyleSheets||[],m=h.indexOf(c.current);if(m>=0){const _=h.slice();_.splice(m,1),l.adoptedStyleSheets=_}c.current=null};if(!f.current){const h=document.createElement("style");h.type="text/css",a&&(h.id=a),i&&(h.nonce=i),(l instanceof Document&&l.head||l).appendChild(h),f.current=h}return f.current.textContent=e,console.log("Loading custom css via style tag."),r?.(),()=>{f.current?.parentNode?.removeChild(f.current),f.current=null}},[e,a,i,u,o])}const Jt=globalThis;Jt.__WIDGET_ASSET_CACHE__||(Jt.__WIDGET_ASSET_CACHE__={svg:new Map,img:new Map,lot:new Map,spr:new Map});Jt.__WIDGET_PRELOAD_KEYS__||(Jt.__WIDGET_PRELOAD_KEYS__=new Set);const wr=Jt.__WIDGET_PRELOAD_KEYS__,_t=Jt.__WIDGET_ASSET_CACHE__,df="widget-assets-v1";async function gr(e,t){try{const n=await caches.open(df),r=await n.match(e,{ignoreSearch:!1});if(r)return r.clone();const a=await fetch(e,{cache:"force-cache",mode:"cors",keepalive:!0,...t});if(!a.ok)throw new Error(`HTTP ${a.status} for ${e}`);return n.put(e,a.clone()),a}catch(n){return console.log("error while fetching",n),new Response(null,{status:520,statusText:"Error in client - Fetch failed"})}}async function Ds(e){const t=_t.svg.get(e);if(t)return t.promise;const n=(async()=>{const a=await(await gr(e)).text();if(typeof globalThis.DOMPurify<"u"&&typeof globalThis.DOMPurify.sanitize=="function")try{const u=new DOMParser().parseFromString(a,"image/svg+xml"),o=new XMLSerializer().serializeToString(u.documentElement);return{sanitized:globalThis.DOMPurify.sanitize(o,{USE_PROFILES:{svg:!0,svgFilters:!0}})}}catch{return{sanitized:globalThis.DOMPurify.sanitize(a,{USE_PROFILES:{svg:!0,svgFilters:!0}})}}else return{sanitized:a}})();return _t.svg.set(e,{promise:n,ts:Date.now()}),n}function ks(e){const t=_t.img.get(e);if(t)return t.promise;const n=(async()=>{const a=await(await gr(e)).blob();return{blobUrl:URL.createObjectURL(a)}})();return _t.img.set(e,{promise:n,ts:Date.now()}),n}function ws(e){const t=_t.lot.get(e);if(t)return t.promise;const n=(async()=>{const a=await(await gr(e)).arrayBuffer(),i=new Uint8Array(a);if(i.length>=4&&i[0]===80&&i[1]===75&&i[2]===3&&i[3]===4||e.endsWith(".lottie"))return{kind:"zip",blobUrl:URL.createObjectURL(new Blob([a],{type:"application/zip"}))};const o=new TextDecoder().decode(i);return{kind:"json",data:JSON.parse(o)}})();return _t.lot.set(e,{promise:n,ts:Date.now()}),n}function Ms(e){const t=_t.spr.get(e);if(t)return t.promise;const n=(async()=>{const a=await(await gr(e)).blob();let i=null;try{i=await createImageBitmap(a)}catch{i=null}const{imgEl:u,width:o,height:l}=await new Promise((c,f)=>{const d=URL.createObjectURL(a),h=new Image;h.crossOrigin="anonymous",h.onload=()=>{const m=h.naturalWidth,_=h.naturalHeight;c({imgEl:h,width:m,height:_})},h.onerror=()=>{URL.revokeObjectURL(d),f(new Error("Spritesheet image decode failed"))},h.src=d,h.decode?.().catch(()=>{})});return{imgEl:u,bitmap:i,width:o,height:l}})();return _t.spr.set(e,{promise:n,ts:Date.now()}),n}function hf(e){e.images?.forEach(t=>void ks(t)),e.svgs?.forEach(t=>void Ds(t)),e.lotties?.forEach(t=>void ws(t)),e.sprites?.forEach(t=>void Ms(t))}function mf(e){try{const t=document.createElement("link");t.rel="preconnect",t.href=e,t.crossOrigin="anonymous",document.head.appendChild(t);const n=document.createElement("link");n.rel="dns-prefetch",n.href=e,document.head.appendChild(n)}catch(t){console.log("error in injectPreconnect",t)}}function Bs(e){return new URL(e,document.baseURI).toString()}function pf(e,t){const n=document.head.querySelectorAll('link[rel="preload"]');for(const r of n)if((e?r.as===e||r.getAttribute("as")===e:!0)&&r.href===t)return!0;return!1}function zn(e,t,n,r){const a=Bs(n),i=`${e}|${t??""}|${a}`;if(wr.has(i))return;if(pf(t,a)){wr.add(i);return}const u=document.createElement("link");u.rel=e,t&&(u.as=t),u.href=a,u.crossOrigin="anonymous",r&&(u.type=r),u.setAttribute("data-chatsystem-preload","1"),document.head.appendChild(u),wr.add(i)}function Ef(e){const t=u=>Array.from(new Set((u??[]).map(Bs))),n=t(e.images),r=t(e.svgs),a=t(e.lotties),i=t(e.sprites);n.forEach(u=>zn("preload","image",u)),r.forEach(u=>zn("preload","fetch",u,"image/svg+xml")),a.forEach(u=>zn("preload","fetch",u,"application/zip")),i.forEach(u=>zn("preload","fetch",u))}function bf(e){const{manifest:t,origins:n}=gf(e);n.forEach(mf),Ef(t),hf(t)}function gf(e){const t=Tf(e),n=new Set,r=new Set,a=new Set,i=new Set;for(const{url:l,mode:c}of t)switch(Af(c,l)){case"svg":r.add(l);break;case"lottie":a.add(l);break;case"spritesheet":i.add(l);break;case"image":n.add(l);break}const u={images:Array.from(n),svgs:Array.from(r),lotties:Array.from(a),sprites:Array.from(i)},o=_f(u);return{manifest:u,origins:o}}function Tf(e){if(!e?.agent?.display)return[];const t=e.agent.display,n=[t.launcher,t.assistant,t.search].filter(Boolean),r=[];for(const a of n)a?.assetUrl&&r.push({url:a.assetUrl,mode:a.mode});return r}function Af(e,t){if(e)switch(e){case"svg":return"svg";case"lottie":return"lottie";case"spritesheet":return"spritesheet";case"image":return"image";case"video":return"video"}try{const r=new URL(t,document.baseURI).pathname.toLowerCase();if(r.endsWith(".svg"))return"svg";if(r.endsWith(".lottie")||r.endsWith(".zip")||r.endsWith(".json"))return r.endsWith(".json"),"lottie";if(/\.(png|webp|jpg|jpeg|gif|avi,ef)$/.test(r))return"image";if(/\.(mp4|webm|mov|m4v|ogg)$/.test(r))return"video"}catch(n){console.log("error in normalizeKind:",n)}return"unknown"}function _f(e){const t=new Set,n=r=>{if(r)try{const a=new URL(r,document.baseURI);t.add(`${a.protocol}//${a.host}`)}catch(a){console.log("error in uniqueOriginsFromManifest",a)}};return(e.images??[]).forEach(n),(e.svgs??[]).forEach(n),(e.lotties??[]).forEach(n),(e.sprites??[]).forEach(n),Array.from(t)}const yf=({children:e,appToken:t,agentId:n})=>{var r=navigator.language;console.log("App boot"),console.log("Brower language",r);const a=lf(r),{appCurrentLang:i,handleSetContextCurrentLang:u}=rf(br,a),o={appCurrentLang:i,setAppCurrentLang:u},l=sf(),{contextCompanySettings:c,contextInitialChatbotStartingText:f}=cf({agentId:n,appToken:t,onFetched:l.setHasFetchedSettings});return bf(c.companySettings),ff(c.companySettings?.agent?.display?.CSSRules,{id:`${n}`},l.appInternalContext.hasFetchedSettings,l.setHasDisplayedCss),L.jsx(L.Fragment,{children:L.jsx(Kc,{locale:i?.locale,messages:i?.translatedText,children:L.jsx(Ls.Provider,{value:o,children:L.jsx(Ps.Provider,{value:l,children:L.jsx(kn.Provider,{value:c,children:L.jsx(Rs.Provider,{value:f,children:l.appInternalContext.hasDisplayedCSS&&e})})})})})})},xf=e=>Object.values(nn).includes(e),Sf=e=>xf(e)?e:(console.warn(`Display mode not valid. Using ${nn.LAUNCHER} as default.`),nn.LAUNCHER),Cf=e=>De.createElement("svg",{fill:"#000000",height:"800px",width:"800px",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 330 330",xmlSpace:"preserve",...e},De.createElement("path",{id:"XMLID_102_",d:"M325.607,79.393c-5.857-5.857-15.355-5.858-21.213,0.001l-139.39,139.393L25.607,79.393 c-5.857-5.857-15.355-5.858-21.213,0.001c-5.858,5.858-5.858,15.355,0,21.213l150.004,150c2.813,2.813,6.628,4.393,10.606,4.393 s7.794-1.581,10.606-4.394l149.996-150C331.465,94.749,331.465,85.251,325.607,79.393z"})),If=({src:e})=>{const[t,n]=N.useState(null);return N.useEffect(()=>{let r=!1;return ks(e).then(({blobUrl:a})=>{n(a)}).catch(()=>n(null)),()=>{t&&!r&&(URL.revokeObjectURL(t),r=!0)}},[e]),L.jsx("img",{src:t??e,decoding:"async",loading:"eager"})};function Nf(e){return!!e&&typeof e=="object"&&"blob"in e&&e.blob instanceof Blob}function Of({src:e,autoplay:t=!0,loop:n=!0,className:r,style:a,placeholder:i,fallback:u,onLoaded:o,onError:l}){const[c,f]=N.useState({kind:"loading"});return N.useEffect(()=>{let d=null,h=!1;return f({kind:"loading"}),ws(e).then(async m=>{if(!h)if(m.kind==="zip"){const _=Nf(m)?m.blob:await(await fetch(m.blobUrl)).blob();d=URL.createObjectURL(_),f({kind:"lottieZip",blobUrl:d}),o?.(d)}else f({kind:"json",data:m.data}),o?.(m.data)}).catch(m=>!h&&(f({kind:"error",err:m}),l?.(m))),()=>{h=!0,d&&URL.revokeObjectURL(d)}},[e]),c.kind==="loading"?L.jsx("div",{className:"flex items-center justify-center rounded-xl border border-dashed p-6 text-sm opacity-70 "+(r??""),style:{minHeight:96,...a},children:i??"Loading animation…"}):c.kind==="error"?L.jsx("div",{className:"flex items-center justify-center rounded-xl border p-6 text-sm text-red-600 "+(r??""),style:{minHeight:96,...a},children:u??"Failed to load animation"}):c.kind==="json"?L.jsx(Cl,{animationData:c.data,loop:n,autoplay:t,className:r,style:a,rendererSettings:{preserveAspectRatio:"xMidYMid meet"}}):L.jsx(Il.DotLottieReact,{src:c.blobUrl,loop:n,autoplay:t,className:r,style:a})}async function Lf(e,t={}){const{minPeriod:n=8,maxPeriod:r=Math.floor(Math.min(e.width,e.height)/2),gutterSearchRadius:a=3,debug:i=!1}=t;if(e.width<n*2||e.height<n*2)return i&&console.warn("detectGrid: image too small"),null;const u=document.createElement("canvas");u.width=e.naturalWidth,u.height=e.naturalHeight;const o=u.getContext("2d");if(!o)return null;o.drawImage(e,0,0);const{data:l}=o.getImageData(0,0,u.width,u.height),c=u.width,f=u.height,d=new Uint8ClampedArray(c*f);for(let z=0;z<f;z++){let j=z*c;for(let F=0;F<c;F++){const $=(j+F)*4;d[j+F]=.299*l[$]+.587*l[$+1]+.114*l[$+2]|0}}const h=new Float32Array(c),m=new Float32Array(f);for(let z=1;z<c-1;z++){let j=0;for(let F=0;F<f;F++){const $=F*c+z,Y=d[$+1]-d[$-1];j+=Math.abs(Y)}h[z]=j}for(let z=1;z<f-1;z++){let j=0;for(let F=0;F<c;F++){const $=z*c+F,Y=d[$+c]-d[$-c];j+=Math.abs(Y)}m[z]=j}const _=vi(h,n,Math.min(r,c/2)),A=vi(m,n,Math.min(r,f/2));if(!_||!A)return i&&console.warn("detectGrid: could not find periods"),null;const v=Math.max(1,Math.round(c/_)),x=Math.max(1,Math.round(f/A)),P=Pi(h,_,v,a),R=Pi(m,A,x,a),B=Math.max(1,_-P),C=Math.max(1,A-R);if(B*v>c+2||C*x>f+2)return i&&console.warn("detectGrid: sanity check failed"),null;const O=ba(h,60),Q=ba(m,60),de=Math.max(0,Di(h,O)),re=Math.max(0,Di(m,Q));return i&&console.log({periodX:_,periodY:A,columns:v,rows:x,gutterX:P,gutterY:R,frameWidth:B,frameHeight:C,originX:de,originY:re}),{columns:v,rows:x,frameWidth:B,frameHeight:C,gutterX:P,gutterY:R,originX:de,originY:re}}function vi(e,t,n){const r=Fs(e);let a=0;for(let m=0;m<e.length;m++){const _=e[m]-r;a+=_*_}if(a===0)return null;const i=new Float32Array(n+1);let u=0,o=-1/0;for(let m=t;m<=n;m++){let _=0;for(let v=0;v+m<e.length;v++)_+=(e[v]-r)*(e[v+m]-r);const A=_/a;i[m]=A,A>o&&(o=A,u=m)}if(u<=t||u>=n)return u||null;const l=i[u-1],c=i[u],f=i[u+1],d=l-2*c+f,h=d===0?0:.5*(l-f)/d;return u+h}function Pi(e,t,n,r){const a=[];for(let o=1;o<n;o++){const l=o*t;let c=1/0,f=l;for(let d=-r;d<=r;d++){const h=l+d;if(h<=0||h>=e.length)continue;const m=e[h];m<c&&(c=m,f=h)}a.push(f)}if(a.length<1)return 0;let i=[];for(const o of a){const l=e[o]*1.5+ba(e,10)*.5;let c=o,f=o;for(;c>1&&e[c-1]<=l;)c--;for(;f<e.length-2&&e[f+1]<=l;)f++;i.push(Math.max(0,f-c+1))}const u=Math.round(Fs(i));return Math.max(0,Math.min(u,Math.floor(t/4)))}function Fs(e){let t=0;for(let n=0;n<e.length;n++)t+=e[n];return t/e.length}function ba(e,t){const n=Array.from(e);n.sort((a,i)=>a-i);const r=Math.max(0,Math.min(n.length-1,Math.floor(t/100*n.length)));return n[r]}function Di(e,t){for(let n=0;n<e.length;n++)if(e[n]>t)return n;return 0}function Rf(e,t,n,r,a){const{data:i}=e.getImageData(t,n,r,a);let u=0;for(let o=3;o<i.length;o+=4)u+=i[o];return u/(255*(i.length/4))<.03}const vf=N.forwardRef(function({src:t,frameWidth:n,frameHeight:r,columns:a,rows:i,gutterX:u=0,gutterY:o=0,frameCount:l,atlasFrames:c,fps:f=12,autoplay:d=!0,loop:h=!0,startFrame:m=0,direction:_="forward",scale:A=1,backgroundColor:v,className:x,style:P,pauseWhenHidden:R=!1,originX:B,originY:C,onLoad:O,onEnd:Q,onFrame:de},re){const z=N.useRef(null),j=N.useRef(null),[F,$]=N.useState(null),[Y,Z]=N.useState(null),[he,se]=N.useState(null),[Ee,Le]=N.useState(!1),[p,H]=N.useState(!!d),[G,g]=N.useState(m),W=N.useRef(1),[K,V]=N.useState(null),J=Math.max(1,Math.floor(typeof window<"u"&&window.devicePixelRatio||1));N.useEffect(()=>{let ue=!1;return Le(!1),Ms(t).then(({imgEl:ce,bitmap:_e})=>{ue||($(ce),Z(_e),se({w:ce.naturalWidth,h:ce.naturalHeight}),Le(!0),O?.())}).catch(()=>{}),()=>{ue=!0}},[t,O]),N.useEffect(()=>{let ue=!1;return(async()=>{if(!F)return;if(c&&c.length){V(null);return}if(!(!n||!r||!a||!i)){V(null);return}const _e=await Lf(F,{debug:!0});ue||(_e?V({frameWidth:_e.frameWidth,frameHeight:_e.frameHeight,columns:_e.columns,rows:_e.rows,gutterX:_e.gutterX,gutterY:_e.gutterY}):(V(null),console.warn("RemoteSpritesheet: auto-detect failed; please provide grid props.")))})(),()=>{ue=!0}},[F,c,n,r,a,i]);const ee=K?.frameWidth??n,te=K?.frameHeight??r,ae=K?.columns??a,Oe=K?.rows??i,U=K?.gutterX??u,Re=K?.gutterY??o,ke=K?.originX??B??0,ze=K?.originY??C??0,Ct=N.useMemo(()=>{if(c&&c.length>0)return{cols:0,rows:0};if(!he||!ee||!te)return{cols:0,rows:0};const ue=ae??Math.floor((he.w+U)/(ee+U)),ce=Oe??Math.floor((he.h+Re)/(te+Re));return{cols:Math.max(0,ue),rows:Math.max(0,ce)}},[c,he,ee,te,ae,Oe,U,Re]),He=N.useMemo(()=>{if(c?.length)return c;if(!ee||!te)return[];const{cols:ue,rows:ce}=Ct;if(!ue||!ce)return[];const _e=Math.min(l??ue*ce,ue*ce),ge=[];for(let Ne=0;Ne<_e;Ne++){const I=Ne%ue,k=Math.floor(Ne/ue),X=ke+I*(ee+U),le=ze+k*(te+Re);ge.push({x:X,y:le,w:ee,h:te})}if(F&&ge.length){const Ne=document.createElement("canvas");Ne.width=F.naturalWidth,Ne.height=F.naturalHeight;const I=Ne.getContext("2d");if(I){I.drawImage(F,0,0);let k=ge.length;for(;k>0&&Rf(I,ge[k-1].x,ge[k-1].y,ge[k-1].w,ge[k-1].h);)k--;return ge.slice(0,k)}}return ge},[c,Ct,l,ee,te,U,Re,F,ke,ze]),It=()=>{const ue=z.current;if(!ue||He.length===0)return;const ce=He[Math.max(0,Math.min(G,He.length-1))],_e=Math.max(1,Math.round(ce.w*A)),ge=Math.max(1,Math.round(ce.h*A));ue.style.width=_e+"px",ue.style.height=ge+"px",ue.width=_e*J,ue.height=ge*J};N.useEffect(()=>{It()},[Ee,A,He.length,J,G]);const Nt=ue=>{const ce=Y??F??null,_e=z.current;if(!_e||!ce||He.length===0)return;const ge=_e.getContext("2d");if(!ge)return;ge.save(),ge.setTransform(1,0,0,1,0,0),ge.clearRect(0,0,_e.width,_e.height),v&&(ge.fillStyle=v,ge.fillRect(0,0,_e.width,_e.height));const Ne=He[ue];ge.scale(J,J),ge.drawImage(ce,Ne.x,Ne.y,Ne.w,Ne.h,0,0,Math.round(Ne.w*A),Math.round(Ne.h*A)),ge.restore()};return N.useEffect(()=>{if(!Ee||He.length===0)return;let ue=performance.now();const ce=1e3/Math.max(1,Math.min(120,f)),_e=ge=>{if(j.current=requestAnimationFrame(_e),!p){Nt(G);return}const Ne=ge-ue;if(Ne<ce){Nt(G);return}ue=ge-Ne%ce,g(I=>{const k=He.length-1;let X=I;return _==="forward"?X=I+1:_==="backward"?X=I-1:((I>=k&&W.current===1||I<=0&&W.current===-1)&&(W.current*=-1),X=I+W.current),(X>k||X<0)&&(h?X=_==="backward"?k:0:(X=Math.max(0,Math.min(X,k)),H(!1),Q?.())),X})};return j.current=requestAnimationFrame(_e),()=>{j.current&&cancelAnimationFrame(j.current)}},[Ee,f,p,h,_,He.length,G]),N.useEffect(()=>{Nt(G),de?.(G)},[G,Ee,A,J]),N.useEffect(()=>{if(!R)return;const ue=()=>{document.hidden&&H(!1)};return document.addEventListener("visibilitychange",ue),()=>document.removeEventListener("visibilitychange",ue)},[R]),N.useImperativeHandle(re,()=>({play:()=>H(!0),pause:()=>H(!1),toggle:()=>H(ue=>!ue),gotoFrame:ue=>g(()=>Math.max(0,Math.min(ue,Math.max(0,He.length-1)))),isPlaying:()=>p,currentFrame:()=>G}),[p,G,He.length]),L.jsx("div",{className:x,style:P,children:L.jsx("canvas",{ref:z,"aria-label":"spritesheet animation"})})});function Pf({url:e,className:t}){const[n,r]=N.useState(""),[a,i]=N.useState(null);return N.useEffect(()=>{let u=!1;return Ds(e).then(({sanitized:o})=>{u||(r(o),i(null))}).catch(o=>!u&&i(o.message??"Failed to load")),()=>{u=!0}},[e]),a?L.jsxs("div",{className:t,role:"alert",children:["Couldn’t load SVG: ",a]}):n?L.jsx("div",{className:t,dangerouslySetInnerHTML:{__html:n}}):L.jsx("div",{className:t})}const $a=({facet:e})=>{const{mode:t,assetUrl:n,spr_columns:r,spr_fps:a,spr_frameCount:i,spr_frameHeight:u,spr_frameWidth:o,spr_gutterX:l,spr_gutterY:c,spr_rows:f,spr_originX:d,spr_originY:h}=e;return L.jsxs("div",{className:"assetContainer",children:[t===Ye.AgentDisplayFacetModeType.LOTTIE&&L.jsx(Of,{src:n,autoplay:!0,onError:m=>console.error(m)}),t===Ye.AgentDisplayFacetModeType.SVG&&L.jsx("div",{children:L.jsx(Pf,{url:n})}),t===Ye.AgentDisplayFacetModeType.IMAGE&&L.jsx(If,{src:n}),t===Ye.AgentDisplayFacetModeType.SPRITESHEET&&L.jsx(vf,{src:n,frameCount:i,columns:r,rows:f,fps:a,frameHeight:u,frameWidth:o,gutterX:l,gutterY:c,originX:d,originY:h,autoplay:!0})]})},Df=({isWidgetOpen:e,setIsWidgetOpen:t})=>{const{companySettings:n}=N.useContext(kn);return L.jsxs("div",{className:`launcher
|
|
38
38
|
fixed
|
|
39
39
|
z-[999999999]
|
|
40
40
|
transition
|
|
@@ -45,21 +45,21 @@ For more details see https://formatjs.io/docs/getting-started/message-distributi
|
|
|
45
45
|
flex
|
|
46
46
|
justify-center
|
|
47
47
|
items-center
|
|
48
|
-
`,onClick:()=>t(!e),children:[!e&&L.jsx($a,{facet:n.agent.display[Ye.AgentDisplayFacetRoleType.LAUNCHER]}),e&&L.jsx(Sf,{className:"w-6 h-6",fill:"white"})]})},Ya=()=>{const e=vn(),t=e.formatMessage({defaultMessage:"Message the assistant...",id:"chatbot.placeholder.content"}),n=e.formatMessage({defaultMessage:"You",id:"chatbot.chatline.label.user"}),r=e.formatMessage({defaultMessage:"Assistant",id:"chatbot.chatline.label.assistant"}),a=e.formatMessage({defaultMessage:"⏳ The chatbot is a little busy at the time. Please try again later.",id:"chatbot.error.api.429"}),i=e.formatMessage({defaultMessage:"Oops ! There has been an error. Please try again later.",id:"chatbot.error.api.500"}),u=e.formatMessage({defaultMessage:"Oups ! The discussion if full. Please start a new one.",id:"chatbot.error.api.409"});return{placeholderTranslation:t,chatlineLabelUserTranslation:n,chatlineLabelAssistantTranslation:r,tooManyRequestsTranslation:a,genericErrorTranslation:i,conflictErrorTranslation:u}},Df=({setDiscussionId:e,setConversation:t,companySettings:n})=>({resetDiscussion:()=>{e(null),t([{userType:"assistant",content:n?.agent?.text?.initialText}])}});function ki(e){const t=[],n=String(e||"");let r=n.indexOf(","),a=0,i=!1;for(;!i;){r===-1&&(r=n.length,i=!0);const u=n.slice(a,r).trim();(u||!i)&&t.push(u),a=r+1,r=n.indexOf(",",a)}return t}function Fs(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const kf=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,wf=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Mf={};function wi(e,t){return(Mf.jsx?wf:kf).test(e)}const Bf=/[ \t\n\f\r]/g;function Ff(e){return typeof e=="object"?e.type==="text"?Mi(e.value):!1:Mi(e)}function Mi(e){return e.replace(Bf,"")===""}class kn{constructor(t,n,r){this.property=t,this.normal=n,r&&(this.space=r)}}kn.prototype.property={};kn.prototype.normal={};kn.prototype.space=null;function Hs(e,t){const n={},r={};let a=-1;for(;++a<e.length;)Object.assign(n,e[a].property),Object.assign(r,e[a].normal);return new kn(n,r,t)}function Nn(e){return e.toLowerCase()}class tt{constructor(t,n){this.property=t,this.attribute=n}}tt.prototype.space=null;tt.prototype.boolean=!1;tt.prototype.booleanish=!1;tt.prototype.overloadedBoolean=!1;tt.prototype.number=!1;tt.prototype.commaSeparated=!1;tt.prototype.spaceSeparated=!1;tt.prototype.commaOrSpaceSeparated=!1;tt.prototype.mustUseProperty=!1;tt.prototype.defined=!1;let Hf=0;const oe=Ht(),Pe=Ht(),Us=Ht(),M=Ht(),xe=Ht(),Qt=Ht(),qe=Ht();function Ht(){return 2**++Hf}const ga=Object.freeze(Object.defineProperty({__proto__:null,boolean:oe,booleanish:Pe,commaOrSpaceSeparated:qe,commaSeparated:Qt,number:M,overloadedBoolean:Us,spaceSeparated:xe},Symbol.toStringTag,{value:"Module"})),Mr=Object.keys(ga);class Ga extends tt{constructor(t,n,r,a){let i=-1;if(super(t,n),Bi(this,"space",a),typeof r=="number")for(;++i<Mr.length;){const u=Mr[i];Bi(this,Mr[i],(r&ga[u])===ga[u])}}}Ga.prototype.defined=!0;function Bi(e,t,n){n&&(e[t]=n)}const Uf={}.hasOwnProperty;function rn(e){const t={},n={};let r;for(r in e.properties)if(Uf.call(e.properties,r)){const a=e.properties[r],i=new Ga(r,e.transform(e.attributes||{},r),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(i.mustUseProperty=!0),t[r]=i,n[Nn(r)]=r,n[Nn(i.attribute)]=r}return new kn(t,n,e.space)}const js=rn({space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),$s=rn({space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function Ys(e,t){return t in e?e[t]:t}function Gs(e,t){return Ys(e,t.toLowerCase())}const zs=rn({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:Gs,properties:{xmlns:null,xmlnsXLink:null}}),Vs=rn({transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:Pe,ariaAutoComplete:null,ariaBusy:Pe,ariaChecked:Pe,ariaColCount:M,ariaColIndex:M,ariaColSpan:M,ariaControls:xe,ariaCurrent:null,ariaDescribedBy:xe,ariaDetails:null,ariaDisabled:Pe,ariaDropEffect:xe,ariaErrorMessage:null,ariaExpanded:Pe,ariaFlowTo:xe,ariaGrabbed:Pe,ariaHasPopup:null,ariaHidden:Pe,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:xe,ariaLevel:M,ariaLive:null,ariaModal:Pe,ariaMultiLine:Pe,ariaMultiSelectable:Pe,ariaOrientation:null,ariaOwns:xe,ariaPlaceholder:null,ariaPosInSet:M,ariaPressed:Pe,ariaReadOnly:Pe,ariaRelevant:null,ariaRequired:Pe,ariaRoleDescription:xe,ariaRowCount:M,ariaRowIndex:M,ariaRowSpan:M,ariaSelected:Pe,ariaSetSize:M,ariaSort:null,ariaValueMax:M,ariaValueMin:M,ariaValueNow:M,ariaValueText:null,role:null}}),jf=rn({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:Gs,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Qt,acceptCharset:xe,accessKey:xe,action:null,allow:null,allowFullScreen:oe,allowPaymentRequest:oe,allowUserMedia:oe,alt:null,as:null,async:oe,autoCapitalize:null,autoComplete:xe,autoFocus:oe,autoPlay:oe,blocking:xe,capture:null,charSet:null,checked:oe,cite:null,className:xe,cols:M,colSpan:null,content:null,contentEditable:Pe,controls:oe,controlsList:xe,coords:M|Qt,crossOrigin:null,data:null,dateTime:null,decoding:null,default:oe,defer:oe,dir:null,dirName:null,disabled:oe,download:Us,draggable:Pe,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:oe,formTarget:null,headers:xe,height:M,hidden:oe,high:M,href:null,hrefLang:null,htmlFor:xe,httpEquiv:xe,id:null,imageSizes:null,imageSrcSet:null,inert:oe,inputMode:null,integrity:null,is:null,isMap:oe,itemId:null,itemProp:xe,itemRef:xe,itemScope:oe,itemType:xe,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:oe,low:M,manifest:null,max:null,maxLength:M,media:null,method:null,min:null,minLength:M,multiple:oe,muted:oe,name:null,nonce:null,noModule:oe,noValidate:oe,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:oe,optimum:M,pattern:null,ping:xe,placeholder:null,playsInline:oe,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:oe,referrerPolicy:null,rel:xe,required:oe,reversed:oe,rows:M,rowSpan:M,sandbox:xe,scope:null,scoped:oe,seamless:oe,selected:oe,shadowRootDelegatesFocus:oe,shadowRootMode:null,shape:null,size:M,sizes:null,slot:null,span:M,spellCheck:Pe,src:null,srcDoc:null,srcLang:null,srcSet:null,start:M,step:null,style:null,tabIndex:M,target:null,title:null,translate:null,type:null,typeMustMatch:oe,useMap:null,value:Pe,width:M,wrap:null,align:null,aLink:null,archive:xe,axis:null,background:null,bgColor:null,border:M,borderColor:null,bottomMargin:M,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:oe,declare:oe,event:null,face:null,frame:null,frameBorder:null,hSpace:M,leftMargin:M,link:null,longDesc:null,lowSrc:null,marginHeight:M,marginWidth:M,noResize:oe,noHref:oe,noShade:oe,noWrap:oe,object:null,profile:null,prompt:null,rev:null,rightMargin:M,rules:null,scheme:null,scrolling:Pe,standby:null,summary:null,text:null,topMargin:M,valueType:null,version:null,vAlign:null,vLink:null,vSpace:M,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:oe,disableRemotePlayback:oe,prefix:null,property:null,results:M,security:null,unselectable:null}}),$f=rn({space:"svg",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"},transform:Ys,properties:{about:qe,accentHeight:M,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:M,amplitude:M,arabicForm:null,ascent:M,attributeName:null,attributeType:null,azimuth:M,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:M,by:null,calcMode:null,capHeight:M,className:xe,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:M,diffuseConstant:M,direction:null,display:null,dur:null,divisor:M,dominantBaseline:null,download:oe,dx:null,dy:null,edgeMode:null,editable:null,elevation:M,enableBackground:null,end:null,event:null,exponent:M,externalResourcesRequired:null,fill:null,fillOpacity:M,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:Qt,g2:Qt,glyphName:Qt,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:M,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:M,horizOriginX:M,horizOriginY:M,id:null,ideographic:M,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:M,k:M,k1:M,k2:M,k3:M,k4:M,kernelMatrix:qe,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:M,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:M,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:M,overlineThickness:M,paintOrder:null,panose1:null,path:null,pathLength:M,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:xe,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:M,pointsAtY:M,pointsAtZ:M,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:qe,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:qe,rev:qe,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:qe,requiredFeatures:qe,requiredFonts:qe,requiredFormats:qe,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:M,specularExponent:M,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:M,strikethroughThickness:M,string:null,stroke:null,strokeDashArray:qe,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:M,strokeOpacity:M,strokeWidth:null,style:null,surfaceScale:M,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:qe,tabIndex:M,tableValues:null,target:null,targetX:M,targetY:M,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:qe,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:M,underlineThickness:M,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:M,values:null,vAlphabetic:M,vMathematical:M,vectorEffect:null,vHanging:M,vIdeographic:M,version:null,vertAdvY:M,vertOriginX:M,vertOriginY:M,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:M,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),Yf=/^data[-\w.:]+$/i,Fi=/-[a-z]/g,Gf=/[A-Z]/g;function Tr(e,t){const n=Nn(t);let r=t,a=tt;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&Yf.test(t)){if(t.charAt(4)==="-"){const i=t.slice(5).replace(Fi,Vf);r="data"+i.charAt(0).toUpperCase()+i.slice(1)}else{const i=t.slice(4);if(!Fi.test(i)){let u=i.replace(Gf,zf);u.charAt(0)!=="-"&&(u="-"+u),t="data"+u}}a=Ga}return new a(r,t)}function zf(e){return"-"+e.toLowerCase()}function Vf(e){return e.charAt(1).toUpperCase()}const qf={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"},wn=Hs([$s,js,zs,Vs,jf],"html"),xt=Hs([$s,js,zs,Vs,$f],"svg");function Hi(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function qs(e){return e.join(" ").trim()}var Yt={},Br,Ui;function Wf(){if(Ui)return Br;Ui=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,a=/^:\s*/,i=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,u=/^[;\s]*/,o=/^\s+|\s+$/g,l=`
|
|
49
|
-
`,c="/",f="*",d="",h="comment",m="declaration";Br=function(A,v){if(typeof A!="string")throw new TypeError("First argument must be a string");if(!A)return[];v=v||{};var x=1,P=1;function R($){var Y=$.match(t);Y&&(x+=Y.length);var Z=$.lastIndexOf(l);P=~Z?$.length-Z:P+$.length}function B(){var $={line:x,column:P};return function(Y){return Y.position=new C($),de(),Y}}function C($){this.start=$,this.end={line:x,column:P},this.source=v.source}C.prototype.content=A;function N($){var Y=new Error(v.source+":"+x+":"+P+": "+$);if(Y.reason=$,Y.filename=v.source,Y.line=x,Y.column=P,Y.source=A,!v.silent)throw Y}function Q($){var Y=$.exec(A);if(Y){var Z=Y[0];return R(Z),A=A.slice(Z.length),Y}}function de(){Q(n)}function re($){var Y;for($=$||[];Y=z();)Y!==!1&&$.push(Y);return $}function z(){var $=B();if(!(c!=A.charAt(0)||f!=A.charAt(1))){for(var Y=2;d!=A.charAt(Y)&&(f!=A.charAt(Y)||c!=A.charAt(Y+1));)++Y;if(Y+=2,d===A.charAt(Y-1))return N("End of comment missing");var Z=A.slice(2,Y-2);return P+=2,R(Z),A=A.slice(Y),P+=2,$({type:h,comment:Z})}}function j(){var $=B(),Y=Q(r);if(Y){if(z(),!Q(a))return N("property missing ':'");var Z=Q(i),he=$({type:m,property:y(Y[0].replace(e,d)),value:Z?y(Z[0].replace(e,d)):d});return Q(u),he}}function F(){var $=[];re($);for(var Y;Y=j();)Y!==!1&&($.push(Y),re($));return $}return de(),F()};function y(A){return A?A.replace(o,d):d}return Br}var ji;function Xf(){if(ji)return Yt;ji=1;var e=Yt&&Yt.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Yt,"__esModule",{value:!0});var t=e(Wf());function n(r,a){var i=null;if(!r||typeof r!="string")return i;var u=(0,t.default)(r),o=typeof a=="function";return u.forEach(function(l){if(l.type==="declaration"){var c=l.property,f=l.value;o?a(c,f,l):f&&(i=i||{},i[c]=f)}}),i}return Yt.default=n,Yt}var Qf=Xf();const $i=Ba(Qf),Kf=$i.default||$i,Ar=Ws("end"),dt=Ws("start");function Ws(e){return t;function t(n){const r=n&&n.position&&n.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 Zf(e){const t=dt(e),n=Ar(e);if(t&&n)return{start:t,end:n}}function Tn(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Yi(e.position):"start"in e||"end"in e?Yi(e):"line"in e||"column"in e?Ta(e):""}function Ta(e){return Gi(e&&e.line)+":"+Gi(e&&e.column)}function Yi(e){return Ta(e&&e.start)+"-"+Ta(e&&e.end)}function Gi(e){return e&&typeof e=="number"?e:1}class Be extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let a="",i={},u=!1;if(n&&("line"in n&&"column"in n?i={place:n}:"start"in n&&"end"in n?i={place:n}:"type"in n?i={ancestors:[n],place:n.position}:i={...n}),typeof t=="string"?a=t:!i.cause&&t&&(u=!0,a=t.message,i.cause=t),!i.ruleId&&!i.source&&typeof r=="string"){const l=r.indexOf(":");l===-1?i.ruleId=r:(i.source=r.slice(0,l),i.ruleId=r.slice(l+1))}if(!i.place&&i.ancestors&&i.ancestors){const l=i.ancestors[i.ancestors.length-1];l&&(i.place=l.position)}const o=i.place&&"start"in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file,this.message=a,this.line=o?o.line:void 0,this.name=Tn(i.place)||"1:1",this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=u&&i.cause&&typeof i.cause.stack=="string"?i.cause.stack:"",this.actual,this.expected,this.note,this.url}}Be.prototype.file="";Be.prototype.name="";Be.prototype.reason="";Be.prototype.message="";Be.prototype.stack="";Be.prototype.column=void 0;Be.prototype.line=void 0;Be.prototype.ancestors=void 0;Be.prototype.cause=void 0;Be.prototype.fatal=void 0;Be.prototype.place=void 0;Be.prototype.ruleId=void 0;Be.prototype.source=void 0;const za={}.hasOwnProperty,Jf=new Map,e0=/[A-Z]/g,t0=/-([a-z])/g,n0=new Set(["table","tbody","thead","tfoot","tr"]),r0=new Set(["td","th"]),Xs="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function a0(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=d0(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=f0(n,t.jsx,t.jsxs)}const a={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?xt:wn,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},i=Qs(a,e,void 0);return i&&typeof i!="string"?i:a.create(e,a.Fragment,{children:i||void 0},void 0)}function Qs(e,t,n){if(t.type==="element")return i0(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return u0(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return o0(e,t,n);if(t.type==="mdxjsEsm")return s0(e,t);if(t.type==="root")return l0(e,t,n);if(t.type==="text")return c0(e,t)}function i0(e,t,n){const r=e.schema;let a=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(a=xt,e.schema=a),e.ancestors.push(t);const i=Zs(e,t.tagName,!1),u=h0(e,t);let o=qa(e,t);return n0.has(t.tagName)&&(o=o.filter(function(l){return typeof l=="string"?!Ff(l):!0})),Ks(e,u,i,t),Va(u,o),e.ancestors.pop(),e.schema=r,e.create(t,i,u,n)}function u0(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}On(e,t.position)}function s0(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);On(e,t.position)}function o0(e,t,n){const r=e.schema;let a=r;t.name==="svg"&&r.space==="html"&&(a=xt,e.schema=a),e.ancestors.push(t);const i=t.name===null?e.Fragment:Zs(e,t.name,!0),u=m0(e,t),o=qa(e,t);return Ks(e,u,i,t),Va(u,o),e.ancestors.pop(),e.schema=r,e.create(t,i,u,n)}function l0(e,t,n){const r={};return Va(r,qa(e,t)),e.create(t,e.Fragment,r,n)}function c0(e,t){return t.value}function Ks(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function Va(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function f0(e,t,n){return r;function r(a,i,u,o){const c=Array.isArray(u.children)?n:t;return o?c(i,u,o):c(i,u)}}function d0(e,t){return n;function n(r,a,i,u){const o=Array.isArray(i.children),l=dt(r);return t(a,i,u,o,{columnNumber:l?l.column-1:void 0,fileName:e,lineNumber:l?l.line:void 0},void 0)}}function h0(e,t){const n={};let r,a;for(a in t.properties)if(a!=="children"&&za.call(t.properties,a)){const i=p0(e,a,t.properties[a]);if(i){const[u,o]=i;e.tableCellAlignToStyle&&u==="align"&&typeof o=="string"&&r0.has(t.tagName)?r=o:n[u]=o}}if(r){const i=n.style||(n.style={});i[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function m0(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const i=r.data.estree.body[0];i.type;const u=i.expression;u.type;const o=u.properties[0];o.type,Object.assign(n,e.evaluater.evaluateExpression(o.argument))}else On(e,t.position);else{const a=r.name;let i;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const o=r.value.data.estree.body[0];o.type,i=e.evaluater.evaluateExpression(o.expression)}else On(e,t.position);else i=r.value===null?!0:r.value;n[a]=i}return n}function qa(e,t){const n=[];let r=-1;const a=e.passKeys?new Map:Jf;for(;++r<t.children.length;){const i=t.children[r];let u;if(e.passKeys){const l=i.type==="element"?i.tagName:i.type==="mdxJsxFlowElement"||i.type==="mdxJsxTextElement"?i.name:void 0;if(l){const c=a.get(l)||0;u=l+"-"+c,a.set(l,c+1)}}const o=Qs(e,i,u);o!==void 0&&n.push(o)}return n}function p0(e,t,n){const r=Tr(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?Fs(n):qs(n)),r.property==="style"){let a=typeof n=="object"?n:E0(e,String(n));return e.stylePropertyNameCase==="css"&&(a=b0(a)),["style",a]}return[e.elementAttributeNameCase==="react"&&r.space?qf[r.property]||r.property:r.attribute,n]}}function E0(e,t){const n={};try{Kf(t,r)}catch(a){if(!e.ignoreInvalidStyle){const i=a,u=new Be("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:i,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw u.file=e.filePath||void 0,u.url=Xs+"#cannot-parse-style-attribute",u}}return n;function r(a,i){let u=a;u.slice(0,2)!=="--"&&(u.slice(0,4)==="-ms-"&&(u="ms-"+u.slice(4)),u=u.replace(t0,T0)),n[u]=i}}function Zs(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const a=t.split(".");let i=-1,u;for(;++i<a.length;){const o=wi(a[i])?{type:"Identifier",name:a[i]}:{type:"Literal",value:a[i]};u=u?{type:"MemberExpression",object:u,property:o,computed:!!(i&&o.type==="Literal"),optional:!1}:o}r=u}else r=wi(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const a=r.value;return za.call(e.components,a)?e.components[a]:a}if(e.evaluater)return e.evaluater.evaluateExpression(r);On(e)}function On(e,t){const n=new Be("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=Xs+"#cannot-handle-mdx-estrees-without-createevaluater",n}function b0(e){const t={};let n;for(n in e)za.call(e,n)&&(t[g0(n)]=e[n]);return t}function g0(e){let t=e.replace(e0,A0);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function T0(e,t){return t.toUpperCase()}function A0(e){return"-"+e.toLowerCase()}const Fr={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"]},_0={};function y0(e,t){const n=_0,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,a=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return Js(e,r,a)}function Js(e,t,n){if(x0(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return zi(e.children,t,n)}return Array.isArray(e)?zi(e,t,n):""}function zi(e,t,n){const r=[];let a=-1;for(;++a<e.length;)r[a]=Js(e[a],t,n);return r.join("")}function x0(e){return!!(e&&typeof e=="object")}const Vi=document.createElement("i");function Wa(e){const t="&"+e+";";Vi.innerHTML=t;const n=Vi.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function ft(e,t,n,r){const a=e.length;let i=0,u;if(t<0?t=-t>a?0:a+t:t=t>a?a:t,n=n>0?n:0,r.length<1e4)u=Array.from(r),u.unshift(t,n),e.splice(...u);else for(n&&e.splice(t,n);i<r.length;)u=r.slice(i,i+1e4),u.unshift(t,0),e.splice(...u),i+=1e4,t+=1e4}function Qe(e,t){return e.length>0?(ft(e,e.length,0,t),e):t}const qi={}.hasOwnProperty;function S0(e){const t={};let n=-1;for(;++n<e.length;)C0(t,e[n]);return t}function C0(e,t){let n;for(n in t){const a=(qi.call(e,n)?e[n]:void 0)||(e[n]={}),i=t[n];let u;if(i)for(u in i){qi.call(a,u)||(a[u]=[]);const o=i[u];I0(a[u],Array.isArray(o)?o:o?[o]:[])}}}function I0(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);ft(e,0,0,r)}function eo(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function Kt(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const lt=St(/[A-Za-z]/),We=St(/[\dA-Za-z]/),N0=St(/[#-'*+\--9=?A-Z^-~]/);function Aa(e){return e!==null&&(e<32||e===127)}const _a=St(/\d/),O0=St(/[\dA-Fa-f]/),L0=St(/[!-/:-@[-`{-~]/);function ne(e){return e!==null&&e<-2}function Ge(e){return e!==null&&(e<0||e===32)}function be(e){return e===-2||e===-1||e===32}const R0=St(new RegExp("\\p{P}|\\p{S}","u")),v0=St(/\s/);function St(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function an(e){const t=[];let n=-1,r=0,a=0;for(;++n<e.length;){const i=e.charCodeAt(n);let u="";if(i===37&&We(e.charCodeAt(n+1))&&We(e.charCodeAt(n+2)))a=2;else if(i<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(i))||(u=String.fromCharCode(i));else if(i>55295&&i<57344){const o=e.charCodeAt(n+1);i<56320&&o>56319&&o<57344?(u=String.fromCharCode(i,o),a=1):u="�"}else u=String.fromCharCode(i);u&&(t.push(e.slice(r,n),encodeURIComponent(u)),r=n+a+1,u=""),a&&(n+=a,a=0)}return t.join("")+e.slice(r)}function Se(e,t,n,r){const a=r?r-1:Number.POSITIVE_INFINITY;let i=0;return u;function u(l){return be(l)?(e.enter(n),o(l)):t(l)}function o(l){return be(l)&&i++<a?(e.consume(l),o):(e.exit(n),t(l))}}const P0={tokenize:D0};function D0(e){const t=e.attempt(this.parser.constructs.contentInitial,r,a);let n;return t;function r(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),Se(e,t,"linePrefix")}function a(o){return e.enter("paragraph"),i(o)}function i(o){const l=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=l),n=l,u(o)}function u(o){if(o===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(o);return}return ne(o)?(e.consume(o),e.exit("chunkText"),i):(e.consume(o),u)}}const k0={tokenize:w0},Wi={tokenize:M0};function w0(e){const t=this,n=[];let r=0,a,i,u;return o;function o(R){if(r<n.length){const B=n[r];return t.containerState=B[1],e.attempt(B[0].continuation,l,c)(R)}return c(R)}function l(R){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,a&&P();const B=t.events.length;let C=B,N;for(;C--;)if(t.events[C][0]==="exit"&&t.events[C][1].type==="chunkFlow"){N=t.events[C][1].end;break}x(r);let Q=B;for(;Q<t.events.length;)t.events[Q][1].end=Object.assign({},N),Q++;return ft(t.events,C+1,0,t.events.slice(B)),t.events.length=Q,c(R)}return o(R)}function c(R){if(r===n.length){if(!a)return h(R);if(a.currentConstruct&&a.currentConstruct.concrete)return y(R);t.interrupt=!!(a.currentConstruct&&!a._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Wi,f,d)(R)}function f(R){return a&&P(),x(r),h(R)}function d(R){return t.parser.lazy[t.now().line]=r!==n.length,u=t.now().offset,y(R)}function h(R){return t.containerState={},e.attempt(Wi,m,y)(R)}function m(R){return r++,n.push([t.currentConstruct,t.containerState]),h(R)}function y(R){if(R===null){a&&P(),x(0),e.consume(R);return}return a=a||t.parser.flow(t.now()),e.enter("chunkFlow",{contentType:"flow",previous:i,_tokenizer:a}),A(R)}function A(R){if(R===null){v(e.exit("chunkFlow"),!0),x(0),e.consume(R);return}return ne(R)?(e.consume(R),v(e.exit("chunkFlow")),r=0,t.interrupt=void 0,o):(e.consume(R),A)}function v(R,B){const C=t.sliceStream(R);if(B&&C.push(null),R.previous=i,i&&(i.next=R),i=R,a.defineSkip(R.start),a.write(C),t.parser.lazy[R.start.line]){let N=a.events.length;for(;N--;)if(a.events[N][1].start.offset<u&&(!a.events[N][1].end||a.events[N][1].end.offset>u))return;const Q=t.events.length;let de=Q,re,z;for(;de--;)if(t.events[de][0]==="exit"&&t.events[de][1].type==="chunkFlow"){if(re){z=t.events[de][1].end;break}re=!0}for(x(r),N=Q;N<t.events.length;)t.events[N][1].end=Object.assign({},z),N++;ft(t.events,de+1,0,t.events.slice(Q)),t.events.length=N}}function x(R){let B=n.length;for(;B-- >R;){const C=n[B];t.containerState=C[1],C[0].exit.call(t,e)}n.length=R}function P(){a.write([null]),i=void 0,a=void 0,t.containerState._closeFlow=void 0}}function M0(e,t,n){return Se(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Xi(e){if(e===null||Ge(e)||v0(e))return 1;if(R0(e))return 2}function Xa(e,t,n){const r=[];let a=-1;for(;++a<e.length;){const i=e[a].resolveAll;i&&!r.includes(i)&&(t=i(t,n),r.push(i))}return t}const ya={name:"attention",tokenize:F0,resolveAll:B0};function B0(e,t){let n=-1,r,a,i,u,o,l,c,f;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;l=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const d=Object.assign({},e[r][1].end),h=Object.assign({},e[n][1].start);Qi(d,-l),Qi(h,l),u={type:l>1?"strongSequence":"emphasisSequence",start:d,end:Object.assign({},e[r][1].end)},o={type:l>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[n][1].start),end:h},i={type:l>1?"strongText":"emphasisText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},a={type:l>1?"strong":"emphasis",start:Object.assign({},u.start),end:Object.assign({},o.end)},e[r][1].end=Object.assign({},u.start),e[n][1].start=Object.assign({},o.end),c=[],e[r][1].end.offset-e[r][1].start.offset&&(c=Qe(c,[["enter",e[r][1],t],["exit",e[r][1],t]])),c=Qe(c,[["enter",a,t],["enter",u,t],["exit",u,t],["enter",i,t]]),c=Qe(c,Xa(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),c=Qe(c,[["exit",i,t],["enter",o,t],["exit",o,t],["exit",a,t]]),e[n][1].end.offset-e[n][1].start.offset?(f=2,c=Qe(c,[["enter",e[n][1],t],["exit",e[n][1],t]])):f=0,ft(e,r-1,n-r+3,c),n=r+c.length-f-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function F0(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,a=Xi(r);let i;return u;function u(l){return i=l,e.enter("attentionSequence"),o(l)}function o(l){if(l===i)return e.consume(l),o;const c=e.exit("attentionSequence"),f=Xi(l),d=!f||f===2&&a||n.includes(l),h=!a||a===2&&f||n.includes(r);return c._open=!!(i===42?d:d&&(a||!h)),c._close=!!(i===42?h:h&&(f||!d)),t(l)}}function Qi(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const H0={name:"autolink",tokenize:U0};function U0(e,t,n){let r=0;return a;function a(m){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(m),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),i}function i(m){return lt(m)?(e.consume(m),u):c(m)}function u(m){return m===43||m===45||m===46||We(m)?(r=1,o(m)):c(m)}function o(m){return m===58?(e.consume(m),r=0,l):(m===43||m===45||m===46||We(m))&&r++<32?(e.consume(m),o):(r=0,c(m))}function l(m){return m===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(m),e.exit("autolinkMarker"),e.exit("autolink"),t):m===null||m===32||m===60||Aa(m)?n(m):(e.consume(m),l)}function c(m){return m===64?(e.consume(m),f):N0(m)?(e.consume(m),c):n(m)}function f(m){return We(m)?d(m):n(m)}function d(m){return m===46?(e.consume(m),r=0,f):m===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(m),e.exit("autolinkMarker"),e.exit("autolink"),t):h(m)}function h(m){if((m===45||We(m))&&r++<63){const y=m===45?h:d;return e.consume(m),y}return n(m)}}const _r={tokenize:j0,partial:!0};function j0(e,t,n){return r;function r(i){return be(i)?Se(e,a,"linePrefix")(i):a(i)}function a(i){return i===null||ne(i)?t(i):n(i)}}const to={name:"blockQuote",tokenize:$0,continuation:{tokenize:Y0},exit:G0};function $0(e,t,n){const r=this;return a;function a(u){if(u===62){const o=r.containerState;return o.open||(e.enter("blockQuote",{_container:!0}),o.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(u),e.exit("blockQuoteMarker"),i}return n(u)}function i(u){return be(u)?(e.enter("blockQuotePrefixWhitespace"),e.consume(u),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(u))}}function Y0(e,t,n){const r=this;return a;function a(u){return be(u)?Se(e,i,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(u):i(u)}function i(u){return e.attempt(to,t,n)(u)}}function G0(e){e.exit("blockQuote")}const no={name:"characterEscape",tokenize:z0};function z0(e,t,n){return r;function r(i){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(i),e.exit("escapeMarker"),a}function a(i){return L0(i)?(e.enter("characterEscapeValue"),e.consume(i),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(i)}}const ro={name:"characterReference",tokenize:V0};function V0(e,t,n){const r=this;let a=0,i,u;return o;function o(d){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),l}function l(d){return d===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(d),e.exit("characterReferenceMarkerNumeric"),c):(e.enter("characterReferenceValue"),i=31,u=We,f(d))}function c(d){return d===88||d===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(d),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),i=6,u=O0,f):(e.enter("characterReferenceValue"),i=7,u=_a,f(d))}function f(d){if(d===59&&a){const h=e.exit("characterReferenceValue");return u===We&&!Wa(r.sliceSerialize(h))?n(d):(e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return u(d)&&a++<i?(e.consume(d),f):n(d)}}const Ki={tokenize:W0,partial:!0},Zi={name:"codeFenced",tokenize:q0,concrete:!0};function q0(e,t,n){const r=this,a={tokenize:C,partial:!0};let i=0,u=0,o;return l;function l(N){return c(N)}function c(N){const Q=r.events[r.events.length-1];return i=Q&&Q[1].type==="linePrefix"?Q[2].sliceSerialize(Q[1],!0).length:0,o=N,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),f(N)}function f(N){return N===o?(u++,e.consume(N),f):u<3?n(N):(e.exit("codeFencedFenceSequence"),be(N)?Se(e,d,"whitespace")(N):d(N))}function d(N){return N===null||ne(N)?(e.exit("codeFencedFence"),r.interrupt?t(N):e.check(Ki,A,B)(N)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),h(N))}function h(N){return N===null||ne(N)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),d(N)):be(N)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Se(e,m,"whitespace")(N)):N===96&&N===o?n(N):(e.consume(N),h)}function m(N){return N===null||ne(N)?d(N):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),y(N))}function y(N){return N===null||ne(N)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),d(N)):N===96&&N===o?n(N):(e.consume(N),y)}function A(N){return e.attempt(a,B,v)(N)}function v(N){return e.enter("lineEnding"),e.consume(N),e.exit("lineEnding"),x}function x(N){return i>0&&be(N)?Se(e,P,"linePrefix",i+1)(N):P(N)}function P(N){return N===null||ne(N)?e.check(Ki,A,B)(N):(e.enter("codeFlowValue"),R(N))}function R(N){return N===null||ne(N)?(e.exit("codeFlowValue"),P(N)):(e.consume(N),R)}function B(N){return e.exit("codeFenced"),t(N)}function C(N,Q,de){let re=0;return z;function z(Z){return N.enter("lineEnding"),N.consume(Z),N.exit("lineEnding"),j}function j(Z){return N.enter("codeFencedFence"),be(Z)?Se(N,F,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(Z):F(Z)}function F(Z){return Z===o?(N.enter("codeFencedFenceSequence"),$(Z)):de(Z)}function $(Z){return Z===o?(re++,N.consume(Z),$):re>=u?(N.exit("codeFencedFenceSequence"),be(Z)?Se(N,Y,"whitespace")(Z):Y(Z)):de(Z)}function Y(Z){return Z===null||ne(Z)?(N.exit("codeFencedFence"),Q(Z)):de(Z)}}}function W0(e,t,n){const r=this;return a;function a(u){return u===null?n(u):(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),i)}function i(u){return r.parser.lazy[r.now().line]?n(u):t(u)}}const Hr={name:"codeIndented",tokenize:Q0},X0={tokenize:K0,partial:!0};function Q0(e,t,n){const r=this;return a;function a(c){return e.enter("codeIndented"),Se(e,i,"linePrefix",5)(c)}function i(c){const f=r.events[r.events.length-1];return f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?u(c):n(c)}function u(c){return c===null?l(c):ne(c)?e.attempt(X0,u,l)(c):(e.enter("codeFlowValue"),o(c))}function o(c){return c===null||ne(c)?(e.exit("codeFlowValue"),u(c)):(e.consume(c),o)}function l(c){return e.exit("codeIndented"),t(c)}}function K0(e,t,n){const r=this;return a;function a(u){return r.parser.lazy[r.now().line]?n(u):ne(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),a):Se(e,i,"linePrefix",5)(u)}function i(u){const o=r.events[r.events.length-1];return o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?t(u):ne(u)?a(u):n(u)}}const Z0={name:"codeText",tokenize:td,resolve:J0,previous:ed};function J0(e){let t=e.length-4,n=3,r,a;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)a===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(a=r):(r===t||e[r][1].type==="lineEnding")&&(e[a][1].type="codeTextData",r!==a+2&&(e[a][1].end=e[r-1][1].end,e.splice(a+2,r-a-2),t-=r-a-2,r=a+2),a=void 0);return e}function ed(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function td(e,t,n){let r=0,a,i;return u;function u(d){return e.enter("codeText"),e.enter("codeTextSequence"),o(d)}function o(d){return d===96?(e.consume(d),r++,o):(e.exit("codeTextSequence"),l(d))}function l(d){return d===null?n(d):d===32?(e.enter("space"),e.consume(d),e.exit("space"),l):d===96?(i=e.enter("codeTextSequence"),a=0,f(d)):ne(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),l):(e.enter("codeTextData"),c(d))}function c(d){return d===null||d===32||d===96||ne(d)?(e.exit("codeTextData"),l(d)):(e.consume(d),c)}function f(d){return d===96?(e.consume(d),a++,f):a===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(d)):(i.type="codeTextData",c(d))}}function ao(e){const t={};let n=-1,r,a,i,u,o,l,c;for(;++n<e.length;){for(;n in t;)n=t[n];if(r=e[n],n&&r[1].type==="chunkFlow"&&e[n-1][1].type==="listItemPrefix"&&(l=r[1]._tokenizer.events,i=0,i<l.length&&l[i][1].type==="lineEndingBlank"&&(i+=2),i<l.length&&l[i][1].type==="content"))for(;++i<l.length&&l[i][1].type!=="content";)l[i][1].type==="chunkText"&&(l[i][1]._isInFirstContentOfListItem=!0,i++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,nd(e,n)),n=t[n],c=!0);else if(r[1]._container){for(i=n,a=void 0;i--&&(u=e[i],u[1].type==="lineEnding"||u[1].type==="lineEndingBlank");)u[0]==="enter"&&(a&&(e[a][1].type="lineEndingBlank"),u[1].type="lineEnding",a=i);a&&(r[1].end=Object.assign({},e[a][1].start),o=e.slice(a,n),o.unshift(r),ft(e,a,n-a+1,o))}}return!c}function nd(e,t){const n=e[t][1],r=e[t][2];let a=t-1;const i=[],u=n._tokenizer||r.parser[n.contentType](n.start),o=u.events,l=[],c={};let f,d,h=-1,m=n,y=0,A=0;const v=[A];for(;m;){for(;e[++a][1]!==m;);i.push(a),m._tokenizer||(f=r.sliceStream(m),m.next||f.push(null),d&&u.defineSkip(m.start),m._isInFirstContentOfListItem&&(u._gfmTasklistFirstContentOfListItem=!0),u.write(f),m._isInFirstContentOfListItem&&(u._gfmTasklistFirstContentOfListItem=void 0)),d=m,m=m.next}for(m=n;++h<o.length;)o[h][0]==="exit"&&o[h-1][0]==="enter"&&o[h][1].type===o[h-1][1].type&&o[h][1].start.line!==o[h][1].end.line&&(A=h+1,v.push(A),m._tokenizer=void 0,m.previous=void 0,m=m.next);for(u.events=[],m?(m._tokenizer=void 0,m.previous=void 0):v.pop(),h=v.length;h--;){const x=o.slice(v[h],v[h+1]),P=i.pop();l.unshift([P,P+x.length-1]),ft(e,P,2,x)}for(h=-1;++h<l.length;)c[y+l[h][0]]=y+l[h][1],y+=l[h][1]-l[h][0]-1;return c}const rd={tokenize:ud,resolve:id},ad={tokenize:sd,partial:!0};function id(e){return ao(e),e}function ud(e,t){let n;return r;function r(o){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),a(o)}function a(o){return o===null?i(o):ne(o)?e.check(ad,u,i)(o):(e.consume(o),a)}function i(o){return e.exit("chunkContent"),e.exit("content"),t(o)}function u(o){return e.consume(o),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,a}}function sd(e,t,n){const r=this;return a;function a(u){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),Se(e,i,"linePrefix")}function i(u){if(u===null||ne(u))return n(u);const o=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?t(u):e.interrupt(r.parser.constructs.flow,n,t)(u)}}function io(e,t,n,r,a,i,u,o,l){const c=l||Number.POSITIVE_INFINITY;let f=0;return d;function d(x){return x===60?(e.enter(r),e.enter(a),e.enter(i),e.consume(x),e.exit(i),h):x===null||x===32||x===41||Aa(x)?n(x):(e.enter(r),e.enter(u),e.enter(o),e.enter("chunkString",{contentType:"string"}),A(x))}function h(x){return x===62?(e.enter(i),e.consume(x),e.exit(i),e.exit(a),e.exit(r),t):(e.enter(o),e.enter("chunkString",{contentType:"string"}),m(x))}function m(x){return x===62?(e.exit("chunkString"),e.exit(o),h(x)):x===null||x===60||ne(x)?n(x):(e.consume(x),x===92?y:m)}function y(x){return x===60||x===62||x===92?(e.consume(x),m):m(x)}function A(x){return!f&&(x===null||x===41||Ge(x))?(e.exit("chunkString"),e.exit(o),e.exit(u),e.exit(r),t(x)):f<c&&x===40?(e.consume(x),f++,A):x===41?(e.consume(x),f--,A):x===null||x===32||x===40||Aa(x)?n(x):(e.consume(x),x===92?v:A)}function v(x){return x===40||x===41||x===92?(e.consume(x),A):A(x)}}function uo(e,t,n,r,a,i){const u=this;let o=0,l;return c;function c(m){return e.enter(r),e.enter(a),e.consume(m),e.exit(a),e.enter(i),f}function f(m){return o>999||m===null||m===91||m===93&&!l||m===94&&!o&&"_hiddenFootnoteSupport"in u.parser.constructs?n(m):m===93?(e.exit(i),e.enter(a),e.consume(m),e.exit(a),e.exit(r),t):ne(m)?(e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),f):(e.enter("chunkString",{contentType:"string"}),d(m))}function d(m){return m===null||m===91||m===93||ne(m)||o++>999?(e.exit("chunkString"),f(m)):(e.consume(m),l||(l=!be(m)),m===92?h:d)}function h(m){return m===91||m===92||m===93?(e.consume(m),o++,d):d(m)}}function so(e,t,n,r,a,i){let u;return o;function o(h){return h===34||h===39||h===40?(e.enter(r),e.enter(a),e.consume(h),e.exit(a),u=h===40?41:h,l):n(h)}function l(h){return h===u?(e.enter(a),e.consume(h),e.exit(a),e.exit(r),t):(e.enter(i),c(h))}function c(h){return h===u?(e.exit(i),l(u)):h===null?n(h):ne(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),Se(e,c,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),f(h))}function f(h){return h===u||h===null||ne(h)?(e.exit("chunkString"),c(h)):(e.consume(h),h===92?d:f)}function d(h){return h===u||h===92?(e.consume(h),f):f(h)}}function An(e,t){let n;return r;function r(a){return ne(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),n=!0,r):be(a)?Se(e,r,n?"linePrefix":"lineSuffix")(a):t(a)}}const od={name:"definition",tokenize:cd},ld={tokenize:fd,partial:!0};function cd(e,t,n){const r=this;let a;return i;function i(m){return e.enter("definition"),u(m)}function u(m){return uo.call(r,e,o,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(m)}function o(m){return a=Kt(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),m===58?(e.enter("definitionMarker"),e.consume(m),e.exit("definitionMarker"),l):n(m)}function l(m){return Ge(m)?An(e,c)(m):c(m)}function c(m){return io(e,f,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(m)}function f(m){return e.attempt(ld,d,d)(m)}function d(m){return be(m)?Se(e,h,"whitespace")(m):h(m)}function h(m){return m===null||ne(m)?(e.exit("definition"),r.parser.defined.push(a),t(m)):n(m)}}function fd(e,t,n){return r;function r(o){return Ge(o)?An(e,a)(o):n(o)}function a(o){return so(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(o)}function i(o){return be(o)?Se(e,u,"whitespace")(o):u(o)}function u(o){return o===null||ne(o)?t(o):n(o)}}const dd={name:"hardBreakEscape",tokenize:hd};function hd(e,t,n){return r;function r(i){return e.enter("hardBreakEscape"),e.consume(i),a}function a(i){return ne(i)?(e.exit("hardBreakEscape"),t(i)):n(i)}}const md={name:"headingAtx",tokenize:Ed,resolve:pd};function pd(e,t){let n=e.length-2,r=3,a,i;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(a={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},i={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},ft(e,r,n-r+1,[["enter",a,t],["enter",i,t],["exit",i,t],["exit",a,t]])),e}function Ed(e,t,n){let r=0;return a;function a(f){return e.enter("atxHeading"),i(f)}function i(f){return e.enter("atxHeadingSequence"),u(f)}function u(f){return f===35&&r++<6?(e.consume(f),u):f===null||Ge(f)?(e.exit("atxHeadingSequence"),o(f)):n(f)}function o(f){return f===35?(e.enter("atxHeadingSequence"),l(f)):f===null||ne(f)?(e.exit("atxHeading"),t(f)):be(f)?Se(e,o,"whitespace")(f):(e.enter("atxHeadingText"),c(f))}function l(f){return f===35?(e.consume(f),l):(e.exit("atxHeadingSequence"),o(f))}function c(f){return f===null||f===35||Ge(f)?(e.exit("atxHeadingText"),o(f)):(e.consume(f),c)}}const bd=["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"],Ji=["pre","script","style","textarea"],gd={name:"htmlFlow",tokenize:yd,resolveTo:_d,concrete:!0},Td={tokenize:Sd,partial:!0},Ad={tokenize:xd,partial:!0};function _d(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function yd(e,t,n){const r=this;let a,i,u,o,l;return c;function c(g){return f(g)}function f(g){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(g),d}function d(g){return g===33?(e.consume(g),h):g===47?(e.consume(g),i=!0,A):g===63?(e.consume(g),a=3,r.interrupt?t:p):lt(g)?(e.consume(g),u=String.fromCharCode(g),v):n(g)}function h(g){return g===45?(e.consume(g),a=2,m):g===91?(e.consume(g),a=5,o=0,y):lt(g)?(e.consume(g),a=4,r.interrupt?t:p):n(g)}function m(g){return g===45?(e.consume(g),r.interrupt?t:p):n(g)}function y(g){const W="CDATA[";return g===W.charCodeAt(o++)?(e.consume(g),o===W.length?r.interrupt?t:F:y):n(g)}function A(g){return lt(g)?(e.consume(g),u=String.fromCharCode(g),v):n(g)}function v(g){if(g===null||g===47||g===62||Ge(g)){const W=g===47,K=u.toLowerCase();return!W&&!i&&Ji.includes(K)?(a=1,r.interrupt?t(g):F(g)):bd.includes(u.toLowerCase())?(a=6,W?(e.consume(g),x):r.interrupt?t(g):F(g)):(a=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(g):i?P(g):R(g))}return g===45||We(g)?(e.consume(g),u+=String.fromCharCode(g),v):n(g)}function x(g){return g===62?(e.consume(g),r.interrupt?t:F):n(g)}function P(g){return be(g)?(e.consume(g),P):z(g)}function R(g){return g===47?(e.consume(g),z):g===58||g===95||lt(g)?(e.consume(g),B):be(g)?(e.consume(g),R):z(g)}function B(g){return g===45||g===46||g===58||g===95||We(g)?(e.consume(g),B):C(g)}function C(g){return g===61?(e.consume(g),N):be(g)?(e.consume(g),C):R(g)}function N(g){return g===null||g===60||g===61||g===62||g===96?n(g):g===34||g===39?(e.consume(g),l=g,Q):be(g)?(e.consume(g),N):de(g)}function Q(g){return g===l?(e.consume(g),l=null,re):g===null||ne(g)?n(g):(e.consume(g),Q)}function de(g){return g===null||g===34||g===39||g===47||g===60||g===61||g===62||g===96||Ge(g)?C(g):(e.consume(g),de)}function re(g){return g===47||g===62||be(g)?R(g):n(g)}function z(g){return g===62?(e.consume(g),j):n(g)}function j(g){return g===null||ne(g)?F(g):be(g)?(e.consume(g),j):n(g)}function F(g){return g===45&&a===2?(e.consume(g),he):g===60&&a===1?(e.consume(g),se):g===62&&a===4?(e.consume(g),H):g===63&&a===3?(e.consume(g),p):g===93&&a===5?(e.consume(g),Le):ne(g)&&(a===6||a===7)?(e.exit("htmlFlowData"),e.check(Td,G,$)(g)):g===null||ne(g)?(e.exit("htmlFlowData"),$(g)):(e.consume(g),F)}function $(g){return e.check(Ad,Y,G)(g)}function Y(g){return e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),Z}function Z(g){return g===null||ne(g)?$(g):(e.enter("htmlFlowData"),F(g))}function he(g){return g===45?(e.consume(g),p):F(g)}function se(g){return g===47?(e.consume(g),u="",Ee):F(g)}function Ee(g){if(g===62){const W=u.toLowerCase();return Ji.includes(W)?(e.consume(g),H):F(g)}return lt(g)&&u.length<8?(e.consume(g),u+=String.fromCharCode(g),Ee):F(g)}function Le(g){return g===93?(e.consume(g),p):F(g)}function p(g){return g===62?(e.consume(g),H):g===45&&a===2?(e.consume(g),p):F(g)}function H(g){return g===null||ne(g)?(e.exit("htmlFlowData"),G(g)):(e.consume(g),H)}function G(g){return e.exit("htmlFlow"),t(g)}}function xd(e,t,n){const r=this;return a;function a(u){return ne(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),i):n(u)}function i(u){return r.parser.lazy[r.now().line]?n(u):t(u)}}function Sd(e,t,n){return r;function r(a){return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),e.attempt(_r,t,n)}}const Cd={name:"htmlText",tokenize:Id};function Id(e,t,n){const r=this;let a,i,u;return o;function o(p){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(p),l}function l(p){return p===33?(e.consume(p),c):p===47?(e.consume(p),C):p===63?(e.consume(p),R):lt(p)?(e.consume(p),de):n(p)}function c(p){return p===45?(e.consume(p),f):p===91?(e.consume(p),i=0,y):lt(p)?(e.consume(p),P):n(p)}function f(p){return p===45?(e.consume(p),m):n(p)}function d(p){return p===null?n(p):p===45?(e.consume(p),h):ne(p)?(u=d,se(p)):(e.consume(p),d)}function h(p){return p===45?(e.consume(p),m):d(p)}function m(p){return p===62?he(p):p===45?h(p):d(p)}function y(p){const H="CDATA[";return p===H.charCodeAt(i++)?(e.consume(p),i===H.length?A:y):n(p)}function A(p){return p===null?n(p):p===93?(e.consume(p),v):ne(p)?(u=A,se(p)):(e.consume(p),A)}function v(p){return p===93?(e.consume(p),x):A(p)}function x(p){return p===62?he(p):p===93?(e.consume(p),x):A(p)}function P(p){return p===null||p===62?he(p):ne(p)?(u=P,se(p)):(e.consume(p),P)}function R(p){return p===null?n(p):p===63?(e.consume(p),B):ne(p)?(u=R,se(p)):(e.consume(p),R)}function B(p){return p===62?he(p):R(p)}function C(p){return lt(p)?(e.consume(p),N):n(p)}function N(p){return p===45||We(p)?(e.consume(p),N):Q(p)}function Q(p){return ne(p)?(u=Q,se(p)):be(p)?(e.consume(p),Q):he(p)}function de(p){return p===45||We(p)?(e.consume(p),de):p===47||p===62||Ge(p)?re(p):n(p)}function re(p){return p===47?(e.consume(p),he):p===58||p===95||lt(p)?(e.consume(p),z):ne(p)?(u=re,se(p)):be(p)?(e.consume(p),re):he(p)}function z(p){return p===45||p===46||p===58||p===95||We(p)?(e.consume(p),z):j(p)}function j(p){return p===61?(e.consume(p),F):ne(p)?(u=j,se(p)):be(p)?(e.consume(p),j):re(p)}function F(p){return p===null||p===60||p===61||p===62||p===96?n(p):p===34||p===39?(e.consume(p),a=p,$):ne(p)?(u=F,se(p)):be(p)?(e.consume(p),F):(e.consume(p),Y)}function $(p){return p===a?(e.consume(p),a=void 0,Z):p===null?n(p):ne(p)?(u=$,se(p)):(e.consume(p),$)}function Y(p){return p===null||p===34||p===39||p===60||p===61||p===96?n(p):p===47||p===62||Ge(p)?re(p):(e.consume(p),Y)}function Z(p){return p===47||p===62||Ge(p)?re(p):n(p)}function he(p){return p===62?(e.consume(p),e.exit("htmlTextData"),e.exit("htmlText"),t):n(p)}function se(p){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),Ee}function Ee(p){return be(p)?Se(e,Le,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(p):Le(p)}function Le(p){return e.enter("htmlTextData"),u(p)}}const Qa={name:"labelEnd",tokenize:Pd,resolveTo:vd,resolveAll:Rd},Nd={tokenize:Dd},Od={tokenize:kd},Ld={tokenize:wd};function Rd(e){let t=-1;for(;++t<e.length;){const n=e[t][1];(n.type==="labelImage"||n.type==="labelLink"||n.type==="labelEnd")&&(e.splice(t+1,n.type==="labelImage"?4:2),n.type="data",t++)}return e}function vd(e,t){let n=e.length,r=0,a,i,u,o;for(;n--;)if(a=e[n][1],i){if(a.type==="link"||a.type==="labelLink"&&a._inactive)break;e[n][0]==="enter"&&a.type==="labelLink"&&(a._inactive=!0)}else if(u){if(e[n][0]==="enter"&&(a.type==="labelImage"||a.type==="labelLink")&&!a._balanced&&(i=n,a.type!=="labelLink")){r=2;break}}else a.type==="labelEnd"&&(u=n);const l={type:e[i][1].type==="labelLink"?"link":"image",start:Object.assign({},e[i][1].start),end:Object.assign({},e[e.length-1][1].end)},c={type:"label",start:Object.assign({},e[i][1].start),end:Object.assign({},e[u][1].end)},f={type:"labelText",start:Object.assign({},e[i+r+2][1].end),end:Object.assign({},e[u-2][1].start)};return o=[["enter",l,t],["enter",c,t]],o=Qe(o,e.slice(i+1,i+r+3)),o=Qe(o,[["enter",f,t]]),o=Qe(o,Xa(t.parser.constructs.insideSpan.null,e.slice(i+r+4,u-3),t)),o=Qe(o,[["exit",f,t],e[u-2],e[u-1],["exit",c,t]]),o=Qe(o,e.slice(u+1)),o=Qe(o,[["exit",l,t]]),ft(e,i,e.length,o),e}function Pd(e,t,n){const r=this;let a=r.events.length,i,u;for(;a--;)if((r.events[a][1].type==="labelImage"||r.events[a][1].type==="labelLink")&&!r.events[a][1]._balanced){i=r.events[a][1];break}return o;function o(h){return i?i._inactive?d(h):(u=r.parser.defined.includes(Kt(r.sliceSerialize({start:i.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(h),e.exit("labelMarker"),e.exit("labelEnd"),l):n(h)}function l(h){return h===40?e.attempt(Nd,f,u?f:d)(h):h===91?e.attempt(Od,f,u?c:d)(h):u?f(h):d(h)}function c(h){return e.attempt(Ld,f,d)(h)}function f(h){return t(h)}function d(h){return i._balanced=!0,n(h)}}function Dd(e,t,n){return r;function r(d){return e.enter("resource"),e.enter("resourceMarker"),e.consume(d),e.exit("resourceMarker"),a}function a(d){return Ge(d)?An(e,i)(d):i(d)}function i(d){return d===41?f(d):io(e,u,o,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(d)}function u(d){return Ge(d)?An(e,l)(d):f(d)}function o(d){return n(d)}function l(d){return d===34||d===39||d===40?so(e,c,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(d):f(d)}function c(d){return Ge(d)?An(e,f)(d):f(d)}function f(d){return d===41?(e.enter("resourceMarker"),e.consume(d),e.exit("resourceMarker"),e.exit("resource"),t):n(d)}}function kd(e,t,n){const r=this;return a;function a(o){return uo.call(r,e,i,u,"reference","referenceMarker","referenceString")(o)}function i(o){return r.parser.defined.includes(Kt(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(o):n(o)}function u(o){return n(o)}}function wd(e,t,n){return r;function r(i){return e.enter("reference"),e.enter("referenceMarker"),e.consume(i),e.exit("referenceMarker"),a}function a(i){return i===93?(e.enter("referenceMarker"),e.consume(i),e.exit("referenceMarker"),e.exit("reference"),t):n(i)}}const Md={name:"labelStartImage",tokenize:Bd,resolveAll:Qa.resolveAll};function Bd(e,t,n){const r=this;return a;function a(o){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(o),e.exit("labelImageMarker"),i}function i(o){return o===91?(e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelImage"),u):n(o)}function u(o){return o===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(o):t(o)}}const Fd={name:"labelStartLink",tokenize:Hd,resolveAll:Qa.resolveAll};function Hd(e,t,n){const r=this;return a;function a(u){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(u),e.exit("labelMarker"),e.exit("labelLink"),i}function i(u){return u===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(u):t(u)}}const Ur={name:"lineEnding",tokenize:Ud};function Ud(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),Se(e,t,"linePrefix")}}const Jn={name:"thematicBreak",tokenize:jd};function jd(e,t,n){let r=0,a;return i;function i(c){return e.enter("thematicBreak"),u(c)}function u(c){return a=c,o(c)}function o(c){return c===a?(e.enter("thematicBreakSequence"),l(c)):r>=3&&(c===null||ne(c))?(e.exit("thematicBreak"),t(c)):n(c)}function l(c){return c===a?(e.consume(c),r++,l):(e.exit("thematicBreakSequence"),be(c)?Se(e,o,"whitespace")(c):o(c))}}const $e={name:"list",tokenize:Gd,continuation:{tokenize:zd},exit:qd},$d={tokenize:Wd,partial:!0},Yd={tokenize:Vd,partial:!0};function Gd(e,t,n){const r=this,a=r.events[r.events.length-1];let i=a&&a[1].type==="linePrefix"?a[2].sliceSerialize(a[1],!0).length:0,u=0;return o;function o(m){const y=r.containerState.type||(m===42||m===43||m===45?"listUnordered":"listOrdered");if(y==="listUnordered"?!r.containerState.marker||m===r.containerState.marker:_a(m)){if(r.containerState.type||(r.containerState.type=y,e.enter(y,{_container:!0})),y==="listUnordered")return e.enter("listItemPrefix"),m===42||m===45?e.check(Jn,n,c)(m):c(m);if(!r.interrupt||m===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(m)}return n(m)}function l(m){return _a(m)&&++u<10?(e.consume(m),l):(!r.interrupt||u<2)&&(r.containerState.marker?m===r.containerState.marker:m===41||m===46)?(e.exit("listItemValue"),c(m)):n(m)}function c(m){return e.enter("listItemMarker"),e.consume(m),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||m,e.check(_r,r.interrupt?n:f,e.attempt($d,h,d))}function f(m){return r.containerState.initialBlankLine=!0,i++,h(m)}function d(m){return be(m)?(e.enter("listItemPrefixWhitespace"),e.consume(m),e.exit("listItemPrefixWhitespace"),h):n(m)}function h(m){return r.containerState.size=i+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(m)}}function zd(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(_r,a,i);function a(o){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Se(e,t,"listItemIndent",r.containerState.size+1)(o)}function i(o){return r.containerState.furtherBlankLines||!be(o)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,u(o)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(Yd,t,u)(o))}function u(o){return r.containerState._closeFlow=!0,r.interrupt=void 0,Se(e,e.attempt($e,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}function Vd(e,t,n){const r=this;return Se(e,a,"listItemIndent",r.containerState.size+1);function a(i){const u=r.events[r.events.length-1];return u&&u[1].type==="listItemIndent"&&u[2].sliceSerialize(u[1],!0).length===r.containerState.size?t(i):n(i)}}function qd(e){e.exit(this.containerState.type)}function Wd(e,t,n){const r=this;return Se(e,a,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function a(i){const u=r.events[r.events.length-1];return!be(i)&&u&&u[1].type==="listItemPrefixWhitespace"?t(i):n(i)}}const eu={name:"setextUnderline",tokenize:Qd,resolveTo:Xd};function Xd(e,t){let n=e.length,r,a,i;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(a=n)}else e[n][1].type==="content"&&e.splice(n,1),!i&&e[n][1].type==="definition"&&(i=n);const u={type:"setextHeading",start:Object.assign({},e[a][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[a][1].type="setextHeadingText",i?(e.splice(a,0,["enter",u,t]),e.splice(i+1,0,["exit",e[r][1],t]),e[r][1].end=Object.assign({},e[i][1].end)):e[r][1]=u,e.push(["exit",u,t]),e}function Qd(e,t,n){const r=this;let a;return i;function i(c){let f=r.events.length,d;for(;f--;)if(r.events[f][1].type!=="lineEnding"&&r.events[f][1].type!=="linePrefix"&&r.events[f][1].type!=="content"){d=r.events[f][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||d)?(e.enter("setextHeadingLine"),a=c,u(c)):n(c)}function u(c){return e.enter("setextHeadingLineSequence"),o(c)}function o(c){return c===a?(e.consume(c),o):(e.exit("setextHeadingLineSequence"),be(c)?Se(e,l,"lineSuffix")(c):l(c))}function l(c){return c===null||ne(c)?(e.exit("setextHeadingLine"),t(c)):n(c)}}const Kd={tokenize:Zd};function Zd(e){const t=this,n=e.attempt(_r,r,e.attempt(this.parser.constructs.flowInitial,a,Se(e,e.attempt(this.parser.constructs.flow,a,e.attempt(rd,a)),"linePrefix")));return n;function r(i){if(i===null){e.consume(i);return}return e.enter("lineEndingBlank"),e.consume(i),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function a(i){if(i===null){e.consume(i);return}return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const Jd={resolveAll:lo()},eh=oo("string"),th=oo("text");function oo(e){return{tokenize:t,resolveAll:lo(e==="text"?nh:void 0)};function t(n){const r=this,a=this.parser.constructs[e],i=n.attempt(a,u,o);return u;function u(f){return c(f)?i(f):o(f)}function o(f){if(f===null){n.consume(f);return}return n.enter("data"),n.consume(f),l}function l(f){return c(f)?(n.exit("data"),i(f)):(n.consume(f),l)}function c(f){if(f===null)return!0;const d=a[f];let h=-1;if(d)for(;++h<d.length;){const m=d[h];if(!m.previous||m.previous.call(r,r.previous))return!0}return!1}}}function lo(e){return t;function t(n,r){let a=-1,i;for(;++a<=n.length;)i===void 0?n[a]&&n[a][1].type==="data"&&(i=a,a++):(!n[a]||n[a][1].type!=="data")&&(a!==i+2&&(n[i][1].end=n[a-1][1].end,n.splice(i+2,a-i-2),a=i+2),i=void 0);return e?e(n,r):n}}function nh(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const r=e[n-1][1],a=t.sliceStream(r);let i=a.length,u=-1,o=0,l;for(;i--;){const c=a[i];if(typeof c=="string"){for(u=c.length;c.charCodeAt(u-1)===32;)o++,u--;if(u)break;u=-1}else if(c===-2)l=!0,o++;else if(c!==-1){i++;break}}if(o){const c={type:n===e.length||l||o<2?"lineSuffix":"hardBreakTrailing",start:{line:r.end.line,column:r.end.column-o,offset:r.end.offset-o,_index:r.start._index+i,_bufferIndex:i?u:r.start._bufferIndex+u},end:Object.assign({},r.end)};r.end=Object.assign({},c.start),r.start.offset===r.end.offset?Object.assign(r,c):(e.splice(n,0,["enter",c,t],["exit",c,t]),n+=2)}n++}return e}function rh(e,t,n){let r=Object.assign(n?Object.assign({},n):{line:1,column:1,offset:0},{_index:0,_bufferIndex:-1});const a={},i=[];let u=[],o=[];const l={consume:P,enter:R,exit:B,attempt:Q(C),check:Q(N),interrupt:Q(N,{interrupt:!0})},c={previous:null,code:null,containerState:{},events:[],parser:e,sliceStream:m,sliceSerialize:h,now:y,defineSkip:A,write:d};let f=t.tokenize.call(c,l);return t.resolveAll&&i.push(t),c;function d(j){return u=Qe(u,j),v(),u[u.length-1]!==null?[]:(de(t,0),c.events=Xa(i,c.events,c),c.events)}function h(j,F){return ih(m(j),F)}function m(j){return ah(u,j)}function y(){const{line:j,column:F,offset:$,_index:Y,_bufferIndex:Z}=r;return{line:j,column:F,offset:$,_index:Y,_bufferIndex:Z}}function A(j){a[j.line]=j.column,z()}function v(){let j;for(;r._index<u.length;){const F=u[r._index];if(typeof F=="string")for(j=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===j&&r._bufferIndex<F.length;)x(F.charCodeAt(r._bufferIndex));else x(F)}}function x(j){f=f(j)}function P(j){ne(j)?(r.line++,r.column=1,r.offset+=j===-3?2:1,z()):j!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===u[r._index].length&&(r._bufferIndex=-1,r._index++)),c.previous=j}function R(j,F){const $=F||{};return $.type=j,$.start=y(),c.events.push(["enter",$,c]),o.push($),$}function B(j){const F=o.pop();return F.end=y(),c.events.push(["exit",F,c]),F}function C(j,F){de(j,F.from)}function N(j,F){F.restore()}function Q(j,F){return $;function $(Y,Z,he){let se,Ee,Le,p;return Array.isArray(Y)?G(Y):"tokenize"in Y?G([Y]):H(Y);function H(V){return J;function J(ee){const te=ee!==null&&V[ee],ae=ee!==null&&V.null,Ne=[...Array.isArray(te)?te:te?[te]:[],...Array.isArray(ae)?ae:ae?[ae]:[]];return G(Ne)(ee)}}function G(V){return se=V,Ee=0,V.length===0?he:g(V[Ee])}function g(V){return J;function J(ee){return p=re(),Le=V,V.partial||(c.currentConstruct=V),V.name&&c.parser.constructs.disable.null.includes(V.name)?K():V.tokenize.call(F?Object.assign(Object.create(c),F):c,l,W,K)(ee)}}function W(V){return j(Le,p),Z}function K(V){return p.restore(),++Ee<se.length?g(se[Ee]):he}}}function de(j,F){j.resolveAll&&!i.includes(j)&&i.push(j),j.resolve&&ft(c.events,F,c.events.length-F,j.resolve(c.events.slice(F),c)),j.resolveTo&&(c.events=j.resolveTo(c.events,c))}function re(){const j=y(),F=c.previous,$=c.currentConstruct,Y=c.events.length,Z=Array.from(o);return{restore:he,from:Y};function he(){r=j,c.previous=F,c.currentConstruct=$,c.events.length=Y,o=Z,z()}}function z(){r.line in a&&r.column<2&&(r.column=a[r.line],r.offset+=a[r.line]-1)}}function ah(e,t){const n=t.start._index,r=t.start._bufferIndex,a=t.end._index,i=t.end._bufferIndex;let u;if(n===a)u=[e[n].slice(r,i)];else{if(u=e.slice(n,a),r>-1){const o=u[0];typeof o=="string"?u[0]=o.slice(r):u.shift()}i>0&&u.push(e[a].slice(0,i))}return u}function ih(e,t){let n=-1;const r=[];let a;for(;++n<e.length;){const i=e[n];let u;if(typeof i=="string")u=i;else switch(i){case-5:{u="\r";break}case-4:{u=`
|
|
48
|
+
`,onClick:()=>t(!e),children:[!e&&L.jsx($a,{facet:n.agent.display[Ye.AgentDisplayFacetRoleType.LAUNCHER]}),e&&L.jsx(Cf,{className:"w-6 h-6",fill:"white"})]})},Ya=()=>{const e=Pn(),t=e.formatMessage({defaultMessage:"Message the assistant...",id:"chatbot.placeholder.content"}),n=e.formatMessage({defaultMessage:"You",id:"chatbot.chatline.label.user"}),r=e.formatMessage({defaultMessage:"Assistant",id:"chatbot.chatline.label.assistant"}),a=e.formatMessage({defaultMessage:"⏳ The chatbot is a little busy at the time. Please try again later.",id:"chatbot.error.api.429"}),i=e.formatMessage({defaultMessage:"Oops ! There has been an error. Please try again later.",id:"chatbot.error.api.500"}),u=e.formatMessage({defaultMessage:"Oups ! The discussion if full. Please start a new one.",id:"chatbot.error.api.409"});return{placeholderTranslation:t,chatlineLabelUserTranslation:n,chatlineLabelAssistantTranslation:r,tooManyRequestsTranslation:a,genericErrorTranslation:i,conflictErrorTranslation:u}},kf=({setDiscussionId:e,setConversation:t,companySettings:n})=>({resetDiscussion:()=>{e(null),t([{userType:"assistant",content:n?.agent?.text?.initialText}])}});function ki(e){const t=[],n=String(e||"");let r=n.indexOf(","),a=0,i=!1;for(;!i;){r===-1&&(r=n.length,i=!0);const u=n.slice(a,r).trim();(u||!i)&&t.push(u),a=r+1,r=n.indexOf(",",a)}return t}function Hs(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const wf=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Mf=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Bf={};function wi(e,t){return(Bf.jsx?Mf:wf).test(e)}const Ff=/[ \t\n\f\r]/g;function Hf(e){return typeof e=="object"?e.type==="text"?Mi(e.value):!1:Mi(e)}function Mi(e){return e.replace(Ff,"")===""}class wn{constructor(t,n,r){this.property=t,this.normal=n,r&&(this.space=r)}}wn.prototype.property={};wn.prototype.normal={};wn.prototype.space=null;function Us(e,t){const n={},r={};let a=-1;for(;++a<e.length;)Object.assign(n,e[a].property),Object.assign(r,e[a].normal);return new wn(n,r,t)}function On(e){return e.toLowerCase()}class tt{constructor(t,n){this.property=t,this.attribute=n}}tt.prototype.space=null;tt.prototype.boolean=!1;tt.prototype.booleanish=!1;tt.prototype.overloadedBoolean=!1;tt.prototype.number=!1;tt.prototype.commaSeparated=!1;tt.prototype.spaceSeparated=!1;tt.prototype.commaOrSpaceSeparated=!1;tt.prototype.mustUseProperty=!1;tt.prototype.defined=!1;let Uf=0;const oe=Ht(),Pe=Ht(),js=Ht(),M=Ht(),xe=Ht(),Qt=Ht(),qe=Ht();function Ht(){return 2**++Uf}const ga=Object.freeze(Object.defineProperty({__proto__:null,boolean:oe,booleanish:Pe,commaOrSpaceSeparated:qe,commaSeparated:Qt,number:M,overloadedBoolean:js,spaceSeparated:xe},Symbol.toStringTag,{value:"Module"})),Mr=Object.keys(ga);class Ga extends tt{constructor(t,n,r,a){let i=-1;if(super(t,n),Bi(this,"space",a),typeof r=="number")for(;++i<Mr.length;){const u=Mr[i];Bi(this,Mr[i],(r&ga[u])===ga[u])}}}Ga.prototype.defined=!0;function Bi(e,t,n){n&&(e[t]=n)}const jf={}.hasOwnProperty;function rn(e){const t={},n={};let r;for(r in e.properties)if(jf.call(e.properties,r)){const a=e.properties[r],i=new Ga(r,e.transform(e.attributes||{},r),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(i.mustUseProperty=!0),t[r]=i,n[On(r)]=r,n[On(i.attribute)]=r}return new wn(t,n,e.space)}const $s=rn({space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),Ys=rn({space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function Gs(e,t){return t in e?e[t]:t}function zs(e,t){return Gs(e,t.toLowerCase())}const Vs=rn({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:zs,properties:{xmlns:null,xmlnsXLink:null}}),qs=rn({transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:Pe,ariaAutoComplete:null,ariaBusy:Pe,ariaChecked:Pe,ariaColCount:M,ariaColIndex:M,ariaColSpan:M,ariaControls:xe,ariaCurrent:null,ariaDescribedBy:xe,ariaDetails:null,ariaDisabled:Pe,ariaDropEffect:xe,ariaErrorMessage:null,ariaExpanded:Pe,ariaFlowTo:xe,ariaGrabbed:Pe,ariaHasPopup:null,ariaHidden:Pe,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:xe,ariaLevel:M,ariaLive:null,ariaModal:Pe,ariaMultiLine:Pe,ariaMultiSelectable:Pe,ariaOrientation:null,ariaOwns:xe,ariaPlaceholder:null,ariaPosInSet:M,ariaPressed:Pe,ariaReadOnly:Pe,ariaRelevant:null,ariaRequired:Pe,ariaRoleDescription:xe,ariaRowCount:M,ariaRowIndex:M,ariaRowSpan:M,ariaSelected:Pe,ariaSetSize:M,ariaSort:null,ariaValueMax:M,ariaValueMin:M,ariaValueNow:M,ariaValueText:null,role:null}}),$f=rn({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:zs,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Qt,acceptCharset:xe,accessKey:xe,action:null,allow:null,allowFullScreen:oe,allowPaymentRequest:oe,allowUserMedia:oe,alt:null,as:null,async:oe,autoCapitalize:null,autoComplete:xe,autoFocus:oe,autoPlay:oe,blocking:xe,capture:null,charSet:null,checked:oe,cite:null,className:xe,cols:M,colSpan:null,content:null,contentEditable:Pe,controls:oe,controlsList:xe,coords:M|Qt,crossOrigin:null,data:null,dateTime:null,decoding:null,default:oe,defer:oe,dir:null,dirName:null,disabled:oe,download:js,draggable:Pe,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:oe,formTarget:null,headers:xe,height:M,hidden:oe,high:M,href:null,hrefLang:null,htmlFor:xe,httpEquiv:xe,id:null,imageSizes:null,imageSrcSet:null,inert:oe,inputMode:null,integrity:null,is:null,isMap:oe,itemId:null,itemProp:xe,itemRef:xe,itemScope:oe,itemType:xe,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:oe,low:M,manifest:null,max:null,maxLength:M,media:null,method:null,min:null,minLength:M,multiple:oe,muted:oe,name:null,nonce:null,noModule:oe,noValidate:oe,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:oe,optimum:M,pattern:null,ping:xe,placeholder:null,playsInline:oe,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:oe,referrerPolicy:null,rel:xe,required:oe,reversed:oe,rows:M,rowSpan:M,sandbox:xe,scope:null,scoped:oe,seamless:oe,selected:oe,shadowRootDelegatesFocus:oe,shadowRootMode:null,shape:null,size:M,sizes:null,slot:null,span:M,spellCheck:Pe,src:null,srcDoc:null,srcLang:null,srcSet:null,start:M,step:null,style:null,tabIndex:M,target:null,title:null,translate:null,type:null,typeMustMatch:oe,useMap:null,value:Pe,width:M,wrap:null,align:null,aLink:null,archive:xe,axis:null,background:null,bgColor:null,border:M,borderColor:null,bottomMargin:M,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:oe,declare:oe,event:null,face:null,frame:null,frameBorder:null,hSpace:M,leftMargin:M,link:null,longDesc:null,lowSrc:null,marginHeight:M,marginWidth:M,noResize:oe,noHref:oe,noShade:oe,noWrap:oe,object:null,profile:null,prompt:null,rev:null,rightMargin:M,rules:null,scheme:null,scrolling:Pe,standby:null,summary:null,text:null,topMargin:M,valueType:null,version:null,vAlign:null,vLink:null,vSpace:M,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:oe,disableRemotePlayback:oe,prefix:null,property:null,results:M,security:null,unselectable:null}}),Yf=rn({space:"svg",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"},transform:Gs,properties:{about:qe,accentHeight:M,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:M,amplitude:M,arabicForm:null,ascent:M,attributeName:null,attributeType:null,azimuth:M,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:M,by:null,calcMode:null,capHeight:M,className:xe,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:M,diffuseConstant:M,direction:null,display:null,dur:null,divisor:M,dominantBaseline:null,download:oe,dx:null,dy:null,edgeMode:null,editable:null,elevation:M,enableBackground:null,end:null,event:null,exponent:M,externalResourcesRequired:null,fill:null,fillOpacity:M,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:Qt,g2:Qt,glyphName:Qt,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:M,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:M,horizOriginX:M,horizOriginY:M,id:null,ideographic:M,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:M,k:M,k1:M,k2:M,k3:M,k4:M,kernelMatrix:qe,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:M,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:M,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:M,overlineThickness:M,paintOrder:null,panose1:null,path:null,pathLength:M,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:xe,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:M,pointsAtY:M,pointsAtZ:M,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:qe,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:qe,rev:qe,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:qe,requiredFeatures:qe,requiredFonts:qe,requiredFormats:qe,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:M,specularExponent:M,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:M,strikethroughThickness:M,string:null,stroke:null,strokeDashArray:qe,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:M,strokeOpacity:M,strokeWidth:null,style:null,surfaceScale:M,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:qe,tabIndex:M,tableValues:null,target:null,targetX:M,targetY:M,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:qe,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:M,underlineThickness:M,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:M,values:null,vAlphabetic:M,vMathematical:M,vectorEffect:null,vHanging:M,vIdeographic:M,version:null,vertAdvY:M,vertOriginX:M,vertOriginY:M,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:M,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),Gf=/^data[-\w.:]+$/i,Fi=/-[a-z]/g,zf=/[A-Z]/g;function Tr(e,t){const n=On(t);let r=t,a=tt;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&Gf.test(t)){if(t.charAt(4)==="-"){const i=t.slice(5).replace(Fi,qf);r="data"+i.charAt(0).toUpperCase()+i.slice(1)}else{const i=t.slice(4);if(!Fi.test(i)){let u=i.replace(zf,Vf);u.charAt(0)!=="-"&&(u="-"+u),t="data"+u}}a=Ga}return new a(r,t)}function Vf(e){return"-"+e.toLowerCase()}function qf(e){return e.charAt(1).toUpperCase()}const Wf={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"},Mn=Us([Ys,$s,Vs,qs,$f],"html"),xt=Us([Ys,$s,Vs,qs,Yf],"svg");function Hi(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function Ws(e){return e.join(" ").trim()}var Yt={},Br,Ui;function Xf(){if(Ui)return Br;Ui=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,a=/^:\s*/,i=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,u=/^[;\s]*/,o=/^\s+|\s+$/g,l=`
|
|
49
|
+
`,c="/",f="*",d="",h="comment",m="declaration";Br=function(A,v){if(typeof A!="string")throw new TypeError("First argument must be a string");if(!A)return[];v=v||{};var x=1,P=1;function R($){var Y=$.match(t);Y&&(x+=Y.length);var Z=$.lastIndexOf(l);P=~Z?$.length-Z:P+$.length}function B(){var $={line:x,column:P};return function(Y){return Y.position=new C($),de(),Y}}function C($){this.start=$,this.end={line:x,column:P},this.source=v.source}C.prototype.content=A;function O($){var Y=new Error(v.source+":"+x+":"+P+": "+$);if(Y.reason=$,Y.filename=v.source,Y.line=x,Y.column=P,Y.source=A,!v.silent)throw Y}function Q($){var Y=$.exec(A);if(Y){var Z=Y[0];return R(Z),A=A.slice(Z.length),Y}}function de(){Q(n)}function re($){var Y;for($=$||[];Y=z();)Y!==!1&&$.push(Y);return $}function z(){var $=B();if(!(c!=A.charAt(0)||f!=A.charAt(1))){for(var Y=2;d!=A.charAt(Y)&&(f!=A.charAt(Y)||c!=A.charAt(Y+1));)++Y;if(Y+=2,d===A.charAt(Y-1))return O("End of comment missing");var Z=A.slice(2,Y-2);return P+=2,R(Z),A=A.slice(Y),P+=2,$({type:h,comment:Z})}}function j(){var $=B(),Y=Q(r);if(Y){if(z(),!Q(a))return O("property missing ':'");var Z=Q(i),he=$({type:m,property:_(Y[0].replace(e,d)),value:Z?_(Z[0].replace(e,d)):d});return Q(u),he}}function F(){var $=[];re($);for(var Y;Y=j();)Y!==!1&&($.push(Y),re($));return $}return de(),F()};function _(A){return A?A.replace(o,d):d}return Br}var ji;function Qf(){if(ji)return Yt;ji=1;var e=Yt&&Yt.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Yt,"__esModule",{value:!0});var t=e(Xf());function n(r,a){var i=null;if(!r||typeof r!="string")return i;var u=(0,t.default)(r),o=typeof a=="function";return u.forEach(function(l){if(l.type==="declaration"){var c=l.property,f=l.value;o?a(c,f,l):f&&(i=i||{},i[c]=f)}}),i}return Yt.default=n,Yt}var Kf=Qf();const $i=Ba(Kf),Zf=$i.default||$i,Ar=Xs("end"),dt=Xs("start");function Xs(e){return t;function t(n){const r=n&&n.position&&n.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 Jf(e){const t=dt(e),n=Ar(e);if(t&&n)return{start:t,end:n}}function Tn(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Yi(e.position):"start"in e||"end"in e?Yi(e):"line"in e||"column"in e?Ta(e):""}function Ta(e){return Gi(e&&e.line)+":"+Gi(e&&e.column)}function Yi(e){return Ta(e&&e.start)+"-"+Ta(e&&e.end)}function Gi(e){return e&&typeof e=="number"?e:1}class Be extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let a="",i={},u=!1;if(n&&("line"in n&&"column"in n?i={place:n}:"start"in n&&"end"in n?i={place:n}:"type"in n?i={ancestors:[n],place:n.position}:i={...n}),typeof t=="string"?a=t:!i.cause&&t&&(u=!0,a=t.message,i.cause=t),!i.ruleId&&!i.source&&typeof r=="string"){const l=r.indexOf(":");l===-1?i.ruleId=r:(i.source=r.slice(0,l),i.ruleId=r.slice(l+1))}if(!i.place&&i.ancestors&&i.ancestors){const l=i.ancestors[i.ancestors.length-1];l&&(i.place=l.position)}const o=i.place&&"start"in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file,this.message=a,this.line=o?o.line:void 0,this.name=Tn(i.place)||"1:1",this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=u&&i.cause&&typeof i.cause.stack=="string"?i.cause.stack:"",this.actual,this.expected,this.note,this.url}}Be.prototype.file="";Be.prototype.name="";Be.prototype.reason="";Be.prototype.message="";Be.prototype.stack="";Be.prototype.column=void 0;Be.prototype.line=void 0;Be.prototype.ancestors=void 0;Be.prototype.cause=void 0;Be.prototype.fatal=void 0;Be.prototype.place=void 0;Be.prototype.ruleId=void 0;Be.prototype.source=void 0;const za={}.hasOwnProperty,e0=new Map,t0=/[A-Z]/g,n0=/-([a-z])/g,r0=new Set(["table","tbody","thead","tfoot","tr"]),a0=new Set(["td","th"]),Qs="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function i0(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=h0(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=d0(n,t.jsx,t.jsxs)}const a={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?xt:Mn,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},i=Ks(a,e,void 0);return i&&typeof i!="string"?i:a.create(e,a.Fragment,{children:i||void 0},void 0)}function Ks(e,t,n){if(t.type==="element")return u0(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return s0(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return l0(e,t,n);if(t.type==="mdxjsEsm")return o0(e,t);if(t.type==="root")return c0(e,t,n);if(t.type==="text")return f0(e,t)}function u0(e,t,n){const r=e.schema;let a=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(a=xt,e.schema=a),e.ancestors.push(t);const i=Js(e,t.tagName,!1),u=m0(e,t);let o=qa(e,t);return r0.has(t.tagName)&&(o=o.filter(function(l){return typeof l=="string"?!Hf(l):!0})),Zs(e,u,i,t),Va(u,o),e.ancestors.pop(),e.schema=r,e.create(t,i,u,n)}function s0(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}Ln(e,t.position)}function o0(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Ln(e,t.position)}function l0(e,t,n){const r=e.schema;let a=r;t.name==="svg"&&r.space==="html"&&(a=xt,e.schema=a),e.ancestors.push(t);const i=t.name===null?e.Fragment:Js(e,t.name,!0),u=p0(e,t),o=qa(e,t);return Zs(e,u,i,t),Va(u,o),e.ancestors.pop(),e.schema=r,e.create(t,i,u,n)}function c0(e,t,n){const r={};return Va(r,qa(e,t)),e.create(t,e.Fragment,r,n)}function f0(e,t){return t.value}function Zs(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function Va(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function d0(e,t,n){return r;function r(a,i,u,o){const c=Array.isArray(u.children)?n:t;return o?c(i,u,o):c(i,u)}}function h0(e,t){return n;function n(r,a,i,u){const o=Array.isArray(i.children),l=dt(r);return t(a,i,u,o,{columnNumber:l?l.column-1:void 0,fileName:e,lineNumber:l?l.line:void 0},void 0)}}function m0(e,t){const n={};let r,a;for(a in t.properties)if(a!=="children"&&za.call(t.properties,a)){const i=E0(e,a,t.properties[a]);if(i){const[u,o]=i;e.tableCellAlignToStyle&&u==="align"&&typeof o=="string"&&a0.has(t.tagName)?r=o:n[u]=o}}if(r){const i=n.style||(n.style={});i[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function p0(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const i=r.data.estree.body[0];i.type;const u=i.expression;u.type;const o=u.properties[0];o.type,Object.assign(n,e.evaluater.evaluateExpression(o.argument))}else Ln(e,t.position);else{const a=r.name;let i;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const o=r.value.data.estree.body[0];o.type,i=e.evaluater.evaluateExpression(o.expression)}else Ln(e,t.position);else i=r.value===null?!0:r.value;n[a]=i}return n}function qa(e,t){const n=[];let r=-1;const a=e.passKeys?new Map:e0;for(;++r<t.children.length;){const i=t.children[r];let u;if(e.passKeys){const l=i.type==="element"?i.tagName:i.type==="mdxJsxFlowElement"||i.type==="mdxJsxTextElement"?i.name:void 0;if(l){const c=a.get(l)||0;u=l+"-"+c,a.set(l,c+1)}}const o=Ks(e,i,u);o!==void 0&&n.push(o)}return n}function E0(e,t,n){const r=Tr(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?Hs(n):Ws(n)),r.property==="style"){let a=typeof n=="object"?n:b0(e,String(n));return e.stylePropertyNameCase==="css"&&(a=g0(a)),["style",a]}return[e.elementAttributeNameCase==="react"&&r.space?Wf[r.property]||r.property:r.attribute,n]}}function b0(e,t){const n={};try{Zf(t,r)}catch(a){if(!e.ignoreInvalidStyle){const i=a,u=new Be("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:i,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw u.file=e.filePath||void 0,u.url=Qs+"#cannot-parse-style-attribute",u}}return n;function r(a,i){let u=a;u.slice(0,2)!=="--"&&(u.slice(0,4)==="-ms-"&&(u="ms-"+u.slice(4)),u=u.replace(n0,A0)),n[u]=i}}function Js(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const a=t.split(".");let i=-1,u;for(;++i<a.length;){const o=wi(a[i])?{type:"Identifier",name:a[i]}:{type:"Literal",value:a[i]};u=u?{type:"MemberExpression",object:u,property:o,computed:!!(i&&o.type==="Literal"),optional:!1}:o}r=u}else r=wi(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const a=r.value;return za.call(e.components,a)?e.components[a]:a}if(e.evaluater)return e.evaluater.evaluateExpression(r);Ln(e)}function Ln(e,t){const n=new Be("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=Qs+"#cannot-handle-mdx-estrees-without-createevaluater",n}function g0(e){const t={};let n;for(n in e)za.call(e,n)&&(t[T0(n)]=e[n]);return t}function T0(e){let t=e.replace(t0,_0);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function A0(e,t){return t.toUpperCase()}function _0(e){return"-"+e.toLowerCase()}const Fr={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"]},y0={};function x0(e,t){const n=y0,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,a=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return eo(e,r,a)}function eo(e,t,n){if(S0(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return zi(e.children,t,n)}return Array.isArray(e)?zi(e,t,n):""}function zi(e,t,n){const r=[];let a=-1;for(;++a<e.length;)r[a]=eo(e[a],t,n);return r.join("")}function S0(e){return!!(e&&typeof e=="object")}const Vi=document.createElement("i");function Wa(e){const t="&"+e+";";Vi.innerHTML=t;const n=Vi.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function ft(e,t,n,r){const a=e.length;let i=0,u;if(t<0?t=-t>a?0:a+t:t=t>a?a:t,n=n>0?n:0,r.length<1e4)u=Array.from(r),u.unshift(t,n),e.splice(...u);else for(n&&e.splice(t,n);i<r.length;)u=r.slice(i,i+1e4),u.unshift(t,0),e.splice(...u),i+=1e4,t+=1e4}function Qe(e,t){return e.length>0?(ft(e,e.length,0,t),e):t}const qi={}.hasOwnProperty;function C0(e){const t={};let n=-1;for(;++n<e.length;)I0(t,e[n]);return t}function I0(e,t){let n;for(n in t){const a=(qi.call(e,n)?e[n]:void 0)||(e[n]={}),i=t[n];let u;if(i)for(u in i){qi.call(a,u)||(a[u]=[]);const o=i[u];N0(a[u],Array.isArray(o)?o:o?[o]:[])}}}function N0(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);ft(e,0,0,r)}function to(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function Kt(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const lt=St(/[A-Za-z]/),We=St(/[\dA-Za-z]/),O0=St(/[#-'*+\--9=?A-Z^-~]/);function Aa(e){return e!==null&&(e<32||e===127)}const _a=St(/\d/),L0=St(/[\dA-Fa-f]/),R0=St(/[!-/:-@[-`{-~]/);function ne(e){return e!==null&&e<-2}function Ge(e){return e!==null&&(e<0||e===32)}function be(e){return e===-2||e===-1||e===32}const v0=St(new RegExp("\\p{P}|\\p{S}","u")),P0=St(/\s/);function St(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function an(e){const t=[];let n=-1,r=0,a=0;for(;++n<e.length;){const i=e.charCodeAt(n);let u="";if(i===37&&We(e.charCodeAt(n+1))&&We(e.charCodeAt(n+2)))a=2;else if(i<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(i))||(u=String.fromCharCode(i));else if(i>55295&&i<57344){const o=e.charCodeAt(n+1);i<56320&&o>56319&&o<57344?(u=String.fromCharCode(i,o),a=1):u="�"}else u=String.fromCharCode(i);u&&(t.push(e.slice(r,n),encodeURIComponent(u)),r=n+a+1,u=""),a&&(n+=a,a=0)}return t.join("")+e.slice(r)}function Se(e,t,n,r){const a=r?r-1:Number.POSITIVE_INFINITY;let i=0;return u;function u(l){return be(l)?(e.enter(n),o(l)):t(l)}function o(l){return be(l)&&i++<a?(e.consume(l),o):(e.exit(n),t(l))}}const D0={tokenize:k0};function k0(e){const t=e.attempt(this.parser.constructs.contentInitial,r,a);let n;return t;function r(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),Se(e,t,"linePrefix")}function a(o){return e.enter("paragraph"),i(o)}function i(o){const l=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=l),n=l,u(o)}function u(o){if(o===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(o);return}return ne(o)?(e.consume(o),e.exit("chunkText"),i):(e.consume(o),u)}}const w0={tokenize:M0},Wi={tokenize:B0};function M0(e){const t=this,n=[];let r=0,a,i,u;return o;function o(R){if(r<n.length){const B=n[r];return t.containerState=B[1],e.attempt(B[0].continuation,l,c)(R)}return c(R)}function l(R){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,a&&P();const B=t.events.length;let C=B,O;for(;C--;)if(t.events[C][0]==="exit"&&t.events[C][1].type==="chunkFlow"){O=t.events[C][1].end;break}x(r);let Q=B;for(;Q<t.events.length;)t.events[Q][1].end=Object.assign({},O),Q++;return ft(t.events,C+1,0,t.events.slice(B)),t.events.length=Q,c(R)}return o(R)}function c(R){if(r===n.length){if(!a)return h(R);if(a.currentConstruct&&a.currentConstruct.concrete)return _(R);t.interrupt=!!(a.currentConstruct&&!a._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Wi,f,d)(R)}function f(R){return a&&P(),x(r),h(R)}function d(R){return t.parser.lazy[t.now().line]=r!==n.length,u=t.now().offset,_(R)}function h(R){return t.containerState={},e.attempt(Wi,m,_)(R)}function m(R){return r++,n.push([t.currentConstruct,t.containerState]),h(R)}function _(R){if(R===null){a&&P(),x(0),e.consume(R);return}return a=a||t.parser.flow(t.now()),e.enter("chunkFlow",{contentType:"flow",previous:i,_tokenizer:a}),A(R)}function A(R){if(R===null){v(e.exit("chunkFlow"),!0),x(0),e.consume(R);return}return ne(R)?(e.consume(R),v(e.exit("chunkFlow")),r=0,t.interrupt=void 0,o):(e.consume(R),A)}function v(R,B){const C=t.sliceStream(R);if(B&&C.push(null),R.previous=i,i&&(i.next=R),i=R,a.defineSkip(R.start),a.write(C),t.parser.lazy[R.start.line]){let O=a.events.length;for(;O--;)if(a.events[O][1].start.offset<u&&(!a.events[O][1].end||a.events[O][1].end.offset>u))return;const Q=t.events.length;let de=Q,re,z;for(;de--;)if(t.events[de][0]==="exit"&&t.events[de][1].type==="chunkFlow"){if(re){z=t.events[de][1].end;break}re=!0}for(x(r),O=Q;O<t.events.length;)t.events[O][1].end=Object.assign({},z),O++;ft(t.events,de+1,0,t.events.slice(Q)),t.events.length=O}}function x(R){let B=n.length;for(;B-- >R;){const C=n[B];t.containerState=C[1],C[0].exit.call(t,e)}n.length=R}function P(){a.write([null]),i=void 0,a=void 0,t.containerState._closeFlow=void 0}}function B0(e,t,n){return Se(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Xi(e){if(e===null||Ge(e)||P0(e))return 1;if(v0(e))return 2}function Xa(e,t,n){const r=[];let a=-1;for(;++a<e.length;){const i=e[a].resolveAll;i&&!r.includes(i)&&(t=i(t,n),r.push(i))}return t}const ya={name:"attention",tokenize:H0,resolveAll:F0};function F0(e,t){let n=-1,r,a,i,u,o,l,c,f;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;l=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const d=Object.assign({},e[r][1].end),h=Object.assign({},e[n][1].start);Qi(d,-l),Qi(h,l),u={type:l>1?"strongSequence":"emphasisSequence",start:d,end:Object.assign({},e[r][1].end)},o={type:l>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[n][1].start),end:h},i={type:l>1?"strongText":"emphasisText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},a={type:l>1?"strong":"emphasis",start:Object.assign({},u.start),end:Object.assign({},o.end)},e[r][1].end=Object.assign({},u.start),e[n][1].start=Object.assign({},o.end),c=[],e[r][1].end.offset-e[r][1].start.offset&&(c=Qe(c,[["enter",e[r][1],t],["exit",e[r][1],t]])),c=Qe(c,[["enter",a,t],["enter",u,t],["exit",u,t],["enter",i,t]]),c=Qe(c,Xa(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),c=Qe(c,[["exit",i,t],["enter",o,t],["exit",o,t],["exit",a,t]]),e[n][1].end.offset-e[n][1].start.offset?(f=2,c=Qe(c,[["enter",e[n][1],t],["exit",e[n][1],t]])):f=0,ft(e,r-1,n-r+3,c),n=r+c.length-f-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function H0(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,a=Xi(r);let i;return u;function u(l){return i=l,e.enter("attentionSequence"),o(l)}function o(l){if(l===i)return e.consume(l),o;const c=e.exit("attentionSequence"),f=Xi(l),d=!f||f===2&&a||n.includes(l),h=!a||a===2&&f||n.includes(r);return c._open=!!(i===42?d:d&&(a||!h)),c._close=!!(i===42?h:h&&(f||!d)),t(l)}}function Qi(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const U0={name:"autolink",tokenize:j0};function j0(e,t,n){let r=0;return a;function a(m){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(m),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),i}function i(m){return lt(m)?(e.consume(m),u):c(m)}function u(m){return m===43||m===45||m===46||We(m)?(r=1,o(m)):c(m)}function o(m){return m===58?(e.consume(m),r=0,l):(m===43||m===45||m===46||We(m))&&r++<32?(e.consume(m),o):(r=0,c(m))}function l(m){return m===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(m),e.exit("autolinkMarker"),e.exit("autolink"),t):m===null||m===32||m===60||Aa(m)?n(m):(e.consume(m),l)}function c(m){return m===64?(e.consume(m),f):O0(m)?(e.consume(m),c):n(m)}function f(m){return We(m)?d(m):n(m)}function d(m){return m===46?(e.consume(m),r=0,f):m===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(m),e.exit("autolinkMarker"),e.exit("autolink"),t):h(m)}function h(m){if((m===45||We(m))&&r++<63){const _=m===45?h:d;return e.consume(m),_}return n(m)}}const _r={tokenize:$0,partial:!0};function $0(e,t,n){return r;function r(i){return be(i)?Se(e,a,"linePrefix")(i):a(i)}function a(i){return i===null||ne(i)?t(i):n(i)}}const no={name:"blockQuote",tokenize:Y0,continuation:{tokenize:G0},exit:z0};function Y0(e,t,n){const r=this;return a;function a(u){if(u===62){const o=r.containerState;return o.open||(e.enter("blockQuote",{_container:!0}),o.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(u),e.exit("blockQuoteMarker"),i}return n(u)}function i(u){return be(u)?(e.enter("blockQuotePrefixWhitespace"),e.consume(u),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(u))}}function G0(e,t,n){const r=this;return a;function a(u){return be(u)?Se(e,i,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(u):i(u)}function i(u){return e.attempt(no,t,n)(u)}}function z0(e){e.exit("blockQuote")}const ro={name:"characterEscape",tokenize:V0};function V0(e,t,n){return r;function r(i){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(i),e.exit("escapeMarker"),a}function a(i){return R0(i)?(e.enter("characterEscapeValue"),e.consume(i),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(i)}}const ao={name:"characterReference",tokenize:q0};function q0(e,t,n){const r=this;let a=0,i,u;return o;function o(d){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),l}function l(d){return d===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(d),e.exit("characterReferenceMarkerNumeric"),c):(e.enter("characterReferenceValue"),i=31,u=We,f(d))}function c(d){return d===88||d===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(d),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),i=6,u=L0,f):(e.enter("characterReferenceValue"),i=7,u=_a,f(d))}function f(d){if(d===59&&a){const h=e.exit("characterReferenceValue");return u===We&&!Wa(r.sliceSerialize(h))?n(d):(e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return u(d)&&a++<i?(e.consume(d),f):n(d)}}const Ki={tokenize:X0,partial:!0},Zi={name:"codeFenced",tokenize:W0,concrete:!0};function W0(e,t,n){const r=this,a={tokenize:C,partial:!0};let i=0,u=0,o;return l;function l(O){return c(O)}function c(O){const Q=r.events[r.events.length-1];return i=Q&&Q[1].type==="linePrefix"?Q[2].sliceSerialize(Q[1],!0).length:0,o=O,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),f(O)}function f(O){return O===o?(u++,e.consume(O),f):u<3?n(O):(e.exit("codeFencedFenceSequence"),be(O)?Se(e,d,"whitespace")(O):d(O))}function d(O){return O===null||ne(O)?(e.exit("codeFencedFence"),r.interrupt?t(O):e.check(Ki,A,B)(O)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),h(O))}function h(O){return O===null||ne(O)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),d(O)):be(O)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Se(e,m,"whitespace")(O)):O===96&&O===o?n(O):(e.consume(O),h)}function m(O){return O===null||ne(O)?d(O):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),_(O))}function _(O){return O===null||ne(O)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),d(O)):O===96&&O===o?n(O):(e.consume(O),_)}function A(O){return e.attempt(a,B,v)(O)}function v(O){return e.enter("lineEnding"),e.consume(O),e.exit("lineEnding"),x}function x(O){return i>0&&be(O)?Se(e,P,"linePrefix",i+1)(O):P(O)}function P(O){return O===null||ne(O)?e.check(Ki,A,B)(O):(e.enter("codeFlowValue"),R(O))}function R(O){return O===null||ne(O)?(e.exit("codeFlowValue"),P(O)):(e.consume(O),R)}function B(O){return e.exit("codeFenced"),t(O)}function C(O,Q,de){let re=0;return z;function z(Z){return O.enter("lineEnding"),O.consume(Z),O.exit("lineEnding"),j}function j(Z){return O.enter("codeFencedFence"),be(Z)?Se(O,F,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(Z):F(Z)}function F(Z){return Z===o?(O.enter("codeFencedFenceSequence"),$(Z)):de(Z)}function $(Z){return Z===o?(re++,O.consume(Z),$):re>=u?(O.exit("codeFencedFenceSequence"),be(Z)?Se(O,Y,"whitespace")(Z):Y(Z)):de(Z)}function Y(Z){return Z===null||ne(Z)?(O.exit("codeFencedFence"),Q(Z)):de(Z)}}}function X0(e,t,n){const r=this;return a;function a(u){return u===null?n(u):(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),i)}function i(u){return r.parser.lazy[r.now().line]?n(u):t(u)}}const Hr={name:"codeIndented",tokenize:K0},Q0={tokenize:Z0,partial:!0};function K0(e,t,n){const r=this;return a;function a(c){return e.enter("codeIndented"),Se(e,i,"linePrefix",5)(c)}function i(c){const f=r.events[r.events.length-1];return f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?u(c):n(c)}function u(c){return c===null?l(c):ne(c)?e.attempt(Q0,u,l)(c):(e.enter("codeFlowValue"),o(c))}function o(c){return c===null||ne(c)?(e.exit("codeFlowValue"),u(c)):(e.consume(c),o)}function l(c){return e.exit("codeIndented"),t(c)}}function Z0(e,t,n){const r=this;return a;function a(u){return r.parser.lazy[r.now().line]?n(u):ne(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),a):Se(e,i,"linePrefix",5)(u)}function i(u){const o=r.events[r.events.length-1];return o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?t(u):ne(u)?a(u):n(u)}}const J0={name:"codeText",tokenize:nd,resolve:ed,previous:td};function ed(e){let t=e.length-4,n=3,r,a;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)a===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(a=r):(r===t||e[r][1].type==="lineEnding")&&(e[a][1].type="codeTextData",r!==a+2&&(e[a][1].end=e[r-1][1].end,e.splice(a+2,r-a-2),t-=r-a-2,r=a+2),a=void 0);return e}function td(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function nd(e,t,n){let r=0,a,i;return u;function u(d){return e.enter("codeText"),e.enter("codeTextSequence"),o(d)}function o(d){return d===96?(e.consume(d),r++,o):(e.exit("codeTextSequence"),l(d))}function l(d){return d===null?n(d):d===32?(e.enter("space"),e.consume(d),e.exit("space"),l):d===96?(i=e.enter("codeTextSequence"),a=0,f(d)):ne(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),l):(e.enter("codeTextData"),c(d))}function c(d){return d===null||d===32||d===96||ne(d)?(e.exit("codeTextData"),l(d)):(e.consume(d),c)}function f(d){return d===96?(e.consume(d),a++,f):a===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(d)):(i.type="codeTextData",c(d))}}function io(e){const t={};let n=-1,r,a,i,u,o,l,c;for(;++n<e.length;){for(;n in t;)n=t[n];if(r=e[n],n&&r[1].type==="chunkFlow"&&e[n-1][1].type==="listItemPrefix"&&(l=r[1]._tokenizer.events,i=0,i<l.length&&l[i][1].type==="lineEndingBlank"&&(i+=2),i<l.length&&l[i][1].type==="content"))for(;++i<l.length&&l[i][1].type!=="content";)l[i][1].type==="chunkText"&&(l[i][1]._isInFirstContentOfListItem=!0,i++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,rd(e,n)),n=t[n],c=!0);else if(r[1]._container){for(i=n,a=void 0;i--&&(u=e[i],u[1].type==="lineEnding"||u[1].type==="lineEndingBlank");)u[0]==="enter"&&(a&&(e[a][1].type="lineEndingBlank"),u[1].type="lineEnding",a=i);a&&(r[1].end=Object.assign({},e[a][1].start),o=e.slice(a,n),o.unshift(r),ft(e,a,n-a+1,o))}}return!c}function rd(e,t){const n=e[t][1],r=e[t][2];let a=t-1;const i=[],u=n._tokenizer||r.parser[n.contentType](n.start),o=u.events,l=[],c={};let f,d,h=-1,m=n,_=0,A=0;const v=[A];for(;m;){for(;e[++a][1]!==m;);i.push(a),m._tokenizer||(f=r.sliceStream(m),m.next||f.push(null),d&&u.defineSkip(m.start),m._isInFirstContentOfListItem&&(u._gfmTasklistFirstContentOfListItem=!0),u.write(f),m._isInFirstContentOfListItem&&(u._gfmTasklistFirstContentOfListItem=void 0)),d=m,m=m.next}for(m=n;++h<o.length;)o[h][0]==="exit"&&o[h-1][0]==="enter"&&o[h][1].type===o[h-1][1].type&&o[h][1].start.line!==o[h][1].end.line&&(A=h+1,v.push(A),m._tokenizer=void 0,m.previous=void 0,m=m.next);for(u.events=[],m?(m._tokenizer=void 0,m.previous=void 0):v.pop(),h=v.length;h--;){const x=o.slice(v[h],v[h+1]),P=i.pop();l.unshift([P,P+x.length-1]),ft(e,P,2,x)}for(h=-1;++h<l.length;)c[_+l[h][0]]=_+l[h][1],_+=l[h][1]-l[h][0]-1;return c}const ad={tokenize:sd,resolve:ud},id={tokenize:od,partial:!0};function ud(e){return io(e),e}function sd(e,t){let n;return r;function r(o){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),a(o)}function a(o){return o===null?i(o):ne(o)?e.check(id,u,i)(o):(e.consume(o),a)}function i(o){return e.exit("chunkContent"),e.exit("content"),t(o)}function u(o){return e.consume(o),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,a}}function od(e,t,n){const r=this;return a;function a(u){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),Se(e,i,"linePrefix")}function i(u){if(u===null||ne(u))return n(u);const o=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?t(u):e.interrupt(r.parser.constructs.flow,n,t)(u)}}function uo(e,t,n,r,a,i,u,o,l){const c=l||Number.POSITIVE_INFINITY;let f=0;return d;function d(x){return x===60?(e.enter(r),e.enter(a),e.enter(i),e.consume(x),e.exit(i),h):x===null||x===32||x===41||Aa(x)?n(x):(e.enter(r),e.enter(u),e.enter(o),e.enter("chunkString",{contentType:"string"}),A(x))}function h(x){return x===62?(e.enter(i),e.consume(x),e.exit(i),e.exit(a),e.exit(r),t):(e.enter(o),e.enter("chunkString",{contentType:"string"}),m(x))}function m(x){return x===62?(e.exit("chunkString"),e.exit(o),h(x)):x===null||x===60||ne(x)?n(x):(e.consume(x),x===92?_:m)}function _(x){return x===60||x===62||x===92?(e.consume(x),m):m(x)}function A(x){return!f&&(x===null||x===41||Ge(x))?(e.exit("chunkString"),e.exit(o),e.exit(u),e.exit(r),t(x)):f<c&&x===40?(e.consume(x),f++,A):x===41?(e.consume(x),f--,A):x===null||x===32||x===40||Aa(x)?n(x):(e.consume(x),x===92?v:A)}function v(x){return x===40||x===41||x===92?(e.consume(x),A):A(x)}}function so(e,t,n,r,a,i){const u=this;let o=0,l;return c;function c(m){return e.enter(r),e.enter(a),e.consume(m),e.exit(a),e.enter(i),f}function f(m){return o>999||m===null||m===91||m===93&&!l||m===94&&!o&&"_hiddenFootnoteSupport"in u.parser.constructs?n(m):m===93?(e.exit(i),e.enter(a),e.consume(m),e.exit(a),e.exit(r),t):ne(m)?(e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),f):(e.enter("chunkString",{contentType:"string"}),d(m))}function d(m){return m===null||m===91||m===93||ne(m)||o++>999?(e.exit("chunkString"),f(m)):(e.consume(m),l||(l=!be(m)),m===92?h:d)}function h(m){return m===91||m===92||m===93?(e.consume(m),o++,d):d(m)}}function oo(e,t,n,r,a,i){let u;return o;function o(h){return h===34||h===39||h===40?(e.enter(r),e.enter(a),e.consume(h),e.exit(a),u=h===40?41:h,l):n(h)}function l(h){return h===u?(e.enter(a),e.consume(h),e.exit(a),e.exit(r),t):(e.enter(i),c(h))}function c(h){return h===u?(e.exit(i),l(u)):h===null?n(h):ne(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),Se(e,c,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),f(h))}function f(h){return h===u||h===null||ne(h)?(e.exit("chunkString"),c(h)):(e.consume(h),h===92?d:f)}function d(h){return h===u||h===92?(e.consume(h),f):f(h)}}function An(e,t){let n;return r;function r(a){return ne(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),n=!0,r):be(a)?Se(e,r,n?"linePrefix":"lineSuffix")(a):t(a)}}const ld={name:"definition",tokenize:fd},cd={tokenize:dd,partial:!0};function fd(e,t,n){const r=this;let a;return i;function i(m){return e.enter("definition"),u(m)}function u(m){return so.call(r,e,o,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(m)}function o(m){return a=Kt(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),m===58?(e.enter("definitionMarker"),e.consume(m),e.exit("definitionMarker"),l):n(m)}function l(m){return Ge(m)?An(e,c)(m):c(m)}function c(m){return uo(e,f,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(m)}function f(m){return e.attempt(cd,d,d)(m)}function d(m){return be(m)?Se(e,h,"whitespace")(m):h(m)}function h(m){return m===null||ne(m)?(e.exit("definition"),r.parser.defined.push(a),t(m)):n(m)}}function dd(e,t,n){return r;function r(o){return Ge(o)?An(e,a)(o):n(o)}function a(o){return oo(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(o)}function i(o){return be(o)?Se(e,u,"whitespace")(o):u(o)}function u(o){return o===null||ne(o)?t(o):n(o)}}const hd={name:"hardBreakEscape",tokenize:md};function md(e,t,n){return r;function r(i){return e.enter("hardBreakEscape"),e.consume(i),a}function a(i){return ne(i)?(e.exit("hardBreakEscape"),t(i)):n(i)}}const pd={name:"headingAtx",tokenize:bd,resolve:Ed};function Ed(e,t){let n=e.length-2,r=3,a,i;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(a={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},i={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},ft(e,r,n-r+1,[["enter",a,t],["enter",i,t],["exit",i,t],["exit",a,t]])),e}function bd(e,t,n){let r=0;return a;function a(f){return e.enter("atxHeading"),i(f)}function i(f){return e.enter("atxHeadingSequence"),u(f)}function u(f){return f===35&&r++<6?(e.consume(f),u):f===null||Ge(f)?(e.exit("atxHeadingSequence"),o(f)):n(f)}function o(f){return f===35?(e.enter("atxHeadingSequence"),l(f)):f===null||ne(f)?(e.exit("atxHeading"),t(f)):be(f)?Se(e,o,"whitespace")(f):(e.enter("atxHeadingText"),c(f))}function l(f){return f===35?(e.consume(f),l):(e.exit("atxHeadingSequence"),o(f))}function c(f){return f===null||f===35||Ge(f)?(e.exit("atxHeadingText"),o(f)):(e.consume(f),c)}}const gd=["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"],Ji=["pre","script","style","textarea"],Td={name:"htmlFlow",tokenize:xd,resolveTo:yd,concrete:!0},Ad={tokenize:Cd,partial:!0},_d={tokenize:Sd,partial:!0};function yd(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function xd(e,t,n){const r=this;let a,i,u,o,l;return c;function c(g){return f(g)}function f(g){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(g),d}function d(g){return g===33?(e.consume(g),h):g===47?(e.consume(g),i=!0,A):g===63?(e.consume(g),a=3,r.interrupt?t:p):lt(g)?(e.consume(g),u=String.fromCharCode(g),v):n(g)}function h(g){return g===45?(e.consume(g),a=2,m):g===91?(e.consume(g),a=5,o=0,_):lt(g)?(e.consume(g),a=4,r.interrupt?t:p):n(g)}function m(g){return g===45?(e.consume(g),r.interrupt?t:p):n(g)}function _(g){const W="CDATA[";return g===W.charCodeAt(o++)?(e.consume(g),o===W.length?r.interrupt?t:F:_):n(g)}function A(g){return lt(g)?(e.consume(g),u=String.fromCharCode(g),v):n(g)}function v(g){if(g===null||g===47||g===62||Ge(g)){const W=g===47,K=u.toLowerCase();return!W&&!i&&Ji.includes(K)?(a=1,r.interrupt?t(g):F(g)):gd.includes(u.toLowerCase())?(a=6,W?(e.consume(g),x):r.interrupt?t(g):F(g)):(a=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(g):i?P(g):R(g))}return g===45||We(g)?(e.consume(g),u+=String.fromCharCode(g),v):n(g)}function x(g){return g===62?(e.consume(g),r.interrupt?t:F):n(g)}function P(g){return be(g)?(e.consume(g),P):z(g)}function R(g){return g===47?(e.consume(g),z):g===58||g===95||lt(g)?(e.consume(g),B):be(g)?(e.consume(g),R):z(g)}function B(g){return g===45||g===46||g===58||g===95||We(g)?(e.consume(g),B):C(g)}function C(g){return g===61?(e.consume(g),O):be(g)?(e.consume(g),C):R(g)}function O(g){return g===null||g===60||g===61||g===62||g===96?n(g):g===34||g===39?(e.consume(g),l=g,Q):be(g)?(e.consume(g),O):de(g)}function Q(g){return g===l?(e.consume(g),l=null,re):g===null||ne(g)?n(g):(e.consume(g),Q)}function de(g){return g===null||g===34||g===39||g===47||g===60||g===61||g===62||g===96||Ge(g)?C(g):(e.consume(g),de)}function re(g){return g===47||g===62||be(g)?R(g):n(g)}function z(g){return g===62?(e.consume(g),j):n(g)}function j(g){return g===null||ne(g)?F(g):be(g)?(e.consume(g),j):n(g)}function F(g){return g===45&&a===2?(e.consume(g),he):g===60&&a===1?(e.consume(g),se):g===62&&a===4?(e.consume(g),H):g===63&&a===3?(e.consume(g),p):g===93&&a===5?(e.consume(g),Le):ne(g)&&(a===6||a===7)?(e.exit("htmlFlowData"),e.check(Ad,G,$)(g)):g===null||ne(g)?(e.exit("htmlFlowData"),$(g)):(e.consume(g),F)}function $(g){return e.check(_d,Y,G)(g)}function Y(g){return e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),Z}function Z(g){return g===null||ne(g)?$(g):(e.enter("htmlFlowData"),F(g))}function he(g){return g===45?(e.consume(g),p):F(g)}function se(g){return g===47?(e.consume(g),u="",Ee):F(g)}function Ee(g){if(g===62){const W=u.toLowerCase();return Ji.includes(W)?(e.consume(g),H):F(g)}return lt(g)&&u.length<8?(e.consume(g),u+=String.fromCharCode(g),Ee):F(g)}function Le(g){return g===93?(e.consume(g),p):F(g)}function p(g){return g===62?(e.consume(g),H):g===45&&a===2?(e.consume(g),p):F(g)}function H(g){return g===null||ne(g)?(e.exit("htmlFlowData"),G(g)):(e.consume(g),H)}function G(g){return e.exit("htmlFlow"),t(g)}}function Sd(e,t,n){const r=this;return a;function a(u){return ne(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),i):n(u)}function i(u){return r.parser.lazy[r.now().line]?n(u):t(u)}}function Cd(e,t,n){return r;function r(a){return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),e.attempt(_r,t,n)}}const Id={name:"htmlText",tokenize:Nd};function Nd(e,t,n){const r=this;let a,i,u;return o;function o(p){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(p),l}function l(p){return p===33?(e.consume(p),c):p===47?(e.consume(p),C):p===63?(e.consume(p),R):lt(p)?(e.consume(p),de):n(p)}function c(p){return p===45?(e.consume(p),f):p===91?(e.consume(p),i=0,_):lt(p)?(e.consume(p),P):n(p)}function f(p){return p===45?(e.consume(p),m):n(p)}function d(p){return p===null?n(p):p===45?(e.consume(p),h):ne(p)?(u=d,se(p)):(e.consume(p),d)}function h(p){return p===45?(e.consume(p),m):d(p)}function m(p){return p===62?he(p):p===45?h(p):d(p)}function _(p){const H="CDATA[";return p===H.charCodeAt(i++)?(e.consume(p),i===H.length?A:_):n(p)}function A(p){return p===null?n(p):p===93?(e.consume(p),v):ne(p)?(u=A,se(p)):(e.consume(p),A)}function v(p){return p===93?(e.consume(p),x):A(p)}function x(p){return p===62?he(p):p===93?(e.consume(p),x):A(p)}function P(p){return p===null||p===62?he(p):ne(p)?(u=P,se(p)):(e.consume(p),P)}function R(p){return p===null?n(p):p===63?(e.consume(p),B):ne(p)?(u=R,se(p)):(e.consume(p),R)}function B(p){return p===62?he(p):R(p)}function C(p){return lt(p)?(e.consume(p),O):n(p)}function O(p){return p===45||We(p)?(e.consume(p),O):Q(p)}function Q(p){return ne(p)?(u=Q,se(p)):be(p)?(e.consume(p),Q):he(p)}function de(p){return p===45||We(p)?(e.consume(p),de):p===47||p===62||Ge(p)?re(p):n(p)}function re(p){return p===47?(e.consume(p),he):p===58||p===95||lt(p)?(e.consume(p),z):ne(p)?(u=re,se(p)):be(p)?(e.consume(p),re):he(p)}function z(p){return p===45||p===46||p===58||p===95||We(p)?(e.consume(p),z):j(p)}function j(p){return p===61?(e.consume(p),F):ne(p)?(u=j,se(p)):be(p)?(e.consume(p),j):re(p)}function F(p){return p===null||p===60||p===61||p===62||p===96?n(p):p===34||p===39?(e.consume(p),a=p,$):ne(p)?(u=F,se(p)):be(p)?(e.consume(p),F):(e.consume(p),Y)}function $(p){return p===a?(e.consume(p),a=void 0,Z):p===null?n(p):ne(p)?(u=$,se(p)):(e.consume(p),$)}function Y(p){return p===null||p===34||p===39||p===60||p===61||p===96?n(p):p===47||p===62||Ge(p)?re(p):(e.consume(p),Y)}function Z(p){return p===47||p===62||Ge(p)?re(p):n(p)}function he(p){return p===62?(e.consume(p),e.exit("htmlTextData"),e.exit("htmlText"),t):n(p)}function se(p){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),Ee}function Ee(p){return be(p)?Se(e,Le,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(p):Le(p)}function Le(p){return e.enter("htmlTextData"),u(p)}}const Qa={name:"labelEnd",tokenize:Dd,resolveTo:Pd,resolveAll:vd},Od={tokenize:kd},Ld={tokenize:wd},Rd={tokenize:Md};function vd(e){let t=-1;for(;++t<e.length;){const n=e[t][1];(n.type==="labelImage"||n.type==="labelLink"||n.type==="labelEnd")&&(e.splice(t+1,n.type==="labelImage"?4:2),n.type="data",t++)}return e}function Pd(e,t){let n=e.length,r=0,a,i,u,o;for(;n--;)if(a=e[n][1],i){if(a.type==="link"||a.type==="labelLink"&&a._inactive)break;e[n][0]==="enter"&&a.type==="labelLink"&&(a._inactive=!0)}else if(u){if(e[n][0]==="enter"&&(a.type==="labelImage"||a.type==="labelLink")&&!a._balanced&&(i=n,a.type!=="labelLink")){r=2;break}}else a.type==="labelEnd"&&(u=n);const l={type:e[i][1].type==="labelLink"?"link":"image",start:Object.assign({},e[i][1].start),end:Object.assign({},e[e.length-1][1].end)},c={type:"label",start:Object.assign({},e[i][1].start),end:Object.assign({},e[u][1].end)},f={type:"labelText",start:Object.assign({},e[i+r+2][1].end),end:Object.assign({},e[u-2][1].start)};return o=[["enter",l,t],["enter",c,t]],o=Qe(o,e.slice(i+1,i+r+3)),o=Qe(o,[["enter",f,t]]),o=Qe(o,Xa(t.parser.constructs.insideSpan.null,e.slice(i+r+4,u-3),t)),o=Qe(o,[["exit",f,t],e[u-2],e[u-1],["exit",c,t]]),o=Qe(o,e.slice(u+1)),o=Qe(o,[["exit",l,t]]),ft(e,i,e.length,o),e}function Dd(e,t,n){const r=this;let a=r.events.length,i,u;for(;a--;)if((r.events[a][1].type==="labelImage"||r.events[a][1].type==="labelLink")&&!r.events[a][1]._balanced){i=r.events[a][1];break}return o;function o(h){return i?i._inactive?d(h):(u=r.parser.defined.includes(Kt(r.sliceSerialize({start:i.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(h),e.exit("labelMarker"),e.exit("labelEnd"),l):n(h)}function l(h){return h===40?e.attempt(Od,f,u?f:d)(h):h===91?e.attempt(Ld,f,u?c:d)(h):u?f(h):d(h)}function c(h){return e.attempt(Rd,f,d)(h)}function f(h){return t(h)}function d(h){return i._balanced=!0,n(h)}}function kd(e,t,n){return r;function r(d){return e.enter("resource"),e.enter("resourceMarker"),e.consume(d),e.exit("resourceMarker"),a}function a(d){return Ge(d)?An(e,i)(d):i(d)}function i(d){return d===41?f(d):uo(e,u,o,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(d)}function u(d){return Ge(d)?An(e,l)(d):f(d)}function o(d){return n(d)}function l(d){return d===34||d===39||d===40?oo(e,c,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(d):f(d)}function c(d){return Ge(d)?An(e,f)(d):f(d)}function f(d){return d===41?(e.enter("resourceMarker"),e.consume(d),e.exit("resourceMarker"),e.exit("resource"),t):n(d)}}function wd(e,t,n){const r=this;return a;function a(o){return so.call(r,e,i,u,"reference","referenceMarker","referenceString")(o)}function i(o){return r.parser.defined.includes(Kt(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(o):n(o)}function u(o){return n(o)}}function Md(e,t,n){return r;function r(i){return e.enter("reference"),e.enter("referenceMarker"),e.consume(i),e.exit("referenceMarker"),a}function a(i){return i===93?(e.enter("referenceMarker"),e.consume(i),e.exit("referenceMarker"),e.exit("reference"),t):n(i)}}const Bd={name:"labelStartImage",tokenize:Fd,resolveAll:Qa.resolveAll};function Fd(e,t,n){const r=this;return a;function a(o){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(o),e.exit("labelImageMarker"),i}function i(o){return o===91?(e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelImage"),u):n(o)}function u(o){return o===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(o):t(o)}}const Hd={name:"labelStartLink",tokenize:Ud,resolveAll:Qa.resolveAll};function Ud(e,t,n){const r=this;return a;function a(u){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(u),e.exit("labelMarker"),e.exit("labelLink"),i}function i(u){return u===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(u):t(u)}}const Ur={name:"lineEnding",tokenize:jd};function jd(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),Se(e,t,"linePrefix")}}const er={name:"thematicBreak",tokenize:$d};function $d(e,t,n){let r=0,a;return i;function i(c){return e.enter("thematicBreak"),u(c)}function u(c){return a=c,o(c)}function o(c){return c===a?(e.enter("thematicBreakSequence"),l(c)):r>=3&&(c===null||ne(c))?(e.exit("thematicBreak"),t(c)):n(c)}function l(c){return c===a?(e.consume(c),r++,l):(e.exit("thematicBreakSequence"),be(c)?Se(e,o,"whitespace")(c):o(c))}}const $e={name:"list",tokenize:zd,continuation:{tokenize:Vd},exit:Wd},Yd={tokenize:Xd,partial:!0},Gd={tokenize:qd,partial:!0};function zd(e,t,n){const r=this,a=r.events[r.events.length-1];let i=a&&a[1].type==="linePrefix"?a[2].sliceSerialize(a[1],!0).length:0,u=0;return o;function o(m){const _=r.containerState.type||(m===42||m===43||m===45?"listUnordered":"listOrdered");if(_==="listUnordered"?!r.containerState.marker||m===r.containerState.marker:_a(m)){if(r.containerState.type||(r.containerState.type=_,e.enter(_,{_container:!0})),_==="listUnordered")return e.enter("listItemPrefix"),m===42||m===45?e.check(er,n,c)(m):c(m);if(!r.interrupt||m===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(m)}return n(m)}function l(m){return _a(m)&&++u<10?(e.consume(m),l):(!r.interrupt||u<2)&&(r.containerState.marker?m===r.containerState.marker:m===41||m===46)?(e.exit("listItemValue"),c(m)):n(m)}function c(m){return e.enter("listItemMarker"),e.consume(m),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||m,e.check(_r,r.interrupt?n:f,e.attempt(Yd,h,d))}function f(m){return r.containerState.initialBlankLine=!0,i++,h(m)}function d(m){return be(m)?(e.enter("listItemPrefixWhitespace"),e.consume(m),e.exit("listItemPrefixWhitespace"),h):n(m)}function h(m){return r.containerState.size=i+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(m)}}function Vd(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(_r,a,i);function a(o){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Se(e,t,"listItemIndent",r.containerState.size+1)(o)}function i(o){return r.containerState.furtherBlankLines||!be(o)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,u(o)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(Gd,t,u)(o))}function u(o){return r.containerState._closeFlow=!0,r.interrupt=void 0,Se(e,e.attempt($e,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}function qd(e,t,n){const r=this;return Se(e,a,"listItemIndent",r.containerState.size+1);function a(i){const u=r.events[r.events.length-1];return u&&u[1].type==="listItemIndent"&&u[2].sliceSerialize(u[1],!0).length===r.containerState.size?t(i):n(i)}}function Wd(e){e.exit(this.containerState.type)}function Xd(e,t,n){const r=this;return Se(e,a,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function a(i){const u=r.events[r.events.length-1];return!be(i)&&u&&u[1].type==="listItemPrefixWhitespace"?t(i):n(i)}}const eu={name:"setextUnderline",tokenize:Kd,resolveTo:Qd};function Qd(e,t){let n=e.length,r,a,i;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(a=n)}else e[n][1].type==="content"&&e.splice(n,1),!i&&e[n][1].type==="definition"&&(i=n);const u={type:"setextHeading",start:Object.assign({},e[a][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[a][1].type="setextHeadingText",i?(e.splice(a,0,["enter",u,t]),e.splice(i+1,0,["exit",e[r][1],t]),e[r][1].end=Object.assign({},e[i][1].end)):e[r][1]=u,e.push(["exit",u,t]),e}function Kd(e,t,n){const r=this;let a;return i;function i(c){let f=r.events.length,d;for(;f--;)if(r.events[f][1].type!=="lineEnding"&&r.events[f][1].type!=="linePrefix"&&r.events[f][1].type!=="content"){d=r.events[f][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||d)?(e.enter("setextHeadingLine"),a=c,u(c)):n(c)}function u(c){return e.enter("setextHeadingLineSequence"),o(c)}function o(c){return c===a?(e.consume(c),o):(e.exit("setextHeadingLineSequence"),be(c)?Se(e,l,"lineSuffix")(c):l(c))}function l(c){return c===null||ne(c)?(e.exit("setextHeadingLine"),t(c)):n(c)}}const Zd={tokenize:Jd};function Jd(e){const t=this,n=e.attempt(_r,r,e.attempt(this.parser.constructs.flowInitial,a,Se(e,e.attempt(this.parser.constructs.flow,a,e.attempt(ad,a)),"linePrefix")));return n;function r(i){if(i===null){e.consume(i);return}return e.enter("lineEndingBlank"),e.consume(i),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function a(i){if(i===null){e.consume(i);return}return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const eh={resolveAll:co()},th=lo("string"),nh=lo("text");function lo(e){return{tokenize:t,resolveAll:co(e==="text"?rh:void 0)};function t(n){const r=this,a=this.parser.constructs[e],i=n.attempt(a,u,o);return u;function u(f){return c(f)?i(f):o(f)}function o(f){if(f===null){n.consume(f);return}return n.enter("data"),n.consume(f),l}function l(f){return c(f)?(n.exit("data"),i(f)):(n.consume(f),l)}function c(f){if(f===null)return!0;const d=a[f];let h=-1;if(d)for(;++h<d.length;){const m=d[h];if(!m.previous||m.previous.call(r,r.previous))return!0}return!1}}}function co(e){return t;function t(n,r){let a=-1,i;for(;++a<=n.length;)i===void 0?n[a]&&n[a][1].type==="data"&&(i=a,a++):(!n[a]||n[a][1].type!=="data")&&(a!==i+2&&(n[i][1].end=n[a-1][1].end,n.splice(i+2,a-i-2),a=i+2),i=void 0);return e?e(n,r):n}}function rh(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const r=e[n-1][1],a=t.sliceStream(r);let i=a.length,u=-1,o=0,l;for(;i--;){const c=a[i];if(typeof c=="string"){for(u=c.length;c.charCodeAt(u-1)===32;)o++,u--;if(u)break;u=-1}else if(c===-2)l=!0,o++;else if(c!==-1){i++;break}}if(o){const c={type:n===e.length||l||o<2?"lineSuffix":"hardBreakTrailing",start:{line:r.end.line,column:r.end.column-o,offset:r.end.offset-o,_index:r.start._index+i,_bufferIndex:i?u:r.start._bufferIndex+u},end:Object.assign({},r.end)};r.end=Object.assign({},c.start),r.start.offset===r.end.offset?Object.assign(r,c):(e.splice(n,0,["enter",c,t],["exit",c,t]),n+=2)}n++}return e}function ah(e,t,n){let r=Object.assign(n?Object.assign({},n):{line:1,column:1,offset:0},{_index:0,_bufferIndex:-1});const a={},i=[];let u=[],o=[];const l={consume:P,enter:R,exit:B,attempt:Q(C),check:Q(O),interrupt:Q(O,{interrupt:!0})},c={previous:null,code:null,containerState:{},events:[],parser:e,sliceStream:m,sliceSerialize:h,now:_,defineSkip:A,write:d};let f=t.tokenize.call(c,l);return t.resolveAll&&i.push(t),c;function d(j){return u=Qe(u,j),v(),u[u.length-1]!==null?[]:(de(t,0),c.events=Xa(i,c.events,c),c.events)}function h(j,F){return uh(m(j),F)}function m(j){return ih(u,j)}function _(){const{line:j,column:F,offset:$,_index:Y,_bufferIndex:Z}=r;return{line:j,column:F,offset:$,_index:Y,_bufferIndex:Z}}function A(j){a[j.line]=j.column,z()}function v(){let j;for(;r._index<u.length;){const F=u[r._index];if(typeof F=="string")for(j=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===j&&r._bufferIndex<F.length;)x(F.charCodeAt(r._bufferIndex));else x(F)}}function x(j){f=f(j)}function P(j){ne(j)?(r.line++,r.column=1,r.offset+=j===-3?2:1,z()):j!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===u[r._index].length&&(r._bufferIndex=-1,r._index++)),c.previous=j}function R(j,F){const $=F||{};return $.type=j,$.start=_(),c.events.push(["enter",$,c]),o.push($),$}function B(j){const F=o.pop();return F.end=_(),c.events.push(["exit",F,c]),F}function C(j,F){de(j,F.from)}function O(j,F){F.restore()}function Q(j,F){return $;function $(Y,Z,he){let se,Ee,Le,p;return Array.isArray(Y)?G(Y):"tokenize"in Y?G([Y]):H(Y);function H(V){return J;function J(ee){const te=ee!==null&&V[ee],ae=ee!==null&&V.null,Oe=[...Array.isArray(te)?te:te?[te]:[],...Array.isArray(ae)?ae:ae?[ae]:[]];return G(Oe)(ee)}}function G(V){return se=V,Ee=0,V.length===0?he:g(V[Ee])}function g(V){return J;function J(ee){return p=re(),Le=V,V.partial||(c.currentConstruct=V),V.name&&c.parser.constructs.disable.null.includes(V.name)?K():V.tokenize.call(F?Object.assign(Object.create(c),F):c,l,W,K)(ee)}}function W(V){return j(Le,p),Z}function K(V){return p.restore(),++Ee<se.length?g(se[Ee]):he}}}function de(j,F){j.resolveAll&&!i.includes(j)&&i.push(j),j.resolve&&ft(c.events,F,c.events.length-F,j.resolve(c.events.slice(F),c)),j.resolveTo&&(c.events=j.resolveTo(c.events,c))}function re(){const j=_(),F=c.previous,$=c.currentConstruct,Y=c.events.length,Z=Array.from(o);return{restore:he,from:Y};function he(){r=j,c.previous=F,c.currentConstruct=$,c.events.length=Y,o=Z,z()}}function z(){r.line in a&&r.column<2&&(r.column=a[r.line],r.offset+=a[r.line]-1)}}function ih(e,t){const n=t.start._index,r=t.start._bufferIndex,a=t.end._index,i=t.end._bufferIndex;let u;if(n===a)u=[e[n].slice(r,i)];else{if(u=e.slice(n,a),r>-1){const o=u[0];typeof o=="string"?u[0]=o.slice(r):u.shift()}i>0&&u.push(e[a].slice(0,i))}return u}function uh(e,t){let n=-1;const r=[];let a;for(;++n<e.length;){const i=e[n];let u;if(typeof i=="string")u=i;else switch(i){case-5:{u="\r";break}case-4:{u=`
|
|
50
50
|
`;break}case-3:{u=`\r
|
|
51
|
-
`;break}case-2:{u=t?" ":" ";break}case-1:{if(!t&&a)continue;u=" ";break}default:u=String.fromCharCode(i)}a=i===-2,r.push(u)}return r.join("")}const uh={42:$e,43:$e,45:$e,48:$e,49:$e,50:$e,51:$e,52:$e,53:$e,54:$e,55:$e,56:$e,57:$e,62:to},sh={91:od},oh={[-2]:Hr,[-1]:Hr,32:Hr},lh={35:md,42:Jn,45:[eu,Jn],60:gd,61:eu,95:Jn,96:Zi,126:Zi},ch={38:ro,92:no},fh={[-5]:Ur,[-4]:Ur,[-3]:Ur,33:Md,38:ro,42:ya,60:[H0,Cd],91:Fd,92:[dd,no],93:Qa,95:ya,96:Z0},dh={null:[ya,Jd]},hh={null:[42,95]},mh={null:[]},ph=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:hh,contentInitial:sh,disable:mh,document:uh,flow:lh,flowInitial:oh,insideSpan:dh,string:ch,text:fh},Symbol.toStringTag,{value:"Module"}));function Eh(e){const n=S0([ph,...(e||{}).extensions||[]]),r={defined:[],lazy:{},constructs:n,content:a(P0),document:a(k0),flow:a(Kd),string:a(eh),text:a(th)};return r;function a(i){return u;function u(o){return rh(r,i,o)}}}function bh(e){for(;!ao(e););return e}const tu=/[\0\t\n\r]/g;function gh(){let e=1,t="",n=!0,r;return a;function a(i,u,o){const l=[];let c,f,d,h,m;for(i=t+(typeof i=="string"?i.toString():new TextDecoder(u||void 0).decode(i)),d=0,t="",n&&(i.charCodeAt(0)===65279&&d++,n=void 0);d<i.length;){if(tu.lastIndex=d,c=tu.exec(i),h=c&&c.index!==void 0?c.index:i.length,m=i.charCodeAt(h),!c){t=i.slice(d);break}if(m===10&&d===h&&r)l.push(-3),r=void 0;else switch(r&&(l.push(-5),r=void 0),d<h&&(l.push(i.slice(d,h)),e+=h-d),m){case 0:{l.push(65533),e++;break}case 9:{for(f=Math.ceil(e/4)*4,l.push(-2);e++<f;)l.push(-1);break}case 10:{l.push(-4),e=1;break}default:r=!0,e=1}d=h+1}return o&&(r&&l.push(-5),t&&l.push(t),l.push(null)),l}}const Th=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Ah(e){return e.replace(Th,_h)}function _h(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const a=n.charCodeAt(1),i=a===120||a===88;return eo(n.slice(i?2:1),i?16:10)}return Wa(n)||e}const co={}.hasOwnProperty;function yh(e,t,n){return typeof t!="string"&&(n=t,t=void 0),xh(n)(bh(Eh(n).document().write(gh()(e,t,!0))))}function xh(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:i(It),autolinkProtocol:re,autolinkEmail:re,atxHeading:i(ke),blockQuote:i(te),characterEscape:re,characterReference:re,codeFenced:i(ae),codeFencedFenceInfo:u,codeFencedFenceMeta:u,codeIndented:i(ae,u),codeText:i(Ne,u),codeTextData:re,data:re,codeFlowValue:re,definition:i(U),definitionDestinationString:u,definitionLabelString:u,definitionTitleString:u,emphasis:i(Re),hardBreakEscape:i(ze),hardBreakTrailing:i(ze),htmlFlow:i(Ct,u),htmlFlowData:re,htmlText:i(Ct,u),htmlTextData:re,image:i(He),label:u,link:i(It),listItem:i(ue),listItemValue:h,listOrdered:i(Nt,d),listUnordered:i(Nt),paragraph:i(ce),reference:g,referenceString:u,resourceDestinationString:u,resourceTitleString:u,setextHeading:i(ke),strong:i(_e),thematicBreak:i(Oe)},exit:{atxHeading:l(),atxHeadingSequence:C,autolink:l(),autolinkEmail:ee,autolinkProtocol:J,blockQuote:l(),characterEscapeValue:z,characterReferenceMarkerHexadecimal:K,characterReferenceMarkerNumeric:K,characterReferenceValue:V,codeFenced:l(v),codeFencedFence:A,codeFencedFenceInfo:m,codeFencedFenceMeta:y,codeFlowValue:z,codeIndented:l(x),codeText:l(Z),codeTextData:z,data:z,definition:l(),definitionDestinationString:B,definitionLabelString:P,definitionTitleString:R,emphasis:l(),hardBreakEscape:l(F),hardBreakTrailing:l(F),htmlFlow:l($),htmlFlowData:z,htmlText:l(Y),htmlTextData:z,image:l(se),label:Le,labelText:Ee,lineEnding:j,link:l(he),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:W,resourceDestinationString:p,resourceTitleString:H,resource:G,setextHeading:l(de),setextHeadingLineSequence:Q,setextHeadingText:N,strong:l(),thematicBreak:l()}};fo(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(I){let k={type:"root",children:[]};const X={stack:[k],tokenStack:[],config:t,enter:o,exit:c,buffer:u,resume:f,data:n},le=[];let ye=-1;for(;++ye<I.length;)if(I[ye][1].type==="listOrdered"||I[ye][1].type==="listUnordered")if(I[ye][0]==="enter")le.push(ye);else{const nt=le.pop();ye=a(I,nt,ye)}for(ye=-1;++ye<I.length;){const nt=t[I[ye][0]];co.call(nt,I[ye][1].type)&&nt[I[ye][1].type].call(Object.assign({sliceSerialize:I[ye][2].sliceSerialize},X),I[ye][1])}if(X.tokenStack.length>0){const nt=X.tokenStack[X.tokenStack.length-1];(nt[1]||nu).call(X,void 0,nt[0])}for(k.position={start:bt(I.length>0?I[0][1].start:{line:1,column:1,offset:0}),end:bt(I.length>0?I[I.length-2][1].end:{line:1,column:1,offset:0})},ye=-1;++ye<t.transforms.length;)k=t.transforms[ye](k)||k;return k}function a(I,k,X){let le=k-1,ye=-1,nt=!1,Ot,mt,cn,fn;for(;++le<=X;){const Ve=I[le];switch(Ve[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Ve[0]==="enter"?ye++:ye--,fn=void 0;break}case"lineEndingBlank":{Ve[0]==="enter"&&(Ot&&!fn&&!ye&&!cn&&(cn=le),fn=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:fn=void 0}if(!ye&&Ve[0]==="enter"&&Ve[1].type==="listItemPrefix"||ye===-1&&Ve[0]==="exit"&&(Ve[1].type==="listUnordered"||Ve[1].type==="listOrdered")){if(Ot){let $t=le;for(mt=void 0;$t--;){const pt=I[$t];if(pt[1].type==="lineEnding"||pt[1].type==="lineEndingBlank"){if(pt[0]==="exit")continue;mt&&(I[mt][1].type="lineEndingBlank",nt=!0),pt[1].type="lineEnding",mt=$t}else if(!(pt[1].type==="linePrefix"||pt[1].type==="blockQuotePrefix"||pt[1].type==="blockQuotePrefixWhitespace"||pt[1].type==="blockQuoteMarker"||pt[1].type==="listItemIndent"))break}cn&&(!mt||cn<mt)&&(Ot._spread=!0),Ot.end=Object.assign({},mt?I[mt][1].start:Ve[1].end),I.splice(mt||le,0,["exit",Ot,Ve[2]]),le++,X++}if(Ve[1].type==="listItemPrefix"){const $t={type:"listItem",_spread:!1,start:Object.assign({},Ve[1].start),end:void 0};Ot=$t,I.splice(le,0,["enter",$t,Ve[2]]),le++,X++,cn=void 0,fn=!0}}}return I[k][1]._spread=nt,X}function i(I,k){return X;function X(le){o.call(this,I(le),le),k&&k.call(this,le)}}function u(){this.stack.push({type:"fragment",children:[]})}function o(I,k,X){this.stack[this.stack.length-1].children.push(I),this.stack.push(I),this.tokenStack.push([k,X]),I.position={start:bt(k.start),end:void 0}}function l(I){return k;function k(X){I&&I.call(this,X),c.call(this,X)}}function c(I,k){const X=this.stack.pop(),le=this.tokenStack.pop();if(le)le[0].type!==I.type&&(k?k.call(this,I,le[0]):(le[1]||nu).call(this,I,le[0]));else throw new Error("Cannot close `"+I.type+"` ("+Tn({start:I.start,end:I.end})+"): it’s not open");X.position.end=bt(I.end)}function f(){return y0(this.stack.pop())}function d(){this.data.expectingFirstListItemValue=!0}function h(I){if(this.data.expectingFirstListItemValue){const k=this.stack[this.stack.length-2];k.start=Number.parseInt(this.sliceSerialize(I),10),this.data.expectingFirstListItemValue=void 0}}function m(){const I=this.resume(),k=this.stack[this.stack.length-1];k.lang=I}function y(){const I=this.resume(),k=this.stack[this.stack.length-1];k.meta=I}function A(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function v(){const I=this.resume(),k=this.stack[this.stack.length-1];k.value=I.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function x(){const I=this.resume(),k=this.stack[this.stack.length-1];k.value=I.replace(/(\r?\n|\r)$/g,"")}function P(I){const k=this.resume(),X=this.stack[this.stack.length-1];X.label=k,X.identifier=Kt(this.sliceSerialize(I)).toLowerCase()}function R(){const I=this.resume(),k=this.stack[this.stack.length-1];k.title=I}function B(){const I=this.resume(),k=this.stack[this.stack.length-1];k.url=I}function C(I){const k=this.stack[this.stack.length-1];if(!k.depth){const X=this.sliceSerialize(I).length;k.depth=X}}function N(){this.data.setextHeadingSlurpLineEnding=!0}function Q(I){const k=this.stack[this.stack.length-1];k.depth=this.sliceSerialize(I).codePointAt(0)===61?1:2}function de(){this.data.setextHeadingSlurpLineEnding=void 0}function re(I){const X=this.stack[this.stack.length-1].children;let le=X[X.length-1];(!le||le.type!=="text")&&(le=ge(),le.position={start:bt(I.start),end:void 0},X.push(le)),this.stack.push(le)}function z(I){const k=this.stack.pop();k.value+=this.sliceSerialize(I),k.position.end=bt(I.end)}function j(I){const k=this.stack[this.stack.length-1];if(this.data.atHardBreak){const X=k.children[k.children.length-1];X.position.end=bt(I.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(k.type)&&(re.call(this,I),z.call(this,I))}function F(){this.data.atHardBreak=!0}function $(){const I=this.resume(),k=this.stack[this.stack.length-1];k.value=I}function Y(){const I=this.resume(),k=this.stack[this.stack.length-1];k.value=I}function Z(){const I=this.resume(),k=this.stack[this.stack.length-1];k.value=I}function he(){const I=this.stack[this.stack.length-1];if(this.data.inReference){const k=this.data.referenceType||"shortcut";I.type+="Reference",I.referenceType=k,delete I.url,delete I.title}else delete I.identifier,delete I.label;this.data.referenceType=void 0}function se(){const I=this.stack[this.stack.length-1];if(this.data.inReference){const k=this.data.referenceType||"shortcut";I.type+="Reference",I.referenceType=k,delete I.url,delete I.title}else delete I.identifier,delete I.label;this.data.referenceType=void 0}function Ee(I){const k=this.sliceSerialize(I),X=this.stack[this.stack.length-2];X.label=Ah(k),X.identifier=Kt(k).toLowerCase()}function Le(){const I=this.stack[this.stack.length-1],k=this.resume(),X=this.stack[this.stack.length-1];if(this.data.inReference=!0,X.type==="link"){const le=I.children;X.children=le}else X.alt=k}function p(){const I=this.resume(),k=this.stack[this.stack.length-1];k.url=I}function H(){const I=this.resume(),k=this.stack[this.stack.length-1];k.title=I}function G(){this.data.inReference=void 0}function g(){this.data.referenceType="collapsed"}function W(I){const k=this.resume(),X=this.stack[this.stack.length-1];X.label=k,X.identifier=Kt(this.sliceSerialize(I)).toLowerCase(),this.data.referenceType="full"}function K(I){this.data.characterReferenceType=I.type}function V(I){const k=this.sliceSerialize(I),X=this.data.characterReferenceType;let le;X?(le=eo(k,X==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):le=Wa(k);const ye=this.stack.pop();ye.value+=le,ye.position.end=bt(I.end)}function J(I){z.call(this,I);const k=this.stack[this.stack.length-1];k.url=this.sliceSerialize(I)}function ee(I){z.call(this,I);const k=this.stack[this.stack.length-1];k.url="mailto:"+this.sliceSerialize(I)}function te(){return{type:"blockquote",children:[]}}function ae(){return{type:"code",lang:null,meta:null,value:""}}function Ne(){return{type:"inlineCode",value:""}}function U(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Re(){return{type:"emphasis",children:[]}}function ke(){return{type:"heading",depth:0,children:[]}}function ze(){return{type:"break"}}function Ct(){return{type:"html",value:""}}function He(){return{type:"image",title:null,url:"",alt:null}}function It(){return{type:"link",title:null,url:"",children:[]}}function Nt(I){return{type:"list",ordered:I.type==="listOrdered",start:null,spread:I._spread,children:[]}}function ue(I){return{type:"listItem",spread:I._spread,checked:null,children:[]}}function ce(){return{type:"paragraph",children:[]}}function _e(){return{type:"strong",children:[]}}function ge(){return{type:"text",value:""}}function Oe(){return{type:"thematicBreak"}}}function bt(e){return{line:e.line,column:e.column,offset:e.offset}}function fo(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?fo(e,r):Sh(e,r)}}function Sh(e,t){let n;for(n in t)if(co.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function nu(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Tn({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Tn({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Tn({start:t.start,end:t.end})+") is still open")}function Ch(e){const t=this;t.parser=n;function n(r){return yh(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function Ih(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function Nh(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
|
|
52
|
-
`}]}function
|
|
53
|
-
`:"",r={};t.lang&&(r.className=["language-"+t.lang]);let a={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(a.data={meta:t.meta}),e.patch(t,a),a=e.applyData(t,a),a={type:"element",tagName:"pre",properties:{},children:[a]},e.patch(t,a),a}function
|
|
51
|
+
`;break}case-2:{u=t?" ":" ";break}case-1:{if(!t&&a)continue;u=" ";break}default:u=String.fromCharCode(i)}a=i===-2,r.push(u)}return r.join("")}const sh={42:$e,43:$e,45:$e,48:$e,49:$e,50:$e,51:$e,52:$e,53:$e,54:$e,55:$e,56:$e,57:$e,62:no},oh={91:ld},lh={[-2]:Hr,[-1]:Hr,32:Hr},ch={35:pd,42:er,45:[eu,er],60:Td,61:eu,95:er,96:Zi,126:Zi},fh={38:ao,92:ro},dh={[-5]:Ur,[-4]:Ur,[-3]:Ur,33:Bd,38:ao,42:ya,60:[U0,Id],91:Hd,92:[hd,ro],93:Qa,95:ya,96:J0},hh={null:[ya,eh]},mh={null:[42,95]},ph={null:[]},Eh=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:mh,contentInitial:oh,disable:ph,document:sh,flow:ch,flowInitial:lh,insideSpan:hh,string:fh,text:dh},Symbol.toStringTag,{value:"Module"}));function bh(e){const n=C0([Eh,...(e||{}).extensions||[]]),r={defined:[],lazy:{},constructs:n,content:a(D0),document:a(w0),flow:a(Zd),string:a(th),text:a(nh)};return r;function a(i){return u;function u(o){return ah(r,i,o)}}}function gh(e){for(;!io(e););return e}const tu=/[\0\t\n\r]/g;function Th(){let e=1,t="",n=!0,r;return a;function a(i,u,o){const l=[];let c,f,d,h,m;for(i=t+(typeof i=="string"?i.toString():new TextDecoder(u||void 0).decode(i)),d=0,t="",n&&(i.charCodeAt(0)===65279&&d++,n=void 0);d<i.length;){if(tu.lastIndex=d,c=tu.exec(i),h=c&&c.index!==void 0?c.index:i.length,m=i.charCodeAt(h),!c){t=i.slice(d);break}if(m===10&&d===h&&r)l.push(-3),r=void 0;else switch(r&&(l.push(-5),r=void 0),d<h&&(l.push(i.slice(d,h)),e+=h-d),m){case 0:{l.push(65533),e++;break}case 9:{for(f=Math.ceil(e/4)*4,l.push(-2);e++<f;)l.push(-1);break}case 10:{l.push(-4),e=1;break}default:r=!0,e=1}d=h+1}return o&&(r&&l.push(-5),t&&l.push(t),l.push(null)),l}}const Ah=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function _h(e){return e.replace(Ah,yh)}function yh(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const a=n.charCodeAt(1),i=a===120||a===88;return to(n.slice(i?2:1),i?16:10)}return Wa(n)||e}const fo={}.hasOwnProperty;function xh(e,t,n){return typeof t!="string"&&(n=t,t=void 0),Sh(n)(gh(bh(n).document().write(Th()(e,t,!0))))}function Sh(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:i(It),autolinkProtocol:re,autolinkEmail:re,atxHeading:i(ke),blockQuote:i(te),characterEscape:re,characterReference:re,codeFenced:i(ae),codeFencedFenceInfo:u,codeFencedFenceMeta:u,codeIndented:i(ae,u),codeText:i(Oe,u),codeTextData:re,data:re,codeFlowValue:re,definition:i(U),definitionDestinationString:u,definitionLabelString:u,definitionTitleString:u,emphasis:i(Re),hardBreakEscape:i(ze),hardBreakTrailing:i(ze),htmlFlow:i(Ct,u),htmlFlowData:re,htmlText:i(Ct,u),htmlTextData:re,image:i(He),label:u,link:i(It),listItem:i(ue),listItemValue:h,listOrdered:i(Nt,d),listUnordered:i(Nt),paragraph:i(ce),reference:g,referenceString:u,resourceDestinationString:u,resourceTitleString:u,setextHeading:i(ke),strong:i(_e),thematicBreak:i(Ne)},exit:{atxHeading:l(),atxHeadingSequence:C,autolink:l(),autolinkEmail:ee,autolinkProtocol:J,blockQuote:l(),characterEscapeValue:z,characterReferenceMarkerHexadecimal:K,characterReferenceMarkerNumeric:K,characterReferenceValue:V,codeFenced:l(v),codeFencedFence:A,codeFencedFenceInfo:m,codeFencedFenceMeta:_,codeFlowValue:z,codeIndented:l(x),codeText:l(Z),codeTextData:z,data:z,definition:l(),definitionDestinationString:B,definitionLabelString:P,definitionTitleString:R,emphasis:l(),hardBreakEscape:l(F),hardBreakTrailing:l(F),htmlFlow:l($),htmlFlowData:z,htmlText:l(Y),htmlTextData:z,image:l(se),label:Le,labelText:Ee,lineEnding:j,link:l(he),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:W,resourceDestinationString:p,resourceTitleString:H,resource:G,setextHeading:l(de),setextHeadingLineSequence:Q,setextHeadingText:O,strong:l(),thematicBreak:l()}};ho(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(I){let k={type:"root",children:[]};const X={stack:[k],tokenStack:[],config:t,enter:o,exit:c,buffer:u,resume:f,data:n},le=[];let ye=-1;for(;++ye<I.length;)if(I[ye][1].type==="listOrdered"||I[ye][1].type==="listUnordered")if(I[ye][0]==="enter")le.push(ye);else{const nt=le.pop();ye=a(I,nt,ye)}for(ye=-1;++ye<I.length;){const nt=t[I[ye][0]];fo.call(nt,I[ye][1].type)&&nt[I[ye][1].type].call(Object.assign({sliceSerialize:I[ye][2].sliceSerialize},X),I[ye][1])}if(X.tokenStack.length>0){const nt=X.tokenStack[X.tokenStack.length-1];(nt[1]||nu).call(X,void 0,nt[0])}for(k.position={start:bt(I.length>0?I[0][1].start:{line:1,column:1,offset:0}),end:bt(I.length>0?I[I.length-2][1].end:{line:1,column:1,offset:0})},ye=-1;++ye<t.transforms.length;)k=t.transforms[ye](k)||k;return k}function a(I,k,X){let le=k-1,ye=-1,nt=!1,Ot,mt,cn,fn;for(;++le<=X;){const Ve=I[le];switch(Ve[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Ve[0]==="enter"?ye++:ye--,fn=void 0;break}case"lineEndingBlank":{Ve[0]==="enter"&&(Ot&&!fn&&!ye&&!cn&&(cn=le),fn=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:fn=void 0}if(!ye&&Ve[0]==="enter"&&Ve[1].type==="listItemPrefix"||ye===-1&&Ve[0]==="exit"&&(Ve[1].type==="listUnordered"||Ve[1].type==="listOrdered")){if(Ot){let $t=le;for(mt=void 0;$t--;){const pt=I[$t];if(pt[1].type==="lineEnding"||pt[1].type==="lineEndingBlank"){if(pt[0]==="exit")continue;mt&&(I[mt][1].type="lineEndingBlank",nt=!0),pt[1].type="lineEnding",mt=$t}else if(!(pt[1].type==="linePrefix"||pt[1].type==="blockQuotePrefix"||pt[1].type==="blockQuotePrefixWhitespace"||pt[1].type==="blockQuoteMarker"||pt[1].type==="listItemIndent"))break}cn&&(!mt||cn<mt)&&(Ot._spread=!0),Ot.end=Object.assign({},mt?I[mt][1].start:Ve[1].end),I.splice(mt||le,0,["exit",Ot,Ve[2]]),le++,X++}if(Ve[1].type==="listItemPrefix"){const $t={type:"listItem",_spread:!1,start:Object.assign({},Ve[1].start),end:void 0};Ot=$t,I.splice(le,0,["enter",$t,Ve[2]]),le++,X++,cn=void 0,fn=!0}}}return I[k][1]._spread=nt,X}function i(I,k){return X;function X(le){o.call(this,I(le),le),k&&k.call(this,le)}}function u(){this.stack.push({type:"fragment",children:[]})}function o(I,k,X){this.stack[this.stack.length-1].children.push(I),this.stack.push(I),this.tokenStack.push([k,X]),I.position={start:bt(k.start),end:void 0}}function l(I){return k;function k(X){I&&I.call(this,X),c.call(this,X)}}function c(I,k){const X=this.stack.pop(),le=this.tokenStack.pop();if(le)le[0].type!==I.type&&(k?k.call(this,I,le[0]):(le[1]||nu).call(this,I,le[0]));else throw new Error("Cannot close `"+I.type+"` ("+Tn({start:I.start,end:I.end})+"): it’s not open");X.position.end=bt(I.end)}function f(){return x0(this.stack.pop())}function d(){this.data.expectingFirstListItemValue=!0}function h(I){if(this.data.expectingFirstListItemValue){const k=this.stack[this.stack.length-2];k.start=Number.parseInt(this.sliceSerialize(I),10),this.data.expectingFirstListItemValue=void 0}}function m(){const I=this.resume(),k=this.stack[this.stack.length-1];k.lang=I}function _(){const I=this.resume(),k=this.stack[this.stack.length-1];k.meta=I}function A(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function v(){const I=this.resume(),k=this.stack[this.stack.length-1];k.value=I.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function x(){const I=this.resume(),k=this.stack[this.stack.length-1];k.value=I.replace(/(\r?\n|\r)$/g,"")}function P(I){const k=this.resume(),X=this.stack[this.stack.length-1];X.label=k,X.identifier=Kt(this.sliceSerialize(I)).toLowerCase()}function R(){const I=this.resume(),k=this.stack[this.stack.length-1];k.title=I}function B(){const I=this.resume(),k=this.stack[this.stack.length-1];k.url=I}function C(I){const k=this.stack[this.stack.length-1];if(!k.depth){const X=this.sliceSerialize(I).length;k.depth=X}}function O(){this.data.setextHeadingSlurpLineEnding=!0}function Q(I){const k=this.stack[this.stack.length-1];k.depth=this.sliceSerialize(I).codePointAt(0)===61?1:2}function de(){this.data.setextHeadingSlurpLineEnding=void 0}function re(I){const X=this.stack[this.stack.length-1].children;let le=X[X.length-1];(!le||le.type!=="text")&&(le=ge(),le.position={start:bt(I.start),end:void 0},X.push(le)),this.stack.push(le)}function z(I){const k=this.stack.pop();k.value+=this.sliceSerialize(I),k.position.end=bt(I.end)}function j(I){const k=this.stack[this.stack.length-1];if(this.data.atHardBreak){const X=k.children[k.children.length-1];X.position.end=bt(I.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(k.type)&&(re.call(this,I),z.call(this,I))}function F(){this.data.atHardBreak=!0}function $(){const I=this.resume(),k=this.stack[this.stack.length-1];k.value=I}function Y(){const I=this.resume(),k=this.stack[this.stack.length-1];k.value=I}function Z(){const I=this.resume(),k=this.stack[this.stack.length-1];k.value=I}function he(){const I=this.stack[this.stack.length-1];if(this.data.inReference){const k=this.data.referenceType||"shortcut";I.type+="Reference",I.referenceType=k,delete I.url,delete I.title}else delete I.identifier,delete I.label;this.data.referenceType=void 0}function se(){const I=this.stack[this.stack.length-1];if(this.data.inReference){const k=this.data.referenceType||"shortcut";I.type+="Reference",I.referenceType=k,delete I.url,delete I.title}else delete I.identifier,delete I.label;this.data.referenceType=void 0}function Ee(I){const k=this.sliceSerialize(I),X=this.stack[this.stack.length-2];X.label=_h(k),X.identifier=Kt(k).toLowerCase()}function Le(){const I=this.stack[this.stack.length-1],k=this.resume(),X=this.stack[this.stack.length-1];if(this.data.inReference=!0,X.type==="link"){const le=I.children;X.children=le}else X.alt=k}function p(){const I=this.resume(),k=this.stack[this.stack.length-1];k.url=I}function H(){const I=this.resume(),k=this.stack[this.stack.length-1];k.title=I}function G(){this.data.inReference=void 0}function g(){this.data.referenceType="collapsed"}function W(I){const k=this.resume(),X=this.stack[this.stack.length-1];X.label=k,X.identifier=Kt(this.sliceSerialize(I)).toLowerCase(),this.data.referenceType="full"}function K(I){this.data.characterReferenceType=I.type}function V(I){const k=this.sliceSerialize(I),X=this.data.characterReferenceType;let le;X?(le=to(k,X==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):le=Wa(k);const ye=this.stack.pop();ye.value+=le,ye.position.end=bt(I.end)}function J(I){z.call(this,I);const k=this.stack[this.stack.length-1];k.url=this.sliceSerialize(I)}function ee(I){z.call(this,I);const k=this.stack[this.stack.length-1];k.url="mailto:"+this.sliceSerialize(I)}function te(){return{type:"blockquote",children:[]}}function ae(){return{type:"code",lang:null,meta:null,value:""}}function Oe(){return{type:"inlineCode",value:""}}function U(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Re(){return{type:"emphasis",children:[]}}function ke(){return{type:"heading",depth:0,children:[]}}function ze(){return{type:"break"}}function Ct(){return{type:"html",value:""}}function He(){return{type:"image",title:null,url:"",alt:null}}function It(){return{type:"link",title:null,url:"",children:[]}}function Nt(I){return{type:"list",ordered:I.type==="listOrdered",start:null,spread:I._spread,children:[]}}function ue(I){return{type:"listItem",spread:I._spread,checked:null,children:[]}}function ce(){return{type:"paragraph",children:[]}}function _e(){return{type:"strong",children:[]}}function ge(){return{type:"text",value:""}}function Ne(){return{type:"thematicBreak"}}}function bt(e){return{line:e.line,column:e.column,offset:e.offset}}function ho(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?ho(e,r):Ch(e,r)}}function Ch(e,t){let n;for(n in t)if(fo.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function nu(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Tn({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Tn({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Tn({start:t.start,end:t.end})+") is still open")}function Ih(e){const t=this;t.parser=n;function n(r){return xh(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function Nh(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function Oh(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
|
|
52
|
+
`}]}function Lh(e,t){const n=t.value?t.value+`
|
|
53
|
+
`:"",r={};t.lang&&(r.className=["language-"+t.lang]);let a={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(a.data={meta:t.meta}),e.patch(t,a),a=e.applyData(t,a),a={type:"element",tagName:"pre",properties:{},children:[a]},e.patch(t,a),a}function Rh(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function vh(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Ph(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),a=an(r.toLowerCase()),i=e.footnoteOrder.indexOf(r);let u,o=e.footnoteCounts.get(r);o===void 0?(o=0,e.footnoteOrder.push(r),u=e.footnoteOrder.length):u=i+1,o+=1,e.footnoteCounts.set(r,o);const l={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+a,id:n+"fnref-"+a+(o>1?"-"+o:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(u)}]};e.patch(t,l);const c={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,c),e.applyData(t,c)}function Dh(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function kh(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function mo(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const a=e.all(t),i=a[0];i&&i.type==="text"?i.value="["+i.value:a.unshift({type:"text",value:"["});const u=a[a.length-1];return u&&u.type==="text"?u.value+=r:a.push({type:"text",value:r}),a}function wh(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return mo(e,t);const a={src:an(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(a.title=r.title);const i={type:"element",tagName:"img",properties:a,children:[]};return e.patch(t,i),e.applyData(t,i)}function Mh(e,t){const n={src:an(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function Bh(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function Fh(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return mo(e,t);const a={href:an(r.url||"")};r.title!==null&&r.title!==void 0&&(a.title=r.title);const i={type:"element",tagName:"a",properties:a,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function Hh(e,t){const n={href:an(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function Uh(e,t,n){const r=e.all(t),a=n?jh(n):po(t),i={},u=[];if(typeof t.checked=="boolean"){const f=r[0];let d;f&&f.type==="element"&&f.tagName==="p"?d=f:(d={type:"element",tagName:"p",properties:{},children:[]},r.unshift(d)),d.children.length>0&&d.children.unshift({type:"text",value:" "}),d.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),i.className=["task-list-item"]}let o=-1;for(;++o<r.length;){const f=r[o];(a||o!==0||f.type!=="element"||f.tagName!=="p")&&u.push({type:"text",value:`
|
|
54
54
|
`}),f.type==="element"&&f.tagName==="p"&&!a?u.push(...f.children):u.push(f)}const l=r[r.length-1];l&&(a||l.type!=="element"||l.tagName!=="p")&&u.push({type:"text",value:`
|
|
55
|
-
`});const c={type:"element",tagName:"li",properties:i,children:u};return e.patch(t,c),e.applyData(t,c)}function
|
|
55
|
+
`});const c={type:"element",tagName:"li",properties:i,children:u};return e.patch(t,c),e.applyData(t,c)}function jh(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=po(n[r])}return t}function po(e){const t=e.spread;return t??e.children.length>1}function $h(e,t){const n={},r=e.all(t);let a=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++a<r.length;){const u=r[a];if(u.type==="element"&&u.tagName==="li"&&u.properties&&Array.isArray(u.properties.className)&&u.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const i={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,i),e.applyData(t,i)}function Yh(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Gh(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function zh(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Vh(e,t){const n=e.all(t),r=n.shift(),a=[];if(r){const u={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],u),a.push(u)}if(n.length>0){const u={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},o=dt(t.children[1]),l=Ar(t.children[t.children.length-1]);o&&l&&(u.position={start:o,end:l}),a.push(u)}const i={type:"element",tagName:"table",properties:{},children:e.wrap(a,!0)};return e.patch(t,i),e.applyData(t,i)}function qh(e,t,n){const r=n?n.children:void 0,i=(r?r.indexOf(t):1)===0?"th":"td",u=n&&n.type==="table"?n.align:void 0,o=u?u.length:t.children.length;let l=-1;const c=[];for(;++l<o;){const d=t.children[l],h={},m=u?u[l]:void 0;m&&(h.align=m);let _={type:"element",tagName:i,properties:h,children:[]};d&&(_.children=e.all(d),e.patch(d,_),_=e.applyData(d,_)),c.push(_)}const f={type:"element",tagName:"tr",properties:{},children:e.wrap(c,!0)};return e.patch(t,f),e.applyData(t,f)}function Wh(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const ru=9,au=32;function Xh(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),a=0;const i=[];for(;r;)i.push(iu(t.slice(a,r.index),a>0,!0),r[0]),a=r.index+r[0].length,r=n.exec(t);return i.push(iu(t.slice(a),a>0,!1)),i.join("")}function iu(e,t,n){let r=0,a=e.length;if(t){let i=e.codePointAt(r);for(;i===ru||i===au;)r++,i=e.codePointAt(r)}if(n){let i=e.codePointAt(a-1);for(;i===ru||i===au;)a--,i=e.codePointAt(a-1)}return a>r?e.slice(r,a):""}function Qh(e,t){const n={type:"text",value:Xh(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function Kh(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const Zh={blockquote:Nh,break:Oh,code:Lh,delete:Rh,emphasis:vh,footnoteReference:Ph,heading:Dh,html:kh,imageReference:wh,image:Mh,inlineCode:Bh,linkReference:Fh,link:Hh,listItem:Uh,list:$h,paragraph:Yh,root:Gh,strong:zh,table:Vh,tableCell:Wh,tableRow:qh,text:Qh,thematicBreak:Kh,toml:Vn,yaml:Vn,definition:Vn,footnoteDefinition:Vn};function Vn(){}const Eo=-1,yr=0,rr=1,ar=2,Ka=3,Za=4,Ja=5,ei=6,bo=7,go=8,uu=typeof self=="object"?self:globalThis,Jh=(e,t)=>{const n=(a,i)=>(e.set(i,a),a),r=a=>{if(e.has(a))return e.get(a);const[i,u]=t[a];switch(i){case yr:case Eo:return n(u,a);case rr:{const o=n([],a);for(const l of u)o.push(r(l));return o}case ar:{const o=n({},a);for(const[l,c]of u)o[r(l)]=r(c);return o}case Ka:return n(new Date(u),a);case Za:{const{source:o,flags:l}=u;return n(new RegExp(o,l),a)}case Ja:{const o=n(new Map,a);for(const[l,c]of u)o.set(r(l),r(c));return o}case ei:{const o=n(new Set,a);for(const l of u)o.add(r(l));return o}case bo:{const{name:o,message:l}=u;return n(new uu[o](l),a)}case go:return n(BigInt(u),a);case"BigInt":return n(Object(BigInt(u)),a)}return n(new uu[i](u),a)};return r},su=e=>Jh(new Map,e)(0),Gt="",{toString:em}={},{keys:tm}=Object,dn=e=>{const t=typeof e;if(t!=="object"||!e)return[yr,t];const n=em.call(e).slice(8,-1);switch(n){case"Array":return[rr,Gt];case"Object":return[ar,Gt];case"Date":return[Ka,Gt];case"RegExp":return[Za,Gt];case"Map":return[Ja,Gt];case"Set":return[ei,Gt]}return n.includes("Array")?[rr,n]:n.includes("Error")?[bo,n]:[ar,n]},qn=([e,t])=>e===yr&&(t==="function"||t==="symbol"),nm=(e,t,n,r)=>{const a=(u,o)=>{const l=r.push(u)-1;return n.set(o,l),l},i=u=>{if(n.has(u))return n.get(u);let[o,l]=dn(u);switch(o){case yr:{let f=u;switch(l){case"bigint":o=go,f=u.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);f=null;break;case"undefined":return a([Eo],u)}return a([o,f],u)}case rr:{if(l)return a([l,[...u]],u);const f=[],d=a([o,f],u);for(const h of u)f.push(i(h));return d}case ar:{if(l)switch(l){case"BigInt":return a([l,u.toString()],u);case"Boolean":case"Number":case"String":return a([l,u.valueOf()],u)}if(t&&"toJSON"in u)return i(u.toJSON());const f=[],d=a([o,f],u);for(const h of tm(u))(e||!qn(dn(u[h])))&&f.push([i(h),i(u[h])]);return d}case Ka:return a([o,u.toISOString()],u);case Za:{const{source:f,flags:d}=u;return a([o,{source:f,flags:d}],u)}case Ja:{const f=[],d=a([o,f],u);for(const[h,m]of u)(e||!(qn(dn(h))||qn(dn(m))))&&f.push([i(h),i(m)]);return d}case ei:{const f=[],d=a([o,f],u);for(const h of u)(e||!qn(dn(h)))&&f.push(i(h));return d}}const{message:c}=u;return a([o,{name:l,message:c}],u)};return i},ou=(e,{json:t,lossy:n}={})=>{const r=[];return nm(!(t||n),!!t,new Map,r)(e),r},en=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?su(ou(e,t)):structuredClone(e):(e,t)=>su(ou(e,t));function rm(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function am(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function im(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||rm,r=e.options.footnoteBackLabel||am,a=e.options.footnoteLabel||"Footnotes",i=e.options.footnoteLabelTagName||"h2",u=e.options.footnoteLabelProperties||{className:["sr-only"]},o=[];let l=-1;for(;++l<e.footnoteOrder.length;){const c=e.footnoteById.get(e.footnoteOrder[l]);if(!c)continue;const f=e.all(c),d=String(c.identifier).toUpperCase(),h=an(d.toLowerCase());let m=0;const _=[],A=e.footnoteCounts.get(d);for(;A!==void 0&&++m<=A;){_.length>0&&_.push({type:"text",value:" "});let P=typeof n=="string"?n:n(l,m);typeof P=="string"&&(P={type:"text",value:P}),_.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+h+(m>1?"-"+m:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(l,m),className:["data-footnote-backref"]},children:Array.isArray(P)?P:[P]})}const v=f[f.length-1];if(v&&v.type==="element"&&v.tagName==="p"){const P=v.children[v.children.length-1];P&&P.type==="text"?P.value+=" ":v.children.push({type:"text",value:" "}),v.children.push(..._)}else f.push(..._);const x={type:"element",tagName:"li",properties:{id:t+"fn-"+h},children:e.wrap(f,!0)};e.patch(c,x),o.push(x)}if(o.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:i,properties:{...en(u),id:"footnote-label"},children:[{type:"text",value:a}]},{type:"text",value:`
|
|
56
56
|
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(o,!0)},{type:"text",value:`
|
|
57
|
-
`}]}}const
|
|
57
|
+
`}]}}const To=(function(e){if(e==null)return lm;if(typeof e=="function")return xr(e);if(typeof e=="object")return Array.isArray(e)?um(e):sm(e);if(typeof e=="string")return om(e);throw new Error("Expected function, string, or object as test")});function um(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=To(e[n]);return xr(r);function r(...a){let i=-1;for(;++i<t.length;)if(t[i].apply(this,a))return!0;return!1}}function sm(e){const t=e;return xr(n);function n(r){const a=r;let i;for(i in e)if(a[i]!==t[i])return!1;return!0}}function om(e){return xr(t);function t(n){return n&&n.type===e}}function xr(e){return t;function t(n,r,a){return!!(cm(n)&&e.call(this,n,typeof r=="number"?r:void 0,a||void 0))}}function lm(){return!0}function cm(e){return e!==null&&typeof e=="object"&&"type"in e}const Ao=[],fm=!0,lu=!1,dm="skip";function hm(e,t,n,r){let a;typeof t=="function"&&typeof n!="function"?(r=n,n=t):a=t;const i=To(a),u=r?-1:1;o(e,void 0,[])();function o(l,c,f){const d=l&&typeof l=="object"?l:{};if(typeof d.type=="string"){const m=typeof d.tagName=="string"?d.tagName:typeof d.name=="string"?d.name:void 0;Object.defineProperty(h,"name",{value:"node ("+(l.type+(m?"<"+m+">":""))+")"})}return h;function h(){let m=Ao,_,A,v;if((!t||i(l,c,f[f.length-1]||void 0))&&(m=mm(n(l,f)),m[0]===lu))return m;if("children"in l&&l.children){const x=l;if(x.children&&m[0]!==dm)for(A=(r?x.children.length:-1)+u,v=f.concat(x);A>-1&&A<x.children.length;){const P=x.children[A];if(_=o(P,A,v)(),_[0]===lu)return _;A=typeof _[1]=="number"?_[1]:A+u}}return m}}}function mm(e){return Array.isArray(e)?e:typeof e=="number"?[fm,e]:e==null?Ao:[e]}function ti(e,t,n,r){let a,i,u;typeof t=="function"&&typeof n!="function"?(i=void 0,u=t,a=n):(i=t,u=n,a=r),hm(e,i,o,a);function o(l,c){const f=c[c.length-1],d=f?f.children.indexOf(l):void 0;return u(l,d,f)}}const xa={}.hasOwnProperty,pm={};function Em(e,t){const n=t||pm,r=new Map,a=new Map,i=new Map,u={...Zh,...n.handlers},o={all:c,applyData:gm,definitionById:r,footnoteById:a,footnoteCounts:i,footnoteOrder:[],handlers:u,one:l,options:n,patch:bm,wrap:Am};return ti(e,function(f){if(f.type==="definition"||f.type==="footnoteDefinition"){const d=f.type==="definition"?r:a,h=String(f.identifier).toUpperCase();d.has(h)||d.set(h,f)}}),o;function l(f,d){const h=f.type,m=o.handlers[h];if(xa.call(o.handlers,h)&&m)return m(o,f,d);if(o.options.passThrough&&o.options.passThrough.includes(h)){if("children"in f){const{children:A,...v}=f,x=en(v);return x.children=o.all(f),x}return en(f)}return(o.options.unknownHandler||Tm)(o,f,d)}function c(f){const d=[];if("children"in f){const h=f.children;let m=-1;for(;++m<h.length;){const _=o.one(h[m],f);if(_){if(m&&h[m-1].type==="break"&&(!Array.isArray(_)&&_.type==="text"&&(_.value=cu(_.value)),!Array.isArray(_)&&_.type==="element")){const A=_.children[0];A&&A.type==="text"&&(A.value=cu(A.value))}Array.isArray(_)?d.push(..._):d.push(_)}}}return d}}function bm(e,t){e.position&&(t.position=Jf(e))}function gm(e,t){let n=t;if(e&&e.data){const r=e.data.hName,a=e.data.hChildren,i=e.data.hProperties;if(typeof r=="string")if(n.type==="element")n.tagName=r;else{const u="children"in n?n.children:[n];n={type:"element",tagName:r,properties:{},children:u}}n.type==="element"&&i&&Object.assign(n.properties,en(i)),"children"in n&&n.children&&a!==null&&a!==void 0&&(n.children=a)}return n}function Tm(e,t){const n=t.data||{},r="value"in t&&!(xa.call(n,"hProperties")||xa.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function Am(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:`
|
|
58
58
|
`});++r<e.length;)r&&n.push({type:"text",value:`
|
|
59
59
|
`}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:`
|
|
60
|
-
`}),n}function cu(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function fu(e,t){const n=
|
|
61
|
-
`},a),i}function Am(e,t){return e&&"run"in e?async function(n,r){const a=fu(n,{file:r,...t});await e.run(a,r)}:function(n,r){return fu(n,{file:r,...t||e})}}function du(e){if(e)throw e}var jr,hu;function _m(){if(hu)return jr;hu=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,a=function(c){return typeof Array.isArray=="function"?Array.isArray(c):t.call(c)==="[object Array]"},i=function(c){if(!c||t.call(c)!=="[object Object]")return!1;var f=e.call(c,"constructor"),d=c.constructor&&c.constructor.prototype&&e.call(c.constructor.prototype,"isPrototypeOf");if(c.constructor&&!f&&!d)return!1;var h;for(h in c);return typeof h>"u"||e.call(c,h)},u=function(c,f){n&&f.name==="__proto__"?n(c,f.name,{enumerable:!0,configurable:!0,value:f.newValue,writable:!0}):c[f.name]=f.newValue},o=function(c,f){if(f==="__proto__")if(e.call(c,f)){if(r)return r(c,f).value}else return;return c[f]};return jr=function l(){var c,f,d,h,m,y,A=arguments[0],v=1,x=arguments.length,P=!1;for(typeof A=="boolean"&&(P=A,A=arguments[1]||{},v=2),(A==null||typeof A!="object"&&typeof A!="function")&&(A={});v<x;++v)if(c=arguments[v],c!=null)for(f in c)d=o(A,f),h=o(c,f),A!==h&&(P&&h&&(i(h)||(m=a(h)))?(m?(m=!1,y=d&&a(d)?d:[]):y=d&&i(d)?d:{},u(A,{name:f,newValue:l(P,y,h)})):typeof h<"u"&&u(A,{name:f,newValue:h}));return A},jr}var ym=_m();const $r=Ba(ym);function Sa(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function xm(){const e=[],t={run:n,use:r};return t;function n(...a){let i=-1;const u=a.pop();if(typeof u!="function")throw new TypeError("Expected function as last argument, not "+u);o(null,...a);function o(l,...c){const f=e[++i];let d=-1;if(l){u(l);return}for(;++d<a.length;)(c[d]===null||c[d]===void 0)&&(c[d]=a[d]);a=c,f?Sm(f,o)(...c):u(null,...c)}}function r(a){if(typeof a!="function")throw new TypeError("Expected `middelware` to be a function, not "+a);return e.push(a),t}}function Sm(e,t){let n;return r;function r(...u){const o=e.length>u.length;let l;o&&u.push(a);try{l=e.apply(this,u)}catch(c){const f=c;if(o&&n)throw f;return a(f)}o||(l&&l.then&&typeof l.then=="function"?l.then(i,a):l instanceof Error?a(l):i(l))}function a(u,...o){n||(n=!0,t(u,...o))}function i(u){a(null,u)}}const at={basename:Cm,dirname:Im,extname:Nm,join:Om,sep:"/"};function Cm(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Mn(e);let n=0,r=-1,a=e.length,i;if(t===void 0||t.length===0||t.length>e.length){for(;a--;)if(e.codePointAt(a)===47){if(i){n=a+1;break}}else r<0&&(i=!0,r=a+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let u=-1,o=t.length-1;for(;a--;)if(e.codePointAt(a)===47){if(i){n=a+1;break}}else u<0&&(i=!0,u=a+1),o>-1&&(e.codePointAt(a)===t.codePointAt(o--)?o<0&&(r=a):(o=-1,r=u));return n===r?r=u:r<0&&(r=e.length),e.slice(n,r)}function Im(e){if(Mn(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function Nm(e){Mn(e);let t=e.length,n=-1,r=0,a=-1,i=0,u;for(;t--;){const o=e.codePointAt(t);if(o===47){if(u){r=t+1;break}continue}n<0&&(u=!0,n=t+1),o===46?a<0?a=t:i!==1&&(i=1):a>-1&&(i=-1)}return a<0||n<0||i===0||i===1&&a===n-1&&a===r+1?"":e.slice(a,n)}function Om(...e){let t=-1,n;for(;++t<e.length;)Mn(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":Lm(n)}function Lm(e){Mn(e);const t=e.codePointAt(0)===47;let n=Rm(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function Rm(e,t){let n="",r=0,a=-1,i=0,u=-1,o,l;for(;++u<=e.length;){if(u<e.length)o=e.codePointAt(u);else{if(o===47)break;o=47}if(o===47){if(!(a===u-1||i===1))if(a!==u-1&&i===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(l=n.lastIndexOf("/"),l!==n.length-1){l<0?(n="",r=0):(n=n.slice(0,l),r=n.length-1-n.lastIndexOf("/")),a=u,i=0;continue}}else if(n.length>0){n="",r=0,a=u,i=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(a+1,u):n=e.slice(a+1,u),r=u-a-1;a=u,i=0}else o===46&&i>-1?i++:i=-1}return n}function Mn(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const vm={cwd:Pm};function Pm(){return"/"}function Ca(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function Dm(e){if(typeof e=="string")e=new URL(e);else if(!Ca(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return km(e)}function km(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 t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const r=t.codePointAt(n+2);if(r===70||r===102){const a=new TypeError("File URL path must not include encoded / characters");throw a.code="ERR_INVALID_FILE_URL_PATH",a}}return decodeURIComponent(t)}const Yr=["history","path","basename","stem","extname","dirname"];class Ao{constructor(t){let n;t?Ca(t)?n={path:t}:typeof t=="string"||wm(t)?n={value:t}:n=t:n={},this.cwd=vm.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<Yr.length;){const i=Yr[r];i in n&&n[i]!==void 0&&n[i]!==null&&(this[i]=i==="history"?[...n[i]]:n[i])}let a;for(a in n)Yr.includes(a)||(this[a]=n[a])}get basename(){return typeof this.path=="string"?at.basename(this.path):void 0}set basename(t){zr(t,"basename"),Gr(t,"basename"),this.path=at.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?at.dirname(this.path):void 0}set dirname(t){mu(this.basename,"dirname"),this.path=at.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?at.extname(this.path):void 0}set extname(t){if(Gr(t,"extname"),mu(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=at.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){Ca(t)&&(t=Dm(t)),zr(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?at.basename(this.path,this.extname):void 0}set stem(t){zr(t,"stem"),Gr(t,"stem"),this.path=at.join(this.dirname||"",t+(this.extname||""))}fail(t,n,r){const a=this.message(t,n,r);throw a.fatal=!0,a}info(t,n,r){const a=this.message(t,n,r);return a.fatal=void 0,a}message(t,n,r){const a=new Be(t,n,r);return this.path&&(a.name=this.path+":"+a.name,a.file=this.path),a.fatal=!1,this.messages.push(a),a}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function Gr(e,t){if(e&&e.includes(at.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+at.sep+"`")}function zr(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function mu(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function wm(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Mm=(function(e){const r=this.constructor.prototype,a=r[e],i=function(){return a.apply(i,arguments)};Object.setPrototypeOf(i,r);const u=Object.getOwnPropertyNames(a);for(const o of u){const l=Object.getOwnPropertyDescriptor(a,o);l&&Object.defineProperty(i,o,l)}return i}),Bm={}.hasOwnProperty;class ni extends Mm{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=xm()}copy(){const t=new ni;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data($r(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(Wr("data",this.frozen),this.namespace[t]=n,this):Bm.call(this.namespace,t)&&this.namespace[t]||void 0:t?(Wr("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const a=n.call(t,...r);typeof a=="function"&&this.transformers.use(a)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=qn(t),r=this.parser||this.Parser;return Vr("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),Vr("process",this.parser||this.Parser),qr("process",this.compiler||this.Compiler),n?a(void 0,n):new Promise(a);function a(i,u){const o=qn(t),l=r.parse(o);r.run(l,o,function(f,d,h){if(f||!d||!h)return c(f);const m=d,y=r.stringify(m,h);Um(y)?h.value=y:h.result=y,c(f,h)});function c(f,d){f||!d?u(f):i?i(d):n(void 0,d)}}}processSync(t){let n=!1,r;return this.freeze(),Vr("processSync",this.parser||this.Parser),qr("processSync",this.compiler||this.Compiler),this.process(t,a),Eu("processSync","process",n),r;function a(i,u){n=!0,du(i),r=u}}run(t,n,r){pu(t),this.freeze();const a=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?i(void 0,r):new Promise(i);function i(u,o){const l=qn(n);a.run(t,l,c);function c(f,d,h){const m=d||t;f?o(f):u?u(m):r(void 0,m,h)}}}runSync(t,n){let r=!1,a;return this.run(t,n,i),Eu("runSync","run",r),a;function i(u,o){du(u),a=o,r=!0}}stringify(t,n){this.freeze();const r=qn(n),a=this.compiler||this.Compiler;return qr("stringify",a),pu(t),a(t,r)}use(t,...n){const r=this.attachers,a=this.namespace;if(Wr("use",this.frozen),t!=null)if(typeof t=="function")l(t,n);else if(typeof t=="object")Array.isArray(t)?o(t):u(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function i(c){if(typeof c=="function")l(c,[]);else if(typeof c=="object")if(Array.isArray(c)){const[f,...d]=c;l(f,d)}else u(c);else throw new TypeError("Expected usable value, not `"+c+"`")}function u(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");o(c.plugins),c.settings&&(a.settings=$r(!0,a.settings,c.settings))}function o(c){let f=-1;if(c!=null)if(Array.isArray(c))for(;++f<c.length;){const d=c[f];i(d)}else throw new TypeError("Expected a list of plugins, not `"+c+"`")}function l(c,f){let d=-1,h=-1;for(;++d<r.length;)if(r[d][0]===c){h=d;break}if(h===-1)r.push([c,...f]);else if(f.length>0){let[m,...y]=f;const A=r[h][1];Sa(A)&&Sa(m)&&(m=$r(!0,A,m)),r[h]=[c,m,...y]}}}}const Fm=new ni().freeze();function Vr(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function qr(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Wr(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function pu(e){if(!Sa(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Eu(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function qn(e){return Hm(e)?e:new Ao(e)}function Hm(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function Um(e){return typeof e=="string"||jm(e)}function jm(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const $m="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",bu=[],gu={allowDangerousHtml:!0},Ym=/^(https?|ircs?|mailto|xmpp)$/i,Gm=[{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 _o(e){const t=e.allowedElements,n=e.allowElement,r=e.children||"",a=e.className,i=e.components,u=e.disallowedElements,o=e.rehypePlugins||bu,l=e.remarkPlugins||bu,c=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...gu}:gu,f=e.skipHtml,d=e.unwrapDisallowed,h=e.urlTransform||zm,m=Fm().use(Ch).use(l).use(Am,c).use(o),y=new Ao;typeof r=="string"&&(y.value=r);for(const P of Gm)Object.hasOwn(e,P.from)&&(""+P.from+(P.to?"use `"+P.to+"` instead":"remove it")+$m+P.id,void 0);const A=m.parse(y);let v=m.runSync(A,y);return a&&(v={type:"element",tagName:"div",properties:{className:a},children:v.type==="root"?v.children:[v]}),ti(v,x),a0(v,{Fragment:L.Fragment,components:i,ignoreInvalidStyle:!0,jsx:L.jsx,jsxs:L.jsxs,passKeys:!0,passNode:!0});function x(P,R,B){if(P.type==="raw"&&B&&typeof R=="number")return f?B.children.splice(R,1):B.children[R]={type:"text",value:P.value},R;if(P.type==="element"){let C;for(C in Fr)if(Object.hasOwn(Fr,C)&&Object.hasOwn(P.properties,C)){const N=P.properties[C],Q=Fr[C];(Q===null||Q.includes(P.tagName))&&(P.properties[C]=h(String(N||""),C,P))}}if(P.type==="element"){let C=t?!t.includes(P.tagName):u?u.includes(P.tagName):!1;if(!C&&n&&typeof R=="number"&&(C=!n(P,R,B)),C&&B&&typeof R=="number")return d&&P.children?B.children.splice(R,1,...P.children):B.children.splice(R,1),R}}}function zm(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),a=e.indexOf("/");return t<0||a>-1&&t>a||n>-1&&t>n||r>-1&&t>r||Ym.test(e.slice(0,t))?e:""}const Tu=/[#.]/g;function Vm(e,t){const n=e||"",r={};let a=0,i,u;for(;a<n.length;){Tu.lastIndex=a;const o=Tu.exec(n),l=n.slice(a,o?o.index:n.length);l&&(i?i==="#"?r.id=l:Array.isArray(r.className)?r.className.push(l):r.className=[l]:u=l,a+=l.length),o&&(i=o[0],a++)}return{type:"element",tagName:u||t||"div",properties:r,children:[]}}const qm=new Set(["button","menu","reset","submit"]),Ia={}.hasOwnProperty;function yo(e,t,n){const r=n&&Km(n);function a(i,u,...o){let l=-1,c;if(i==null){c={type:"root",children:[]};const f=u;o.unshift(f)}else if(c=Vm(i,t),c.tagName=c.tagName.toLowerCase(),r&&Ia.call(r,c.tagName)&&(c.tagName=r[c.tagName]),Wm(u,c.tagName)){let f;for(f in u)Ia.call(u,f)&&Xm(e,c.properties,f,u[f])}else o.unshift(u);for(;++l<o.length;)Na(c.children,o[l]);return c.type==="element"&&c.tagName==="template"&&(c.content={type:"root",children:c.children},c.children=[]),c}return a}function Wm(e,t){return e==null||typeof e!="object"||Array.isArray(e)?!1:t==="input"||!e.type||typeof e.type!="string"?!0:"children"in e&&Array.isArray(e.children)?!1:t==="button"?qm.has(e.type.toLowerCase()):!("value"in e)}function Xm(e,t,n,r){const a=Tr(e,n);let i=-1,u;if(r!=null){if(typeof r=="number"){if(Number.isNaN(r))return;u=r}else typeof r=="boolean"?u=r:typeof r=="string"?a.spaceSeparated?u=Hi(r):a.commaSeparated?u=ki(r):a.commaOrSpaceSeparated?u=Hi(ki(r).join(" ")):u=Au(a,a.property,r):Array.isArray(r)?u=r.concat():u=a.property==="style"?Qm(r):String(r);if(Array.isArray(u)){const o=[];for(;++i<u.length;){const l=Au(a,a.property,u[i]);o[i]=l}u=o}if(a.property==="className"&&Array.isArray(t.className)){const o=u;u=t.className.concat(o)}t[a.property]=u}}function Na(e,t){let n=-1;if(t!=null)if(typeof t=="string"||typeof t=="number")e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(;++n<t.length;)Na(e,t[n]);else if(typeof t=="object"&&"type"in t)t.type==="root"?Na(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function Au(e,t,n){if(typeof n=="string"){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(n===""||Nn(n)===Nn(t)))return!0}return n}function Qm(e){const t=[];let n;for(n in e)Ia.call(e,n)&&t.push([n,e[n]].join(": "));return t.join("; ")}function Km(e){const t={};let n=-1;for(;++n<e.length;)t[e[n].toLowerCase()]=e[n];return t}const Zm=["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"],Jm=yo(wn,"div"),ep=yo(xt,"g",Zm);function tp(e){const t=String(e),n=[];return{toOffset:a,toPoint:r};function r(i){if(typeof i=="number"&&i>-1&&i<=t.length){let u=0;for(;;){let o=n[u];if(o===void 0){const l=_u(t,n[u-1]);o=l===-1?t.length+1:l+1,n[u]=o}if(o>i)return{line:u+1,column:i-(u>0?n[u-1]:0)+1,offset:i};u++}}}function a(i){if(i&&typeof i.line=="number"&&typeof i.column=="number"&&!Number.isNaN(i.line)&&!Number.isNaN(i.column)){for(;n.length<i.line;){const o=n[n.length-1],l=_u(t,o),c=l===-1?t.length+1:l+1;if(o===c)break;n.push(c)}const u=(i.line>1?n[i.line-2]:0)+i.column-1;if(u<n[i.line-1])return u}}}function _u(e,t){const n=e.indexOf("\r",t),r=e.indexOf(`
|
|
62
|
-
`,t);return r===-1?n:n===-1||n+1===r?r:n<r?n:r}const Dt={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},xo={}.hasOwnProperty,np=Object.prototype;function rp(e,t){const n=t||{};return ri({file:n.file||void 0,location:!1,schema:n.space==="svg"?xt:wn,verbose:n.verbose||!1},e)}function ri(e,t){let n;switch(t.nodeName){case"#comment":{const r=t;return n={type:"comment",value:r.data},er(e,r,n),n}case"#document":case"#document-fragment":{const r=t,a="mode"in r?r.mode==="quirks"||r.mode==="limited-quirks":!1;if(n={type:"root",children:So(e,t.childNodes),data:{quirksMode:a}},e.file&&e.location){const i=String(e.file),u=tp(i),o=u.toPoint(0),l=u.toPoint(i.length);n.position={start:o,end:l}}return n}case"#documentType":{const r=t;return n={type:"doctype"},er(e,r,n),n}case"#text":{const r=t;return n={type:"text",value:r.value},er(e,r,n),n}default:return n=ap(e,t),n}}function So(e,t){let n=-1;const r=[];for(;++n<t.length;){const a=ri(e,t[n]);r.push(a)}return r}function ap(e,t){const n=e.schema;e.schema=t.namespaceURI===Dt.svg?xt:wn;let r=-1;const a={};for(;++r<t.attrs.length;){const o=t.attrs[r],l=(o.prefix?o.prefix+":":"")+o.name;xo.call(np,l)||(a[l]=o.value)}const u=(e.schema.space==="svg"?ep:Jm)(t.tagName,a,So(e,t.childNodes));if(er(e,t,u),u.tagName==="template"){const o=t,l=o.sourceCodeLocation,c=l&&l.startTag&&Xt(l.startTag),f=l&&l.endTag&&Xt(l.endTag),d=ri(e,o.content);c&&f&&e.file&&(d.position={start:c.end,end:f.start}),u.content=d}return e.schema=n,u}function er(e,t,n){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){const r=ip(e,n,t.sourceCodeLocation);r&&(e.location=!0,n.position=r)}}function ip(e,t,n){const r=Xt(n);if(t.type==="element"){const a=t.children[t.children.length-1];if(r&&!n.endTag&&a&&a.position&&a.position.end&&(r.end=Object.assign({},a.position.end)),e.verbose){const i={};let u;if(n.attrs)for(u in n.attrs)xo.call(n.attrs,u)&&(i[Tr(e.schema,u).property]=Xt(n.attrs[u]));n.startTag;const o=Xt(n.startTag),l=n.endTag?Xt(n.endTag):void 0,c={opening:o};l&&(c.closing=l),c.properties=i,t.data={position:c}}}return r}function Xt(e){const t=yu({line:e.startLine,column:e.startCol,offset:e.startOffset}),n=yu({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||n?{start:t,end:n}:void 0}function yu(e){return e.line&&e.column?e:void 0}const xu={}.hasOwnProperty;function Co(e,t){const n=t||{};function r(a,...i){let u=r.invalid;const o=r.handlers;if(a&&xu.call(a,e)){const l=String(a[e]);u=xu.call(o,l)?o[l]:r.unknown}if(u)return u.call(this,a,...i)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}const up={},sp={}.hasOwnProperty,Io=Co("type",{handlers:{root:lp,element:mp,text:dp,comment:hp,doctype:fp}});function op(e,t){const r=(t||up).space;return Io(e,r==="svg"?xt:wn)}function lp(e,t){const n={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return n.childNodes=ai(e.children,n,t),un(e,n),n}function cp(e,t){const n={nodeName:"#document-fragment",childNodes:[]};return n.childNodes=ai(e.children,n,t),un(e,n),n}function fp(e){const t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return un(e,t),t}function dp(e){const t={nodeName:"#text",value:e.value,parentNode:null};return un(e,t),t}function hp(e){const t={nodeName:"#comment",data:e.value,parentNode:null};return un(e,t),t}function mp(e,t){const n=t;let r=n;e.type==="element"&&e.tagName.toLowerCase()==="svg"&&n.space==="html"&&(r=xt);const a=[];let i;if(e.properties){for(i in e.properties)if(i!=="children"&&sp.call(e.properties,i)){const l=pp(r,i,e.properties[i]);l&&a.push(l)}}const u=r.space,o={nodeName:e.tagName,tagName:e.tagName,attrs:a,namespaceURI:Dt[u],childNodes:[],parentNode:null};return o.childNodes=ai(e.children,o,r),un(e,o),e.tagName==="template"&&e.content&&(o.content=cp(e.content,r)),o}function pp(e,t,n){const r=Tr(e,t);if(n===!1||n===null||n===void 0||typeof n=="number"&&Number.isNaN(n)||!n&&r.boolean)return;Array.isArray(n)&&(n=r.commaSeparated?Fs(n):qs(n));const a={name:r.attribute,value:n===!0?"":String(n)};if(r.space&&r.space!=="html"&&r.space!=="svg"){const i=a.name.indexOf(":");i<0?a.prefix="":(a.name=a.name.slice(i+1),a.prefix=r.attribute.slice(0,i)),a.namespace=Dt[r.space]}return a}function ai(e,t,n){let r=-1;const a=[];if(e)for(;++r<e.length;){const i=Io(e[r],n);i.parentNode=t,a.push(i)}return a}function un(e,t){const n=e.position;n&&n.start&&n.end&&(n.start.offset,n.end.offset,t.sourceCodeLocation={startLine:n.start.line,startCol:n.start.column,startOffset:n.start.offset,endLine:n.end.line,endCol:n.end.column,endOffset:n.end.offset})}const Ep=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],bp=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),Ie="�";var E;(function(e){e[e.EOF=-1]="EOF",e[e.NULL=0]="NULL",e[e.TABULATION=9]="TABULATION",e[e.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",e[e.LINE_FEED=10]="LINE_FEED",e[e.FORM_FEED=12]="FORM_FEED",e[e.SPACE=32]="SPACE",e[e.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",e[e.QUOTATION_MARK=34]="QUOTATION_MARK",e[e.AMPERSAND=38]="AMPERSAND",e[e.APOSTROPHE=39]="APOSTROPHE",e[e.HYPHEN_MINUS=45]="HYPHEN_MINUS",e[e.SOLIDUS=47]="SOLIDUS",e[e.DIGIT_0=48]="DIGIT_0",e[e.DIGIT_9=57]="DIGIT_9",e[e.SEMICOLON=59]="SEMICOLON",e[e.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",e[e.EQUALS_SIGN=61]="EQUALS_SIGN",e[e.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",e[e.QUESTION_MARK=63]="QUESTION_MARK",e[e.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",e[e.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",e[e.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",e[e.GRAVE_ACCENT=96]="GRAVE_ACCENT",e[e.LATIN_SMALL_A=97]="LATIN_SMALL_A",e[e.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(E||(E={}));const je={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function No(e){return e>=55296&&e<=57343}function gp(e){return e>=56320&&e<=57343}function Tp(e,t){return(e-55296)*1024+9216+t}function Oo(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function Lo(e){return e>=64976&&e<=65007||bp.has(e)}var S;(function(e){e.controlCharacterInInputStream="control-character-in-input-stream",e.noncharacterInInputStream="noncharacter-in-input-stream",e.surrogateInInputStream="surrogate-in-input-stream",e.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",e.endTagWithAttributes="end-tag-with-attributes",e.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",e.unexpectedSolidusInTag="unexpected-solidus-in-tag",e.unexpectedNullCharacter="unexpected-null-character",e.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",e.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",e.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",e.missingEndTagName="missing-end-tag-name",e.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",e.unknownNamedCharacterReference="unknown-named-character-reference",e.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",e.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",e.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",e.eofBeforeTagName="eof-before-tag-name",e.eofInTag="eof-in-tag",e.missingAttributeValue="missing-attribute-value",e.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",e.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",e.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",e.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",e.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",e.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",e.missingDoctypePublicIdentifier="missing-doctype-public-identifier",e.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",e.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",e.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",e.cdataInHtmlContent="cdata-in-html-content",e.incorrectlyOpenedComment="incorrectly-opened-comment",e.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",e.eofInDoctype="eof-in-doctype",e.nestedComment="nested-comment",e.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",e.eofInComment="eof-in-comment",e.incorrectlyClosedComment="incorrectly-closed-comment",e.eofInCdata="eof-in-cdata",e.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",e.nullCharacterReference="null-character-reference",e.surrogateCharacterReference="surrogate-character-reference",e.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",e.controlCharacterReference="control-character-reference",e.noncharacterCharacterReference="noncharacter-character-reference",e.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",e.missingDoctypeName="missing-doctype-name",e.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",e.duplicateAttribute="duplicate-attribute",e.nonConformingDoctype="non-conforming-doctype",e.missingDoctype="missing-doctype",e.misplacedDoctype="misplaced-doctype",e.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",e.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",e.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",e.openElementsLeftAfterEof="open-elements-left-after-eof",e.abandonedHeadElementChild="abandoned-head-element-child",e.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",e.nestedNoscriptInHead="nested-noscript-in-head",e.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"})(S||(S={}));const Ap=65536;class _p{constructor(t){this.handler=t,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=Ap,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+ +(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(t,n){const{line:r,col:a,offset:i}=this,u=a+n,o=i+n;return{code:t,startLine:r,endLine:r,startCol:u,endCol:u,startOffset:o,endOffset:o}}_err(t){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(t,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(t){if(this.pos!==this.html.length-1){const n=this.html.charCodeAt(this.pos+1);if(gp(n))return this.pos++,this._addGap(),Tp(t,n)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,E.EOF;return this._err(S.surrogateInInputStream),t}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(t,n){this.html.length>0?this.html+=t:this.html=t,this.endOfChunkHit=!1,this.lastChunkWritten=n}insertHtmlAtCurrentPos(t){this.html=this.html.substring(0,this.pos+1)+t+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(t,n){if(this.pos+t.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(n)return this.html.startsWith(t,this.pos);for(let r=0;r<t.length;r++)if((this.html.charCodeAt(this.pos+r)|32)!==t.charCodeAt(r))return!1;return!0}peek(t){const n=this.pos+t;if(n>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,E.EOF;const r=this.html.charCodeAt(n);return r===E.CARRIAGE_RETURN?E.LINE_FEED:r}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,E.EOF;let t=this.html.charCodeAt(this.pos);return t===E.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,E.LINE_FEED):t===E.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,No(t)&&(t=this._processSurrogate(t)),this.handler.onParseError===null||t>31&&t<127||t===E.LINE_FEED||t===E.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){Oo(t)?this._err(S.controlCharacterInInputStream):Lo(t)&&this._err(S.noncharacterInInputStream)}retreat(t){for(this.pos-=t;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}var fe;(function(e){e[e.CHARACTER=0]="CHARACTER",e[e.NULL_CHARACTER=1]="NULL_CHARACTER",e[e.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",e[e.START_TAG=3]="START_TAG",e[e.END_TAG=4]="END_TAG",e[e.COMMENT=5]="COMMENT",e[e.DOCTYPE=6]="DOCTYPE",e[e.EOF=7]="EOF",e[e.HIBERNATION=8]="HIBERNATION"})(fe||(fe={}));function Ro(e,t){for(let n=e.attrs.length-1;n>=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null}const vo=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏઑඡ༉༦ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲϏϢϸontourIntegraìȹoɴ\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲy;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱còJTabcdfgorstרׯؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ߂ߐĀiyޱrc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣসে্ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४ĀnrࢃgleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpwਖਛgȀLRlr৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼અઋp;椅y;䐜Ādl੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑඞcy;䐊cute;䅃ƀaeyહાron;䅇dil;䅅;䐝ƀgswે૰ativeƀMTV૨ediumSpace;怋hiĀcn૦ëeryThiîtedĀGLଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷreak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪௫ఄ಄ದൡඅ櫬Āoungruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater;EFGLSTஶஷ扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨setĀ;Eೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂෛ෧ขภยา฿ไlig;䅒cute耻Ó䃓Āiyීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲcr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬืde耻Õ䃕es;樷ml耻Ö䃖erĀBP๋Āar๐๓r;怾acĀek๚;揞et;掴arenthesis;揜ҀacfhilorsງຊຏຒດຝະrtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ檻cedesȀ;EST່້扺qual;檯lantEqual;扼ilde;找me;怳Ādpuct;戏ortionĀ;aȥl;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL憒ar;懥eftArrow;懄eiling;按oǵ\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄቕቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHcቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗ĀeiቻDzኀ\0ኇefore;戴a;䎘ĀcnኘkSpace;쀀 Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtèa;䎖r;愨pf;愤cr;쀀𝒵ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒;Eaeiopᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;eᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;eᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰᝃᝈ០៦ᠹᡐᜍ᥈ᥰot;櫭ĀcrᛶkȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;tbrk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯᝳ;䎲;愶een;扬r;쀀𝔟gcostuvwឍឝឳេ៕៛ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀakoᠦᠵĀcn៲ᠣkƀlst֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ;敛;敘;攘;攔;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģbar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;elƀ;bhᥨᥩᥫ䁜;槅sub;柈ŬᥴlĀ;e怢t»pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭒\0᯽\0ᰌƀcprᦲute;䄇̀;abcdsᦿᧀᧄ᧕᧙戩nd;橄rcup;橉Āau᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r;Ecefms᩠ᩢᩫ᪤᪪旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ\0\0aĀ;t䀬;䁀ƀ;fl戁îᅠeĀmxent»eóɍǧ\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯delprvw᭠᭬᭷ᮂᮬᯔarrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;pᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰻᰿ᱝᱩᱵᲞᲬᲷᴍᵻᶑᶫᶻ᷆᷍ròar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂᳖᳜᳠mƀ;oș᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄĀDoḆᴴoôĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»ṺƀaeiἒἚls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧\0耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₥₰₴⃰℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽ƀ;qsؾٌlanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqrⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0proør;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼ròòΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonóquigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roøurĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨íistĀ;sடr;쀀𝔫ȀEest⩦⩹⩼ƀ;qs⩭ƀ;qs⩴lanôií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast⭕⭚⭟lleìl;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖchimpqu⮽⯍⯙⬄⯤⯯Ȁ;cerല⯆ഷ⯉uå;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭ååഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñĀ;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;cⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācrir;榿;쀀𝔬ͯ\0\0\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕⶥⶨrò᪀Āirⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔǒr;榷rp;榹;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ\0\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ脀¶;l䂶leìЃɩ\0\0m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳ᤈ⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t⾴ïrel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⋢⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔ABHabcdefhilmnoprstuxけさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstwガクシスゼゾダッデナp;極Ā;fゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ìâヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘rrowĀ;tㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowóarpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓ròaòՑ;怏oustĀ;a㈞掱che»mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì耻䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;qኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫwar;椪lig耻ß䃟㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rëƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproøim»ኬsðኞĀas㚺㚮ðrn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈadempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xôheadĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roðtré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜtré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),yp=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0)));var Xr;const xp=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),Sp=(Xr=String.fromCodePoint)!==null&&Xr!==void 0?Xr:function(e){let t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|e&1023),t+=String.fromCharCode(e),t};function Cp(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=xp.get(e))!==null&&t!==void 0?t:e}var Me;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(Me||(Me={}));const Ip=32;var At;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(At||(At={}));function Oa(e){return e>=Me.ZERO&&e<=Me.NINE}function Np(e){return e>=Me.UPPER_A&&e<=Me.UPPER_F||e>=Me.LOWER_A&&e<=Me.LOWER_F}function Op(e){return e>=Me.UPPER_A&&e<=Me.UPPER_Z||e>=Me.LOWER_A&&e<=Me.LOWER_Z||Oa(e)}function Lp(e){return e===Me.EQUALS||Op(e)}var we;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(we||(we={}));var Et;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(Et||(Et={}));class Po{constructor(t,n,r){this.decodeTree=t,this.emitCodePoint=n,this.errors=r,this.state=we.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Et.Strict}startEntity(t){this.decodeMode=t,this.state=we.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case we.EntityStart:return t.charCodeAt(n)===Me.NUM?(this.state=we.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=we.NamedEntity,this.stateNamedEntity(t,n));case we.NumericStart:return this.stateNumericStart(t,n);case we.NumericDecimal:return this.stateNumericDecimal(t,n);case we.NumericHex:return this.stateNumericHex(t,n);case we.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|Ip)===Me.LOWER_X?(this.state=we.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=we.NumericDecimal,this.stateNumericDecimal(t,n))}addToNumericResult(t,n,r,a){if(n!==r){const i=r-n;this.result=this.result*Math.pow(a,i)+parseInt(t.substr(n,i),a),this.consumed+=i}}stateNumericHex(t,n){const r=n;for(;n<t.length;){const a=t.charCodeAt(n);if(Oa(a)||Np(a))n+=1;else return this.addToNumericResult(t,r,n,16),this.emitNumericEntity(a,3)}return this.addToNumericResult(t,r,n,16),-1}stateNumericDecimal(t,n){const r=n;for(;n<t.length;){const a=t.charCodeAt(n);if(Oa(a))n+=1;else return this.addToNumericResult(t,r,n,10),this.emitNumericEntity(a,2)}return this.addToNumericResult(t,r,n,10),-1}emitNumericEntity(t,n){var r;if(this.consumed<=n)return(r=this.errors)===null||r===void 0||r.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===Me.SEMI)this.consumed+=1;else if(this.decodeMode===Et.Strict)return 0;return this.emitCodePoint(Cp(this.result),this.consumed),this.errors&&(t!==Me.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,n){const{decodeTree:r}=this;let a=r[this.treeIndex],i=(a&At.VALUE_LENGTH)>>14;for(;n<t.length;n++,this.excess++){const u=t.charCodeAt(n);if(this.treeIndex=Rp(r,a,this.treeIndex+Math.max(1,i),u),this.treeIndex<0)return this.result===0||this.decodeMode===Et.Attribute&&(i===0||Lp(u))?0:this.emitNotTerminatedNamedEntity();if(a=r[this.treeIndex],i=(a&At.VALUE_LENGTH)>>14,i!==0){if(u===Me.SEMI)return this.emitNamedEntityData(this.treeIndex,i,this.consumed+this.excess);this.decodeMode!==Et.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:n,decodeTree:r}=this,a=(r[n]&At.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,a,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,n,r){const{decodeTree:a}=this;return this.emitCodePoint(n===1?a[t]&~At.VALUE_LENGTH:a[t+1],r),n===3&&this.emitCodePoint(a[t+2],r),r}end(){var t;switch(this.state){case we.NamedEntity:return this.result!==0&&(this.decodeMode!==Et.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case we.NumericDecimal:return this.emitNumericEntity(0,2);case we.NumericHex:return this.emitNumericEntity(0,3);case we.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case we.EntityStart:return 0}}}function Do(e){let t="";const n=new Po(e,r=>t+=Sp(r));return function(a,i){let u=0,o=0;for(;(o=a.indexOf("&",o))>=0;){t+=a.slice(u,o),n.startEntity(i);const c=n.write(a,o+1);if(c<0){u=o+n.end();break}u=o+c,o=c===0?u+1:u}const l=t+a.slice(u);return t="",l}}function Rp(e,t,n,r){const a=(t&At.BRANCH_LENGTH)>>7,i=t&At.JUMP_TABLE;if(a===0)return i!==0&&r===i?n:-1;if(i){const l=r-i;return l<0||l>=a?-1:e[n+l]-1}let u=n,o=u+a-1;for(;u<=o;){const l=u+o>>>1,c=e[l];if(c<r)u=l+1;else if(c>r)o=l-1;else return e[l+a]}return-1}Do(vo);Do(yp);var D;(function(e){e.HTML="http://www.w3.org/1999/xhtml",e.MATHML="http://www.w3.org/1998/Math/MathML",e.SVG="http://www.w3.org/2000/svg",e.XLINK="http://www.w3.org/1999/xlink",e.XML="http://www.w3.org/XML/1998/namespace",e.XMLNS="http://www.w3.org/2000/xmlns/"})(D||(D={}));var kt;(function(e){e.TYPE="type",e.ACTION="action",e.ENCODING="encoding",e.PROMPT="prompt",e.NAME="name",e.COLOR="color",e.FACE="face",e.SIZE="size"})(kt||(kt={}));var Ke;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(Ke||(Ke={}));var _;(function(e){e.A="a",e.ADDRESS="address",e.ANNOTATION_XML="annotation-xml",e.APPLET="applet",e.AREA="area",e.ARTICLE="article",e.ASIDE="aside",e.B="b",e.BASE="base",e.BASEFONT="basefont",e.BGSOUND="bgsound",e.BIG="big",e.BLOCKQUOTE="blockquote",e.BODY="body",e.BR="br",e.BUTTON="button",e.CAPTION="caption",e.CENTER="center",e.CODE="code",e.COL="col",e.COLGROUP="colgroup",e.DD="dd",e.DESC="desc",e.DETAILS="details",e.DIALOG="dialog",e.DIR="dir",e.DIV="div",e.DL="dl",e.DT="dt",e.EM="em",e.EMBED="embed",e.FIELDSET="fieldset",e.FIGCAPTION="figcaption",e.FIGURE="figure",e.FONT="font",e.FOOTER="footer",e.FOREIGN_OBJECT="foreignObject",e.FORM="form",e.FRAME="frame",e.FRAMESET="frameset",e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6",e.HEAD="head",e.HEADER="header",e.HGROUP="hgroup",e.HR="hr",e.HTML="html",e.I="i",e.IMG="img",e.IMAGE="image",e.INPUT="input",e.IFRAME="iframe",e.KEYGEN="keygen",e.LABEL="label",e.LI="li",e.LINK="link",e.LISTING="listing",e.MAIN="main",e.MALIGNMARK="malignmark",e.MARQUEE="marquee",e.MATH="math",e.MENU="menu",e.META="meta",e.MGLYPH="mglyph",e.MI="mi",e.MO="mo",e.MN="mn",e.MS="ms",e.MTEXT="mtext",e.NAV="nav",e.NOBR="nobr",e.NOFRAMES="noframes",e.NOEMBED="noembed",e.NOSCRIPT="noscript",e.OBJECT="object",e.OL="ol",e.OPTGROUP="optgroup",e.OPTION="option",e.P="p",e.PARAM="param",e.PLAINTEXT="plaintext",e.PRE="pre",e.RB="rb",e.RP="rp",e.RT="rt",e.RTC="rtc",e.RUBY="ruby",e.S="s",e.SCRIPT="script",e.SEARCH="search",e.SECTION="section",e.SELECT="select",e.SOURCE="source",e.SMALL="small",e.SPAN="span",e.STRIKE="strike",e.STRONG="strong",e.STYLE="style",e.SUB="sub",e.SUMMARY="summary",e.SUP="sup",e.TABLE="table",e.TBODY="tbody",e.TEMPLATE="template",e.TEXTAREA="textarea",e.TFOOT="tfoot",e.TD="td",e.TH="th",e.THEAD="thead",e.TITLE="title",e.TR="tr",e.TRACK="track",e.TT="tt",e.U="u",e.UL="ul",e.SVG="svg",e.VAR="var",e.WBR="wbr",e.XMP="xmp"})(_||(_={}));var s;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.A=1]="A",e[e.ADDRESS=2]="ADDRESS",e[e.ANNOTATION_XML=3]="ANNOTATION_XML",e[e.APPLET=4]="APPLET",e[e.AREA=5]="AREA",e[e.ARTICLE=6]="ARTICLE",e[e.ASIDE=7]="ASIDE",e[e.B=8]="B",e[e.BASE=9]="BASE",e[e.BASEFONT=10]="BASEFONT",e[e.BGSOUND=11]="BGSOUND",e[e.BIG=12]="BIG",e[e.BLOCKQUOTE=13]="BLOCKQUOTE",e[e.BODY=14]="BODY",e[e.BR=15]="BR",e[e.BUTTON=16]="BUTTON",e[e.CAPTION=17]="CAPTION",e[e.CENTER=18]="CENTER",e[e.CODE=19]="CODE",e[e.COL=20]="COL",e[e.COLGROUP=21]="COLGROUP",e[e.DD=22]="DD",e[e.DESC=23]="DESC",e[e.DETAILS=24]="DETAILS",e[e.DIALOG=25]="DIALOG",e[e.DIR=26]="DIR",e[e.DIV=27]="DIV",e[e.DL=28]="DL",e[e.DT=29]="DT",e[e.EM=30]="EM",e[e.EMBED=31]="EMBED",e[e.FIELDSET=32]="FIELDSET",e[e.FIGCAPTION=33]="FIGCAPTION",e[e.FIGURE=34]="FIGURE",e[e.FONT=35]="FONT",e[e.FOOTER=36]="FOOTER",e[e.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",e[e.FORM=38]="FORM",e[e.FRAME=39]="FRAME",e[e.FRAMESET=40]="FRAMESET",e[e.H1=41]="H1",e[e.H2=42]="H2",e[e.H3=43]="H3",e[e.H4=44]="H4",e[e.H5=45]="H5",e[e.H6=46]="H6",e[e.HEAD=47]="HEAD",e[e.HEADER=48]="HEADER",e[e.HGROUP=49]="HGROUP",e[e.HR=50]="HR",e[e.HTML=51]="HTML",e[e.I=52]="I",e[e.IMG=53]="IMG",e[e.IMAGE=54]="IMAGE",e[e.INPUT=55]="INPUT",e[e.IFRAME=56]="IFRAME",e[e.KEYGEN=57]="KEYGEN",e[e.LABEL=58]="LABEL",e[e.LI=59]="LI",e[e.LINK=60]="LINK",e[e.LISTING=61]="LISTING",e[e.MAIN=62]="MAIN",e[e.MALIGNMARK=63]="MALIGNMARK",e[e.MARQUEE=64]="MARQUEE",e[e.MATH=65]="MATH",e[e.MENU=66]="MENU",e[e.META=67]="META",e[e.MGLYPH=68]="MGLYPH",e[e.MI=69]="MI",e[e.MO=70]="MO",e[e.MN=71]="MN",e[e.MS=72]="MS",e[e.MTEXT=73]="MTEXT",e[e.NAV=74]="NAV",e[e.NOBR=75]="NOBR",e[e.NOFRAMES=76]="NOFRAMES",e[e.NOEMBED=77]="NOEMBED",e[e.NOSCRIPT=78]="NOSCRIPT",e[e.OBJECT=79]="OBJECT",e[e.OL=80]="OL",e[e.OPTGROUP=81]="OPTGROUP",e[e.OPTION=82]="OPTION",e[e.P=83]="P",e[e.PARAM=84]="PARAM",e[e.PLAINTEXT=85]="PLAINTEXT",e[e.PRE=86]="PRE",e[e.RB=87]="RB",e[e.RP=88]="RP",e[e.RT=89]="RT",e[e.RTC=90]="RTC",e[e.RUBY=91]="RUBY",e[e.S=92]="S",e[e.SCRIPT=93]="SCRIPT",e[e.SEARCH=94]="SEARCH",e[e.SECTION=95]="SECTION",e[e.SELECT=96]="SELECT",e[e.SOURCE=97]="SOURCE",e[e.SMALL=98]="SMALL",e[e.SPAN=99]="SPAN",e[e.STRIKE=100]="STRIKE",e[e.STRONG=101]="STRONG",e[e.STYLE=102]="STYLE",e[e.SUB=103]="SUB",e[e.SUMMARY=104]="SUMMARY",e[e.SUP=105]="SUP",e[e.TABLE=106]="TABLE",e[e.TBODY=107]="TBODY",e[e.TEMPLATE=108]="TEMPLATE",e[e.TEXTAREA=109]="TEXTAREA",e[e.TFOOT=110]="TFOOT",e[e.TD=111]="TD",e[e.TH=112]="TH",e[e.THEAD=113]="THEAD",e[e.TITLE=114]="TITLE",e[e.TR=115]="TR",e[e.TRACK=116]="TRACK",e[e.TT=117]="TT",e[e.U=118]="U",e[e.UL=119]="UL",e[e.SVG=120]="SVG",e[e.VAR=121]="VAR",e[e.WBR=122]="WBR",e[e.XMP=123]="XMP"})(s||(s={}));const vp=new Map([[_.A,s.A],[_.ADDRESS,s.ADDRESS],[_.ANNOTATION_XML,s.ANNOTATION_XML],[_.APPLET,s.APPLET],[_.AREA,s.AREA],[_.ARTICLE,s.ARTICLE],[_.ASIDE,s.ASIDE],[_.B,s.B],[_.BASE,s.BASE],[_.BASEFONT,s.BASEFONT],[_.BGSOUND,s.BGSOUND],[_.BIG,s.BIG],[_.BLOCKQUOTE,s.BLOCKQUOTE],[_.BODY,s.BODY],[_.BR,s.BR],[_.BUTTON,s.BUTTON],[_.CAPTION,s.CAPTION],[_.CENTER,s.CENTER],[_.CODE,s.CODE],[_.COL,s.COL],[_.COLGROUP,s.COLGROUP],[_.DD,s.DD],[_.DESC,s.DESC],[_.DETAILS,s.DETAILS],[_.DIALOG,s.DIALOG],[_.DIR,s.DIR],[_.DIV,s.DIV],[_.DL,s.DL],[_.DT,s.DT],[_.EM,s.EM],[_.EMBED,s.EMBED],[_.FIELDSET,s.FIELDSET],[_.FIGCAPTION,s.FIGCAPTION],[_.FIGURE,s.FIGURE],[_.FONT,s.FONT],[_.FOOTER,s.FOOTER],[_.FOREIGN_OBJECT,s.FOREIGN_OBJECT],[_.FORM,s.FORM],[_.FRAME,s.FRAME],[_.FRAMESET,s.FRAMESET],[_.H1,s.H1],[_.H2,s.H2],[_.H3,s.H3],[_.H4,s.H4],[_.H5,s.H5],[_.H6,s.H6],[_.HEAD,s.HEAD],[_.HEADER,s.HEADER],[_.HGROUP,s.HGROUP],[_.HR,s.HR],[_.HTML,s.HTML],[_.I,s.I],[_.IMG,s.IMG],[_.IMAGE,s.IMAGE],[_.INPUT,s.INPUT],[_.IFRAME,s.IFRAME],[_.KEYGEN,s.KEYGEN],[_.LABEL,s.LABEL],[_.LI,s.LI],[_.LINK,s.LINK],[_.LISTING,s.LISTING],[_.MAIN,s.MAIN],[_.MALIGNMARK,s.MALIGNMARK],[_.MARQUEE,s.MARQUEE],[_.MATH,s.MATH],[_.MENU,s.MENU],[_.META,s.META],[_.MGLYPH,s.MGLYPH],[_.MI,s.MI],[_.MO,s.MO],[_.MN,s.MN],[_.MS,s.MS],[_.MTEXT,s.MTEXT],[_.NAV,s.NAV],[_.NOBR,s.NOBR],[_.NOFRAMES,s.NOFRAMES],[_.NOEMBED,s.NOEMBED],[_.NOSCRIPT,s.NOSCRIPT],[_.OBJECT,s.OBJECT],[_.OL,s.OL],[_.OPTGROUP,s.OPTGROUP],[_.OPTION,s.OPTION],[_.P,s.P],[_.PARAM,s.PARAM],[_.PLAINTEXT,s.PLAINTEXT],[_.PRE,s.PRE],[_.RB,s.RB],[_.RP,s.RP],[_.RT,s.RT],[_.RTC,s.RTC],[_.RUBY,s.RUBY],[_.S,s.S],[_.SCRIPT,s.SCRIPT],[_.SEARCH,s.SEARCH],[_.SECTION,s.SECTION],[_.SELECT,s.SELECT],[_.SOURCE,s.SOURCE],[_.SMALL,s.SMALL],[_.SPAN,s.SPAN],[_.STRIKE,s.STRIKE],[_.STRONG,s.STRONG],[_.STYLE,s.STYLE],[_.SUB,s.SUB],[_.SUMMARY,s.SUMMARY],[_.SUP,s.SUP],[_.TABLE,s.TABLE],[_.TBODY,s.TBODY],[_.TEMPLATE,s.TEMPLATE],[_.TEXTAREA,s.TEXTAREA],[_.TFOOT,s.TFOOT],[_.TD,s.TD],[_.TH,s.TH],[_.THEAD,s.THEAD],[_.TITLE,s.TITLE],[_.TR,s.TR],[_.TRACK,s.TRACK],[_.TT,s.TT],[_.U,s.U],[_.UL,s.UL],[_.SVG,s.SVG],[_.VAR,s.VAR],[_.WBR,s.WBR],[_.XMP,s.XMP]]);function sn(e){var t;return(t=vp.get(e))!==null&&t!==void 0?t:s.UNKNOWN}const w=s,Pp={[D.HTML]:new Set([w.ADDRESS,w.APPLET,w.AREA,w.ARTICLE,w.ASIDE,w.BASE,w.BASEFONT,w.BGSOUND,w.BLOCKQUOTE,w.BODY,w.BR,w.BUTTON,w.CAPTION,w.CENTER,w.COL,w.COLGROUP,w.DD,w.DETAILS,w.DIR,w.DIV,w.DL,w.DT,w.EMBED,w.FIELDSET,w.FIGCAPTION,w.FIGURE,w.FOOTER,w.FORM,w.FRAME,w.FRAMESET,w.H1,w.H2,w.H3,w.H4,w.H5,w.H6,w.HEAD,w.HEADER,w.HGROUP,w.HR,w.HTML,w.IFRAME,w.IMG,w.INPUT,w.LI,w.LINK,w.LISTING,w.MAIN,w.MARQUEE,w.MENU,w.META,w.NAV,w.NOEMBED,w.NOFRAMES,w.NOSCRIPT,w.OBJECT,w.OL,w.P,w.PARAM,w.PLAINTEXT,w.PRE,w.SCRIPT,w.SECTION,w.SELECT,w.SOURCE,w.STYLE,w.SUMMARY,w.TABLE,w.TBODY,w.TD,w.TEMPLATE,w.TEXTAREA,w.TFOOT,w.TH,w.THEAD,w.TITLE,w.TR,w.TRACK,w.UL,w.WBR,w.XMP]),[D.MATHML]:new Set([w.MI,w.MO,w.MN,w.MS,w.MTEXT,w.ANNOTATION_XML]),[D.SVG]:new Set([w.TITLE,w.FOREIGN_OBJECT,w.DESC]),[D.XLINK]:new Set,[D.XML]:new Set,[D.XMLNS]:new Set},La=new Set([w.H1,w.H2,w.H3,w.H4,w.H5,w.H6]);_.STYLE,_.SCRIPT,_.XMP,_.IFRAME,_.NOEMBED,_.NOFRAMES,_.PLAINTEXT;var b;(function(e){e[e.DATA=0]="DATA",e[e.RCDATA=1]="RCDATA",e[e.RAWTEXT=2]="RAWTEXT",e[e.SCRIPT_DATA=3]="SCRIPT_DATA",e[e.PLAINTEXT=4]="PLAINTEXT",e[e.TAG_OPEN=5]="TAG_OPEN",e[e.END_TAG_OPEN=6]="END_TAG_OPEN",e[e.TAG_NAME=7]="TAG_NAME",e[e.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",e[e.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",e[e.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",e[e.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",e[e.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",e[e.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",e[e.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",e[e.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",e[e.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",e[e.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",e[e.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",e[e.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",e[e.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",e[e.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",e[e.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",e[e.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",e[e.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",e[e.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",e[e.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",e[e.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",e[e.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",e[e.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",e[e.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",e[e.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",e[e.BOGUS_COMMENT=40]="BOGUS_COMMENT",e[e.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",e[e.COMMENT_START=42]="COMMENT_START",e[e.COMMENT_START_DASH=43]="COMMENT_START_DASH",e[e.COMMENT=44]="COMMENT",e[e.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",e[e.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",e[e.COMMENT_END_DASH=49]="COMMENT_END_DASH",e[e.COMMENT_END=50]="COMMENT_END",e[e.COMMENT_END_BANG=51]="COMMENT_END_BANG",e[e.DOCTYPE=52]="DOCTYPE",e[e.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",e[e.DOCTYPE_NAME=54]="DOCTYPE_NAME",e[e.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",e[e.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",e[e.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",e[e.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",e[e.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",e[e.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",e[e.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",e[e.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",e[e.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",e[e.CDATA_SECTION=68]="CDATA_SECTION",e[e.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",e[e.CDATA_SECTION_END=70]="CDATA_SECTION_END",e[e.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",e[e.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND"})(b||(b={}));const ve={DATA:b.DATA,RCDATA:b.RCDATA,RAWTEXT:b.RAWTEXT,SCRIPT_DATA:b.SCRIPT_DATA,PLAINTEXT:b.PLAINTEXT,CDATA_SECTION:b.CDATA_SECTION};function Dp(e){return e>=E.DIGIT_0&&e<=E.DIGIT_9}function En(e){return e>=E.LATIN_CAPITAL_A&&e<=E.LATIN_CAPITAL_Z}function kp(e){return e>=E.LATIN_SMALL_A&&e<=E.LATIN_SMALL_Z}function gt(e){return kp(e)||En(e)}function Su(e){return gt(e)||Dp(e)}function Wn(e){return e+32}function ko(e){return e===E.SPACE||e===E.LINE_FEED||e===E.TABULATION||e===E.FORM_FEED}function Cu(e){return ko(e)||e===E.SOLIDUS||e===E.GREATER_THAN_SIGN}function wp(e){return e===E.NULL?S.nullCharacterReference:e>1114111?S.characterReferenceOutsideUnicodeRange:No(e)?S.surrogateCharacterReference:Lo(e)?S.noncharacterCharacterReference:Oo(e)||e===E.CARRIAGE_RETURN?S.controlCharacterReference:null}class Mp{constructor(t,n){this.options=t,this.handler=n,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=b.DATA,this.returnState=b.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new _p(n),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new Po(vo,(r,a)=>{this.preprocessor.pos=this.entityStartPos+a-1,this._flushCodePointConsumedAsCharacterReference(r)},n.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(S.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:r=>{this._err(S.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+r)},validateNumericCharacterReference:r=>{const a=wp(r);a&&this._err(a,1)}}:void 0)}_err(t,n=0){var r,a;(a=(r=this.handler).onParseError)===null||a===void 0||a.call(r,this.preprocessor.getError(t,n))}getCurrentLocation(t){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-t,startOffset:this.preprocessor.offset-t,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const t=this._consume();this._ensureHibernation()||this._callState(t)}this.inLoop=!1}}pause(){this.paused=!0}resume(t){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||t?.())}write(t,n,r){this.active=!0,this.preprocessor.write(t,n),this._runParsingLoop(),this.paused||r?.()}insertHtmlAtCurrentPos(t){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(t),this._runParsingLoop()}_ensureHibernation(){return this.preprocessor.endOfChunkHit?(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0):!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(t){this.consumedAfterSnapshot+=t;for(let n=0;n<t;n++)this.preprocessor.advance()}_consumeSequenceIfMatch(t,n){return this.preprocessor.startsWith(t,n)?(this._advanceBy(t.length-1),!0):!1}_createStartTagToken(){this.currentToken={type:fe.START_TAG,tagName:"",tagID:s.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:fe.END_TAG,tagName:"",tagID:s.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(t){this.currentToken={type:fe.COMMENT,data:"",location:this.getCurrentLocation(t)}}_createDoctypeToken(t){this.currentToken={type:fe.DOCTYPE,name:t,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(t,n){this.currentCharacterToken={type:t,chars:n,location:this.currentLocation}}_createAttr(t){this.currentAttr={name:t,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var t,n;const r=this.currentToken;if(Ro(r,this.currentAttr.name)===null){if(r.attrs.push(this.currentAttr),r.location&&this.currentLocation){const a=(t=(n=r.location).attrs)!==null&&t!==void 0?t:n.attrs=Object.create(null);a[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(S.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(t){this._emitCurrentCharacterToken(t.location),this.currentToken=null,t.location&&(t.location.endLine=this.preprocessor.line,t.location.endCol=this.preprocessor.col+1,t.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){const t=this.currentToken;this.prepareToken(t),t.tagID=sn(t.tagName),t.type===fe.START_TAG?(this.lastStartTagName=t.tagName,this.handler.onStartTag(t)):(t.attrs.length>0&&this._err(S.endTagWithAttributes),t.selfClosing&&this._err(S.endTagWithTrailingSolidus),this.handler.onEndTag(t)),this.preprocessor.dropParsedChunk()}emitCurrentComment(t){this.prepareToken(t),this.handler.onComment(t),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(t){this.prepareToken(t),this.handler.onDoctype(t),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(t){if(this.currentCharacterToken){switch(t&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=t.startLine,this.currentCharacterToken.location.endCol=t.startCol,this.currentCharacterToken.location.endOffset=t.startOffset),this.currentCharacterToken.type){case fe.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case fe.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case fe.WHITESPACE_CHARACTER:{this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}}this.currentCharacterToken=null}}_emitEOFToken(){const t=this.getCurrentLocation(0);t&&(t.endLine=t.startLine,t.endCol=t.startCol,t.endOffset=t.startOffset),this._emitCurrentCharacterToken(t),this.handler.onEof({type:fe.EOF,location:t}),this.active=!1}_appendCharToCurrentCharacterToken(t,n){if(this.currentCharacterToken)if(this.currentCharacterToken.type===t){this.currentCharacterToken.chars+=n;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(t,n)}_emitCodePoint(t){const n=ko(t)?fe.WHITESPACE_CHARACTER:t===E.NULL?fe.NULL_CHARACTER:fe.CHARACTER;this._appendCharToCurrentCharacterToken(n,String.fromCodePoint(t))}_emitChars(t){this._appendCharToCurrentCharacterToken(fe.CHARACTER,t)}_startCharacterReference(){this.returnState=this.state,this.state=b.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?Et.Attribute:Et.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===b.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===b.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===b.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(t){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(t):this._emitCodePoint(t)}_callState(t){switch(this.state){case b.DATA:{this._stateData(t);break}case b.RCDATA:{this._stateRcdata(t);break}case b.RAWTEXT:{this._stateRawtext(t);break}case b.SCRIPT_DATA:{this._stateScriptData(t);break}case b.PLAINTEXT:{this._statePlaintext(t);break}case b.TAG_OPEN:{this._stateTagOpen(t);break}case b.END_TAG_OPEN:{this._stateEndTagOpen(t);break}case b.TAG_NAME:{this._stateTagName(t);break}case b.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(t);break}case b.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(t);break}case b.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(t);break}case b.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(t);break}case b.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(t);break}case b.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(t);break}case b.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(t);break}case b.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(t);break}case b.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(t);break}case b.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(t);break}case b.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(t);break}case b.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(t);break}case b.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(t);break}case b.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(t);break}case b.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(t);break}case b.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(t);break}case b.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(t);break}case b.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(t);break}case b.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(t);break}case b.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(t);break}case b.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(t);break}case b.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(t);break}case b.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(t);break}case b.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(t);break}case b.ATTRIBUTE_NAME:{this._stateAttributeName(t);break}case b.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(t);break}case b.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(t);break}case b.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(t);break}case b.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(t);break}case b.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(t);break}case b.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(t);break}case b.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(t);break}case b.BOGUS_COMMENT:{this._stateBogusComment(t);break}case b.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(t);break}case b.COMMENT_START:{this._stateCommentStart(t);break}case b.COMMENT_START_DASH:{this._stateCommentStartDash(t);break}case b.COMMENT:{this._stateComment(t);break}case b.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(t);break}case b.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(t);break}case b.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(t);break}case b.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(t);break}case b.COMMENT_END_DASH:{this._stateCommentEndDash(t);break}case b.COMMENT_END:{this._stateCommentEnd(t);break}case b.COMMENT_END_BANG:{this._stateCommentEndBang(t);break}case b.DOCTYPE:{this._stateDoctype(t);break}case b.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(t);break}case b.DOCTYPE_NAME:{this._stateDoctypeName(t);break}case b.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(t);break}case b.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(t);break}case b.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(t);break}case b.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(t);break}case b.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(t);break}case b.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(t);break}case b.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(t);break}case b.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(t);break}case b.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(t);break}case b.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(t);break}case b.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(t);break}case b.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(t);break}case b.BOGUS_DOCTYPE:{this._stateBogusDoctype(t);break}case b.CDATA_SECTION:{this._stateCdataSection(t);break}case b.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(t);break}case b.CDATA_SECTION_END:{this._stateCdataSectionEnd(t);break}case b.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case b.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(t);break}default:throw new Error("Unknown state")}}_stateData(t){switch(t){case E.LESS_THAN_SIGN:{this.state=b.TAG_OPEN;break}case E.AMPERSAND:{this._startCharacterReference();break}case E.NULL:{this._err(S.unexpectedNullCharacter),this._emitCodePoint(t);break}case E.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRcdata(t){switch(t){case E.AMPERSAND:{this._startCharacterReference();break}case E.LESS_THAN_SIGN:{this.state=b.RCDATA_LESS_THAN_SIGN;break}case E.NULL:{this._err(S.unexpectedNullCharacter),this._emitChars(Ie);break}case E.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRawtext(t){switch(t){case E.LESS_THAN_SIGN:{this.state=b.RAWTEXT_LESS_THAN_SIGN;break}case E.NULL:{this._err(S.unexpectedNullCharacter),this._emitChars(Ie);break}case E.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptData(t){switch(t){case E.LESS_THAN_SIGN:{this.state=b.SCRIPT_DATA_LESS_THAN_SIGN;break}case E.NULL:{this._err(S.unexpectedNullCharacter),this._emitChars(Ie);break}case E.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_statePlaintext(t){switch(t){case E.NULL:{this._err(S.unexpectedNullCharacter),this._emitChars(Ie);break}case E.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateTagOpen(t){if(gt(t))this._createStartTagToken(),this.state=b.TAG_NAME,this._stateTagName(t);else switch(t){case E.EXCLAMATION_MARK:{this.state=b.MARKUP_DECLARATION_OPEN;break}case E.SOLIDUS:{this.state=b.END_TAG_OPEN;break}case E.QUESTION_MARK:{this._err(S.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=b.BOGUS_COMMENT,this._stateBogusComment(t);break}case E.EOF:{this._err(S.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(S.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=b.DATA,this._stateData(t)}}_stateEndTagOpen(t){if(gt(t))this._createEndTagToken(),this.state=b.TAG_NAME,this._stateTagName(t);else switch(t){case E.GREATER_THAN_SIGN:{this._err(S.missingEndTagName),this.state=b.DATA;break}case E.EOF:{this._err(S.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err(S.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=b.BOGUS_COMMENT,this._stateBogusComment(t)}}_stateTagName(t){const n=this.currentToken;switch(t){case E.SPACE:case E.LINE_FEED:case E.TABULATION:case E.FORM_FEED:{this.state=b.BEFORE_ATTRIBUTE_NAME;break}case E.SOLIDUS:{this.state=b.SELF_CLOSING_START_TAG;break}case E.GREATER_THAN_SIGN:{this.state=b.DATA,this.emitCurrentTagToken();break}case E.NULL:{this._err(S.unexpectedNullCharacter),n.tagName+=Ie;break}case E.EOF:{this._err(S.eofInTag),this._emitEOFToken();break}default:n.tagName+=String.fromCodePoint(En(t)?Wn(t):t)}}_stateRcdataLessThanSign(t){t===E.SOLIDUS?this.state=b.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=b.RCDATA,this._stateRcdata(t))}_stateRcdataEndTagOpen(t){gt(t)?(this.state=b.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(t)):(this._emitChars("</"),this.state=b.RCDATA,this._stateRcdata(t))}handleSpecialEndTag(t){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();this._createEndTagToken();const n=this.currentToken;switch(n.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case E.SPACE:case E.LINE_FEED:case E.TABULATION:case E.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=b.BEFORE_ATTRIBUTE_NAME,!1;case E.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=b.SELF_CLOSING_START_TAG,!1;case E.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=b.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=b.RCDATA,this._stateRcdata(t))}_stateRawtextLessThanSign(t){t===E.SOLIDUS?this.state=b.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=b.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagOpen(t){gt(t)?(this.state=b.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(t)):(this._emitChars("</"),this.state=b.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=b.RAWTEXT,this._stateRawtext(t))}_stateScriptDataLessThanSign(t){switch(t){case E.SOLIDUS:{this.state=b.SCRIPT_DATA_END_TAG_OPEN;break}case E.EXCLAMATION_MARK:{this.state=b.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break}default:this._emitChars("<"),this.state=b.SCRIPT_DATA,this._stateScriptData(t)}}_stateScriptDataEndTagOpen(t){gt(t)?(this.state=b.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(t)):(this._emitChars("</"),this.state=b.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=b.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStart(t){t===E.HYPHEN_MINUS?(this.state=b.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=b.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStartDash(t){t===E.HYPHEN_MINUS?(this.state=b.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=b.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscaped(t){switch(t){case E.HYPHEN_MINUS:{this.state=b.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case E.LESS_THAN_SIGN:{this.state=b.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case E.NULL:{this._err(S.unexpectedNullCharacter),this._emitChars(Ie);break}case E.EOF:{this._err(S.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataEscapedDash(t){switch(t){case E.HYPHEN_MINUS:{this.state=b.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case E.LESS_THAN_SIGN:{this.state=b.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case E.NULL:{this._err(S.unexpectedNullCharacter),this.state=b.SCRIPT_DATA_ESCAPED,this._emitChars(Ie);break}case E.EOF:{this._err(S.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=b.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedDashDash(t){switch(t){case E.HYPHEN_MINUS:{this._emitChars("-");break}case E.LESS_THAN_SIGN:{this.state=b.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case E.GREATER_THAN_SIGN:{this.state=b.SCRIPT_DATA,this._emitChars(">");break}case E.NULL:{this._err(S.unexpectedNullCharacter),this.state=b.SCRIPT_DATA_ESCAPED,this._emitChars(Ie);break}case E.EOF:{this._err(S.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=b.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedLessThanSign(t){t===E.SOLIDUS?this.state=b.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:gt(t)?(this._emitChars("<"),this.state=b.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(t)):(this._emitChars("<"),this.state=b.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagOpen(t){gt(t)?(this.state=b.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(t)):(this._emitChars("</"),this.state=b.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=b.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscapeStart(t){if(this.preprocessor.startsWith(je.SCRIPT,!1)&&Cu(this.preprocessor.peek(je.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<je.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=b.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=b.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscaped(t){switch(t){case E.HYPHEN_MINUS:{this.state=b.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case E.LESS_THAN_SIGN:{this.state=b.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case E.NULL:{this._err(S.unexpectedNullCharacter),this._emitChars(Ie);break}case E.EOF:{this._err(S.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDash(t){switch(t){case E.HYPHEN_MINUS:{this.state=b.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case E.LESS_THAN_SIGN:{this.state=b.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case E.NULL:{this._err(S.unexpectedNullCharacter),this.state=b.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Ie);break}case E.EOF:{this._err(S.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=b.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDashDash(t){switch(t){case E.HYPHEN_MINUS:{this._emitChars("-");break}case E.LESS_THAN_SIGN:{this.state=b.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case E.GREATER_THAN_SIGN:{this.state=b.SCRIPT_DATA,this._emitChars(">");break}case E.NULL:{this._err(S.unexpectedNullCharacter),this.state=b.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Ie);break}case E.EOF:{this._err(S.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=b.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedLessThanSign(t){t===E.SOLIDUS?(this.state=b.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=b.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateScriptDataDoubleEscapeEnd(t){if(this.preprocessor.startsWith(je.SCRIPT,!1)&&Cu(this.preprocessor.peek(je.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<je.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=b.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=b.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateBeforeAttributeName(t){switch(t){case E.SPACE:case E.LINE_FEED:case E.TABULATION:case E.FORM_FEED:break;case E.SOLIDUS:case E.GREATER_THAN_SIGN:case E.EOF:{this.state=b.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case E.EQUALS_SIGN:{this._err(S.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=b.ATTRIBUTE_NAME;break}default:this._createAttr(""),this.state=b.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateAttributeName(t){switch(t){case E.SPACE:case E.LINE_FEED:case E.TABULATION:case E.FORM_FEED:case E.SOLIDUS:case E.GREATER_THAN_SIGN:case E.EOF:{this._leaveAttrName(),this.state=b.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case E.EQUALS_SIGN:{this._leaveAttrName(),this.state=b.BEFORE_ATTRIBUTE_VALUE;break}case E.QUOTATION_MARK:case E.APOSTROPHE:case E.LESS_THAN_SIGN:{this._err(S.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(t);break}case E.NULL:{this._err(S.unexpectedNullCharacter),this.currentAttr.name+=Ie;break}default:this.currentAttr.name+=String.fromCodePoint(En(t)?Wn(t):t)}}_stateAfterAttributeName(t){switch(t){case E.SPACE:case E.LINE_FEED:case E.TABULATION:case E.FORM_FEED:break;case E.SOLIDUS:{this.state=b.SELF_CLOSING_START_TAG;break}case E.EQUALS_SIGN:{this.state=b.BEFORE_ATTRIBUTE_VALUE;break}case E.GREATER_THAN_SIGN:{this.state=b.DATA,this.emitCurrentTagToken();break}case E.EOF:{this._err(S.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=b.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateBeforeAttributeValue(t){switch(t){case E.SPACE:case E.LINE_FEED:case E.TABULATION:case E.FORM_FEED:break;case E.QUOTATION_MARK:{this.state=b.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case E.APOSTROPHE:{this.state=b.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case E.GREATER_THAN_SIGN:{this._err(S.missingAttributeValue),this.state=b.DATA,this.emitCurrentTagToken();break}default:this.state=b.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(t)}}_stateAttributeValueDoubleQuoted(t){switch(t){case E.QUOTATION_MARK:{this.state=b.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case E.AMPERSAND:{this._startCharacterReference();break}case E.NULL:{this._err(S.unexpectedNullCharacter),this.currentAttr.value+=Ie;break}case E.EOF:{this._err(S.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueSingleQuoted(t){switch(t){case E.APOSTROPHE:{this.state=b.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case E.AMPERSAND:{this._startCharacterReference();break}case E.NULL:{this._err(S.unexpectedNullCharacter),this.currentAttr.value+=Ie;break}case E.EOF:{this._err(S.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueUnquoted(t){switch(t){case E.SPACE:case E.LINE_FEED:case E.TABULATION:case E.FORM_FEED:{this._leaveAttrValue(),this.state=b.BEFORE_ATTRIBUTE_NAME;break}case E.AMPERSAND:{this._startCharacterReference();break}case E.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=b.DATA,this.emitCurrentTagToken();break}case E.NULL:{this._err(S.unexpectedNullCharacter),this.currentAttr.value+=Ie;break}case E.QUOTATION_MARK:case E.APOSTROPHE:case E.LESS_THAN_SIGN:case E.EQUALS_SIGN:case E.GRAVE_ACCENT:{this._err(S.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(t);break}case E.EOF:{this._err(S.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAfterAttributeValueQuoted(t){switch(t){case E.SPACE:case E.LINE_FEED:case E.TABULATION:case E.FORM_FEED:{this._leaveAttrValue(),this.state=b.BEFORE_ATTRIBUTE_NAME;break}case E.SOLIDUS:{this._leaveAttrValue(),this.state=b.SELF_CLOSING_START_TAG;break}case E.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=b.DATA,this.emitCurrentTagToken();break}case E.EOF:{this._err(S.eofInTag),this._emitEOFToken();break}default:this._err(S.missingWhitespaceBetweenAttributes),this.state=b.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateSelfClosingStartTag(t){switch(t){case E.GREATER_THAN_SIGN:{const n=this.currentToken;n.selfClosing=!0,this.state=b.DATA,this.emitCurrentTagToken();break}case E.EOF:{this._err(S.eofInTag),this._emitEOFToken();break}default:this._err(S.unexpectedSolidusInTag),this.state=b.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateBogusComment(t){const n=this.currentToken;switch(t){case E.GREATER_THAN_SIGN:{this.state=b.DATA,this.emitCurrentComment(n);break}case E.EOF:{this.emitCurrentComment(n),this._emitEOFToken();break}case E.NULL:{this._err(S.unexpectedNullCharacter),n.data+=Ie;break}default:n.data+=String.fromCodePoint(t)}}_stateMarkupDeclarationOpen(t){this._consumeSequenceIfMatch(je.DASH_DASH,!0)?(this._createCommentToken(je.DASH_DASH.length+1),this.state=b.COMMENT_START):this._consumeSequenceIfMatch(je.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(je.DOCTYPE.length+1),this.state=b.DOCTYPE):this._consumeSequenceIfMatch(je.CDATA_START,!0)?this.inForeignNode?this.state=b.CDATA_SECTION:(this._err(S.cdataInHtmlContent),this._createCommentToken(je.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=b.BOGUS_COMMENT):this._ensureHibernation()||(this._err(S.incorrectlyOpenedComment),this._createCommentToken(2),this.state=b.BOGUS_COMMENT,this._stateBogusComment(t))}_stateCommentStart(t){switch(t){case E.HYPHEN_MINUS:{this.state=b.COMMENT_START_DASH;break}case E.GREATER_THAN_SIGN:{this._err(S.abruptClosingOfEmptyComment),this.state=b.DATA;const n=this.currentToken;this.emitCurrentComment(n);break}default:this.state=b.COMMENT,this._stateComment(t)}}_stateCommentStartDash(t){const n=this.currentToken;switch(t){case E.HYPHEN_MINUS:{this.state=b.COMMENT_END;break}case E.GREATER_THAN_SIGN:{this._err(S.abruptClosingOfEmptyComment),this.state=b.DATA,this.emitCurrentComment(n);break}case E.EOF:{this._err(S.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=b.COMMENT,this._stateComment(t)}}_stateComment(t){const n=this.currentToken;switch(t){case E.HYPHEN_MINUS:{this.state=b.COMMENT_END_DASH;break}case E.LESS_THAN_SIGN:{n.data+="<",this.state=b.COMMENT_LESS_THAN_SIGN;break}case E.NULL:{this._err(S.unexpectedNullCharacter),n.data+=Ie;break}case E.EOF:{this._err(S.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+=String.fromCodePoint(t)}}_stateCommentLessThanSign(t){const n=this.currentToken;switch(t){case E.EXCLAMATION_MARK:{n.data+="!",this.state=b.COMMENT_LESS_THAN_SIGN_BANG;break}case E.LESS_THAN_SIGN:{n.data+="<";break}default:this.state=b.COMMENT,this._stateComment(t)}}_stateCommentLessThanSignBang(t){t===E.HYPHEN_MINUS?this.state=b.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=b.COMMENT,this._stateComment(t))}_stateCommentLessThanSignBangDash(t){t===E.HYPHEN_MINUS?this.state=b.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=b.COMMENT_END_DASH,this._stateCommentEndDash(t))}_stateCommentLessThanSignBangDashDash(t){t!==E.GREATER_THAN_SIGN&&t!==E.EOF&&this._err(S.nestedComment),this.state=b.COMMENT_END,this._stateCommentEnd(t)}_stateCommentEndDash(t){const n=this.currentToken;switch(t){case E.HYPHEN_MINUS:{this.state=b.COMMENT_END;break}case E.EOF:{this._err(S.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=b.COMMENT,this._stateComment(t)}}_stateCommentEnd(t){const n=this.currentToken;switch(t){case E.GREATER_THAN_SIGN:{this.state=b.DATA,this.emitCurrentComment(n);break}case E.EXCLAMATION_MARK:{this.state=b.COMMENT_END_BANG;break}case E.HYPHEN_MINUS:{n.data+="-";break}case E.EOF:{this._err(S.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--",this.state=b.COMMENT,this._stateComment(t)}}_stateCommentEndBang(t){const n=this.currentToken;switch(t){case E.HYPHEN_MINUS:{n.data+="--!",this.state=b.COMMENT_END_DASH;break}case E.GREATER_THAN_SIGN:{this._err(S.incorrectlyClosedComment),this.state=b.DATA,this.emitCurrentComment(n);break}case E.EOF:{this._err(S.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--!",this.state=b.COMMENT,this._stateComment(t)}}_stateDoctype(t){switch(t){case E.SPACE:case E.LINE_FEED:case E.TABULATION:case E.FORM_FEED:{this.state=b.BEFORE_DOCTYPE_NAME;break}case E.GREATER_THAN_SIGN:{this.state=b.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t);break}case E.EOF:{this._err(S.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(S.missingWhitespaceBeforeDoctypeName),this.state=b.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t)}}_stateBeforeDoctypeName(t){if(En(t))this._createDoctypeToken(String.fromCharCode(Wn(t))),this.state=b.DOCTYPE_NAME;else switch(t){case E.SPACE:case E.LINE_FEED:case E.TABULATION:case E.FORM_FEED:break;case E.NULL:{this._err(S.unexpectedNullCharacter),this._createDoctypeToken(Ie),this.state=b.DOCTYPE_NAME;break}case E.GREATER_THAN_SIGN:{this._err(S.missingDoctypeName),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=b.DATA;break}case E.EOF:{this._err(S.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(t)),this.state=b.DOCTYPE_NAME}}_stateDoctypeName(t){const n=this.currentToken;switch(t){case E.SPACE:case E.LINE_FEED:case E.TABULATION:case E.FORM_FEED:{this.state=b.AFTER_DOCTYPE_NAME;break}case E.GREATER_THAN_SIGN:{this.state=b.DATA,this.emitCurrentDoctype(n);break}case E.NULL:{this._err(S.unexpectedNullCharacter),n.name+=Ie;break}case E.EOF:{this._err(S.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.name+=String.fromCodePoint(En(t)?Wn(t):t)}}_stateAfterDoctypeName(t){const n=this.currentToken;switch(t){case E.SPACE:case E.LINE_FEED:case E.TABULATION:case E.FORM_FEED:break;case E.GREATER_THAN_SIGN:{this.state=b.DATA,this.emitCurrentDoctype(n);break}case E.EOF:{this._err(S.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._consumeSequenceIfMatch(je.PUBLIC,!1)?this.state=b.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(je.SYSTEM,!1)?this.state=b.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(S.invalidCharacterSequenceAfterDoctypeName),n.forceQuirks=!0,this.state=b.BOGUS_DOCTYPE,this._stateBogusDoctype(t))}}_stateAfterDoctypePublicKeyword(t){const n=this.currentToken;switch(t){case E.SPACE:case E.LINE_FEED:case E.TABULATION:case E.FORM_FEED:{this.state=b.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case E.QUOTATION_MARK:{this._err(S.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=b.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case E.APOSTROPHE:{this._err(S.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=b.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case E.GREATER_THAN_SIGN:{this._err(S.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=b.DATA,this.emitCurrentDoctype(n);break}case E.EOF:{this._err(S.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(S.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=b.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypePublicIdentifier(t){const n=this.currentToken;switch(t){case E.SPACE:case E.LINE_FEED:case E.TABULATION:case E.FORM_FEED:break;case E.QUOTATION_MARK:{n.publicId="",this.state=b.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case E.APOSTROPHE:{n.publicId="",this.state=b.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case E.GREATER_THAN_SIGN:{this._err(S.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=b.DATA,this.emitCurrentDoctype(n);break}case E.EOF:{this._err(S.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(S.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=b.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypePublicIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case E.QUOTATION_MARK:{this.state=b.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case E.NULL:{this._err(S.unexpectedNullCharacter),n.publicId+=Ie;break}case E.GREATER_THAN_SIGN:{this._err(S.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=b.DATA;break}case E.EOF:{this._err(S.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.publicId+=String.fromCodePoint(t)}}_stateDoctypePublicIdentifierSingleQuoted(t){const n=this.currentToken;switch(t){case E.APOSTROPHE:{this.state=b.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case E.NULL:{this._err(S.unexpectedNullCharacter),n.publicId+=Ie;break}case E.GREATER_THAN_SIGN:{this._err(S.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=b.DATA;break}case E.EOF:{this._err(S.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.publicId+=String.fromCodePoint(t)}}_stateAfterDoctypePublicIdentifier(t){const n=this.currentToken;switch(t){case E.SPACE:case E.LINE_FEED:case E.TABULATION:case E.FORM_FEED:{this.state=b.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case E.GREATER_THAN_SIGN:{this.state=b.DATA,this.emitCurrentDoctype(n);break}case E.QUOTATION_MARK:{this._err(S.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=b.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case E.APOSTROPHE:{this._err(S.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=b.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case E.EOF:{this._err(S.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(S.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=b.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBetweenDoctypePublicAndSystemIdentifiers(t){const n=this.currentToken;switch(t){case E.SPACE:case E.LINE_FEED:case E.TABULATION:case E.FORM_FEED:break;case E.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=b.DATA;break}case E.QUOTATION_MARK:{n.systemId="",this.state=b.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case E.APOSTROPHE:{n.systemId="",this.state=b.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case E.EOF:{this._err(S.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(S.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=b.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateAfterDoctypeSystemKeyword(t){const n=this.currentToken;switch(t){case E.SPACE:case E.LINE_FEED:case E.TABULATION:case E.FORM_FEED:{this.state=b.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case E.QUOTATION_MARK:{this._err(S.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=b.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case E.APOSTROPHE:{this._err(S.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=b.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case E.GREATER_THAN_SIGN:{this._err(S.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=b.DATA,this.emitCurrentDoctype(n);break}case E.EOF:{this._err(S.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(S.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=b.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypeSystemIdentifier(t){const n=this.currentToken;switch(t){case E.SPACE:case E.LINE_FEED:case E.TABULATION:case E.FORM_FEED:break;case E.QUOTATION_MARK:{n.systemId="",this.state=b.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case E.APOSTROPHE:{n.systemId="",this.state=b.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case E.GREATER_THAN_SIGN:{this._err(S.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=b.DATA,this.emitCurrentDoctype(n);break}case E.EOF:{this._err(S.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(S.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=b.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypeSystemIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case E.QUOTATION_MARK:{this.state=b.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case E.NULL:{this._err(S.unexpectedNullCharacter),n.systemId+=Ie;break}case E.GREATER_THAN_SIGN:{this._err(S.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=b.DATA;break}case E.EOF:{this._err(S.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.systemId+=String.fromCodePoint(t)}}_stateDoctypeSystemIdentifierSingleQuoted(t){const n=this.currentToken;switch(t){case E.APOSTROPHE:{this.state=b.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case E.NULL:{this._err(S.unexpectedNullCharacter),n.systemId+=Ie;break}case E.GREATER_THAN_SIGN:{this._err(S.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=b.DATA;break}case E.EOF:{this._err(S.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.systemId+=String.fromCodePoint(t)}}_stateAfterDoctypeSystemIdentifier(t){const n=this.currentToken;switch(t){case E.SPACE:case E.LINE_FEED:case E.TABULATION:case E.FORM_FEED:break;case E.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=b.DATA;break}case E.EOF:{this._err(S.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(S.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=b.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBogusDoctype(t){const n=this.currentToken;switch(t){case E.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=b.DATA;break}case E.NULL:{this._err(S.unexpectedNullCharacter);break}case E.EOF:{this.emitCurrentDoctype(n),this._emitEOFToken();break}}}_stateCdataSection(t){switch(t){case E.RIGHT_SQUARE_BRACKET:{this.state=b.CDATA_SECTION_BRACKET;break}case E.EOF:{this._err(S.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateCdataSectionBracket(t){t===E.RIGHT_SQUARE_BRACKET?this.state=b.CDATA_SECTION_END:(this._emitChars("]"),this.state=b.CDATA_SECTION,this._stateCdataSection(t))}_stateCdataSectionEnd(t){switch(t){case E.GREATER_THAN_SIGN:{this.state=b.DATA;break}case E.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:this._emitChars("]]"),this.state=b.CDATA_SECTION,this._stateCdataSection(t)}}_stateCharacterReference(){let t=this.entityDecoder.write(this.preprocessor.html,this.preprocessor.pos);if(t<0)if(this.preprocessor.lastChunkWritten)t=this.entityDecoder.end();else{this.active=!1,this.preprocessor.pos=this.preprocessor.html.length-1,this.consumedAfterSnapshot=0,this.preprocessor.endOfChunkHit=!0;return}t===0?(this.preprocessor.pos=this.entityStartPos,this._flushCodePointConsumedAsCharacterReference(E.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&Su(this.preprocessor.peek(1))?b.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(t){Su(t)?this._flushCodePointConsumedAsCharacterReference(t):(t===E.SEMICOLON&&this._err(S.unknownNamedCharacterReference),this.state=this.returnState,this._callState(t))}}const wo=new Set([s.DD,s.DT,s.LI,s.OPTGROUP,s.OPTION,s.P,s.RB,s.RP,s.RT,s.RTC]),Iu=new Set([...wo,s.CAPTION,s.COLGROUP,s.TBODY,s.TD,s.TFOOT,s.TH,s.THEAD,s.TR]),ir=new Set([s.APPLET,s.CAPTION,s.HTML,s.MARQUEE,s.OBJECT,s.TABLE,s.TD,s.TEMPLATE,s.TH]),Bp=new Set([...ir,s.OL,s.UL]),Fp=new Set([...ir,s.BUTTON]),Nu=new Set([s.ANNOTATION_XML,s.MI,s.MN,s.MO,s.MS,s.MTEXT]),Ou=new Set([s.DESC,s.FOREIGN_OBJECT,s.TITLE]),Hp=new Set([s.TR,s.TEMPLATE,s.HTML]),Up=new Set([s.TBODY,s.TFOOT,s.THEAD,s.TEMPLATE,s.HTML]),jp=new Set([s.TABLE,s.TEMPLATE,s.HTML]),$p=new Set([s.TD,s.TH]);class Yp{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(t,n,r){this.treeAdapter=n,this.handler=r,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=s.UNKNOWN,this.current=t}_indexOf(t){return this.items.lastIndexOf(t,this.stackTop)}_isInTemplate(){return this.currentTagId===s.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===D.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(t,n){this.stackTop++,this.items[this.stackTop]=t,this.current=t,this.tagIDs[this.stackTop]=n,this.currentTagId=n,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(t,n,!0)}pop(){const t=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!0)}replace(t,n){const r=this._indexOf(t);this.items[r]=n,r===this.stackTop&&(this.current=n)}insertAfter(t,n,r){const a=this._indexOf(t)+1;this.items.splice(a,0,n),this.tagIDs.splice(a,0,r),this.stackTop++,a===this.stackTop&&this._updateCurrentElement(),this.handler.onItemPush(this.current,this.currentTagId,a===this.stackTop)}popUntilTagNamePopped(t){let n=this.stackTop+1;do n=this.tagIDs.lastIndexOf(t,n-1);while(n>0&&this.treeAdapter.getNamespaceURI(this.items[n])!==D.HTML);this.shortenToLength(n<0?0:n)}shortenToLength(t){for(;this.stackTop>=t;){const n=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(n,this.stackTop<t)}}popUntilElementPopped(t){const n=this._indexOf(t);this.shortenToLength(n<0?0:n)}popUntilPopped(t,n){const r=this._indexOfTagNames(t,n);this.shortenToLength(r<0?0:r)}popUntilNumberedHeaderPopped(){this.popUntilPopped(La,D.HTML)}popUntilTableCellPopped(){this.popUntilPopped($p,D.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(t,n){for(let r=this.stackTop;r>=0;r--)if(t.has(this.tagIDs[r])&&this.treeAdapter.getNamespaceURI(this.items[r])===n)return r;return-1}clearBackTo(t,n){const r=this._indexOfTagNames(t,n);this.shortenToLength(r+1)}clearBackToTableContext(){this.clearBackTo(jp,D.HTML)}clearBackToTableBodyContext(){this.clearBackTo(Up,D.HTML)}clearBackToTableRowContext(){this.clearBackTo(Hp,D.HTML)}remove(t){const n=this._indexOf(t);n>=0&&(n===this.stackTop?this.pop():(this.items.splice(n,1),this.tagIDs.splice(n,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===s.BODY?this.items[1]:null}contains(t){return this._indexOf(t)>-1}getCommonAncestor(t){const n=this._indexOf(t)-1;return n>=0?this.items[n]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===s.HTML}hasInDynamicScope(t,n){for(let r=this.stackTop;r>=0;r--){const a=this.tagIDs[r];switch(this.treeAdapter.getNamespaceURI(this.items[r])){case D.HTML:{if(a===t)return!0;if(n.has(a))return!1;break}case D.SVG:{if(Ou.has(a))return!1;break}case D.MATHML:{if(Nu.has(a))return!1;break}}}return!0}hasInScope(t){return this.hasInDynamicScope(t,ir)}hasInListItemScope(t){return this.hasInDynamicScope(t,Bp)}hasInButtonScope(t){return this.hasInDynamicScope(t,Fp)}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){const n=this.tagIDs[t];switch(this.treeAdapter.getNamespaceURI(this.items[t])){case D.HTML:{if(La.has(n))return!0;if(ir.has(n))return!1;break}case D.SVG:{if(Ou.has(n))return!1;break}case D.MATHML:{if(Nu.has(n))return!1;break}}}return!0}hasInTableScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===D.HTML)switch(this.tagIDs[n]){case t:return!0;case s.TABLE:case s.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===D.HTML)switch(this.tagIDs[t]){case s.TBODY:case s.THEAD:case s.TFOOT:return!0;case s.TABLE:case s.HTML:return!1}return!0}hasInSelectScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===D.HTML)switch(this.tagIDs[n]){case t:return!0;case s.OPTION:case s.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;wo.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;Iu.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==t&&Iu.has(this.currentTagId);)this.pop()}}const Qr=3;var ot;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(ot||(ot={}));const Lu={type:ot.Marker};class Gp{constructor(t){this.treeAdapter=t,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(t,n){const r=[],a=n.length,i=this.treeAdapter.getTagName(t),u=this.treeAdapter.getNamespaceURI(t);for(let o=0;o<this.entries.length;o++){const l=this.entries[o];if(l.type===ot.Marker)break;const{element:c}=l;if(this.treeAdapter.getTagName(c)===i&&this.treeAdapter.getNamespaceURI(c)===u){const f=this.treeAdapter.getAttrList(c);f.length===a&&r.push({idx:o,attrs:f})}}return r}_ensureNoahArkCondition(t){if(this.entries.length<Qr)return;const n=this.treeAdapter.getAttrList(t),r=this._getNoahArkConditionCandidates(t,n);if(r.length<Qr)return;const a=new Map(n.map(u=>[u.name,u.value]));let i=0;for(let u=0;u<r.length;u++){const o=r[u];o.attrs.every(l=>a.get(l.name)===l.value)&&(i+=1,i>=Qr&&this.entries.splice(o.idx,1))}}insertMarker(){this.entries.unshift(Lu)}pushElement(t,n){this._ensureNoahArkCondition(t),this.entries.unshift({type:ot.Element,element:t,token:n})}insertElementAfterBookmark(t,n){const r=this.entries.indexOf(this.bookmark);this.entries.splice(r,0,{type:ot.Element,element:t,token:n})}removeEntry(t){const n=this.entries.indexOf(t);n>=0&&this.entries.splice(n,1)}clearToLastMarker(){const t=this.entries.indexOf(Lu);t>=0?this.entries.splice(0,t+1):this.entries.length=0}getElementEntryInScopeWithTagName(t){const n=this.entries.find(r=>r.type===ot.Marker||this.treeAdapter.getTagName(r.element)===t);return n&&n.type===ot.Element?n:null}getElementEntry(t){return this.entries.find(n=>n.type===ot.Element&&n.element===t)}}const Tt={createDocument(){return{nodeName:"#document",mode:Ke.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(e,t,n){return{nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:[],parentNode:null}},createCommentNode(e){return{nodeName:"#comment",data:e,parentNode:null}},createTextNode(e){return{nodeName:"#text",value:e,parentNode:null}},appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,n){const r=e.childNodes.indexOf(n);e.childNodes.splice(r,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent(e){return e.content},setDocumentType(e,t,n,r){const a=e.childNodes.find(i=>i.nodeName==="#documentType");if(a)a.name=t,a.publicId=n,a.systemId=r;else{const i={nodeName:"#documentType",name:t,publicId:n,systemId:r,parentNode:null};Tt.appendChild(e,i)}},setDocumentMode(e,t){e.mode=t},getDocumentMode(e){return e.mode},detachNode(e){if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){const n=e.childNodes[e.childNodes.length-1];if(Tt.isTextNode(n)){n.value+=t;return}}Tt.appendChild(e,Tt.createTextNode(t))},insertTextBefore(e,t,n){const r=e.childNodes[e.childNodes.indexOf(n)-1];r&&Tt.isTextNode(r)?r.value+=t:Tt.insertBefore(e,Tt.createTextNode(t),n)},adoptAttributes(e,t){const n=new Set(e.attrs.map(r=>r.name));for(let r=0;r<t.length;r++)n.has(t[r].name)||e.attrs.push(t[r])},getFirstChild(e){return e.childNodes[0]},getChildNodes(e){return e.childNodes},getParentNode(e){return e.parentNode},getAttrList(e){return e.attrs},getTagName(e){return e.tagName},getNamespaceURI(e){return e.namespaceURI},getTextNodeContent(e){return e.value},getCommentNodeContent(e){return e.data},getDocumentTypeNodeName(e){return e.name},getDocumentTypeNodePublicId(e){return e.publicId},getDocumentTypeNodeSystemId(e){return e.systemId},isTextNode(e){return e.nodeName==="#text"},isCommentNode(e){return e.nodeName==="#comment"},isDocumentTypeNode(e){return e.nodeName==="#documentType"},isElementNode(e){return Object.prototype.hasOwnProperty.call(e,"tagName")},setNodeSourceCodeLocation(e,t){e.sourceCodeLocation=t},getNodeSourceCodeLocation(e){return e.sourceCodeLocation},updateNodeSourceCodeLocation(e,t){e.sourceCodeLocation={...e.sourceCodeLocation,...t}}},Mo="html",zp="about:legacy-compat",Vp="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",Bo=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],qp=[...Bo,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],Wp=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),Fo=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],Xp=[...Fo,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function Ru(e,t){return t.some(n=>e.startsWith(n))}function Qp(e){return e.name===Mo&&e.publicId===null&&(e.systemId===null||e.systemId===zp)}function Kp(e){if(e.name!==Mo)return Ke.QUIRKS;const{systemId:t}=e;if(t&&t.toLowerCase()===Vp)return Ke.QUIRKS;let{publicId:n}=e;if(n!==null){if(n=n.toLowerCase(),Wp.has(n))return Ke.QUIRKS;let r=t===null?qp:Bo;if(Ru(n,r))return Ke.QUIRKS;if(r=t===null?Fo:Xp,Ru(n,r))return Ke.LIMITED_QUIRKS}return Ke.NO_QUIRKS}const vu={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},Zp="definitionurl",Jp="definitionURL",eE=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(e=>[e.toLowerCase(),e])),tE=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:D.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:D.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:D.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:D.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:D.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:D.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:D.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:D.XML}],["xml:space",{prefix:"xml",name:"space",namespace:D.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:D.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:D.XMLNS}]]),nE=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(e=>[e.toLowerCase(),e])),rE=new Set([s.B,s.BIG,s.BLOCKQUOTE,s.BODY,s.BR,s.CENTER,s.CODE,s.DD,s.DIV,s.DL,s.DT,s.EM,s.EMBED,s.H1,s.H2,s.H3,s.H4,s.H5,s.H6,s.HEAD,s.HR,s.I,s.IMG,s.LI,s.LISTING,s.MENU,s.META,s.NOBR,s.OL,s.P,s.PRE,s.RUBY,s.S,s.SMALL,s.SPAN,s.STRONG,s.STRIKE,s.SUB,s.SUP,s.TABLE,s.TT,s.U,s.UL,s.VAR]);function aE(e){const t=e.tagID;return t===s.FONT&&e.attrs.some(({name:r})=>r===kt.COLOR||r===kt.SIZE||r===kt.FACE)||rE.has(t)}function Ho(e){for(let t=0;t<e.attrs.length;t++)if(e.attrs[t].name===Zp){e.attrs[t].name=Jp;break}}function Uo(e){for(let t=0;t<e.attrs.length;t++){const n=eE.get(e.attrs[t].name);n!=null&&(e.attrs[t].name=n)}}function ii(e){for(let t=0;t<e.attrs.length;t++){const n=tE.get(e.attrs[t].name);n&&(e.attrs[t].prefix=n.prefix,e.attrs[t].name=n.name,e.attrs[t].namespace=n.namespace)}}function iE(e){const t=nE.get(e.tagName);t!=null&&(e.tagName=t,e.tagID=sn(e.tagName))}function uE(e,t){return t===D.MATHML&&(e===s.MI||e===s.MO||e===s.MN||e===s.MS||e===s.MTEXT)}function sE(e,t,n){if(t===D.MATHML&&e===s.ANNOTATION_XML){for(let r=0;r<n.length;r++)if(n[r].name===kt.ENCODING){const a=n[r].value.toLowerCase();return a===vu.TEXT_HTML||a===vu.APPLICATION_XML}}return t===D.SVG&&(e===s.FOREIGN_OBJECT||e===s.DESC||e===s.TITLE)}function oE(e,t,n,r){return(!r||r===D.HTML)&&sE(e,t,n)||(!r||r===D.MATHML)&&uE(e,t)}const lE="hidden",cE=8,fE=3;var T;(function(e){e[e.INITIAL=0]="INITIAL",e[e.BEFORE_HTML=1]="BEFORE_HTML",e[e.BEFORE_HEAD=2]="BEFORE_HEAD",e[e.IN_HEAD=3]="IN_HEAD",e[e.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",e[e.AFTER_HEAD=5]="AFTER_HEAD",e[e.IN_BODY=6]="IN_BODY",e[e.TEXT=7]="TEXT",e[e.IN_TABLE=8]="IN_TABLE",e[e.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",e[e.IN_CAPTION=10]="IN_CAPTION",e[e.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",e[e.IN_TABLE_BODY=12]="IN_TABLE_BODY",e[e.IN_ROW=13]="IN_ROW",e[e.IN_CELL=14]="IN_CELL",e[e.IN_SELECT=15]="IN_SELECT",e[e.IN_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",e[e.IN_TEMPLATE=17]="IN_TEMPLATE",e[e.AFTER_BODY=18]="AFTER_BODY",e[e.IN_FRAMESET=19]="IN_FRAMESET",e[e.AFTER_FRAMESET=20]="AFTER_FRAMESET",e[e.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",e[e.AFTER_AFTER_FRAMESET=22]="AFTER_AFTER_FRAMESET"})(T||(T={}));const dE={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},jo=new Set([s.TABLE,s.TBODY,s.TFOOT,s.THEAD,s.TR]),Pu={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:Tt,onParseError:null};class Du{constructor(t,n,r=null,a=null){this.fragmentContext=r,this.scriptHandler=a,this.currentToken=null,this.stopped=!1,this.insertionMode=T.INITIAL,this.originalInsertionMode=T.INITIAL,this.headElement=null,this.formElement=null,this.currentNotInHTML=!1,this.tmplInsertionModeStack=[],this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1,this.options={...Pu,...t},this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=n??this.treeAdapter.createDocument(),this.tokenizer=new Mp(this.options,this),this.activeFormattingElements=new Gp(this.treeAdapter),this.fragmentContextID=r?sn(this.treeAdapter.getTagName(r)):s.UNKNOWN,this._setContextModes(r??this.document,this.fragmentContextID),this.openElements=new Yp(this.document,this.treeAdapter,this)}static parse(t,n){const r=new this(n);return r.tokenizer.write(t,!0),r.document}static getFragmentParser(t,n){const r={...Pu,...n};t??(t=r.treeAdapter.createElement(_.TEMPLATE,D.HTML,[]));const a=r.treeAdapter.createElement("documentmock",D.HTML,[]),i=new this(r,a,t);return i.fragmentContextID===s.TEMPLATE&&i.tmplInsertionModeStack.unshift(T.IN_TEMPLATE),i._initTokenizerForFragmentParsing(),i._insertFakeRootElement(),i._resetInsertionMode(),i._findFormInFragmentContext(),i}getFragment(){const t=this.treeAdapter.getFirstChild(this.document),n=this.treeAdapter.createDocumentFragment();return this._adoptNodes(t,n),n}_err(t,n,r){var a;if(!this.onParseError)return;const i=(a=t.location)!==null&&a!==void 0?a:dE,u={code:n,startLine:i.startLine,startCol:i.startCol,startOffset:i.startOffset,endLine:r?i.startLine:i.endLine,endCol:r?i.startCol:i.endCol,endOffset:r?i.startOffset:i.endOffset};this.onParseError(u)}onItemPush(t,n,r){var a,i;(i=(a=this.treeAdapter).onItemPush)===null||i===void 0||i.call(a,t),r&&this.openElements.stackTop>0&&this._setContextModes(t,n)}onItemPop(t,n){var r,a;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(t,this.currentToken),(a=(r=this.treeAdapter).onItemPop)===null||a===void 0||a.call(r,t,this.openElements.current),n){let i,u;this.openElements.stackTop===0&&this.fragmentContext?(i=this.fragmentContext,u=this.fragmentContextID):{current:i,currentTagId:u}=this.openElements,this._setContextModes(i,u)}}_setContextModes(t,n){const r=t===this.document||this.treeAdapter.getNamespaceURI(t)===D.HTML;this.currentNotInHTML=!r,this.tokenizer.inForeignNode=!r&&!this._isIntegrationPoint(n,t)}_switchToTextParsing(t,n){this._insertElement(t,D.HTML),this.tokenizer.state=n,this.originalInsertionMode=this.insertionMode,this.insertionMode=T.TEXT}switchToPlaintextParsing(){this.insertionMode=T.TEXT,this.originalInsertionMode=T.IN_BODY,this.tokenizer.state=ve.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let t=this.fragmentContext;for(;t;){if(this.treeAdapter.getTagName(t)===_.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==D.HTML))switch(this.fragmentContextID){case s.TITLE:case s.TEXTAREA:{this.tokenizer.state=ve.RCDATA;break}case s.STYLE:case s.XMP:case s.IFRAME:case s.NOEMBED:case s.NOFRAMES:case s.NOSCRIPT:{this.tokenizer.state=ve.RAWTEXT;break}case s.SCRIPT:{this.tokenizer.state=ve.SCRIPT_DATA;break}case s.PLAINTEXT:{this.tokenizer.state=ve.PLAINTEXT;break}}}_setDocumentType(t){const n=t.name||"",r=t.publicId||"",a=t.systemId||"";if(this.treeAdapter.setDocumentType(this.document,n,r,a),t.location){const u=this.treeAdapter.getChildNodes(this.document).find(o=>this.treeAdapter.isDocumentTypeNode(o));u&&this.treeAdapter.setNodeSourceCodeLocation(u,t.location)}}_attachElementToTree(t,n){if(this.options.sourceCodeLocationInfo){const r=n&&{...n,startTag:n};this.treeAdapter.setNodeSourceCodeLocation(t,r)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(t);else{const r=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(r,t)}}_appendElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location)}_insertElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location),this.openElements.push(r,t.tagID)}_insertFakeElement(t,n){const r=this.treeAdapter.createElement(t,D.HTML,[]);this._attachElementToTree(r,null),this.openElements.push(r,n)}_insertTemplate(t){const n=this.treeAdapter.createElement(t.tagName,D.HTML,t.attrs),r=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(n,r),this._attachElementToTree(n,t.location),this.openElements.push(n,t.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,null)}_insertFakeRootElement(){const t=this.treeAdapter.createElement(_.HTML,D.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(t,null),this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t,s.HTML)}_appendCommentNode(t,n){const r=this.treeAdapter.createCommentNode(t.data);this.treeAdapter.appendChild(n,r),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,t.location)}_insertCharacters(t){let n,r;if(this._shouldFosterParentOnInsertion()?({parent:n,beforeElement:r}=this._findFosterParentingLocation(),r?this.treeAdapter.insertTextBefore(n,t.chars,r):this.treeAdapter.insertText(n,t.chars)):(n=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(n,t.chars)),!t.location)return;const a=this.treeAdapter.getChildNodes(n),i=r?a.lastIndexOf(r):a.length,u=a[i-1];if(this.treeAdapter.getNodeSourceCodeLocation(u)){const{endLine:l,endCol:c,endOffset:f}=t.location;this.treeAdapter.updateNodeSourceCodeLocation(u,{endLine:l,endCol:c,endOffset:f})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(u,t.location)}_adoptNodes(t,n){for(let r=this.treeAdapter.getFirstChild(t);r;r=this.treeAdapter.getFirstChild(t))this.treeAdapter.detachNode(r),this.treeAdapter.appendChild(n,r)}_setEndLocation(t,n){if(this.treeAdapter.getNodeSourceCodeLocation(t)&&n.location){const r=n.location,a=this.treeAdapter.getTagName(t),i=n.type===fe.END_TAG&&a===n.tagName?{endTag:{...r},endLine:r.endLine,endCol:r.endCol,endOffset:r.endOffset}:{endLine:r.startLine,endCol:r.startCol,endOffset:r.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(t,i)}}shouldProcessStartTagTokenInForeignContent(t){if(!this.currentNotInHTML)return!1;let n,r;return this.openElements.stackTop===0&&this.fragmentContext?(n=this.fragmentContext,r=this.fragmentContextID):{current:n,currentTagId:r}=this.openElements,t.tagID===s.SVG&&this.treeAdapter.getTagName(n)===_.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(n)===D.MATHML?!1:this.tokenizer.inForeignNode||(t.tagID===s.MGLYPH||t.tagID===s.MALIGNMARK)&&!this._isIntegrationPoint(r,n,D.HTML)}_processToken(t){switch(t.type){case fe.CHARACTER:{this.onCharacter(t);break}case fe.NULL_CHARACTER:{this.onNullCharacter(t);break}case fe.COMMENT:{this.onComment(t);break}case fe.DOCTYPE:{this.onDoctype(t);break}case fe.START_TAG:{this._processStartTag(t);break}case fe.END_TAG:{this.onEndTag(t);break}case fe.EOF:{this.onEof(t);break}case fe.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(t);break}}}_isIntegrationPoint(t,n,r){const a=this.treeAdapter.getNamespaceURI(n),i=this.treeAdapter.getAttrList(n);return oE(t,a,i,r)}_reconstructActiveFormattingElements(){const t=this.activeFormattingElements.entries.length;if(t){const n=this.activeFormattingElements.entries.findIndex(a=>a.type===ot.Marker||this.openElements.contains(a.element)),r=n<0?t-1:n-1;for(let a=r;a>=0;a--){const i=this.activeFormattingElements.entries[a];this._insertElement(i.token,this.treeAdapter.getNamespaceURI(i.element)),i.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=T.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(s.P),this.openElements.popUntilTagNamePopped(s.P)}_resetInsertionMode(){for(let t=this.openElements.stackTop;t>=0;t--)switch(t===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[t]){case s.TR:{this.insertionMode=T.IN_ROW;return}case s.TBODY:case s.THEAD:case s.TFOOT:{this.insertionMode=T.IN_TABLE_BODY;return}case s.CAPTION:{this.insertionMode=T.IN_CAPTION;return}case s.COLGROUP:{this.insertionMode=T.IN_COLUMN_GROUP;return}case s.TABLE:{this.insertionMode=T.IN_TABLE;return}case s.BODY:{this.insertionMode=T.IN_BODY;return}case s.FRAMESET:{this.insertionMode=T.IN_FRAMESET;return}case s.SELECT:{this._resetInsertionModeForSelect(t);return}case s.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case s.HTML:{this.insertionMode=this.headElement?T.AFTER_HEAD:T.BEFORE_HEAD;return}case s.TD:case s.TH:{if(t>0){this.insertionMode=T.IN_CELL;return}break}case s.HEAD:{if(t>0){this.insertionMode=T.IN_HEAD;return}break}}this.insertionMode=T.IN_BODY}_resetInsertionModeForSelect(t){if(t>0)for(let n=t-1;n>0;n--){const r=this.openElements.tagIDs[n];if(r===s.TEMPLATE)break;if(r===s.TABLE){this.insertionMode=T.IN_SELECT_IN_TABLE;return}}this.insertionMode=T.IN_SELECT}_isElementCausesFosterParenting(t){return jo.has(t)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let t=this.openElements.stackTop;t>=0;t--){const n=this.openElements.items[t];switch(this.openElements.tagIDs[t]){case s.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(n)===D.HTML)return{parent:this.treeAdapter.getTemplateContent(n),beforeElement:null};break}case s.TABLE:{const r=this.treeAdapter.getParentNode(n);return r?{parent:r,beforeElement:n}:{parent:this.openElements.items[t-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(t){const n=this._findFosterParentingLocation();n.beforeElement?this.treeAdapter.insertBefore(n.parent,t,n.beforeElement):this.treeAdapter.appendChild(n.parent,t)}_isSpecialElement(t,n){const r=this.treeAdapter.getNamespaceURI(t);return Pp[r].has(n)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){$1(this,t);return}switch(this.insertionMode){case T.INITIAL:{hn(this,t);break}case T.BEFORE_HTML:{_n(this,t);break}case T.BEFORE_HEAD:{yn(this,t);break}case T.IN_HEAD:{xn(this,t);break}case T.IN_HEAD_NO_SCRIPT:{Sn(this,t);break}case T.AFTER_HEAD:{Cn(this,t);break}case T.IN_BODY:case T.IN_CAPTION:case T.IN_CELL:case T.IN_TEMPLATE:{Yo(this,t);break}case T.TEXT:case T.IN_SELECT:case T.IN_SELECT_IN_TABLE:{this._insertCharacters(t);break}case T.IN_TABLE:case T.IN_TABLE_BODY:case T.IN_ROW:{Kr(this,t);break}case T.IN_TABLE_TEXT:{Xo(this,t);break}case T.IN_COLUMN_GROUP:{ur(this,t);break}case T.AFTER_BODY:{sr(this,t);break}case T.AFTER_AFTER_BODY:{tr(this,t);break}}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){j1(this,t);return}switch(this.insertionMode){case T.INITIAL:{hn(this,t);break}case T.BEFORE_HTML:{_n(this,t);break}case T.BEFORE_HEAD:{yn(this,t);break}case T.IN_HEAD:{xn(this,t);break}case T.IN_HEAD_NO_SCRIPT:{Sn(this,t);break}case T.AFTER_HEAD:{Cn(this,t);break}case T.TEXT:{this._insertCharacters(t);break}case T.IN_TABLE:case T.IN_TABLE_BODY:case T.IN_ROW:{Kr(this,t);break}case T.IN_COLUMN_GROUP:{ur(this,t);break}case T.AFTER_BODY:{sr(this,t);break}case T.AFTER_AFTER_BODY:{tr(this,t);break}}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML){Ra(this,t);return}switch(this.insertionMode){case T.INITIAL:case T.BEFORE_HTML:case T.BEFORE_HEAD:case T.IN_HEAD:case T.IN_HEAD_NO_SCRIPT:case T.AFTER_HEAD:case T.IN_BODY:case T.IN_TABLE:case T.IN_CAPTION:case T.IN_COLUMN_GROUP:case T.IN_TABLE_BODY:case T.IN_ROW:case T.IN_CELL:case T.IN_SELECT:case T.IN_SELECT_IN_TABLE:case T.IN_TEMPLATE:case T.IN_FRAMESET:case T.AFTER_FRAMESET:{Ra(this,t);break}case T.IN_TABLE_TEXT:{mn(this,t);break}case T.AFTER_BODY:{TE(this,t);break}case T.AFTER_AFTER_BODY:case T.AFTER_AFTER_FRAMESET:{AE(this,t);break}}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case T.INITIAL:{_E(this,t);break}case T.BEFORE_HEAD:case T.IN_HEAD:case T.IN_HEAD_NO_SCRIPT:case T.AFTER_HEAD:{this._err(t,S.misplacedDoctype);break}case T.IN_TABLE_TEXT:{mn(this,t);break}}}onStartTag(t){this.skipNextNewLine=!1,this.currentToken=t,this._processStartTag(t),t.selfClosing&&!t.ackSelfClosing&&this._err(t,S.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(t){this.shouldProcessStartTagTokenInForeignContent(t)?Y1(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case T.INITIAL:{hn(this,t);break}case T.BEFORE_HTML:{yE(this,t);break}case T.BEFORE_HEAD:{SE(this,t);break}case T.IN_HEAD:{rt(this,t);break}case T.IN_HEAD_NO_SCRIPT:{NE(this,t);break}case T.AFTER_HEAD:{LE(this,t);break}case T.IN_BODY:{Fe(this,t);break}case T.IN_TABLE:{tn(this,t);break}case T.IN_TABLE_TEXT:{mn(this,t);break}case T.IN_CAPTION:{C1(this,t);break}case T.IN_COLUMN_GROUP:{oi(this,t);break}case T.IN_TABLE_BODY:{Ir(this,t);break}case T.IN_ROW:{Nr(this,t);break}case T.IN_CELL:{O1(this,t);break}case T.IN_SELECT:{Zo(this,t);break}case T.IN_SELECT_IN_TABLE:{R1(this,t);break}case T.IN_TEMPLATE:{P1(this,t);break}case T.AFTER_BODY:{k1(this,t);break}case T.IN_FRAMESET:{w1(this,t);break}case T.AFTER_FRAMESET:{B1(this,t);break}case T.AFTER_AFTER_BODY:{H1(this,t);break}case T.AFTER_AFTER_FRAMESET:{U1(this,t);break}}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?G1(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case T.INITIAL:{hn(this,t);break}case T.BEFORE_HTML:{xE(this,t);break}case T.BEFORE_HEAD:{CE(this,t);break}case T.IN_HEAD:{IE(this,t);break}case T.IN_HEAD_NO_SCRIPT:{OE(this,t);break}case T.AFTER_HEAD:{RE(this,t);break}case T.IN_BODY:{Cr(this,t);break}case T.TEXT:{p1(this,t);break}case T.IN_TABLE:{Ln(this,t);break}case T.IN_TABLE_TEXT:{mn(this,t);break}case T.IN_CAPTION:{I1(this,t);break}case T.IN_COLUMN_GROUP:{N1(this,t);break}case T.IN_TABLE_BODY:{va(this,t);break}case T.IN_ROW:{Ko(this,t);break}case T.IN_CELL:{L1(this,t);break}case T.IN_SELECT:{Jo(this,t);break}case T.IN_SELECT_IN_TABLE:{v1(this,t);break}case T.IN_TEMPLATE:{D1(this,t);break}case T.AFTER_BODY:{tl(this,t);break}case T.IN_FRAMESET:{M1(this,t);break}case T.AFTER_FRAMESET:{F1(this,t);break}case T.AFTER_AFTER_BODY:{tr(this,t);break}}}onEof(t){switch(this.insertionMode){case T.INITIAL:{hn(this,t);break}case T.BEFORE_HTML:{_n(this,t);break}case T.BEFORE_HEAD:{yn(this,t);break}case T.IN_HEAD:{xn(this,t);break}case T.IN_HEAD_NO_SCRIPT:{Sn(this,t);break}case T.AFTER_HEAD:{Cn(this,t);break}case T.IN_BODY:case T.IN_TABLE:case T.IN_CAPTION:case T.IN_COLUMN_GROUP:case T.IN_TABLE_BODY:case T.IN_ROW:case T.IN_CELL:case T.IN_SELECT:case T.IN_SELECT_IN_TABLE:{qo(this,t);break}case T.TEXT:{E1(this,t);break}case T.IN_TABLE_TEXT:{mn(this,t);break}case T.IN_TEMPLATE:{el(this,t);break}case T.AFTER_BODY:case T.IN_FRAMESET:case T.AFTER_FRAMESET:case T.AFTER_AFTER_BODY:case T.AFTER_AFTER_FRAMESET:{si(this,t);break}}}onWhitespaceCharacter(t){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.chars.charCodeAt(0)===E.LINE_FEED)){if(t.chars.length===1)return;t.chars=t.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(t);return}switch(this.insertionMode){case T.IN_HEAD:case T.IN_HEAD_NO_SCRIPT:case T.AFTER_HEAD:case T.TEXT:case T.IN_COLUMN_GROUP:case T.IN_SELECT:case T.IN_SELECT_IN_TABLE:case T.IN_FRAMESET:case T.AFTER_FRAMESET:{this._insertCharacters(t);break}case T.IN_BODY:case T.IN_CAPTION:case T.IN_CELL:case T.IN_TEMPLATE:case T.AFTER_BODY:case T.AFTER_AFTER_BODY:case T.AFTER_AFTER_FRAMESET:{$o(this,t);break}case T.IN_TABLE:case T.IN_TABLE_BODY:case T.IN_ROW:{Kr(this,t);break}case T.IN_TABLE_TEXT:{Wo(this,t);break}}}}function hE(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(t.tagID)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):Vo(e,t),n}function mE(e,t){let n=null,r=e.openElements.stackTop;for(;r>=0;r--){const a=e.openElements.items[r];if(a===t.element)break;e._isSpecialElement(a,e.openElements.tagIDs[r])&&(n=a)}return n||(e.openElements.shortenToLength(r<0?0:r),e.activeFormattingElements.removeEntry(t)),n}function pE(e,t,n){let r=t,a=e.openElements.getCommonAncestor(t);for(let i=0,u=a;u!==n;i++,u=a){a=e.openElements.getCommonAncestor(u);const o=e.activeFormattingElements.getElementEntry(u),l=o&&i>=fE;!o||l?(l&&e.activeFormattingElements.removeEntry(o),e.openElements.remove(u)):(u=EE(e,o),r===t&&(e.activeFormattingElements.bookmark=o),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(u,r),r=u)}return r}function EE(e,t){const n=e.treeAdapter.getNamespaceURI(t.element),r=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,r),t.element=r,r}function bE(e,t,n){const r=e.treeAdapter.getTagName(t),a=sn(r);if(e._isElementCausesFosterParenting(a))e._fosterParentElement(n);else{const i=e.treeAdapter.getNamespaceURI(t);a===s.TEMPLATE&&i===D.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function gE(e,t,n){const r=e.treeAdapter.getNamespaceURI(n.element),{token:a}=n,i=e.treeAdapter.createElement(a.tagName,r,a.attrs);e._adoptNodes(t,i),e.treeAdapter.appendChild(t,i),e.activeFormattingElements.insertElementAfterBookmark(i,a),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,i,a.tagID)}function ui(e,t){for(let n=0;n<cE;n++){const r=hE(e,t);if(!r)break;const a=mE(e,r);if(!a)break;e.activeFormattingElements.bookmark=r;const i=pE(e,a,r.element),u=e.openElements.getCommonAncestor(r.element);e.treeAdapter.detachNode(i),u&&bE(e,u,i),gE(e,a,r)}}function Ra(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function TE(e,t){e._appendCommentNode(t,e.openElements.items[0])}function AE(e,t){e._appendCommentNode(t,e.document)}function si(e,t){if(e.stopped=!0,t.location){const n=e.fragmentContext?0:2;for(let r=e.openElements.stackTop;r>=n;r--)e._setEndLocation(e.openElements.items[r],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){const r=e.openElements.items[0],a=e.treeAdapter.getNodeSourceCodeLocation(r);if(a&&!a.endTag&&(e._setEndLocation(r,t),e.openElements.stackTop>=1)){const i=e.openElements.items[1],u=e.treeAdapter.getNodeSourceCodeLocation(i);u&&!u.endTag&&e._setEndLocation(i,t)}}}}function _E(e,t){e._setDocumentType(t);const n=t.forceQuirks?Ke.QUIRKS:Kp(t);Qp(t)||e._err(t,S.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=T.BEFORE_HTML}function hn(e,t){e._err(t,S.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,Ke.QUIRKS),e.insertionMode=T.BEFORE_HTML,e._processToken(t)}function yE(e,t){t.tagID===s.HTML?(e._insertElement(t,D.HTML),e.insertionMode=T.BEFORE_HEAD):_n(e,t)}function xE(e,t){const n=t.tagID;(n===s.HTML||n===s.HEAD||n===s.BODY||n===s.BR)&&_n(e,t)}function _n(e,t){e._insertFakeRootElement(),e.insertionMode=T.BEFORE_HEAD,e._processToken(t)}function SE(e,t){switch(t.tagID){case s.HTML:{Fe(e,t);break}case s.HEAD:{e._insertElement(t,D.HTML),e.headElement=e.openElements.current,e.insertionMode=T.IN_HEAD;break}default:yn(e,t)}}function CE(e,t){const n=t.tagID;n===s.HEAD||n===s.BODY||n===s.HTML||n===s.BR?yn(e,t):e._err(t,S.endTagWithoutMatchingOpenElement)}function yn(e,t){e._insertFakeElement(_.HEAD,s.HEAD),e.headElement=e.openElements.current,e.insertionMode=T.IN_HEAD,e._processToken(t)}function rt(e,t){switch(t.tagID){case s.HTML:{Fe(e,t);break}case s.BASE:case s.BASEFONT:case s.BGSOUND:case s.LINK:case s.META:{e._appendElement(t,D.HTML),t.ackSelfClosing=!0;break}case s.TITLE:{e._switchToTextParsing(t,ve.RCDATA);break}case s.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(t,ve.RAWTEXT):(e._insertElement(t,D.HTML),e.insertionMode=T.IN_HEAD_NO_SCRIPT);break}case s.NOFRAMES:case s.STYLE:{e._switchToTextParsing(t,ve.RAWTEXT);break}case s.SCRIPT:{e._switchToTextParsing(t,ve.SCRIPT_DATA);break}case s.TEMPLATE:{e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=T.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(T.IN_TEMPLATE);break}case s.HEAD:{e._err(t,S.misplacedStartTagForHeadElement);break}default:xn(e,t)}}function IE(e,t){switch(t.tagID){case s.HEAD:{e.openElements.pop(),e.insertionMode=T.AFTER_HEAD;break}case s.BODY:case s.BR:case s.HTML:{xn(e,t);break}case s.TEMPLATE:{Ut(e,t);break}default:e._err(t,S.endTagWithoutMatchingOpenElement)}}function Ut(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==s.TEMPLATE&&e._err(t,S.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(s.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,S.endTagWithoutMatchingOpenElement)}function xn(e,t){e.openElements.pop(),e.insertionMode=T.AFTER_HEAD,e._processToken(t)}function NE(e,t){switch(t.tagID){case s.HTML:{Fe(e,t);break}case s.BASEFONT:case s.BGSOUND:case s.HEAD:case s.LINK:case s.META:case s.NOFRAMES:case s.STYLE:{rt(e,t);break}case s.NOSCRIPT:{e._err(t,S.nestedNoscriptInHead);break}default:Sn(e,t)}}function OE(e,t){switch(t.tagID){case s.NOSCRIPT:{e.openElements.pop(),e.insertionMode=T.IN_HEAD;break}case s.BR:{Sn(e,t);break}default:e._err(t,S.endTagWithoutMatchingOpenElement)}}function Sn(e,t){const n=t.type===fe.EOF?S.openElementsLeftAfterEof:S.disallowedContentInNoscriptInHead;e._err(t,n),e.openElements.pop(),e.insertionMode=T.IN_HEAD,e._processToken(t)}function LE(e,t){switch(t.tagID){case s.HTML:{Fe(e,t);break}case s.BODY:{e._insertElement(t,D.HTML),e.framesetOk=!1,e.insertionMode=T.IN_BODY;break}case s.FRAMESET:{e._insertElement(t,D.HTML),e.insertionMode=T.IN_FRAMESET;break}case s.BASE:case s.BASEFONT:case s.BGSOUND:case s.LINK:case s.META:case s.NOFRAMES:case s.SCRIPT:case s.STYLE:case s.TEMPLATE:case s.TITLE:{e._err(t,S.abandonedHeadElementChild),e.openElements.push(e.headElement,s.HEAD),rt(e,t),e.openElements.remove(e.headElement);break}case s.HEAD:{e._err(t,S.misplacedStartTagForHeadElement);break}default:Cn(e,t)}}function RE(e,t){switch(t.tagID){case s.BODY:case s.HTML:case s.BR:{Cn(e,t);break}case s.TEMPLATE:{Ut(e,t);break}default:e._err(t,S.endTagWithoutMatchingOpenElement)}}function Cn(e,t){e._insertFakeElement(_.BODY,s.BODY),e.insertionMode=T.IN_BODY,Sr(e,t)}function Sr(e,t){switch(t.type){case fe.CHARACTER:{Yo(e,t);break}case fe.WHITESPACE_CHARACTER:{$o(e,t);break}case fe.COMMENT:{Ra(e,t);break}case fe.START_TAG:{Fe(e,t);break}case fe.END_TAG:{Cr(e,t);break}case fe.EOF:{qo(e,t);break}}}function $o(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function Yo(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function vE(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function PE(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function DE(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,D.HTML),e.insertionMode=T.IN_FRAMESET)}function kE(e,t){e.openElements.hasInButtonScope(s.P)&&e._closePElement(),e._insertElement(t,D.HTML)}function wE(e,t){e.openElements.hasInButtonScope(s.P)&&e._closePElement(),La.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,D.HTML)}function ME(e,t){e.openElements.hasInButtonScope(s.P)&&e._closePElement(),e._insertElement(t,D.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function BE(e,t){const n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(s.P)&&e._closePElement(),e._insertElement(t,D.HTML),n||(e.formElement=e.openElements.current))}function FE(e,t){e.framesetOk=!1;const n=t.tagID;for(let r=e.openElements.stackTop;r>=0;r--){const a=e.openElements.tagIDs[r];if(n===s.LI&&a===s.LI||(n===s.DD||n===s.DT)&&(a===s.DD||a===s.DT)){e.openElements.generateImpliedEndTagsWithExclusion(a),e.openElements.popUntilTagNamePopped(a);break}if(a!==s.ADDRESS&&a!==s.DIV&&a!==s.P&&e._isSpecialElement(e.openElements.items[r],a))break}e.openElements.hasInButtonScope(s.P)&&e._closePElement(),e._insertElement(t,D.HTML)}function HE(e,t){e.openElements.hasInButtonScope(s.P)&&e._closePElement(),e._insertElement(t,D.HTML),e.tokenizer.state=ve.PLAINTEXT}function UE(e,t){e.openElements.hasInScope(s.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(s.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,D.HTML),e.framesetOk=!1}function jE(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(_.A);n&&(ui(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,D.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function $E(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,D.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function YE(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(s.NOBR)&&(ui(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,D.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function GE(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,D.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function zE(e,t){e.treeAdapter.getDocumentMode(e.document)!==Ke.QUIRKS&&e.openElements.hasInButtonScope(s.P)&&e._closePElement(),e._insertElement(t,D.HTML),e.framesetOk=!1,e.insertionMode=T.IN_TABLE}function Go(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,D.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function zo(e){const t=Ro(e,kt.TYPE);return t!=null&&t.toLowerCase()===lE}function VE(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,D.HTML),zo(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function qE(e,t){e._appendElement(t,D.HTML),t.ackSelfClosing=!0}function WE(e,t){e.openElements.hasInButtonScope(s.P)&&e._closePElement(),e._appendElement(t,D.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function XE(e,t){t.tagName=_.IMG,t.tagID=s.IMG,Go(e,t)}function QE(e,t){e._insertElement(t,D.HTML),e.skipNextNewLine=!0,e.tokenizer.state=ve.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=T.TEXT}function KE(e,t){e.openElements.hasInButtonScope(s.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,ve.RAWTEXT)}function ZE(e,t){e.framesetOk=!1,e._switchToTextParsing(t,ve.RAWTEXT)}function ku(e,t){e._switchToTextParsing(t,ve.RAWTEXT)}function JE(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,D.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===T.IN_TABLE||e.insertionMode===T.IN_CAPTION||e.insertionMode===T.IN_TABLE_BODY||e.insertionMode===T.IN_ROW||e.insertionMode===T.IN_CELL?T.IN_SELECT_IN_TABLE:T.IN_SELECT}function e1(e,t){e.openElements.currentTagId===s.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,D.HTML)}function t1(e,t){e.openElements.hasInScope(s.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,D.HTML)}function n1(e,t){e.openElements.hasInScope(s.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(s.RTC),e._insertElement(t,D.HTML)}function r1(e,t){e._reconstructActiveFormattingElements(),Ho(t),ii(t),t.selfClosing?e._appendElement(t,D.MATHML):e._insertElement(t,D.MATHML),t.ackSelfClosing=!0}function a1(e,t){e._reconstructActiveFormattingElements(),Uo(t),ii(t),t.selfClosing?e._appendElement(t,D.SVG):e._insertElement(t,D.SVG),t.ackSelfClosing=!0}function wu(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,D.HTML)}function Fe(e,t){switch(t.tagID){case s.I:case s.S:case s.B:case s.U:case s.EM:case s.TT:case s.BIG:case s.CODE:case s.FONT:case s.SMALL:case s.STRIKE:case s.STRONG:{$E(e,t);break}case s.A:{jE(e,t);break}case s.H1:case s.H2:case s.H3:case s.H4:case s.H5:case s.H6:{wE(e,t);break}case s.P:case s.DL:case s.OL:case s.UL:case s.DIV:case s.DIR:case s.NAV:case s.MAIN:case s.MENU:case s.ASIDE:case s.CENTER:case s.FIGURE:case s.FOOTER:case s.HEADER:case s.HGROUP:case s.DIALOG:case s.DETAILS:case s.ADDRESS:case s.ARTICLE:case s.SEARCH:case s.SECTION:case s.SUMMARY:case s.FIELDSET:case s.BLOCKQUOTE:case s.FIGCAPTION:{kE(e,t);break}case s.LI:case s.DD:case s.DT:{FE(e,t);break}case s.BR:case s.IMG:case s.WBR:case s.AREA:case s.EMBED:case s.KEYGEN:{Go(e,t);break}case s.HR:{WE(e,t);break}case s.RB:case s.RTC:{t1(e,t);break}case s.RT:case s.RP:{n1(e,t);break}case s.PRE:case s.LISTING:{ME(e,t);break}case s.XMP:{KE(e,t);break}case s.SVG:{a1(e,t);break}case s.HTML:{vE(e,t);break}case s.BASE:case s.LINK:case s.META:case s.STYLE:case s.TITLE:case s.SCRIPT:case s.BGSOUND:case s.BASEFONT:case s.TEMPLATE:{rt(e,t);break}case s.BODY:{PE(e,t);break}case s.FORM:{BE(e,t);break}case s.NOBR:{YE(e,t);break}case s.MATH:{r1(e,t);break}case s.TABLE:{zE(e,t);break}case s.INPUT:{VE(e,t);break}case s.PARAM:case s.TRACK:case s.SOURCE:{qE(e,t);break}case s.IMAGE:{XE(e,t);break}case s.BUTTON:{UE(e,t);break}case s.APPLET:case s.OBJECT:case s.MARQUEE:{GE(e,t);break}case s.IFRAME:{ZE(e,t);break}case s.SELECT:{JE(e,t);break}case s.OPTION:case s.OPTGROUP:{e1(e,t);break}case s.NOEMBED:case s.NOFRAMES:{ku(e,t);break}case s.FRAMESET:{DE(e,t);break}case s.TEXTAREA:{QE(e,t);break}case s.NOSCRIPT:{e.options.scriptingEnabled?ku(e,t):wu(e,t);break}case s.PLAINTEXT:{HE(e,t);break}case s.COL:case s.TH:case s.TD:case s.TR:case s.HEAD:case s.FRAME:case s.TBODY:case s.TFOOT:case s.THEAD:case s.CAPTION:case s.COLGROUP:break;default:wu(e,t)}}function i1(e,t){if(e.openElements.hasInScope(s.BODY)&&(e.insertionMode=T.AFTER_BODY,e.options.sourceCodeLocationInfo)){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}}function u1(e,t){e.openElements.hasInScope(s.BODY)&&(e.insertionMode=T.AFTER_BODY,tl(e,t))}function s1(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function o1(e){const t=e.openElements.tmplCount>0,{formElement:n}=e;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(s.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(s.FORM):n&&e.openElements.remove(n))}function l1(e){e.openElements.hasInButtonScope(s.P)||e._insertFakeElement(_.P,s.P),e._closePElement()}function c1(e){e.openElements.hasInListItemScope(s.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(s.LI),e.openElements.popUntilTagNamePopped(s.LI))}function f1(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function d1(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function h1(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function m1(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(_.BR,s.BR),e.openElements.pop(),e.framesetOk=!1}function Vo(e,t){const n=t.tagName,r=t.tagID;for(let a=e.openElements.stackTop;a>0;a--){const i=e.openElements.items[a],u=e.openElements.tagIDs[a];if(r===u&&(r!==s.UNKNOWN||e.treeAdapter.getTagName(i)===n)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.stackTop>=a&&e.openElements.shortenToLength(a);break}if(e._isSpecialElement(i,u))break}}function Cr(e,t){switch(t.tagID){case s.A:case s.B:case s.I:case s.S:case s.U:case s.EM:case s.TT:case s.BIG:case s.CODE:case s.FONT:case s.NOBR:case s.SMALL:case s.STRIKE:case s.STRONG:{ui(e,t);break}case s.P:{l1(e);break}case s.DL:case s.UL:case s.OL:case s.DIR:case s.DIV:case s.NAV:case s.PRE:case s.MAIN:case s.MENU:case s.ASIDE:case s.BUTTON:case s.CENTER:case s.FIGURE:case s.FOOTER:case s.HEADER:case s.HGROUP:case s.DIALOG:case s.ADDRESS:case s.ARTICLE:case s.DETAILS:case s.SEARCH:case s.SECTION:case s.SUMMARY:case s.LISTING:case s.FIELDSET:case s.BLOCKQUOTE:case s.FIGCAPTION:{s1(e,t);break}case s.LI:{c1(e);break}case s.DD:case s.DT:{f1(e,t);break}case s.H1:case s.H2:case s.H3:case s.H4:case s.H5:case s.H6:{d1(e);break}case s.BR:{m1(e);break}case s.BODY:{i1(e,t);break}case s.HTML:{u1(e,t);break}case s.FORM:{o1(e);break}case s.APPLET:case s.OBJECT:case s.MARQUEE:{h1(e,t);break}case s.TEMPLATE:{Ut(e,t);break}default:Vo(e,t)}}function qo(e,t){e.tmplInsertionModeStack.length>0?el(e,t):si(e,t)}function p1(e,t){var n;t.tagID===s.SCRIPT&&((n=e.scriptHandler)===null||n===void 0||n.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function E1(e,t){e._err(t,S.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function Kr(e,t){if(jo.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=T.IN_TABLE_TEXT,t.type){case fe.CHARACTER:{Xo(e,t);break}case fe.WHITESPACE_CHARACTER:{Wo(e,t);break}}else Bn(e,t)}function b1(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,D.HTML),e.insertionMode=T.IN_CAPTION}function g1(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,D.HTML),e.insertionMode=T.IN_COLUMN_GROUP}function T1(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(_.COLGROUP,s.COLGROUP),e.insertionMode=T.IN_COLUMN_GROUP,oi(e,t)}function A1(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,D.HTML),e.insertionMode=T.IN_TABLE_BODY}function _1(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(_.TBODY,s.TBODY),e.insertionMode=T.IN_TABLE_BODY,Ir(e,t)}function y1(e,t){e.openElements.hasInTableScope(s.TABLE)&&(e.openElements.popUntilTagNamePopped(s.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function x1(e,t){zo(t)?e._appendElement(t,D.HTML):Bn(e,t),t.ackSelfClosing=!0}function S1(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,D.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function tn(e,t){switch(t.tagID){case s.TD:case s.TH:case s.TR:{_1(e,t);break}case s.STYLE:case s.SCRIPT:case s.TEMPLATE:{rt(e,t);break}case s.COL:{T1(e,t);break}case s.FORM:{S1(e,t);break}case s.TABLE:{y1(e,t);break}case s.TBODY:case s.TFOOT:case s.THEAD:{A1(e,t);break}case s.INPUT:{x1(e,t);break}case s.CAPTION:{b1(e,t);break}case s.COLGROUP:{g1(e,t);break}default:Bn(e,t)}}function Ln(e,t){switch(t.tagID){case s.TABLE:{e.openElements.hasInTableScope(s.TABLE)&&(e.openElements.popUntilTagNamePopped(s.TABLE),e._resetInsertionMode());break}case s.TEMPLATE:{Ut(e,t);break}case s.BODY:case s.CAPTION:case s.COL:case s.COLGROUP:case s.HTML:case s.TBODY:case s.TD:case s.TFOOT:case s.TH:case s.THEAD:case s.TR:break;default:Bn(e,t)}}function Bn(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,Sr(e,t),e.fosterParentingEnabled=n}function Wo(e,t){e.pendingCharacterTokens.push(t)}function Xo(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function mn(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n<e.pendingCharacterTokens.length;n++)Bn(e,e.pendingCharacterTokens[n]);else for(;n<e.pendingCharacterTokens.length;n++)e._insertCharacters(e.pendingCharacterTokens[n]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}const Qo=new Set([s.CAPTION,s.COL,s.COLGROUP,s.TBODY,s.TD,s.TFOOT,s.TH,s.THEAD,s.TR]);function C1(e,t){const n=t.tagID;Qo.has(n)?e.openElements.hasInTableScope(s.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(s.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=T.IN_TABLE,tn(e,t)):Fe(e,t)}function I1(e,t){const n=t.tagID;switch(n){case s.CAPTION:case s.TABLE:{e.openElements.hasInTableScope(s.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(s.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=T.IN_TABLE,n===s.TABLE&&Ln(e,t));break}case s.BODY:case s.COL:case s.COLGROUP:case s.HTML:case s.TBODY:case s.TD:case s.TFOOT:case s.TH:case s.THEAD:case s.TR:break;default:Cr(e,t)}}function oi(e,t){switch(t.tagID){case s.HTML:{Fe(e,t);break}case s.COL:{e._appendElement(t,D.HTML),t.ackSelfClosing=!0;break}case s.TEMPLATE:{rt(e,t);break}default:ur(e,t)}}function N1(e,t){switch(t.tagID){case s.COLGROUP:{e.openElements.currentTagId===s.COLGROUP&&(e.openElements.pop(),e.insertionMode=T.IN_TABLE);break}case s.TEMPLATE:{Ut(e,t);break}case s.COL:break;default:ur(e,t)}}function ur(e,t){e.openElements.currentTagId===s.COLGROUP&&(e.openElements.pop(),e.insertionMode=T.IN_TABLE,e._processToken(t))}function Ir(e,t){switch(t.tagID){case s.TR:{e.openElements.clearBackToTableBodyContext(),e._insertElement(t,D.HTML),e.insertionMode=T.IN_ROW;break}case s.TH:case s.TD:{e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(_.TR,s.TR),e.insertionMode=T.IN_ROW,Nr(e,t);break}case s.CAPTION:case s.COL:case s.COLGROUP:case s.TBODY:case s.TFOOT:case s.THEAD:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=T.IN_TABLE,tn(e,t));break}default:tn(e,t)}}function va(e,t){const n=t.tagID;switch(t.tagID){case s.TBODY:case s.TFOOT:case s.THEAD:{e.openElements.hasInTableScope(n)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=T.IN_TABLE);break}case s.TABLE:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=T.IN_TABLE,Ln(e,t));break}case s.BODY:case s.CAPTION:case s.COL:case s.COLGROUP:case s.HTML:case s.TD:case s.TH:case s.TR:break;default:Ln(e,t)}}function Nr(e,t){switch(t.tagID){case s.TH:case s.TD:{e.openElements.clearBackToTableRowContext(),e._insertElement(t,D.HTML),e.insertionMode=T.IN_CELL,e.activeFormattingElements.insertMarker();break}case s.CAPTION:case s.COL:case s.COLGROUP:case s.TBODY:case s.TFOOT:case s.THEAD:case s.TR:{e.openElements.hasInTableScope(s.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=T.IN_TABLE_BODY,Ir(e,t));break}default:tn(e,t)}}function Ko(e,t){switch(t.tagID){case s.TR:{e.openElements.hasInTableScope(s.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=T.IN_TABLE_BODY);break}case s.TABLE:{e.openElements.hasInTableScope(s.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=T.IN_TABLE_BODY,va(e,t));break}case s.TBODY:case s.TFOOT:case s.THEAD:{(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(s.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=T.IN_TABLE_BODY,va(e,t));break}case s.BODY:case s.CAPTION:case s.COL:case s.COLGROUP:case s.HTML:case s.TD:case s.TH:break;default:Ln(e,t)}}function O1(e,t){const n=t.tagID;Qo.has(n)?(e.openElements.hasInTableScope(s.TD)||e.openElements.hasInTableScope(s.TH))&&(e._closeTableCell(),Nr(e,t)):Fe(e,t)}function L1(e,t){const n=t.tagID;switch(n){case s.TD:case s.TH:{e.openElements.hasInTableScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=T.IN_ROW);break}case s.TABLE:case s.TBODY:case s.TFOOT:case s.THEAD:case s.TR:{e.openElements.hasInTableScope(n)&&(e._closeTableCell(),Ko(e,t));break}case s.BODY:case s.CAPTION:case s.COL:case s.COLGROUP:case s.HTML:break;default:Cr(e,t)}}function Zo(e,t){switch(t.tagID){case s.HTML:{Fe(e,t);break}case s.OPTION:{e.openElements.currentTagId===s.OPTION&&e.openElements.pop(),e._insertElement(t,D.HTML);break}case s.OPTGROUP:{e.openElements.currentTagId===s.OPTION&&e.openElements.pop(),e.openElements.currentTagId===s.OPTGROUP&&e.openElements.pop(),e._insertElement(t,D.HTML);break}case s.HR:{e.openElements.currentTagId===s.OPTION&&e.openElements.pop(),e.openElements.currentTagId===s.OPTGROUP&&e.openElements.pop(),e._appendElement(t,D.HTML),t.ackSelfClosing=!0;break}case s.INPUT:case s.KEYGEN:case s.TEXTAREA:case s.SELECT:{e.openElements.hasInSelectScope(s.SELECT)&&(e.openElements.popUntilTagNamePopped(s.SELECT),e._resetInsertionMode(),t.tagID!==s.SELECT&&e._processStartTag(t));break}case s.SCRIPT:case s.TEMPLATE:{rt(e,t);break}}}function Jo(e,t){switch(t.tagID){case s.OPTGROUP:{e.openElements.stackTop>0&&e.openElements.currentTagId===s.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===s.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===s.OPTGROUP&&e.openElements.pop();break}case s.OPTION:{e.openElements.currentTagId===s.OPTION&&e.openElements.pop();break}case s.SELECT:{e.openElements.hasInSelectScope(s.SELECT)&&(e.openElements.popUntilTagNamePopped(s.SELECT),e._resetInsertionMode());break}case s.TEMPLATE:{Ut(e,t);break}}}function R1(e,t){const n=t.tagID;n===s.CAPTION||n===s.TABLE||n===s.TBODY||n===s.TFOOT||n===s.THEAD||n===s.TR||n===s.TD||n===s.TH?(e.openElements.popUntilTagNamePopped(s.SELECT),e._resetInsertionMode(),e._processStartTag(t)):Zo(e,t)}function v1(e,t){const n=t.tagID;n===s.CAPTION||n===s.TABLE||n===s.TBODY||n===s.TFOOT||n===s.THEAD||n===s.TR||n===s.TD||n===s.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(s.SELECT),e._resetInsertionMode(),e.onEndTag(t)):Jo(e,t)}function P1(e,t){switch(t.tagID){case s.BASE:case s.BASEFONT:case s.BGSOUND:case s.LINK:case s.META:case s.NOFRAMES:case s.SCRIPT:case s.STYLE:case s.TEMPLATE:case s.TITLE:{rt(e,t);break}case s.CAPTION:case s.COLGROUP:case s.TBODY:case s.TFOOT:case s.THEAD:{e.tmplInsertionModeStack[0]=T.IN_TABLE,e.insertionMode=T.IN_TABLE,tn(e,t);break}case s.COL:{e.tmplInsertionModeStack[0]=T.IN_COLUMN_GROUP,e.insertionMode=T.IN_COLUMN_GROUP,oi(e,t);break}case s.TR:{e.tmplInsertionModeStack[0]=T.IN_TABLE_BODY,e.insertionMode=T.IN_TABLE_BODY,Ir(e,t);break}case s.TD:case s.TH:{e.tmplInsertionModeStack[0]=T.IN_ROW,e.insertionMode=T.IN_ROW,Nr(e,t);break}default:e.tmplInsertionModeStack[0]=T.IN_BODY,e.insertionMode=T.IN_BODY,Fe(e,t)}}function D1(e,t){t.tagID===s.TEMPLATE&&Ut(e,t)}function el(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(s.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):si(e,t)}function k1(e,t){t.tagID===s.HTML?Fe(e,t):sr(e,t)}function tl(e,t){var n;if(t.tagID===s.HTML){if(e.fragmentContext||(e.insertionMode=T.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===s.HTML){e._setEndLocation(e.openElements.items[0],t);const r=e.openElements.items[1];r&&!(!((n=e.treeAdapter.getNodeSourceCodeLocation(r))===null||n===void 0)&&n.endTag)&&e._setEndLocation(r,t)}}else sr(e,t)}function sr(e,t){e.insertionMode=T.IN_BODY,Sr(e,t)}function w1(e,t){switch(t.tagID){case s.HTML:{Fe(e,t);break}case s.FRAMESET:{e._insertElement(t,D.HTML);break}case s.FRAME:{e._appendElement(t,D.HTML),t.ackSelfClosing=!0;break}case s.NOFRAMES:{rt(e,t);break}}}function M1(e,t){t.tagID===s.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==s.FRAMESET&&(e.insertionMode=T.AFTER_FRAMESET))}function B1(e,t){switch(t.tagID){case s.HTML:{Fe(e,t);break}case s.NOFRAMES:{rt(e,t);break}}}function F1(e,t){t.tagID===s.HTML&&(e.insertionMode=T.AFTER_AFTER_FRAMESET)}function H1(e,t){t.tagID===s.HTML?Fe(e,t):tr(e,t)}function tr(e,t){e.insertionMode=T.IN_BODY,Sr(e,t)}function U1(e,t){switch(t.tagID){case s.HTML:{Fe(e,t);break}case s.NOFRAMES:{rt(e,t);break}}}function j1(e,t){t.chars=Ie,e._insertCharacters(t)}function $1(e,t){e._insertCharacters(t),e.framesetOk=!1}function nl(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==D.HTML&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function Y1(e,t){if(aE(t))nl(e),e._startTagOutsideForeignContent(t);else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===D.MATHML?Ho(t):r===D.SVG&&(iE(t),Uo(t)),ii(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}function G1(e,t){if(t.tagID===s.P||t.tagID===s.BR){nl(e),e._endTagOutsideForeignContent(t);return}for(let n=e.openElements.stackTop;n>0;n--){const r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===D.HTML){e._endTagOutsideForeignContent(t);break}const a=e.treeAdapter.getTagName(r);if(a.toLowerCase()===t.tagName){t.tagName=a,e.openElements.shortenToLength(n);break}}}_.AREA,_.BASE,_.BASEFONT,_.BGSOUND,_.BR,_.COL,_.EMBED,_.FRAME,_.HR,_.IMG,_.INPUT,_.KEYGEN,_.LINK,_.META,_.PARAM,_.SOURCE,_.TRACK,_.WBR;const z1=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),Mu={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function rl(e,t){const n=tb(e),r=Co("type",{handlers:{root:V1,element:q1,text:W1,comment:il,doctype:X1,raw:K1},unknown:Z1}),a={parser:n?new Du(Mu):Du.getFragmentParser(void 0,Mu),handle(o){r(o,a)},stitches:!1,options:t||{}};r(e,a),on(a,dt());const i=n?a.parser.document:a.parser.getFragment(),u=rp(i,{file:a.options.file});return a.stitches&&ti(u,"comment",function(o,l,c){const f=o;if(f.value.stitch&&c&&l!==void 0){const d=c.children;return d[l]=f.value.stitch,l}}),u.type==="root"&&u.children.length===1&&u.children[0].type===e.type?u.children[0]:u}function al(e,t){let n=-1;if(e)for(;++n<e.length;)t.handle(e[n])}function V1(e,t){al(e.children,t)}function q1(e,t){J1(e,t),al(e.children,t),eb(e,t)}function W1(e,t){t.parser.tokenizer.state>4&&(t.parser.tokenizer.state=0);const n={type:fe.CHARACTER,chars:e.value,location:Fn(e)};on(t,dt(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function X1(e,t){const n={type:fe.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:Fn(e)};on(t,dt(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function Q1(e,t){t.stitches=!0;const n=nb(e);if("children"in e&&"children"in n){const r=rl({type:"root",children:e.children},t.options);n.children=r.children}il({type:"comment",value:{stitch:n}},t)}function il(e,t){const n=e.value,r={type:fe.COMMENT,data:n,location:Fn(e)};on(t,dt(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function K1(e,t){if(t.parser.tokenizer.preprocessor.html="",t.parser.tokenizer.preprocessor.pos=-1,t.parser.tokenizer.preprocessor.lastGapPos=-2,t.parser.tokenizer.preprocessor.gapStack=[],t.parser.tokenizer.preprocessor.skipNextNewLine=!1,t.parser.tokenizer.preprocessor.lastChunkWritten=!1,t.parser.tokenizer.preprocessor.endOfChunkHit=!1,t.parser.tokenizer.preprocessor.isEol=!1,ul(t,dt(e)),t.parser.tokenizer.write(e.value,!1),t.parser.tokenizer._runParsingLoop(),t.parser.tokenizer.state===72||t.parser.tokenizer.state===78){t.parser.tokenizer.preprocessor.lastChunkWritten=!0;const n=t.parser.tokenizer._consume();t.parser.tokenizer._callState(n)}}function Z1(e,t){const n=e;if(t.options.passThrough&&t.options.passThrough.includes(n.type))Q1(n,t);else{let r="";throw z1.has(n.type)&&(r=". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax"),new Error("Cannot compile `"+n.type+"` node"+r)}}function on(e,t){ul(e,t);const n=e.parser.tokenizer.currentCharacterToken;n&&n.location&&(n.location.endLine=e.parser.tokenizer.preprocessor.line,n.location.endCol=e.parser.tokenizer.preprocessor.col+1,n.location.endOffset=e.parser.tokenizer.preprocessor.offset+1,e.parser.currentToken=n,e.parser._processToken(e.parser.currentToken)),e.parser.tokenizer.paused=!1,e.parser.tokenizer.inLoop=!1,e.parser.tokenizer.active=!1,e.parser.tokenizer.returnState=ve.DATA,e.parser.tokenizer.charRefCode=-1,e.parser.tokenizer.consumedAfterSnapshot=-1,e.parser.tokenizer.currentLocation=null,e.parser.tokenizer.currentCharacterToken=null,e.parser.tokenizer.currentToken=null,e.parser.tokenizer.currentAttr={name:"",value:""}}function ul(e,t){if(t&&t.offset!==void 0){const n={startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:-1,endCol:-1,endOffset:-1};e.parser.tokenizer.preprocessor.lineStartPos=-t.column+1,e.parser.tokenizer.preprocessor.droppedBufferSize=t.offset,e.parser.tokenizer.preprocessor.line=t.line,e.parser.tokenizer.currentLocation=n}}function J1(e,t){const n=e.tagName.toLowerCase();if(t.parser.tokenizer.state===ve.PLAINTEXT)return;on(t,dt(e));const r=t.parser.openElements.current;let a="namespaceURI"in r?r.namespaceURI:Dt.html;a===Dt.html&&n==="svg"&&(a=Dt.svg);const i=op({...e,children:[]},{space:a===Dt.svg?"svg":"html"}),u={type:fe.START_TAG,tagName:n,tagID:sn(n),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in i?i.attrs:[],location:Fn(e)};t.parser.currentToken=u,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=n}function eb(e,t){const n=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&Ep.includes(n)||t.parser.tokenizer.state===ve.PLAINTEXT)return;on(t,Ar(e));const r={type:fe.END_TAG,tagName:n,tagID:sn(n),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:Fn(e)};t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken),n===t.parser.tokenizer.lastStartTagName&&(t.parser.tokenizer.state===ve.RCDATA||t.parser.tokenizer.state===ve.RAWTEXT||t.parser.tokenizer.state===ve.SCRIPT_DATA)&&(t.parser.tokenizer.state=ve.DATA)}function tb(e){const t=e.type==="root"?e.children[0]:e;return!!(t&&(t.type==="doctype"||t.type==="element"&&t.tagName.toLowerCase()==="html"))}function Fn(e){const t=dt(e)||{line:void 0,column:void 0,offset:void 0},n=Ar(e)||{line:void 0,column:void 0,offset:void 0};return{startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:n.line,endCol:n.column,endOffset:n.offset}}function nb(e){return"children"in e?en({...e,children:[]}):en(e)}function sl(e){return function(t,n){return rl(t,{...e,file:n})}}const rb=e=>De.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",...e},De.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10s10-4.48 10-10S17.52 2 12 2zM7.07 18.28c.43-.9 3.05-1.78 4.93-1.78s4.51.88 4.93 1.78C15.57 19.36 13.86 20 12 20s-3.57-.64-4.93-1.72zm11.29-1.45c-1.43-1.74-4.9-2.33-6.36-2.33s-4.93.59-6.36 2.33A7.95 7.95 0 0 1 4 12c0-4.41 3.59-8 8-8s8 3.59 8 8c0 1.82-.62 3.49-1.64 4.83zM12 6c-1.94 0-3.5 1.56-3.5 3.5S10.06 13 12 13s3.5-1.56 3.5-3.5S13.94 6 12 6zm0 5c-.83 0-1.5-.67-1.5-1.5S11.17 8 12 8s1.5.67 1.5 1.5S12.83 11 12 11z"})),ab=({content:e,metaData:t})=>{const{chatlineLabelUserTranslation:n}=Ya();return L.jsxs("div",{className:"flex px-3 justify-between mt-8 bg-gray-200 rounded-lg",children:[L.jsx("div",{className:"w-10 mr-3 flex-col content-center",children:L.jsx("div",{children:L.jsx(rb,{fill:"#4564d6"})})}),L.jsxs("div",{className:`w-full p-4 rounded-lg transition-all duration-300 ${t?.isErrorMessage?"bg-red-100 border-l-4 border-red-400 text-red-800 shadow-md animate-fade-in":" text-gray-800"}`,children:[L.jsx("p",{className:"font-bold",children:n}),L.jsx("div",{children:L.jsx(_o,{rehypePlugins:[sl],children:e&&e})})]})]})},ib=({})=>{const{companySettings:e}=O.useContext(Dn);return L.jsx("div",{className:`assistant
|
|
60
|
+
`}),n}function cu(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function fu(e,t){const n=Em(e,t),r=n.one(e,void 0),a=im(n),i=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return a&&i.children.push({type:"text",value:`
|
|
61
|
+
`},a),i}function _m(e,t){return e&&"run"in e?async function(n,r){const a=fu(n,{file:r,...t});await e.run(a,r)}:function(n,r){return fu(n,{file:r,...t||e})}}function du(e){if(e)throw e}var jr,hu;function ym(){if(hu)return jr;hu=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,a=function(c){return typeof Array.isArray=="function"?Array.isArray(c):t.call(c)==="[object Array]"},i=function(c){if(!c||t.call(c)!=="[object Object]")return!1;var f=e.call(c,"constructor"),d=c.constructor&&c.constructor.prototype&&e.call(c.constructor.prototype,"isPrototypeOf");if(c.constructor&&!f&&!d)return!1;var h;for(h in c);return typeof h>"u"||e.call(c,h)},u=function(c,f){n&&f.name==="__proto__"?n(c,f.name,{enumerable:!0,configurable:!0,value:f.newValue,writable:!0}):c[f.name]=f.newValue},o=function(c,f){if(f==="__proto__")if(e.call(c,f)){if(r)return r(c,f).value}else return;return c[f]};return jr=function l(){var c,f,d,h,m,_,A=arguments[0],v=1,x=arguments.length,P=!1;for(typeof A=="boolean"&&(P=A,A=arguments[1]||{},v=2),(A==null||typeof A!="object"&&typeof A!="function")&&(A={});v<x;++v)if(c=arguments[v],c!=null)for(f in c)d=o(A,f),h=o(c,f),A!==h&&(P&&h&&(i(h)||(m=a(h)))?(m?(m=!1,_=d&&a(d)?d:[]):_=d&&i(d)?d:{},u(A,{name:f,newValue:l(P,_,h)})):typeof h<"u"&&u(A,{name:f,newValue:h}));return A},jr}var xm=ym();const $r=Ba(xm);function Sa(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Sm(){const e=[],t={run:n,use:r};return t;function n(...a){let i=-1;const u=a.pop();if(typeof u!="function")throw new TypeError("Expected function as last argument, not "+u);o(null,...a);function o(l,...c){const f=e[++i];let d=-1;if(l){u(l);return}for(;++d<a.length;)(c[d]===null||c[d]===void 0)&&(c[d]=a[d]);a=c,f?Cm(f,o)(...c):u(null,...c)}}function r(a){if(typeof a!="function")throw new TypeError("Expected `middelware` to be a function, not "+a);return e.push(a),t}}function Cm(e,t){let n;return r;function r(...u){const o=e.length>u.length;let l;o&&u.push(a);try{l=e.apply(this,u)}catch(c){const f=c;if(o&&n)throw f;return a(f)}o||(l&&l.then&&typeof l.then=="function"?l.then(i,a):l instanceof Error?a(l):i(l))}function a(u,...o){n||(n=!0,t(u,...o))}function i(u){a(null,u)}}const at={basename:Im,dirname:Nm,extname:Om,join:Lm,sep:"/"};function Im(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Bn(e);let n=0,r=-1,a=e.length,i;if(t===void 0||t.length===0||t.length>e.length){for(;a--;)if(e.codePointAt(a)===47){if(i){n=a+1;break}}else r<0&&(i=!0,r=a+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let u=-1,o=t.length-1;for(;a--;)if(e.codePointAt(a)===47){if(i){n=a+1;break}}else u<0&&(i=!0,u=a+1),o>-1&&(e.codePointAt(a)===t.codePointAt(o--)?o<0&&(r=a):(o=-1,r=u));return n===r?r=u:r<0&&(r=e.length),e.slice(n,r)}function Nm(e){if(Bn(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function Om(e){Bn(e);let t=e.length,n=-1,r=0,a=-1,i=0,u;for(;t--;){const o=e.codePointAt(t);if(o===47){if(u){r=t+1;break}continue}n<0&&(u=!0,n=t+1),o===46?a<0?a=t:i!==1&&(i=1):a>-1&&(i=-1)}return a<0||n<0||i===0||i===1&&a===n-1&&a===r+1?"":e.slice(a,n)}function Lm(...e){let t=-1,n;for(;++t<e.length;)Bn(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":Rm(n)}function Rm(e){Bn(e);const t=e.codePointAt(0)===47;let n=vm(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function vm(e,t){let n="",r=0,a=-1,i=0,u=-1,o,l;for(;++u<=e.length;){if(u<e.length)o=e.codePointAt(u);else{if(o===47)break;o=47}if(o===47){if(!(a===u-1||i===1))if(a!==u-1&&i===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(l=n.lastIndexOf("/"),l!==n.length-1){l<0?(n="",r=0):(n=n.slice(0,l),r=n.length-1-n.lastIndexOf("/")),a=u,i=0;continue}}else if(n.length>0){n="",r=0,a=u,i=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(a+1,u):n=e.slice(a+1,u),r=u-a-1;a=u,i=0}else o===46&&i>-1?i++:i=-1}return n}function Bn(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Pm={cwd:Dm};function Dm(){return"/"}function Ca(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function km(e){if(typeof e=="string")e=new URL(e);else if(!Ca(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return wm(e)}function wm(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 t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const r=t.codePointAt(n+2);if(r===70||r===102){const a=new TypeError("File URL path must not include encoded / characters");throw a.code="ERR_INVALID_FILE_URL_PATH",a}}return decodeURIComponent(t)}const Yr=["history","path","basename","stem","extname","dirname"];class _o{constructor(t){let n;t?Ca(t)?n={path:t}:typeof t=="string"||Mm(t)?n={value:t}:n=t:n={},this.cwd=Pm.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<Yr.length;){const i=Yr[r];i in n&&n[i]!==void 0&&n[i]!==null&&(this[i]=i==="history"?[...n[i]]:n[i])}let a;for(a in n)Yr.includes(a)||(this[a]=n[a])}get basename(){return typeof this.path=="string"?at.basename(this.path):void 0}set basename(t){zr(t,"basename"),Gr(t,"basename"),this.path=at.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?at.dirname(this.path):void 0}set dirname(t){mu(this.basename,"dirname"),this.path=at.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?at.extname(this.path):void 0}set extname(t){if(Gr(t,"extname"),mu(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=at.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){Ca(t)&&(t=km(t)),zr(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?at.basename(this.path,this.extname):void 0}set stem(t){zr(t,"stem"),Gr(t,"stem"),this.path=at.join(this.dirname||"",t+(this.extname||""))}fail(t,n,r){const a=this.message(t,n,r);throw a.fatal=!0,a}info(t,n,r){const a=this.message(t,n,r);return a.fatal=void 0,a}message(t,n,r){const a=new Be(t,n,r);return this.path&&(a.name=this.path+":"+a.name,a.file=this.path),a.fatal=!1,this.messages.push(a),a}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function Gr(e,t){if(e&&e.includes(at.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+at.sep+"`")}function zr(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function mu(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function Mm(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Bm=(function(e){const r=this.constructor.prototype,a=r[e],i=function(){return a.apply(i,arguments)};Object.setPrototypeOf(i,r);const u=Object.getOwnPropertyNames(a);for(const o of u){const l=Object.getOwnPropertyDescriptor(a,o);l&&Object.defineProperty(i,o,l)}return i}),Fm={}.hasOwnProperty;class ni extends Bm{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=Sm()}copy(){const t=new ni;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data($r(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(Wr("data",this.frozen),this.namespace[t]=n,this):Fm.call(this.namespace,t)&&this.namespace[t]||void 0:t?(Wr("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const a=n.call(t,...r);typeof a=="function"&&this.transformers.use(a)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=Wn(t),r=this.parser||this.Parser;return Vr("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),Vr("process",this.parser||this.Parser),qr("process",this.compiler||this.Compiler),n?a(void 0,n):new Promise(a);function a(i,u){const o=Wn(t),l=r.parse(o);r.run(l,o,function(f,d,h){if(f||!d||!h)return c(f);const m=d,_=r.stringify(m,h);jm(_)?h.value=_:h.result=_,c(f,h)});function c(f,d){f||!d?u(f):i?i(d):n(void 0,d)}}}processSync(t){let n=!1,r;return this.freeze(),Vr("processSync",this.parser||this.Parser),qr("processSync",this.compiler||this.Compiler),this.process(t,a),Eu("processSync","process",n),r;function a(i,u){n=!0,du(i),r=u}}run(t,n,r){pu(t),this.freeze();const a=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?i(void 0,r):new Promise(i);function i(u,o){const l=Wn(n);a.run(t,l,c);function c(f,d,h){const m=d||t;f?o(f):u?u(m):r(void 0,m,h)}}}runSync(t,n){let r=!1,a;return this.run(t,n,i),Eu("runSync","run",r),a;function i(u,o){du(u),a=o,r=!0}}stringify(t,n){this.freeze();const r=Wn(n),a=this.compiler||this.Compiler;return qr("stringify",a),pu(t),a(t,r)}use(t,...n){const r=this.attachers,a=this.namespace;if(Wr("use",this.frozen),t!=null)if(typeof t=="function")l(t,n);else if(typeof t=="object")Array.isArray(t)?o(t):u(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function i(c){if(typeof c=="function")l(c,[]);else if(typeof c=="object")if(Array.isArray(c)){const[f,...d]=c;l(f,d)}else u(c);else throw new TypeError("Expected usable value, not `"+c+"`")}function u(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");o(c.plugins),c.settings&&(a.settings=$r(!0,a.settings,c.settings))}function o(c){let f=-1;if(c!=null)if(Array.isArray(c))for(;++f<c.length;){const d=c[f];i(d)}else throw new TypeError("Expected a list of plugins, not `"+c+"`")}function l(c,f){let d=-1,h=-1;for(;++d<r.length;)if(r[d][0]===c){h=d;break}if(h===-1)r.push([c,...f]);else if(f.length>0){let[m,..._]=f;const A=r[h][1];Sa(A)&&Sa(m)&&(m=$r(!0,A,m)),r[h]=[c,m,..._]}}}}const Hm=new ni().freeze();function Vr(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function qr(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Wr(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function pu(e){if(!Sa(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Eu(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Wn(e){return Um(e)?e:new _o(e)}function Um(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function jm(e){return typeof e=="string"||$m(e)}function $m(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Ym="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",bu=[],gu={allowDangerousHtml:!0},Gm=/^(https?|ircs?|mailto|xmpp)$/i,zm=[{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 yo(e){const t=e.allowedElements,n=e.allowElement,r=e.children||"",a=e.className,i=e.components,u=e.disallowedElements,o=e.rehypePlugins||bu,l=e.remarkPlugins||bu,c=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...gu}:gu,f=e.skipHtml,d=e.unwrapDisallowed,h=e.urlTransform||Vm,m=Hm().use(Ih).use(l).use(_m,c).use(o),_=new _o;typeof r=="string"&&(_.value=r);for(const P of zm)Object.hasOwn(e,P.from)&&(""+P.from+(P.to?"use `"+P.to+"` instead":"remove it")+Ym+P.id,void 0);const A=m.parse(_);let v=m.runSync(A,_);return a&&(v={type:"element",tagName:"div",properties:{className:a},children:v.type==="root"?v.children:[v]}),ti(v,x),i0(v,{Fragment:L.Fragment,components:i,ignoreInvalidStyle:!0,jsx:L.jsx,jsxs:L.jsxs,passKeys:!0,passNode:!0});function x(P,R,B){if(P.type==="raw"&&B&&typeof R=="number")return f?B.children.splice(R,1):B.children[R]={type:"text",value:P.value},R;if(P.type==="element"){let C;for(C in Fr)if(Object.hasOwn(Fr,C)&&Object.hasOwn(P.properties,C)){const O=P.properties[C],Q=Fr[C];(Q===null||Q.includes(P.tagName))&&(P.properties[C]=h(String(O||""),C,P))}}if(P.type==="element"){let C=t?!t.includes(P.tagName):u?u.includes(P.tagName):!1;if(!C&&n&&typeof R=="number"&&(C=!n(P,R,B)),C&&B&&typeof R=="number")return d&&P.children?B.children.splice(R,1,...P.children):B.children.splice(R,1),R}}}function Vm(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),a=e.indexOf("/");return t<0||a>-1&&t>a||n>-1&&t>n||r>-1&&t>r||Gm.test(e.slice(0,t))?e:""}const Tu=/[#.]/g;function qm(e,t){const n=e||"",r={};let a=0,i,u;for(;a<n.length;){Tu.lastIndex=a;const o=Tu.exec(n),l=n.slice(a,o?o.index:n.length);l&&(i?i==="#"?r.id=l:Array.isArray(r.className)?r.className.push(l):r.className=[l]:u=l,a+=l.length),o&&(i=o[0],a++)}return{type:"element",tagName:u||t||"div",properties:r,children:[]}}const Wm=new Set(["button","menu","reset","submit"]),Ia={}.hasOwnProperty;function xo(e,t,n){const r=n&&Zm(n);function a(i,u,...o){let l=-1,c;if(i==null){c={type:"root",children:[]};const f=u;o.unshift(f)}else if(c=qm(i,t),c.tagName=c.tagName.toLowerCase(),r&&Ia.call(r,c.tagName)&&(c.tagName=r[c.tagName]),Xm(u,c.tagName)){let f;for(f in u)Ia.call(u,f)&&Qm(e,c.properties,f,u[f])}else o.unshift(u);for(;++l<o.length;)Na(c.children,o[l]);return c.type==="element"&&c.tagName==="template"&&(c.content={type:"root",children:c.children},c.children=[]),c}return a}function Xm(e,t){return e==null||typeof e!="object"||Array.isArray(e)?!1:t==="input"||!e.type||typeof e.type!="string"?!0:"children"in e&&Array.isArray(e.children)?!1:t==="button"?Wm.has(e.type.toLowerCase()):!("value"in e)}function Qm(e,t,n,r){const a=Tr(e,n);let i=-1,u;if(r!=null){if(typeof r=="number"){if(Number.isNaN(r))return;u=r}else typeof r=="boolean"?u=r:typeof r=="string"?a.spaceSeparated?u=Hi(r):a.commaSeparated?u=ki(r):a.commaOrSpaceSeparated?u=Hi(ki(r).join(" ")):u=Au(a,a.property,r):Array.isArray(r)?u=r.concat():u=a.property==="style"?Km(r):String(r);if(Array.isArray(u)){const o=[];for(;++i<u.length;){const l=Au(a,a.property,u[i]);o[i]=l}u=o}if(a.property==="className"&&Array.isArray(t.className)){const o=u;u=t.className.concat(o)}t[a.property]=u}}function Na(e,t){let n=-1;if(t!=null)if(typeof t=="string"||typeof t=="number")e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(;++n<t.length;)Na(e,t[n]);else if(typeof t=="object"&&"type"in t)t.type==="root"?Na(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function Au(e,t,n){if(typeof n=="string"){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(n===""||On(n)===On(t)))return!0}return n}function Km(e){const t=[];let n;for(n in e)Ia.call(e,n)&&t.push([n,e[n]].join(": "));return t.join("; ")}function Zm(e){const t={};let n=-1;for(;++n<e.length;)t[e[n].toLowerCase()]=e[n];return t}const Jm=["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"],ep=xo(Mn,"div"),tp=xo(xt,"g",Jm);function np(e){const t=String(e),n=[];return{toOffset:a,toPoint:r};function r(i){if(typeof i=="number"&&i>-1&&i<=t.length){let u=0;for(;;){let o=n[u];if(o===void 0){const l=_u(t,n[u-1]);o=l===-1?t.length+1:l+1,n[u]=o}if(o>i)return{line:u+1,column:i-(u>0?n[u-1]:0)+1,offset:i};u++}}}function a(i){if(i&&typeof i.line=="number"&&typeof i.column=="number"&&!Number.isNaN(i.line)&&!Number.isNaN(i.column)){for(;n.length<i.line;){const o=n[n.length-1],l=_u(t,o),c=l===-1?t.length+1:l+1;if(o===c)break;n.push(c)}const u=(i.line>1?n[i.line-2]:0)+i.column-1;if(u<n[i.line-1])return u}}}function _u(e,t){const n=e.indexOf("\r",t),r=e.indexOf(`
|
|
62
|
+
`,t);return r===-1?n:n===-1||n+1===r?r:n<r?n:r}const Dt={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},So={}.hasOwnProperty,rp=Object.prototype;function ap(e,t){const n=t||{};return ri({file:n.file||void 0,location:!1,schema:n.space==="svg"?xt:Mn,verbose:n.verbose||!1},e)}function ri(e,t){let n;switch(t.nodeName){case"#comment":{const r=t;return n={type:"comment",value:r.data},tr(e,r,n),n}case"#document":case"#document-fragment":{const r=t,a="mode"in r?r.mode==="quirks"||r.mode==="limited-quirks":!1;if(n={type:"root",children:Co(e,t.childNodes),data:{quirksMode:a}},e.file&&e.location){const i=String(e.file),u=np(i),o=u.toPoint(0),l=u.toPoint(i.length);n.position={start:o,end:l}}return n}case"#documentType":{const r=t;return n={type:"doctype"},tr(e,r,n),n}case"#text":{const r=t;return n={type:"text",value:r.value},tr(e,r,n),n}default:return n=ip(e,t),n}}function Co(e,t){let n=-1;const r=[];for(;++n<t.length;){const a=ri(e,t[n]);r.push(a)}return r}function ip(e,t){const n=e.schema;e.schema=t.namespaceURI===Dt.svg?xt:Mn;let r=-1;const a={};for(;++r<t.attrs.length;){const o=t.attrs[r],l=(o.prefix?o.prefix+":":"")+o.name;So.call(rp,l)||(a[l]=o.value)}const u=(e.schema.space==="svg"?tp:ep)(t.tagName,a,Co(e,t.childNodes));if(tr(e,t,u),u.tagName==="template"){const o=t,l=o.sourceCodeLocation,c=l&&l.startTag&&Xt(l.startTag),f=l&&l.endTag&&Xt(l.endTag),d=ri(e,o.content);c&&f&&e.file&&(d.position={start:c.end,end:f.start}),u.content=d}return e.schema=n,u}function tr(e,t,n){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){const r=up(e,n,t.sourceCodeLocation);r&&(e.location=!0,n.position=r)}}function up(e,t,n){const r=Xt(n);if(t.type==="element"){const a=t.children[t.children.length-1];if(r&&!n.endTag&&a&&a.position&&a.position.end&&(r.end=Object.assign({},a.position.end)),e.verbose){const i={};let u;if(n.attrs)for(u in n.attrs)So.call(n.attrs,u)&&(i[Tr(e.schema,u).property]=Xt(n.attrs[u]));n.startTag;const o=Xt(n.startTag),l=n.endTag?Xt(n.endTag):void 0,c={opening:o};l&&(c.closing=l),c.properties=i,t.data={position:c}}}return r}function Xt(e){const t=yu({line:e.startLine,column:e.startCol,offset:e.startOffset}),n=yu({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||n?{start:t,end:n}:void 0}function yu(e){return e.line&&e.column?e:void 0}const xu={}.hasOwnProperty;function Io(e,t){const n=t||{};function r(a,...i){let u=r.invalid;const o=r.handlers;if(a&&xu.call(a,e)){const l=String(a[e]);u=xu.call(o,l)?o[l]:r.unknown}if(u)return u.call(this,a,...i)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}const sp={},op={}.hasOwnProperty,No=Io("type",{handlers:{root:cp,element:pp,text:hp,comment:mp,doctype:dp}});function lp(e,t){const r=(t||sp).space;return No(e,r==="svg"?xt:Mn)}function cp(e,t){const n={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return n.childNodes=ai(e.children,n,t),un(e,n),n}function fp(e,t){const n={nodeName:"#document-fragment",childNodes:[]};return n.childNodes=ai(e.children,n,t),un(e,n),n}function dp(e){const t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return un(e,t),t}function hp(e){const t={nodeName:"#text",value:e.value,parentNode:null};return un(e,t),t}function mp(e){const t={nodeName:"#comment",data:e.value,parentNode:null};return un(e,t),t}function pp(e,t){const n=t;let r=n;e.type==="element"&&e.tagName.toLowerCase()==="svg"&&n.space==="html"&&(r=xt);const a=[];let i;if(e.properties){for(i in e.properties)if(i!=="children"&&op.call(e.properties,i)){const l=Ep(r,i,e.properties[i]);l&&a.push(l)}}const u=r.space,o={nodeName:e.tagName,tagName:e.tagName,attrs:a,namespaceURI:Dt[u],childNodes:[],parentNode:null};return o.childNodes=ai(e.children,o,r),un(e,o),e.tagName==="template"&&e.content&&(o.content=fp(e.content,r)),o}function Ep(e,t,n){const r=Tr(e,t);if(n===!1||n===null||n===void 0||typeof n=="number"&&Number.isNaN(n)||!n&&r.boolean)return;Array.isArray(n)&&(n=r.commaSeparated?Hs(n):Ws(n));const a={name:r.attribute,value:n===!0?"":String(n)};if(r.space&&r.space!=="html"&&r.space!=="svg"){const i=a.name.indexOf(":");i<0?a.prefix="":(a.name=a.name.slice(i+1),a.prefix=r.attribute.slice(0,i)),a.namespace=Dt[r.space]}return a}function ai(e,t,n){let r=-1;const a=[];if(e)for(;++r<e.length;){const i=No(e[r],n);i.parentNode=t,a.push(i)}return a}function un(e,t){const n=e.position;n&&n.start&&n.end&&(n.start.offset,n.end.offset,t.sourceCodeLocation={startLine:n.start.line,startCol:n.start.column,startOffset:n.start.offset,endLine:n.end.line,endCol:n.end.column,endOffset:n.end.offset})}const bp=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],gp=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),Ie="�";var E;(function(e){e[e.EOF=-1]="EOF",e[e.NULL=0]="NULL",e[e.TABULATION=9]="TABULATION",e[e.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",e[e.LINE_FEED=10]="LINE_FEED",e[e.FORM_FEED=12]="FORM_FEED",e[e.SPACE=32]="SPACE",e[e.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",e[e.QUOTATION_MARK=34]="QUOTATION_MARK",e[e.AMPERSAND=38]="AMPERSAND",e[e.APOSTROPHE=39]="APOSTROPHE",e[e.HYPHEN_MINUS=45]="HYPHEN_MINUS",e[e.SOLIDUS=47]="SOLIDUS",e[e.DIGIT_0=48]="DIGIT_0",e[e.DIGIT_9=57]="DIGIT_9",e[e.SEMICOLON=59]="SEMICOLON",e[e.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",e[e.EQUALS_SIGN=61]="EQUALS_SIGN",e[e.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",e[e.QUESTION_MARK=63]="QUESTION_MARK",e[e.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",e[e.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",e[e.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",e[e.GRAVE_ACCENT=96]="GRAVE_ACCENT",e[e.LATIN_SMALL_A=97]="LATIN_SMALL_A",e[e.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(E||(E={}));const je={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function Oo(e){return e>=55296&&e<=57343}function Tp(e){return e>=56320&&e<=57343}function Ap(e,t){return(e-55296)*1024+9216+t}function Lo(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function Ro(e){return e>=64976&&e<=65007||gp.has(e)}var S;(function(e){e.controlCharacterInInputStream="control-character-in-input-stream",e.noncharacterInInputStream="noncharacter-in-input-stream",e.surrogateInInputStream="surrogate-in-input-stream",e.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",e.endTagWithAttributes="end-tag-with-attributes",e.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",e.unexpectedSolidusInTag="unexpected-solidus-in-tag",e.unexpectedNullCharacter="unexpected-null-character",e.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",e.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",e.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",e.missingEndTagName="missing-end-tag-name",e.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",e.unknownNamedCharacterReference="unknown-named-character-reference",e.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",e.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",e.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",e.eofBeforeTagName="eof-before-tag-name",e.eofInTag="eof-in-tag",e.missingAttributeValue="missing-attribute-value",e.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",e.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",e.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",e.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",e.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",e.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",e.missingDoctypePublicIdentifier="missing-doctype-public-identifier",e.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",e.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",e.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",e.cdataInHtmlContent="cdata-in-html-content",e.incorrectlyOpenedComment="incorrectly-opened-comment",e.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",e.eofInDoctype="eof-in-doctype",e.nestedComment="nested-comment",e.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",e.eofInComment="eof-in-comment",e.incorrectlyClosedComment="incorrectly-closed-comment",e.eofInCdata="eof-in-cdata",e.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",e.nullCharacterReference="null-character-reference",e.surrogateCharacterReference="surrogate-character-reference",e.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",e.controlCharacterReference="control-character-reference",e.noncharacterCharacterReference="noncharacter-character-reference",e.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",e.missingDoctypeName="missing-doctype-name",e.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",e.duplicateAttribute="duplicate-attribute",e.nonConformingDoctype="non-conforming-doctype",e.missingDoctype="missing-doctype",e.misplacedDoctype="misplaced-doctype",e.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",e.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",e.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",e.openElementsLeftAfterEof="open-elements-left-after-eof",e.abandonedHeadElementChild="abandoned-head-element-child",e.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",e.nestedNoscriptInHead="nested-noscript-in-head",e.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"})(S||(S={}));const _p=65536;class yp{constructor(t){this.handler=t,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=_p,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+ +(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(t,n){const{line:r,col:a,offset:i}=this,u=a+n,o=i+n;return{code:t,startLine:r,endLine:r,startCol:u,endCol:u,startOffset:o,endOffset:o}}_err(t){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(t,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(t){if(this.pos!==this.html.length-1){const n=this.html.charCodeAt(this.pos+1);if(Tp(n))return this.pos++,this._addGap(),Ap(t,n)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,E.EOF;return this._err(S.surrogateInInputStream),t}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(t,n){this.html.length>0?this.html+=t:this.html=t,this.endOfChunkHit=!1,this.lastChunkWritten=n}insertHtmlAtCurrentPos(t){this.html=this.html.substring(0,this.pos+1)+t+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(t,n){if(this.pos+t.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(n)return this.html.startsWith(t,this.pos);for(let r=0;r<t.length;r++)if((this.html.charCodeAt(this.pos+r)|32)!==t.charCodeAt(r))return!1;return!0}peek(t){const n=this.pos+t;if(n>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,E.EOF;const r=this.html.charCodeAt(n);return r===E.CARRIAGE_RETURN?E.LINE_FEED:r}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,E.EOF;let t=this.html.charCodeAt(this.pos);return t===E.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,E.LINE_FEED):t===E.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,Oo(t)&&(t=this._processSurrogate(t)),this.handler.onParseError===null||t>31&&t<127||t===E.LINE_FEED||t===E.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){Lo(t)?this._err(S.controlCharacterInInputStream):Ro(t)&&this._err(S.noncharacterInInputStream)}retreat(t){for(this.pos-=t;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}var fe;(function(e){e[e.CHARACTER=0]="CHARACTER",e[e.NULL_CHARACTER=1]="NULL_CHARACTER",e[e.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",e[e.START_TAG=3]="START_TAG",e[e.END_TAG=4]="END_TAG",e[e.COMMENT=5]="COMMENT",e[e.DOCTYPE=6]="DOCTYPE",e[e.EOF=7]="EOF",e[e.HIBERNATION=8]="HIBERNATION"})(fe||(fe={}));function vo(e,t){for(let n=e.attrs.length-1;n>=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null}const Po=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏઑඡ༉༦ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲϏϢϸontourIntegraìȹoɴ\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲy;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱còJTabcdfgorstרׯؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ߂ߐĀiyޱrc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣসে্ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४ĀnrࢃgleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpwਖਛgȀLRlr৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼અઋp;椅y;䐜Ādl੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑඞcy;䐊cute;䅃ƀaeyહાron;䅇dil;䅅;䐝ƀgswે૰ativeƀMTV૨ediumSpace;怋hiĀcn૦ëeryThiîtedĀGLଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷreak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪௫ఄ಄ದൡඅ櫬Āoungruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater;EFGLSTஶஷ扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨setĀ;Eೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂෛ෧ขภยา฿ไlig;䅒cute耻Ó䃓Āiyීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲcr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬืde耻Õ䃕es;樷ml耻Ö䃖erĀBP๋Āar๐๓r;怾acĀek๚;揞et;掴arenthesis;揜ҀacfhilorsງຊຏຒດຝະrtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ檻cedesȀ;EST່້扺qual;檯lantEqual;扼ilde;找me;怳Ādpuct;戏ortionĀ;aȥl;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL憒ar;懥eftArrow;懄eiling;按oǵ\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄቕቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHcቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗ĀeiቻDzኀ\0ኇefore;戴a;䎘ĀcnኘkSpace;쀀 Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtèa;䎖r;愨pf;愤cr;쀀𝒵ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒;Eaeiopᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;eᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;eᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰᝃᝈ០៦ᠹᡐᜍ᥈ᥰot;櫭ĀcrᛶkȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;tbrk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯᝳ;䎲;愶een;扬r;쀀𝔟gcostuvwឍឝឳេ៕៛ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀakoᠦᠵĀcn៲ᠣkƀlst֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ;敛;敘;攘;攔;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģbar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;elƀ;bhᥨᥩᥫ䁜;槅sub;柈ŬᥴlĀ;e怢t»pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭒\0᯽\0ᰌƀcprᦲute;䄇̀;abcdsᦿᧀᧄ᧕᧙戩nd;橄rcup;橉Āau᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r;Ecefms᩠ᩢᩫ᪤᪪旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ\0\0aĀ;t䀬;䁀ƀ;fl戁îᅠeĀmxent»eóɍǧ\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯delprvw᭠᭬᭷ᮂᮬᯔarrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;pᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰻᰿ᱝᱩᱵᲞᲬᲷᴍᵻᶑᶫᶻ᷆᷍ròar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂᳖᳜᳠mƀ;oș᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄĀDoḆᴴoôĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»ṺƀaeiἒἚls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧\0耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₥₰₴⃰℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽ƀ;qsؾٌlanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqrⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0proør;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼ròòΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonóquigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roøurĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨íistĀ;sடr;쀀𝔫ȀEest⩦⩹⩼ƀ;qs⩭ƀ;qs⩴lanôií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast⭕⭚⭟lleìl;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖchimpqu⮽⯍⯙⬄⯤⯯Ȁ;cerല⯆ഷ⯉uå;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭ååഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñĀ;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;cⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācrir;榿;쀀𝔬ͯ\0\0\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕⶥⶨrò᪀Āirⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔǒr;榷rp;榹;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ\0\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ脀¶;l䂶leìЃɩ\0\0m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳ᤈ⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t⾴ïrel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⋢⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔ABHabcdefhilmnoprstuxけさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstwガクシスゼゾダッデナp;極Ā;fゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ìâヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘rrowĀ;tㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowóarpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓ròaòՑ;怏oustĀ;a㈞掱che»mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì耻䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;qኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫwar;椪lig耻ß䃟㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rëƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproøim»ኬsðኞĀas㚺㚮ðrn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈadempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xôheadĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roðtré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜtré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),xp=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0)));var Xr;const Sp=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),Cp=(Xr=String.fromCodePoint)!==null&&Xr!==void 0?Xr:function(e){let t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|e&1023),t+=String.fromCharCode(e),t};function Ip(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=Sp.get(e))!==null&&t!==void 0?t:e}var Me;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(Me||(Me={}));const Np=32;var At;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(At||(At={}));function Oa(e){return e>=Me.ZERO&&e<=Me.NINE}function Op(e){return e>=Me.UPPER_A&&e<=Me.UPPER_F||e>=Me.LOWER_A&&e<=Me.LOWER_F}function Lp(e){return e>=Me.UPPER_A&&e<=Me.UPPER_Z||e>=Me.LOWER_A&&e<=Me.LOWER_Z||Oa(e)}function Rp(e){return e===Me.EQUALS||Lp(e)}var we;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(we||(we={}));var Et;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(Et||(Et={}));class Do{constructor(t,n,r){this.decodeTree=t,this.emitCodePoint=n,this.errors=r,this.state=we.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Et.Strict}startEntity(t){this.decodeMode=t,this.state=we.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case we.EntityStart:return t.charCodeAt(n)===Me.NUM?(this.state=we.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=we.NamedEntity,this.stateNamedEntity(t,n));case we.NumericStart:return this.stateNumericStart(t,n);case we.NumericDecimal:return this.stateNumericDecimal(t,n);case we.NumericHex:return this.stateNumericHex(t,n);case we.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|Np)===Me.LOWER_X?(this.state=we.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=we.NumericDecimal,this.stateNumericDecimal(t,n))}addToNumericResult(t,n,r,a){if(n!==r){const i=r-n;this.result=this.result*Math.pow(a,i)+parseInt(t.substr(n,i),a),this.consumed+=i}}stateNumericHex(t,n){const r=n;for(;n<t.length;){const a=t.charCodeAt(n);if(Oa(a)||Op(a))n+=1;else return this.addToNumericResult(t,r,n,16),this.emitNumericEntity(a,3)}return this.addToNumericResult(t,r,n,16),-1}stateNumericDecimal(t,n){const r=n;for(;n<t.length;){const a=t.charCodeAt(n);if(Oa(a))n+=1;else return this.addToNumericResult(t,r,n,10),this.emitNumericEntity(a,2)}return this.addToNumericResult(t,r,n,10),-1}emitNumericEntity(t,n){var r;if(this.consumed<=n)return(r=this.errors)===null||r===void 0||r.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===Me.SEMI)this.consumed+=1;else if(this.decodeMode===Et.Strict)return 0;return this.emitCodePoint(Ip(this.result),this.consumed),this.errors&&(t!==Me.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,n){const{decodeTree:r}=this;let a=r[this.treeIndex],i=(a&At.VALUE_LENGTH)>>14;for(;n<t.length;n++,this.excess++){const u=t.charCodeAt(n);if(this.treeIndex=vp(r,a,this.treeIndex+Math.max(1,i),u),this.treeIndex<0)return this.result===0||this.decodeMode===Et.Attribute&&(i===0||Rp(u))?0:this.emitNotTerminatedNamedEntity();if(a=r[this.treeIndex],i=(a&At.VALUE_LENGTH)>>14,i!==0){if(u===Me.SEMI)return this.emitNamedEntityData(this.treeIndex,i,this.consumed+this.excess);this.decodeMode!==Et.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:n,decodeTree:r}=this,a=(r[n]&At.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,a,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,n,r){const{decodeTree:a}=this;return this.emitCodePoint(n===1?a[t]&~At.VALUE_LENGTH:a[t+1],r),n===3&&this.emitCodePoint(a[t+2],r),r}end(){var t;switch(this.state){case we.NamedEntity:return this.result!==0&&(this.decodeMode!==Et.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case we.NumericDecimal:return this.emitNumericEntity(0,2);case we.NumericHex:return this.emitNumericEntity(0,3);case we.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case we.EntityStart:return 0}}}function ko(e){let t="";const n=new Do(e,r=>t+=Cp(r));return function(a,i){let u=0,o=0;for(;(o=a.indexOf("&",o))>=0;){t+=a.slice(u,o),n.startEntity(i);const c=n.write(a,o+1);if(c<0){u=o+n.end();break}u=o+c,o=c===0?u+1:u}const l=t+a.slice(u);return t="",l}}function vp(e,t,n,r){const a=(t&At.BRANCH_LENGTH)>>7,i=t&At.JUMP_TABLE;if(a===0)return i!==0&&r===i?n:-1;if(i){const l=r-i;return l<0||l>=a?-1:e[n+l]-1}let u=n,o=u+a-1;for(;u<=o;){const l=u+o>>>1,c=e[l];if(c<r)u=l+1;else if(c>r)o=l-1;else return e[l+a]}return-1}ko(Po);ko(xp);var D;(function(e){e.HTML="http://www.w3.org/1999/xhtml",e.MATHML="http://www.w3.org/1998/Math/MathML",e.SVG="http://www.w3.org/2000/svg",e.XLINK="http://www.w3.org/1999/xlink",e.XML="http://www.w3.org/XML/1998/namespace",e.XMLNS="http://www.w3.org/2000/xmlns/"})(D||(D={}));var kt;(function(e){e.TYPE="type",e.ACTION="action",e.ENCODING="encoding",e.PROMPT="prompt",e.NAME="name",e.COLOR="color",e.FACE="face",e.SIZE="size"})(kt||(kt={}));var Ke;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(Ke||(Ke={}));var y;(function(e){e.A="a",e.ADDRESS="address",e.ANNOTATION_XML="annotation-xml",e.APPLET="applet",e.AREA="area",e.ARTICLE="article",e.ASIDE="aside",e.B="b",e.BASE="base",e.BASEFONT="basefont",e.BGSOUND="bgsound",e.BIG="big",e.BLOCKQUOTE="blockquote",e.BODY="body",e.BR="br",e.BUTTON="button",e.CAPTION="caption",e.CENTER="center",e.CODE="code",e.COL="col",e.COLGROUP="colgroup",e.DD="dd",e.DESC="desc",e.DETAILS="details",e.DIALOG="dialog",e.DIR="dir",e.DIV="div",e.DL="dl",e.DT="dt",e.EM="em",e.EMBED="embed",e.FIELDSET="fieldset",e.FIGCAPTION="figcaption",e.FIGURE="figure",e.FONT="font",e.FOOTER="footer",e.FOREIGN_OBJECT="foreignObject",e.FORM="form",e.FRAME="frame",e.FRAMESET="frameset",e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6",e.HEAD="head",e.HEADER="header",e.HGROUP="hgroup",e.HR="hr",e.HTML="html",e.I="i",e.IMG="img",e.IMAGE="image",e.INPUT="input",e.IFRAME="iframe",e.KEYGEN="keygen",e.LABEL="label",e.LI="li",e.LINK="link",e.LISTING="listing",e.MAIN="main",e.MALIGNMARK="malignmark",e.MARQUEE="marquee",e.MATH="math",e.MENU="menu",e.META="meta",e.MGLYPH="mglyph",e.MI="mi",e.MO="mo",e.MN="mn",e.MS="ms",e.MTEXT="mtext",e.NAV="nav",e.NOBR="nobr",e.NOFRAMES="noframes",e.NOEMBED="noembed",e.NOSCRIPT="noscript",e.OBJECT="object",e.OL="ol",e.OPTGROUP="optgroup",e.OPTION="option",e.P="p",e.PARAM="param",e.PLAINTEXT="plaintext",e.PRE="pre",e.RB="rb",e.RP="rp",e.RT="rt",e.RTC="rtc",e.RUBY="ruby",e.S="s",e.SCRIPT="script",e.SEARCH="search",e.SECTION="section",e.SELECT="select",e.SOURCE="source",e.SMALL="small",e.SPAN="span",e.STRIKE="strike",e.STRONG="strong",e.STYLE="style",e.SUB="sub",e.SUMMARY="summary",e.SUP="sup",e.TABLE="table",e.TBODY="tbody",e.TEMPLATE="template",e.TEXTAREA="textarea",e.TFOOT="tfoot",e.TD="td",e.TH="th",e.THEAD="thead",e.TITLE="title",e.TR="tr",e.TRACK="track",e.TT="tt",e.U="u",e.UL="ul",e.SVG="svg",e.VAR="var",e.WBR="wbr",e.XMP="xmp"})(y||(y={}));var s;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.A=1]="A",e[e.ADDRESS=2]="ADDRESS",e[e.ANNOTATION_XML=3]="ANNOTATION_XML",e[e.APPLET=4]="APPLET",e[e.AREA=5]="AREA",e[e.ARTICLE=6]="ARTICLE",e[e.ASIDE=7]="ASIDE",e[e.B=8]="B",e[e.BASE=9]="BASE",e[e.BASEFONT=10]="BASEFONT",e[e.BGSOUND=11]="BGSOUND",e[e.BIG=12]="BIG",e[e.BLOCKQUOTE=13]="BLOCKQUOTE",e[e.BODY=14]="BODY",e[e.BR=15]="BR",e[e.BUTTON=16]="BUTTON",e[e.CAPTION=17]="CAPTION",e[e.CENTER=18]="CENTER",e[e.CODE=19]="CODE",e[e.COL=20]="COL",e[e.COLGROUP=21]="COLGROUP",e[e.DD=22]="DD",e[e.DESC=23]="DESC",e[e.DETAILS=24]="DETAILS",e[e.DIALOG=25]="DIALOG",e[e.DIR=26]="DIR",e[e.DIV=27]="DIV",e[e.DL=28]="DL",e[e.DT=29]="DT",e[e.EM=30]="EM",e[e.EMBED=31]="EMBED",e[e.FIELDSET=32]="FIELDSET",e[e.FIGCAPTION=33]="FIGCAPTION",e[e.FIGURE=34]="FIGURE",e[e.FONT=35]="FONT",e[e.FOOTER=36]="FOOTER",e[e.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",e[e.FORM=38]="FORM",e[e.FRAME=39]="FRAME",e[e.FRAMESET=40]="FRAMESET",e[e.H1=41]="H1",e[e.H2=42]="H2",e[e.H3=43]="H3",e[e.H4=44]="H4",e[e.H5=45]="H5",e[e.H6=46]="H6",e[e.HEAD=47]="HEAD",e[e.HEADER=48]="HEADER",e[e.HGROUP=49]="HGROUP",e[e.HR=50]="HR",e[e.HTML=51]="HTML",e[e.I=52]="I",e[e.IMG=53]="IMG",e[e.IMAGE=54]="IMAGE",e[e.INPUT=55]="INPUT",e[e.IFRAME=56]="IFRAME",e[e.KEYGEN=57]="KEYGEN",e[e.LABEL=58]="LABEL",e[e.LI=59]="LI",e[e.LINK=60]="LINK",e[e.LISTING=61]="LISTING",e[e.MAIN=62]="MAIN",e[e.MALIGNMARK=63]="MALIGNMARK",e[e.MARQUEE=64]="MARQUEE",e[e.MATH=65]="MATH",e[e.MENU=66]="MENU",e[e.META=67]="META",e[e.MGLYPH=68]="MGLYPH",e[e.MI=69]="MI",e[e.MO=70]="MO",e[e.MN=71]="MN",e[e.MS=72]="MS",e[e.MTEXT=73]="MTEXT",e[e.NAV=74]="NAV",e[e.NOBR=75]="NOBR",e[e.NOFRAMES=76]="NOFRAMES",e[e.NOEMBED=77]="NOEMBED",e[e.NOSCRIPT=78]="NOSCRIPT",e[e.OBJECT=79]="OBJECT",e[e.OL=80]="OL",e[e.OPTGROUP=81]="OPTGROUP",e[e.OPTION=82]="OPTION",e[e.P=83]="P",e[e.PARAM=84]="PARAM",e[e.PLAINTEXT=85]="PLAINTEXT",e[e.PRE=86]="PRE",e[e.RB=87]="RB",e[e.RP=88]="RP",e[e.RT=89]="RT",e[e.RTC=90]="RTC",e[e.RUBY=91]="RUBY",e[e.S=92]="S",e[e.SCRIPT=93]="SCRIPT",e[e.SEARCH=94]="SEARCH",e[e.SECTION=95]="SECTION",e[e.SELECT=96]="SELECT",e[e.SOURCE=97]="SOURCE",e[e.SMALL=98]="SMALL",e[e.SPAN=99]="SPAN",e[e.STRIKE=100]="STRIKE",e[e.STRONG=101]="STRONG",e[e.STYLE=102]="STYLE",e[e.SUB=103]="SUB",e[e.SUMMARY=104]="SUMMARY",e[e.SUP=105]="SUP",e[e.TABLE=106]="TABLE",e[e.TBODY=107]="TBODY",e[e.TEMPLATE=108]="TEMPLATE",e[e.TEXTAREA=109]="TEXTAREA",e[e.TFOOT=110]="TFOOT",e[e.TD=111]="TD",e[e.TH=112]="TH",e[e.THEAD=113]="THEAD",e[e.TITLE=114]="TITLE",e[e.TR=115]="TR",e[e.TRACK=116]="TRACK",e[e.TT=117]="TT",e[e.U=118]="U",e[e.UL=119]="UL",e[e.SVG=120]="SVG",e[e.VAR=121]="VAR",e[e.WBR=122]="WBR",e[e.XMP=123]="XMP"})(s||(s={}));const Pp=new Map([[y.A,s.A],[y.ADDRESS,s.ADDRESS],[y.ANNOTATION_XML,s.ANNOTATION_XML],[y.APPLET,s.APPLET],[y.AREA,s.AREA],[y.ARTICLE,s.ARTICLE],[y.ASIDE,s.ASIDE],[y.B,s.B],[y.BASE,s.BASE],[y.BASEFONT,s.BASEFONT],[y.BGSOUND,s.BGSOUND],[y.BIG,s.BIG],[y.BLOCKQUOTE,s.BLOCKQUOTE],[y.BODY,s.BODY],[y.BR,s.BR],[y.BUTTON,s.BUTTON],[y.CAPTION,s.CAPTION],[y.CENTER,s.CENTER],[y.CODE,s.CODE],[y.COL,s.COL],[y.COLGROUP,s.COLGROUP],[y.DD,s.DD],[y.DESC,s.DESC],[y.DETAILS,s.DETAILS],[y.DIALOG,s.DIALOG],[y.DIR,s.DIR],[y.DIV,s.DIV],[y.DL,s.DL],[y.DT,s.DT],[y.EM,s.EM],[y.EMBED,s.EMBED],[y.FIELDSET,s.FIELDSET],[y.FIGCAPTION,s.FIGCAPTION],[y.FIGURE,s.FIGURE],[y.FONT,s.FONT],[y.FOOTER,s.FOOTER],[y.FOREIGN_OBJECT,s.FOREIGN_OBJECT],[y.FORM,s.FORM],[y.FRAME,s.FRAME],[y.FRAMESET,s.FRAMESET],[y.H1,s.H1],[y.H2,s.H2],[y.H3,s.H3],[y.H4,s.H4],[y.H5,s.H5],[y.H6,s.H6],[y.HEAD,s.HEAD],[y.HEADER,s.HEADER],[y.HGROUP,s.HGROUP],[y.HR,s.HR],[y.HTML,s.HTML],[y.I,s.I],[y.IMG,s.IMG],[y.IMAGE,s.IMAGE],[y.INPUT,s.INPUT],[y.IFRAME,s.IFRAME],[y.KEYGEN,s.KEYGEN],[y.LABEL,s.LABEL],[y.LI,s.LI],[y.LINK,s.LINK],[y.LISTING,s.LISTING],[y.MAIN,s.MAIN],[y.MALIGNMARK,s.MALIGNMARK],[y.MARQUEE,s.MARQUEE],[y.MATH,s.MATH],[y.MENU,s.MENU],[y.META,s.META],[y.MGLYPH,s.MGLYPH],[y.MI,s.MI],[y.MO,s.MO],[y.MN,s.MN],[y.MS,s.MS],[y.MTEXT,s.MTEXT],[y.NAV,s.NAV],[y.NOBR,s.NOBR],[y.NOFRAMES,s.NOFRAMES],[y.NOEMBED,s.NOEMBED],[y.NOSCRIPT,s.NOSCRIPT],[y.OBJECT,s.OBJECT],[y.OL,s.OL],[y.OPTGROUP,s.OPTGROUP],[y.OPTION,s.OPTION],[y.P,s.P],[y.PARAM,s.PARAM],[y.PLAINTEXT,s.PLAINTEXT],[y.PRE,s.PRE],[y.RB,s.RB],[y.RP,s.RP],[y.RT,s.RT],[y.RTC,s.RTC],[y.RUBY,s.RUBY],[y.S,s.S],[y.SCRIPT,s.SCRIPT],[y.SEARCH,s.SEARCH],[y.SECTION,s.SECTION],[y.SELECT,s.SELECT],[y.SOURCE,s.SOURCE],[y.SMALL,s.SMALL],[y.SPAN,s.SPAN],[y.STRIKE,s.STRIKE],[y.STRONG,s.STRONG],[y.STYLE,s.STYLE],[y.SUB,s.SUB],[y.SUMMARY,s.SUMMARY],[y.SUP,s.SUP],[y.TABLE,s.TABLE],[y.TBODY,s.TBODY],[y.TEMPLATE,s.TEMPLATE],[y.TEXTAREA,s.TEXTAREA],[y.TFOOT,s.TFOOT],[y.TD,s.TD],[y.TH,s.TH],[y.THEAD,s.THEAD],[y.TITLE,s.TITLE],[y.TR,s.TR],[y.TRACK,s.TRACK],[y.TT,s.TT],[y.U,s.U],[y.UL,s.UL],[y.SVG,s.SVG],[y.VAR,s.VAR],[y.WBR,s.WBR],[y.XMP,s.XMP]]);function sn(e){var t;return(t=Pp.get(e))!==null&&t!==void 0?t:s.UNKNOWN}const w=s,Dp={[D.HTML]:new Set([w.ADDRESS,w.APPLET,w.AREA,w.ARTICLE,w.ASIDE,w.BASE,w.BASEFONT,w.BGSOUND,w.BLOCKQUOTE,w.BODY,w.BR,w.BUTTON,w.CAPTION,w.CENTER,w.COL,w.COLGROUP,w.DD,w.DETAILS,w.DIR,w.DIV,w.DL,w.DT,w.EMBED,w.FIELDSET,w.FIGCAPTION,w.FIGURE,w.FOOTER,w.FORM,w.FRAME,w.FRAMESET,w.H1,w.H2,w.H3,w.H4,w.H5,w.H6,w.HEAD,w.HEADER,w.HGROUP,w.HR,w.HTML,w.IFRAME,w.IMG,w.INPUT,w.LI,w.LINK,w.LISTING,w.MAIN,w.MARQUEE,w.MENU,w.META,w.NAV,w.NOEMBED,w.NOFRAMES,w.NOSCRIPT,w.OBJECT,w.OL,w.P,w.PARAM,w.PLAINTEXT,w.PRE,w.SCRIPT,w.SECTION,w.SELECT,w.SOURCE,w.STYLE,w.SUMMARY,w.TABLE,w.TBODY,w.TD,w.TEMPLATE,w.TEXTAREA,w.TFOOT,w.TH,w.THEAD,w.TITLE,w.TR,w.TRACK,w.UL,w.WBR,w.XMP]),[D.MATHML]:new Set([w.MI,w.MO,w.MN,w.MS,w.MTEXT,w.ANNOTATION_XML]),[D.SVG]:new Set([w.TITLE,w.FOREIGN_OBJECT,w.DESC]),[D.XLINK]:new Set,[D.XML]:new Set,[D.XMLNS]:new Set},La=new Set([w.H1,w.H2,w.H3,w.H4,w.H5,w.H6]);y.STYLE,y.SCRIPT,y.XMP,y.IFRAME,y.NOEMBED,y.NOFRAMES,y.PLAINTEXT;var b;(function(e){e[e.DATA=0]="DATA",e[e.RCDATA=1]="RCDATA",e[e.RAWTEXT=2]="RAWTEXT",e[e.SCRIPT_DATA=3]="SCRIPT_DATA",e[e.PLAINTEXT=4]="PLAINTEXT",e[e.TAG_OPEN=5]="TAG_OPEN",e[e.END_TAG_OPEN=6]="END_TAG_OPEN",e[e.TAG_NAME=7]="TAG_NAME",e[e.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",e[e.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",e[e.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",e[e.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",e[e.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",e[e.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",e[e.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",e[e.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",e[e.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",e[e.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",e[e.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",e[e.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",e[e.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",e[e.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",e[e.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",e[e.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",e[e.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",e[e.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",e[e.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",e[e.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",e[e.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",e[e.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",e[e.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",e[e.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",e[e.BOGUS_COMMENT=40]="BOGUS_COMMENT",e[e.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",e[e.COMMENT_START=42]="COMMENT_START",e[e.COMMENT_START_DASH=43]="COMMENT_START_DASH",e[e.COMMENT=44]="COMMENT",e[e.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",e[e.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",e[e.COMMENT_END_DASH=49]="COMMENT_END_DASH",e[e.COMMENT_END=50]="COMMENT_END",e[e.COMMENT_END_BANG=51]="COMMENT_END_BANG",e[e.DOCTYPE=52]="DOCTYPE",e[e.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",e[e.DOCTYPE_NAME=54]="DOCTYPE_NAME",e[e.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",e[e.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",e[e.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",e[e.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",e[e.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",e[e.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",e[e.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",e[e.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",e[e.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",e[e.CDATA_SECTION=68]="CDATA_SECTION",e[e.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",e[e.CDATA_SECTION_END=70]="CDATA_SECTION_END",e[e.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",e[e.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND"})(b||(b={}));const ve={DATA:b.DATA,RCDATA:b.RCDATA,RAWTEXT:b.RAWTEXT,SCRIPT_DATA:b.SCRIPT_DATA,PLAINTEXT:b.PLAINTEXT,CDATA_SECTION:b.CDATA_SECTION};function kp(e){return e>=E.DIGIT_0&&e<=E.DIGIT_9}function En(e){return e>=E.LATIN_CAPITAL_A&&e<=E.LATIN_CAPITAL_Z}function wp(e){return e>=E.LATIN_SMALL_A&&e<=E.LATIN_SMALL_Z}function gt(e){return wp(e)||En(e)}function Su(e){return gt(e)||kp(e)}function Xn(e){return e+32}function wo(e){return e===E.SPACE||e===E.LINE_FEED||e===E.TABULATION||e===E.FORM_FEED}function Cu(e){return wo(e)||e===E.SOLIDUS||e===E.GREATER_THAN_SIGN}function Mp(e){return e===E.NULL?S.nullCharacterReference:e>1114111?S.characterReferenceOutsideUnicodeRange:Oo(e)?S.surrogateCharacterReference:Ro(e)?S.noncharacterCharacterReference:Lo(e)||e===E.CARRIAGE_RETURN?S.controlCharacterReference:null}class Bp{constructor(t,n){this.options=t,this.handler=n,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=b.DATA,this.returnState=b.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new yp(n),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new Do(Po,(r,a)=>{this.preprocessor.pos=this.entityStartPos+a-1,this._flushCodePointConsumedAsCharacterReference(r)},n.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(S.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:r=>{this._err(S.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+r)},validateNumericCharacterReference:r=>{const a=Mp(r);a&&this._err(a,1)}}:void 0)}_err(t,n=0){var r,a;(a=(r=this.handler).onParseError)===null||a===void 0||a.call(r,this.preprocessor.getError(t,n))}getCurrentLocation(t){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-t,startOffset:this.preprocessor.offset-t,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const t=this._consume();this._ensureHibernation()||this._callState(t)}this.inLoop=!1}}pause(){this.paused=!0}resume(t){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||t?.())}write(t,n,r){this.active=!0,this.preprocessor.write(t,n),this._runParsingLoop(),this.paused||r?.()}insertHtmlAtCurrentPos(t){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(t),this._runParsingLoop()}_ensureHibernation(){return this.preprocessor.endOfChunkHit?(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0):!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(t){this.consumedAfterSnapshot+=t;for(let n=0;n<t;n++)this.preprocessor.advance()}_consumeSequenceIfMatch(t,n){return this.preprocessor.startsWith(t,n)?(this._advanceBy(t.length-1),!0):!1}_createStartTagToken(){this.currentToken={type:fe.START_TAG,tagName:"",tagID:s.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:fe.END_TAG,tagName:"",tagID:s.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(t){this.currentToken={type:fe.COMMENT,data:"",location:this.getCurrentLocation(t)}}_createDoctypeToken(t){this.currentToken={type:fe.DOCTYPE,name:t,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(t,n){this.currentCharacterToken={type:t,chars:n,location:this.currentLocation}}_createAttr(t){this.currentAttr={name:t,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var t,n;const r=this.currentToken;if(vo(r,this.currentAttr.name)===null){if(r.attrs.push(this.currentAttr),r.location&&this.currentLocation){const a=(t=(n=r.location).attrs)!==null&&t!==void 0?t:n.attrs=Object.create(null);a[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(S.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(t){this._emitCurrentCharacterToken(t.location),this.currentToken=null,t.location&&(t.location.endLine=this.preprocessor.line,t.location.endCol=this.preprocessor.col+1,t.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){const t=this.currentToken;this.prepareToken(t),t.tagID=sn(t.tagName),t.type===fe.START_TAG?(this.lastStartTagName=t.tagName,this.handler.onStartTag(t)):(t.attrs.length>0&&this._err(S.endTagWithAttributes),t.selfClosing&&this._err(S.endTagWithTrailingSolidus),this.handler.onEndTag(t)),this.preprocessor.dropParsedChunk()}emitCurrentComment(t){this.prepareToken(t),this.handler.onComment(t),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(t){this.prepareToken(t),this.handler.onDoctype(t),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(t){if(this.currentCharacterToken){switch(t&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=t.startLine,this.currentCharacterToken.location.endCol=t.startCol,this.currentCharacterToken.location.endOffset=t.startOffset),this.currentCharacterToken.type){case fe.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case fe.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case fe.WHITESPACE_CHARACTER:{this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}}this.currentCharacterToken=null}}_emitEOFToken(){const t=this.getCurrentLocation(0);t&&(t.endLine=t.startLine,t.endCol=t.startCol,t.endOffset=t.startOffset),this._emitCurrentCharacterToken(t),this.handler.onEof({type:fe.EOF,location:t}),this.active=!1}_appendCharToCurrentCharacterToken(t,n){if(this.currentCharacterToken)if(this.currentCharacterToken.type===t){this.currentCharacterToken.chars+=n;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(t,n)}_emitCodePoint(t){const n=wo(t)?fe.WHITESPACE_CHARACTER:t===E.NULL?fe.NULL_CHARACTER:fe.CHARACTER;this._appendCharToCurrentCharacterToken(n,String.fromCodePoint(t))}_emitChars(t){this._appendCharToCurrentCharacterToken(fe.CHARACTER,t)}_startCharacterReference(){this.returnState=this.state,this.state=b.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?Et.Attribute:Et.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===b.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===b.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===b.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(t){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(t):this._emitCodePoint(t)}_callState(t){switch(this.state){case b.DATA:{this._stateData(t);break}case b.RCDATA:{this._stateRcdata(t);break}case b.RAWTEXT:{this._stateRawtext(t);break}case b.SCRIPT_DATA:{this._stateScriptData(t);break}case b.PLAINTEXT:{this._statePlaintext(t);break}case b.TAG_OPEN:{this._stateTagOpen(t);break}case b.END_TAG_OPEN:{this._stateEndTagOpen(t);break}case b.TAG_NAME:{this._stateTagName(t);break}case b.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(t);break}case b.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(t);break}case b.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(t);break}case b.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(t);break}case b.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(t);break}case b.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(t);break}case b.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(t);break}case b.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(t);break}case b.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(t);break}case b.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(t);break}case b.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(t);break}case b.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(t);break}case b.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(t);break}case b.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(t);break}case b.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(t);break}case b.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(t);break}case b.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(t);break}case b.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(t);break}case b.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(t);break}case b.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(t);break}case b.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(t);break}case b.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(t);break}case b.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(t);break}case b.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(t);break}case b.ATTRIBUTE_NAME:{this._stateAttributeName(t);break}case b.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(t);break}case b.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(t);break}case b.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(t);break}case b.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(t);break}case b.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(t);break}case b.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(t);break}case b.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(t);break}case b.BOGUS_COMMENT:{this._stateBogusComment(t);break}case b.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(t);break}case b.COMMENT_START:{this._stateCommentStart(t);break}case b.COMMENT_START_DASH:{this._stateCommentStartDash(t);break}case b.COMMENT:{this._stateComment(t);break}case b.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(t);break}case b.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(t);break}case b.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(t);break}case b.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(t);break}case b.COMMENT_END_DASH:{this._stateCommentEndDash(t);break}case b.COMMENT_END:{this._stateCommentEnd(t);break}case b.COMMENT_END_BANG:{this._stateCommentEndBang(t);break}case b.DOCTYPE:{this._stateDoctype(t);break}case b.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(t);break}case b.DOCTYPE_NAME:{this._stateDoctypeName(t);break}case b.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(t);break}case b.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(t);break}case b.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(t);break}case b.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(t);break}case b.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(t);break}case b.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(t);break}case b.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(t);break}case b.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(t);break}case b.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(t);break}case b.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(t);break}case b.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(t);break}case b.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(t);break}case b.BOGUS_DOCTYPE:{this._stateBogusDoctype(t);break}case b.CDATA_SECTION:{this._stateCdataSection(t);break}case b.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(t);break}case b.CDATA_SECTION_END:{this._stateCdataSectionEnd(t);break}case b.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case b.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(t);break}default:throw new Error("Unknown state")}}_stateData(t){switch(t){case E.LESS_THAN_SIGN:{this.state=b.TAG_OPEN;break}case E.AMPERSAND:{this._startCharacterReference();break}case E.NULL:{this._err(S.unexpectedNullCharacter),this._emitCodePoint(t);break}case E.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRcdata(t){switch(t){case E.AMPERSAND:{this._startCharacterReference();break}case E.LESS_THAN_SIGN:{this.state=b.RCDATA_LESS_THAN_SIGN;break}case E.NULL:{this._err(S.unexpectedNullCharacter),this._emitChars(Ie);break}case E.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRawtext(t){switch(t){case E.LESS_THAN_SIGN:{this.state=b.RAWTEXT_LESS_THAN_SIGN;break}case E.NULL:{this._err(S.unexpectedNullCharacter),this._emitChars(Ie);break}case E.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptData(t){switch(t){case E.LESS_THAN_SIGN:{this.state=b.SCRIPT_DATA_LESS_THAN_SIGN;break}case E.NULL:{this._err(S.unexpectedNullCharacter),this._emitChars(Ie);break}case E.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_statePlaintext(t){switch(t){case E.NULL:{this._err(S.unexpectedNullCharacter),this._emitChars(Ie);break}case E.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateTagOpen(t){if(gt(t))this._createStartTagToken(),this.state=b.TAG_NAME,this._stateTagName(t);else switch(t){case E.EXCLAMATION_MARK:{this.state=b.MARKUP_DECLARATION_OPEN;break}case E.SOLIDUS:{this.state=b.END_TAG_OPEN;break}case E.QUESTION_MARK:{this._err(S.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=b.BOGUS_COMMENT,this._stateBogusComment(t);break}case E.EOF:{this._err(S.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(S.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=b.DATA,this._stateData(t)}}_stateEndTagOpen(t){if(gt(t))this._createEndTagToken(),this.state=b.TAG_NAME,this._stateTagName(t);else switch(t){case E.GREATER_THAN_SIGN:{this._err(S.missingEndTagName),this.state=b.DATA;break}case E.EOF:{this._err(S.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err(S.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=b.BOGUS_COMMENT,this._stateBogusComment(t)}}_stateTagName(t){const n=this.currentToken;switch(t){case E.SPACE:case E.LINE_FEED:case E.TABULATION:case E.FORM_FEED:{this.state=b.BEFORE_ATTRIBUTE_NAME;break}case E.SOLIDUS:{this.state=b.SELF_CLOSING_START_TAG;break}case E.GREATER_THAN_SIGN:{this.state=b.DATA,this.emitCurrentTagToken();break}case E.NULL:{this._err(S.unexpectedNullCharacter),n.tagName+=Ie;break}case E.EOF:{this._err(S.eofInTag),this._emitEOFToken();break}default:n.tagName+=String.fromCodePoint(En(t)?Xn(t):t)}}_stateRcdataLessThanSign(t){t===E.SOLIDUS?this.state=b.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=b.RCDATA,this._stateRcdata(t))}_stateRcdataEndTagOpen(t){gt(t)?(this.state=b.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(t)):(this._emitChars("</"),this.state=b.RCDATA,this._stateRcdata(t))}handleSpecialEndTag(t){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();this._createEndTagToken();const n=this.currentToken;switch(n.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case E.SPACE:case E.LINE_FEED:case E.TABULATION:case E.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=b.BEFORE_ATTRIBUTE_NAME,!1;case E.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=b.SELF_CLOSING_START_TAG,!1;case E.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=b.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=b.RCDATA,this._stateRcdata(t))}_stateRawtextLessThanSign(t){t===E.SOLIDUS?this.state=b.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=b.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagOpen(t){gt(t)?(this.state=b.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(t)):(this._emitChars("</"),this.state=b.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=b.RAWTEXT,this._stateRawtext(t))}_stateScriptDataLessThanSign(t){switch(t){case E.SOLIDUS:{this.state=b.SCRIPT_DATA_END_TAG_OPEN;break}case E.EXCLAMATION_MARK:{this.state=b.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break}default:this._emitChars("<"),this.state=b.SCRIPT_DATA,this._stateScriptData(t)}}_stateScriptDataEndTagOpen(t){gt(t)?(this.state=b.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(t)):(this._emitChars("</"),this.state=b.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=b.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStart(t){t===E.HYPHEN_MINUS?(this.state=b.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=b.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStartDash(t){t===E.HYPHEN_MINUS?(this.state=b.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=b.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscaped(t){switch(t){case E.HYPHEN_MINUS:{this.state=b.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case E.LESS_THAN_SIGN:{this.state=b.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case E.NULL:{this._err(S.unexpectedNullCharacter),this._emitChars(Ie);break}case E.EOF:{this._err(S.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataEscapedDash(t){switch(t){case E.HYPHEN_MINUS:{this.state=b.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case E.LESS_THAN_SIGN:{this.state=b.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case E.NULL:{this._err(S.unexpectedNullCharacter),this.state=b.SCRIPT_DATA_ESCAPED,this._emitChars(Ie);break}case E.EOF:{this._err(S.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=b.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedDashDash(t){switch(t){case E.HYPHEN_MINUS:{this._emitChars("-");break}case E.LESS_THAN_SIGN:{this.state=b.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case E.GREATER_THAN_SIGN:{this.state=b.SCRIPT_DATA,this._emitChars(">");break}case E.NULL:{this._err(S.unexpectedNullCharacter),this.state=b.SCRIPT_DATA_ESCAPED,this._emitChars(Ie);break}case E.EOF:{this._err(S.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=b.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedLessThanSign(t){t===E.SOLIDUS?this.state=b.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:gt(t)?(this._emitChars("<"),this.state=b.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(t)):(this._emitChars("<"),this.state=b.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagOpen(t){gt(t)?(this.state=b.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(t)):(this._emitChars("</"),this.state=b.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=b.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscapeStart(t){if(this.preprocessor.startsWith(je.SCRIPT,!1)&&Cu(this.preprocessor.peek(je.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<je.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=b.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=b.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscaped(t){switch(t){case E.HYPHEN_MINUS:{this.state=b.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case E.LESS_THAN_SIGN:{this.state=b.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case E.NULL:{this._err(S.unexpectedNullCharacter),this._emitChars(Ie);break}case E.EOF:{this._err(S.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDash(t){switch(t){case E.HYPHEN_MINUS:{this.state=b.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case E.LESS_THAN_SIGN:{this.state=b.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case E.NULL:{this._err(S.unexpectedNullCharacter),this.state=b.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Ie);break}case E.EOF:{this._err(S.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=b.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDashDash(t){switch(t){case E.HYPHEN_MINUS:{this._emitChars("-");break}case E.LESS_THAN_SIGN:{this.state=b.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case E.GREATER_THAN_SIGN:{this.state=b.SCRIPT_DATA,this._emitChars(">");break}case E.NULL:{this._err(S.unexpectedNullCharacter),this.state=b.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Ie);break}case E.EOF:{this._err(S.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=b.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedLessThanSign(t){t===E.SOLIDUS?(this.state=b.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=b.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateScriptDataDoubleEscapeEnd(t){if(this.preprocessor.startsWith(je.SCRIPT,!1)&&Cu(this.preprocessor.peek(je.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<je.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=b.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=b.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateBeforeAttributeName(t){switch(t){case E.SPACE:case E.LINE_FEED:case E.TABULATION:case E.FORM_FEED:break;case E.SOLIDUS:case E.GREATER_THAN_SIGN:case E.EOF:{this.state=b.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case E.EQUALS_SIGN:{this._err(S.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=b.ATTRIBUTE_NAME;break}default:this._createAttr(""),this.state=b.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateAttributeName(t){switch(t){case E.SPACE:case E.LINE_FEED:case E.TABULATION:case E.FORM_FEED:case E.SOLIDUS:case E.GREATER_THAN_SIGN:case E.EOF:{this._leaveAttrName(),this.state=b.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case E.EQUALS_SIGN:{this._leaveAttrName(),this.state=b.BEFORE_ATTRIBUTE_VALUE;break}case E.QUOTATION_MARK:case E.APOSTROPHE:case E.LESS_THAN_SIGN:{this._err(S.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(t);break}case E.NULL:{this._err(S.unexpectedNullCharacter),this.currentAttr.name+=Ie;break}default:this.currentAttr.name+=String.fromCodePoint(En(t)?Xn(t):t)}}_stateAfterAttributeName(t){switch(t){case E.SPACE:case E.LINE_FEED:case E.TABULATION:case E.FORM_FEED:break;case E.SOLIDUS:{this.state=b.SELF_CLOSING_START_TAG;break}case E.EQUALS_SIGN:{this.state=b.BEFORE_ATTRIBUTE_VALUE;break}case E.GREATER_THAN_SIGN:{this.state=b.DATA,this.emitCurrentTagToken();break}case E.EOF:{this._err(S.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=b.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateBeforeAttributeValue(t){switch(t){case E.SPACE:case E.LINE_FEED:case E.TABULATION:case E.FORM_FEED:break;case E.QUOTATION_MARK:{this.state=b.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case E.APOSTROPHE:{this.state=b.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case E.GREATER_THAN_SIGN:{this._err(S.missingAttributeValue),this.state=b.DATA,this.emitCurrentTagToken();break}default:this.state=b.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(t)}}_stateAttributeValueDoubleQuoted(t){switch(t){case E.QUOTATION_MARK:{this.state=b.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case E.AMPERSAND:{this._startCharacterReference();break}case E.NULL:{this._err(S.unexpectedNullCharacter),this.currentAttr.value+=Ie;break}case E.EOF:{this._err(S.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueSingleQuoted(t){switch(t){case E.APOSTROPHE:{this.state=b.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case E.AMPERSAND:{this._startCharacterReference();break}case E.NULL:{this._err(S.unexpectedNullCharacter),this.currentAttr.value+=Ie;break}case E.EOF:{this._err(S.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueUnquoted(t){switch(t){case E.SPACE:case E.LINE_FEED:case E.TABULATION:case E.FORM_FEED:{this._leaveAttrValue(),this.state=b.BEFORE_ATTRIBUTE_NAME;break}case E.AMPERSAND:{this._startCharacterReference();break}case E.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=b.DATA,this.emitCurrentTagToken();break}case E.NULL:{this._err(S.unexpectedNullCharacter),this.currentAttr.value+=Ie;break}case E.QUOTATION_MARK:case E.APOSTROPHE:case E.LESS_THAN_SIGN:case E.EQUALS_SIGN:case E.GRAVE_ACCENT:{this._err(S.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(t);break}case E.EOF:{this._err(S.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAfterAttributeValueQuoted(t){switch(t){case E.SPACE:case E.LINE_FEED:case E.TABULATION:case E.FORM_FEED:{this._leaveAttrValue(),this.state=b.BEFORE_ATTRIBUTE_NAME;break}case E.SOLIDUS:{this._leaveAttrValue(),this.state=b.SELF_CLOSING_START_TAG;break}case E.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=b.DATA,this.emitCurrentTagToken();break}case E.EOF:{this._err(S.eofInTag),this._emitEOFToken();break}default:this._err(S.missingWhitespaceBetweenAttributes),this.state=b.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateSelfClosingStartTag(t){switch(t){case E.GREATER_THAN_SIGN:{const n=this.currentToken;n.selfClosing=!0,this.state=b.DATA,this.emitCurrentTagToken();break}case E.EOF:{this._err(S.eofInTag),this._emitEOFToken();break}default:this._err(S.unexpectedSolidusInTag),this.state=b.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateBogusComment(t){const n=this.currentToken;switch(t){case E.GREATER_THAN_SIGN:{this.state=b.DATA,this.emitCurrentComment(n);break}case E.EOF:{this.emitCurrentComment(n),this._emitEOFToken();break}case E.NULL:{this._err(S.unexpectedNullCharacter),n.data+=Ie;break}default:n.data+=String.fromCodePoint(t)}}_stateMarkupDeclarationOpen(t){this._consumeSequenceIfMatch(je.DASH_DASH,!0)?(this._createCommentToken(je.DASH_DASH.length+1),this.state=b.COMMENT_START):this._consumeSequenceIfMatch(je.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(je.DOCTYPE.length+1),this.state=b.DOCTYPE):this._consumeSequenceIfMatch(je.CDATA_START,!0)?this.inForeignNode?this.state=b.CDATA_SECTION:(this._err(S.cdataInHtmlContent),this._createCommentToken(je.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=b.BOGUS_COMMENT):this._ensureHibernation()||(this._err(S.incorrectlyOpenedComment),this._createCommentToken(2),this.state=b.BOGUS_COMMENT,this._stateBogusComment(t))}_stateCommentStart(t){switch(t){case E.HYPHEN_MINUS:{this.state=b.COMMENT_START_DASH;break}case E.GREATER_THAN_SIGN:{this._err(S.abruptClosingOfEmptyComment),this.state=b.DATA;const n=this.currentToken;this.emitCurrentComment(n);break}default:this.state=b.COMMENT,this._stateComment(t)}}_stateCommentStartDash(t){const n=this.currentToken;switch(t){case E.HYPHEN_MINUS:{this.state=b.COMMENT_END;break}case E.GREATER_THAN_SIGN:{this._err(S.abruptClosingOfEmptyComment),this.state=b.DATA,this.emitCurrentComment(n);break}case E.EOF:{this._err(S.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=b.COMMENT,this._stateComment(t)}}_stateComment(t){const n=this.currentToken;switch(t){case E.HYPHEN_MINUS:{this.state=b.COMMENT_END_DASH;break}case E.LESS_THAN_SIGN:{n.data+="<",this.state=b.COMMENT_LESS_THAN_SIGN;break}case E.NULL:{this._err(S.unexpectedNullCharacter),n.data+=Ie;break}case E.EOF:{this._err(S.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+=String.fromCodePoint(t)}}_stateCommentLessThanSign(t){const n=this.currentToken;switch(t){case E.EXCLAMATION_MARK:{n.data+="!",this.state=b.COMMENT_LESS_THAN_SIGN_BANG;break}case E.LESS_THAN_SIGN:{n.data+="<";break}default:this.state=b.COMMENT,this._stateComment(t)}}_stateCommentLessThanSignBang(t){t===E.HYPHEN_MINUS?this.state=b.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=b.COMMENT,this._stateComment(t))}_stateCommentLessThanSignBangDash(t){t===E.HYPHEN_MINUS?this.state=b.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=b.COMMENT_END_DASH,this._stateCommentEndDash(t))}_stateCommentLessThanSignBangDashDash(t){t!==E.GREATER_THAN_SIGN&&t!==E.EOF&&this._err(S.nestedComment),this.state=b.COMMENT_END,this._stateCommentEnd(t)}_stateCommentEndDash(t){const n=this.currentToken;switch(t){case E.HYPHEN_MINUS:{this.state=b.COMMENT_END;break}case E.EOF:{this._err(S.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=b.COMMENT,this._stateComment(t)}}_stateCommentEnd(t){const n=this.currentToken;switch(t){case E.GREATER_THAN_SIGN:{this.state=b.DATA,this.emitCurrentComment(n);break}case E.EXCLAMATION_MARK:{this.state=b.COMMENT_END_BANG;break}case E.HYPHEN_MINUS:{n.data+="-";break}case E.EOF:{this._err(S.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--",this.state=b.COMMENT,this._stateComment(t)}}_stateCommentEndBang(t){const n=this.currentToken;switch(t){case E.HYPHEN_MINUS:{n.data+="--!",this.state=b.COMMENT_END_DASH;break}case E.GREATER_THAN_SIGN:{this._err(S.incorrectlyClosedComment),this.state=b.DATA,this.emitCurrentComment(n);break}case E.EOF:{this._err(S.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--!",this.state=b.COMMENT,this._stateComment(t)}}_stateDoctype(t){switch(t){case E.SPACE:case E.LINE_FEED:case E.TABULATION:case E.FORM_FEED:{this.state=b.BEFORE_DOCTYPE_NAME;break}case E.GREATER_THAN_SIGN:{this.state=b.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t);break}case E.EOF:{this._err(S.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(S.missingWhitespaceBeforeDoctypeName),this.state=b.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t)}}_stateBeforeDoctypeName(t){if(En(t))this._createDoctypeToken(String.fromCharCode(Xn(t))),this.state=b.DOCTYPE_NAME;else switch(t){case E.SPACE:case E.LINE_FEED:case E.TABULATION:case E.FORM_FEED:break;case E.NULL:{this._err(S.unexpectedNullCharacter),this._createDoctypeToken(Ie),this.state=b.DOCTYPE_NAME;break}case E.GREATER_THAN_SIGN:{this._err(S.missingDoctypeName),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=b.DATA;break}case E.EOF:{this._err(S.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(t)),this.state=b.DOCTYPE_NAME}}_stateDoctypeName(t){const n=this.currentToken;switch(t){case E.SPACE:case E.LINE_FEED:case E.TABULATION:case E.FORM_FEED:{this.state=b.AFTER_DOCTYPE_NAME;break}case E.GREATER_THAN_SIGN:{this.state=b.DATA,this.emitCurrentDoctype(n);break}case E.NULL:{this._err(S.unexpectedNullCharacter),n.name+=Ie;break}case E.EOF:{this._err(S.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.name+=String.fromCodePoint(En(t)?Xn(t):t)}}_stateAfterDoctypeName(t){const n=this.currentToken;switch(t){case E.SPACE:case E.LINE_FEED:case E.TABULATION:case E.FORM_FEED:break;case E.GREATER_THAN_SIGN:{this.state=b.DATA,this.emitCurrentDoctype(n);break}case E.EOF:{this._err(S.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._consumeSequenceIfMatch(je.PUBLIC,!1)?this.state=b.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(je.SYSTEM,!1)?this.state=b.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(S.invalidCharacterSequenceAfterDoctypeName),n.forceQuirks=!0,this.state=b.BOGUS_DOCTYPE,this._stateBogusDoctype(t))}}_stateAfterDoctypePublicKeyword(t){const n=this.currentToken;switch(t){case E.SPACE:case E.LINE_FEED:case E.TABULATION:case E.FORM_FEED:{this.state=b.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case E.QUOTATION_MARK:{this._err(S.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=b.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case E.APOSTROPHE:{this._err(S.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=b.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case E.GREATER_THAN_SIGN:{this._err(S.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=b.DATA,this.emitCurrentDoctype(n);break}case E.EOF:{this._err(S.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(S.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=b.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypePublicIdentifier(t){const n=this.currentToken;switch(t){case E.SPACE:case E.LINE_FEED:case E.TABULATION:case E.FORM_FEED:break;case E.QUOTATION_MARK:{n.publicId="",this.state=b.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case E.APOSTROPHE:{n.publicId="",this.state=b.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case E.GREATER_THAN_SIGN:{this._err(S.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=b.DATA,this.emitCurrentDoctype(n);break}case E.EOF:{this._err(S.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(S.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=b.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypePublicIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case E.QUOTATION_MARK:{this.state=b.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case E.NULL:{this._err(S.unexpectedNullCharacter),n.publicId+=Ie;break}case E.GREATER_THAN_SIGN:{this._err(S.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=b.DATA;break}case E.EOF:{this._err(S.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.publicId+=String.fromCodePoint(t)}}_stateDoctypePublicIdentifierSingleQuoted(t){const n=this.currentToken;switch(t){case E.APOSTROPHE:{this.state=b.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case E.NULL:{this._err(S.unexpectedNullCharacter),n.publicId+=Ie;break}case E.GREATER_THAN_SIGN:{this._err(S.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=b.DATA;break}case E.EOF:{this._err(S.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.publicId+=String.fromCodePoint(t)}}_stateAfterDoctypePublicIdentifier(t){const n=this.currentToken;switch(t){case E.SPACE:case E.LINE_FEED:case E.TABULATION:case E.FORM_FEED:{this.state=b.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case E.GREATER_THAN_SIGN:{this.state=b.DATA,this.emitCurrentDoctype(n);break}case E.QUOTATION_MARK:{this._err(S.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=b.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case E.APOSTROPHE:{this._err(S.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=b.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case E.EOF:{this._err(S.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(S.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=b.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBetweenDoctypePublicAndSystemIdentifiers(t){const n=this.currentToken;switch(t){case E.SPACE:case E.LINE_FEED:case E.TABULATION:case E.FORM_FEED:break;case E.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=b.DATA;break}case E.QUOTATION_MARK:{n.systemId="",this.state=b.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case E.APOSTROPHE:{n.systemId="",this.state=b.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case E.EOF:{this._err(S.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(S.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=b.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateAfterDoctypeSystemKeyword(t){const n=this.currentToken;switch(t){case E.SPACE:case E.LINE_FEED:case E.TABULATION:case E.FORM_FEED:{this.state=b.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case E.QUOTATION_MARK:{this._err(S.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=b.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case E.APOSTROPHE:{this._err(S.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=b.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case E.GREATER_THAN_SIGN:{this._err(S.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=b.DATA,this.emitCurrentDoctype(n);break}case E.EOF:{this._err(S.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(S.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=b.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypeSystemIdentifier(t){const n=this.currentToken;switch(t){case E.SPACE:case E.LINE_FEED:case E.TABULATION:case E.FORM_FEED:break;case E.QUOTATION_MARK:{n.systemId="",this.state=b.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case E.APOSTROPHE:{n.systemId="",this.state=b.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case E.GREATER_THAN_SIGN:{this._err(S.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=b.DATA,this.emitCurrentDoctype(n);break}case E.EOF:{this._err(S.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(S.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=b.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypeSystemIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case E.QUOTATION_MARK:{this.state=b.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case E.NULL:{this._err(S.unexpectedNullCharacter),n.systemId+=Ie;break}case E.GREATER_THAN_SIGN:{this._err(S.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=b.DATA;break}case E.EOF:{this._err(S.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.systemId+=String.fromCodePoint(t)}}_stateDoctypeSystemIdentifierSingleQuoted(t){const n=this.currentToken;switch(t){case E.APOSTROPHE:{this.state=b.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case E.NULL:{this._err(S.unexpectedNullCharacter),n.systemId+=Ie;break}case E.GREATER_THAN_SIGN:{this._err(S.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=b.DATA;break}case E.EOF:{this._err(S.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.systemId+=String.fromCodePoint(t)}}_stateAfterDoctypeSystemIdentifier(t){const n=this.currentToken;switch(t){case E.SPACE:case E.LINE_FEED:case E.TABULATION:case E.FORM_FEED:break;case E.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=b.DATA;break}case E.EOF:{this._err(S.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(S.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=b.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBogusDoctype(t){const n=this.currentToken;switch(t){case E.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=b.DATA;break}case E.NULL:{this._err(S.unexpectedNullCharacter);break}case E.EOF:{this.emitCurrentDoctype(n),this._emitEOFToken();break}}}_stateCdataSection(t){switch(t){case E.RIGHT_SQUARE_BRACKET:{this.state=b.CDATA_SECTION_BRACKET;break}case E.EOF:{this._err(S.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateCdataSectionBracket(t){t===E.RIGHT_SQUARE_BRACKET?this.state=b.CDATA_SECTION_END:(this._emitChars("]"),this.state=b.CDATA_SECTION,this._stateCdataSection(t))}_stateCdataSectionEnd(t){switch(t){case E.GREATER_THAN_SIGN:{this.state=b.DATA;break}case E.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:this._emitChars("]]"),this.state=b.CDATA_SECTION,this._stateCdataSection(t)}}_stateCharacterReference(){let t=this.entityDecoder.write(this.preprocessor.html,this.preprocessor.pos);if(t<0)if(this.preprocessor.lastChunkWritten)t=this.entityDecoder.end();else{this.active=!1,this.preprocessor.pos=this.preprocessor.html.length-1,this.consumedAfterSnapshot=0,this.preprocessor.endOfChunkHit=!0;return}t===0?(this.preprocessor.pos=this.entityStartPos,this._flushCodePointConsumedAsCharacterReference(E.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&Su(this.preprocessor.peek(1))?b.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(t){Su(t)?this._flushCodePointConsumedAsCharacterReference(t):(t===E.SEMICOLON&&this._err(S.unknownNamedCharacterReference),this.state=this.returnState,this._callState(t))}}const Mo=new Set([s.DD,s.DT,s.LI,s.OPTGROUP,s.OPTION,s.P,s.RB,s.RP,s.RT,s.RTC]),Iu=new Set([...Mo,s.CAPTION,s.COLGROUP,s.TBODY,s.TD,s.TFOOT,s.TH,s.THEAD,s.TR]),ir=new Set([s.APPLET,s.CAPTION,s.HTML,s.MARQUEE,s.OBJECT,s.TABLE,s.TD,s.TEMPLATE,s.TH]),Fp=new Set([...ir,s.OL,s.UL]),Hp=new Set([...ir,s.BUTTON]),Nu=new Set([s.ANNOTATION_XML,s.MI,s.MN,s.MO,s.MS,s.MTEXT]),Ou=new Set([s.DESC,s.FOREIGN_OBJECT,s.TITLE]),Up=new Set([s.TR,s.TEMPLATE,s.HTML]),jp=new Set([s.TBODY,s.TFOOT,s.THEAD,s.TEMPLATE,s.HTML]),$p=new Set([s.TABLE,s.TEMPLATE,s.HTML]),Yp=new Set([s.TD,s.TH]);class Gp{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(t,n,r){this.treeAdapter=n,this.handler=r,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=s.UNKNOWN,this.current=t}_indexOf(t){return this.items.lastIndexOf(t,this.stackTop)}_isInTemplate(){return this.currentTagId===s.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===D.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(t,n){this.stackTop++,this.items[this.stackTop]=t,this.current=t,this.tagIDs[this.stackTop]=n,this.currentTagId=n,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(t,n,!0)}pop(){const t=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!0)}replace(t,n){const r=this._indexOf(t);this.items[r]=n,r===this.stackTop&&(this.current=n)}insertAfter(t,n,r){const a=this._indexOf(t)+1;this.items.splice(a,0,n),this.tagIDs.splice(a,0,r),this.stackTop++,a===this.stackTop&&this._updateCurrentElement(),this.handler.onItemPush(this.current,this.currentTagId,a===this.stackTop)}popUntilTagNamePopped(t){let n=this.stackTop+1;do n=this.tagIDs.lastIndexOf(t,n-1);while(n>0&&this.treeAdapter.getNamespaceURI(this.items[n])!==D.HTML);this.shortenToLength(n<0?0:n)}shortenToLength(t){for(;this.stackTop>=t;){const n=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(n,this.stackTop<t)}}popUntilElementPopped(t){const n=this._indexOf(t);this.shortenToLength(n<0?0:n)}popUntilPopped(t,n){const r=this._indexOfTagNames(t,n);this.shortenToLength(r<0?0:r)}popUntilNumberedHeaderPopped(){this.popUntilPopped(La,D.HTML)}popUntilTableCellPopped(){this.popUntilPopped(Yp,D.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(t,n){for(let r=this.stackTop;r>=0;r--)if(t.has(this.tagIDs[r])&&this.treeAdapter.getNamespaceURI(this.items[r])===n)return r;return-1}clearBackTo(t,n){const r=this._indexOfTagNames(t,n);this.shortenToLength(r+1)}clearBackToTableContext(){this.clearBackTo($p,D.HTML)}clearBackToTableBodyContext(){this.clearBackTo(jp,D.HTML)}clearBackToTableRowContext(){this.clearBackTo(Up,D.HTML)}remove(t){const n=this._indexOf(t);n>=0&&(n===this.stackTop?this.pop():(this.items.splice(n,1),this.tagIDs.splice(n,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===s.BODY?this.items[1]:null}contains(t){return this._indexOf(t)>-1}getCommonAncestor(t){const n=this._indexOf(t)-1;return n>=0?this.items[n]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===s.HTML}hasInDynamicScope(t,n){for(let r=this.stackTop;r>=0;r--){const a=this.tagIDs[r];switch(this.treeAdapter.getNamespaceURI(this.items[r])){case D.HTML:{if(a===t)return!0;if(n.has(a))return!1;break}case D.SVG:{if(Ou.has(a))return!1;break}case D.MATHML:{if(Nu.has(a))return!1;break}}}return!0}hasInScope(t){return this.hasInDynamicScope(t,ir)}hasInListItemScope(t){return this.hasInDynamicScope(t,Fp)}hasInButtonScope(t){return this.hasInDynamicScope(t,Hp)}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){const n=this.tagIDs[t];switch(this.treeAdapter.getNamespaceURI(this.items[t])){case D.HTML:{if(La.has(n))return!0;if(ir.has(n))return!1;break}case D.SVG:{if(Ou.has(n))return!1;break}case D.MATHML:{if(Nu.has(n))return!1;break}}}return!0}hasInTableScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===D.HTML)switch(this.tagIDs[n]){case t:return!0;case s.TABLE:case s.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===D.HTML)switch(this.tagIDs[t]){case s.TBODY:case s.THEAD:case s.TFOOT:return!0;case s.TABLE:case s.HTML:return!1}return!0}hasInSelectScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===D.HTML)switch(this.tagIDs[n]){case t:return!0;case s.OPTION:case s.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;Mo.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;Iu.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==t&&Iu.has(this.currentTagId);)this.pop()}}const Qr=3;var ot;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(ot||(ot={}));const Lu={type:ot.Marker};class zp{constructor(t){this.treeAdapter=t,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(t,n){const r=[],a=n.length,i=this.treeAdapter.getTagName(t),u=this.treeAdapter.getNamespaceURI(t);for(let o=0;o<this.entries.length;o++){const l=this.entries[o];if(l.type===ot.Marker)break;const{element:c}=l;if(this.treeAdapter.getTagName(c)===i&&this.treeAdapter.getNamespaceURI(c)===u){const f=this.treeAdapter.getAttrList(c);f.length===a&&r.push({idx:o,attrs:f})}}return r}_ensureNoahArkCondition(t){if(this.entries.length<Qr)return;const n=this.treeAdapter.getAttrList(t),r=this._getNoahArkConditionCandidates(t,n);if(r.length<Qr)return;const a=new Map(n.map(u=>[u.name,u.value]));let i=0;for(let u=0;u<r.length;u++){const o=r[u];o.attrs.every(l=>a.get(l.name)===l.value)&&(i+=1,i>=Qr&&this.entries.splice(o.idx,1))}}insertMarker(){this.entries.unshift(Lu)}pushElement(t,n){this._ensureNoahArkCondition(t),this.entries.unshift({type:ot.Element,element:t,token:n})}insertElementAfterBookmark(t,n){const r=this.entries.indexOf(this.bookmark);this.entries.splice(r,0,{type:ot.Element,element:t,token:n})}removeEntry(t){const n=this.entries.indexOf(t);n>=0&&this.entries.splice(n,1)}clearToLastMarker(){const t=this.entries.indexOf(Lu);t>=0?this.entries.splice(0,t+1):this.entries.length=0}getElementEntryInScopeWithTagName(t){const n=this.entries.find(r=>r.type===ot.Marker||this.treeAdapter.getTagName(r.element)===t);return n&&n.type===ot.Element?n:null}getElementEntry(t){return this.entries.find(n=>n.type===ot.Element&&n.element===t)}}const Tt={createDocument(){return{nodeName:"#document",mode:Ke.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(e,t,n){return{nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:[],parentNode:null}},createCommentNode(e){return{nodeName:"#comment",data:e,parentNode:null}},createTextNode(e){return{nodeName:"#text",value:e,parentNode:null}},appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,n){const r=e.childNodes.indexOf(n);e.childNodes.splice(r,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent(e){return e.content},setDocumentType(e,t,n,r){const a=e.childNodes.find(i=>i.nodeName==="#documentType");if(a)a.name=t,a.publicId=n,a.systemId=r;else{const i={nodeName:"#documentType",name:t,publicId:n,systemId:r,parentNode:null};Tt.appendChild(e,i)}},setDocumentMode(e,t){e.mode=t},getDocumentMode(e){return e.mode},detachNode(e){if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){const n=e.childNodes[e.childNodes.length-1];if(Tt.isTextNode(n)){n.value+=t;return}}Tt.appendChild(e,Tt.createTextNode(t))},insertTextBefore(e,t,n){const r=e.childNodes[e.childNodes.indexOf(n)-1];r&&Tt.isTextNode(r)?r.value+=t:Tt.insertBefore(e,Tt.createTextNode(t),n)},adoptAttributes(e,t){const n=new Set(e.attrs.map(r=>r.name));for(let r=0;r<t.length;r++)n.has(t[r].name)||e.attrs.push(t[r])},getFirstChild(e){return e.childNodes[0]},getChildNodes(e){return e.childNodes},getParentNode(e){return e.parentNode},getAttrList(e){return e.attrs},getTagName(e){return e.tagName},getNamespaceURI(e){return e.namespaceURI},getTextNodeContent(e){return e.value},getCommentNodeContent(e){return e.data},getDocumentTypeNodeName(e){return e.name},getDocumentTypeNodePublicId(e){return e.publicId},getDocumentTypeNodeSystemId(e){return e.systemId},isTextNode(e){return e.nodeName==="#text"},isCommentNode(e){return e.nodeName==="#comment"},isDocumentTypeNode(e){return e.nodeName==="#documentType"},isElementNode(e){return Object.prototype.hasOwnProperty.call(e,"tagName")},setNodeSourceCodeLocation(e,t){e.sourceCodeLocation=t},getNodeSourceCodeLocation(e){return e.sourceCodeLocation},updateNodeSourceCodeLocation(e,t){e.sourceCodeLocation={...e.sourceCodeLocation,...t}}},Bo="html",Vp="about:legacy-compat",qp="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",Fo=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],Wp=[...Fo,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],Xp=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),Ho=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],Qp=[...Ho,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function Ru(e,t){return t.some(n=>e.startsWith(n))}function Kp(e){return e.name===Bo&&e.publicId===null&&(e.systemId===null||e.systemId===Vp)}function Zp(e){if(e.name!==Bo)return Ke.QUIRKS;const{systemId:t}=e;if(t&&t.toLowerCase()===qp)return Ke.QUIRKS;let{publicId:n}=e;if(n!==null){if(n=n.toLowerCase(),Xp.has(n))return Ke.QUIRKS;let r=t===null?Wp:Fo;if(Ru(n,r))return Ke.QUIRKS;if(r=t===null?Ho:Qp,Ru(n,r))return Ke.LIMITED_QUIRKS}return Ke.NO_QUIRKS}const vu={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},Jp="definitionurl",eE="definitionURL",tE=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(e=>[e.toLowerCase(),e])),nE=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:D.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:D.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:D.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:D.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:D.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:D.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:D.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:D.XML}],["xml:space",{prefix:"xml",name:"space",namespace:D.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:D.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:D.XMLNS}]]),rE=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(e=>[e.toLowerCase(),e])),aE=new Set([s.B,s.BIG,s.BLOCKQUOTE,s.BODY,s.BR,s.CENTER,s.CODE,s.DD,s.DIV,s.DL,s.DT,s.EM,s.EMBED,s.H1,s.H2,s.H3,s.H4,s.H5,s.H6,s.HEAD,s.HR,s.I,s.IMG,s.LI,s.LISTING,s.MENU,s.META,s.NOBR,s.OL,s.P,s.PRE,s.RUBY,s.S,s.SMALL,s.SPAN,s.STRONG,s.STRIKE,s.SUB,s.SUP,s.TABLE,s.TT,s.U,s.UL,s.VAR]);function iE(e){const t=e.tagID;return t===s.FONT&&e.attrs.some(({name:r})=>r===kt.COLOR||r===kt.SIZE||r===kt.FACE)||aE.has(t)}function Uo(e){for(let t=0;t<e.attrs.length;t++)if(e.attrs[t].name===Jp){e.attrs[t].name=eE;break}}function jo(e){for(let t=0;t<e.attrs.length;t++){const n=tE.get(e.attrs[t].name);n!=null&&(e.attrs[t].name=n)}}function ii(e){for(let t=0;t<e.attrs.length;t++){const n=nE.get(e.attrs[t].name);n&&(e.attrs[t].prefix=n.prefix,e.attrs[t].name=n.name,e.attrs[t].namespace=n.namespace)}}function uE(e){const t=rE.get(e.tagName);t!=null&&(e.tagName=t,e.tagID=sn(e.tagName))}function sE(e,t){return t===D.MATHML&&(e===s.MI||e===s.MO||e===s.MN||e===s.MS||e===s.MTEXT)}function oE(e,t,n){if(t===D.MATHML&&e===s.ANNOTATION_XML){for(let r=0;r<n.length;r++)if(n[r].name===kt.ENCODING){const a=n[r].value.toLowerCase();return a===vu.TEXT_HTML||a===vu.APPLICATION_XML}}return t===D.SVG&&(e===s.FOREIGN_OBJECT||e===s.DESC||e===s.TITLE)}function lE(e,t,n,r){return(!r||r===D.HTML)&&oE(e,t,n)||(!r||r===D.MATHML)&&sE(e,t)}const cE="hidden",fE=8,dE=3;var T;(function(e){e[e.INITIAL=0]="INITIAL",e[e.BEFORE_HTML=1]="BEFORE_HTML",e[e.BEFORE_HEAD=2]="BEFORE_HEAD",e[e.IN_HEAD=3]="IN_HEAD",e[e.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",e[e.AFTER_HEAD=5]="AFTER_HEAD",e[e.IN_BODY=6]="IN_BODY",e[e.TEXT=7]="TEXT",e[e.IN_TABLE=8]="IN_TABLE",e[e.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",e[e.IN_CAPTION=10]="IN_CAPTION",e[e.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",e[e.IN_TABLE_BODY=12]="IN_TABLE_BODY",e[e.IN_ROW=13]="IN_ROW",e[e.IN_CELL=14]="IN_CELL",e[e.IN_SELECT=15]="IN_SELECT",e[e.IN_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",e[e.IN_TEMPLATE=17]="IN_TEMPLATE",e[e.AFTER_BODY=18]="AFTER_BODY",e[e.IN_FRAMESET=19]="IN_FRAMESET",e[e.AFTER_FRAMESET=20]="AFTER_FRAMESET",e[e.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",e[e.AFTER_AFTER_FRAMESET=22]="AFTER_AFTER_FRAMESET"})(T||(T={}));const hE={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},$o=new Set([s.TABLE,s.TBODY,s.TFOOT,s.THEAD,s.TR]),Pu={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:Tt,onParseError:null};class Du{constructor(t,n,r=null,a=null){this.fragmentContext=r,this.scriptHandler=a,this.currentToken=null,this.stopped=!1,this.insertionMode=T.INITIAL,this.originalInsertionMode=T.INITIAL,this.headElement=null,this.formElement=null,this.currentNotInHTML=!1,this.tmplInsertionModeStack=[],this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1,this.options={...Pu,...t},this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=n??this.treeAdapter.createDocument(),this.tokenizer=new Bp(this.options,this),this.activeFormattingElements=new zp(this.treeAdapter),this.fragmentContextID=r?sn(this.treeAdapter.getTagName(r)):s.UNKNOWN,this._setContextModes(r??this.document,this.fragmentContextID),this.openElements=new Gp(this.document,this.treeAdapter,this)}static parse(t,n){const r=new this(n);return r.tokenizer.write(t,!0),r.document}static getFragmentParser(t,n){const r={...Pu,...n};t??(t=r.treeAdapter.createElement(y.TEMPLATE,D.HTML,[]));const a=r.treeAdapter.createElement("documentmock",D.HTML,[]),i=new this(r,a,t);return i.fragmentContextID===s.TEMPLATE&&i.tmplInsertionModeStack.unshift(T.IN_TEMPLATE),i._initTokenizerForFragmentParsing(),i._insertFakeRootElement(),i._resetInsertionMode(),i._findFormInFragmentContext(),i}getFragment(){const t=this.treeAdapter.getFirstChild(this.document),n=this.treeAdapter.createDocumentFragment();return this._adoptNodes(t,n),n}_err(t,n,r){var a;if(!this.onParseError)return;const i=(a=t.location)!==null&&a!==void 0?a:hE,u={code:n,startLine:i.startLine,startCol:i.startCol,startOffset:i.startOffset,endLine:r?i.startLine:i.endLine,endCol:r?i.startCol:i.endCol,endOffset:r?i.startOffset:i.endOffset};this.onParseError(u)}onItemPush(t,n,r){var a,i;(i=(a=this.treeAdapter).onItemPush)===null||i===void 0||i.call(a,t),r&&this.openElements.stackTop>0&&this._setContextModes(t,n)}onItemPop(t,n){var r,a;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(t,this.currentToken),(a=(r=this.treeAdapter).onItemPop)===null||a===void 0||a.call(r,t,this.openElements.current),n){let i,u;this.openElements.stackTop===0&&this.fragmentContext?(i=this.fragmentContext,u=this.fragmentContextID):{current:i,currentTagId:u}=this.openElements,this._setContextModes(i,u)}}_setContextModes(t,n){const r=t===this.document||this.treeAdapter.getNamespaceURI(t)===D.HTML;this.currentNotInHTML=!r,this.tokenizer.inForeignNode=!r&&!this._isIntegrationPoint(n,t)}_switchToTextParsing(t,n){this._insertElement(t,D.HTML),this.tokenizer.state=n,this.originalInsertionMode=this.insertionMode,this.insertionMode=T.TEXT}switchToPlaintextParsing(){this.insertionMode=T.TEXT,this.originalInsertionMode=T.IN_BODY,this.tokenizer.state=ve.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let t=this.fragmentContext;for(;t;){if(this.treeAdapter.getTagName(t)===y.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==D.HTML))switch(this.fragmentContextID){case s.TITLE:case s.TEXTAREA:{this.tokenizer.state=ve.RCDATA;break}case s.STYLE:case s.XMP:case s.IFRAME:case s.NOEMBED:case s.NOFRAMES:case s.NOSCRIPT:{this.tokenizer.state=ve.RAWTEXT;break}case s.SCRIPT:{this.tokenizer.state=ve.SCRIPT_DATA;break}case s.PLAINTEXT:{this.tokenizer.state=ve.PLAINTEXT;break}}}_setDocumentType(t){const n=t.name||"",r=t.publicId||"",a=t.systemId||"";if(this.treeAdapter.setDocumentType(this.document,n,r,a),t.location){const u=this.treeAdapter.getChildNodes(this.document).find(o=>this.treeAdapter.isDocumentTypeNode(o));u&&this.treeAdapter.setNodeSourceCodeLocation(u,t.location)}}_attachElementToTree(t,n){if(this.options.sourceCodeLocationInfo){const r=n&&{...n,startTag:n};this.treeAdapter.setNodeSourceCodeLocation(t,r)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(t);else{const r=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(r,t)}}_appendElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location)}_insertElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location),this.openElements.push(r,t.tagID)}_insertFakeElement(t,n){const r=this.treeAdapter.createElement(t,D.HTML,[]);this._attachElementToTree(r,null),this.openElements.push(r,n)}_insertTemplate(t){const n=this.treeAdapter.createElement(t.tagName,D.HTML,t.attrs),r=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(n,r),this._attachElementToTree(n,t.location),this.openElements.push(n,t.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,null)}_insertFakeRootElement(){const t=this.treeAdapter.createElement(y.HTML,D.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(t,null),this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t,s.HTML)}_appendCommentNode(t,n){const r=this.treeAdapter.createCommentNode(t.data);this.treeAdapter.appendChild(n,r),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,t.location)}_insertCharacters(t){let n,r;if(this._shouldFosterParentOnInsertion()?({parent:n,beforeElement:r}=this._findFosterParentingLocation(),r?this.treeAdapter.insertTextBefore(n,t.chars,r):this.treeAdapter.insertText(n,t.chars)):(n=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(n,t.chars)),!t.location)return;const a=this.treeAdapter.getChildNodes(n),i=r?a.lastIndexOf(r):a.length,u=a[i-1];if(this.treeAdapter.getNodeSourceCodeLocation(u)){const{endLine:l,endCol:c,endOffset:f}=t.location;this.treeAdapter.updateNodeSourceCodeLocation(u,{endLine:l,endCol:c,endOffset:f})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(u,t.location)}_adoptNodes(t,n){for(let r=this.treeAdapter.getFirstChild(t);r;r=this.treeAdapter.getFirstChild(t))this.treeAdapter.detachNode(r),this.treeAdapter.appendChild(n,r)}_setEndLocation(t,n){if(this.treeAdapter.getNodeSourceCodeLocation(t)&&n.location){const r=n.location,a=this.treeAdapter.getTagName(t),i=n.type===fe.END_TAG&&a===n.tagName?{endTag:{...r},endLine:r.endLine,endCol:r.endCol,endOffset:r.endOffset}:{endLine:r.startLine,endCol:r.startCol,endOffset:r.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(t,i)}}shouldProcessStartTagTokenInForeignContent(t){if(!this.currentNotInHTML)return!1;let n,r;return this.openElements.stackTop===0&&this.fragmentContext?(n=this.fragmentContext,r=this.fragmentContextID):{current:n,currentTagId:r}=this.openElements,t.tagID===s.SVG&&this.treeAdapter.getTagName(n)===y.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(n)===D.MATHML?!1:this.tokenizer.inForeignNode||(t.tagID===s.MGLYPH||t.tagID===s.MALIGNMARK)&&!this._isIntegrationPoint(r,n,D.HTML)}_processToken(t){switch(t.type){case fe.CHARACTER:{this.onCharacter(t);break}case fe.NULL_CHARACTER:{this.onNullCharacter(t);break}case fe.COMMENT:{this.onComment(t);break}case fe.DOCTYPE:{this.onDoctype(t);break}case fe.START_TAG:{this._processStartTag(t);break}case fe.END_TAG:{this.onEndTag(t);break}case fe.EOF:{this.onEof(t);break}case fe.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(t);break}}}_isIntegrationPoint(t,n,r){const a=this.treeAdapter.getNamespaceURI(n),i=this.treeAdapter.getAttrList(n);return lE(t,a,i,r)}_reconstructActiveFormattingElements(){const t=this.activeFormattingElements.entries.length;if(t){const n=this.activeFormattingElements.entries.findIndex(a=>a.type===ot.Marker||this.openElements.contains(a.element)),r=n<0?t-1:n-1;for(let a=r;a>=0;a--){const i=this.activeFormattingElements.entries[a];this._insertElement(i.token,this.treeAdapter.getNamespaceURI(i.element)),i.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=T.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(s.P),this.openElements.popUntilTagNamePopped(s.P)}_resetInsertionMode(){for(let t=this.openElements.stackTop;t>=0;t--)switch(t===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[t]){case s.TR:{this.insertionMode=T.IN_ROW;return}case s.TBODY:case s.THEAD:case s.TFOOT:{this.insertionMode=T.IN_TABLE_BODY;return}case s.CAPTION:{this.insertionMode=T.IN_CAPTION;return}case s.COLGROUP:{this.insertionMode=T.IN_COLUMN_GROUP;return}case s.TABLE:{this.insertionMode=T.IN_TABLE;return}case s.BODY:{this.insertionMode=T.IN_BODY;return}case s.FRAMESET:{this.insertionMode=T.IN_FRAMESET;return}case s.SELECT:{this._resetInsertionModeForSelect(t);return}case s.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case s.HTML:{this.insertionMode=this.headElement?T.AFTER_HEAD:T.BEFORE_HEAD;return}case s.TD:case s.TH:{if(t>0){this.insertionMode=T.IN_CELL;return}break}case s.HEAD:{if(t>0){this.insertionMode=T.IN_HEAD;return}break}}this.insertionMode=T.IN_BODY}_resetInsertionModeForSelect(t){if(t>0)for(let n=t-1;n>0;n--){const r=this.openElements.tagIDs[n];if(r===s.TEMPLATE)break;if(r===s.TABLE){this.insertionMode=T.IN_SELECT_IN_TABLE;return}}this.insertionMode=T.IN_SELECT}_isElementCausesFosterParenting(t){return $o.has(t)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let t=this.openElements.stackTop;t>=0;t--){const n=this.openElements.items[t];switch(this.openElements.tagIDs[t]){case s.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(n)===D.HTML)return{parent:this.treeAdapter.getTemplateContent(n),beforeElement:null};break}case s.TABLE:{const r=this.treeAdapter.getParentNode(n);return r?{parent:r,beforeElement:n}:{parent:this.openElements.items[t-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(t){const n=this._findFosterParentingLocation();n.beforeElement?this.treeAdapter.insertBefore(n.parent,t,n.beforeElement):this.treeAdapter.appendChild(n.parent,t)}_isSpecialElement(t,n){const r=this.treeAdapter.getNamespaceURI(t);return Dp[r].has(n)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){Y1(this,t);return}switch(this.insertionMode){case T.INITIAL:{hn(this,t);break}case T.BEFORE_HTML:{_n(this,t);break}case T.BEFORE_HEAD:{yn(this,t);break}case T.IN_HEAD:{xn(this,t);break}case T.IN_HEAD_NO_SCRIPT:{Sn(this,t);break}case T.AFTER_HEAD:{Cn(this,t);break}case T.IN_BODY:case T.IN_CAPTION:case T.IN_CELL:case T.IN_TEMPLATE:{Go(this,t);break}case T.TEXT:case T.IN_SELECT:case T.IN_SELECT_IN_TABLE:{this._insertCharacters(t);break}case T.IN_TABLE:case T.IN_TABLE_BODY:case T.IN_ROW:{Kr(this,t);break}case T.IN_TABLE_TEXT:{Qo(this,t);break}case T.IN_COLUMN_GROUP:{ur(this,t);break}case T.AFTER_BODY:{sr(this,t);break}case T.AFTER_AFTER_BODY:{nr(this,t);break}}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){$1(this,t);return}switch(this.insertionMode){case T.INITIAL:{hn(this,t);break}case T.BEFORE_HTML:{_n(this,t);break}case T.BEFORE_HEAD:{yn(this,t);break}case T.IN_HEAD:{xn(this,t);break}case T.IN_HEAD_NO_SCRIPT:{Sn(this,t);break}case T.AFTER_HEAD:{Cn(this,t);break}case T.TEXT:{this._insertCharacters(t);break}case T.IN_TABLE:case T.IN_TABLE_BODY:case T.IN_ROW:{Kr(this,t);break}case T.IN_COLUMN_GROUP:{ur(this,t);break}case T.AFTER_BODY:{sr(this,t);break}case T.AFTER_AFTER_BODY:{nr(this,t);break}}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML){Ra(this,t);return}switch(this.insertionMode){case T.INITIAL:case T.BEFORE_HTML:case T.BEFORE_HEAD:case T.IN_HEAD:case T.IN_HEAD_NO_SCRIPT:case T.AFTER_HEAD:case T.IN_BODY:case T.IN_TABLE:case T.IN_CAPTION:case T.IN_COLUMN_GROUP:case T.IN_TABLE_BODY:case T.IN_ROW:case T.IN_CELL:case T.IN_SELECT:case T.IN_SELECT_IN_TABLE:case T.IN_TEMPLATE:case T.IN_FRAMESET:case T.AFTER_FRAMESET:{Ra(this,t);break}case T.IN_TABLE_TEXT:{mn(this,t);break}case T.AFTER_BODY:{AE(this,t);break}case T.AFTER_AFTER_BODY:case T.AFTER_AFTER_FRAMESET:{_E(this,t);break}}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case T.INITIAL:{yE(this,t);break}case T.BEFORE_HEAD:case T.IN_HEAD:case T.IN_HEAD_NO_SCRIPT:case T.AFTER_HEAD:{this._err(t,S.misplacedDoctype);break}case T.IN_TABLE_TEXT:{mn(this,t);break}}}onStartTag(t){this.skipNextNewLine=!1,this.currentToken=t,this._processStartTag(t),t.selfClosing&&!t.ackSelfClosing&&this._err(t,S.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(t){this.shouldProcessStartTagTokenInForeignContent(t)?G1(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case T.INITIAL:{hn(this,t);break}case T.BEFORE_HTML:{xE(this,t);break}case T.BEFORE_HEAD:{CE(this,t);break}case T.IN_HEAD:{rt(this,t);break}case T.IN_HEAD_NO_SCRIPT:{OE(this,t);break}case T.AFTER_HEAD:{RE(this,t);break}case T.IN_BODY:{Fe(this,t);break}case T.IN_TABLE:{tn(this,t);break}case T.IN_TABLE_TEXT:{mn(this,t);break}case T.IN_CAPTION:{I1(this,t);break}case T.IN_COLUMN_GROUP:{oi(this,t);break}case T.IN_TABLE_BODY:{Ir(this,t);break}case T.IN_ROW:{Nr(this,t);break}case T.IN_CELL:{L1(this,t);break}case T.IN_SELECT:{Jo(this,t);break}case T.IN_SELECT_IN_TABLE:{v1(this,t);break}case T.IN_TEMPLATE:{D1(this,t);break}case T.AFTER_BODY:{w1(this,t);break}case T.IN_FRAMESET:{M1(this,t);break}case T.AFTER_FRAMESET:{F1(this,t);break}case T.AFTER_AFTER_BODY:{U1(this,t);break}case T.AFTER_AFTER_FRAMESET:{j1(this,t);break}}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?z1(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case T.INITIAL:{hn(this,t);break}case T.BEFORE_HTML:{SE(this,t);break}case T.BEFORE_HEAD:{IE(this,t);break}case T.IN_HEAD:{NE(this,t);break}case T.IN_HEAD_NO_SCRIPT:{LE(this,t);break}case T.AFTER_HEAD:{vE(this,t);break}case T.IN_BODY:{Cr(this,t);break}case T.TEXT:{E1(this,t);break}case T.IN_TABLE:{Rn(this,t);break}case T.IN_TABLE_TEXT:{mn(this,t);break}case T.IN_CAPTION:{N1(this,t);break}case T.IN_COLUMN_GROUP:{O1(this,t);break}case T.IN_TABLE_BODY:{va(this,t);break}case T.IN_ROW:{Zo(this,t);break}case T.IN_CELL:{R1(this,t);break}case T.IN_SELECT:{el(this,t);break}case T.IN_SELECT_IN_TABLE:{P1(this,t);break}case T.IN_TEMPLATE:{k1(this,t);break}case T.AFTER_BODY:{nl(this,t);break}case T.IN_FRAMESET:{B1(this,t);break}case T.AFTER_FRAMESET:{H1(this,t);break}case T.AFTER_AFTER_BODY:{nr(this,t);break}}}onEof(t){switch(this.insertionMode){case T.INITIAL:{hn(this,t);break}case T.BEFORE_HTML:{_n(this,t);break}case T.BEFORE_HEAD:{yn(this,t);break}case T.IN_HEAD:{xn(this,t);break}case T.IN_HEAD_NO_SCRIPT:{Sn(this,t);break}case T.AFTER_HEAD:{Cn(this,t);break}case T.IN_BODY:case T.IN_TABLE:case T.IN_CAPTION:case T.IN_COLUMN_GROUP:case T.IN_TABLE_BODY:case T.IN_ROW:case T.IN_CELL:case T.IN_SELECT:case T.IN_SELECT_IN_TABLE:{Wo(this,t);break}case T.TEXT:{b1(this,t);break}case T.IN_TABLE_TEXT:{mn(this,t);break}case T.IN_TEMPLATE:{tl(this,t);break}case T.AFTER_BODY:case T.IN_FRAMESET:case T.AFTER_FRAMESET:case T.AFTER_AFTER_BODY:case T.AFTER_AFTER_FRAMESET:{si(this,t);break}}}onWhitespaceCharacter(t){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.chars.charCodeAt(0)===E.LINE_FEED)){if(t.chars.length===1)return;t.chars=t.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(t);return}switch(this.insertionMode){case T.IN_HEAD:case T.IN_HEAD_NO_SCRIPT:case T.AFTER_HEAD:case T.TEXT:case T.IN_COLUMN_GROUP:case T.IN_SELECT:case T.IN_SELECT_IN_TABLE:case T.IN_FRAMESET:case T.AFTER_FRAMESET:{this._insertCharacters(t);break}case T.IN_BODY:case T.IN_CAPTION:case T.IN_CELL:case T.IN_TEMPLATE:case T.AFTER_BODY:case T.AFTER_AFTER_BODY:case T.AFTER_AFTER_FRAMESET:{Yo(this,t);break}case T.IN_TABLE:case T.IN_TABLE_BODY:case T.IN_ROW:{Kr(this,t);break}case T.IN_TABLE_TEXT:{Xo(this,t);break}}}}function mE(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(t.tagID)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):qo(e,t),n}function pE(e,t){let n=null,r=e.openElements.stackTop;for(;r>=0;r--){const a=e.openElements.items[r];if(a===t.element)break;e._isSpecialElement(a,e.openElements.tagIDs[r])&&(n=a)}return n||(e.openElements.shortenToLength(r<0?0:r),e.activeFormattingElements.removeEntry(t)),n}function EE(e,t,n){let r=t,a=e.openElements.getCommonAncestor(t);for(let i=0,u=a;u!==n;i++,u=a){a=e.openElements.getCommonAncestor(u);const o=e.activeFormattingElements.getElementEntry(u),l=o&&i>=dE;!o||l?(l&&e.activeFormattingElements.removeEntry(o),e.openElements.remove(u)):(u=bE(e,o),r===t&&(e.activeFormattingElements.bookmark=o),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(u,r),r=u)}return r}function bE(e,t){const n=e.treeAdapter.getNamespaceURI(t.element),r=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,r),t.element=r,r}function gE(e,t,n){const r=e.treeAdapter.getTagName(t),a=sn(r);if(e._isElementCausesFosterParenting(a))e._fosterParentElement(n);else{const i=e.treeAdapter.getNamespaceURI(t);a===s.TEMPLATE&&i===D.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function TE(e,t,n){const r=e.treeAdapter.getNamespaceURI(n.element),{token:a}=n,i=e.treeAdapter.createElement(a.tagName,r,a.attrs);e._adoptNodes(t,i),e.treeAdapter.appendChild(t,i),e.activeFormattingElements.insertElementAfterBookmark(i,a),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,i,a.tagID)}function ui(e,t){for(let n=0;n<fE;n++){const r=mE(e,t);if(!r)break;const a=pE(e,r);if(!a)break;e.activeFormattingElements.bookmark=r;const i=EE(e,a,r.element),u=e.openElements.getCommonAncestor(r.element);e.treeAdapter.detachNode(i),u&&gE(e,u,i),TE(e,a,r)}}function Ra(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function AE(e,t){e._appendCommentNode(t,e.openElements.items[0])}function _E(e,t){e._appendCommentNode(t,e.document)}function si(e,t){if(e.stopped=!0,t.location){const n=e.fragmentContext?0:2;for(let r=e.openElements.stackTop;r>=n;r--)e._setEndLocation(e.openElements.items[r],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){const r=e.openElements.items[0],a=e.treeAdapter.getNodeSourceCodeLocation(r);if(a&&!a.endTag&&(e._setEndLocation(r,t),e.openElements.stackTop>=1)){const i=e.openElements.items[1],u=e.treeAdapter.getNodeSourceCodeLocation(i);u&&!u.endTag&&e._setEndLocation(i,t)}}}}function yE(e,t){e._setDocumentType(t);const n=t.forceQuirks?Ke.QUIRKS:Zp(t);Kp(t)||e._err(t,S.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=T.BEFORE_HTML}function hn(e,t){e._err(t,S.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,Ke.QUIRKS),e.insertionMode=T.BEFORE_HTML,e._processToken(t)}function xE(e,t){t.tagID===s.HTML?(e._insertElement(t,D.HTML),e.insertionMode=T.BEFORE_HEAD):_n(e,t)}function SE(e,t){const n=t.tagID;(n===s.HTML||n===s.HEAD||n===s.BODY||n===s.BR)&&_n(e,t)}function _n(e,t){e._insertFakeRootElement(),e.insertionMode=T.BEFORE_HEAD,e._processToken(t)}function CE(e,t){switch(t.tagID){case s.HTML:{Fe(e,t);break}case s.HEAD:{e._insertElement(t,D.HTML),e.headElement=e.openElements.current,e.insertionMode=T.IN_HEAD;break}default:yn(e,t)}}function IE(e,t){const n=t.tagID;n===s.HEAD||n===s.BODY||n===s.HTML||n===s.BR?yn(e,t):e._err(t,S.endTagWithoutMatchingOpenElement)}function yn(e,t){e._insertFakeElement(y.HEAD,s.HEAD),e.headElement=e.openElements.current,e.insertionMode=T.IN_HEAD,e._processToken(t)}function rt(e,t){switch(t.tagID){case s.HTML:{Fe(e,t);break}case s.BASE:case s.BASEFONT:case s.BGSOUND:case s.LINK:case s.META:{e._appendElement(t,D.HTML),t.ackSelfClosing=!0;break}case s.TITLE:{e._switchToTextParsing(t,ve.RCDATA);break}case s.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(t,ve.RAWTEXT):(e._insertElement(t,D.HTML),e.insertionMode=T.IN_HEAD_NO_SCRIPT);break}case s.NOFRAMES:case s.STYLE:{e._switchToTextParsing(t,ve.RAWTEXT);break}case s.SCRIPT:{e._switchToTextParsing(t,ve.SCRIPT_DATA);break}case s.TEMPLATE:{e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=T.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(T.IN_TEMPLATE);break}case s.HEAD:{e._err(t,S.misplacedStartTagForHeadElement);break}default:xn(e,t)}}function NE(e,t){switch(t.tagID){case s.HEAD:{e.openElements.pop(),e.insertionMode=T.AFTER_HEAD;break}case s.BODY:case s.BR:case s.HTML:{xn(e,t);break}case s.TEMPLATE:{Ut(e,t);break}default:e._err(t,S.endTagWithoutMatchingOpenElement)}}function Ut(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==s.TEMPLATE&&e._err(t,S.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(s.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,S.endTagWithoutMatchingOpenElement)}function xn(e,t){e.openElements.pop(),e.insertionMode=T.AFTER_HEAD,e._processToken(t)}function OE(e,t){switch(t.tagID){case s.HTML:{Fe(e,t);break}case s.BASEFONT:case s.BGSOUND:case s.HEAD:case s.LINK:case s.META:case s.NOFRAMES:case s.STYLE:{rt(e,t);break}case s.NOSCRIPT:{e._err(t,S.nestedNoscriptInHead);break}default:Sn(e,t)}}function LE(e,t){switch(t.tagID){case s.NOSCRIPT:{e.openElements.pop(),e.insertionMode=T.IN_HEAD;break}case s.BR:{Sn(e,t);break}default:e._err(t,S.endTagWithoutMatchingOpenElement)}}function Sn(e,t){const n=t.type===fe.EOF?S.openElementsLeftAfterEof:S.disallowedContentInNoscriptInHead;e._err(t,n),e.openElements.pop(),e.insertionMode=T.IN_HEAD,e._processToken(t)}function RE(e,t){switch(t.tagID){case s.HTML:{Fe(e,t);break}case s.BODY:{e._insertElement(t,D.HTML),e.framesetOk=!1,e.insertionMode=T.IN_BODY;break}case s.FRAMESET:{e._insertElement(t,D.HTML),e.insertionMode=T.IN_FRAMESET;break}case s.BASE:case s.BASEFONT:case s.BGSOUND:case s.LINK:case s.META:case s.NOFRAMES:case s.SCRIPT:case s.STYLE:case s.TEMPLATE:case s.TITLE:{e._err(t,S.abandonedHeadElementChild),e.openElements.push(e.headElement,s.HEAD),rt(e,t),e.openElements.remove(e.headElement);break}case s.HEAD:{e._err(t,S.misplacedStartTagForHeadElement);break}default:Cn(e,t)}}function vE(e,t){switch(t.tagID){case s.BODY:case s.HTML:case s.BR:{Cn(e,t);break}case s.TEMPLATE:{Ut(e,t);break}default:e._err(t,S.endTagWithoutMatchingOpenElement)}}function Cn(e,t){e._insertFakeElement(y.BODY,s.BODY),e.insertionMode=T.IN_BODY,Sr(e,t)}function Sr(e,t){switch(t.type){case fe.CHARACTER:{Go(e,t);break}case fe.WHITESPACE_CHARACTER:{Yo(e,t);break}case fe.COMMENT:{Ra(e,t);break}case fe.START_TAG:{Fe(e,t);break}case fe.END_TAG:{Cr(e,t);break}case fe.EOF:{Wo(e,t);break}}}function Yo(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function Go(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function PE(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function DE(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function kE(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,D.HTML),e.insertionMode=T.IN_FRAMESET)}function wE(e,t){e.openElements.hasInButtonScope(s.P)&&e._closePElement(),e._insertElement(t,D.HTML)}function ME(e,t){e.openElements.hasInButtonScope(s.P)&&e._closePElement(),La.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,D.HTML)}function BE(e,t){e.openElements.hasInButtonScope(s.P)&&e._closePElement(),e._insertElement(t,D.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function FE(e,t){const n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(s.P)&&e._closePElement(),e._insertElement(t,D.HTML),n||(e.formElement=e.openElements.current))}function HE(e,t){e.framesetOk=!1;const n=t.tagID;for(let r=e.openElements.stackTop;r>=0;r--){const a=e.openElements.tagIDs[r];if(n===s.LI&&a===s.LI||(n===s.DD||n===s.DT)&&(a===s.DD||a===s.DT)){e.openElements.generateImpliedEndTagsWithExclusion(a),e.openElements.popUntilTagNamePopped(a);break}if(a!==s.ADDRESS&&a!==s.DIV&&a!==s.P&&e._isSpecialElement(e.openElements.items[r],a))break}e.openElements.hasInButtonScope(s.P)&&e._closePElement(),e._insertElement(t,D.HTML)}function UE(e,t){e.openElements.hasInButtonScope(s.P)&&e._closePElement(),e._insertElement(t,D.HTML),e.tokenizer.state=ve.PLAINTEXT}function jE(e,t){e.openElements.hasInScope(s.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(s.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,D.HTML),e.framesetOk=!1}function $E(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(y.A);n&&(ui(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,D.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function YE(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,D.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function GE(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(s.NOBR)&&(ui(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,D.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function zE(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,D.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function VE(e,t){e.treeAdapter.getDocumentMode(e.document)!==Ke.QUIRKS&&e.openElements.hasInButtonScope(s.P)&&e._closePElement(),e._insertElement(t,D.HTML),e.framesetOk=!1,e.insertionMode=T.IN_TABLE}function zo(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,D.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function Vo(e){const t=vo(e,kt.TYPE);return t!=null&&t.toLowerCase()===cE}function qE(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,D.HTML),Vo(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function WE(e,t){e._appendElement(t,D.HTML),t.ackSelfClosing=!0}function XE(e,t){e.openElements.hasInButtonScope(s.P)&&e._closePElement(),e._appendElement(t,D.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function QE(e,t){t.tagName=y.IMG,t.tagID=s.IMG,zo(e,t)}function KE(e,t){e._insertElement(t,D.HTML),e.skipNextNewLine=!0,e.tokenizer.state=ve.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=T.TEXT}function ZE(e,t){e.openElements.hasInButtonScope(s.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,ve.RAWTEXT)}function JE(e,t){e.framesetOk=!1,e._switchToTextParsing(t,ve.RAWTEXT)}function ku(e,t){e._switchToTextParsing(t,ve.RAWTEXT)}function e1(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,D.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===T.IN_TABLE||e.insertionMode===T.IN_CAPTION||e.insertionMode===T.IN_TABLE_BODY||e.insertionMode===T.IN_ROW||e.insertionMode===T.IN_CELL?T.IN_SELECT_IN_TABLE:T.IN_SELECT}function t1(e,t){e.openElements.currentTagId===s.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,D.HTML)}function n1(e,t){e.openElements.hasInScope(s.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,D.HTML)}function r1(e,t){e.openElements.hasInScope(s.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(s.RTC),e._insertElement(t,D.HTML)}function a1(e,t){e._reconstructActiveFormattingElements(),Uo(t),ii(t),t.selfClosing?e._appendElement(t,D.MATHML):e._insertElement(t,D.MATHML),t.ackSelfClosing=!0}function i1(e,t){e._reconstructActiveFormattingElements(),jo(t),ii(t),t.selfClosing?e._appendElement(t,D.SVG):e._insertElement(t,D.SVG),t.ackSelfClosing=!0}function wu(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,D.HTML)}function Fe(e,t){switch(t.tagID){case s.I:case s.S:case s.B:case s.U:case s.EM:case s.TT:case s.BIG:case s.CODE:case s.FONT:case s.SMALL:case s.STRIKE:case s.STRONG:{YE(e,t);break}case s.A:{$E(e,t);break}case s.H1:case s.H2:case s.H3:case s.H4:case s.H5:case s.H6:{ME(e,t);break}case s.P:case s.DL:case s.OL:case s.UL:case s.DIV:case s.DIR:case s.NAV:case s.MAIN:case s.MENU:case s.ASIDE:case s.CENTER:case s.FIGURE:case s.FOOTER:case s.HEADER:case s.HGROUP:case s.DIALOG:case s.DETAILS:case s.ADDRESS:case s.ARTICLE:case s.SEARCH:case s.SECTION:case s.SUMMARY:case s.FIELDSET:case s.BLOCKQUOTE:case s.FIGCAPTION:{wE(e,t);break}case s.LI:case s.DD:case s.DT:{HE(e,t);break}case s.BR:case s.IMG:case s.WBR:case s.AREA:case s.EMBED:case s.KEYGEN:{zo(e,t);break}case s.HR:{XE(e,t);break}case s.RB:case s.RTC:{n1(e,t);break}case s.RT:case s.RP:{r1(e,t);break}case s.PRE:case s.LISTING:{BE(e,t);break}case s.XMP:{ZE(e,t);break}case s.SVG:{i1(e,t);break}case s.HTML:{PE(e,t);break}case s.BASE:case s.LINK:case s.META:case s.STYLE:case s.TITLE:case s.SCRIPT:case s.BGSOUND:case s.BASEFONT:case s.TEMPLATE:{rt(e,t);break}case s.BODY:{DE(e,t);break}case s.FORM:{FE(e,t);break}case s.NOBR:{GE(e,t);break}case s.MATH:{a1(e,t);break}case s.TABLE:{VE(e,t);break}case s.INPUT:{qE(e,t);break}case s.PARAM:case s.TRACK:case s.SOURCE:{WE(e,t);break}case s.IMAGE:{QE(e,t);break}case s.BUTTON:{jE(e,t);break}case s.APPLET:case s.OBJECT:case s.MARQUEE:{zE(e,t);break}case s.IFRAME:{JE(e,t);break}case s.SELECT:{e1(e,t);break}case s.OPTION:case s.OPTGROUP:{t1(e,t);break}case s.NOEMBED:case s.NOFRAMES:{ku(e,t);break}case s.FRAMESET:{kE(e,t);break}case s.TEXTAREA:{KE(e,t);break}case s.NOSCRIPT:{e.options.scriptingEnabled?ku(e,t):wu(e,t);break}case s.PLAINTEXT:{UE(e,t);break}case s.COL:case s.TH:case s.TD:case s.TR:case s.HEAD:case s.FRAME:case s.TBODY:case s.TFOOT:case s.THEAD:case s.CAPTION:case s.COLGROUP:break;default:wu(e,t)}}function u1(e,t){if(e.openElements.hasInScope(s.BODY)&&(e.insertionMode=T.AFTER_BODY,e.options.sourceCodeLocationInfo)){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}}function s1(e,t){e.openElements.hasInScope(s.BODY)&&(e.insertionMode=T.AFTER_BODY,nl(e,t))}function o1(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function l1(e){const t=e.openElements.tmplCount>0,{formElement:n}=e;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(s.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(s.FORM):n&&e.openElements.remove(n))}function c1(e){e.openElements.hasInButtonScope(s.P)||e._insertFakeElement(y.P,s.P),e._closePElement()}function f1(e){e.openElements.hasInListItemScope(s.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(s.LI),e.openElements.popUntilTagNamePopped(s.LI))}function d1(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function h1(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function m1(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function p1(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(y.BR,s.BR),e.openElements.pop(),e.framesetOk=!1}function qo(e,t){const n=t.tagName,r=t.tagID;for(let a=e.openElements.stackTop;a>0;a--){const i=e.openElements.items[a],u=e.openElements.tagIDs[a];if(r===u&&(r!==s.UNKNOWN||e.treeAdapter.getTagName(i)===n)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.stackTop>=a&&e.openElements.shortenToLength(a);break}if(e._isSpecialElement(i,u))break}}function Cr(e,t){switch(t.tagID){case s.A:case s.B:case s.I:case s.S:case s.U:case s.EM:case s.TT:case s.BIG:case s.CODE:case s.FONT:case s.NOBR:case s.SMALL:case s.STRIKE:case s.STRONG:{ui(e,t);break}case s.P:{c1(e);break}case s.DL:case s.UL:case s.OL:case s.DIR:case s.DIV:case s.NAV:case s.PRE:case s.MAIN:case s.MENU:case s.ASIDE:case s.BUTTON:case s.CENTER:case s.FIGURE:case s.FOOTER:case s.HEADER:case s.HGROUP:case s.DIALOG:case s.ADDRESS:case s.ARTICLE:case s.DETAILS:case s.SEARCH:case s.SECTION:case s.SUMMARY:case s.LISTING:case s.FIELDSET:case s.BLOCKQUOTE:case s.FIGCAPTION:{o1(e,t);break}case s.LI:{f1(e);break}case s.DD:case s.DT:{d1(e,t);break}case s.H1:case s.H2:case s.H3:case s.H4:case s.H5:case s.H6:{h1(e);break}case s.BR:{p1(e);break}case s.BODY:{u1(e,t);break}case s.HTML:{s1(e,t);break}case s.FORM:{l1(e);break}case s.APPLET:case s.OBJECT:case s.MARQUEE:{m1(e,t);break}case s.TEMPLATE:{Ut(e,t);break}default:qo(e,t)}}function Wo(e,t){e.tmplInsertionModeStack.length>0?tl(e,t):si(e,t)}function E1(e,t){var n;t.tagID===s.SCRIPT&&((n=e.scriptHandler)===null||n===void 0||n.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function b1(e,t){e._err(t,S.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function Kr(e,t){if($o.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=T.IN_TABLE_TEXT,t.type){case fe.CHARACTER:{Qo(e,t);break}case fe.WHITESPACE_CHARACTER:{Xo(e,t);break}}else Fn(e,t)}function g1(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,D.HTML),e.insertionMode=T.IN_CAPTION}function T1(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,D.HTML),e.insertionMode=T.IN_COLUMN_GROUP}function A1(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(y.COLGROUP,s.COLGROUP),e.insertionMode=T.IN_COLUMN_GROUP,oi(e,t)}function _1(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,D.HTML),e.insertionMode=T.IN_TABLE_BODY}function y1(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(y.TBODY,s.TBODY),e.insertionMode=T.IN_TABLE_BODY,Ir(e,t)}function x1(e,t){e.openElements.hasInTableScope(s.TABLE)&&(e.openElements.popUntilTagNamePopped(s.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function S1(e,t){Vo(t)?e._appendElement(t,D.HTML):Fn(e,t),t.ackSelfClosing=!0}function C1(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,D.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function tn(e,t){switch(t.tagID){case s.TD:case s.TH:case s.TR:{y1(e,t);break}case s.STYLE:case s.SCRIPT:case s.TEMPLATE:{rt(e,t);break}case s.COL:{A1(e,t);break}case s.FORM:{C1(e,t);break}case s.TABLE:{x1(e,t);break}case s.TBODY:case s.TFOOT:case s.THEAD:{_1(e,t);break}case s.INPUT:{S1(e,t);break}case s.CAPTION:{g1(e,t);break}case s.COLGROUP:{T1(e,t);break}default:Fn(e,t)}}function Rn(e,t){switch(t.tagID){case s.TABLE:{e.openElements.hasInTableScope(s.TABLE)&&(e.openElements.popUntilTagNamePopped(s.TABLE),e._resetInsertionMode());break}case s.TEMPLATE:{Ut(e,t);break}case s.BODY:case s.CAPTION:case s.COL:case s.COLGROUP:case s.HTML:case s.TBODY:case s.TD:case s.TFOOT:case s.TH:case s.THEAD:case s.TR:break;default:Fn(e,t)}}function Fn(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,Sr(e,t),e.fosterParentingEnabled=n}function Xo(e,t){e.pendingCharacterTokens.push(t)}function Qo(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function mn(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n<e.pendingCharacterTokens.length;n++)Fn(e,e.pendingCharacterTokens[n]);else for(;n<e.pendingCharacterTokens.length;n++)e._insertCharacters(e.pendingCharacterTokens[n]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}const Ko=new Set([s.CAPTION,s.COL,s.COLGROUP,s.TBODY,s.TD,s.TFOOT,s.TH,s.THEAD,s.TR]);function I1(e,t){const n=t.tagID;Ko.has(n)?e.openElements.hasInTableScope(s.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(s.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=T.IN_TABLE,tn(e,t)):Fe(e,t)}function N1(e,t){const n=t.tagID;switch(n){case s.CAPTION:case s.TABLE:{e.openElements.hasInTableScope(s.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(s.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=T.IN_TABLE,n===s.TABLE&&Rn(e,t));break}case s.BODY:case s.COL:case s.COLGROUP:case s.HTML:case s.TBODY:case s.TD:case s.TFOOT:case s.TH:case s.THEAD:case s.TR:break;default:Cr(e,t)}}function oi(e,t){switch(t.tagID){case s.HTML:{Fe(e,t);break}case s.COL:{e._appendElement(t,D.HTML),t.ackSelfClosing=!0;break}case s.TEMPLATE:{rt(e,t);break}default:ur(e,t)}}function O1(e,t){switch(t.tagID){case s.COLGROUP:{e.openElements.currentTagId===s.COLGROUP&&(e.openElements.pop(),e.insertionMode=T.IN_TABLE);break}case s.TEMPLATE:{Ut(e,t);break}case s.COL:break;default:ur(e,t)}}function ur(e,t){e.openElements.currentTagId===s.COLGROUP&&(e.openElements.pop(),e.insertionMode=T.IN_TABLE,e._processToken(t))}function Ir(e,t){switch(t.tagID){case s.TR:{e.openElements.clearBackToTableBodyContext(),e._insertElement(t,D.HTML),e.insertionMode=T.IN_ROW;break}case s.TH:case s.TD:{e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(y.TR,s.TR),e.insertionMode=T.IN_ROW,Nr(e,t);break}case s.CAPTION:case s.COL:case s.COLGROUP:case s.TBODY:case s.TFOOT:case s.THEAD:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=T.IN_TABLE,tn(e,t));break}default:tn(e,t)}}function va(e,t){const n=t.tagID;switch(t.tagID){case s.TBODY:case s.TFOOT:case s.THEAD:{e.openElements.hasInTableScope(n)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=T.IN_TABLE);break}case s.TABLE:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=T.IN_TABLE,Rn(e,t));break}case s.BODY:case s.CAPTION:case s.COL:case s.COLGROUP:case s.HTML:case s.TD:case s.TH:case s.TR:break;default:Rn(e,t)}}function Nr(e,t){switch(t.tagID){case s.TH:case s.TD:{e.openElements.clearBackToTableRowContext(),e._insertElement(t,D.HTML),e.insertionMode=T.IN_CELL,e.activeFormattingElements.insertMarker();break}case s.CAPTION:case s.COL:case s.COLGROUP:case s.TBODY:case s.TFOOT:case s.THEAD:case s.TR:{e.openElements.hasInTableScope(s.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=T.IN_TABLE_BODY,Ir(e,t));break}default:tn(e,t)}}function Zo(e,t){switch(t.tagID){case s.TR:{e.openElements.hasInTableScope(s.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=T.IN_TABLE_BODY);break}case s.TABLE:{e.openElements.hasInTableScope(s.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=T.IN_TABLE_BODY,va(e,t));break}case s.TBODY:case s.TFOOT:case s.THEAD:{(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(s.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=T.IN_TABLE_BODY,va(e,t));break}case s.BODY:case s.CAPTION:case s.COL:case s.COLGROUP:case s.HTML:case s.TD:case s.TH:break;default:Rn(e,t)}}function L1(e,t){const n=t.tagID;Ko.has(n)?(e.openElements.hasInTableScope(s.TD)||e.openElements.hasInTableScope(s.TH))&&(e._closeTableCell(),Nr(e,t)):Fe(e,t)}function R1(e,t){const n=t.tagID;switch(n){case s.TD:case s.TH:{e.openElements.hasInTableScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=T.IN_ROW);break}case s.TABLE:case s.TBODY:case s.TFOOT:case s.THEAD:case s.TR:{e.openElements.hasInTableScope(n)&&(e._closeTableCell(),Zo(e,t));break}case s.BODY:case s.CAPTION:case s.COL:case s.COLGROUP:case s.HTML:break;default:Cr(e,t)}}function Jo(e,t){switch(t.tagID){case s.HTML:{Fe(e,t);break}case s.OPTION:{e.openElements.currentTagId===s.OPTION&&e.openElements.pop(),e._insertElement(t,D.HTML);break}case s.OPTGROUP:{e.openElements.currentTagId===s.OPTION&&e.openElements.pop(),e.openElements.currentTagId===s.OPTGROUP&&e.openElements.pop(),e._insertElement(t,D.HTML);break}case s.HR:{e.openElements.currentTagId===s.OPTION&&e.openElements.pop(),e.openElements.currentTagId===s.OPTGROUP&&e.openElements.pop(),e._appendElement(t,D.HTML),t.ackSelfClosing=!0;break}case s.INPUT:case s.KEYGEN:case s.TEXTAREA:case s.SELECT:{e.openElements.hasInSelectScope(s.SELECT)&&(e.openElements.popUntilTagNamePopped(s.SELECT),e._resetInsertionMode(),t.tagID!==s.SELECT&&e._processStartTag(t));break}case s.SCRIPT:case s.TEMPLATE:{rt(e,t);break}}}function el(e,t){switch(t.tagID){case s.OPTGROUP:{e.openElements.stackTop>0&&e.openElements.currentTagId===s.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===s.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===s.OPTGROUP&&e.openElements.pop();break}case s.OPTION:{e.openElements.currentTagId===s.OPTION&&e.openElements.pop();break}case s.SELECT:{e.openElements.hasInSelectScope(s.SELECT)&&(e.openElements.popUntilTagNamePopped(s.SELECT),e._resetInsertionMode());break}case s.TEMPLATE:{Ut(e,t);break}}}function v1(e,t){const n=t.tagID;n===s.CAPTION||n===s.TABLE||n===s.TBODY||n===s.TFOOT||n===s.THEAD||n===s.TR||n===s.TD||n===s.TH?(e.openElements.popUntilTagNamePopped(s.SELECT),e._resetInsertionMode(),e._processStartTag(t)):Jo(e,t)}function P1(e,t){const n=t.tagID;n===s.CAPTION||n===s.TABLE||n===s.TBODY||n===s.TFOOT||n===s.THEAD||n===s.TR||n===s.TD||n===s.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(s.SELECT),e._resetInsertionMode(),e.onEndTag(t)):el(e,t)}function D1(e,t){switch(t.tagID){case s.BASE:case s.BASEFONT:case s.BGSOUND:case s.LINK:case s.META:case s.NOFRAMES:case s.SCRIPT:case s.STYLE:case s.TEMPLATE:case s.TITLE:{rt(e,t);break}case s.CAPTION:case s.COLGROUP:case s.TBODY:case s.TFOOT:case s.THEAD:{e.tmplInsertionModeStack[0]=T.IN_TABLE,e.insertionMode=T.IN_TABLE,tn(e,t);break}case s.COL:{e.tmplInsertionModeStack[0]=T.IN_COLUMN_GROUP,e.insertionMode=T.IN_COLUMN_GROUP,oi(e,t);break}case s.TR:{e.tmplInsertionModeStack[0]=T.IN_TABLE_BODY,e.insertionMode=T.IN_TABLE_BODY,Ir(e,t);break}case s.TD:case s.TH:{e.tmplInsertionModeStack[0]=T.IN_ROW,e.insertionMode=T.IN_ROW,Nr(e,t);break}default:e.tmplInsertionModeStack[0]=T.IN_BODY,e.insertionMode=T.IN_BODY,Fe(e,t)}}function k1(e,t){t.tagID===s.TEMPLATE&&Ut(e,t)}function tl(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(s.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):si(e,t)}function w1(e,t){t.tagID===s.HTML?Fe(e,t):sr(e,t)}function nl(e,t){var n;if(t.tagID===s.HTML){if(e.fragmentContext||(e.insertionMode=T.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===s.HTML){e._setEndLocation(e.openElements.items[0],t);const r=e.openElements.items[1];r&&!(!((n=e.treeAdapter.getNodeSourceCodeLocation(r))===null||n===void 0)&&n.endTag)&&e._setEndLocation(r,t)}}else sr(e,t)}function sr(e,t){e.insertionMode=T.IN_BODY,Sr(e,t)}function M1(e,t){switch(t.tagID){case s.HTML:{Fe(e,t);break}case s.FRAMESET:{e._insertElement(t,D.HTML);break}case s.FRAME:{e._appendElement(t,D.HTML),t.ackSelfClosing=!0;break}case s.NOFRAMES:{rt(e,t);break}}}function B1(e,t){t.tagID===s.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==s.FRAMESET&&(e.insertionMode=T.AFTER_FRAMESET))}function F1(e,t){switch(t.tagID){case s.HTML:{Fe(e,t);break}case s.NOFRAMES:{rt(e,t);break}}}function H1(e,t){t.tagID===s.HTML&&(e.insertionMode=T.AFTER_AFTER_FRAMESET)}function U1(e,t){t.tagID===s.HTML?Fe(e,t):nr(e,t)}function nr(e,t){e.insertionMode=T.IN_BODY,Sr(e,t)}function j1(e,t){switch(t.tagID){case s.HTML:{Fe(e,t);break}case s.NOFRAMES:{rt(e,t);break}}}function $1(e,t){t.chars=Ie,e._insertCharacters(t)}function Y1(e,t){e._insertCharacters(t),e.framesetOk=!1}function rl(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==D.HTML&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function G1(e,t){if(iE(t))rl(e),e._startTagOutsideForeignContent(t);else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===D.MATHML?Uo(t):r===D.SVG&&(uE(t),jo(t)),ii(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}function z1(e,t){if(t.tagID===s.P||t.tagID===s.BR){rl(e),e._endTagOutsideForeignContent(t);return}for(let n=e.openElements.stackTop;n>0;n--){const r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===D.HTML){e._endTagOutsideForeignContent(t);break}const a=e.treeAdapter.getTagName(r);if(a.toLowerCase()===t.tagName){t.tagName=a,e.openElements.shortenToLength(n);break}}}y.AREA,y.BASE,y.BASEFONT,y.BGSOUND,y.BR,y.COL,y.EMBED,y.FRAME,y.HR,y.IMG,y.INPUT,y.KEYGEN,y.LINK,y.META,y.PARAM,y.SOURCE,y.TRACK,y.WBR;const V1=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),Mu={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function al(e,t){const n=nb(e),r=Io("type",{handlers:{root:q1,element:W1,text:X1,comment:ul,doctype:Q1,raw:Z1},unknown:J1}),a={parser:n?new Du(Mu):Du.getFragmentParser(void 0,Mu),handle(o){r(o,a)},stitches:!1,options:t||{}};r(e,a),on(a,dt());const i=n?a.parser.document:a.parser.getFragment(),u=ap(i,{file:a.options.file});return a.stitches&&ti(u,"comment",function(o,l,c){const f=o;if(f.value.stitch&&c&&l!==void 0){const d=c.children;return d[l]=f.value.stitch,l}}),u.type==="root"&&u.children.length===1&&u.children[0].type===e.type?u.children[0]:u}function il(e,t){let n=-1;if(e)for(;++n<e.length;)t.handle(e[n])}function q1(e,t){il(e.children,t)}function W1(e,t){eb(e,t),il(e.children,t),tb(e,t)}function X1(e,t){t.parser.tokenizer.state>4&&(t.parser.tokenizer.state=0);const n={type:fe.CHARACTER,chars:e.value,location:Hn(e)};on(t,dt(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function Q1(e,t){const n={type:fe.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:Hn(e)};on(t,dt(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function K1(e,t){t.stitches=!0;const n=rb(e);if("children"in e&&"children"in n){const r=al({type:"root",children:e.children},t.options);n.children=r.children}ul({type:"comment",value:{stitch:n}},t)}function ul(e,t){const n=e.value,r={type:fe.COMMENT,data:n,location:Hn(e)};on(t,dt(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function Z1(e,t){if(t.parser.tokenizer.preprocessor.html="",t.parser.tokenizer.preprocessor.pos=-1,t.parser.tokenizer.preprocessor.lastGapPos=-2,t.parser.tokenizer.preprocessor.gapStack=[],t.parser.tokenizer.preprocessor.skipNextNewLine=!1,t.parser.tokenizer.preprocessor.lastChunkWritten=!1,t.parser.tokenizer.preprocessor.endOfChunkHit=!1,t.parser.tokenizer.preprocessor.isEol=!1,sl(t,dt(e)),t.parser.tokenizer.write(e.value,!1),t.parser.tokenizer._runParsingLoop(),t.parser.tokenizer.state===72||t.parser.tokenizer.state===78){t.parser.tokenizer.preprocessor.lastChunkWritten=!0;const n=t.parser.tokenizer._consume();t.parser.tokenizer._callState(n)}}function J1(e,t){const n=e;if(t.options.passThrough&&t.options.passThrough.includes(n.type))K1(n,t);else{let r="";throw V1.has(n.type)&&(r=". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax"),new Error("Cannot compile `"+n.type+"` node"+r)}}function on(e,t){sl(e,t);const n=e.parser.tokenizer.currentCharacterToken;n&&n.location&&(n.location.endLine=e.parser.tokenizer.preprocessor.line,n.location.endCol=e.parser.tokenizer.preprocessor.col+1,n.location.endOffset=e.parser.tokenizer.preprocessor.offset+1,e.parser.currentToken=n,e.parser._processToken(e.parser.currentToken)),e.parser.tokenizer.paused=!1,e.parser.tokenizer.inLoop=!1,e.parser.tokenizer.active=!1,e.parser.tokenizer.returnState=ve.DATA,e.parser.tokenizer.charRefCode=-1,e.parser.tokenizer.consumedAfterSnapshot=-1,e.parser.tokenizer.currentLocation=null,e.parser.tokenizer.currentCharacterToken=null,e.parser.tokenizer.currentToken=null,e.parser.tokenizer.currentAttr={name:"",value:""}}function sl(e,t){if(t&&t.offset!==void 0){const n={startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:-1,endCol:-1,endOffset:-1};e.parser.tokenizer.preprocessor.lineStartPos=-t.column+1,e.parser.tokenizer.preprocessor.droppedBufferSize=t.offset,e.parser.tokenizer.preprocessor.line=t.line,e.parser.tokenizer.currentLocation=n}}function eb(e,t){const n=e.tagName.toLowerCase();if(t.parser.tokenizer.state===ve.PLAINTEXT)return;on(t,dt(e));const r=t.parser.openElements.current;let a="namespaceURI"in r?r.namespaceURI:Dt.html;a===Dt.html&&n==="svg"&&(a=Dt.svg);const i=lp({...e,children:[]},{space:a===Dt.svg?"svg":"html"}),u={type:fe.START_TAG,tagName:n,tagID:sn(n),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in i?i.attrs:[],location:Hn(e)};t.parser.currentToken=u,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=n}function tb(e,t){const n=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&bp.includes(n)||t.parser.tokenizer.state===ve.PLAINTEXT)return;on(t,Ar(e));const r={type:fe.END_TAG,tagName:n,tagID:sn(n),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:Hn(e)};t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken),n===t.parser.tokenizer.lastStartTagName&&(t.parser.tokenizer.state===ve.RCDATA||t.parser.tokenizer.state===ve.RAWTEXT||t.parser.tokenizer.state===ve.SCRIPT_DATA)&&(t.parser.tokenizer.state=ve.DATA)}function nb(e){const t=e.type==="root"?e.children[0]:e;return!!(t&&(t.type==="doctype"||t.type==="element"&&t.tagName.toLowerCase()==="html"))}function Hn(e){const t=dt(e)||{line:void 0,column:void 0,offset:void 0},n=Ar(e)||{line:void 0,column:void 0,offset:void 0};return{startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:n.line,endCol:n.column,endOffset:n.offset}}function rb(e){return"children"in e?en({...e,children:[]}):en(e)}function ol(e){return function(t,n){return al(t,{...e,file:n})}}const ab=e=>De.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",...e},De.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10s10-4.48 10-10S17.52 2 12 2zM7.07 18.28c.43-.9 3.05-1.78 4.93-1.78s4.51.88 4.93 1.78C15.57 19.36 13.86 20 12 20s-3.57-.64-4.93-1.72zm11.29-1.45c-1.43-1.74-4.9-2.33-6.36-2.33s-4.93.59-6.36 2.33A7.95 7.95 0 0 1 4 12c0-4.41 3.59-8 8-8s8 3.59 8 8c0 1.82-.62 3.49-1.64 4.83zM12 6c-1.94 0-3.5 1.56-3.5 3.5S10.06 13 12 13s3.5-1.56 3.5-3.5S13.94 6 12 6zm0 5c-.83 0-1.5-.67-1.5-1.5S11.17 8 12 8s1.5.67 1.5 1.5S12.83 11 12 11z"})),ib=({content:e,metaData:t})=>{const{chatlineLabelUserTranslation:n}=Ya();return L.jsxs("div",{className:"flex px-3 justify-between mt-8 bg-gray-200 rounded-lg",children:[L.jsx("div",{className:"w-10 mr-3 flex-col content-center",children:L.jsx("div",{children:L.jsx(ab,{fill:"#4564d6"})})}),L.jsxs("div",{className:`w-full p-4 rounded-lg transition-all duration-300 ${t?.isErrorMessage?"bg-red-100 border-l-4 border-red-400 text-red-800 shadow-md animate-fade-in":" text-gray-800"}`,children:[L.jsx("p",{className:"font-bold",children:n}),L.jsx("div",{children:L.jsx(yo,{rehypePlugins:[ol],children:e&&e})})]})]})},ub=({})=>{const{companySettings:e}=N.useContext(kn);return L.jsx("div",{className:`assistant
|
|
63
63
|
transition
|
|
64
64
|
ease-in-out
|
|
65
65
|
delay-50
|
|
@@ -67,8 +67,8 @@ For more details see https://formatjs.io/docs/getting-started/message-distributi
|
|
|
67
67
|
flex
|
|
68
68
|
justify-center
|
|
69
69
|
items-center
|
|
70
|
-
`,children:L.jsx($a,{facet:e.agent.display[Ye.AgentDisplayFacetRoleType.ASSISTANT]})})},ub=({content:e,metaData:t})=>{const{chatlineLabelAssistantTranslation:n}=Ya();return L.jsxs("div",{className:"flex justify-between mt-8 px-3",children:[L.jsx("div",{className:"w-10 mr-3 mt-6",children:L.jsx("div",{children:L.jsx(ib,{})})}),L.jsxs("div",{className:`w-full p-4 rounded-lg transition-all duration-300 ${t?.isErrorMessage?"bg-red-100 border-l-4 border-red-400 text-red-800 shadow-md animate-fade-in":"bg-white text-gray-800"}`,children:[L.jsx("p",{className:"font-bold",children:n}),L.jsx("div",{children:L.jsx(_o,{rehypePlugins:[sl],children:e&&e})})]})]})},sb=({userType:e,content:t,metaData:n})=>{const r=e==="user",a=e==="assistant";return L.jsxs(L.Fragment,{children:[r&&L.jsx(ab,{content:t,metaData:n}),a&&L.jsx(ub,{content:t,metaData:n})]})};function ob(e,t,n){let[r,a]=O.useState(e||t),i=O.useRef(e!==void 0),u=e!==void 0;O.useEffect(()=>{let c=i.current;c!==u&&console.warn(`WARN: A component changed from ${c?"controlled":"uncontrolled"} to ${u?"controlled":"uncontrolled"}.`),i.current=u},[u]);let o=u?e:r,l=O.useCallback((c,...f)=>{let d=(h,...m)=>{n&&(Object.is(o,h)||n(h,...m)),u||(o=h)};typeof c=="function"?(console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),a((m,...y)=>{let A=c(u?o:m,...y);return d(A,...f),u?m:A})):(u||a(c),d(c,...f))},[u,o,n]);return[o,l]}const or={prefix:String(Math.round(Math.random()*1e10)),current:0},ol=O.createContext(or),lb=O.createContext(!1);let cb=!!(typeof window<"u"&&window.document&&window.document.createElement),Zr=new WeakMap;function fb(e=!1){let t=O.useContext(ol),n=O.useRef(null);if(n.current===null&&!e){var r,a;let i=(a=O.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||a===void 0||(r=a.ReactCurrentOwner)===null||r===void 0?void 0:r.current;if(i){let u=Zr.get(i);u==null?Zr.set(i,{id:t.current,state:i.memoizedState}):i.memoizedState!==u.state&&(t.current=u.id,Zr.delete(i))}n.current=++t.current}return n.current}function db(e){let t=O.useContext(ol);t===or&&!cb&&console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let n=fb(!!e),r=t===or&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${t.prefix}`;return e||`${r}-${n}`}function hb(e){let t=O.useId(),[n]=O.useState(gb()),r=n||process.env.NODE_ENV==="test"?"react-aria":`react-aria${or.prefix}`;return e||`${r}-${t}`}const mb=typeof O.useId=="function"?hb:db;function pb(){return!1}function Eb(){return!0}function bb(e){return()=>{}}function gb(){return typeof O.useSyncExternalStore=="function"?O.useSyncExternalStore(bb,pb,Eb):O.useContext(lb)}function ll(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(n=ll(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Tb(){for(var e,t,n=0,r="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=ll(e))&&(r&&(r+=" "),r+=t);return r}const jt=typeof document<"u"?O.useLayoutEffect:()=>{};function wt(e){const t=O.useRef(null);return jt(()=>{t.current=e},[e]),O.useCallback((...n)=>{const r=t.current;return r?.(...n)},[])}function Ab(e){let[t,n]=O.useState(e),r=O.useRef(null),a=wt(()=>{if(!r.current)return;let u=r.current.next();if(u.done){r.current=null;return}t===u.value?a():n(u.value)});jt(()=>{r.current&&a()});let i=wt(u=>{r.current=u(t),a()});return[t,i]}let _b=!!(typeof window<"u"&&window.document&&window.document.createElement),lr=new Map;function cr(e){let[t,n]=O.useState(e),r=O.useRef(null),a=mb(t),i=O.useCallback(u=>{r.current=u},[]);return _b&&lr.set(a,i),jt(()=>{let u=a;return()=>{lr.delete(u)}},[a]),O.useEffect(()=>{let u=r.current;u&&(r.current=null,n(u))}),a}function yb(e,t){if(e===t)return e;let n=lr.get(e);if(n)return n(t),t;let r=lr.get(t);return r?(r(e),e):t}function Bu(e=[]){let t=cr(),[n,r]=Ab(t),a=O.useCallback(()=>{r(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,r]);return jt(a,[t,a,...e]),n}function xb(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}const Hn=e=>{var t;return(t=e?.ownerDocument)!==null&&t!==void 0?t:document},fr=e=>e&&"window"in e&&e.window===e?e:Hn(e).defaultView||window;function dr(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let r=e[n];for(let a in r){let i=t[a],u=r[a];typeof i=="function"&&typeof u=="function"&&a[0]==="o"&&a[1]==="n"&&a.charCodeAt(2)>=65&&a.charCodeAt(2)<=90?t[a]=xb(i,u):(a==="className"||a==="UNSAFE_className")&&typeof i=="string"&&typeof u=="string"?t[a]=Tb(i,u):a==="id"&&i&&u?t.id=yb(i,u):t[a]=u!==void 0?u:i}}return t}const Sb=new Set(["id"]),Cb=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),Ib=new Set(["href","target","rel","download","ping","referrerPolicy"]),Nb=/^(data-.*)$/;function Ob(e,t={}){let{labelable:n,isLink:r,propNames:a}=t,i={};for(const u in e)Object.prototype.hasOwnProperty.call(e,u)&&(Sb.has(u)||n&&Cb.has(u)||r&&Ib.has(u)||a?.has(u)||Nb.test(u))&&(i[u]=e[u]);return i}function Fu(e){if(Lb())e.focus({preventScroll:!0});else{let t=Rb(e);e.focus(),vb(t)}}let Xn=null;function Lb(){if(Xn==null){Xn=!1;try{document.createElement("div").focus({get preventScroll(){return Xn=!0,!0}})}catch{}}return Xn}function Rb(e){let t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==r;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),n}function vb(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}function Pb(e){var t;return typeof window>"u"||window.navigator==null?!1:((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands.some(n=>e.test(n.brand)))||e.test(window.navigator.userAgent)}function Db(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function kb(){return Db(/^Mac/i)}function wb(){return Pb(/Android/i)}let qt=new Map,Pa=new Set;function Hu(){if(typeof window>"u")return;function e(r){return"propertyName"in r}let t=r=>{if(!e(r)||!r.target)return;let a=qt.get(r.target);a||(a=new Set,qt.set(r.target,a),r.target.addEventListener("transitioncancel",n,{once:!0})),a.add(r.propertyName)},n=r=>{if(!e(r)||!r.target)return;let a=qt.get(r.target);if(a&&(a.delete(r.propertyName),a.size===0&&(r.target.removeEventListener("transitioncancel",n),qt.delete(r.target)),qt.size===0)){for(let i of Pa)i();Pa.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",n)}typeof document<"u"&&(document.readyState!=="loading"?Hu():document.addEventListener("DOMContentLoaded",Hu));function Mb(e){requestAnimationFrame(()=>{qt.size===0?e():Pa.add(e)})}function Bb(e,t){let{id:n,"aria-label":r,"aria-labelledby":a}=e;return n=cr(n),a&&r?a=[...new Set([n,...a.trim().split(/\s+/)])].join(" "):a&&(a=a.trim().split(/\s+/).join(" ")),!r&&!a&&t&&(r=t),{id:n,"aria-label":r,"aria-labelledby":a}}function Fb(e,t){jt(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function Hb(e){return e.mozInputSource===0&&e.isTrusted?!0:wb()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function Ub(e,t,n){let r=O.useRef(t),a=wt(()=>{n&&n(r.current)});O.useEffect(()=>{var i;let u=e==null||(i=e.current)===null||i===void 0?void 0:i.form;return u?.addEventListener("reset",a),()=>{u?.removeEventListener("reset",a)}},[e,a])}const jb=O.createContext({register:()=>{}});jb.displayName="PressResponderContext";class $b{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(t,n){this.nativeEvent=n,this.target=n.target,this.currentTarget=n.currentTarget,this.relatedTarget=n.relatedTarget,this.bubbles=n.bubbles,this.cancelable=n.cancelable,this.defaultPrevented=n.defaultPrevented,this.eventPhase=n.eventPhase,this.isTrusted=n.isTrusted,this.timeStamp=n.timeStamp,this.type=t}}function Yb(e){let t=O.useRef({isFocused:!1,observer:null});jt(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=wt(r=>{e?.(r)});return O.useCallback(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){t.current.isFocused=!0;let a=r.target,i=u=>{t.current.isFocused=!1,a.disabled&&n(new $b("blur",u)),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};a.addEventListener("focusout",i,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&a.disabled){var u;(u=t.current.observer)===null||u===void 0||u.disconnect();let o=a===document.activeElement?null:document.activeElement;a.dispatchEvent(new FocusEvent("blur",{relatedTarget:o})),a.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:o}))}}),t.current.observer.observe(a,{attributes:!0,attributeFilter:["disabled"]})}},[n])}function Gb(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:a}=e;const i=O.useCallback(l=>{if(l.target===l.currentTarget)return r&&r(l),a&&a(!1),!0},[r,a]),u=Yb(i),o=O.useCallback(l=>{l.target===l.currentTarget&&document.activeElement===l.target&&(n&&n(l),a&&a(!0),u(l))},[a,n,u]);return{focusProps:{onFocus:!t&&(n||a||r)?o:void 0,onBlur:!t&&(r||a)?i:void 0}}}let ln=null,zb=new Set,In=new Map,Bt=!1,Da=!1;function Or(e,t){for(let n of zb)n(e,t)}function Vb(e){return!(e.metaKey||!kb()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function hr(e){Bt=!0,Vb(e)&&(ln="keyboard",Or("keyboard",e))}function Ze(e){ln="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(Bt=!0,Or("pointer",e))}function cl(e){Hb(e)&&(Bt=!0,ln="virtual")}function fl(e){e.target===window||e.target===document||(!Bt&&!Da&&(ln="virtual",Or("virtual",e)),Bt=!1,Da=!1)}function dl(){Bt=!1,Da=!0}function Uu(e){if(typeof window>"u"||In.get(fr(e)))return;const t=fr(e),n=Hn(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){Bt=!0,r.apply(this,arguments)},n.addEventListener("keydown",hr,!0),n.addEventListener("keyup",hr,!0),n.addEventListener("click",cl,!0),t.addEventListener("focus",fl,!0),t.addEventListener("blur",dl,!1),typeof PointerEvent<"u"?(n.addEventListener("pointerdown",Ze,!0),n.addEventListener("pointermove",Ze,!0),n.addEventListener("pointerup",Ze,!0)):(n.addEventListener("mousedown",Ze,!0),n.addEventListener("mousemove",Ze,!0),n.addEventListener("mouseup",Ze,!0)),t.addEventListener("beforeunload",()=>{hl(e)},{once:!0}),In.set(t,{focus:r})}const hl=(e,t)=>{const n=fr(e),r=Hn(e);t&&r.removeEventListener("DOMContentLoaded",t),In.has(n)&&(n.HTMLElement.prototype.focus=In.get(n).focus,r.removeEventListener("keydown",hr,!0),r.removeEventListener("keyup",hr,!0),r.removeEventListener("click",cl,!0),n.removeEventListener("focus",fl,!0),n.removeEventListener("blur",dl,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",Ze,!0),r.removeEventListener("pointermove",Ze,!0),r.removeEventListener("pointerup",Ze,!0)):(r.removeEventListener("mousedown",Ze,!0),r.removeEventListener("mousemove",Ze,!0),r.removeEventListener("mouseup",Ze,!0)),In.delete(n))};function qb(e){const t=Hn(e);let n;return t.readyState!=="loading"?Uu(e):(n=()=>{Uu(e)},t.addEventListener("DOMContentLoaded",n)),()=>hl(e,n)}typeof document<"u"&&qb();function Wb(){return ln}function Xb(e){ln=e,Or(e,null)}function ju(e){if(!e)return;let t=!0;return n=>{let r={...n,preventDefault(){n.preventDefault()},isDefaultPrevented(){return n.isDefaultPrevented()},stopPropagation(){console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior.")},continuePropagation(){t=!1}};e(r),t&&n.stopPropagation()}}function Qb(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:ju(e.onKeyDown),onKeyUp:ju(e.onKeyUp)}}}function Kb(e){const t=Hn(e);if(Wb()==="virtual"){let n=t.activeElement;Mb(()=>{t.activeElement===n&&e.isConnected&&Fu(e)})}else Fu(e)}function Zb(e,t){return!e||!t?!1:t.some(n=>n.contains(e))}class li{get size(){return this.fastMap.size}getTreeNode(t){return this.fastMap.get(t)}addTreeNode(t,n,r){let a=this.fastMap.get(n??null);if(!a)return;let i=new $u({scopeRef:t});a.addChild(i),i.parent=a,this.fastMap.set(t,i),r&&(i.nodeToRestore=r)}addNode(t){this.fastMap.set(t.scopeRef,t)}removeTreeNode(t){if(t===null)return;let n=this.fastMap.get(t);if(!n)return;let r=n.parent;for(let i of this.traverse())i!==n&&n.nodeToRestore&&i.nodeToRestore&&n.scopeRef&&n.scopeRef.current&&Zb(i.nodeToRestore,n.scopeRef.current)&&(i.nodeToRestore=n.nodeToRestore);let a=n.children;r&&(r.removeChild(n),a.size>0&&a.forEach(i=>r&&r.addChild(i))),this.fastMap.delete(n.scopeRef)}*traverse(t=this.root){if(t.scopeRef!=null&&(yield t),t.children.size>0)for(let n of t.children)yield*this.traverse(n)}clone(){var t;let n=new li;var r;for(let a of this.traverse())n.addTreeNode(a.scopeRef,(r=(t=a.parent)===null||t===void 0?void 0:t.scopeRef)!==null&&r!==void 0?r:null,a.nodeToRestore);return n}constructor(){this.fastMap=new Map,this.root=new $u({scopeRef:null}),this.fastMap.set(null,this.root)}}class $u{addChild(t){this.children.add(t),t.parent=this}removeChild(t){this.children.delete(t),t.parent=void 0}constructor(t){this.children=new Set,this.contain=!1,this.scopeRef=t.scopeRef}}new li;let Jb=O.createContext(null);function eg(e){let t=O.useContext(Jb)||{};Fb(t,e);let{ref:n,...r}=t;return r}function tg(e,t){let{focusProps:n}=Gb(e),{keyboardProps:r}=Qb(e),a=dr(n,r),i=eg(t),u=e.isDisabled?{}:i,o=O.useRef(e.autoFocus);return O.useEffect(()=>{o.current&&t.current&&Kb(t.current),o.current=!1},[t]),{focusableProps:dr({...a,tabIndex:e.excludeFromTabOrder&&!e.isDisabled?-1:void 0},u)}}function ng(e,t,n){let{validationBehavior:r,focus:a}=e;jt(()=>{if(r==="native"&&n?.current){let l=t.realtimeValidation.isInvalid?t.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";n.current.setCustomValidity(l),n.current.hasAttribute("title")||(n.current.title=""),t.realtimeValidation.isInvalid||t.updateValidation(ag(n.current))}});let i=wt(()=>{t.resetValidation()}),u=wt(l=>{var c;t.displayValidation.isInvalid||t.commitValidation();let f=n==null||(c=n.current)===null||c===void 0?void 0:c.form;if(!l.defaultPrevented&&n&&f&&ig(f)===n.current){var d;a?a():(d=n.current)===null||d===void 0||d.focus(),Xb("keyboard")}l.preventDefault()}),o=wt(()=>{t.commitValidation()});O.useEffect(()=>{let l=n?.current;if(!l)return;let c=l.form;return l.addEventListener("invalid",u),l.addEventListener("change",o),c?.addEventListener("reset",i),()=>{l.removeEventListener("invalid",u),l.removeEventListener("change",o),c?.removeEventListener("reset",i)}},[n,u,o,i,r])}function rg(e){let t=e.validity;return{badInput:t.badInput,customError:t.customError,patternMismatch:t.patternMismatch,rangeOverflow:t.rangeOverflow,rangeUnderflow:t.rangeUnderflow,stepMismatch:t.stepMismatch,tooLong:t.tooLong,tooShort:t.tooShort,typeMismatch:t.typeMismatch,valueMissing:t.valueMissing,valid:t.valid}}function ag(e){return{isInvalid:!e.validity.valid,validationDetails:rg(e),validationErrors:e.validationMessage?[e.validationMessage]:[]}}function ig(e){for(let t=0;t<e.elements.length;t++){let n=e.elements[t];if(!n.validity.valid)return n}return null}const ml={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},pl={...ml,customError:!0,valid:!1},pn={isInvalid:!1,validationDetails:ml,validationErrors:[]},ug=O.createContext({}),Yu="__formValidationState"+Date.now();function sg(e){if(e[Yu]){let{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:a,commitValidation:i}=e[Yu];return{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:a,commitValidation:i}}return og(e)}function og(e){let{isInvalid:t,validationState:n,name:r,value:a,builtinValidation:i,validate:u,validationBehavior:o="aria"}=e;n&&(t||(t=n==="invalid"));let l=t?{isInvalid:!0,validationErrors:[],validationDetails:pl}:null,c=O.useMemo(()=>Gu(lg(u,a)),[u,a]);i?.validationDetails.valid&&(i=null);let f=O.useContext(ug),d=O.useMemo(()=>r?Array.isArray(r)?r.flatMap(z=>ka(f[z])):ka(f[r]):[],[f,r]),[h,m]=O.useState(f),[y,A]=O.useState(!1);f!==h&&(m(f),A(!1));let v=O.useMemo(()=>Gu(y?[]:d),[y,d]),x=O.useRef(pn),[P,R]=O.useState(pn),B=O.useRef(pn),C=()=>{if(!N)return;Q(!1);let z=c||i||x.current;Jr(z,B.current)||(B.current=z,R(z))},[N,Q]=O.useState(!1);return O.useEffect(C),{realtimeValidation:l||v||c||i||pn,displayValidation:o==="native"?l||v||P:l||v||c||i||P,updateValidation(z){o==="aria"&&!Jr(P,z)?R(z):x.current=z},resetValidation(){let z=pn;Jr(z,B.current)||(B.current=z,R(z)),o==="native"&&Q(!1),A(!0)},commitValidation(){o==="native"&&Q(!0),A(!0)}}}function ka(e){return e?Array.isArray(e)?e:[e]:[]}function lg(e,t){if(typeof e=="function"){let n=e(t);if(n&&typeof n!="boolean")return ka(n)}return[]}function Gu(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:pl}:null}function Jr(e,t){return e===t?!0:e&&t&&e.isInvalid===t.isInvalid&&e.validationErrors.length===t.validationErrors.length&&e.validationErrors.every((n,r)=>n===t.validationErrors[r])&&Object.entries(e.validationDetails).every(([n,r])=>t.validationDetails[n]===r)}function cg(e){let{id:t,label:n,"aria-labelledby":r,"aria-label":a,labelElementType:i="label"}=e;t=cr(t);let u=cr(),o={};n?(r=r?`${u} ${r}`:u,o={id:u,htmlFor:i==="label"?t:void 0}):!r&&!a&&console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility");let l=Bb({id:t,"aria-label":a,"aria-labelledby":r});return{labelProps:o,fieldProps:l}}function fg(e){let{description:t,errorMessage:n,isInvalid:r,validationState:a}=e,{labelProps:i,fieldProps:u}=cg(e),o=Bu([!!t,!!n,r,a]),l=Bu([!!t,!!n,r,a]);return u=dr(u,{"aria-describedby":[o,l,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:i,fieldProps:u,descriptionProps:{id:o},errorMessageProps:{id:l}}}function dg(e,t){let{inputElementType:n="input",isDisabled:r=!1,isRequired:a=!1,isReadOnly:i=!1,type:u="text",validationBehavior:o="aria"}=e,[l,c]=ob(e.value,e.defaultValue||"",e.onChange),{focusableProps:f}=tg(e,t),d=sg({...e,value:l}),{isInvalid:h,validationErrors:m,validationDetails:y}=d.displayValidation,{labelProps:A,fieldProps:v,descriptionProps:x,errorMessageProps:P}=fg({...e,isInvalid:h,errorMessage:e.errorMessage||m}),R=Ob(e,{labelable:!0});const B={type:u,pattern:e.pattern};return Ub(t,l,c),ng(e,d,t),O.useEffect(()=>{if(t.current instanceof fr(t.current).HTMLTextAreaElement){let C=t.current;Object.defineProperty(C,"defaultValue",{get:()=>C.value,set:()=>{},configurable:!0})}},[t]),{labelProps:A,inputProps:dr(R,n==="input"&&B,{disabled:r,readOnly:i,required:a&&o==="native","aria-required":a&&o==="aria"||void 0,"aria-invalid":h||void 0,"aria-errormessage":e["aria-errormessage"],"aria-activedescendant":e["aria-activedescendant"],"aria-autocomplete":e["aria-autocomplete"],"aria-haspopup":e["aria-haspopup"],value:l,onChange:C=>c(C.target.value),autoComplete:e.autoComplete,autoCapitalize:e.autoCapitalize,maxLength:e.maxLength,minLength:e.minLength,name:e.name,placeholder:e.placeholder,inputMode:e.inputMode,onCopy:e.onCopy,onCut:e.onCut,onPaste:e.onPaste,onCompositionEnd:e.onCompositionEnd,onCompositionStart:e.onCompositionStart,onCompositionUpdate:e.onCompositionUpdate,onSelect:e.onSelect,onBeforeInput:e.onBeforeInput,onInput:e.onInput,...f,...v}),descriptionProps:x,errorMessageProps:P,isInvalid:h,validationErrors:m,validationDetails:y}}const hg=e=>e.charCodeAt(e.length-1)===10,mg=e=>{const[t,n]=O.useState(""),r=()=>{h.current&&(h.current.style.height=h.current.scrollHeight+"px")},a=()=>{h.current&&(h.current.style.height="48px")},i=B=>{n(B)};O.useEffect(r,[t]);let{label:u,SubmitComponent:o,onSubmit:l,isLoadingStream:c,LoadingComponent:f,onPressLoadingButton:d}=e,h=O.useRef(null),{labelProps:m,inputProps:y}=dg({...e,inputElementType:"textarea"},h);const A=B=>{hg(B.target.value)||i(B.target.value)},v=B=>{(B.code==="Enter"||B.code==="NumpadEnter")&&(B.shiftKey?i(t+`
|
|
71
|
-
`):P())};let x=e.isDisabled;e.shouldDisableIfInputIsEmpty&&(x=e.isDisabled||t.length===0);const P=()=>{a(),l&&l(t),i("")},R=()=>{d&&d()};return L.jsxs("div",{style:{display:"flex",flexDirection:"column"},className:`${e.classNameContainer} w-fu`,children:[L.jsxs("div",{style:{display:"flex",flexDirection:"column"},children:[L.jsx("label",{...m,className:e.classNameLabel,children:u}),L.jsx("textarea",{...
|
|
70
|
+
`,children:L.jsx($a,{facet:e.agent.display[Ye.AgentDisplayFacetRoleType.ASSISTANT]})})},Bu=new Set;function sb(e){return Bu.has(e)?!1:(Bu.add(e),!0)}function ob(e,{root:t,rootSelector:n,rootMargin:r="0px",threshold:a=0,dedupeKey:i}={}){const u=N.useRef(!1),o=N.useRef();return N.useCallback(c=>{if(o.current?.(),o.current=void 0,!c||u.current)return;const f=t??(n?document.querySelector(n):null),d=()=>{i&&!sb(i)||(u.current=!0,e())};if(typeof window>"u"||!("IntersectionObserver"in window)){d();return}const h=new IntersectionObserver((m,_)=>{m[0]?.isIntersecting&&(_.disconnect(),d())},{root:f,rootMargin:r,threshold:a});h.observe(c),o.current=()=>h.disconnect()},[t,n,r,a,i,e])}function lb({href:e="",children:t,context:n,onClick:r,seenRootEl:a,...i}){const u=e.startsWith("/")||typeof window<"u"&&e.startsWith(window.location.origin),o=Nn.getApiUrl(),l=()=>{const _=`${o}/tracking/clicked/${n.appToken}`,A={discussionId:n.discussionId,urlClicked:e};try{fetch(_,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(A),keepalive:!0,cache:"no-store",credentials:"omit",mode:"cors"}).catch(()=>{})}catch{}},c=()=>{const _=`${o}/tracking/displayed/${n.appToken}`,A={discussionId:n.discussionId,urlSeen:e};try{fetch(_,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(A),keepalive:!0,cache:"no-store",credentials:"omit",mode:"cors"}).catch(()=>{})}catch{}},f=N.useMemo(()=>`${n.appToken}::${n.discussionId}::${e}`,[n.appToken,n.discussionId,e]),d=ob(c,{root:a,threshold:0,rootMargin:"0px 0px -10% 0px",dedupeKey:f}),h=_=>{l(),r?.(_)},m=u?{}:{target:"_blank",rel:"noopener noreferrer"};return u?L.jsx("a",{ref:d,href:e,...i,onClick:h,className:"customLinkInternal",children:t}):L.jsx("a",{ref:d,href:e,...m,...i,onClick:h,className:"customLinkExternal",children:t})}const cb=({content:e,metaData:t,context:n,seenRootEl:r})=>{const{chatlineLabelAssistantTranslation:a}=Ya();return L.jsxs("div",{className:"flex justify-between mt-8 px-3 chatLineAssistant",children:[L.jsx("div",{className:"w-10 mr-3 mt-6",children:L.jsx("div",{children:L.jsx(ub,{})})}),L.jsxs("div",{className:`w-full p-4 rounded-lg transition-all duration-300 ${t?.isErrorMessage?"bg-red-100 border-l-4 border-red-400 text-red-800 shadow-md animate-fade-in":"bg-white text-gray-800"}`,children:[L.jsx("p",{className:"font-bold",children:a}),L.jsx("div",{children:L.jsx(yo,{rehypePlugins:[ol],components:{a:({node:i,href:u,children:o,...l})=>L.jsx(lb,{href:u??"",...l,context:n,seenRootEl:r,children:o})},children:e&&e})})]})]})},fb=({userType:e,content:t,metaData:n,context:r,seenRootEl:a})=>{const i=e==="user",u=e==="assistant";return L.jsxs(L.Fragment,{children:[i&&L.jsx(ib,{content:t,metaData:n}),u&&L.jsx(cb,{content:t,metaData:n,context:r,seenRootEl:a})]})};function db(e,t,n){let[r,a]=N.useState(e||t),i=N.useRef(e!==void 0),u=e!==void 0;N.useEffect(()=>{let c=i.current;c!==u&&console.warn(`WARN: A component changed from ${c?"controlled":"uncontrolled"} to ${u?"controlled":"uncontrolled"}.`),i.current=u},[u]);let o=u?e:r,l=N.useCallback((c,...f)=>{let d=(h,...m)=>{n&&(Object.is(o,h)||n(h,...m)),u||(o=h)};typeof c=="function"?(console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),a((m,..._)=>{let A=c(u?o:m,..._);return d(A,...f),u?m:A})):(u||a(c),d(c,...f))},[u,o,n]);return[o,l]}const or={prefix:String(Math.round(Math.random()*1e10)),current:0},ll=N.createContext(or),hb=N.createContext(!1);let mb=!!(typeof window<"u"&&window.document&&window.document.createElement),Zr=new WeakMap;function pb(e=!1){let t=N.useContext(ll),n=N.useRef(null);if(n.current===null&&!e){var r,a;let i=(a=N.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||a===void 0||(r=a.ReactCurrentOwner)===null||r===void 0?void 0:r.current;if(i){let u=Zr.get(i);u==null?Zr.set(i,{id:t.current,state:i.memoizedState}):i.memoizedState!==u.state&&(t.current=u.id,Zr.delete(i))}n.current=++t.current}return n.current}function Eb(e){let t=N.useContext(ll);t===or&&!mb&&console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let n=pb(!!e),r=t===or&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${t.prefix}`;return e||`${r}-${n}`}function bb(e){let t=N.useId(),[n]=N.useState(yb()),r=n||process.env.NODE_ENV==="test"?"react-aria":`react-aria${or.prefix}`;return e||`${r}-${t}`}const gb=typeof N.useId=="function"?bb:Eb;function Tb(){return!1}function Ab(){return!0}function _b(e){return()=>{}}function yb(){return typeof N.useSyncExternalStore=="function"?N.useSyncExternalStore(_b,Tb,Ab):N.useContext(hb)}function cl(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(n=cl(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function xb(){for(var e,t,n=0,r="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=cl(e))&&(r&&(r+=" "),r+=t);return r}const jt=typeof document<"u"?N.useLayoutEffect:()=>{};function wt(e){const t=N.useRef(null);return jt(()=>{t.current=e},[e]),N.useCallback((...n)=>{const r=t.current;return r?.(...n)},[])}function Sb(e){let[t,n]=N.useState(e),r=N.useRef(null),a=wt(()=>{if(!r.current)return;let u=r.current.next();if(u.done){r.current=null;return}t===u.value?a():n(u.value)});jt(()=>{r.current&&a()});let i=wt(u=>{r.current=u(t),a()});return[t,i]}let Cb=!!(typeof window<"u"&&window.document&&window.document.createElement),lr=new Map;function cr(e){let[t,n]=N.useState(e),r=N.useRef(null),a=gb(t),i=N.useCallback(u=>{r.current=u},[]);return Cb&&lr.set(a,i),jt(()=>{let u=a;return()=>{lr.delete(u)}},[a]),N.useEffect(()=>{let u=r.current;u&&(r.current=null,n(u))}),a}function Ib(e,t){if(e===t)return e;let n=lr.get(e);if(n)return n(t),t;let r=lr.get(t);return r?(r(e),e):t}function Fu(e=[]){let t=cr(),[n,r]=Sb(t),a=N.useCallback(()=>{r(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,r]);return jt(a,[t,a,...e]),n}function Nb(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}const Un=e=>{var t;return(t=e?.ownerDocument)!==null&&t!==void 0?t:document},fr=e=>e&&"window"in e&&e.window===e?e:Un(e).defaultView||window;function dr(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let r=e[n];for(let a in r){let i=t[a],u=r[a];typeof i=="function"&&typeof u=="function"&&a[0]==="o"&&a[1]==="n"&&a.charCodeAt(2)>=65&&a.charCodeAt(2)<=90?t[a]=Nb(i,u):(a==="className"||a==="UNSAFE_className")&&typeof i=="string"&&typeof u=="string"?t[a]=xb(i,u):a==="id"&&i&&u?t.id=Ib(i,u):t[a]=u!==void 0?u:i}}return t}const Ob=new Set(["id"]),Lb=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),Rb=new Set(["href","target","rel","download","ping","referrerPolicy"]),vb=/^(data-.*)$/;function Pb(e,t={}){let{labelable:n,isLink:r,propNames:a}=t,i={};for(const u in e)Object.prototype.hasOwnProperty.call(e,u)&&(Ob.has(u)||n&&Lb.has(u)||r&&Rb.has(u)||a?.has(u)||vb.test(u))&&(i[u]=e[u]);return i}function Hu(e){if(Db())e.focus({preventScroll:!0});else{let t=kb(e);e.focus(),wb(t)}}let Qn=null;function Db(){if(Qn==null){Qn=!1;try{document.createElement("div").focus({get preventScroll(){return Qn=!0,!0}})}catch{}}return Qn}function kb(e){let t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==r;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),n}function wb(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}function Mb(e){var t;return typeof window>"u"||window.navigator==null?!1:((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands.some(n=>e.test(n.brand)))||e.test(window.navigator.userAgent)}function Bb(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function Fb(){return Bb(/^Mac/i)}function Hb(){return Mb(/Android/i)}let qt=new Map,Pa=new Set;function Uu(){if(typeof window>"u")return;function e(r){return"propertyName"in r}let t=r=>{if(!e(r)||!r.target)return;let a=qt.get(r.target);a||(a=new Set,qt.set(r.target,a),r.target.addEventListener("transitioncancel",n,{once:!0})),a.add(r.propertyName)},n=r=>{if(!e(r)||!r.target)return;let a=qt.get(r.target);if(a&&(a.delete(r.propertyName),a.size===0&&(r.target.removeEventListener("transitioncancel",n),qt.delete(r.target)),qt.size===0)){for(let i of Pa)i();Pa.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",n)}typeof document<"u"&&(document.readyState!=="loading"?Uu():document.addEventListener("DOMContentLoaded",Uu));function Ub(e){requestAnimationFrame(()=>{qt.size===0?e():Pa.add(e)})}function jb(e,t){let{id:n,"aria-label":r,"aria-labelledby":a}=e;return n=cr(n),a&&r?a=[...new Set([n,...a.trim().split(/\s+/)])].join(" "):a&&(a=a.trim().split(/\s+/).join(" ")),!r&&!a&&t&&(r=t),{id:n,"aria-label":r,"aria-labelledby":a}}function $b(e,t){jt(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function Yb(e){return e.mozInputSource===0&&e.isTrusted?!0:Hb()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function Gb(e,t,n){let r=N.useRef(t),a=wt(()=>{n&&n(r.current)});N.useEffect(()=>{var i;let u=e==null||(i=e.current)===null||i===void 0?void 0:i.form;return u?.addEventListener("reset",a),()=>{u?.removeEventListener("reset",a)}},[e,a])}const zb=N.createContext({register:()=>{}});zb.displayName="PressResponderContext";class Vb{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(t,n){this.nativeEvent=n,this.target=n.target,this.currentTarget=n.currentTarget,this.relatedTarget=n.relatedTarget,this.bubbles=n.bubbles,this.cancelable=n.cancelable,this.defaultPrevented=n.defaultPrevented,this.eventPhase=n.eventPhase,this.isTrusted=n.isTrusted,this.timeStamp=n.timeStamp,this.type=t}}function qb(e){let t=N.useRef({isFocused:!1,observer:null});jt(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=wt(r=>{e?.(r)});return N.useCallback(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){t.current.isFocused=!0;let a=r.target,i=u=>{t.current.isFocused=!1,a.disabled&&n(new Vb("blur",u)),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};a.addEventListener("focusout",i,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&a.disabled){var u;(u=t.current.observer)===null||u===void 0||u.disconnect();let o=a===document.activeElement?null:document.activeElement;a.dispatchEvent(new FocusEvent("blur",{relatedTarget:o})),a.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:o}))}}),t.current.observer.observe(a,{attributes:!0,attributeFilter:["disabled"]})}},[n])}function Wb(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:a}=e;const i=N.useCallback(l=>{if(l.target===l.currentTarget)return r&&r(l),a&&a(!1),!0},[r,a]),u=qb(i),o=N.useCallback(l=>{l.target===l.currentTarget&&document.activeElement===l.target&&(n&&n(l),a&&a(!0),u(l))},[a,n,u]);return{focusProps:{onFocus:!t&&(n||a||r)?o:void 0,onBlur:!t&&(r||a)?i:void 0}}}let ln=null,Xb=new Set,In=new Map,Bt=!1,Da=!1;function Or(e,t){for(let n of Xb)n(e,t)}function Qb(e){return!(e.metaKey||!Fb()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function hr(e){Bt=!0,Qb(e)&&(ln="keyboard",Or("keyboard",e))}function Ze(e){ln="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(Bt=!0,Or("pointer",e))}function fl(e){Yb(e)&&(Bt=!0,ln="virtual")}function dl(e){e.target===window||e.target===document||(!Bt&&!Da&&(ln="virtual",Or("virtual",e)),Bt=!1,Da=!1)}function hl(){Bt=!1,Da=!0}function ju(e){if(typeof window>"u"||In.get(fr(e)))return;const t=fr(e),n=Un(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){Bt=!0,r.apply(this,arguments)},n.addEventListener("keydown",hr,!0),n.addEventListener("keyup",hr,!0),n.addEventListener("click",fl,!0),t.addEventListener("focus",dl,!0),t.addEventListener("blur",hl,!1),typeof PointerEvent<"u"?(n.addEventListener("pointerdown",Ze,!0),n.addEventListener("pointermove",Ze,!0),n.addEventListener("pointerup",Ze,!0)):(n.addEventListener("mousedown",Ze,!0),n.addEventListener("mousemove",Ze,!0),n.addEventListener("mouseup",Ze,!0)),t.addEventListener("beforeunload",()=>{ml(e)},{once:!0}),In.set(t,{focus:r})}const ml=(e,t)=>{const n=fr(e),r=Un(e);t&&r.removeEventListener("DOMContentLoaded",t),In.has(n)&&(n.HTMLElement.prototype.focus=In.get(n).focus,r.removeEventListener("keydown",hr,!0),r.removeEventListener("keyup",hr,!0),r.removeEventListener("click",fl,!0),n.removeEventListener("focus",dl,!0),n.removeEventListener("blur",hl,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",Ze,!0),r.removeEventListener("pointermove",Ze,!0),r.removeEventListener("pointerup",Ze,!0)):(r.removeEventListener("mousedown",Ze,!0),r.removeEventListener("mousemove",Ze,!0),r.removeEventListener("mouseup",Ze,!0)),In.delete(n))};function Kb(e){const t=Un(e);let n;return t.readyState!=="loading"?ju(e):(n=()=>{ju(e)},t.addEventListener("DOMContentLoaded",n)),()=>ml(e,n)}typeof document<"u"&&Kb();function Zb(){return ln}function Jb(e){ln=e,Or(e,null)}function $u(e){if(!e)return;let t=!0;return n=>{let r={...n,preventDefault(){n.preventDefault()},isDefaultPrevented(){return n.isDefaultPrevented()},stopPropagation(){console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior.")},continuePropagation(){t=!1}};e(r),t&&n.stopPropagation()}}function eg(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:$u(e.onKeyDown),onKeyUp:$u(e.onKeyUp)}}}function tg(e){const t=Un(e);if(Zb()==="virtual"){let n=t.activeElement;Ub(()=>{t.activeElement===n&&e.isConnected&&Hu(e)})}else Hu(e)}function ng(e,t){return!e||!t?!1:t.some(n=>n.contains(e))}class li{get size(){return this.fastMap.size}getTreeNode(t){return this.fastMap.get(t)}addTreeNode(t,n,r){let a=this.fastMap.get(n??null);if(!a)return;let i=new Yu({scopeRef:t});a.addChild(i),i.parent=a,this.fastMap.set(t,i),r&&(i.nodeToRestore=r)}addNode(t){this.fastMap.set(t.scopeRef,t)}removeTreeNode(t){if(t===null)return;let n=this.fastMap.get(t);if(!n)return;let r=n.parent;for(let i of this.traverse())i!==n&&n.nodeToRestore&&i.nodeToRestore&&n.scopeRef&&n.scopeRef.current&&ng(i.nodeToRestore,n.scopeRef.current)&&(i.nodeToRestore=n.nodeToRestore);let a=n.children;r&&(r.removeChild(n),a.size>0&&a.forEach(i=>r&&r.addChild(i))),this.fastMap.delete(n.scopeRef)}*traverse(t=this.root){if(t.scopeRef!=null&&(yield t),t.children.size>0)for(let n of t.children)yield*this.traverse(n)}clone(){var t;let n=new li;var r;for(let a of this.traverse())n.addTreeNode(a.scopeRef,(r=(t=a.parent)===null||t===void 0?void 0:t.scopeRef)!==null&&r!==void 0?r:null,a.nodeToRestore);return n}constructor(){this.fastMap=new Map,this.root=new Yu({scopeRef:null}),this.fastMap.set(null,this.root)}}class Yu{addChild(t){this.children.add(t),t.parent=this}removeChild(t){this.children.delete(t),t.parent=void 0}constructor(t){this.children=new Set,this.contain=!1,this.scopeRef=t.scopeRef}}new li;let rg=N.createContext(null);function ag(e){let t=N.useContext(rg)||{};$b(t,e);let{ref:n,...r}=t;return r}function ig(e,t){let{focusProps:n}=Wb(e),{keyboardProps:r}=eg(e),a=dr(n,r),i=ag(t),u=e.isDisabled?{}:i,o=N.useRef(e.autoFocus);return N.useEffect(()=>{o.current&&t.current&&tg(t.current),o.current=!1},[t]),{focusableProps:dr({...a,tabIndex:e.excludeFromTabOrder&&!e.isDisabled?-1:void 0},u)}}function ug(e,t,n){let{validationBehavior:r,focus:a}=e;jt(()=>{if(r==="native"&&n?.current){let l=t.realtimeValidation.isInvalid?t.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";n.current.setCustomValidity(l),n.current.hasAttribute("title")||(n.current.title=""),t.realtimeValidation.isInvalid||t.updateValidation(og(n.current))}});let i=wt(()=>{t.resetValidation()}),u=wt(l=>{var c;t.displayValidation.isInvalid||t.commitValidation();let f=n==null||(c=n.current)===null||c===void 0?void 0:c.form;if(!l.defaultPrevented&&n&&f&&lg(f)===n.current){var d;a?a():(d=n.current)===null||d===void 0||d.focus(),Jb("keyboard")}l.preventDefault()}),o=wt(()=>{t.commitValidation()});N.useEffect(()=>{let l=n?.current;if(!l)return;let c=l.form;return l.addEventListener("invalid",u),l.addEventListener("change",o),c?.addEventListener("reset",i),()=>{l.removeEventListener("invalid",u),l.removeEventListener("change",o),c?.removeEventListener("reset",i)}},[n,u,o,i,r])}function sg(e){let t=e.validity;return{badInput:t.badInput,customError:t.customError,patternMismatch:t.patternMismatch,rangeOverflow:t.rangeOverflow,rangeUnderflow:t.rangeUnderflow,stepMismatch:t.stepMismatch,tooLong:t.tooLong,tooShort:t.tooShort,typeMismatch:t.typeMismatch,valueMissing:t.valueMissing,valid:t.valid}}function og(e){return{isInvalid:!e.validity.valid,validationDetails:sg(e),validationErrors:e.validationMessage?[e.validationMessage]:[]}}function lg(e){for(let t=0;t<e.elements.length;t++){let n=e.elements[t];if(!n.validity.valid)return n}return null}const pl={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},El={...pl,customError:!0,valid:!1},pn={isInvalid:!1,validationDetails:pl,validationErrors:[]},cg=N.createContext({}),Gu="__formValidationState"+Date.now();function fg(e){if(e[Gu]){let{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:a,commitValidation:i}=e[Gu];return{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:a,commitValidation:i}}return dg(e)}function dg(e){let{isInvalid:t,validationState:n,name:r,value:a,builtinValidation:i,validate:u,validationBehavior:o="aria"}=e;n&&(t||(t=n==="invalid"));let l=t?{isInvalid:!0,validationErrors:[],validationDetails:El}:null,c=N.useMemo(()=>zu(hg(u,a)),[u,a]);i?.validationDetails.valid&&(i=null);let f=N.useContext(cg),d=N.useMemo(()=>r?Array.isArray(r)?r.flatMap(z=>ka(f[z])):ka(f[r]):[],[f,r]),[h,m]=N.useState(f),[_,A]=N.useState(!1);f!==h&&(m(f),A(!1));let v=N.useMemo(()=>zu(_?[]:d),[_,d]),x=N.useRef(pn),[P,R]=N.useState(pn),B=N.useRef(pn),C=()=>{if(!O)return;Q(!1);let z=c||i||x.current;Jr(z,B.current)||(B.current=z,R(z))},[O,Q]=N.useState(!1);return N.useEffect(C),{realtimeValidation:l||v||c||i||pn,displayValidation:o==="native"?l||v||P:l||v||c||i||P,updateValidation(z){o==="aria"&&!Jr(P,z)?R(z):x.current=z},resetValidation(){let z=pn;Jr(z,B.current)||(B.current=z,R(z)),o==="native"&&Q(!1),A(!0)},commitValidation(){o==="native"&&Q(!0),A(!0)}}}function ka(e){return e?Array.isArray(e)?e:[e]:[]}function hg(e,t){if(typeof e=="function"){let n=e(t);if(n&&typeof n!="boolean")return ka(n)}return[]}function zu(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:El}:null}function Jr(e,t){return e===t?!0:e&&t&&e.isInvalid===t.isInvalid&&e.validationErrors.length===t.validationErrors.length&&e.validationErrors.every((n,r)=>n===t.validationErrors[r])&&Object.entries(e.validationDetails).every(([n,r])=>t.validationDetails[n]===r)}function mg(e){let{id:t,label:n,"aria-labelledby":r,"aria-label":a,labelElementType:i="label"}=e;t=cr(t);let u=cr(),o={};n?(r=r?`${u} ${r}`:u,o={id:u,htmlFor:i==="label"?t:void 0}):!r&&!a&&console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility");let l=jb({id:t,"aria-label":a,"aria-labelledby":r});return{labelProps:o,fieldProps:l}}function pg(e){let{description:t,errorMessage:n,isInvalid:r,validationState:a}=e,{labelProps:i,fieldProps:u}=mg(e),o=Fu([!!t,!!n,r,a]),l=Fu([!!t,!!n,r,a]);return u=dr(u,{"aria-describedby":[o,l,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:i,fieldProps:u,descriptionProps:{id:o},errorMessageProps:{id:l}}}function Eg(e,t){let{inputElementType:n="input",isDisabled:r=!1,isRequired:a=!1,isReadOnly:i=!1,type:u="text",validationBehavior:o="aria"}=e,[l,c]=db(e.value,e.defaultValue||"",e.onChange),{focusableProps:f}=ig(e,t),d=fg({...e,value:l}),{isInvalid:h,validationErrors:m,validationDetails:_}=d.displayValidation,{labelProps:A,fieldProps:v,descriptionProps:x,errorMessageProps:P}=pg({...e,isInvalid:h,errorMessage:e.errorMessage||m}),R=Pb(e,{labelable:!0});const B={type:u,pattern:e.pattern};return Gb(t,l,c),ug(e,d,t),N.useEffect(()=>{if(t.current instanceof fr(t.current).HTMLTextAreaElement){let C=t.current;Object.defineProperty(C,"defaultValue",{get:()=>C.value,set:()=>{},configurable:!0})}},[t]),{labelProps:A,inputProps:dr(R,n==="input"&&B,{disabled:r,readOnly:i,required:a&&o==="native","aria-required":a&&o==="aria"||void 0,"aria-invalid":h||void 0,"aria-errormessage":e["aria-errormessage"],"aria-activedescendant":e["aria-activedescendant"],"aria-autocomplete":e["aria-autocomplete"],"aria-haspopup":e["aria-haspopup"],value:l,onChange:C=>c(C.target.value),autoComplete:e.autoComplete,autoCapitalize:e.autoCapitalize,maxLength:e.maxLength,minLength:e.minLength,name:e.name,placeholder:e.placeholder,inputMode:e.inputMode,onCopy:e.onCopy,onCut:e.onCut,onPaste:e.onPaste,onCompositionEnd:e.onCompositionEnd,onCompositionStart:e.onCompositionStart,onCompositionUpdate:e.onCompositionUpdate,onSelect:e.onSelect,onBeforeInput:e.onBeforeInput,onInput:e.onInput,...f,...v}),descriptionProps:x,errorMessageProps:P,isInvalid:h,validationErrors:m,validationDetails:_}}const bg=e=>e.charCodeAt(e.length-1)===10,gg=e=>{const[t,n]=N.useState(""),r=()=>{h.current&&(h.current.style.height=h.current.scrollHeight+"px")},a=()=>{h.current&&(h.current.style.height="48px")},i=B=>{n(B)};N.useEffect(r,[t]);let{label:u,SubmitComponent:o,onSubmit:l,isLoadingStream:c,LoadingComponent:f,onPressLoadingButton:d}=e,h=N.useRef(null),{labelProps:m,inputProps:_}=Eg({...e,inputElementType:"textarea"},h);const A=B=>{bg(B.target.value)||i(B.target.value)},v=B=>{(B.code==="Enter"||B.code==="NumpadEnter")&&(B.shiftKey?i(t+`
|
|
71
|
+
`):P())};let x=e.isDisabled;e.shouldDisableIfInputIsEmpty&&(x=e.isDisabled||t.length===0);const P=()=>{a(),l&&l(t),i("")},R=()=>{d&&d()};return L.jsxs("div",{style:{display:"flex",flexDirection:"column"},className:`${e.classNameContainer} w-fu`,children:[L.jsxs("div",{style:{display:"flex",flexDirection:"column"},children:[L.jsx("label",{...m,className:e.classNameLabel,children:u}),L.jsx("textarea",{..._,ref:h,className:`${e.classNameTextarea} p-3`,onChange:A,value:t,rows:1,style:{overflow:"hidden",outlineColor:"#a8a8a8",border:"none",outline:"none",width:"calc(100% - 30px)",resize:"none"},onKeyDown:v})]}),!c&&o&&L.jsx("div",{className:"relative",children:L.jsx(o,{onSubmitButton:P,isDisabled:x})}),c&&f&&L.jsx("div",{className:"relative",children:L.jsx(f,{onPressLoadingButton:R})})]})},Tg=({onSubmitButton:e,isDisabled:t})=>L.jsx("div",{children:L.jsx("button",{className:`absolute
|
|
72
72
|
bg-black
|
|
73
73
|
md:bottom-2
|
|
74
74
|
md:right-3
|
|
@@ -84,25 +84,25 @@ For more details see https://formatjs.io/docs/getting-started/message-distributi
|
|
|
84
84
|
rounded-lg
|
|
85
85
|
dark:border-white
|
|
86
86
|
dark:bg-white
|
|
87
|
-
transition-colors`,"data-testid":"send-button",onClick:e,disabled:t,children:L.jsx("span",{className:"","data-state":"closed",children:L.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",className:"text-white dark:text-black",children:L.jsx("path",{d:"M7 11L12 6L17 11M12 18V7",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})})}),
|
|
87
|
+
transition-colors`,"data-testid":"send-button",onClick:e,disabled:t,children:L.jsx("span",{className:"","data-state":"closed",children:L.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",className:"text-white dark:text-black",children:L.jsx("path",{d:"M7 11L12 6L17 11M12 18V7",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})})}),Ag=e=>/(\[.*|\!\[.*)$/.test(e),_g=e=>/\)/.test(e),yg=e=>e.filter(t=>t.userType==="user").length;var bl=(e=>(e.GET_DISCUSSION_ID="/id",e))(bl||{});const xg=e=>!!e.startsWith("/"),Sg=(e,t)=>e===bl.GET_DISCUSSION_ID?t?`Votre ID de discussion est ${t}`:"Votre ID de discussion n'est pas encore défini. Envoyez un premier message pour que ce soit le cas.":`La commande ${e} n'est pas prise en compte.`;var bn=(e=>(e.OUTPUT_STREAM_TEXT_TYPE="text",e.OUTPUT_STREAM_NUMBER_OF_STEPS_TYPE="number_of_steps",e.OUTPUT_STREAM_CURRENT_STEP_NUMBER_TYPE="current_step_number",e.OUTPUT_STREAM_CURRENT_STEP_NAME_TYPE="current_step_name",e))(bn||{});class zt{constructor(){}static transformStringifiedObjectIntoArrayOfObjects=t=>{const r=t.split("}").map(u=>u.startsWith("{")?u+="}":null),a=r.filter(u=>!!u);let i;try{i=a.map(u=>JSON.parse(u))}catch{console.warn("Could not parse the objects. Objects received :"),console.warn("Initial objects :",t),console.warn("objectsCompleted :",r),console.warn("objectsCleaned :",a)}return i};static isObjectOutputstreamTextDTO=t=>t.type===bn.OUTPUT_STREAM_TEXT_TYPE;static isObjectOutputstreamLoadingNumberOfStepsDTO=t=>t.type===bn.OUTPUT_STREAM_NUMBER_OF_STEPS_TYPE;static isObjectOutputstreamLoadingCurrentStepNumberDTO=t=>t.type===bn.OUTPUT_STREAM_CURRENT_STEP_NUMBER_TYPE;static isObjectOutputstreamLoadingCurrentStepNameDTO=t=>t.type===bn.OUTPUT_STREAM_CURRENT_STEP_NAME_TYPE;static containsObjectWithLastAnswerToTrue=t=>{for(const n of t)if(this.isObjectOutputstreamTextDTO(n)&&n.isLastAnswer)return!0;return!1}}const gl=()=>{const e=Pn(),t=e.formatMessage({defaultMessage:"Search",id:"chatbot.chatline.loading.function.search"}),n=e.formatMessage({defaultMessage:"Looking into the cavern",id:"chatbot.chatline.loading.function.extractProductName"}),r=e.formatMessage({defaultMessage:"Consulting the shadocks",id:"chatbot.chatline.loading.function.suggestProductName"}),a=e.formatMessage({defaultMessage:"Looking for ziboublis",id:"chatbot.chatline.loading.function.criteriaDefinition"}),i=e.formatMessage({defaultMessage:"Searching Stock",id:"chatbot.chatline.loading.function.searchStock"}),u=e.formatMessage({defaultMessage:"Step",id:"chatbot.chatline.loading.function.step"}),o=e.formatMessage({defaultMessage:"I'm looking for products",id:"chatbot.chatline.loading.function.genericSearchMessage"}),l=e.formatMessage({defaultMessage:"Cancel",id:"chatbot.chatline.loading.cancel"}),c=d=>d?d.includes("ExtractProductNames")?n:d.includes("SuggestProductNames")?r:d.includes("CreateCriteriasFromProductNames")||d.includes("CreateCriteriasOrProductNamesFromDiscussion")?a:d.includes("SearchStock")?i:"":t,f=c();return{searchTranslation:t,extractProductNameTranslation:n,criteriaDefinitionTranslation:a,searchStockTranslation:i,stepTranslation:u,getFunctionTranslated:c,defaultStartingStep:f,lookingForProductTranslation:o,cancelTranslation:l}},Cg=({})=>{const{companySettings:e}=N.useContext(kn);return L.jsx("div",{className:`search
|
|
88
88
|
transition
|
|
89
89
|
ease-in-out
|
|
90
90
|
delay-50
|
|
91
91
|
flex
|
|
92
92
|
justify-center
|
|
93
93
|
items-center
|
|
94
|
-
`,children:L.jsx($a,{facet:e.agent.display[Ye.AgentDisplayFacetRoleType.SEARCH]})})},
|
|
94
|
+
`,children:L.jsx($a,{facet:e.agent.display[Ye.AgentDisplayFacetRoleType.SEARCH]})})},Ig=({loadingStatus:e,currentStepName:t,currentStepNumber:n,numberOfSteps:r})=>{const{getFunctionTranslated:a,stepTranslation:i,lookingForProductTranslation:u}=gl();return L.jsx(L.Fragment,{children:e==="loadingIntermediaryStates"&&L.jsxs("div",{children:[L.jsxs("div",{children:[L.jsxs("p",{className:"text-center my-2 text-lg",children:[u,"..."]}),L.jsx("p",{className:"text-center my-1 text-md",children:t&&`${a(t)}`}),n&&L.jsxs("p",{className:"text-center my-2",children:[i,L.jsx("span",{children:" "}),n,"/",r]})]}),L.jsx("div",{className:"flex justify-center",children:L.jsx(Cg,{})})]})})},Ng=({onPressLoadingButton:e})=>L.jsx("div",{children:L.jsx("button",{className:"absolute bg-white md:bottom-2 md:right-3 dark:hover:bg-white right-2 bottom-1.5 disabled:opacity-10 disabled:text-gray-400 enabled:bg-white text-white p-0.5 border border-white rounded-lg dark:border-white dark:bg-white transition-colors","data-testid":"send-button",onClick:e,children:L.jsx("span",{className:"","data-state":"closed",children:L.jsxs("svg",{fill:"#000000",height:"24",width:"24",version:"1.1",id:"Capa_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 297 297",children:[L.jsx("g",{id:"SVGRepo_bgCarrier","stroke-width":"0"}),L.jsx("g",{id:"SVGRepo_tracerCarrier","stroke-linecap":"round","stroke-linejoin":"round"}),L.jsxs("g",{id:"SVGRepo_iconCarrier",children:[" ",L.jsx("path",{d:"M148.5,0C66.486,0,0,66.486,0,148.5S66.486,297,148.5,297S297,230.514,297,148.5S230.514,0,148.5,0z M213.292,190.121 c0,12.912-10.467,23.379-23.378,23.379H106.67c-12.911,0-23.378-10.467-23.378-23.379v-83.242c0-12.912,10.467-23.379,23.378-23.379 h83.244c12.911,0,23.378,10.467,23.378,23.379V190.121z"})," "]})]})})})}),Og=e=>{const t=N.useRef(null),[n,r]=N.useState(!1),a=N.useRef(!0),i=N.useRef(!1),u=N.useRef(0),o=()=>{const f=t.current,d=4;if(f){f.scrollTop<u.current-1&&(i.current=!1);const m=f.scrollHeight>f.clientHeight,_=f.scrollHeight-f.scrollTop<=f.clientHeight+d;r(m&&!_),a.current=_,u.current=f.scrollTop}},l=({smooth:f=!1,sticky:d=!1})=>{const h=t.current;d?(i.current=!0,a.current=!0):h&&h.scrollTo({top:h.scrollHeight,behavior:f?"smooth":"auto"}),h&&i.current&&h.scrollTo({top:h.scrollHeight,behavior:f?"smooth":"auto"})};return N.useEffect(()=>{o()},[e]),N.useEffect(()=>{const f=t.current;if(f)return f.addEventListener("scroll",o),o(),()=>{f.removeEventListener("scroll",o)}},[]),N.useLayoutEffect(()=>{i.current&&l({smooth:!1})},[e]),{scrollToBottom:l,removeStickyNess:()=>{i.current=!1},messagesContainerRef:t,showScrollButton:n}},Lg=()=>{const e=Pn(),t=e.formatMessage({defaultMessage:"Discussion limit reached",id:"chatbot.DiscussionLimitReached.title"}),n=e.formatMessage({defaultMessage:"The discussion has reached its maximum number of messages. Please start a new one.",id:"chatbot.DiscussionLimitReached.explaination"}),r=e.formatMessage({defaultMessage:"Restart",id:"chatbot.DiscussionLimitReached.cta"});return{DiscussionLimitReachedTitleTranslation:t,DiscussionLimitReachedExplainationTranslation:n,DiscussionLimitReachedCtaTranslation:r}},Rg=e=>De.createElement("svg",{width:"800px",height:"800px",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},De.createElement("g",{clipPath:"url(#clip0_1276_7761)"},De.createElement("path",{d:"M19.7285 10.9288C20.4413 13.5978 19.7507 16.5635 17.6569 18.6573C15.1798 21.1344 11.4826 21.6475 8.5 20.1966M18.364 8.05071L17.6569 7.3436C14.5327 4.21941 9.46736 4.21941 6.34316 7.3436C3.42964 10.2571 3.23318 14.8588 5.75376 18M18.364 8.05071H14.1213M18.364 8.05071V3.80807",stroke:"#1C274C",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),De.createElement("defs",null,De.createElement("clipPath",{id:"clip0_1276_7761"},De.createElement("rect",{width:24,height:24,fill:"white"})))),vg=({resetDiscussion:e})=>{const{DiscussionLimitReachedCtaTranslation:t,DiscussionLimitReachedExplainationTranslation:n,DiscussionLimitReachedTitleTranslation:r}=Lg();return L.jsx(L.Fragment,{children:L.jsx("div",{className:"px-3 mt-4",children:L.jsxs("div",{role:"status","aria-live":"polite",className:"info-banner not-prose flex items-start gap-3 rounded-lg bg-blue-50 border-l-4 border-blue-500 p-4 shadow-sm",children:[L.jsx("div",{className:"flex flex-col justify-center items-center mx-3",children:L.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",className:"!w-5 !h-5 mt-0.5 flex-shrink-0 pointer-events-none",children:L.jsx("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16Zm.75-11.5a.75.75 0 10-1.5 0 .75.75 0 001.5 0ZM9 8.75A.75.75 0 019.75 8h.5a.75.75 0 01.75.75v5a.75.75 0 01-.75.75h-.5A.75.75 0 019 13.75v-5Z",clipRule:"evenodd"})})}),L.jsxs("div",{className:"flex-1 min-w-0",children:[L.jsx("p",{className:"font-semibold",children:r}),L.jsx("p",{className:"text-sm break-words",children:n}),L.jsx("div",{className:"my-2",children:L.jsxs("button",{type:"button",onClick:e,title:t,"aria-label":t,className:`group inline-flex items-center gap-2 rounded-full px-3 py-1.5
|
|
95
95
|
font-medium text-blue-700 dark:text-blue-300
|
|
96
96
|
bg-blue-50/70 hover:bg-blue-100 dark:bg-blue-900/20 dark:hover:bg-blue-900/30
|
|
97
97
|
ring-1 ring-inset ring-blue-600/20 hover:ring-blue-600/30
|
|
98
98
|
shadow-sm transition-all duration-200
|
|
99
99
|
focus:outline-none focus-visible:ring-2 focus-visible:ring-blue-600/50
|
|
100
|
-
active:scale-[0.98]`,children:[L.jsx(
|
|
100
|
+
active:scale-[0.98]`,children:[L.jsx(Rg,{"aria-hidden":"true",className:"w-5 h-5 transition-transform duration-200 group-hover:rotate-180"}),L.jsx("span",{children:t})]})})]})]})})})};let Kn=new AbortController;const Tl=({appToken:e,containerClassName:t})=>{e||console.log("Dev - Admin settings");const n=N.useRef(null),{placeholderTranslation:r,genericErrorTranslation:a,tooManyRequestsTranslation:i,conflictErrorTranslation:u}=Ya(),{conversation:o,setConversation:l,discussionId:c,setDiscussionId:f}=N.useContext(Rs),[d,h]=N.useState("notLoading"),{defaultStartingStep:m}=gl(),[_,A]=N.useState(null),[v,x]=N.useState(m),[P,R]=N.useState(null),{companySettings:B}=N.useContext(kn),{appCurrentLang:C}=N.useContext(Ls),Q={...d!=="notLoading"||(o?.length??0)>0?{maxHeight:"100vh"}:{height:"250px"}},de=yg(o)>=B?.api?.settings?.maxUserMessagesPerDiscussion,{scrollToBottom:re,showScrollButton:z,messagesContainerRef:j,removeStickyNess:F}=Og(o),$=(se,Ee,Le)=>{l(p=>[...p,{content:se,userType:Ee,metaData:Le}])},Y=()=>{Kn.abort("cancelling"),console.log("Stream request aborted"),h("notLoading"),l(se=>se.filter(Ee=>!(Ee.content?.length===0&&Ee.userType==="assistant")))},{resetDiscussion:Z}=kf({companySettings:B,setConversation:l,setDiscussionId:f});console.log("conversation",o);const he=async se=>{h("loadingIntermediaryStates");const Ee=Nn.getApiUrl(),Le={query:se,language:C.locale};l(G=>[...G,{userType:"assistant",content:""}]),requestAnimationFrame(()=>re({smooth:!1,sticky:!1})),c&&(Le.discussionId=c);const p=Kn.signal,H=Nn.getFetchConfig({httpVerb:"POST",body:Le,contentType:"application/json",options:{signal:p}});fetch(`${Ee}/ai/prompt/${e}`,H).then(async G=>{const g=G?.body?.getReader(),W=new TextDecoder;let K="",V="",J=!1,ee=!1,te=null;const ae=G.headers.get("discussionId");f(parseInt(ae,10)),await new ReadableStream({start(U){return Re();async function Re(){if(!G.ok){h("notLoading");let ke=a;G.status===409?ke=u:G.status===429?ke=i:(G.status,ke=a),l(ze=>(ze.pop(),ze)),$(ke,"assistant",{isErrorMessage:!0}),Kn=new AbortController;return}return g?.read().then(ke=>{const{done:ze,value:Ct}=ke,He=W.decode(Ct),It=zt.transformStringifiedObjectIntoArrayOfObjects(He);zt.containsObjectWithLastAnswerToTrue(It)&&h("loadingFinalAnswer");for(const ue of It)if(zt.isObjectOutputstreamTextDTO(ue)){const{content:ce,isLastAnswer:_e,streamSourceUuid:ge,shouldStopStream:Ne}=ue;te&&te!==ge&&(K+='<span style="display:block;height:1rem;"></span>'),te=ge,(_e||Ne)&&(ee=!0),U.enqueue(ce),_g(ce)?(V+=ce,K+=V,V="",J=!1):J||Ag(ce)?(V+=ce,J=!0):K+=ce,l(I=>{const k=[...I],X=k.length-1,le=k[X];return k[X]={...le,content:le.content=K,metaData:{isErrorMessage:Ne}},[...k]})}else if(zt.isObjectOutputstreamLoadingCurrentStepNumberDTO(ue)){const{content:ce}=ue;U.enqueue(ce),R(ce)}else if(zt.isObjectOutputstreamLoadingCurrentStepNameDTO(ue)){const{content:ce}=ue;U.enqueue(ce),x(ce)}else if(zt.isObjectOutputstreamLoadingNumberOfStepsDTO(ue)){const{content:ce}=ue;U.enqueue(ce),A(ce)}else console.warn(`Object not handled - ${ue}`);if(ze&&ee){U.close(),h("notLoading"),x(m),R(null);return}return Re()})}}}).pipeTo(new WritableStream)}).catch(G=>{console.error(G),console.log("Cancelling stream"),h("notLoading"),Kn=new AbortController})};return L.jsxs("div",{className:["relative p-2","flex flex-col min-h-0 overflow-hidden","h-auto",t??"max-w-[90%] mx-auto"].join(" "),ref:n,style:Q,children:[L.jsxs("div",{className:"flex-1 overflow-y-auto min-h-0 messagesContainer",ref:j,children:[o.map((se,Ee)=>L.jsx(fb,{content:se.content,userType:se.userType,metaData:se.metaData,context:{discussionId:c,messageIndex:Ee,appToken:e},seenRootEl:j.current},Ee)),L.jsx(Ig,{currentStepName:v,currentStepNumber:P,loadingStatus:d,numberOfSteps:_})]}),z&&L.jsx("button",{onClick:()=>re({smooth:!0,sticky:!0}),className:"absolute bottom-[120px] right-4 bg-blue-500 hover:bg-blue-600 text-white p-3 rounded-full shadow-lg transition-all duration-300 z-10","aria-label":"Scroll to bottom",children:L.jsx("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:L.jsx("path",{d:"M12 16L6 10L7.4 8.6L12 13.2L16.6 8.6L18 10L12 16Z",fill:"currentColor"})})}),de&&L.jsx(vg,{resetDiscussion:Z}),L.jsx("div",{className:"flex-shrink-0",children:L.jsx(gg,{classNameTextarea:"",classNameContainer:"relative mt-6 mt-3 border-slate-400 border-[1px] rounded-lg p-1",SubmitComponent:Tg,isDisabled:d!=="notLoading"||de,shouldDisableIfInputIsEmpty:!0,"aria-label":"TextArea For Bot Conversation",onSubmit:se=>{if(xg(se)){const Ee=Sg(se,c);$(Ee,"user"),F(),re({smooth:!0,sticky:!1})}else $(se,"user"),F(),re({smooth:!0,sticky:!1}),he(se)},placeholder:r,autoFocus:!0,isLoadingStream:d==="loadingFinalAnswer"||d==="loadingIntermediaryStates",LoadingComponent:Ng,onPressLoadingButton:Y})})]})};function mr(){return mr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},mr.apply(this,arguments)}function Al(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i<r.length;i++)a=r[i],!(t.indexOf(a)>=0)&&(n[a]=e[a]);return n}function wa(e,t){return wa=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},wa(e,t)}function _l(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,wa(e,t)}var Zn={exports:{}};/*
|
|
101
101
|
object-assign
|
|
102
102
|
(c) Sindre Sorhus
|
|
103
103
|
@license MIT
|
|
104
|
-
*/var ea,
|
|
105
|
-
Valid keys: `+JSON.stringify(Object.keys(p),null," "));var U=Ne(J,ae,W,K,V+"."+ae,n);if(U)return U}return null}return v(H)}function Y(p){switch(typeof p){case"number":case"string":case"undefined":return!0;case"boolean":return!p;case"object":if(Array.isArray(p))return p.every(Y);if(p===null||o(p))return!0;var H=d(p);if(H){var G=H.call(p),g;if(H!==p.entries){for(;!(g=G.next()).done;)if(!Y(g.value))return!1}else for(;!(g=G.next()).done;){var W=g.value;if(W&&!Y(W[1]))return!1}}else return!1;return!0;default:return!1}}function Z(p,H){return p==="symbol"?!0:H?H["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&H instanceof Symbol:!1}function he(p){var H=typeof p;return Array.isArray(p)?"array":p instanceof RegExp?"object":Z(H,p)?"symbol":H}function se(p){if(typeof p>"u"||p===null)return""+p;var H=he(p);if(H==="object"){if(p instanceof Date)return"date";if(p instanceof RegExp)return"regexp"}return H}function Ee(p){var H=se(p);switch(H){case"array":case"object":return"an "+H;case"boolean":case"date":case"regexp":return"a "+H;default:return H}}function Le(p){return!p.constructor||!p.constructor.name?h:p.constructor.name}return m.checkPropTypes=a,m.resetWarningCache=a.resetWarningCache,m.PropTypes=m,m},aa}var ia,Qu;function vg(){if(Qu)return ia;Qu=1;var e=ci();function t(){}function n(){}return n.resetWarningCache=t,ia=function(){function r(u,o,l,c,f,d){if(d!==e){var h=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw h.name="Invariant Violation",h}}r.isRequired=r;function a(){return r}var i={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:a,element:r,elementType:r,instanceOf:a,node:r,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:n,resetWarningCache:t};return i.PropTypes=i,i},ia}var Ku;function Pg(){if(Ku)return Kn.exports;if(Ku=1,process.env.NODE_ENV!=="production"){var e=Fa(),t=!0;Kn.exports=Rg()(e.isElement,t)}else Kn.exports=vg()();return Kn.exports}var Dg=Pg();const ie=Ba(Dg);function kg(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function wg(e,t){e.classList?e.classList.add(t):kg(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function Zu(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function Mg(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=Zu(e.className,t):e.setAttribute("class",Zu(e.className&&e.className.baseVal||"",t))}const Ju={disabled:!1};var Bg=process.env.NODE_ENV!=="production"?ie.oneOfType([ie.number,ie.shape({enter:ie.number,exit:ie.number,appear:ie.number}).isRequired]):null,Fg=process.env.NODE_ENV!=="production"?ie.oneOfType([ie.string,ie.shape({enter:ie.string,exit:ie.string,active:ie.string}),ie.shape({enter:ie.string,enterDone:ie.string,enterActive:ie.string,exit:ie.string,exitDone:ie.string,exitActive:ie.string})]):null;const yl=O.createContext(null);var xl=function(t){return t.scrollTop},gn="unmounted",vt="exited",Pt="entering",Wt="entered",Ma="exiting",ht=(function(e){Al(t,e);function t(r,a){var i;i=e.call(this,r,a)||this;var u=a,o=u&&!u.isMounting?r.enter:r.appear,l;return i.appearStatus=null,r.in?o?(l=vt,i.appearStatus=Pt):l=Wt:r.unmountOnExit||r.mountOnEnter?l=gn:l=vt,i.state={status:l},i.nextCallback=null,i}t.getDerivedStateFromProps=function(a,i){var u=a.in;return u&&i.status===gn?{status:vt}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(a){var i=null;if(a!==this.props){var u=this.state.status;this.props.in?u!==Pt&&u!==Wt&&(i=Pt):(u===Pt||u===Wt)&&(i=Ma)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var a=this.props.timeout,i,u,o;return i=u=o=a,a!=null&&typeof a!="number"&&(i=a.exit,u=a.enter,o=a.appear!==void 0?a.appear:u),{exit:i,enter:u,appear:o}},n.updateStatus=function(a,i){if(a===void 0&&(a=!1),i!==null)if(this.cancelNextCallback(),i===Pt){if(this.props.unmountOnExit||this.props.mountOnEnter){var u=this.props.nodeRef?this.props.nodeRef.current:Un.findDOMNode(this);u&&xl(u)}this.performEnter(a)}else this.performExit();else this.props.unmountOnExit&&this.state.status===vt&&this.setState({status:gn})},n.performEnter=function(a){var i=this,u=this.props.enter,o=this.context?this.context.isMounting:a,l=this.props.nodeRef?[o]:[Un.findDOMNode(this),o],c=l[0],f=l[1],d=this.getTimeouts(),h=o?d.appear:d.enter;if(!a&&!u||Ju.disabled){this.safeSetState({status:Wt},function(){i.props.onEntered(c)});return}this.props.onEnter(c,f),this.safeSetState({status:Pt},function(){i.props.onEntering(c,f),i.onTransitionEnd(h,function(){i.safeSetState({status:Wt},function(){i.props.onEntered(c,f)})})})},n.performExit=function(){var a=this,i=this.props.exit,u=this.getTimeouts(),o=this.props.nodeRef?void 0:Un.findDOMNode(this);if(!i||Ju.disabled){this.safeSetState({status:vt},function(){a.props.onExited(o)});return}this.props.onExit(o),this.safeSetState({status:Ma},function(){a.props.onExiting(o),a.onTransitionEnd(u.exit,function(){a.safeSetState({status:vt},function(){a.props.onExited(o)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(a,i){i=this.setNextCallback(i),this.setState(a,i)},n.setNextCallback=function(a){var i=this,u=!0;return this.nextCallback=function(o){u&&(u=!1,i.nextCallback=null,a(o))},this.nextCallback.cancel=function(){u=!1},this.nextCallback},n.onTransitionEnd=function(a,i){this.setNextCallback(i);var u=this.props.nodeRef?this.props.nodeRef.current:Un.findDOMNode(this),o=a==null&&!this.props.addEndListener;if(!u||o){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[u,this.nextCallback],c=l[0],f=l[1];this.props.addEndListener(c,f)}a!=null&&setTimeout(this.nextCallback,a)},n.render=function(){var a=this.state.status;if(a===gn)return null;var i=this.props,u=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var o=Tl(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return O.createElement(yl.Provider,{value:null},typeof u=="function"?u(a,o):O.cloneElement(O.Children.only(u),o))},t})(O.Component);ht.contextType=yl;ht.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:ie.shape({current:typeof Element>"u"?ie.any:function(e,t,n,r,a,i){var u=e[t];return ie.instanceOf(u&&"ownerDocument"in u?u.ownerDocument.defaultView.Element:Element)(e,t,n,r,a,i)}}),children:ie.oneOfType([ie.func.isRequired,ie.element.isRequired]).isRequired,in:ie.bool,mountOnEnter:ie.bool,unmountOnExit:ie.bool,appear:ie.bool,enter:ie.bool,exit:ie.bool,timeout:function(t){var n=Bg;t.addEndListener||(n=n.isRequired);for(var r=arguments.length,a=new Array(r>1?r-1:0),i=1;i<r;i++)a[i-1]=arguments[i];return n.apply(void 0,[t].concat(a))},addEndListener:ie.func,onEnter:ie.func,onEntering:ie.func,onEntered:ie.func,onExit:ie.func,onExiting:ie.func,onExited:ie.func}:{};function Vt(){}ht.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Vt,onEntering:Vt,onEntered:Vt,onExit:Vt,onExiting:Vt,onExited:Vt};ht.UNMOUNTED=gn;ht.EXITED=vt;ht.ENTERING=Pt;ht.ENTERED=Wt;ht.EXITING=Ma;var Hg=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return wg(t,r)})},ua=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return Mg(t,r)})},fi=(function(e){Al(t,e);function t(){for(var r,a=arguments.length,i=new Array(a),u=0;u<a;u++)i[u]=arguments[u];return r=e.call.apply(e,[this].concat(i))||this,r.appliedClasses={appear:{},enter:{},exit:{}},r.onEnter=function(o,l){var c=r.resolveArguments(o,l),f=c[0],d=c[1];r.removeClasses(f,"exit"),r.addClass(f,d?"appear":"enter","base"),r.props.onEnter&&r.props.onEnter(o,l)},r.onEntering=function(o,l){var c=r.resolveArguments(o,l),f=c[0],d=c[1],h=d?"appear":"enter";r.addClass(f,h,"active"),r.props.onEntering&&r.props.onEntering(o,l)},r.onEntered=function(o,l){var c=r.resolveArguments(o,l),f=c[0],d=c[1],h=d?"appear":"enter";r.removeClasses(f,h),r.addClass(f,h,"done"),r.props.onEntered&&r.props.onEntered(o,l)},r.onExit=function(o){var l=r.resolveArguments(o),c=l[0];r.removeClasses(c,"appear"),r.removeClasses(c,"enter"),r.addClass(c,"exit","base"),r.props.onExit&&r.props.onExit(o)},r.onExiting=function(o){var l=r.resolveArguments(o),c=l[0];r.addClass(c,"exit","active"),r.props.onExiting&&r.props.onExiting(o)},r.onExited=function(o){var l=r.resolveArguments(o),c=l[0];r.removeClasses(c,"exit"),r.addClass(c,"exit","done"),r.props.onExited&&r.props.onExited(o)},r.resolveArguments=function(o,l){return r.props.nodeRef?[r.props.nodeRef.current,o]:[o,l]},r.getClassNames=function(o){var l=r.props.classNames,c=typeof l=="string",f=c&&l?l+"-":"",d=c?""+f+o:l[o],h=c?d+"-active":l[o+"Active"],m=c?d+"-done":l[o+"Done"];return{baseClassName:d,activeClassName:h,doneClassName:m}},r}var n=t.prototype;return n.addClass=function(a,i,u){var o=this.getClassNames(i)[u+"ClassName"],l=this.getClassNames("enter"),c=l.doneClassName;i==="appear"&&u==="done"&&c&&(o+=" "+c),u==="active"&&a&&xl(a),o&&(this.appliedClasses[i][u]=o,Hg(a,o))},n.removeClasses=function(a,i){var u=this.appliedClasses[i],o=u.base,l=u.active,c=u.done;this.appliedClasses[i]={},o&&ua(a,o),l&&ua(a,l),c&&ua(a,c)},n.render=function(){var a=this.props;a.classNames;var i=Tl(a,["classNames"]);return O.createElement(ht,mr({},i,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t})(O.Component);fi.defaultProps={classNames:""};fi.propTypes=process.env.NODE_ENV!=="production"?mr({},ht.propTypes,{classNames:Fg,onEnter:ie.func,onEntering:ie.func,onEntered:ie.func,onExit:ie.func,onExiting:ie.func,onExited:ie.func}):{};const Ug=O.forwardRef(({props:e},t)=>L.jsxs("div",{ref:t,className:`chatBox
|
|
104
|
+
*/var ea,Vu;function Pg(){if(Vu)return ea;Vu=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(i){if(i==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(i)}function a(){try{if(!Object.assign)return!1;var i=new String("abc");if(i[5]="de",Object.getOwnPropertyNames(i)[0]==="5")return!1;for(var u={},o=0;o<10;o++)u["_"+String.fromCharCode(o)]=o;var l=Object.getOwnPropertyNames(u).map(function(f){return u[f]});if(l.join("")!=="0123456789")return!1;var c={};return"abcdefghijklmnopqrst".split("").forEach(function(f){c[f]=f}),Object.keys(Object.assign({},c)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return ea=a()?Object.assign:function(i,u){for(var o,l=r(i),c,f=1;f<arguments.length;f++){o=Object(arguments[f]);for(var d in o)t.call(o,d)&&(l[d]=o[d]);if(e){c=e(o);for(var h=0;h<c.length;h++)n.call(o,c[h])&&(l[c[h]]=o[c[h]])}}return l},ea}var ta,qu;function ci(){if(qu)return ta;qu=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return ta=e,ta}var na,Wu;function yl(){return Wu||(Wu=1,na=Function.call.bind(Object.prototype.hasOwnProperty)),na}var ra,Xu;function Dg(){if(Xu)return ra;Xu=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=ci(),n={},r=yl();e=function(i){var u="Warning: "+i;typeof console<"u"&&console.error(u);try{throw new Error(u)}catch{}}}function a(i,u,o,l,c){if(process.env.NODE_ENV!=="production"){for(var f in i)if(r(i,f)){var d;try{if(typeof i[f]!="function"){var h=Error((l||"React class")+": "+o+" type `"+f+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[f]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw h.name="Invariant Violation",h}d=i[f](u,f,l,o,null,t)}catch(_){d=_}if(d&&!(d instanceof Error)&&e((l||"React class")+": type specification of "+o+" `"+f+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof d+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),d instanceof Error&&!(d.message in n)){n[d.message]=!0;var m=c?c():"";e("Failed "+o+" type: "+d.message+(m??""))}}}}return a.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},ra=a,ra}var aa,Qu;function kg(){if(Qu)return aa;Qu=1;var e=Fa(),t=Pg(),n=ci(),r=yl(),a=Dg(),i=function(){};process.env.NODE_ENV!=="production"&&(i=function(o){var l="Warning: "+o;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}});function u(){return null}return aa=function(o,l){var c=typeof Symbol=="function"&&Symbol.iterator,f="@@iterator";function d(p){var H=p&&(c&&p[c]||p[f]);if(typeof H=="function")return H}var h="<<anonymous>>",m={array:x("array"),bigint:x("bigint"),bool:x("boolean"),func:x("function"),number:x("number"),object:x("object"),string:x("string"),symbol:x("symbol"),any:P(),arrayOf:R,element:B(),elementType:C(),instanceOf:O,node:z(),objectOf:de,oneOf:Q,oneOfType:re,shape:F,exact:$};function _(p,H){return p===H?p!==0||1/p===1/H:p!==p&&H!==H}function A(p,H){this.message=p,this.data=H&&typeof H=="object"?H:{},this.stack=""}A.prototype=Error.prototype;function v(p){if(process.env.NODE_ENV!=="production")var H={},G=0;function g(K,V,J,ee,te,ae,Oe){if(ee=ee||h,ae=ae||J,Oe!==n){if(l){var U=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw U.name="Invariant Violation",U}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var Re=ee+":"+J;!H[Re]&&G<3&&(i("You are manually calling a React.PropTypes validation function for the `"+ae+"` prop on `"+ee+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),H[Re]=!0,G++)}}return V[J]==null?K?V[J]===null?new A("The "+te+" `"+ae+"` is marked as required "+("in `"+ee+"`, but its value is `null`.")):new A("The "+te+" `"+ae+"` is marked as required in "+("`"+ee+"`, but its value is `undefined`.")):null:p(V,J,ee,te,ae)}var W=g.bind(null,!1);return W.isRequired=g.bind(null,!0),W}function x(p){function H(G,g,W,K,V,J){var ee=G[g],te=he(ee);if(te!==p){var ae=se(ee);return new A("Invalid "+K+" `"+V+"` of type "+("`"+ae+"` supplied to `"+W+"`, expected ")+("`"+p+"`."),{expectedType:p})}return null}return v(H)}function P(){return v(u)}function R(p){function H(G,g,W,K,V){if(typeof p!="function")return new A("Property `"+V+"` of component `"+W+"` has invalid PropType notation inside arrayOf.");var J=G[g];if(!Array.isArray(J)){var ee=he(J);return new A("Invalid "+K+" `"+V+"` of type "+("`"+ee+"` supplied to `"+W+"`, expected an array."))}for(var te=0;te<J.length;te++){var ae=p(J,te,W,K,V+"["+te+"]",n);if(ae instanceof Error)return ae}return null}return v(H)}function B(){function p(H,G,g,W,K){var V=H[G];if(!o(V)){var J=he(V);return new A("Invalid "+W+" `"+K+"` of type "+("`"+J+"` supplied to `"+g+"`, expected a single ReactElement."))}return null}return v(p)}function C(){function p(H,G,g,W,K){var V=H[G];if(!e.isValidElementType(V)){var J=he(V);return new A("Invalid "+W+" `"+K+"` of type "+("`"+J+"` supplied to `"+g+"`, expected a single ReactElement type."))}return null}return v(p)}function O(p){function H(G,g,W,K,V){if(!(G[g]instanceof p)){var J=p.name||h,ee=Le(G[g]);return new A("Invalid "+K+" `"+V+"` of type "+("`"+ee+"` supplied to `"+W+"`, expected ")+("instance of `"+J+"`."))}return null}return v(H)}function Q(p){if(!Array.isArray(p))return process.env.NODE_ENV!=="production"&&(arguments.length>1?i("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):i("Invalid argument supplied to oneOf, expected an array.")),u;function H(G,g,W,K,V){for(var J=G[g],ee=0;ee<p.length;ee++)if(_(J,p[ee]))return null;var te=JSON.stringify(p,function(Oe,U){var Re=se(U);return Re==="symbol"?String(U):U});return new A("Invalid "+K+" `"+V+"` of value `"+String(J)+"` "+("supplied to `"+W+"`, expected one of "+te+"."))}return v(H)}function de(p){function H(G,g,W,K,V){if(typeof p!="function")return new A("Property `"+V+"` of component `"+W+"` has invalid PropType notation inside objectOf.");var J=G[g],ee=he(J);if(ee!=="object")return new A("Invalid "+K+" `"+V+"` of type "+("`"+ee+"` supplied to `"+W+"`, expected an object."));for(var te in J)if(r(J,te)){var ae=p(J,te,W,K,V+"."+te,n);if(ae instanceof Error)return ae}return null}return v(H)}function re(p){if(!Array.isArray(p))return process.env.NODE_ENV!=="production"&&i("Invalid argument supplied to oneOfType, expected an instance of array."),u;for(var H=0;H<p.length;H++){var G=p[H];if(typeof G!="function")return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+Ee(G)+" at index "+H+"."),u}function g(W,K,V,J,ee){for(var te=[],ae=0;ae<p.length;ae++){var Oe=p[ae],U=Oe(W,K,V,J,ee,n);if(U==null)return null;U.data&&r(U.data,"expectedType")&&te.push(U.data.expectedType)}var Re=te.length>0?", expected one of type ["+te.join(", ")+"]":"";return new A("Invalid "+J+" `"+ee+"` supplied to "+("`"+V+"`"+Re+"."))}return v(g)}function z(){function p(H,G,g,W,K){return Y(H[G])?null:new A("Invalid "+W+" `"+K+"` supplied to "+("`"+g+"`, expected a ReactNode."))}return v(p)}function j(p,H,G,g,W){return new A((p||"React class")+": "+H+" type `"+G+"."+g+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+W+"`.")}function F(p){function H(G,g,W,K,V){var J=G[g],ee=he(J);if(ee!=="object")return new A("Invalid "+K+" `"+V+"` of type `"+ee+"` "+("supplied to `"+W+"`, expected `object`."));for(var te in p){var ae=p[te];if(typeof ae!="function")return j(W,K,V,te,se(ae));var Oe=ae(J,te,W,K,V+"."+te,n);if(Oe)return Oe}return null}return v(H)}function $(p){function H(G,g,W,K,V){var J=G[g],ee=he(J);if(ee!=="object")return new A("Invalid "+K+" `"+V+"` of type `"+ee+"` "+("supplied to `"+W+"`, expected `object`."));var te=t({},G[g],p);for(var ae in te){var Oe=p[ae];if(r(p,ae)&&typeof Oe!="function")return j(W,K,V,ae,se(Oe));if(!Oe)return new A("Invalid "+K+" `"+V+"` key `"+ae+"` supplied to `"+W+"`.\nBad object: "+JSON.stringify(G[g],null," ")+`
|
|
105
|
+
Valid keys: `+JSON.stringify(Object.keys(p),null," "));var U=Oe(J,ae,W,K,V+"."+ae,n);if(U)return U}return null}return v(H)}function Y(p){switch(typeof p){case"number":case"string":case"undefined":return!0;case"boolean":return!p;case"object":if(Array.isArray(p))return p.every(Y);if(p===null||o(p))return!0;var H=d(p);if(H){var G=H.call(p),g;if(H!==p.entries){for(;!(g=G.next()).done;)if(!Y(g.value))return!1}else for(;!(g=G.next()).done;){var W=g.value;if(W&&!Y(W[1]))return!1}}else return!1;return!0;default:return!1}}function Z(p,H){return p==="symbol"?!0:H?H["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&H instanceof Symbol:!1}function he(p){var H=typeof p;return Array.isArray(p)?"array":p instanceof RegExp?"object":Z(H,p)?"symbol":H}function se(p){if(typeof p>"u"||p===null)return""+p;var H=he(p);if(H==="object"){if(p instanceof Date)return"date";if(p instanceof RegExp)return"regexp"}return H}function Ee(p){var H=se(p);switch(H){case"array":case"object":return"an "+H;case"boolean":case"date":case"regexp":return"a "+H;default:return H}}function Le(p){return!p.constructor||!p.constructor.name?h:p.constructor.name}return m.checkPropTypes=a,m.resetWarningCache=a.resetWarningCache,m.PropTypes=m,m},aa}var ia,Ku;function wg(){if(Ku)return ia;Ku=1;var e=ci();function t(){}function n(){}return n.resetWarningCache=t,ia=function(){function r(u,o,l,c,f,d){if(d!==e){var h=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw h.name="Invariant Violation",h}}r.isRequired=r;function a(){return r}var i={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:a,element:r,elementType:r,instanceOf:a,node:r,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:n,resetWarningCache:t};return i.PropTypes=i,i},ia}var Zu;function Mg(){if(Zu)return Zn.exports;if(Zu=1,process.env.NODE_ENV!=="production"){var e=Fa(),t=!0;Zn.exports=kg()(e.isElement,t)}else Zn.exports=wg()();return Zn.exports}var Bg=Mg();const ie=Ba(Bg);function Fg(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function Hg(e,t){e.classList?e.classList.add(t):Fg(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function Ju(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function Ug(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=Ju(e.className,t):e.setAttribute("class",Ju(e.className&&e.className.baseVal||"",t))}const es={disabled:!1};var jg=process.env.NODE_ENV!=="production"?ie.oneOfType([ie.number,ie.shape({enter:ie.number,exit:ie.number,appear:ie.number}).isRequired]):null,$g=process.env.NODE_ENV!=="production"?ie.oneOfType([ie.string,ie.shape({enter:ie.string,exit:ie.string,active:ie.string}),ie.shape({enter:ie.string,enterDone:ie.string,enterActive:ie.string,exit:ie.string,exitDone:ie.string,exitActive:ie.string})]):null;const xl=N.createContext(null);var Sl=function(t){return t.scrollTop},gn="unmounted",vt="exited",Pt="entering",Wt="entered",Ma="exiting",ht=(function(e){_l(t,e);function t(r,a){var i;i=e.call(this,r,a)||this;var u=a,o=u&&!u.isMounting?r.enter:r.appear,l;return i.appearStatus=null,r.in?o?(l=vt,i.appearStatus=Pt):l=Wt:r.unmountOnExit||r.mountOnEnter?l=gn:l=vt,i.state={status:l},i.nextCallback=null,i}t.getDerivedStateFromProps=function(a,i){var u=a.in;return u&&i.status===gn?{status:vt}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(a){var i=null;if(a!==this.props){var u=this.state.status;this.props.in?u!==Pt&&u!==Wt&&(i=Pt):(u===Pt||u===Wt)&&(i=Ma)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var a=this.props.timeout,i,u,o;return i=u=o=a,a!=null&&typeof a!="number"&&(i=a.exit,u=a.enter,o=a.appear!==void 0?a.appear:u),{exit:i,enter:u,appear:o}},n.updateStatus=function(a,i){if(a===void 0&&(a=!1),i!==null)if(this.cancelNextCallback(),i===Pt){if(this.props.unmountOnExit||this.props.mountOnEnter){var u=this.props.nodeRef?this.props.nodeRef.current:jn.findDOMNode(this);u&&Sl(u)}this.performEnter(a)}else this.performExit();else this.props.unmountOnExit&&this.state.status===vt&&this.setState({status:gn})},n.performEnter=function(a){var i=this,u=this.props.enter,o=this.context?this.context.isMounting:a,l=this.props.nodeRef?[o]:[jn.findDOMNode(this),o],c=l[0],f=l[1],d=this.getTimeouts(),h=o?d.appear:d.enter;if(!a&&!u||es.disabled){this.safeSetState({status:Wt},function(){i.props.onEntered(c)});return}this.props.onEnter(c,f),this.safeSetState({status:Pt},function(){i.props.onEntering(c,f),i.onTransitionEnd(h,function(){i.safeSetState({status:Wt},function(){i.props.onEntered(c,f)})})})},n.performExit=function(){var a=this,i=this.props.exit,u=this.getTimeouts(),o=this.props.nodeRef?void 0:jn.findDOMNode(this);if(!i||es.disabled){this.safeSetState({status:vt},function(){a.props.onExited(o)});return}this.props.onExit(o),this.safeSetState({status:Ma},function(){a.props.onExiting(o),a.onTransitionEnd(u.exit,function(){a.safeSetState({status:vt},function(){a.props.onExited(o)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(a,i){i=this.setNextCallback(i),this.setState(a,i)},n.setNextCallback=function(a){var i=this,u=!0;return this.nextCallback=function(o){u&&(u=!1,i.nextCallback=null,a(o))},this.nextCallback.cancel=function(){u=!1},this.nextCallback},n.onTransitionEnd=function(a,i){this.setNextCallback(i);var u=this.props.nodeRef?this.props.nodeRef.current:jn.findDOMNode(this),o=a==null&&!this.props.addEndListener;if(!u||o){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[u,this.nextCallback],c=l[0],f=l[1];this.props.addEndListener(c,f)}a!=null&&setTimeout(this.nextCallback,a)},n.render=function(){var a=this.state.status;if(a===gn)return null;var i=this.props,u=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var o=Al(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return N.createElement(xl.Provider,{value:null},typeof u=="function"?u(a,o):N.cloneElement(N.Children.only(u),o))},t})(N.Component);ht.contextType=xl;ht.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:ie.shape({current:typeof Element>"u"?ie.any:function(e,t,n,r,a,i){var u=e[t];return ie.instanceOf(u&&"ownerDocument"in u?u.ownerDocument.defaultView.Element:Element)(e,t,n,r,a,i)}}),children:ie.oneOfType([ie.func.isRequired,ie.element.isRequired]).isRequired,in:ie.bool,mountOnEnter:ie.bool,unmountOnExit:ie.bool,appear:ie.bool,enter:ie.bool,exit:ie.bool,timeout:function(t){var n=jg;t.addEndListener||(n=n.isRequired);for(var r=arguments.length,a=new Array(r>1?r-1:0),i=1;i<r;i++)a[i-1]=arguments[i];return n.apply(void 0,[t].concat(a))},addEndListener:ie.func,onEnter:ie.func,onEntering:ie.func,onEntered:ie.func,onExit:ie.func,onExiting:ie.func,onExited:ie.func}:{};function Vt(){}ht.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Vt,onEntering:Vt,onEntered:Vt,onExit:Vt,onExiting:Vt,onExited:Vt};ht.UNMOUNTED=gn;ht.EXITED=vt;ht.ENTERING=Pt;ht.ENTERED=Wt;ht.EXITING=Ma;var Yg=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return Hg(t,r)})},ua=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return Ug(t,r)})},fi=(function(e){_l(t,e);function t(){for(var r,a=arguments.length,i=new Array(a),u=0;u<a;u++)i[u]=arguments[u];return r=e.call.apply(e,[this].concat(i))||this,r.appliedClasses={appear:{},enter:{},exit:{}},r.onEnter=function(o,l){var c=r.resolveArguments(o,l),f=c[0],d=c[1];r.removeClasses(f,"exit"),r.addClass(f,d?"appear":"enter","base"),r.props.onEnter&&r.props.onEnter(o,l)},r.onEntering=function(o,l){var c=r.resolveArguments(o,l),f=c[0],d=c[1],h=d?"appear":"enter";r.addClass(f,h,"active"),r.props.onEntering&&r.props.onEntering(o,l)},r.onEntered=function(o,l){var c=r.resolveArguments(o,l),f=c[0],d=c[1],h=d?"appear":"enter";r.removeClasses(f,h),r.addClass(f,h,"done"),r.props.onEntered&&r.props.onEntered(o,l)},r.onExit=function(o){var l=r.resolveArguments(o),c=l[0];r.removeClasses(c,"appear"),r.removeClasses(c,"enter"),r.addClass(c,"exit","base"),r.props.onExit&&r.props.onExit(o)},r.onExiting=function(o){var l=r.resolveArguments(o),c=l[0];r.addClass(c,"exit","active"),r.props.onExiting&&r.props.onExiting(o)},r.onExited=function(o){var l=r.resolveArguments(o),c=l[0];r.removeClasses(c,"exit"),r.addClass(c,"exit","done"),r.props.onExited&&r.props.onExited(o)},r.resolveArguments=function(o,l){return r.props.nodeRef?[r.props.nodeRef.current,o]:[o,l]},r.getClassNames=function(o){var l=r.props.classNames,c=typeof l=="string",f=c&&l?l+"-":"",d=c?""+f+o:l[o],h=c?d+"-active":l[o+"Active"],m=c?d+"-done":l[o+"Done"];return{baseClassName:d,activeClassName:h,doneClassName:m}},r}var n=t.prototype;return n.addClass=function(a,i,u){var o=this.getClassNames(i)[u+"ClassName"],l=this.getClassNames("enter"),c=l.doneClassName;i==="appear"&&u==="done"&&c&&(o+=" "+c),u==="active"&&a&&Sl(a),o&&(this.appliedClasses[i][u]=o,Yg(a,o))},n.removeClasses=function(a,i){var u=this.appliedClasses[i],o=u.base,l=u.active,c=u.done;this.appliedClasses[i]={},o&&ua(a,o),l&&ua(a,l),c&&ua(a,c)},n.render=function(){var a=this.props;a.classNames;var i=Al(a,["classNames"]);return N.createElement(ht,mr({},i,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t})(N.Component);fi.defaultProps={classNames:""};fi.propTypes=process.env.NODE_ENV!=="production"?mr({},ht.propTypes,{classNames:$g,onEnter:ie.func,onEntering:ie.func,onEntered:ie.func,onExit:ie.func,onExiting:ie.func,onExited:ie.func}):{};const Gg=N.forwardRef(({props:e},t)=>L.jsxs("div",{ref:t,className:`chatBox
|
|
106
106
|
fixed
|
|
107
107
|
z-[99999999]
|
|
108
108
|
md:bottom-[110px]
|
|
@@ -122,5 +122,5 @@ Valid keys: `+JSON.stringify(Object.keys(p),null," "));var U=Ne(J,ae,W,K,V+"."+
|
|
|
122
122
|
shadow-lg
|
|
123
123
|
pb-2
|
|
124
124
|
bg-white
|
|
125
|
-
`,children:[L.jsx("div",{className:"bg-violet-700 py-2 text-white text-center flex justify-center items-center",children:"Assistant"}),L.jsx(
|
|
125
|
+
`,children:[L.jsx("div",{className:"bg-violet-700 py-2 text-white text-center flex justify-center items-center",children:"Assistant"}),L.jsx(Tl,{appToken:e.appToken})]})),zg=({isWidgetOpen:e,appToken:t})=>{const n=N.useRef(null);return L.jsx("div",{children:L.jsx(fi,{nodeRef:n,in:e,timeout:200,classNames:"menuTransition",unmountOnExit:!0,children:L.jsx(Gg,{ref:n,props:{appToken:t}})})})},Vg=({displayMode:e,appToken:t})=>{const[n,r]=N.useState(!1),{appInternalContext:a}=N.useContext(Ps);return L.jsxs(L.Fragment,{children:[e===nn.LAUNCHER&&a.hasFetchedSettings&&L.jsxs(L.Fragment,{children:[L.jsx(Df,{isWidgetOpen:n,setIsWidgetOpen:r}),L.jsx(zg,{isWidgetOpen:n,appToken:t})]}),e===nn.CHATBOX&&a.hasFetchedSettings&&L.jsx("div",{className:"chatBox",children:L.jsx(Tl,{appToken:t})})]})};var nn=(e=>(e.LAUNCHER="launcher",e.CHATBOX="chatbox",e))(nn||{});function qg({appToken:e,displayMode:t="launcher",agentId:n}){e||console.warn("appToken not defined in ai-client. Please see the documentation at URL_ERROR_IN_DOC");const r=Sf(t);return L.jsx("div",{className:"chatSystemWidget",children:L.jsx(yf,{appToken:e,agentId:n,children:L.jsx(Vg,{displayMode:r,appToken:e})})})}exports.App=qg;
|
|
126
126
|
//# sourceMappingURL=index.cjs.map
|