@opencx/widget 2.2.0 → 2.3.0
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/README.md +30 -105
- package/dist/basic.cjs +3 -3
- package/dist/basic.cjs.map +1 -1
- package/dist/basic.js +10 -9
- package/dist/basic.js.map +1 -1
- package/dist/core/client/api.d.ts +21 -7
- package/dist/core/client/chat.d.ts +62 -0
- package/dist/core/client/chat.test.d.ts +1 -0
- package/dist/core/client/client.d.ts +6 -36
- package/dist/core/client/config.d.ts +35 -0
- package/dist/core/client/config.test.d.ts +1 -0
- package/dist/core/client/contact.d.ts +32 -0
- package/dist/core/client/contact.test.d.ts +1 -0
- package/dist/core/client/index.d.ts +3 -1
- package/dist/core/index.d.ts +6 -1
- package/dist/core/platform/index.d.ts +1 -10
- package/dist/core/types/index.d.ts +24 -2
- package/dist/core/types/pub-sub.d.ts +19 -82
- package/dist/core/types/schemas-v2.d.ts +687 -0
- package/dist/core/utils/create-fetch.d.ts +24 -0
- package/dist/index-B7LNpE9i.cjs +18 -0
- package/dist/index-B7LNpE9i.cjs.map +1 -0
- package/dist/{index-XkXeMM77.js → index-BQfnx4Er.js} +1182 -1310
- package/dist/index-BQfnx4Er.js.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +376 -370
- package/dist/index.js.map +1 -1
- package/dist/react-bindings/context/ChatContext.d.ts +130 -0
- package/dist/react-bindings/hooks/useContact.d.ts +9 -0
- package/dist/react-bindings/hooks/usePubsub.d.ts +3 -0
- package/dist/react-bindings/hooks/useSendMessage.d.ts +6 -0
- package/dist/react-bindings/index.d.ts +3 -0
- package/dist/react-lib/hooks/useAbstractChat.d.ts +42 -45
- package/dist/react-lib/hooks/useAxiosInstance.d.ts +37 -0
- package/dist/react-lib/hooks/useUploadFiles.d.ts +1 -1
- package/dist/react-lib/providers/ChatProvider.d.ts +54 -46
- package/dist/react-lib/types/index.d.ts +1 -0
- package/dist/react.cjs +1 -1
- package/dist/react.cjs.map +1 -1
- package/dist/react.js +2 -2
- package/dist/react.js.map +1 -1
- package/dist/schemas-BBAV6Sd_.js +122 -0
- package/dist/schemas-BBAV6Sd_.js.map +1 -0
- package/dist/schemas-wky4fpbc.cjs +2 -0
- package/dist/schemas-wky4fpbc.cjs.map +1 -0
- package/dist/src/components/dialog.d.ts +2 -2
- package/dist/style.css +1 -1
- package/dist-embed/script.js +106 -106
- package/dist-embed/script.js.map +1 -1
- package/package.json +1 -3
- package/dist/core/managers/chathistory-manager.d.ts +0 -61
- package/dist/core/managers/session-manager.d.ts +0 -35
- package/dist/core/transport/http.transport.d.ts +0 -17
- package/dist/core/transport/transport.d.ts +0 -25
- package/dist/core/types/transport.d.ts +0 -31
- package/dist/history-to-widget-messages-CP0hKjhv.js +0 -195
- package/dist/history-to-widget-messages-CP0hKjhv.js.map +0 -1
- package/dist/history-to-widget-messages-CdbZolRN.cjs +0 -2
- package/dist/history-to-widget-messages-CdbZolRN.cjs.map +0 -1
- package/dist/index-XkXeMM77.js.map +0 -1
- package/dist/index-xb7Pg6AD.cjs +0 -18
- package/dist/index-xb7Pg6AD.cjs.map +0 -1
- package/dist/react-lib/hooks/handle-socket-messages.d.ts +0 -27
- package/dist/react-lib/hooks/socket.d.ts +0 -11
- package/dist/react-lib/hooks/socketState.d.ts +0 -2
- package/dist/react-lib/hooks/useBaseClient.d.ts +0 -2
- package/dist/react-lib/providers/ClientProvider.d.ts +0 -7
package/dist/basic.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const z=require("react/jsx-runtime"),Tt=require("./index-xb7Pg6AD.cjs"),ML=require("@radix-ui/react-tooltip"),vt=require("react"),$A=require("clsx"),PL=require("@radix-ui/react-avatar"),ta=require("framer-motion"),JC=require("tinycolor2"),FL=require("date-fns"),Yn=require("lucide-react"),Pw=require("@radix-ui/react-slot"),UL=require("@radix-ui/react-dropdown-menu"),BL=require("@radix-ui/react-switch"),HL=require("react-dropzone"),e_=require("react-hot-toast"),zL=require("./history-to-widget-messages-CdbZolRN.cjs"),NT=require("zod");function Fm(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const a in e)if(a!=="default"){const s=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(n,a,s.get?s:{enumerable:!0,get:()=>e[a]})}}return n.default=e,Object.freeze(n)}const Um=Fm(ML),ie=Fm(vt),$f=Fm(PL),qn=Fm(UL),sw=Fm(BL),jL="[data-chat-widget-content-root]";function GA({fallbackHeight:e}){const n=vt.useRef(null);return vt.useEffect(()=>{const a=document.querySelector(jL);if(a&&n.current){const s=n.current;let f;const p=new ResizeObserver(()=>{f=requestAnimationFrame(()=>{const d=Math.max(s.offsetHeight,e);a.style.setProperty("--opencx-widget-height",d.toFixed(1)+"px")})});return p.observe(s),()=>{cancelAnimationFrame(f),p.unobserve(s)}}},[]),{observedElementRef:n}}const Fw="-",VL=e=>{const n=WL(e),{conflictingClassGroups:a,conflictingClassGroupModifiers:s}=e;return{getClassGroupId:d=>{const g=d.split(Fw);return g[0]===""&&g.length!==1&&g.shift(),XA(g,n)||YL(d)},getConflictingClassGroupIds:(d,g)=>{const E=a[d]||[];return g&&s[d]?[...E,...s[d]]:E}}},XA=(e,n)=>{var d;if(e.length===0)return n.classGroupId;const a=e[0],s=n.nextPart.get(a),f=s?XA(e.slice(1),s):void 0;if(f)return f;if(n.validators.length===0)return;const p=e.join(Fw);return(d=n.validators.find(({validator:g})=>g(p)))==null?void 0:d.classGroupId},t_=/^\[(.+)\]$/,YL=e=>{if(t_.test(e)){const n=t_.exec(e)[1],a=n==null?void 0:n.substring(0,n.indexOf(":"));if(a)return"arbitrary.."+a}},WL=e=>{const{theme:n,prefix:a}=e,s={nextPart:new Map,validators:[]};return QL(Object.entries(e.classGroups),a).forEach(([p,d])=>{lw(d,s,p,n)}),s},lw=(e,n,a,s)=>{e.forEach(f=>{if(typeof f=="string"){const p=f===""?n:n_(n,f);p.classGroupId=a;return}if(typeof f=="function"){if(qL(f)){lw(f(s),n,a,s);return}n.validators.push({validator:f,classGroupId:a});return}Object.entries(f).forEach(([p,d])=>{lw(d,n_(n,p),a,s)})})},n_=(e,n)=>{let a=e;return n.split(Fw).forEach(s=>{a.nextPart.has(s)||a.nextPart.set(s,{nextPart:new Map,validators:[]}),a=a.nextPart.get(s)}),a},qL=e=>e.isThemeGetter,QL=(e,n)=>n?e.map(([a,s])=>{const f=s.map(p=>typeof p=="string"?n+p:typeof p=="object"?Object.fromEntries(Object.entries(p).map(([d,g])=>[n+d,g])):p);return[a,f]}):e,$L=e=>{if(e<1)return{get:()=>{},set:()=>{}};let n=0,a=new Map,s=new Map;const f=(p,d)=>{a.set(p,d),n++,n>e&&(n=0,s=a,a=new Map)};return{get(p){let d=a.get(p);if(d!==void 0)return d;if((d=s.get(p))!==void 0)return f(p,d),d},set(p,d){a.has(p)?a.set(p,d):f(p,d)}}},KA="!",GL=e=>{const{separator:n,experimentalParseClassName:a}=e,s=n.length===1,f=n[0],p=n.length,d=g=>{const E=[];let T=0,C=0,S;for(let U=0;U<g.length;U++){let H=g[U];if(T===0){if(H===f&&(s||g.slice(U,U+p)===n)){E.push(g.slice(C,U)),C=U+p;continue}if(H==="/"){S=U;continue}}H==="["?T++:H==="]"&&T--}const R=E.length===0?g:g.substring(C),A=R.startsWith(KA),D=A?R.substring(1):R,L=S&&S>C?S-C:void 0;return{modifiers:E,hasImportantModifier:A,baseClassName:D,maybePostfixModifierPosition:L}};return a?g=>a({className:g,parseClassName:d}):d},XL=e=>{if(e.length<=1)return e;const n=[];let a=[];return e.forEach(s=>{s[0]==="["?(n.push(...a.sort(),s),a=[]):a.push(s)}),n.push(...a.sort()),n},KL=e=>({cache:$L(e.cacheSize),parseClassName:GL(e),...VL(e)}),ZL=/\s+/,JL=(e,n)=>{const{parseClassName:a,getClassGroupId:s,getConflictingClassGroupIds:f}=n,p=[],d=e.trim().split(ZL);let g="";for(let E=d.length-1;E>=0;E-=1){const T=d[E],{modifiers:C,hasImportantModifier:S,baseClassName:R,maybePostfixModifierPosition:A}=a(T);let D=!!A,L=s(D?R.substring(0,A):R);if(!L){if(!D){g=T+(g.length>0?" "+g:g);continue}if(L=s(R),!L){g=T+(g.length>0?" "+g:g);continue}D=!1}const U=XL(C).join(":"),H=S?U+KA:U,G=H+L;if(p.includes(G))continue;p.push(G);const W=f(L,D);for(let Z=0;Z<W.length;++Z){const J=W[Z];p.push(H+J)}g=T+(g.length>0?" "+g:g)}return g};function eI(){let e=0,n,a,s="";for(;e<arguments.length;)(n=arguments[e++])&&(a=ZA(n))&&(s&&(s+=" "),s+=a);return s}const ZA=e=>{if(typeof e=="string")return e;let n,a="";for(let s=0;s<e.length;s++)e[s]&&(n=ZA(e[s]))&&(a&&(a+=" "),a+=n);return a};function tI(e,...n){let a,s,f,p=d;function d(E){const T=n.reduce((C,S)=>S(C),e());return a=KL(T),s=a.cache.get,f=a.cache.set,p=g,g(E)}function g(E){const T=s(E);if(T)return T;const C=JL(E,a);return f(E,C),C}return function(){return p(eI.apply(null,arguments))}}const pn=e=>{const n=a=>a[e]||[];return n.isThemeGetter=!0,n},JA=/^\[(?:([a-z-]+):)?(.+)\]$/i,nI=/^\d+\/\d+$/,rI=new Set(["px","full","screen"]),aI=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,iI=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,oI=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,uI=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,sI=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ou=e=>Bf(e)||rI.has(e)||nI.test(e),qs=e=>Gf(e,"length",gI),Bf=e=>!!e&&!Number.isNaN(Number(e)),DT=e=>Gf(e,"number",Bf),ym=e=>!!e&&Number.isInteger(Number(e)),lI=e=>e.endsWith("%")&&Bf(e.slice(0,-1)),xt=e=>JA.test(e),Qs=e=>aI.test(e),cI=new Set(["length","size","percentage"]),dI=e=>Gf(e,cI,ek),fI=e=>Gf(e,"position",ek),hI=new Set(["image","url"]),pI=e=>Gf(e,hI,yI),mI=e=>Gf(e,"",vI),Em=()=>!0,Gf=(e,n,a)=>{const s=JA.exec(e);return s?s[1]?typeof n=="string"?s[1]===n:n.has(s[1]):a(s[2]):!1},gI=e=>iI.test(e)&&!oI.test(e),ek=()=>!1,vI=e=>uI.test(e),yI=e=>sI.test(e),EI=()=>{const e=pn("colors"),n=pn("spacing"),a=pn("blur"),s=pn("brightness"),f=pn("borderColor"),p=pn("borderRadius"),d=pn("borderSpacing"),g=pn("borderWidth"),E=pn("contrast"),T=pn("grayscale"),C=pn("hueRotate"),S=pn("invert"),R=pn("gap"),A=pn("gradientColorStops"),D=pn("gradientColorStopPositions"),L=pn("inset"),U=pn("margin"),H=pn("opacity"),G=pn("padding"),W=pn("saturate"),Z=pn("scale"),J=pn("sepia"),X=pn("skew"),ce=pn("space"),we=pn("translate"),Me=()=>["auto","contain","none"],K=()=>["auto","hidden","clip","visible","scroll"],Ee=()=>["auto",xt,n],ge=()=>[xt,n],Re=()=>["",Ou,qs],Oe=()=>["auto",Bf,xt],qe=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],je=()=>["solid","dashed","dotted","double","none"],at=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],pe=()=>["start","end","center","between","around","evenly","stretch"],De=()=>["","0",xt],P=()=>["auto","avoid","all","avoid-page","page","left","right","column"],et=()=>[Bf,xt];return{cacheSize:500,separator:":",theme:{colors:[Em],spacing:[Ou,qs],blur:["none","",Qs,xt],brightness:et(),borderColor:[e],borderRadius:["none","","full",Qs,xt],borderSpacing:ge(),borderWidth:Re(),contrast:et(),grayscale:De(),hueRotate:et(),invert:De(),gap:ge(),gradientColorStops:[e],gradientColorStopPositions:[lI,qs],inset:Ee(),margin:Ee(),opacity:et(),padding:ge(),saturate:et(),scale:et(),sepia:De(),skew:et(),space:ge(),translate:ge()},classGroups:{aspect:[{aspect:["auto","square","video",xt]}],container:["container"],columns:[{columns:[Qs]}],"break-after":[{"break-after":P()}],"break-before":[{"break-before":P()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...qe(),xt]}],overflow:[{overflow:K()}],"overflow-x":[{"overflow-x":K()}],"overflow-y":[{"overflow-y":K()}],overscroll:[{overscroll:Me()}],"overscroll-x":[{"overscroll-x":Me()}],"overscroll-y":[{"overscroll-y":Me()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[L]}],"inset-x":[{"inset-x":[L]}],"inset-y":[{"inset-y":[L]}],start:[{start:[L]}],end:[{end:[L]}],top:[{top:[L]}],right:[{right:[L]}],bottom:[{bottom:[L]}],left:[{left:[L]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",ym,xt]}],basis:[{basis:Ee()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",xt]}],grow:[{grow:De()}],shrink:[{shrink:De()}],order:[{order:["first","last","none",ym,xt]}],"grid-cols":[{"grid-cols":[Em]}],"col-start-end":[{col:["auto",{span:["full",ym,xt]},xt]}],"col-start":[{"col-start":Oe()}],"col-end":[{"col-end":Oe()}],"grid-rows":[{"grid-rows":[Em]}],"row-start-end":[{row:["auto",{span:[ym,xt]},xt]}],"row-start":[{"row-start":Oe()}],"row-end":[{"row-end":Oe()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",xt]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",xt]}],gap:[{gap:[R]}],"gap-x":[{"gap-x":[R]}],"gap-y":[{"gap-y":[R]}],"justify-content":[{justify:["normal",...pe()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...pe(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...pe(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[G]}],px:[{px:[G]}],py:[{py:[G]}],ps:[{ps:[G]}],pe:[{pe:[G]}],pt:[{pt:[G]}],pr:[{pr:[G]}],pb:[{pb:[G]}],pl:[{pl:[G]}],m:[{m:[U]}],mx:[{mx:[U]}],my:[{my:[U]}],ms:[{ms:[U]}],me:[{me:[U]}],mt:[{mt:[U]}],mr:[{mr:[U]}],mb:[{mb:[U]}],ml:[{ml:[U]}],"space-x":[{"space-x":[ce]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[ce]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",xt,n]}],"min-w":[{"min-w":[xt,n,"min","max","fit"]}],"max-w":[{"max-w":[xt,n,"none","full","min","max","fit","prose",{screen:[Qs]},Qs]}],h:[{h:[xt,n,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[xt,n,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[xt,n,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[xt,n,"auto","min","max","fit"]}],"font-size":[{text:["base",Qs,qs]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",DT]}],"font-family":[{font:[Em]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",xt]}],"line-clamp":[{"line-clamp":["none",Bf,DT]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Ou,xt]}],"list-image":[{"list-image":["none",xt]}],"list-style-type":[{list:["none","disc","decimal",xt]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[H]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[H]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...je(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Ou,qs]}],"underline-offset":[{"underline-offset":["auto",Ou,xt]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:ge()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",xt]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",xt]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[H]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...qe(),fI]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",dI]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},pI]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[D]}],"gradient-via-pos":[{via:[D]}],"gradient-to-pos":[{to:[D]}],"gradient-from":[{from:[A]}],"gradient-via":[{via:[A]}],"gradient-to":[{to:[A]}],rounded:[{rounded:[p]}],"rounded-s":[{"rounded-s":[p]}],"rounded-e":[{"rounded-e":[p]}],"rounded-t":[{"rounded-t":[p]}],"rounded-r":[{"rounded-r":[p]}],"rounded-b":[{"rounded-b":[p]}],"rounded-l":[{"rounded-l":[p]}],"rounded-ss":[{"rounded-ss":[p]}],"rounded-se":[{"rounded-se":[p]}],"rounded-ee":[{"rounded-ee":[p]}],"rounded-es":[{"rounded-es":[p]}],"rounded-tl":[{"rounded-tl":[p]}],"rounded-tr":[{"rounded-tr":[p]}],"rounded-br":[{"rounded-br":[p]}],"rounded-bl":[{"rounded-bl":[p]}],"border-w":[{border:[g]}],"border-w-x":[{"border-x":[g]}],"border-w-y":[{"border-y":[g]}],"border-w-s":[{"border-s":[g]}],"border-w-e":[{"border-e":[g]}],"border-w-t":[{"border-t":[g]}],"border-w-r":[{"border-r":[g]}],"border-w-b":[{"border-b":[g]}],"border-w-l":[{"border-l":[g]}],"border-opacity":[{"border-opacity":[H]}],"border-style":[{border:[...je(),"hidden"]}],"divide-x":[{"divide-x":[g]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[g]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[H]}],"divide-style":[{divide:je()}],"border-color":[{border:[f]}],"border-color-x":[{"border-x":[f]}],"border-color-y":[{"border-y":[f]}],"border-color-s":[{"border-s":[f]}],"border-color-e":[{"border-e":[f]}],"border-color-t":[{"border-t":[f]}],"border-color-r":[{"border-r":[f]}],"border-color-b":[{"border-b":[f]}],"border-color-l":[{"border-l":[f]}],"divide-color":[{divide:[f]}],"outline-style":[{outline:["",...je()]}],"outline-offset":[{"outline-offset":[Ou,xt]}],"outline-w":[{outline:[Ou,qs]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:Re()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[H]}],"ring-offset-w":[{"ring-offset":[Ou,qs]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Qs,mI]}],"shadow-color":[{shadow:[Em]}],opacity:[{opacity:[H]}],"mix-blend":[{"mix-blend":[...at(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":at()}],filter:[{filter:["","none"]}],blur:[{blur:[a]}],brightness:[{brightness:[s]}],contrast:[{contrast:[E]}],"drop-shadow":[{"drop-shadow":["","none",Qs,xt]}],grayscale:[{grayscale:[T]}],"hue-rotate":[{"hue-rotate":[C]}],invert:[{invert:[S]}],saturate:[{saturate:[W]}],sepia:[{sepia:[J]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[a]}],"backdrop-brightness":[{"backdrop-brightness":[s]}],"backdrop-contrast":[{"backdrop-contrast":[E]}],"backdrop-grayscale":[{"backdrop-grayscale":[T]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[C]}],"backdrop-invert":[{"backdrop-invert":[S]}],"backdrop-opacity":[{"backdrop-opacity":[H]}],"backdrop-saturate":[{"backdrop-saturate":[W]}],"backdrop-sepia":[{"backdrop-sepia":[J]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[d]}],"border-spacing-x":[{"border-spacing-x":[d]}],"border-spacing-y":[{"border-spacing-y":[d]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",xt]}],duration:[{duration:et()}],ease:[{ease:["linear","in","out","in-out",xt]}],delay:[{delay:et()}],animate:[{animate:["none","spin","ping","pulse","bounce",xt]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[Z]}],"scale-x":[{"scale-x":[Z]}],"scale-y":[{"scale-y":[Z]}],rotate:[{rotate:[ym,xt]}],"translate-x":[{"translate-x":[we]}],"translate-y":[{"translate-y":[we]}],"skew-x":[{"skew-x":[X]}],"skew-y":[{"skew-y":[X]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",xt]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",xt]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":ge()}],"scroll-mx":[{"scroll-mx":ge()}],"scroll-my":[{"scroll-my":ge()}],"scroll-ms":[{"scroll-ms":ge()}],"scroll-me":[{"scroll-me":ge()}],"scroll-mt":[{"scroll-mt":ge()}],"scroll-mr":[{"scroll-mr":ge()}],"scroll-mb":[{"scroll-mb":ge()}],"scroll-ml":[{"scroll-ml":ge()}],"scroll-p":[{"scroll-p":ge()}],"scroll-px":[{"scroll-px":ge()}],"scroll-py":[{"scroll-py":ge()}],"scroll-ps":[{"scroll-ps":ge()}],"scroll-pe":[{"scroll-pe":ge()}],"scroll-pt":[{"scroll-pt":ge()}],"scroll-pr":[{"scroll-pr":ge()}],"scroll-pb":[{"scroll-pb":ge()}],"scroll-pl":[{"scroll-pl":ge()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",xt]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Ou,qs,DT]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},bI=tI(EI);function jt(...e){return bI($A.clsx(e))}const TI=Um.Provider,wI=Um.Root,xI=Um.Trigger,tk=ie.forwardRef(({className:e,sideOffset:n=4,...a},s)=>z.jsx(Um.Content,{ref:s,sideOffset:n,className:jt("z-50 overflow-hidden max-w-xs rounded-xl bg-black border text-primary-foreground p-2 text-center align-middle text-xs shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...a}));tk.displayName=Um.Content.displayName;function cw({children:e,content:n,side:a,align:s}){return z.jsxs(wI,{children:[z.jsx(xI,{asChild:!0,children:e}),z.jsx(tk,{side:a,align:s,collisionPadding:8,avoidCollisions:!0,children:n})]})}function r_(e,n){const a=String(e);if(typeof n!="string")throw new TypeError("Expected character");let s=0,f=a.indexOf(n);for(;f!==-1;)s++,f=a.indexOf(n,f+n.length);return s}const Ea=il(/[A-Za-z]/),na=il(/[\dA-Za-z]/),SI=il(/[#-'*+\--9=?A-Z^-~]/);function S1(e){return e!==null&&(e<32||e===127)}const dw=il(/\d/),CI=il(/[\dA-Fa-f]/),_I=il(/[!-/:-@[-`{-~]/);function ut(e){return e!==null&&e<-2}function rn(e){return e!==null&&(e<0||e===32)}function Ot(e){return e===-2||e===-1||e===32}const P1=il(new RegExp("\\p{P}|\\p{S}","u")),_c=il(/\s/);function il(e){return n;function n(a){return a!==null&&a>-1&&e.test(String.fromCharCode(a))}}function AI(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}const F1=function(e){if(e==null)return DI;if(typeof e=="function")return U1(e);if(typeof e=="object")return Array.isArray(e)?kI(e):RI(e);if(typeof e=="string")return NI(e);throw new Error("Expected function, string, or object as test")};function kI(e){const n=[];let a=-1;for(;++a<e.length;)n[a]=F1(e[a]);return U1(s);function s(...f){let p=-1;for(;++p<n.length;)if(n[p].apply(this,f))return!0;return!1}}function RI(e){const n=e;return U1(a);function a(s){const f=s;let p;for(p in e)if(f[p]!==n[p])return!1;return!0}}function NI(e){return U1(n);function n(a){return a&&a.type===e}}function U1(e){return n;function n(a,s,f){return!!(OI(a)&&e.call(this,a,typeof s=="number"?s:void 0,f||void 0))}}function DI(){return!0}function OI(e){return e!==null&&typeof e=="object"&&"type"in e}const nk=[],LI=!0,fw=!1,II="skip";function rk(e,n,a,s){let f;typeof n=="function"&&typeof a!="function"?(s=a,a=n):f=n;const p=F1(f),d=s?-1:1;g(e,void 0,[])();function g(E,T,C){const S=E&&typeof E=="object"?E:{};if(typeof S.type=="string"){const A=typeof S.tagName=="string"?S.tagName:typeof S.name=="string"?S.name:void 0;Object.defineProperty(R,"name",{value:"node ("+(E.type+(A?"<"+A+">":""))+")"})}return R;function R(){let A=nk,D,L,U;if((!n||p(E,T,C[C.length-1]||void 0))&&(A=MI(a(E,C)),A[0]===fw))return A;if("children"in E&&E.children){const H=E;if(H.children&&A[0]!==II)for(L=(s?H.children.length:-1)+d,U=C.concat(H);L>-1&&L<H.children.length;){const G=H.children[L];if(D=g(G,L,U)(),D[0]===fw)return D;L=typeof D[1]=="number"?D[1]:L+d}}return A}}}function MI(e){return Array.isArray(e)?e:typeof e=="number"?[LI,e]:e==null?nk:[e]}function PI(e,n,a){const f=F1((a||{}).ignore||[]),p=FI(n);let d=-1;for(;++d<p.length;)rk(e,"text",g);function g(T,C){let S=-1,R;for(;++S<C.length;){const A=C[S],D=R?R.children:void 0;if(f(A,D?D.indexOf(A):void 0,R))return;R=A}if(R)return E(T,C)}function E(T,C){const S=C[C.length-1],R=p[d][0],A=p[d][1];let D=0;const U=S.children.indexOf(T);let H=!1,G=[];R.lastIndex=0;let W=R.exec(T.value);for(;W;){const Z=W.index,J={index:W.index,input:W.input,stack:[...C,T]};let X=A(...W,J);if(typeof X=="string"&&(X=X.length>0?{type:"text",value:X}:void 0),X===!1?R.lastIndex=Z+1:(D!==Z&&G.push({type:"text",value:T.value.slice(D,Z)}),Array.isArray(X)?G.push(...X):X&&G.push(X),D=Z+W[0].length,H=!0),!R.global)break;W=R.exec(T.value)}return H?(D<T.value.length&&G.push({type:"text",value:T.value.slice(D)}),S.children.splice(U,1,...G)):G=[T],U+G.length}}function FI(e){const n=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const a=!e[0]||Array.isArray(e[0])?e:[e];let s=-1;for(;++s<a.length;){const f=a[s];n.push([UI(f[0]),BI(f[1])])}return n}function UI(e){return typeof e=="string"?new RegExp(AI(e),"g"):e}function BI(e){return typeof e=="function"?e:function(){return e}}const OT="phrasing",LT=["autolink","link","image","label"];function HI(){return{transforms:[QI],enter:{literalAutolink:jI,literalAutolinkEmail:IT,literalAutolinkHttp:IT,literalAutolinkWww:IT},exit:{literalAutolink:qI,literalAutolinkEmail:WI,literalAutolinkHttp:VI,literalAutolinkWww:YI}}}function zI(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:OT,notInConstruct:LT},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:OT,notInConstruct:LT},{character:":",before:"[ps]",after:"\\/",inConstruct:OT,notInConstruct:LT}]}}function jI(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function IT(e){this.config.enter.autolinkProtocol.call(this,e)}function VI(e){this.config.exit.autolinkProtocol.call(this,e)}function YI(e){this.config.exit.data.call(this,e);const n=this.stack[this.stack.length-1];n.type,n.url="http://"+this.sliceSerialize(e)}function WI(e){this.config.exit.autolinkEmail.call(this,e)}function qI(e){this.exit(e)}function QI(e){PI(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,$I],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),GI]],{ignore:["link","linkReference"]})}function $I(e,n,a,s,f){let p="";if(!ak(f)||(/^w/i.test(n)&&(a=n+a,n="",p="http://"),!XI(a)))return!1;const d=KI(a+s);if(!d[0])return!1;const g={type:"link",title:null,url:p+n+d[0],children:[{type:"text",value:n+d[0]}]};return d[1]?[g,{type:"text",value:d[1]}]:g}function GI(e,n,a,s){return!ak(s,!0)||/[-\d_]$/.test(a)?!1:{type:"link",title:null,url:"mailto:"+n+"@"+a,children:[{type:"text",value:n+"@"+a}]}}function XI(e){const n=e.split(".");return!(n.length<2||n[n.length-1]&&(/_/.test(n[n.length-1])||!/[a-zA-Z\d]/.test(n[n.length-1]))||n[n.length-2]&&(/_/.test(n[n.length-2])||!/[a-zA-Z\d]/.test(n[n.length-2])))}function KI(e){const n=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!n)return[e,void 0];e=e.slice(0,n.index);let a=n[0],s=a.indexOf(")");const f=r_(e,"(");let p=r_(e,")");for(;s!==-1&&f>p;)e+=a.slice(0,s+1),a=a.slice(s+1),s=a.indexOf(")"),p++;return[e,a]}function ak(e,n){const a=e.input.charCodeAt(e.index-1);return(e.index===0||_c(a)||P1(a))&&(!n||a!==47)}function oo(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}ik.peek=s5;function ZI(){return{enter:{gfmFootnoteDefinition:e5,gfmFootnoteDefinitionLabelString:t5,gfmFootnoteCall:a5,gfmFootnoteCallString:i5},exit:{gfmFootnoteDefinition:r5,gfmFootnoteDefinitionLabelString:n5,gfmFootnoteCall:u5,gfmFootnoteCallString:o5}}}function JI(){return{unsafe:[{character:"[",inConstruct:["phrasing","label","reference"]}],handlers:{footnoteDefinition:l5,footnoteReference:ik}}}function e5(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function t5(){this.buffer()}function n5(e){const n=this.resume(),a=this.stack[this.stack.length-1];a.type,a.label=n,a.identifier=oo(this.sliceSerialize(e)).toLowerCase()}function r5(e){this.exit(e)}function a5(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function i5(){this.buffer()}function o5(e){const n=this.resume(),a=this.stack[this.stack.length-1];a.type,a.label=n,a.identifier=oo(this.sliceSerialize(e)).toLowerCase()}function u5(e){this.exit(e)}function ik(e,n,a,s){const f=a.createTracker(s);let p=f.move("[^");const d=a.enter("footnoteReference"),g=a.enter("reference");return p+=f.move(a.safe(a.associationId(e),{...f.current(),before:p,after:"]"})),g(),d(),p+=f.move("]"),p}function s5(){return"["}function l5(e,n,a,s){const f=a.createTracker(s);let p=f.move("[^");const d=a.enter("footnoteDefinition"),g=a.enter("label");return p+=f.move(a.safe(a.associationId(e),{...f.current(),before:p,after:"]"})),g(),p+=f.move("]:"+(e.children&&e.children.length>0?" ":"")),f.shift(4),p+=f.move(a.indentLines(a.containerFlow(e,f.current()),c5)),d(),p}function c5(e,n,a){return n===0?e:(a?"":" ")+e}const d5=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];ok.peek=g5;function f5(){return{canContainEols:["delete"],enter:{strikethrough:p5},exit:{strikethrough:m5}}}function h5(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:d5}],handlers:{delete:ok}}}function p5(e){this.enter({type:"delete",children:[]},e)}function m5(e){this.exit(e)}function ok(e,n,a,s){const f=a.createTracker(s),p=a.enter("strikethrough");let d=f.move("~~");return d+=a.containerPhrasing(e,{...f.current(),before:d,after:"~"}),d+=f.move("~~"),p(),d}function g5(){return"~"}function v5(e,n={}){const a=(n.align||[]).concat(),s=n.stringLength||E5,f=[],p=[],d=[],g=[];let E=0,T=-1;for(;++T<e.length;){const D=[],L=[];let U=-1;for(e[T].length>E&&(E=e[T].length);++U<e[T].length;){const H=y5(e[T][U]);if(n.alignDelimiters!==!1){const G=s(H);L[U]=G,(g[U]===void 0||G>g[U])&&(g[U]=G)}D.push(H)}p[T]=D,d[T]=L}let C=-1;if(typeof a=="object"&&"length"in a)for(;++C<E;)f[C]=a_(a[C]);else{const D=a_(a);for(;++C<E;)f[C]=D}C=-1;const S=[],R=[];for(;++C<E;){const D=f[C];let L="",U="";D===99?(L=":",U=":"):D===108?L=":":D===114&&(U=":");let H=n.alignDelimiters===!1?1:Math.max(1,g[C]-L.length-U.length);const G=L+"-".repeat(H)+U;n.alignDelimiters!==!1&&(H=L.length+H+U.length,H>g[C]&&(g[C]=H),R[C]=H),S[C]=G}p.splice(1,0,S),d.splice(1,0,R),T=-1;const A=[];for(;++T<p.length;){const D=p[T],L=d[T];C=-1;const U=[];for(;++C<E;){const H=D[C]||"";let G="",W="";if(n.alignDelimiters!==!1){const Z=g[C]-(L[C]||0),J=f[C];J===114?G=" ".repeat(Z):J===99?Z%2?(G=" ".repeat(Z/2+.5),W=" ".repeat(Z/2-.5)):(G=" ".repeat(Z/2),W=G):W=" ".repeat(Z)}n.delimiterStart!==!1&&!C&&U.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&H==="")&&(n.delimiterStart!==!1||C)&&U.push(" "),n.alignDelimiters!==!1&&U.push(G),U.push(H),n.alignDelimiters!==!1&&U.push(W),n.padding!==!1&&U.push(" "),(n.delimiterEnd!==!1||C!==E-1)&&U.push("|")}A.push(n.delimiterEnd===!1?U.join("").replace(/ +$/,""):U.join(""))}return A.join(`
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const z=require("react/jsx-runtime"),Tt=require("./index-B7LNpE9i.cjs"),ML=require("@radix-ui/react-tooltip"),vt=require("react"),$A=require("clsx"),PL=require("@radix-ui/react-avatar"),ta=require("framer-motion"),JC=require("tinycolor2"),FL=require("date-fns"),Yn=require("lucide-react"),Pw=require("@radix-ui/react-slot"),UL=require("@radix-ui/react-dropdown-menu"),BL=require("@radix-ui/react-switch"),HL=require("react-dropzone"),e_=require("react-hot-toast"),zL=require("./schemas-wky4fpbc.cjs"),NT=require("zod");function Fm(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const a in e)if(a!=="default"){const s=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(n,a,s.get?s:{enumerable:!0,get:()=>e[a]})}}return n.default=e,Object.freeze(n)}const Um=Fm(ML),ie=Fm(vt),$f=Fm(PL),qn=Fm(UL),sw=Fm(BL),jL="[data-chat-widget-content-root]";function GA({fallbackHeight:e}){const n=vt.useRef(null);return vt.useEffect(()=>{const a=document.querySelector(jL);if(a&&n.current){const s=n.current;let f;const p=new ResizeObserver(()=>{f=requestAnimationFrame(()=>{const d=Math.max(s.offsetHeight,e);a.style.setProperty("--opencx-widget-height",d.toFixed(1)+"px")})});return p.observe(s),()=>{cancelAnimationFrame(f),p.unobserve(s)}}},[]),{observedElementRef:n}}const Fw="-",VL=e=>{const n=WL(e),{conflictingClassGroups:a,conflictingClassGroupModifiers:s}=e;return{getClassGroupId:d=>{const g=d.split(Fw);return g[0]===""&&g.length!==1&&g.shift(),XA(g,n)||YL(d)},getConflictingClassGroupIds:(d,g)=>{const E=a[d]||[];return g&&s[d]?[...E,...s[d]]:E}}},XA=(e,n)=>{var d;if(e.length===0)return n.classGroupId;const a=e[0],s=n.nextPart.get(a),f=s?XA(e.slice(1),s):void 0;if(f)return f;if(n.validators.length===0)return;const p=e.join(Fw);return(d=n.validators.find(({validator:g})=>g(p)))==null?void 0:d.classGroupId},t_=/^\[(.+)\]$/,YL=e=>{if(t_.test(e)){const n=t_.exec(e)[1],a=n==null?void 0:n.substring(0,n.indexOf(":"));if(a)return"arbitrary.."+a}},WL=e=>{const{theme:n,prefix:a}=e,s={nextPart:new Map,validators:[]};return QL(Object.entries(e.classGroups),a).forEach(([p,d])=>{lw(d,s,p,n)}),s},lw=(e,n,a,s)=>{e.forEach(f=>{if(typeof f=="string"){const p=f===""?n:n_(n,f);p.classGroupId=a;return}if(typeof f=="function"){if(qL(f)){lw(f(s),n,a,s);return}n.validators.push({validator:f,classGroupId:a});return}Object.entries(f).forEach(([p,d])=>{lw(d,n_(n,p),a,s)})})},n_=(e,n)=>{let a=e;return n.split(Fw).forEach(s=>{a.nextPart.has(s)||a.nextPart.set(s,{nextPart:new Map,validators:[]}),a=a.nextPart.get(s)}),a},qL=e=>e.isThemeGetter,QL=(e,n)=>n?e.map(([a,s])=>{const f=s.map(p=>typeof p=="string"?n+p:typeof p=="object"?Object.fromEntries(Object.entries(p).map(([d,g])=>[n+d,g])):p);return[a,f]}):e,$L=e=>{if(e<1)return{get:()=>{},set:()=>{}};let n=0,a=new Map,s=new Map;const f=(p,d)=>{a.set(p,d),n++,n>e&&(n=0,s=a,a=new Map)};return{get(p){let d=a.get(p);if(d!==void 0)return d;if((d=s.get(p))!==void 0)return f(p,d),d},set(p,d){a.has(p)?a.set(p,d):f(p,d)}}},KA="!",GL=e=>{const{separator:n,experimentalParseClassName:a}=e,s=n.length===1,f=n[0],p=n.length,d=g=>{const E=[];let T=0,C=0,S;for(let U=0;U<g.length;U++){let H=g[U];if(T===0){if(H===f&&(s||g.slice(U,U+p)===n)){E.push(g.slice(C,U)),C=U+p;continue}if(H==="/"){S=U;continue}}H==="["?T++:H==="]"&&T--}const R=E.length===0?g:g.substring(C),A=R.startsWith(KA),D=A?R.substring(1):R,L=S&&S>C?S-C:void 0;return{modifiers:E,hasImportantModifier:A,baseClassName:D,maybePostfixModifierPosition:L}};return a?g=>a({className:g,parseClassName:d}):d},XL=e=>{if(e.length<=1)return e;const n=[];let a=[];return e.forEach(s=>{s[0]==="["?(n.push(...a.sort(),s),a=[]):a.push(s)}),n.push(...a.sort()),n},KL=e=>({cache:$L(e.cacheSize),parseClassName:GL(e),...VL(e)}),ZL=/\s+/,JL=(e,n)=>{const{parseClassName:a,getClassGroupId:s,getConflictingClassGroupIds:f}=n,p=[],d=e.trim().split(ZL);let g="";for(let E=d.length-1;E>=0;E-=1){const T=d[E],{modifiers:C,hasImportantModifier:S,baseClassName:R,maybePostfixModifierPosition:A}=a(T);let D=!!A,L=s(D?R.substring(0,A):R);if(!L){if(!D){g=T+(g.length>0?" "+g:g);continue}if(L=s(R),!L){g=T+(g.length>0?" "+g:g);continue}D=!1}const U=XL(C).join(":"),H=S?U+KA:U,G=H+L;if(p.includes(G))continue;p.push(G);const W=f(L,D);for(let Z=0;Z<W.length;++Z){const J=W[Z];p.push(H+J)}g=T+(g.length>0?" "+g:g)}return g};function eI(){let e=0,n,a,s="";for(;e<arguments.length;)(n=arguments[e++])&&(a=ZA(n))&&(s&&(s+=" "),s+=a);return s}const ZA=e=>{if(typeof e=="string")return e;let n,a="";for(let s=0;s<e.length;s++)e[s]&&(n=ZA(e[s]))&&(a&&(a+=" "),a+=n);return a};function tI(e,...n){let a,s,f,p=d;function d(E){const T=n.reduce((C,S)=>S(C),e());return a=KL(T),s=a.cache.get,f=a.cache.set,p=g,g(E)}function g(E){const T=s(E);if(T)return T;const C=JL(E,a);return f(E,C),C}return function(){return p(eI.apply(null,arguments))}}const pn=e=>{const n=a=>a[e]||[];return n.isThemeGetter=!0,n},JA=/^\[(?:([a-z-]+):)?(.+)\]$/i,nI=/^\d+\/\d+$/,rI=new Set(["px","full","screen"]),aI=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,iI=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,oI=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,uI=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,sI=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ou=e=>Bf(e)||rI.has(e)||nI.test(e),qs=e=>Gf(e,"length",gI),Bf=e=>!!e&&!Number.isNaN(Number(e)),DT=e=>Gf(e,"number",Bf),ym=e=>!!e&&Number.isInteger(Number(e)),lI=e=>e.endsWith("%")&&Bf(e.slice(0,-1)),xt=e=>JA.test(e),Qs=e=>aI.test(e),cI=new Set(["length","size","percentage"]),dI=e=>Gf(e,cI,ek),fI=e=>Gf(e,"position",ek),hI=new Set(["image","url"]),pI=e=>Gf(e,hI,yI),mI=e=>Gf(e,"",vI),Em=()=>!0,Gf=(e,n,a)=>{const s=JA.exec(e);return s?s[1]?typeof n=="string"?s[1]===n:n.has(s[1]):a(s[2]):!1},gI=e=>iI.test(e)&&!oI.test(e),ek=()=>!1,vI=e=>uI.test(e),yI=e=>sI.test(e),EI=()=>{const e=pn("colors"),n=pn("spacing"),a=pn("blur"),s=pn("brightness"),f=pn("borderColor"),p=pn("borderRadius"),d=pn("borderSpacing"),g=pn("borderWidth"),E=pn("contrast"),T=pn("grayscale"),C=pn("hueRotate"),S=pn("invert"),R=pn("gap"),A=pn("gradientColorStops"),D=pn("gradientColorStopPositions"),L=pn("inset"),U=pn("margin"),H=pn("opacity"),G=pn("padding"),W=pn("saturate"),Z=pn("scale"),J=pn("sepia"),X=pn("skew"),ce=pn("space"),we=pn("translate"),Me=()=>["auto","contain","none"],K=()=>["auto","hidden","clip","visible","scroll"],Ee=()=>["auto",xt,n],ge=()=>[xt,n],Re=()=>["",Ou,qs],Oe=()=>["auto",Bf,xt],qe=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],je=()=>["solid","dashed","dotted","double","none"],at=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],pe=()=>["start","end","center","between","around","evenly","stretch"],De=()=>["","0",xt],P=()=>["auto","avoid","all","avoid-page","page","left","right","column"],et=()=>[Bf,xt];return{cacheSize:500,separator:":",theme:{colors:[Em],spacing:[Ou,qs],blur:["none","",Qs,xt],brightness:et(),borderColor:[e],borderRadius:["none","","full",Qs,xt],borderSpacing:ge(),borderWidth:Re(),contrast:et(),grayscale:De(),hueRotate:et(),invert:De(),gap:ge(),gradientColorStops:[e],gradientColorStopPositions:[lI,qs],inset:Ee(),margin:Ee(),opacity:et(),padding:ge(),saturate:et(),scale:et(),sepia:De(),skew:et(),space:ge(),translate:ge()},classGroups:{aspect:[{aspect:["auto","square","video",xt]}],container:["container"],columns:[{columns:[Qs]}],"break-after":[{"break-after":P()}],"break-before":[{"break-before":P()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...qe(),xt]}],overflow:[{overflow:K()}],"overflow-x":[{"overflow-x":K()}],"overflow-y":[{"overflow-y":K()}],overscroll:[{overscroll:Me()}],"overscroll-x":[{"overscroll-x":Me()}],"overscroll-y":[{"overscroll-y":Me()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[L]}],"inset-x":[{"inset-x":[L]}],"inset-y":[{"inset-y":[L]}],start:[{start:[L]}],end:[{end:[L]}],top:[{top:[L]}],right:[{right:[L]}],bottom:[{bottom:[L]}],left:[{left:[L]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",ym,xt]}],basis:[{basis:Ee()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",xt]}],grow:[{grow:De()}],shrink:[{shrink:De()}],order:[{order:["first","last","none",ym,xt]}],"grid-cols":[{"grid-cols":[Em]}],"col-start-end":[{col:["auto",{span:["full",ym,xt]},xt]}],"col-start":[{"col-start":Oe()}],"col-end":[{"col-end":Oe()}],"grid-rows":[{"grid-rows":[Em]}],"row-start-end":[{row:["auto",{span:[ym,xt]},xt]}],"row-start":[{"row-start":Oe()}],"row-end":[{"row-end":Oe()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",xt]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",xt]}],gap:[{gap:[R]}],"gap-x":[{"gap-x":[R]}],"gap-y":[{"gap-y":[R]}],"justify-content":[{justify:["normal",...pe()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...pe(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...pe(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[G]}],px:[{px:[G]}],py:[{py:[G]}],ps:[{ps:[G]}],pe:[{pe:[G]}],pt:[{pt:[G]}],pr:[{pr:[G]}],pb:[{pb:[G]}],pl:[{pl:[G]}],m:[{m:[U]}],mx:[{mx:[U]}],my:[{my:[U]}],ms:[{ms:[U]}],me:[{me:[U]}],mt:[{mt:[U]}],mr:[{mr:[U]}],mb:[{mb:[U]}],ml:[{ml:[U]}],"space-x":[{"space-x":[ce]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[ce]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",xt,n]}],"min-w":[{"min-w":[xt,n,"min","max","fit"]}],"max-w":[{"max-w":[xt,n,"none","full","min","max","fit","prose",{screen:[Qs]},Qs]}],h:[{h:[xt,n,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[xt,n,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[xt,n,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[xt,n,"auto","min","max","fit"]}],"font-size":[{text:["base",Qs,qs]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",DT]}],"font-family":[{font:[Em]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",xt]}],"line-clamp":[{"line-clamp":["none",Bf,DT]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Ou,xt]}],"list-image":[{"list-image":["none",xt]}],"list-style-type":[{list:["none","disc","decimal",xt]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[H]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[H]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...je(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Ou,qs]}],"underline-offset":[{"underline-offset":["auto",Ou,xt]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:ge()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",xt]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",xt]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[H]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...qe(),fI]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",dI]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},pI]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[D]}],"gradient-via-pos":[{via:[D]}],"gradient-to-pos":[{to:[D]}],"gradient-from":[{from:[A]}],"gradient-via":[{via:[A]}],"gradient-to":[{to:[A]}],rounded:[{rounded:[p]}],"rounded-s":[{"rounded-s":[p]}],"rounded-e":[{"rounded-e":[p]}],"rounded-t":[{"rounded-t":[p]}],"rounded-r":[{"rounded-r":[p]}],"rounded-b":[{"rounded-b":[p]}],"rounded-l":[{"rounded-l":[p]}],"rounded-ss":[{"rounded-ss":[p]}],"rounded-se":[{"rounded-se":[p]}],"rounded-ee":[{"rounded-ee":[p]}],"rounded-es":[{"rounded-es":[p]}],"rounded-tl":[{"rounded-tl":[p]}],"rounded-tr":[{"rounded-tr":[p]}],"rounded-br":[{"rounded-br":[p]}],"rounded-bl":[{"rounded-bl":[p]}],"border-w":[{border:[g]}],"border-w-x":[{"border-x":[g]}],"border-w-y":[{"border-y":[g]}],"border-w-s":[{"border-s":[g]}],"border-w-e":[{"border-e":[g]}],"border-w-t":[{"border-t":[g]}],"border-w-r":[{"border-r":[g]}],"border-w-b":[{"border-b":[g]}],"border-w-l":[{"border-l":[g]}],"border-opacity":[{"border-opacity":[H]}],"border-style":[{border:[...je(),"hidden"]}],"divide-x":[{"divide-x":[g]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[g]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[H]}],"divide-style":[{divide:je()}],"border-color":[{border:[f]}],"border-color-x":[{"border-x":[f]}],"border-color-y":[{"border-y":[f]}],"border-color-s":[{"border-s":[f]}],"border-color-e":[{"border-e":[f]}],"border-color-t":[{"border-t":[f]}],"border-color-r":[{"border-r":[f]}],"border-color-b":[{"border-b":[f]}],"border-color-l":[{"border-l":[f]}],"divide-color":[{divide:[f]}],"outline-style":[{outline:["",...je()]}],"outline-offset":[{"outline-offset":[Ou,xt]}],"outline-w":[{outline:[Ou,qs]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:Re()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[H]}],"ring-offset-w":[{"ring-offset":[Ou,qs]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Qs,mI]}],"shadow-color":[{shadow:[Em]}],opacity:[{opacity:[H]}],"mix-blend":[{"mix-blend":[...at(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":at()}],filter:[{filter:["","none"]}],blur:[{blur:[a]}],brightness:[{brightness:[s]}],contrast:[{contrast:[E]}],"drop-shadow":[{"drop-shadow":["","none",Qs,xt]}],grayscale:[{grayscale:[T]}],"hue-rotate":[{"hue-rotate":[C]}],invert:[{invert:[S]}],saturate:[{saturate:[W]}],sepia:[{sepia:[J]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[a]}],"backdrop-brightness":[{"backdrop-brightness":[s]}],"backdrop-contrast":[{"backdrop-contrast":[E]}],"backdrop-grayscale":[{"backdrop-grayscale":[T]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[C]}],"backdrop-invert":[{"backdrop-invert":[S]}],"backdrop-opacity":[{"backdrop-opacity":[H]}],"backdrop-saturate":[{"backdrop-saturate":[W]}],"backdrop-sepia":[{"backdrop-sepia":[J]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[d]}],"border-spacing-x":[{"border-spacing-x":[d]}],"border-spacing-y":[{"border-spacing-y":[d]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",xt]}],duration:[{duration:et()}],ease:[{ease:["linear","in","out","in-out",xt]}],delay:[{delay:et()}],animate:[{animate:["none","spin","ping","pulse","bounce",xt]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[Z]}],"scale-x":[{"scale-x":[Z]}],"scale-y":[{"scale-y":[Z]}],rotate:[{rotate:[ym,xt]}],"translate-x":[{"translate-x":[we]}],"translate-y":[{"translate-y":[we]}],"skew-x":[{"skew-x":[X]}],"skew-y":[{"skew-y":[X]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",xt]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",xt]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":ge()}],"scroll-mx":[{"scroll-mx":ge()}],"scroll-my":[{"scroll-my":ge()}],"scroll-ms":[{"scroll-ms":ge()}],"scroll-me":[{"scroll-me":ge()}],"scroll-mt":[{"scroll-mt":ge()}],"scroll-mr":[{"scroll-mr":ge()}],"scroll-mb":[{"scroll-mb":ge()}],"scroll-ml":[{"scroll-ml":ge()}],"scroll-p":[{"scroll-p":ge()}],"scroll-px":[{"scroll-px":ge()}],"scroll-py":[{"scroll-py":ge()}],"scroll-ps":[{"scroll-ps":ge()}],"scroll-pe":[{"scroll-pe":ge()}],"scroll-pt":[{"scroll-pt":ge()}],"scroll-pr":[{"scroll-pr":ge()}],"scroll-pb":[{"scroll-pb":ge()}],"scroll-pl":[{"scroll-pl":ge()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",xt]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Ou,qs,DT]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},bI=tI(EI);function jt(...e){return bI($A.clsx(e))}const TI=Um.Provider,wI=Um.Root,xI=Um.Trigger,tk=ie.forwardRef(({className:e,sideOffset:n=4,...a},s)=>z.jsx(Um.Content,{ref:s,sideOffset:n,className:jt("z-50 overflow-hidden max-w-xs rounded-xl bg-black border text-primary-foreground p-2 text-center align-middle text-xs shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...a}));tk.displayName=Um.Content.displayName;function cw({children:e,content:n,side:a,align:s}){return z.jsxs(wI,{children:[z.jsx(xI,{asChild:!0,children:e}),z.jsx(tk,{side:a,align:s,collisionPadding:8,avoidCollisions:!0,children:n})]})}function r_(e,n){const a=String(e);if(typeof n!="string")throw new TypeError("Expected character");let s=0,f=a.indexOf(n);for(;f!==-1;)s++,f=a.indexOf(n,f+n.length);return s}const Ea=il(/[A-Za-z]/),na=il(/[\dA-Za-z]/),SI=il(/[#-'*+\--9=?A-Z^-~]/);function S1(e){return e!==null&&(e<32||e===127)}const dw=il(/\d/),CI=il(/[\dA-Fa-f]/),_I=il(/[!-/:-@[-`{-~]/);function ut(e){return e!==null&&e<-2}function rn(e){return e!==null&&(e<0||e===32)}function Ot(e){return e===-2||e===-1||e===32}const P1=il(new RegExp("\\p{P}|\\p{S}","u")),_c=il(/\s/);function il(e){return n;function n(a){return a!==null&&a>-1&&e.test(String.fromCharCode(a))}}function AI(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}const F1=function(e){if(e==null)return DI;if(typeof e=="function")return U1(e);if(typeof e=="object")return Array.isArray(e)?kI(e):RI(e);if(typeof e=="string")return NI(e);throw new Error("Expected function, string, or object as test")};function kI(e){const n=[];let a=-1;for(;++a<e.length;)n[a]=F1(e[a]);return U1(s);function s(...f){let p=-1;for(;++p<n.length;)if(n[p].apply(this,f))return!0;return!1}}function RI(e){const n=e;return U1(a);function a(s){const f=s;let p;for(p in e)if(f[p]!==n[p])return!1;return!0}}function NI(e){return U1(n);function n(a){return a&&a.type===e}}function U1(e){return n;function n(a,s,f){return!!(OI(a)&&e.call(this,a,typeof s=="number"?s:void 0,f||void 0))}}function DI(){return!0}function OI(e){return e!==null&&typeof e=="object"&&"type"in e}const nk=[],LI=!0,fw=!1,II="skip";function rk(e,n,a,s){let f;typeof n=="function"&&typeof a!="function"?(s=a,a=n):f=n;const p=F1(f),d=s?-1:1;g(e,void 0,[])();function g(E,T,C){const S=E&&typeof E=="object"?E:{};if(typeof S.type=="string"){const A=typeof S.tagName=="string"?S.tagName:typeof S.name=="string"?S.name:void 0;Object.defineProperty(R,"name",{value:"node ("+(E.type+(A?"<"+A+">":""))+")"})}return R;function R(){let A=nk,D,L,U;if((!n||p(E,T,C[C.length-1]||void 0))&&(A=MI(a(E,C)),A[0]===fw))return A;if("children"in E&&E.children){const H=E;if(H.children&&A[0]!==II)for(L=(s?H.children.length:-1)+d,U=C.concat(H);L>-1&&L<H.children.length;){const G=H.children[L];if(D=g(G,L,U)(),D[0]===fw)return D;L=typeof D[1]=="number"?D[1]:L+d}}return A}}}function MI(e){return Array.isArray(e)?e:typeof e=="number"?[LI,e]:e==null?nk:[e]}function PI(e,n,a){const f=F1((a||{}).ignore||[]),p=FI(n);let d=-1;for(;++d<p.length;)rk(e,"text",g);function g(T,C){let S=-1,R;for(;++S<C.length;){const A=C[S],D=R?R.children:void 0;if(f(A,D?D.indexOf(A):void 0,R))return;R=A}if(R)return E(T,C)}function E(T,C){const S=C[C.length-1],R=p[d][0],A=p[d][1];let D=0;const U=S.children.indexOf(T);let H=!1,G=[];R.lastIndex=0;let W=R.exec(T.value);for(;W;){const Z=W.index,J={index:W.index,input:W.input,stack:[...C,T]};let X=A(...W,J);if(typeof X=="string"&&(X=X.length>0?{type:"text",value:X}:void 0),X===!1?R.lastIndex=Z+1:(D!==Z&&G.push({type:"text",value:T.value.slice(D,Z)}),Array.isArray(X)?G.push(...X):X&&G.push(X),D=Z+W[0].length,H=!0),!R.global)break;W=R.exec(T.value)}return H?(D<T.value.length&&G.push({type:"text",value:T.value.slice(D)}),S.children.splice(U,1,...G)):G=[T],U+G.length}}function FI(e){const n=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const a=!e[0]||Array.isArray(e[0])?e:[e];let s=-1;for(;++s<a.length;){const f=a[s];n.push([UI(f[0]),BI(f[1])])}return n}function UI(e){return typeof e=="string"?new RegExp(AI(e),"g"):e}function BI(e){return typeof e=="function"?e:function(){return e}}const OT="phrasing",LT=["autolink","link","image","label"];function HI(){return{transforms:[QI],enter:{literalAutolink:jI,literalAutolinkEmail:IT,literalAutolinkHttp:IT,literalAutolinkWww:IT},exit:{literalAutolink:qI,literalAutolinkEmail:WI,literalAutolinkHttp:VI,literalAutolinkWww:YI}}}function zI(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:OT,notInConstruct:LT},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:OT,notInConstruct:LT},{character:":",before:"[ps]",after:"\\/",inConstruct:OT,notInConstruct:LT}]}}function jI(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function IT(e){this.config.enter.autolinkProtocol.call(this,e)}function VI(e){this.config.exit.autolinkProtocol.call(this,e)}function YI(e){this.config.exit.data.call(this,e);const n=this.stack[this.stack.length-1];n.type,n.url="http://"+this.sliceSerialize(e)}function WI(e){this.config.exit.autolinkEmail.call(this,e)}function qI(e){this.exit(e)}function QI(e){PI(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,$I],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),GI]],{ignore:["link","linkReference"]})}function $I(e,n,a,s,f){let p="";if(!ak(f)||(/^w/i.test(n)&&(a=n+a,n="",p="http://"),!XI(a)))return!1;const d=KI(a+s);if(!d[0])return!1;const g={type:"link",title:null,url:p+n+d[0],children:[{type:"text",value:n+d[0]}]};return d[1]?[g,{type:"text",value:d[1]}]:g}function GI(e,n,a,s){return!ak(s,!0)||/[-\d_]$/.test(a)?!1:{type:"link",title:null,url:"mailto:"+n+"@"+a,children:[{type:"text",value:n+"@"+a}]}}function XI(e){const n=e.split(".");return!(n.length<2||n[n.length-1]&&(/_/.test(n[n.length-1])||!/[a-zA-Z\d]/.test(n[n.length-1]))||n[n.length-2]&&(/_/.test(n[n.length-2])||!/[a-zA-Z\d]/.test(n[n.length-2])))}function KI(e){const n=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!n)return[e,void 0];e=e.slice(0,n.index);let a=n[0],s=a.indexOf(")");const f=r_(e,"(");let p=r_(e,")");for(;s!==-1&&f>p;)e+=a.slice(0,s+1),a=a.slice(s+1),s=a.indexOf(")"),p++;return[e,a]}function ak(e,n){const a=e.input.charCodeAt(e.index-1);return(e.index===0||_c(a)||P1(a))&&(!n||a!==47)}function oo(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}ik.peek=s5;function ZI(){return{enter:{gfmFootnoteDefinition:e5,gfmFootnoteDefinitionLabelString:t5,gfmFootnoteCall:a5,gfmFootnoteCallString:i5},exit:{gfmFootnoteDefinition:r5,gfmFootnoteDefinitionLabelString:n5,gfmFootnoteCall:u5,gfmFootnoteCallString:o5}}}function JI(){return{unsafe:[{character:"[",inConstruct:["phrasing","label","reference"]}],handlers:{footnoteDefinition:l5,footnoteReference:ik}}}function e5(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function t5(){this.buffer()}function n5(e){const n=this.resume(),a=this.stack[this.stack.length-1];a.type,a.label=n,a.identifier=oo(this.sliceSerialize(e)).toLowerCase()}function r5(e){this.exit(e)}function a5(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function i5(){this.buffer()}function o5(e){const n=this.resume(),a=this.stack[this.stack.length-1];a.type,a.label=n,a.identifier=oo(this.sliceSerialize(e)).toLowerCase()}function u5(e){this.exit(e)}function ik(e,n,a,s){const f=a.createTracker(s);let p=f.move("[^");const d=a.enter("footnoteReference"),g=a.enter("reference");return p+=f.move(a.safe(a.associationId(e),{...f.current(),before:p,after:"]"})),g(),d(),p+=f.move("]"),p}function s5(){return"["}function l5(e,n,a,s){const f=a.createTracker(s);let p=f.move("[^");const d=a.enter("footnoteDefinition"),g=a.enter("label");return p+=f.move(a.safe(a.associationId(e),{...f.current(),before:p,after:"]"})),g(),p+=f.move("]:"+(e.children&&e.children.length>0?" ":"")),f.shift(4),p+=f.move(a.indentLines(a.containerFlow(e,f.current()),c5)),d(),p}function c5(e,n,a){return n===0?e:(a?"":" ")+e}const d5=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];ok.peek=g5;function f5(){return{canContainEols:["delete"],enter:{strikethrough:p5},exit:{strikethrough:m5}}}function h5(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:d5}],handlers:{delete:ok}}}function p5(e){this.enter({type:"delete",children:[]},e)}function m5(e){this.exit(e)}function ok(e,n,a,s){const f=a.createTracker(s),p=a.enter("strikethrough");let d=f.move("~~");return d+=a.containerPhrasing(e,{...f.current(),before:d,after:"~"}),d+=f.move("~~"),p(),d}function g5(){return"~"}function v5(e,n={}){const a=(n.align||[]).concat(),s=n.stringLength||E5,f=[],p=[],d=[],g=[];let E=0,T=-1;for(;++T<e.length;){const D=[],L=[];let U=-1;for(e[T].length>E&&(E=e[T].length);++U<e[T].length;){const H=y5(e[T][U]);if(n.alignDelimiters!==!1){const G=s(H);L[U]=G,(g[U]===void 0||G>g[U])&&(g[U]=G)}D.push(H)}p[T]=D,d[T]=L}let C=-1;if(typeof a=="object"&&"length"in a)for(;++C<E;)f[C]=a_(a[C]);else{const D=a_(a);for(;++C<E;)f[C]=D}C=-1;const S=[],R=[];for(;++C<E;){const D=f[C];let L="",U="";D===99?(L=":",U=":"):D===108?L=":":D===114&&(U=":");let H=n.alignDelimiters===!1?1:Math.max(1,g[C]-L.length-U.length);const G=L+"-".repeat(H)+U;n.alignDelimiters!==!1&&(H=L.length+H+U.length,H>g[C]&&(g[C]=H),R[C]=H),S[C]=G}p.splice(1,0,S),d.splice(1,0,R),T=-1;const A=[];for(;++T<p.length;){const D=p[T],L=d[T];C=-1;const U=[];for(;++C<E;){const H=D[C]||"";let G="",W="";if(n.alignDelimiters!==!1){const Z=g[C]-(L[C]||0),J=f[C];J===114?G=" ".repeat(Z):J===99?Z%2?(G=" ".repeat(Z/2+.5),W=" ".repeat(Z/2-.5)):(G=" ".repeat(Z/2),W=G):W=" ".repeat(Z)}n.delimiterStart!==!1&&!C&&U.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&H==="")&&(n.delimiterStart!==!1||C)&&U.push(" "),n.alignDelimiters!==!1&&U.push(G),U.push(H),n.alignDelimiters!==!1&&U.push(W),n.padding!==!1&&U.push(" "),(n.delimiterEnd!==!1||C!==E-1)&&U.push("|")}A.push(n.delimiterEnd===!1?U.join("").replace(/ +$/,""):U.join(""))}return A.join(`
|
|
2
2
|
`)}function y5(e){return e==null?"":String(e)}function E5(e){return e.length}function a_(e){const n=typeof e=="string"?e.codePointAt(0):0;return n===67||n===99?99:n===76||n===108?108:n===82||n===114?114:0}const i_={}.hasOwnProperty;function uk(e,n){const a=n||{};function s(f,...p){let d=s.invalid;const g=s.handlers;if(f&&i_.call(f,e)){const E=String(f[e]);d=i_.call(g,E)?g[E]:s.unknown}if(d)return d.call(this,f,...p)}return s.handlers=a.handlers||{},s.invalid=a.invalid,s.unknown=a.unknown,s}function b5(e,n,a,s){const f=a.enter("blockquote"),p=a.createTracker(s);p.move("> "),p.shift(2);const d=a.indentLines(a.containerFlow(e,p.current()),T5);return f(),d}function T5(e,n,a){return">"+(a?"":" ")+e}function w5(e,n){return o_(e,n.inConstruct,!0)&&!o_(e,n.notInConstruct,!1)}function o_(e,n,a){if(typeof n=="string"&&(n=[n]),!n||n.length===0)return a;let s=-1;for(;++s<n.length;)if(e.includes(n[s]))return!0;return!1}function u_(e,n,a,s){let f=-1;for(;++f<a.unsafe.length;)if(a.unsafe[f].character===`
|
|
3
3
|
`&&w5(a.stack,a.unsafe[f]))return/[ \t]/.test(s.before)?"":" ";return`\\
|
|
4
4
|
`}function x5(e,n){const a=String(e);let s=a.indexOf(n),f=s,p=0,d=0;if(typeof n!="string")throw new TypeError("Expected substring");for(;s!==-1;)s===f?++p>d&&(d=p):p=1,f=s+n.length,s=a.indexOf(n,f);return d}function S5(e,n){return!!(n.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function C5(e){const n=e.options.fence||"`";if(n!=="`"&&n!=="~")throw new Error("Cannot serialize code with `"+n+"` for `options.fence`, expected `` ` `` or `~`");return n}function _5(e,n,a,s){const f=C5(a),p=e.value||"",d=f==="`"?"GraveAccent":"Tilde";if(S5(e,a)){const S=a.enter("codeIndented"),R=a.indentLines(p,A5);return S(),R}const g=a.createTracker(s),E=f.repeat(Math.max(x5(p,f)+1,3)),T=a.enter("codeFenced");let C=g.move(E);if(e.lang){const S=a.enter(`codeFencedLang${d}`);C+=g.move(a.safe(e.lang,{before:C,after:" ",encode:["`"],...g.current()})),S()}if(e.lang&&e.meta){const S=a.enter(`codeFencedMeta${d}`);C+=g.move(" "),C+=g.move(a.safe(e.meta,{before:C,after:`
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
`}),a.push(e[s]);return n&&e.length>0&&a.push({type:"text",value:`
|
|
27
27
|
`}),a}function z_(e){let n=0,a=e.charCodeAt(n);for(;a===9||a===32;)n++,a=e.charCodeAt(n);return e.slice(n)}function j_(e,n){const a=wF(e,n),s=a.one(e,void 0),f=bF(a),p=Array.isArray(s)?{type:"root",children:s}:s||{type:"root",children:[]};return f&&p.children.push({type:"text",value:`
|
|
28
28
|
`},f),p}function AF(e,n){return e&&"run"in e?async function(a,s){const f=j_(a,{file:s,...n});await e.run(f,s)}:function(a,s){return j_(a,{file:s,...e||n})}}function V_(e){if(e)throw e}var v1=Object.prototype.hasOwnProperty,s3=Object.prototype.toString,Y_=Object.defineProperty,W_=Object.getOwnPropertyDescriptor,q_=function(n){return typeof Array.isArray=="function"?Array.isArray(n):s3.call(n)==="[object Array]"},Q_=function(n){if(!n||s3.call(n)!=="[object Object]")return!1;var a=v1.call(n,"constructor"),s=n.constructor&&n.constructor.prototype&&v1.call(n.constructor.prototype,"isPrototypeOf");if(n.constructor&&!a&&!s)return!1;var f;for(f in n);return typeof f>"u"||v1.call(n,f)},$_=function(n,a){Y_&&a.name==="__proto__"?Y_(n,a.name,{enumerable:!0,configurable:!0,value:a.newValue,writable:!0}):n[a.name]=a.newValue},G_=function(n,a){if(a==="__proto__")if(v1.call(n,a)){if(W_)return W_(n,a).value}else return;return n[a]},kF=function e(){var n,a,s,f,p,d,g=arguments[0],E=1,T=arguments.length,C=!1;for(typeof g=="boolean"&&(C=g,g=arguments[1]||{},E=2),(g==null||typeof g!="object"&&typeof g!="function")&&(g={});E<T;++E)if(n=arguments[E],n!=null)for(a in n)s=G_(g,a),f=G_(n,a),g!==f&&(C&&f&&(Q_(f)||(p=q_(f)))?(p?(p=!1,d=s&&q_(s)?s:[]):d=s&&Q_(s)?s:{},$_(g,{name:a,newValue:e(C,d,f)})):typeof f<"u"&&$_(g,{name:a,newValue:f}));return g};const HT=Tt.getDefaultExportFromCjs(kF);function yw(e){if(typeof e!="object"||e===null)return!1;const n=Object.getPrototypeOf(e);return(n===null||n===Object.prototype||Object.getPrototypeOf(n)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function RF(){const e=[],n={run:a,use:s};return n;function a(...f){let p=-1;const d=f.pop();if(typeof d!="function")throw new TypeError("Expected function as last argument, not "+d);g(null,...f);function g(E,...T){const C=e[++p];let S=-1;if(E){d(E);return}for(;++S<f.length;)(T[S]===null||T[S]===void 0)&&(T[S]=f[S]);f=T,C?NF(C,g)(...T):d(null,...T)}}function s(f){if(typeof f!="function")throw new TypeError("Expected `middelware` to be a function, not "+f);return e.push(f),n}}function NF(e,n){let a;return s;function s(...d){const g=e.length>d.length;let E;g&&d.push(f);try{E=e.apply(this,d)}catch(T){const C=T;if(g&&a)throw C;return f(C)}g||(E&&E.then&&typeof E.then=="function"?E.then(p,f):E instanceof Error?f(E):p(E))}function f(d,...g){a||(a=!0,n(d,...g))}function p(d){f(null,d)}}const Ho={basename:DF,dirname:OF,extname:LF,join:IF,sep:"/"};function DF(e,n){if(n!==void 0&&typeof n!="string")throw new TypeError('"ext" argument must be a string');jm(e);let a=0,s=-1,f=e.length,p;if(n===void 0||n.length===0||n.length>e.length){for(;f--;)if(e.codePointAt(f)===47){if(p){a=f+1;break}}else s<0&&(p=!0,s=f+1);return s<0?"":e.slice(a,s)}if(n===e)return"";let d=-1,g=n.length-1;for(;f--;)if(e.codePointAt(f)===47){if(p){a=f+1;break}}else d<0&&(p=!0,d=f+1),g>-1&&(e.codePointAt(f)===n.codePointAt(g--)?g<0&&(s=f):(g=-1,s=d));return a===s?s=d:s<0&&(s=e.length),e.slice(a,s)}function OF(e){if(jm(e),e.length===0)return".";let n=-1,a=e.length,s;for(;--a;)if(e.codePointAt(a)===47){if(s){n=a;break}}else s||(s=!0);return n<0?e.codePointAt(0)===47?"/":".":n===1&&e.codePointAt(0)===47?"//":e.slice(0,n)}function LF(e){jm(e);let n=e.length,a=-1,s=0,f=-1,p=0,d;for(;n--;){const g=e.codePointAt(n);if(g===47){if(d){s=n+1;break}continue}a<0&&(d=!0,a=n+1),g===46?f<0?f=n:p!==1&&(p=1):f>-1&&(p=-1)}return f<0||a<0||p===0||p===1&&f===a-1&&f===s+1?"":e.slice(f,a)}function IF(...e){let n=-1,a;for(;++n<e.length;)jm(e[n]),e[n]&&(a=a===void 0?e[n]:a+"/"+e[n]);return a===void 0?".":MF(a)}function MF(e){jm(e);const n=e.codePointAt(0)===47;let a=PF(e,!n);return a.length===0&&!n&&(a="."),a.length>0&&e.codePointAt(e.length-1)===47&&(a+="/"),n?"/"+a:a}function PF(e,n){let a="",s=0,f=-1,p=0,d=-1,g,E;for(;++d<=e.length;){if(d<e.length)g=e.codePointAt(d);else{if(g===47)break;g=47}if(g===47){if(!(f===d-1||p===1))if(f!==d-1&&p===2){if(a.length<2||s!==2||a.codePointAt(a.length-1)!==46||a.codePointAt(a.length-2)!==46){if(a.length>2){if(E=a.lastIndexOf("/"),E!==a.length-1){E<0?(a="",s=0):(a=a.slice(0,E),s=a.length-1-a.lastIndexOf("/")),f=d,p=0;continue}}else if(a.length>0){a="",s=0,f=d,p=0;continue}}n&&(a=a.length>0?a+"/..":"..",s=2)}else a.length>0?a+="/"+e.slice(f+1,d):a=e.slice(f+1,d),s=d-f-1;f=d,p=0}else g===46&&p>-1?p++:p=-1}return a}function jm(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const FF={cwd:UF};function UF(){return"/"}function Ew(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function BF(e){if(typeof e=="string")e=new URL(e);else if(!Ew(e)){const n=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw n.code="ERR_INVALID_ARG_TYPE",n}if(e.protocol!=="file:"){const n=new TypeError("The URL must be of scheme file");throw n.code="ERR_INVALID_URL_SCHEME",n}return HF(e)}function HF(e){if(e.hostname!==""){const s=new TypeError('File URL host must be "localhost" or empty on darwin');throw s.code="ERR_INVALID_FILE_URL_HOST",s}const n=e.pathname;let a=-1;for(;++a<n.length;)if(n.codePointAt(a)===37&&n.codePointAt(a+1)===50){const s=n.codePointAt(a+2);if(s===70||s===102){const f=new TypeError("File URL path must not include encoded / characters");throw f.code="ERR_INVALID_FILE_URL_PATH",f}}return decodeURIComponent(n)}const zT=["history","path","basename","stem","extname","dirname"];class l3{constructor(n){let a;n?Ew(n)?a={path:n}:typeof n=="string"||zF(n)?a={value:n}:a=n:a={},this.cwd="cwd"in a?"":FF.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let s=-1;for(;++s<zT.length;){const p=zT[s];p in a&&a[p]!==void 0&&a[p]!==null&&(this[p]=p==="history"?[...a[p]]:a[p])}let f;for(f in a)zT.includes(f)||(this[f]=a[f])}get basename(){return typeof this.path=="string"?Ho.basename(this.path):void 0}set basename(n){VT(n,"basename"),jT(n,"basename"),this.path=Ho.join(this.dirname||"",n)}get dirname(){return typeof this.path=="string"?Ho.dirname(this.path):void 0}set dirname(n){X_(this.basename,"dirname"),this.path=Ho.join(n||"",this.basename)}get extname(){return typeof this.path=="string"?Ho.extname(this.path):void 0}set extname(n){if(jT(n,"extname"),X_(this.dirname,"extname"),n){if(n.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(n.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Ho.join(this.dirname,this.stem+(n||""))}get path(){return this.history[this.history.length-1]}set path(n){Ew(n)&&(n=BF(n)),VT(n,"path"),this.path!==n&&this.history.push(n)}get stem(){return typeof this.path=="string"?Ho.basename(this.path,this.extname):void 0}set stem(n){VT(n,"stem"),jT(n,"stem"),this.path=Ho.join(this.dirname||"",n+(this.extname||""))}fail(n,a,s){const f=this.message(n,a,s);throw f.fatal=!0,f}info(n,a,s){const f=this.message(n,a,s);return f.fatal=void 0,f}message(n,a,s){const f=new ra(n,a,s);return this.path&&(f.name=this.path+":"+f.name,f.file=this.path),f.fatal=!1,this.messages.push(f),f}toString(n){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(n||void 0).decode(this.value)}}function jT(e,n){if(e&&e.includes(Ho.sep))throw new Error("`"+n+"` cannot be a path: did not expect `"+Ho.sep+"`")}function VT(e,n){if(!e)throw new Error("`"+n+"` cannot be empty")}function X_(e,n){if(!e)throw new Error("Setting `"+n+"` requires `path` to be set too")}function zF(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const jF=function(e){const s=this.constructor.prototype,f=s[e],p=function(){return f.apply(p,arguments)};return Object.setPrototypeOf(p,s),p},VF={}.hasOwnProperty;class Zw extends jF{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=RF()}copy(){const n=new Zw;let a=-1;for(;++a<this.attachers.length;){const s=this.attachers[a];n.use(...s)}return n.data(HT(!0,{},this.namespace)),n}data(n,a){return typeof n=="string"?arguments.length===2?(qT("data",this.frozen),this.namespace[n]=a,this):VF.call(this.namespace,n)&&this.namespace[n]||void 0:n?(qT("data",this.frozen),this.namespace=n,this):this.namespace}freeze(){if(this.frozen)return this;const n=this;for(;++this.freezeIndex<this.attachers.length;){const[a,...s]=this.attachers[this.freezeIndex];if(s[0]===!1)continue;s[0]===!0&&(s[0]=void 0);const f=a.call(n,...s);typeof f=="function"&&this.transformers.use(f)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(n){this.freeze();const a=o1(n),s=this.parser||this.Parser;return YT("parse",s),s(String(a),a)}process(n,a){const s=this;return this.freeze(),YT("process",this.parser||this.Parser),WT("process",this.compiler||this.Compiler),a?f(void 0,a):new Promise(f);function f(p,d){const g=o1(n),E=s.parse(g);s.run(E,g,function(C,S,R){if(C||!S||!R)return T(C);const A=S,D=s.stringify(A,R);qF(D)?R.value=D:R.result=D,T(C,R)});function T(C,S){C||!S?d(C):p?p(S):a(void 0,S)}}}processSync(n){let a=!1,s;return this.freeze(),YT("processSync",this.parser||this.Parser),WT("processSync",this.compiler||this.Compiler),this.process(n,f),Z_("processSync","process",a),s;function f(p,d){a=!0,V_(p),s=d}}run(n,a,s){K_(n),this.freeze();const f=this.transformers;return!s&&typeof a=="function"&&(s=a,a=void 0),s?p(void 0,s):new Promise(p);function p(d,g){const E=o1(a);f.run(n,E,T);function T(C,S,R){const A=S||n;C?g(C):d?d(A):s(void 0,A,R)}}}runSync(n,a){let s=!1,f;return this.run(n,a,p),Z_("runSync","run",s),f;function p(d,g){V_(d),f=g,s=!0}}stringify(n,a){this.freeze();const s=o1(a),f=this.compiler||this.Compiler;return WT("stringify",f),K_(n),f(n,s)}use(n,...a){const s=this.attachers,f=this.namespace;if(qT("use",this.frozen),n!=null)if(typeof n=="function")E(n,a);else if(typeof n=="object")Array.isArray(n)?g(n):d(n);else throw new TypeError("Expected usable value, not `"+n+"`");return this;function p(T){if(typeof T=="function")E(T,[]);else if(typeof T=="object")if(Array.isArray(T)){const[C,...S]=T;E(C,S)}else d(T);else throw new TypeError("Expected usable value, not `"+T+"`")}function d(T){if(!("plugins"in T)&&!("settings"in T))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");g(T.plugins),T.settings&&(f.settings=HT(!0,f.settings,T.settings))}function g(T){let C=-1;if(T!=null)if(Array.isArray(T))for(;++C<T.length;){const S=T[C];p(S)}else throw new TypeError("Expected a list of plugins, not `"+T+"`")}function E(T,C){let S=-1,R=-1;for(;++S<s.length;)if(s[S][0]===T){R=S;break}if(R===-1)s.push([T,...C]);else if(C.length>0){let[A,...D]=C;const L=s[R][1];yw(L)&&yw(A)&&(A=HT(!0,L,A)),s[R]=[T,A,...D]}}}}const YF=new Zw().freeze();function YT(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function WT(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function qT(e,n){if(n)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function K_(e){if(!yw(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Z_(e,n,a){if(!a)throw new Error("`"+e+"` finished async. Use `"+n+"` instead")}function o1(e){return WF(e)?e:new l3(e)}function WF(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function qF(e){return typeof e=="string"||QF(e)}function QF(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const $F="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",J_=[],eA={allowDangerousHtml:!0},GF=/^(https?|ircs?|mailto|xmpp)$/i,XF=[{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 KF(e){const n=e.allowedElements,a=e.allowElement,s=e.children||"",f=e.className,p=e.components,d=e.disallowedElements,g=e.rehypePlugins||J_,E=e.remarkPlugins||J_,T=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...eA}:eA,C=e.skipHtml,S=e.unwrapDisallowed,R=e.urlTransform||ZF,A=YF().use(z9).use(E).use(AF,T).use(g),D=new l3;typeof s=="string"&&(D.value=s);for(const G of XF)Object.hasOwn(e,G.from)&&(""+G.from+(G.to?"use `"+G.to+"` instead":"remove it")+$F+G.id,void 0);const L=A.parse(D);let U=A.runSync(L,D);return f&&(U={type:"element",tagName:"div",properties:{className:f},children:U.type==="root"?U.children:[U]}),B1(U,H),$P(U,{Fragment:z.Fragment,components:p,ignoreInvalidStyle:!0,jsx:z.jsx,jsxs:z.jsxs,passKeys:!0,passNode:!0});function H(G,W,Z){if(G.type==="raw"&&Z&&typeof W=="number")return C?Z.children.splice(W,1):Z.children[W]={type:"text",value:G.value},W;if(G.type==="element"){let J;for(J in BT)if(Object.hasOwn(BT,J)&&Object.hasOwn(G.properties,J)){const X=G.properties[J],ce=BT[J];(ce===null||ce.includes(G.tagName))&&(G.properties[J]=R(String(X||""),J,G))}}if(G.type==="element"){let J=n?!n.includes(G.tagName):d?d.includes(G.tagName):!1;if(!J&&a&&typeof W=="number"&&(J=!a(G,W,Z)),J&&Z&&typeof W=="number")return S&&G.children?Z.children.splice(W,1,...G.children):Z.children.splice(W,1),W}}}function ZF(e){const n=e.indexOf(":"),a=e.indexOf("?"),s=e.indexOf("#"),f=e.indexOf("/");return n<0||f>-1&&n>f||a>-1&&n>a||s>-1&&n>s||GF.test(e.slice(0,n))?e:""}const JF=vt.memo(KF,(e,n)=>e.children===n.children&&e.className===n.className),tA=/[#.]/g;function e7(e,n){const a=e||"",s={};let f=0,p,d;for(;f<a.length;){tA.lastIndex=f;const g=tA.exec(a),E=a.slice(f,g?g.index:a.length);E&&(p?p==="#"?s.id=E:Array.isArray(s.className)?s.className.push(E):s.className=[E]:d=E,f+=E.length),g&&(p=g[0],f++)}return{type:"element",tagName:d||n||"div",properties:s,children:[]}}const bw={}.hasOwnProperty;function c3(e,n,a){const s=a&&a7(a);function f(p,d,...g){let E=-1,T;if(p==null){T={type:"root",children:[]};const C=d;g.unshift(C)}else if(T=e7(p,n),T.tagName=T.tagName.toLowerCase(),s&&bw.call(s,T.tagName)&&(T.tagName=s[T.tagName]),t7(d))g.unshift(d);else{let C;for(C in d)bw.call(d,C)&&n7(e,T.properties,C,d[C])}for(;++E<g.length;)Tw(T.children,g[E]);return T.type==="element"&&T.tagName==="template"&&(T.content={type:"root",children:T.children},T.children=[]),T}return f}function t7(e){if(e===null||typeof e!="object"||Array.isArray(e))return!0;if(typeof e.type!="string")return!1;const n=e,a=Object.keys(e);for(const s of a){const f=n[s];if(f&&typeof f=="object"){if(!Array.isArray(f))return!0;const p=f;for(const d of p)if(typeof d!="number"&&typeof d!="string")return!0}}return!!("children"in e&&Array.isArray(e.children))}function n7(e,n,a,s){const f=z1(e,a);let p=-1,d;if(s!=null){if(typeof s=="number"){if(Number.isNaN(s))return;d=s}else typeof s=="boolean"?d=s:typeof s=="string"?f.spaceSeparated?d=S_(s):f.commaSeparated?d=E_(s):f.commaOrSpaceSeparated?d=S_(E_(s).join(" ")):d=nA(f,f.property,s):Array.isArray(s)?d=s.concat():d=f.property==="style"?r7(s):String(s);if(Array.isArray(d)){const g=[];for(;++p<d.length;){const E=nA(f,f.property,d[p]);g[p]=E}d=g}if(f.property==="className"&&Array.isArray(n.className)){const g=d;d=n.className.concat(g)}n[f.property]=d}}function Tw(e,n){let a=-1;if(n!=null)if(typeof n=="string"||typeof n=="number")e.push({type:"text",value:String(n)});else if(Array.isArray(n))for(;++a<n.length;)Tw(e,n[a]);else if(typeof n=="object"&&"type"in n)n.type==="root"?Tw(e,n.children):e.push(n);else throw new Error("Expected node, nodes, or string, got `"+n+"`")}function nA(e,n,a){if(typeof a=="string"){if(e.number&&a&&!Number.isNaN(Number(a)))return Number(a);if((e.boolean||e.overloadedBoolean)&&(a===""||Om(a)===Om(n)))return!0}return a}function r7(e){const n=[];let a;for(a in e)bw.call(e,a)&&n.push([a,e[a]].join(": "));return n.join("; ")}function a7(e){const n={};let a=-1;for(;++a<e.length;)n[e[a].toLowerCase()]=e[a];return n}const i7=["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"],o7=c3(zm,"div"),u7=c3(ol,"g",i7);function s7(e){const n=String(e),a=[];return{toOffset:f,toPoint:s};function s(p){if(typeof p=="number"&&p>-1&&p<=n.length){let d=0;for(;;){let g=a[d];if(g===void 0){const E=rA(n,a[d-1]);g=E===-1?n.length+1:E+1,a[d]=g}if(g>p)return{line:d+1,column:p-(d>0?a[d-1]:0)+1,offset:p};d++}}}function f(p){if(p&&typeof p.line=="number"&&typeof p.column=="number"&&!Number.isNaN(p.line)&&!Number.isNaN(p.column)){for(;a.length<p.line;){const g=a[a.length-1],E=rA(n,g),T=E===-1?n.length+1:E+1;if(g===T)break;a.push(T)}const d=(p.line>1?a[p.line-2]:0)+p.column-1;if(d<a[p.line-1])return d}}}function rA(e,n){const a=e.indexOf("\r",n),s=e.indexOf(`
|
|
29
|
-
`,n);return s===-1?a:a===-1||a+1===s?s:a<s?a:s}const Sc={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/"},d3={}.hasOwnProperty,l7=Object.prototype;function c7(e,n){const a=n||{};return Jw({file:a.file||void 0,location:!1,schema:a.space==="svg"?ol:zm,verbose:a.verbose||!1},e)}function Jw(e,n){let a;switch(n.nodeName){case"#comment":{const s=n;return a={type:"comment",value:s.data},y1(e,s,a),a}case"#document":case"#document-fragment":{const s=n,f="mode"in s?s.mode==="quirks"||s.mode==="limited-quirks":!1;if(a={type:"root",children:f3(e,n.childNodes),data:{quirksMode:f}},e.file&&e.location){const p=String(e.file),d=s7(p),g=d.toPoint(0),E=d.toPoint(p.length);a.position={start:g,end:E}}return a}case"#documentType":{const s=n;return a={type:"doctype"},y1(e,s,a),a}case"#text":{const s=n;return a={type:"text",value:s.value},y1(e,s,a),a}default:return a=d7(e,n),a}}function f3(e,n){let a=-1;const s=[];for(;++a<n.length;){const f=Jw(e,n[a]);s.push(f)}return s}function d7(e,n){const a=e.schema;e.schema=n.namespaceURI===Sc.svg?ol:zm;let s=-1;const f={};for(;++s<n.attrs.length;){const g=n.attrs[s],E=(g.prefix?g.prefix+":":"")+g.name;d3.call(l7,E)||(f[E]=g.value)}const d=(e.schema.space==="svg"?u7:o7)(n.tagName,f,f3(e,n.childNodes));if(y1(e,n,d),d.tagName==="template"){const g=n,E=g.sourceCodeLocation,T=E&&E.startTag&&Uf(E.startTag),C=E&&E.endTag&&Uf(E.endTag),S=Jw(e,g.content);T&&C&&e.file&&(S.position={start:T.end,end:C.start}),d.content=S}return e.schema=a,d}function y1(e,n,a){if("sourceCodeLocation"in n&&n.sourceCodeLocation&&e.file){const s=f7(e,a,n.sourceCodeLocation);s&&(e.location=!0,a.position=s)}}function f7(e,n,a){const s=Uf(a);if(n.type==="element"){const f=n.children[n.children.length-1];if(s&&!a.endTag&&f&&f.position&&f.position.end&&(s.end=Object.assign({},f.position.end)),e.verbose){const p={};let d;if(a.attrs)for(d in a.attrs)d3.call(a.attrs,d)&&(p[z1(e.schema,d).property]=Uf(a.attrs[d]));a.startTag;const g=Uf(a.startTag),E=a.endTag?Uf(a.endTag):void 0,T={opening:g};E&&(T.closing=E),T.properties=p,n.data={position:T}}}return s}function Uf(e){const n=aA({line:e.startLine,column:e.startCol,offset:e.startOffset}),a=aA({line:e.endLine,column:e.endCol,offset:e.endOffset});return n||a?{start:n,end:a}:void 0}function aA(e){return e.line&&e.column?e:void 0}const h7={},p7={}.hasOwnProperty,h3=uk("type",{handlers:{root:g7,element:T7,text:E7,comment:b7,doctype:y7}});function m7(e,n){const s=(n||h7).space;return h3(e,s==="svg"?ol:zm)}function g7(e,n){const a={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return a.childNodes=ex(e.children,a,n),Zf(e,a),a}function v7(e,n){const a={nodeName:"#document-fragment",childNodes:[]};return a.childNodes=ex(e.children,a,n),Zf(e,a),a}function y7(e){const n={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return Zf(e,n),n}function E7(e){const n={nodeName:"#text",value:e.value,parentNode:null};return Zf(e,n),n}function b7(e){const n={nodeName:"#comment",data:e.value,parentNode:null};return Zf(e,n),n}function T7(e,n){const a=n;let s=a;e.type==="element"&&e.tagName.toLowerCase()==="svg"&&a.space==="html"&&(s=ol);const f=[];let p;if(e.properties){for(p in e.properties)if(p!=="children"&&p7.call(e.properties,p)){const E=w7(s,p,e.properties[p]);E&&f.push(E)}}const d=s.space,g={nodeName:e.tagName,tagName:e.tagName,attrs:f,namespaceURI:Sc[d],childNodes:[],parentNode:null};return g.childNodes=ex(e.children,g,s),Zf(e,g),e.tagName==="template"&&e.content&&(g.content=v7(e.content,s)),g}function w7(e,n,a){const s=z1(e,n);if(a===!1||a===null||a===void 0||typeof a=="number"&&Number.isNaN(a)||!a&&s.boolean)return;Array.isArray(a)&&(a=s.commaSeparated?Fk(a):qk(a));const f={name:s.attribute,value:a===!0?"":String(a)};if(s.space&&s.space!=="html"&&s.space!=="svg"){const p=f.name.indexOf(":");p<0?f.prefix="":(f.name=f.name.slice(p+1),f.prefix=s.attribute.slice(0,p)),f.namespace=Sc[s.space]}return f}function ex(e,n,a){let s=-1;const f=[];if(e)for(;++s<e.length;){const p=h3(e[s],a);p.parentNode=n,f.push(p)}return f}function Zf(e,n){const a=e.position;a&&a.start&&a.end&&(a.start.offset,a.end.offset,n.sourceCodeLocation={startLine:a.start.line,startCol:a.start.column,startOffset:a.start.offset,endLine:a.end.line,endCol:a.end.column,endOffset:a.end.offset})}const x7=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],S7=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]),xn="�";var M;(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"})(M||(M={}));const Va={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function p3(e){return e>=55296&&e<=57343}function C7(e){return e>=56320&&e<=57343}function _7(e,n){return(e-55296)*1024+9216+n}function m3(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function g3(e){return e>=64976&&e<=65007||S7.has(e)}var le;(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"})(le||(le={}));const A7=65536;class k7{constructor(n){this.handler=n,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=A7,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(n,a){const{line:s,col:f,offset:p}=this,d=f+a,g=p+a;return{code:n,startLine:s,endLine:s,startCol:d,endCol:d,startOffset:g,endOffset:g}}_err(n){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(n,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(n){if(this.pos!==this.html.length-1){const a=this.html.charCodeAt(this.pos+1);if(C7(a))return this.pos++,this._addGap(),_7(n,a)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,M.EOF;return this._err(le.surrogateInInputStream),n}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(n,a){this.html.length>0?this.html+=n:this.html=n,this.endOfChunkHit=!1,this.lastChunkWritten=a}insertHtmlAtCurrentPos(n){this.html=this.html.substring(0,this.pos+1)+n+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(n,a){if(this.pos+n.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(a)return this.html.startsWith(n,this.pos);for(let s=0;s<n.length;s++)if((this.html.charCodeAt(this.pos+s)|32)!==n.charCodeAt(s))return!1;return!0}peek(n){const a=this.pos+n;if(a>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,M.EOF;const s=this.html.charCodeAt(a);return s===M.CARRIAGE_RETURN?M.LINE_FEED:s}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,M.EOF;let n=this.html.charCodeAt(this.pos);return n===M.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,M.LINE_FEED):n===M.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,p3(n)&&(n=this._processSurrogate(n)),this.handler.onParseError===null||n>31&&n<127||n===M.LINE_FEED||n===M.CARRIAGE_RETURN||n>159&&n<64976||this._checkForProblematicCharacters(n),n)}_checkForProblematicCharacters(n){m3(n)?this._err(le.controlCharacterInInputStream):g3(n)&&this._err(le.noncharacterInInputStream)}retreat(n){for(this.pos-=n;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}var kt;(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"})(kt||(kt={}));function v3(e,n){for(let a=e.attrs.length-1;a>=0;a--)if(e.attrs[a].name===n)return e.attrs[a].value;return null}const y3=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))),R7=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0)));var QT;const N7=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]]),D7=(QT=String.fromCodePoint)!==null&&QT!==void 0?QT:function(e){let n="";return e>65535&&(e-=65536,n+=String.fromCharCode(e>>>10&1023|55296),e=56320|e&1023),n+=String.fromCharCode(e),n};function O7(e){var n;return e>=55296&&e<=57343||e>1114111?65533:(n=N7.get(e))!==null&&n!==void 0?n:e}var Sr;(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"})(Sr||(Sr={}));const L7=32;var Zs;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(Zs||(Zs={}));function ww(e){return e>=Sr.ZERO&&e<=Sr.NINE}function I7(e){return e>=Sr.UPPER_A&&e<=Sr.UPPER_F||e>=Sr.LOWER_A&&e<=Sr.LOWER_F}function M7(e){return e>=Sr.UPPER_A&&e<=Sr.UPPER_Z||e>=Sr.LOWER_A&&e<=Sr.LOWER_Z||ww(e)}function P7(e){return e===Sr.EQUALS||M7(e)}var xr;(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"})(xr||(xr={}));var Lu;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(Lu||(Lu={}));class E3{constructor(n,a,s){this.decodeTree=n,this.emitCodePoint=a,this.errors=s,this.state=xr.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Lu.Strict}startEntity(n){this.decodeMode=n,this.state=xr.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(n,a){switch(this.state){case xr.EntityStart:return n.charCodeAt(a)===Sr.NUM?(this.state=xr.NumericStart,this.consumed+=1,this.stateNumericStart(n,a+1)):(this.state=xr.NamedEntity,this.stateNamedEntity(n,a));case xr.NumericStart:return this.stateNumericStart(n,a);case xr.NumericDecimal:return this.stateNumericDecimal(n,a);case xr.NumericHex:return this.stateNumericHex(n,a);case xr.NamedEntity:return this.stateNamedEntity(n,a)}}stateNumericStart(n,a){return a>=n.length?-1:(n.charCodeAt(a)|L7)===Sr.LOWER_X?(this.state=xr.NumericHex,this.consumed+=1,this.stateNumericHex(n,a+1)):(this.state=xr.NumericDecimal,this.stateNumericDecimal(n,a))}addToNumericResult(n,a,s,f){if(a!==s){const p=s-a;this.result=this.result*Math.pow(f,p)+parseInt(n.substr(a,p),f),this.consumed+=p}}stateNumericHex(n,a){const s=a;for(;a<n.length;){const f=n.charCodeAt(a);if(ww(f)||I7(f))a+=1;else return this.addToNumericResult(n,s,a,16),this.emitNumericEntity(f,3)}return this.addToNumericResult(n,s,a,16),-1}stateNumericDecimal(n,a){const s=a;for(;a<n.length;){const f=n.charCodeAt(a);if(ww(f))a+=1;else return this.addToNumericResult(n,s,a,10),this.emitNumericEntity(f,2)}return this.addToNumericResult(n,s,a,10),-1}emitNumericEntity(n,a){var s;if(this.consumed<=a)return(s=this.errors)===null||s===void 0||s.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(n===Sr.SEMI)this.consumed+=1;else if(this.decodeMode===Lu.Strict)return 0;return this.emitCodePoint(O7(this.result),this.consumed),this.errors&&(n!==Sr.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(n,a){const{decodeTree:s}=this;let f=s[this.treeIndex],p=(f&Zs.VALUE_LENGTH)>>14;for(;a<n.length;a++,this.excess++){const d=n.charCodeAt(a);if(this.treeIndex=F7(s,f,this.treeIndex+Math.max(1,p),d),this.treeIndex<0)return this.result===0||this.decodeMode===Lu.Attribute&&(p===0||P7(d))?0:this.emitNotTerminatedNamedEntity();if(f=s[this.treeIndex],p=(f&Zs.VALUE_LENGTH)>>14,p!==0){if(d===Sr.SEMI)return this.emitNamedEntityData(this.treeIndex,p,this.consumed+this.excess);this.decodeMode!==Lu.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var n;const{result:a,decodeTree:s}=this,f=(s[a]&Zs.VALUE_LENGTH)>>14;return this.emitNamedEntityData(a,f,this.consumed),(n=this.errors)===null||n===void 0||n.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(n,a,s){const{decodeTree:f}=this;return this.emitCodePoint(a===1?f[n]&~Zs.VALUE_LENGTH:f[n+1],s),a===3&&this.emitCodePoint(f[n+2],s),s}end(){var n;switch(this.state){case xr.NamedEntity:return this.result!==0&&(this.decodeMode!==Lu.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case xr.NumericDecimal:return this.emitNumericEntity(0,2);case xr.NumericHex:return this.emitNumericEntity(0,3);case xr.NumericStart:return(n=this.errors)===null||n===void 0||n.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case xr.EntityStart:return 0}}}function b3(e){let n="";const a=new E3(e,s=>n+=D7(s));return function(f,p){let d=0,g=0;for(;(g=f.indexOf("&",g))>=0;){n+=f.slice(d,g),a.startEntity(p);const T=a.write(f,g+1);if(T<0){d=g+a.end();break}d=g+T,g=T===0?d+1:d}const E=n+f.slice(d);return n="",E}}function F7(e,n,a,s){const f=(n&Zs.BRANCH_LENGTH)>>7,p=n&Zs.JUMP_TABLE;if(f===0)return p!==0&&s===p?a:-1;if(p){const E=s-p;return E<0||E>=f?-1:e[a+E]-1}let d=a,g=d+f-1;for(;d<=g;){const E=d+g>>>1,T=e[E];if(T<s)d=E+1;else if(T>s)g=E-1;else return e[E+f]}return-1}b3(y3);b3(R7);var Te;(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/"})(Te||(Te={}));var Cc;(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"})(Cc||(Cc={}));var Ai;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(Ai||(Ai={}));var re;(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"})(re||(re={}));var y;(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"})(y||(y={}));const U7=new Map([[re.A,y.A],[re.ADDRESS,y.ADDRESS],[re.ANNOTATION_XML,y.ANNOTATION_XML],[re.APPLET,y.APPLET],[re.AREA,y.AREA],[re.ARTICLE,y.ARTICLE],[re.ASIDE,y.ASIDE],[re.B,y.B],[re.BASE,y.BASE],[re.BASEFONT,y.BASEFONT],[re.BGSOUND,y.BGSOUND],[re.BIG,y.BIG],[re.BLOCKQUOTE,y.BLOCKQUOTE],[re.BODY,y.BODY],[re.BR,y.BR],[re.BUTTON,y.BUTTON],[re.CAPTION,y.CAPTION],[re.CENTER,y.CENTER],[re.CODE,y.CODE],[re.COL,y.COL],[re.COLGROUP,y.COLGROUP],[re.DD,y.DD],[re.DESC,y.DESC],[re.DETAILS,y.DETAILS],[re.DIALOG,y.DIALOG],[re.DIR,y.DIR],[re.DIV,y.DIV],[re.DL,y.DL],[re.DT,y.DT],[re.EM,y.EM],[re.EMBED,y.EMBED],[re.FIELDSET,y.FIELDSET],[re.FIGCAPTION,y.FIGCAPTION],[re.FIGURE,y.FIGURE],[re.FONT,y.FONT],[re.FOOTER,y.FOOTER],[re.FOREIGN_OBJECT,y.FOREIGN_OBJECT],[re.FORM,y.FORM],[re.FRAME,y.FRAME],[re.FRAMESET,y.FRAMESET],[re.H1,y.H1],[re.H2,y.H2],[re.H3,y.H3],[re.H4,y.H4],[re.H5,y.H5],[re.H6,y.H6],[re.HEAD,y.HEAD],[re.HEADER,y.HEADER],[re.HGROUP,y.HGROUP],[re.HR,y.HR],[re.HTML,y.HTML],[re.I,y.I],[re.IMG,y.IMG],[re.IMAGE,y.IMAGE],[re.INPUT,y.INPUT],[re.IFRAME,y.IFRAME],[re.KEYGEN,y.KEYGEN],[re.LABEL,y.LABEL],[re.LI,y.LI],[re.LINK,y.LINK],[re.LISTING,y.LISTING],[re.MAIN,y.MAIN],[re.MALIGNMARK,y.MALIGNMARK],[re.MARQUEE,y.MARQUEE],[re.MATH,y.MATH],[re.MENU,y.MENU],[re.META,y.META],[re.MGLYPH,y.MGLYPH],[re.MI,y.MI],[re.MO,y.MO],[re.MN,y.MN],[re.MS,y.MS],[re.MTEXT,y.MTEXT],[re.NAV,y.NAV],[re.NOBR,y.NOBR],[re.NOFRAMES,y.NOFRAMES],[re.NOEMBED,y.NOEMBED],[re.NOSCRIPT,y.NOSCRIPT],[re.OBJECT,y.OBJECT],[re.OL,y.OL],[re.OPTGROUP,y.OPTGROUP],[re.OPTION,y.OPTION],[re.P,y.P],[re.PARAM,y.PARAM],[re.PLAINTEXT,y.PLAINTEXT],[re.PRE,y.PRE],[re.RB,y.RB],[re.RP,y.RP],[re.RT,y.RT],[re.RTC,y.RTC],[re.RUBY,y.RUBY],[re.S,y.S],[re.SCRIPT,y.SCRIPT],[re.SEARCH,y.SEARCH],[re.SECTION,y.SECTION],[re.SELECT,y.SELECT],[re.SOURCE,y.SOURCE],[re.SMALL,y.SMALL],[re.SPAN,y.SPAN],[re.STRIKE,y.STRIKE],[re.STRONG,y.STRONG],[re.STYLE,y.STYLE],[re.SUB,y.SUB],[re.SUMMARY,y.SUMMARY],[re.SUP,y.SUP],[re.TABLE,y.TABLE],[re.TBODY,y.TBODY],[re.TEMPLATE,y.TEMPLATE],[re.TEXTAREA,y.TEXTAREA],[re.TFOOT,y.TFOOT],[re.TD,y.TD],[re.TH,y.TH],[re.THEAD,y.THEAD],[re.TITLE,y.TITLE],[re.TR,y.TR],[re.TRACK,y.TRACK],[re.TT,y.TT],[re.U,y.U],[re.UL,y.UL],[re.SVG,y.SVG],[re.VAR,y.VAR],[re.WBR,y.WBR],[re.XMP,y.XMP]]);function Jf(e){var n;return(n=U7.get(e))!==null&&n!==void 0?n:y.UNKNOWN}const _e=y,B7={[Te.HTML]:new Set([_e.ADDRESS,_e.APPLET,_e.AREA,_e.ARTICLE,_e.ASIDE,_e.BASE,_e.BASEFONT,_e.BGSOUND,_e.BLOCKQUOTE,_e.BODY,_e.BR,_e.BUTTON,_e.CAPTION,_e.CENTER,_e.COL,_e.COLGROUP,_e.DD,_e.DETAILS,_e.DIR,_e.DIV,_e.DL,_e.DT,_e.EMBED,_e.FIELDSET,_e.FIGCAPTION,_e.FIGURE,_e.FOOTER,_e.FORM,_e.FRAME,_e.FRAMESET,_e.H1,_e.H2,_e.H3,_e.H4,_e.H5,_e.H6,_e.HEAD,_e.HEADER,_e.HGROUP,_e.HR,_e.HTML,_e.IFRAME,_e.IMG,_e.INPUT,_e.LI,_e.LINK,_e.LISTING,_e.MAIN,_e.MARQUEE,_e.MENU,_e.META,_e.NAV,_e.NOEMBED,_e.NOFRAMES,_e.NOSCRIPT,_e.OBJECT,_e.OL,_e.P,_e.PARAM,_e.PLAINTEXT,_e.PRE,_e.SCRIPT,_e.SECTION,_e.SELECT,_e.SOURCE,_e.STYLE,_e.SUMMARY,_e.TABLE,_e.TBODY,_e.TD,_e.TEMPLATE,_e.TEXTAREA,_e.TFOOT,_e.TH,_e.THEAD,_e.TITLE,_e.TR,_e.TRACK,_e.UL,_e.WBR,_e.XMP]),[Te.MATHML]:new Set([_e.MI,_e.MO,_e.MN,_e.MS,_e.MTEXT,_e.ANNOTATION_XML]),[Te.SVG]:new Set([_e.TITLE,_e.FOREIGN_OBJECT,_e.DESC]),[Te.XLINK]:new Set,[Te.XML]:new Set,[Te.XMLNS]:new Set},xw=new Set([_e.H1,_e.H2,_e.H3,_e.H4,_e.H5,_e.H6]);re.STYLE,re.SCRIPT,re.XMP,re.IFRAME,re.NOEMBED,re.NOFRAMES,re.PLAINTEXT;var F;(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"})(F||(F={}));const Wn={DATA:F.DATA,RCDATA:F.RCDATA,RAWTEXT:F.RAWTEXT,SCRIPT_DATA:F.SCRIPT_DATA,PLAINTEXT:F.PLAINTEXT,CDATA_SECTION:F.CDATA_SECTION};function H7(e){return e>=M.DIGIT_0&&e<=M.DIGIT_9}function Sm(e){return e>=M.LATIN_CAPITAL_A&&e<=M.LATIN_CAPITAL_Z}function z7(e){return e>=M.LATIN_SMALL_A&&e<=M.LATIN_SMALL_Z}function Gs(e){return z7(e)||Sm(e)}function iA(e){return Gs(e)||H7(e)}function u1(e){return e+32}function T3(e){return e===M.SPACE||e===M.LINE_FEED||e===M.TABULATION||e===M.FORM_FEED}function oA(e){return T3(e)||e===M.SOLIDUS||e===M.GREATER_THAN_SIGN}function j7(e){return e===M.NULL?le.nullCharacterReference:e>1114111?le.characterReferenceOutsideUnicodeRange:p3(e)?le.surrogateCharacterReference:g3(e)?le.noncharacterCharacterReference:m3(e)||e===M.CARRIAGE_RETURN?le.controlCharacterReference:null}class V7{constructor(n,a){this.options=n,this.handler=a,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=F.DATA,this.returnState=F.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new k7(a),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new E3(y3,(s,f)=>{this.preprocessor.pos=this.entityStartPos+f-1,this._flushCodePointConsumedAsCharacterReference(s)},a.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(le.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:s=>{this._err(le.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+s)},validateNumericCharacterReference:s=>{const f=j7(s);f&&this._err(f,1)}}:void 0)}_err(n,a=0){var s,f;(f=(s=this.handler).onParseError)===null||f===void 0||f.call(s,this.preprocessor.getError(n,a))}getCurrentLocation(n){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-n,startOffset:this.preprocessor.offset-n,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const n=this._consume();this._ensureHibernation()||this._callState(n)}this.inLoop=!1}}pause(){this.paused=!0}resume(n){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||n==null||n())}write(n,a,s){this.active=!0,this.preprocessor.write(n,a),this._runParsingLoop(),this.paused||s==null||s()}insertHtmlAtCurrentPos(n){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(n),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(n){this.consumedAfterSnapshot+=n;for(let a=0;a<n;a++)this.preprocessor.advance()}_consumeSequenceIfMatch(n,a){return this.preprocessor.startsWith(n,a)?(this._advanceBy(n.length-1),!0):!1}_createStartTagToken(){this.currentToken={type:kt.START_TAG,tagName:"",tagID:y.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:kt.END_TAG,tagName:"",tagID:y.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(n){this.currentToken={type:kt.COMMENT,data:"",location:this.getCurrentLocation(n)}}_createDoctypeToken(n){this.currentToken={type:kt.DOCTYPE,name:n,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(n,a){this.currentCharacterToken={type:n,chars:a,location:this.currentLocation}}_createAttr(n){this.currentAttr={name:n,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var n,a;const s=this.currentToken;if(v3(s,this.currentAttr.name)===null){if(s.attrs.push(this.currentAttr),s.location&&this.currentLocation){const f=(n=(a=s.location).attrs)!==null&&n!==void 0?n:a.attrs=Object.create(null);f[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(le.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(n){this._emitCurrentCharacterToken(n.location),this.currentToken=null,n.location&&(n.location.endLine=this.preprocessor.line,n.location.endCol=this.preprocessor.col+1,n.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){const n=this.currentToken;this.prepareToken(n),n.tagID=Jf(n.tagName),n.type===kt.START_TAG?(this.lastStartTagName=n.tagName,this.handler.onStartTag(n)):(n.attrs.length>0&&this._err(le.endTagWithAttributes),n.selfClosing&&this._err(le.endTagWithTrailingSolidus),this.handler.onEndTag(n)),this.preprocessor.dropParsedChunk()}emitCurrentComment(n){this.prepareToken(n),this.handler.onComment(n),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(n){this.prepareToken(n),this.handler.onDoctype(n),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(n){if(this.currentCharacterToken){switch(n&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=n.startLine,this.currentCharacterToken.location.endCol=n.startCol,this.currentCharacterToken.location.endOffset=n.startOffset),this.currentCharacterToken.type){case kt.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case kt.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case kt.WHITESPACE_CHARACTER:{this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}}this.currentCharacterToken=null}}_emitEOFToken(){const n=this.getCurrentLocation(0);n&&(n.endLine=n.startLine,n.endCol=n.startCol,n.endOffset=n.startOffset),this._emitCurrentCharacterToken(n),this.handler.onEof({type:kt.EOF,location:n}),this.active=!1}_appendCharToCurrentCharacterToken(n,a){if(this.currentCharacterToken)if(this.currentCharacterToken.type===n){this.currentCharacterToken.chars+=a;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(n,a)}_emitCodePoint(n){const a=T3(n)?kt.WHITESPACE_CHARACTER:n===M.NULL?kt.NULL_CHARACTER:kt.CHARACTER;this._appendCharToCurrentCharacterToken(a,String.fromCodePoint(n))}_emitChars(n){this._appendCharToCurrentCharacterToken(kt.CHARACTER,n)}_startCharacterReference(){this.returnState=this.state,this.state=F.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?Lu.Attribute:Lu.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===F.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===F.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===F.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(n){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(n):this._emitCodePoint(n)}_callState(n){switch(this.state){case F.DATA:{this._stateData(n);break}case F.RCDATA:{this._stateRcdata(n);break}case F.RAWTEXT:{this._stateRawtext(n);break}case F.SCRIPT_DATA:{this._stateScriptData(n);break}case F.PLAINTEXT:{this._statePlaintext(n);break}case F.TAG_OPEN:{this._stateTagOpen(n);break}case F.END_TAG_OPEN:{this._stateEndTagOpen(n);break}case F.TAG_NAME:{this._stateTagName(n);break}case F.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(n);break}case F.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(n);break}case F.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(n);break}case F.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(n);break}case F.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(n);break}case F.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(n);break}case F.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(n);break}case F.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(n);break}case F.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(n);break}case F.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(n);break}case F.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(n);break}case F.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(n);break}case F.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(n);break}case F.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(n);break}case F.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(n);break}case F.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(n);break}case F.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(n);break}case F.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(n);break}case F.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(n);break}case F.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(n);break}case F.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(n);break}case F.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(n);break}case F.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(n);break}case F.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(n);break}case F.ATTRIBUTE_NAME:{this._stateAttributeName(n);break}case F.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(n);break}case F.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(n);break}case F.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(n);break}case F.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(n);break}case F.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(n);break}case F.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(n);break}case F.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(n);break}case F.BOGUS_COMMENT:{this._stateBogusComment(n);break}case F.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(n);break}case F.COMMENT_START:{this._stateCommentStart(n);break}case F.COMMENT_START_DASH:{this._stateCommentStartDash(n);break}case F.COMMENT:{this._stateComment(n);break}case F.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(n);break}case F.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(n);break}case F.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(n);break}case F.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(n);break}case F.COMMENT_END_DASH:{this._stateCommentEndDash(n);break}case F.COMMENT_END:{this._stateCommentEnd(n);break}case F.COMMENT_END_BANG:{this._stateCommentEndBang(n);break}case F.DOCTYPE:{this._stateDoctype(n);break}case F.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(n);break}case F.DOCTYPE_NAME:{this._stateDoctypeName(n);break}case F.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(n);break}case F.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(n);break}case F.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(n);break}case F.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(n);break}case F.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(n);break}case F.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(n);break}case F.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(n);break}case F.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(n);break}case F.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(n);break}case F.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(n);break}case F.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(n);break}case F.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(n);break}case F.BOGUS_DOCTYPE:{this._stateBogusDoctype(n);break}case F.CDATA_SECTION:{this._stateCdataSection(n);break}case F.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(n);break}case F.CDATA_SECTION_END:{this._stateCdataSectionEnd(n);break}case F.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case F.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(n);break}default:throw new Error("Unknown state")}}_stateData(n){switch(n){case M.LESS_THAN_SIGN:{this.state=F.TAG_OPEN;break}case M.AMPERSAND:{this._startCharacterReference();break}case M.NULL:{this._err(le.unexpectedNullCharacter),this._emitCodePoint(n);break}case M.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(n)}}_stateRcdata(n){switch(n){case M.AMPERSAND:{this._startCharacterReference();break}case M.LESS_THAN_SIGN:{this.state=F.RCDATA_LESS_THAN_SIGN;break}case M.NULL:{this._err(le.unexpectedNullCharacter),this._emitChars(xn);break}case M.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(n)}}_stateRawtext(n){switch(n){case M.LESS_THAN_SIGN:{this.state=F.RAWTEXT_LESS_THAN_SIGN;break}case M.NULL:{this._err(le.unexpectedNullCharacter),this._emitChars(xn);break}case M.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(n)}}_stateScriptData(n){switch(n){case M.LESS_THAN_SIGN:{this.state=F.SCRIPT_DATA_LESS_THAN_SIGN;break}case M.NULL:{this._err(le.unexpectedNullCharacter),this._emitChars(xn);break}case M.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(n)}}_statePlaintext(n){switch(n){case M.NULL:{this._err(le.unexpectedNullCharacter),this._emitChars(xn);break}case M.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(n)}}_stateTagOpen(n){if(Gs(n))this._createStartTagToken(),this.state=F.TAG_NAME,this._stateTagName(n);else switch(n){case M.EXCLAMATION_MARK:{this.state=F.MARKUP_DECLARATION_OPEN;break}case M.SOLIDUS:{this.state=F.END_TAG_OPEN;break}case M.QUESTION_MARK:{this._err(le.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=F.BOGUS_COMMENT,this._stateBogusComment(n);break}case M.EOF:{this._err(le.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(le.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=F.DATA,this._stateData(n)}}_stateEndTagOpen(n){if(Gs(n))this._createEndTagToken(),this.state=F.TAG_NAME,this._stateTagName(n);else switch(n){case M.GREATER_THAN_SIGN:{this._err(le.missingEndTagName),this.state=F.DATA;break}case M.EOF:{this._err(le.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err(le.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=F.BOGUS_COMMENT,this._stateBogusComment(n)}}_stateTagName(n){const a=this.currentToken;switch(n){case M.SPACE:case M.LINE_FEED:case M.TABULATION:case M.FORM_FEED:{this.state=F.BEFORE_ATTRIBUTE_NAME;break}case M.SOLIDUS:{this.state=F.SELF_CLOSING_START_TAG;break}case M.GREATER_THAN_SIGN:{this.state=F.DATA,this.emitCurrentTagToken();break}case M.NULL:{this._err(le.unexpectedNullCharacter),a.tagName+=xn;break}case M.EOF:{this._err(le.eofInTag),this._emitEOFToken();break}default:a.tagName+=String.fromCodePoint(Sm(n)?u1(n):n)}}_stateRcdataLessThanSign(n){n===M.SOLIDUS?this.state=F.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=F.RCDATA,this._stateRcdata(n))}_stateRcdataEndTagOpen(n){Gs(n)?(this.state=F.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(n)):(this._emitChars("</"),this.state=F.RCDATA,this._stateRcdata(n))}handleSpecialEndTag(n){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();this._createEndTagToken();const a=this.currentToken;switch(a.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case M.SPACE:case M.LINE_FEED:case M.TABULATION:case M.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=F.BEFORE_ATTRIBUTE_NAME,!1;case M.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=F.SELF_CLOSING_START_TAG,!1;case M.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=F.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(n){this.handleSpecialEndTag(n)&&(this._emitChars("</"),this.state=F.RCDATA,this._stateRcdata(n))}_stateRawtextLessThanSign(n){n===M.SOLIDUS?this.state=F.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=F.RAWTEXT,this._stateRawtext(n))}_stateRawtextEndTagOpen(n){Gs(n)?(this.state=F.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(n)):(this._emitChars("</"),this.state=F.RAWTEXT,this._stateRawtext(n))}_stateRawtextEndTagName(n){this.handleSpecialEndTag(n)&&(this._emitChars("</"),this.state=F.RAWTEXT,this._stateRawtext(n))}_stateScriptDataLessThanSign(n){switch(n){case M.SOLIDUS:{this.state=F.SCRIPT_DATA_END_TAG_OPEN;break}case M.EXCLAMATION_MARK:{this.state=F.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break}default:this._emitChars("<"),this.state=F.SCRIPT_DATA,this._stateScriptData(n)}}_stateScriptDataEndTagOpen(n){Gs(n)?(this.state=F.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(n)):(this._emitChars("</"),this.state=F.SCRIPT_DATA,this._stateScriptData(n))}_stateScriptDataEndTagName(n){this.handleSpecialEndTag(n)&&(this._emitChars("</"),this.state=F.SCRIPT_DATA,this._stateScriptData(n))}_stateScriptDataEscapeStart(n){n===M.HYPHEN_MINUS?(this.state=F.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=F.SCRIPT_DATA,this._stateScriptData(n))}_stateScriptDataEscapeStartDash(n){n===M.HYPHEN_MINUS?(this.state=F.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=F.SCRIPT_DATA,this._stateScriptData(n))}_stateScriptDataEscaped(n){switch(n){case M.HYPHEN_MINUS:{this.state=F.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case M.LESS_THAN_SIGN:{this.state=F.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case M.NULL:{this._err(le.unexpectedNullCharacter),this._emitChars(xn);break}case M.EOF:{this._err(le.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(n)}}_stateScriptDataEscapedDash(n){switch(n){case M.HYPHEN_MINUS:{this.state=F.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case M.LESS_THAN_SIGN:{this.state=F.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case M.NULL:{this._err(le.unexpectedNullCharacter),this.state=F.SCRIPT_DATA_ESCAPED,this._emitChars(xn);break}case M.EOF:{this._err(le.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=F.SCRIPT_DATA_ESCAPED,this._emitCodePoint(n)}}_stateScriptDataEscapedDashDash(n){switch(n){case M.HYPHEN_MINUS:{this._emitChars("-");break}case M.LESS_THAN_SIGN:{this.state=F.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case M.GREATER_THAN_SIGN:{this.state=F.SCRIPT_DATA,this._emitChars(">");break}case M.NULL:{this._err(le.unexpectedNullCharacter),this.state=F.SCRIPT_DATA_ESCAPED,this._emitChars(xn);break}case M.EOF:{this._err(le.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=F.SCRIPT_DATA_ESCAPED,this._emitCodePoint(n)}}_stateScriptDataEscapedLessThanSign(n){n===M.SOLIDUS?this.state=F.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:Gs(n)?(this._emitChars("<"),this.state=F.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(n)):(this._emitChars("<"),this.state=F.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(n))}_stateScriptDataEscapedEndTagOpen(n){Gs(n)?(this.state=F.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(n)):(this._emitChars("</"),this.state=F.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(n))}_stateScriptDataEscapedEndTagName(n){this.handleSpecialEndTag(n)&&(this._emitChars("</"),this.state=F.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(n))}_stateScriptDataDoubleEscapeStart(n){if(this.preprocessor.startsWith(Va.SCRIPT,!1)&&oA(this.preprocessor.peek(Va.SCRIPT.length))){this._emitCodePoint(n);for(let a=0;a<Va.SCRIPT.length;a++)this._emitCodePoint(this._consume());this.state=F.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=F.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(n))}_stateScriptDataDoubleEscaped(n){switch(n){case M.HYPHEN_MINUS:{this.state=F.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case M.LESS_THAN_SIGN:{this.state=F.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case M.NULL:{this._err(le.unexpectedNullCharacter),this._emitChars(xn);break}case M.EOF:{this._err(le.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(n)}}_stateScriptDataDoubleEscapedDash(n){switch(n){case M.HYPHEN_MINUS:{this.state=F.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case M.LESS_THAN_SIGN:{this.state=F.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case M.NULL:{this._err(le.unexpectedNullCharacter),this.state=F.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(xn);break}case M.EOF:{this._err(le.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=F.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(n)}}_stateScriptDataDoubleEscapedDashDash(n){switch(n){case M.HYPHEN_MINUS:{this._emitChars("-");break}case M.LESS_THAN_SIGN:{this.state=F.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case M.GREATER_THAN_SIGN:{this.state=F.SCRIPT_DATA,this._emitChars(">");break}case M.NULL:{this._err(le.unexpectedNullCharacter),this.state=F.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(xn);break}case M.EOF:{this._err(le.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=F.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(n)}}_stateScriptDataDoubleEscapedLessThanSign(n){n===M.SOLIDUS?(this.state=F.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=F.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(n))}_stateScriptDataDoubleEscapeEnd(n){if(this.preprocessor.startsWith(Va.SCRIPT,!1)&&oA(this.preprocessor.peek(Va.SCRIPT.length))){this._emitCodePoint(n);for(let a=0;a<Va.SCRIPT.length;a++)this._emitCodePoint(this._consume());this.state=F.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=F.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(n))}_stateBeforeAttributeName(n){switch(n){case M.SPACE:case M.LINE_FEED:case M.TABULATION:case M.FORM_FEED:break;case M.SOLIDUS:case M.GREATER_THAN_SIGN:case M.EOF:{this.state=F.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(n);break}case M.EQUALS_SIGN:{this._err(le.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=F.ATTRIBUTE_NAME;break}default:this._createAttr(""),this.state=F.ATTRIBUTE_NAME,this._stateAttributeName(n)}}_stateAttributeName(n){switch(n){case M.SPACE:case M.LINE_FEED:case M.TABULATION:case M.FORM_FEED:case M.SOLIDUS:case M.GREATER_THAN_SIGN:case M.EOF:{this._leaveAttrName(),this.state=F.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(n);break}case M.EQUALS_SIGN:{this._leaveAttrName(),this.state=F.BEFORE_ATTRIBUTE_VALUE;break}case M.QUOTATION_MARK:case M.APOSTROPHE:case M.LESS_THAN_SIGN:{this._err(le.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(n);break}case M.NULL:{this._err(le.unexpectedNullCharacter),this.currentAttr.name+=xn;break}default:this.currentAttr.name+=String.fromCodePoint(Sm(n)?u1(n):n)}}_stateAfterAttributeName(n){switch(n){case M.SPACE:case M.LINE_FEED:case M.TABULATION:case M.FORM_FEED:break;case M.SOLIDUS:{this.state=F.SELF_CLOSING_START_TAG;break}case M.EQUALS_SIGN:{this.state=F.BEFORE_ATTRIBUTE_VALUE;break}case M.GREATER_THAN_SIGN:{this.state=F.DATA,this.emitCurrentTagToken();break}case M.EOF:{this._err(le.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=F.ATTRIBUTE_NAME,this._stateAttributeName(n)}}_stateBeforeAttributeValue(n){switch(n){case M.SPACE:case M.LINE_FEED:case M.TABULATION:case M.FORM_FEED:break;case M.QUOTATION_MARK:{this.state=F.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case M.APOSTROPHE:{this.state=F.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case M.GREATER_THAN_SIGN:{this._err(le.missingAttributeValue),this.state=F.DATA,this.emitCurrentTagToken();break}default:this.state=F.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(n)}}_stateAttributeValueDoubleQuoted(n){switch(n){case M.QUOTATION_MARK:{this.state=F.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case M.AMPERSAND:{this._startCharacterReference();break}case M.NULL:{this._err(le.unexpectedNullCharacter),this.currentAttr.value+=xn;break}case M.EOF:{this._err(le.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(n)}}_stateAttributeValueSingleQuoted(n){switch(n){case M.APOSTROPHE:{this.state=F.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case M.AMPERSAND:{this._startCharacterReference();break}case M.NULL:{this._err(le.unexpectedNullCharacter),this.currentAttr.value+=xn;break}case M.EOF:{this._err(le.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(n)}}_stateAttributeValueUnquoted(n){switch(n){case M.SPACE:case M.LINE_FEED:case M.TABULATION:case M.FORM_FEED:{this._leaveAttrValue(),this.state=F.BEFORE_ATTRIBUTE_NAME;break}case M.AMPERSAND:{this._startCharacterReference();break}case M.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=F.DATA,this.emitCurrentTagToken();break}case M.NULL:{this._err(le.unexpectedNullCharacter),this.currentAttr.value+=xn;break}case M.QUOTATION_MARK:case M.APOSTROPHE:case M.LESS_THAN_SIGN:case M.EQUALS_SIGN:case M.GRAVE_ACCENT:{this._err(le.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(n);break}case M.EOF:{this._err(le.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(n)}}_stateAfterAttributeValueQuoted(n){switch(n){case M.SPACE:case M.LINE_FEED:case M.TABULATION:case M.FORM_FEED:{this._leaveAttrValue(),this.state=F.BEFORE_ATTRIBUTE_NAME;break}case M.SOLIDUS:{this._leaveAttrValue(),this.state=F.SELF_CLOSING_START_TAG;break}case M.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=F.DATA,this.emitCurrentTagToken();break}case M.EOF:{this._err(le.eofInTag),this._emitEOFToken();break}default:this._err(le.missingWhitespaceBetweenAttributes),this.state=F.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(n)}}_stateSelfClosingStartTag(n){switch(n){case M.GREATER_THAN_SIGN:{const a=this.currentToken;a.selfClosing=!0,this.state=F.DATA,this.emitCurrentTagToken();break}case M.EOF:{this._err(le.eofInTag),this._emitEOFToken();break}default:this._err(le.unexpectedSolidusInTag),this.state=F.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(n)}}_stateBogusComment(n){const a=this.currentToken;switch(n){case M.GREATER_THAN_SIGN:{this.state=F.DATA,this.emitCurrentComment(a);break}case M.EOF:{this.emitCurrentComment(a),this._emitEOFToken();break}case M.NULL:{this._err(le.unexpectedNullCharacter),a.data+=xn;break}default:a.data+=String.fromCodePoint(n)}}_stateMarkupDeclarationOpen(n){this._consumeSequenceIfMatch(Va.DASH_DASH,!0)?(this._createCommentToken(Va.DASH_DASH.length+1),this.state=F.COMMENT_START):this._consumeSequenceIfMatch(Va.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(Va.DOCTYPE.length+1),this.state=F.DOCTYPE):this._consumeSequenceIfMatch(Va.CDATA_START,!0)?this.inForeignNode?this.state=F.CDATA_SECTION:(this._err(le.cdataInHtmlContent),this._createCommentToken(Va.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=F.BOGUS_COMMENT):this._ensureHibernation()||(this._err(le.incorrectlyOpenedComment),this._createCommentToken(2),this.state=F.BOGUS_COMMENT,this._stateBogusComment(n))}_stateCommentStart(n){switch(n){case M.HYPHEN_MINUS:{this.state=F.COMMENT_START_DASH;break}case M.GREATER_THAN_SIGN:{this._err(le.abruptClosingOfEmptyComment),this.state=F.DATA;const a=this.currentToken;this.emitCurrentComment(a);break}default:this.state=F.COMMENT,this._stateComment(n)}}_stateCommentStartDash(n){const a=this.currentToken;switch(n){case M.HYPHEN_MINUS:{this.state=F.COMMENT_END;break}case M.GREATER_THAN_SIGN:{this._err(le.abruptClosingOfEmptyComment),this.state=F.DATA,this.emitCurrentComment(a);break}case M.EOF:{this._err(le.eofInComment),this.emitCurrentComment(a),this._emitEOFToken();break}default:a.data+="-",this.state=F.COMMENT,this._stateComment(n)}}_stateComment(n){const a=this.currentToken;switch(n){case M.HYPHEN_MINUS:{this.state=F.COMMENT_END_DASH;break}case M.LESS_THAN_SIGN:{a.data+="<",this.state=F.COMMENT_LESS_THAN_SIGN;break}case M.NULL:{this._err(le.unexpectedNullCharacter),a.data+=xn;break}case M.EOF:{this._err(le.eofInComment),this.emitCurrentComment(a),this._emitEOFToken();break}default:a.data+=String.fromCodePoint(n)}}_stateCommentLessThanSign(n){const a=this.currentToken;switch(n){case M.EXCLAMATION_MARK:{a.data+="!",this.state=F.COMMENT_LESS_THAN_SIGN_BANG;break}case M.LESS_THAN_SIGN:{a.data+="<";break}default:this.state=F.COMMENT,this._stateComment(n)}}_stateCommentLessThanSignBang(n){n===M.HYPHEN_MINUS?this.state=F.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=F.COMMENT,this._stateComment(n))}_stateCommentLessThanSignBangDash(n){n===M.HYPHEN_MINUS?this.state=F.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=F.COMMENT_END_DASH,this._stateCommentEndDash(n))}_stateCommentLessThanSignBangDashDash(n){n!==M.GREATER_THAN_SIGN&&n!==M.EOF&&this._err(le.nestedComment),this.state=F.COMMENT_END,this._stateCommentEnd(n)}_stateCommentEndDash(n){const a=this.currentToken;switch(n){case M.HYPHEN_MINUS:{this.state=F.COMMENT_END;break}case M.EOF:{this._err(le.eofInComment),this.emitCurrentComment(a),this._emitEOFToken();break}default:a.data+="-",this.state=F.COMMENT,this._stateComment(n)}}_stateCommentEnd(n){const a=this.currentToken;switch(n){case M.GREATER_THAN_SIGN:{this.state=F.DATA,this.emitCurrentComment(a);break}case M.EXCLAMATION_MARK:{this.state=F.COMMENT_END_BANG;break}case M.HYPHEN_MINUS:{a.data+="-";break}case M.EOF:{this._err(le.eofInComment),this.emitCurrentComment(a),this._emitEOFToken();break}default:a.data+="--",this.state=F.COMMENT,this._stateComment(n)}}_stateCommentEndBang(n){const a=this.currentToken;switch(n){case M.HYPHEN_MINUS:{a.data+="--!",this.state=F.COMMENT_END_DASH;break}case M.GREATER_THAN_SIGN:{this._err(le.incorrectlyClosedComment),this.state=F.DATA,this.emitCurrentComment(a);break}case M.EOF:{this._err(le.eofInComment),this.emitCurrentComment(a),this._emitEOFToken();break}default:a.data+="--!",this.state=F.COMMENT,this._stateComment(n)}}_stateDoctype(n){switch(n){case M.SPACE:case M.LINE_FEED:case M.TABULATION:case M.FORM_FEED:{this.state=F.BEFORE_DOCTYPE_NAME;break}case M.GREATER_THAN_SIGN:{this.state=F.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(n);break}case M.EOF:{this._err(le.eofInDoctype),this._createDoctypeToken(null);const a=this.currentToken;a.forceQuirks=!0,this.emitCurrentDoctype(a),this._emitEOFToken();break}default:this._err(le.missingWhitespaceBeforeDoctypeName),this.state=F.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(n)}}_stateBeforeDoctypeName(n){if(Sm(n))this._createDoctypeToken(String.fromCharCode(u1(n))),this.state=F.DOCTYPE_NAME;else switch(n){case M.SPACE:case M.LINE_FEED:case M.TABULATION:case M.FORM_FEED:break;case M.NULL:{this._err(le.unexpectedNullCharacter),this._createDoctypeToken(xn),this.state=F.DOCTYPE_NAME;break}case M.GREATER_THAN_SIGN:{this._err(le.missingDoctypeName),this._createDoctypeToken(null);const a=this.currentToken;a.forceQuirks=!0,this.emitCurrentDoctype(a),this.state=F.DATA;break}case M.EOF:{this._err(le.eofInDoctype),this._createDoctypeToken(null);const a=this.currentToken;a.forceQuirks=!0,this.emitCurrentDoctype(a),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(n)),this.state=F.DOCTYPE_NAME}}_stateDoctypeName(n){const a=this.currentToken;switch(n){case M.SPACE:case M.LINE_FEED:case M.TABULATION:case M.FORM_FEED:{this.state=F.AFTER_DOCTYPE_NAME;break}case M.GREATER_THAN_SIGN:{this.state=F.DATA,this.emitCurrentDoctype(a);break}case M.NULL:{this._err(le.unexpectedNullCharacter),a.name+=xn;break}case M.EOF:{this._err(le.eofInDoctype),a.forceQuirks=!0,this.emitCurrentDoctype(a),this._emitEOFToken();break}default:a.name+=String.fromCodePoint(Sm(n)?u1(n):n)}}_stateAfterDoctypeName(n){const a=this.currentToken;switch(n){case M.SPACE:case M.LINE_FEED:case M.TABULATION:case M.FORM_FEED:break;case M.GREATER_THAN_SIGN:{this.state=F.DATA,this.emitCurrentDoctype(a);break}case M.EOF:{this._err(le.eofInDoctype),a.forceQuirks=!0,this.emitCurrentDoctype(a),this._emitEOFToken();break}default:this._consumeSequenceIfMatch(Va.PUBLIC,!1)?this.state=F.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(Va.SYSTEM,!1)?this.state=F.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(le.invalidCharacterSequenceAfterDoctypeName),a.forceQuirks=!0,this.state=F.BOGUS_DOCTYPE,this._stateBogusDoctype(n))}}_stateAfterDoctypePublicKeyword(n){const a=this.currentToken;switch(n){case M.SPACE:case M.LINE_FEED:case M.TABULATION:case M.FORM_FEED:{this.state=F.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case M.QUOTATION_MARK:{this._err(le.missingWhitespaceAfterDoctypePublicKeyword),a.publicId="",this.state=F.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case M.APOSTROPHE:{this._err(le.missingWhitespaceAfterDoctypePublicKeyword),a.publicId="",this.state=F.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case M.GREATER_THAN_SIGN:{this._err(le.missingDoctypePublicIdentifier),a.forceQuirks=!0,this.state=F.DATA,this.emitCurrentDoctype(a);break}case M.EOF:{this._err(le.eofInDoctype),a.forceQuirks=!0,this.emitCurrentDoctype(a),this._emitEOFToken();break}default:this._err(le.missingQuoteBeforeDoctypePublicIdentifier),a.forceQuirks=!0,this.state=F.BOGUS_DOCTYPE,this._stateBogusDoctype(n)}}_stateBeforeDoctypePublicIdentifier(n){const a=this.currentToken;switch(n){case M.SPACE:case M.LINE_FEED:case M.TABULATION:case M.FORM_FEED:break;case M.QUOTATION_MARK:{a.publicId="",this.state=F.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case M.APOSTROPHE:{a.publicId="",this.state=F.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case M.GREATER_THAN_SIGN:{this._err(le.missingDoctypePublicIdentifier),a.forceQuirks=!0,this.state=F.DATA,this.emitCurrentDoctype(a);break}case M.EOF:{this._err(le.eofInDoctype),a.forceQuirks=!0,this.emitCurrentDoctype(a),this._emitEOFToken();break}default:this._err(le.missingQuoteBeforeDoctypePublicIdentifier),a.forceQuirks=!0,this.state=F.BOGUS_DOCTYPE,this._stateBogusDoctype(n)}}_stateDoctypePublicIdentifierDoubleQuoted(n){const a=this.currentToken;switch(n){case M.QUOTATION_MARK:{this.state=F.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case M.NULL:{this._err(le.unexpectedNullCharacter),a.publicId+=xn;break}case M.GREATER_THAN_SIGN:{this._err(le.abruptDoctypePublicIdentifier),a.forceQuirks=!0,this.emitCurrentDoctype(a),this.state=F.DATA;break}case M.EOF:{this._err(le.eofInDoctype),a.forceQuirks=!0,this.emitCurrentDoctype(a),this._emitEOFToken();break}default:a.publicId+=String.fromCodePoint(n)}}_stateDoctypePublicIdentifierSingleQuoted(n){const a=this.currentToken;switch(n){case M.APOSTROPHE:{this.state=F.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case M.NULL:{this._err(le.unexpectedNullCharacter),a.publicId+=xn;break}case M.GREATER_THAN_SIGN:{this._err(le.abruptDoctypePublicIdentifier),a.forceQuirks=!0,this.emitCurrentDoctype(a),this.state=F.DATA;break}case M.EOF:{this._err(le.eofInDoctype),a.forceQuirks=!0,this.emitCurrentDoctype(a),this._emitEOFToken();break}default:a.publicId+=String.fromCodePoint(n)}}_stateAfterDoctypePublicIdentifier(n){const a=this.currentToken;switch(n){case M.SPACE:case M.LINE_FEED:case M.TABULATION:case M.FORM_FEED:{this.state=F.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case M.GREATER_THAN_SIGN:{this.state=F.DATA,this.emitCurrentDoctype(a);break}case M.QUOTATION_MARK:{this._err(le.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),a.systemId="",this.state=F.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case M.APOSTROPHE:{this._err(le.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),a.systemId="",this.state=F.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case M.EOF:{this._err(le.eofInDoctype),a.forceQuirks=!0,this.emitCurrentDoctype(a),this._emitEOFToken();break}default:this._err(le.missingQuoteBeforeDoctypeSystemIdentifier),a.forceQuirks=!0,this.state=F.BOGUS_DOCTYPE,this._stateBogusDoctype(n)}}_stateBetweenDoctypePublicAndSystemIdentifiers(n){const a=this.currentToken;switch(n){case M.SPACE:case M.LINE_FEED:case M.TABULATION:case M.FORM_FEED:break;case M.GREATER_THAN_SIGN:{this.emitCurrentDoctype(a),this.state=F.DATA;break}case M.QUOTATION_MARK:{a.systemId="",this.state=F.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case M.APOSTROPHE:{a.systemId="",this.state=F.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case M.EOF:{this._err(le.eofInDoctype),a.forceQuirks=!0,this.emitCurrentDoctype(a),this._emitEOFToken();break}default:this._err(le.missingQuoteBeforeDoctypeSystemIdentifier),a.forceQuirks=!0,this.state=F.BOGUS_DOCTYPE,this._stateBogusDoctype(n)}}_stateAfterDoctypeSystemKeyword(n){const a=this.currentToken;switch(n){case M.SPACE:case M.LINE_FEED:case M.TABULATION:case M.FORM_FEED:{this.state=F.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case M.QUOTATION_MARK:{this._err(le.missingWhitespaceAfterDoctypeSystemKeyword),a.systemId="",this.state=F.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case M.APOSTROPHE:{this._err(le.missingWhitespaceAfterDoctypeSystemKeyword),a.systemId="",this.state=F.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case M.GREATER_THAN_SIGN:{this._err(le.missingDoctypeSystemIdentifier),a.forceQuirks=!0,this.state=F.DATA,this.emitCurrentDoctype(a);break}case M.EOF:{this._err(le.eofInDoctype),a.forceQuirks=!0,this.emitCurrentDoctype(a),this._emitEOFToken();break}default:this._err(le.missingQuoteBeforeDoctypeSystemIdentifier),a.forceQuirks=!0,this.state=F.BOGUS_DOCTYPE,this._stateBogusDoctype(n)}}_stateBeforeDoctypeSystemIdentifier(n){const a=this.currentToken;switch(n){case M.SPACE:case M.LINE_FEED:case M.TABULATION:case M.FORM_FEED:break;case M.QUOTATION_MARK:{a.systemId="",this.state=F.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case M.APOSTROPHE:{a.systemId="",this.state=F.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case M.GREATER_THAN_SIGN:{this._err(le.missingDoctypeSystemIdentifier),a.forceQuirks=!0,this.state=F.DATA,this.emitCurrentDoctype(a);break}case M.EOF:{this._err(le.eofInDoctype),a.forceQuirks=!0,this.emitCurrentDoctype(a),this._emitEOFToken();break}default:this._err(le.missingQuoteBeforeDoctypeSystemIdentifier),a.forceQuirks=!0,this.state=F.BOGUS_DOCTYPE,this._stateBogusDoctype(n)}}_stateDoctypeSystemIdentifierDoubleQuoted(n){const a=this.currentToken;switch(n){case M.QUOTATION_MARK:{this.state=F.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case M.NULL:{this._err(le.unexpectedNullCharacter),a.systemId+=xn;break}case M.GREATER_THAN_SIGN:{this._err(le.abruptDoctypeSystemIdentifier),a.forceQuirks=!0,this.emitCurrentDoctype(a),this.state=F.DATA;break}case M.EOF:{this._err(le.eofInDoctype),a.forceQuirks=!0,this.emitCurrentDoctype(a),this._emitEOFToken();break}default:a.systemId+=String.fromCodePoint(n)}}_stateDoctypeSystemIdentifierSingleQuoted(n){const a=this.currentToken;switch(n){case M.APOSTROPHE:{this.state=F.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case M.NULL:{this._err(le.unexpectedNullCharacter),a.systemId+=xn;break}case M.GREATER_THAN_SIGN:{this._err(le.abruptDoctypeSystemIdentifier),a.forceQuirks=!0,this.emitCurrentDoctype(a),this.state=F.DATA;break}case M.EOF:{this._err(le.eofInDoctype),a.forceQuirks=!0,this.emitCurrentDoctype(a),this._emitEOFToken();break}default:a.systemId+=String.fromCodePoint(n)}}_stateAfterDoctypeSystemIdentifier(n){const a=this.currentToken;switch(n){case M.SPACE:case M.LINE_FEED:case M.TABULATION:case M.FORM_FEED:break;case M.GREATER_THAN_SIGN:{this.emitCurrentDoctype(a),this.state=F.DATA;break}case M.EOF:{this._err(le.eofInDoctype),a.forceQuirks=!0,this.emitCurrentDoctype(a),this._emitEOFToken();break}default:this._err(le.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=F.BOGUS_DOCTYPE,this._stateBogusDoctype(n)}}_stateBogusDoctype(n){const a=this.currentToken;switch(n){case M.GREATER_THAN_SIGN:{this.emitCurrentDoctype(a),this.state=F.DATA;break}case M.NULL:{this._err(le.unexpectedNullCharacter);break}case M.EOF:{this.emitCurrentDoctype(a),this._emitEOFToken();break}}}_stateCdataSection(n){switch(n){case M.RIGHT_SQUARE_BRACKET:{this.state=F.CDATA_SECTION_BRACKET;break}case M.EOF:{this._err(le.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(n)}}_stateCdataSectionBracket(n){n===M.RIGHT_SQUARE_BRACKET?this.state=F.CDATA_SECTION_END:(this._emitChars("]"),this.state=F.CDATA_SECTION,this._stateCdataSection(n))}_stateCdataSectionEnd(n){switch(n){case M.GREATER_THAN_SIGN:{this.state=F.DATA;break}case M.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:this._emitChars("]]"),this.state=F.CDATA_SECTION,this._stateCdataSection(n)}}_stateCharacterReference(){let n=this.entityDecoder.write(this.preprocessor.html,this.preprocessor.pos);if(n<0)if(this.preprocessor.lastChunkWritten)n=this.entityDecoder.end();else{this.active=!1,this.preprocessor.pos=this.preprocessor.html.length-1,this.consumedAfterSnapshot=0,this.preprocessor.endOfChunkHit=!0;return}n===0?(this.preprocessor.pos=this.entityStartPos,this._flushCodePointConsumedAsCharacterReference(M.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&iA(this.preprocessor.peek(1))?F.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(n){iA(n)?this._flushCodePointConsumedAsCharacterReference(n):(n===M.SEMICOLON&&this._err(le.unknownNamedCharacterReference),this.state=this.returnState,this._callState(n))}}const w3=new Set([y.DD,y.DT,y.LI,y.OPTGROUP,y.OPTION,y.P,y.RB,y.RP,y.RT,y.RTC]),uA=new Set([...w3,y.CAPTION,y.COLGROUP,y.TBODY,y.TD,y.TFOOT,y.TH,y.THEAD,y.TR]),k1=new Set([y.APPLET,y.CAPTION,y.HTML,y.MARQUEE,y.OBJECT,y.TABLE,y.TD,y.TEMPLATE,y.TH]),Y7=new Set([...k1,y.OL,y.UL]),W7=new Set([...k1,y.BUTTON]),sA=new Set([y.ANNOTATION_XML,y.MI,y.MN,y.MO,y.MS,y.MTEXT]),lA=new Set([y.DESC,y.FOREIGN_OBJECT,y.TITLE]),q7=new Set([y.TR,y.TEMPLATE,y.HTML]),Q7=new Set([y.TBODY,y.TFOOT,y.THEAD,y.TEMPLATE,y.HTML]),$7=new Set([y.TABLE,y.TEMPLATE,y.HTML]),G7=new Set([y.TD,y.TH]);class X7{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(n,a,s){this.treeAdapter=a,this.handler=s,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=y.UNKNOWN,this.current=n}_indexOf(n){return this.items.lastIndexOf(n,this.stackTop)}_isInTemplate(){return this.currentTagId===y.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===Te.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(n,a){this.stackTop++,this.items[this.stackTop]=n,this.current=n,this.tagIDs[this.stackTop]=a,this.currentTagId=a,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(n,a,!0)}pop(){const n=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(n,!0)}replace(n,a){const s=this._indexOf(n);this.items[s]=a,s===this.stackTop&&(this.current=a)}insertAfter(n,a,s){const f=this._indexOf(n)+1;this.items.splice(f,0,a),this.tagIDs.splice(f,0,s),this.stackTop++,f===this.stackTop&&this._updateCurrentElement(),this.handler.onItemPush(this.current,this.currentTagId,f===this.stackTop)}popUntilTagNamePopped(n){let a=this.stackTop+1;do a=this.tagIDs.lastIndexOf(n,a-1);while(a>0&&this.treeAdapter.getNamespaceURI(this.items[a])!==Te.HTML);this.shortenToLength(a<0?0:a)}shortenToLength(n){for(;this.stackTop>=n;){const a=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(a,this.stackTop<n)}}popUntilElementPopped(n){const a=this._indexOf(n);this.shortenToLength(a<0?0:a)}popUntilPopped(n,a){const s=this._indexOfTagNames(n,a);this.shortenToLength(s<0?0:s)}popUntilNumberedHeaderPopped(){this.popUntilPopped(xw,Te.HTML)}popUntilTableCellPopped(){this.popUntilPopped(G7,Te.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(n,a){for(let s=this.stackTop;s>=0;s--)if(n.has(this.tagIDs[s])&&this.treeAdapter.getNamespaceURI(this.items[s])===a)return s;return-1}clearBackTo(n,a){const s=this._indexOfTagNames(n,a);this.shortenToLength(s+1)}clearBackToTableContext(){this.clearBackTo($7,Te.HTML)}clearBackToTableBodyContext(){this.clearBackTo(Q7,Te.HTML)}clearBackToTableRowContext(){this.clearBackTo(q7,Te.HTML)}remove(n){const a=this._indexOf(n);a>=0&&(a===this.stackTop?this.pop():(this.items.splice(a,1),this.tagIDs.splice(a,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(n,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===y.BODY?this.items[1]:null}contains(n){return this._indexOf(n)>-1}getCommonAncestor(n){const a=this._indexOf(n)-1;return a>=0?this.items[a]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===y.HTML}hasInDynamicScope(n,a){for(let s=this.stackTop;s>=0;s--){const f=this.tagIDs[s];switch(this.treeAdapter.getNamespaceURI(this.items[s])){case Te.HTML:{if(f===n)return!0;if(a.has(f))return!1;break}case Te.SVG:{if(lA.has(f))return!1;break}case Te.MATHML:{if(sA.has(f))return!1;break}}}return!0}hasInScope(n){return this.hasInDynamicScope(n,k1)}hasInListItemScope(n){return this.hasInDynamicScope(n,Y7)}hasInButtonScope(n){return this.hasInDynamicScope(n,W7)}hasNumberedHeaderInScope(){for(let n=this.stackTop;n>=0;n--){const a=this.tagIDs[n];switch(this.treeAdapter.getNamespaceURI(this.items[n])){case Te.HTML:{if(xw.has(a))return!0;if(k1.has(a))return!1;break}case Te.SVG:{if(lA.has(a))return!1;break}case Te.MATHML:{if(sA.has(a))return!1;break}}}return!0}hasInTableScope(n){for(let a=this.stackTop;a>=0;a--)if(this.treeAdapter.getNamespaceURI(this.items[a])===Te.HTML)switch(this.tagIDs[a]){case n:return!0;case y.TABLE:case y.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===Te.HTML)switch(this.tagIDs[n]){case y.TBODY:case y.THEAD:case y.TFOOT:return!0;case y.TABLE:case y.HTML:return!1}return!0}hasInSelectScope(n){for(let a=this.stackTop;a>=0;a--)if(this.treeAdapter.getNamespaceURI(this.items[a])===Te.HTML)switch(this.tagIDs[a]){case n:return!0;case y.OPTION:case y.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;w3.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;uA.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(n){for(;this.currentTagId!==n&&uA.has(this.currentTagId);)this.pop()}}const $T=3;var zo;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(zo||(zo={}));const cA={type:zo.Marker};class K7{constructor(n){this.treeAdapter=n,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(n,a){const s=[],f=a.length,p=this.treeAdapter.getTagName(n),d=this.treeAdapter.getNamespaceURI(n);for(let g=0;g<this.entries.length;g++){const E=this.entries[g];if(E.type===zo.Marker)break;const{element:T}=E;if(this.treeAdapter.getTagName(T)===p&&this.treeAdapter.getNamespaceURI(T)===d){const C=this.treeAdapter.getAttrList(T);C.length===f&&s.push({idx:g,attrs:C})}}return s}_ensureNoahArkCondition(n){if(this.entries.length<$T)return;const a=this.treeAdapter.getAttrList(n),s=this._getNoahArkConditionCandidates(n,a);if(s.length<$T)return;const f=new Map(a.map(d=>[d.name,d.value]));let p=0;for(let d=0;d<s.length;d++){const g=s[d];g.attrs.every(E=>f.get(E.name)===E.value)&&(p+=1,p>=$T&&this.entries.splice(g.idx,1))}}insertMarker(){this.entries.unshift(cA)}pushElement(n,a){this._ensureNoahArkCondition(n),this.entries.unshift({type:zo.Element,element:n,token:a})}insertElementAfterBookmark(n,a){const s=this.entries.indexOf(this.bookmark);this.entries.splice(s,0,{type:zo.Element,element:n,token:a})}removeEntry(n){const a=this.entries.indexOf(n);a>=0&&this.entries.splice(a,1)}clearToLastMarker(){const n=this.entries.indexOf(cA);n>=0?this.entries.splice(0,n+1):this.entries.length=0}getElementEntryInScopeWithTagName(n){const a=this.entries.find(s=>s.type===zo.Marker||this.treeAdapter.getTagName(s.element)===n);return a&&a.type===zo.Element?a:null}getElementEntry(n){return this.entries.find(a=>a.type===zo.Element&&a.element===n)}}const Xs={createDocument(){return{nodeName:"#document",mode:Ai.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(e,n,a){return{nodeName:e,tagName:e,attrs:a,namespaceURI:n,childNodes:[],parentNode:null}},createCommentNode(e){return{nodeName:"#comment",data:e,parentNode:null}},createTextNode(e){return{nodeName:"#text",value:e,parentNode:null}},appendChild(e,n){e.childNodes.push(n),n.parentNode=e},insertBefore(e,n,a){const s=e.childNodes.indexOf(a);e.childNodes.splice(s,0,n),n.parentNode=e},setTemplateContent(e,n){e.content=n},getTemplateContent(e){return e.content},setDocumentType(e,n,a,s){const f=e.childNodes.find(p=>p.nodeName==="#documentType");if(f)f.name=n,f.publicId=a,f.systemId=s;else{const p={nodeName:"#documentType",name:n,publicId:a,systemId:s,parentNode:null};Xs.appendChild(e,p)}},setDocumentMode(e,n){e.mode=n},getDocumentMode(e){return e.mode},detachNode(e){if(e.parentNode){const n=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(n,1),e.parentNode=null}},insertText(e,n){if(e.childNodes.length>0){const a=e.childNodes[e.childNodes.length-1];if(Xs.isTextNode(a)){a.value+=n;return}}Xs.appendChild(e,Xs.createTextNode(n))},insertTextBefore(e,n,a){const s=e.childNodes[e.childNodes.indexOf(a)-1];s&&Xs.isTextNode(s)?s.value+=n:Xs.insertBefore(e,Xs.createTextNode(n),a)},adoptAttributes(e,n){const a=new Set(e.attrs.map(s=>s.name));for(let s=0;s<n.length;s++)a.has(n[s].name)||e.attrs.push(n[s])},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,n){e.sourceCodeLocation=n},getNodeSourceCodeLocation(e){return e.sourceCodeLocation},updateNodeSourceCodeLocation(e,n){e.sourceCodeLocation={...e.sourceCodeLocation,...n}}},x3="html",Z7="about:legacy-compat",J7="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",S3=["+//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//"],eU=[...S3,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],tU=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),C3=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],nU=[...C3,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function dA(e,n){return n.some(a=>e.startsWith(a))}function rU(e){return e.name===x3&&e.publicId===null&&(e.systemId===null||e.systemId===Z7)}function aU(e){if(e.name!==x3)return Ai.QUIRKS;const{systemId:n}=e;if(n&&n.toLowerCase()===J7)return Ai.QUIRKS;let{publicId:a}=e;if(a!==null){if(a=a.toLowerCase(),tU.has(a))return Ai.QUIRKS;let s=n===null?eU:S3;if(dA(a,s))return Ai.QUIRKS;if(s=n===null?C3:nU,dA(a,s))return Ai.LIMITED_QUIRKS}return Ai.NO_QUIRKS}const fA={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},iU="definitionurl",oU="definitionURL",uU=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])),sU=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:Te.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:Te.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:Te.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:Te.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:Te.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:Te.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:Te.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:Te.XML}],["xml:space",{prefix:"xml",name:"space",namespace:Te.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:Te.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:Te.XMLNS}]]),lU=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])),cU=new Set([y.B,y.BIG,y.BLOCKQUOTE,y.BODY,y.BR,y.CENTER,y.CODE,y.DD,y.DIV,y.DL,y.DT,y.EM,y.EMBED,y.H1,y.H2,y.H3,y.H4,y.H5,y.H6,y.HEAD,y.HR,y.I,y.IMG,y.LI,y.LISTING,y.MENU,y.META,y.NOBR,y.OL,y.P,y.PRE,y.RUBY,y.S,y.SMALL,y.SPAN,y.STRONG,y.STRIKE,y.SUB,y.SUP,y.TABLE,y.TT,y.U,y.UL,y.VAR]);function dU(e){const n=e.tagID;return n===y.FONT&&e.attrs.some(({name:s})=>s===Cc.COLOR||s===Cc.SIZE||s===Cc.FACE)||cU.has(n)}function _3(e){for(let n=0;n<e.attrs.length;n++)if(e.attrs[n].name===iU){e.attrs[n].name=oU;break}}function A3(e){for(let n=0;n<e.attrs.length;n++){const a=uU.get(e.attrs[n].name);a!=null&&(e.attrs[n].name=a)}}function tx(e){for(let n=0;n<e.attrs.length;n++){const a=sU.get(e.attrs[n].name);a&&(e.attrs[n].prefix=a.prefix,e.attrs[n].name=a.name,e.attrs[n].namespace=a.namespace)}}function fU(e){const n=lU.get(e.tagName);n!=null&&(e.tagName=n,e.tagID=Jf(e.tagName))}function hU(e,n){return n===Te.MATHML&&(e===y.MI||e===y.MO||e===y.MN||e===y.MS||e===y.MTEXT)}function pU(e,n,a){if(n===Te.MATHML&&e===y.ANNOTATION_XML){for(let s=0;s<a.length;s++)if(a[s].name===Cc.ENCODING){const f=a[s].value.toLowerCase();return f===fA.TEXT_HTML||f===fA.APPLICATION_XML}}return n===Te.SVG&&(e===y.FOREIGN_OBJECT||e===y.DESC||e===y.TITLE)}function mU(e,n,a,s){return(!s||s===Te.HTML)&&pU(e,n,a)||(!s||s===Te.MATHML)&&hU(e,n)}const gU="hidden",vU=8,yU=3;var j;(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"})(j||(j={}));const EU={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},k3=new Set([y.TABLE,y.TBODY,y.TFOOT,y.THEAD,y.TR]),hA={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:Xs,onParseError:null};class pA{constructor(n,a,s=null,f=null){this.fragmentContext=s,this.scriptHandler=f,this.currentToken=null,this.stopped=!1,this.insertionMode=j.INITIAL,this.originalInsertionMode=j.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={...hA,...n},this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=a??this.treeAdapter.createDocument(),this.tokenizer=new V7(this.options,this),this.activeFormattingElements=new K7(this.treeAdapter),this.fragmentContextID=s?Jf(this.treeAdapter.getTagName(s)):y.UNKNOWN,this._setContextModes(s??this.document,this.fragmentContextID),this.openElements=new X7(this.document,this.treeAdapter,this)}static parse(n,a){const s=new this(a);return s.tokenizer.write(n,!0),s.document}static getFragmentParser(n,a){const s={...hA,...a};n??(n=s.treeAdapter.createElement(re.TEMPLATE,Te.HTML,[]));const f=s.treeAdapter.createElement("documentmock",Te.HTML,[]),p=new this(s,f,n);return p.fragmentContextID===y.TEMPLATE&&p.tmplInsertionModeStack.unshift(j.IN_TEMPLATE),p._initTokenizerForFragmentParsing(),p._insertFakeRootElement(),p._resetInsertionMode(),p._findFormInFragmentContext(),p}getFragment(){const n=this.treeAdapter.getFirstChild(this.document),a=this.treeAdapter.createDocumentFragment();return this._adoptNodes(n,a),a}_err(n,a,s){var f;if(!this.onParseError)return;const p=(f=n.location)!==null&&f!==void 0?f:EU,d={code:a,startLine:p.startLine,startCol:p.startCol,startOffset:p.startOffset,endLine:s?p.startLine:p.endLine,endCol:s?p.startCol:p.endCol,endOffset:s?p.startOffset:p.endOffset};this.onParseError(d)}onItemPush(n,a,s){var f,p;(p=(f=this.treeAdapter).onItemPush)===null||p===void 0||p.call(f,n),s&&this.openElements.stackTop>0&&this._setContextModes(n,a)}onItemPop(n,a){var s,f;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(n,this.currentToken),(f=(s=this.treeAdapter).onItemPop)===null||f===void 0||f.call(s,n,this.openElements.current),a){let p,d;this.openElements.stackTop===0&&this.fragmentContext?(p=this.fragmentContext,d=this.fragmentContextID):{current:p,currentTagId:d}=this.openElements,this._setContextModes(p,d)}}_setContextModes(n,a){const s=n===this.document||this.treeAdapter.getNamespaceURI(n)===Te.HTML;this.currentNotInHTML=!s,this.tokenizer.inForeignNode=!s&&!this._isIntegrationPoint(a,n)}_switchToTextParsing(n,a){this._insertElement(n,Te.HTML),this.tokenizer.state=a,this.originalInsertionMode=this.insertionMode,this.insertionMode=j.TEXT}switchToPlaintextParsing(){this.insertionMode=j.TEXT,this.originalInsertionMode=j.IN_BODY,this.tokenizer.state=Wn.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let n=this.fragmentContext;for(;n;){if(this.treeAdapter.getTagName(n)===re.FORM){this.formElement=n;break}n=this.treeAdapter.getParentNode(n)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==Te.HTML))switch(this.fragmentContextID){case y.TITLE:case y.TEXTAREA:{this.tokenizer.state=Wn.RCDATA;break}case y.STYLE:case y.XMP:case y.IFRAME:case y.NOEMBED:case y.NOFRAMES:case y.NOSCRIPT:{this.tokenizer.state=Wn.RAWTEXT;break}case y.SCRIPT:{this.tokenizer.state=Wn.SCRIPT_DATA;break}case y.PLAINTEXT:{this.tokenizer.state=Wn.PLAINTEXT;break}}}_setDocumentType(n){const a=n.name||"",s=n.publicId||"",f=n.systemId||"";if(this.treeAdapter.setDocumentType(this.document,a,s,f),n.location){const d=this.treeAdapter.getChildNodes(this.document).find(g=>this.treeAdapter.isDocumentTypeNode(g));d&&this.treeAdapter.setNodeSourceCodeLocation(d,n.location)}}_attachElementToTree(n,a){if(this.options.sourceCodeLocationInfo){const s=a&&{...a,startTag:a};this.treeAdapter.setNodeSourceCodeLocation(n,s)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(n);else{const s=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(s,n)}}_appendElement(n,a){const s=this.treeAdapter.createElement(n.tagName,a,n.attrs);this._attachElementToTree(s,n.location)}_insertElement(n,a){const s=this.treeAdapter.createElement(n.tagName,a,n.attrs);this._attachElementToTree(s,n.location),this.openElements.push(s,n.tagID)}_insertFakeElement(n,a){const s=this.treeAdapter.createElement(n,Te.HTML,[]);this._attachElementToTree(s,null),this.openElements.push(s,a)}_insertTemplate(n){const a=this.treeAdapter.createElement(n.tagName,Te.HTML,n.attrs),s=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(a,s),this._attachElementToTree(a,n.location),this.openElements.push(a,n.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(s,null)}_insertFakeRootElement(){const n=this.treeAdapter.createElement(re.HTML,Te.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(n,null),this.treeAdapter.appendChild(this.openElements.current,n),this.openElements.push(n,y.HTML)}_appendCommentNode(n,a){const s=this.treeAdapter.createCommentNode(n.data);this.treeAdapter.appendChild(a,s),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(s,n.location)}_insertCharacters(n){let a,s;if(this._shouldFosterParentOnInsertion()?({parent:a,beforeElement:s}=this._findFosterParentingLocation(),s?this.treeAdapter.insertTextBefore(a,n.chars,s):this.treeAdapter.insertText(a,n.chars)):(a=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(a,n.chars)),!n.location)return;const f=this.treeAdapter.getChildNodes(a),p=s?f.lastIndexOf(s):f.length,d=f[p-1];if(this.treeAdapter.getNodeSourceCodeLocation(d)){const{endLine:E,endCol:T,endOffset:C}=n.location;this.treeAdapter.updateNodeSourceCodeLocation(d,{endLine:E,endCol:T,endOffset:C})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(d,n.location)}_adoptNodes(n,a){for(let s=this.treeAdapter.getFirstChild(n);s;s=this.treeAdapter.getFirstChild(n))this.treeAdapter.detachNode(s),this.treeAdapter.appendChild(a,s)}_setEndLocation(n,a){if(this.treeAdapter.getNodeSourceCodeLocation(n)&&a.location){const s=a.location,f=this.treeAdapter.getTagName(n),p=a.type===kt.END_TAG&&f===a.tagName?{endTag:{...s},endLine:s.endLine,endCol:s.endCol,endOffset:s.endOffset}:{endLine:s.startLine,endCol:s.startCol,endOffset:s.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(n,p)}}shouldProcessStartTagTokenInForeignContent(n){if(!this.currentNotInHTML)return!1;let a,s;return this.openElements.stackTop===0&&this.fragmentContext?(a=this.fragmentContext,s=this.fragmentContextID):{current:a,currentTagId:s}=this.openElements,n.tagID===y.SVG&&this.treeAdapter.getTagName(a)===re.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(a)===Te.MATHML?!1:this.tokenizer.inForeignNode||(n.tagID===y.MGLYPH||n.tagID===y.MALIGNMARK)&&!this._isIntegrationPoint(s,a,Te.HTML)}_processToken(n){switch(n.type){case kt.CHARACTER:{this.onCharacter(n);break}case kt.NULL_CHARACTER:{this.onNullCharacter(n);break}case kt.COMMENT:{this.onComment(n);break}case kt.DOCTYPE:{this.onDoctype(n);break}case kt.START_TAG:{this._processStartTag(n);break}case kt.END_TAG:{this.onEndTag(n);break}case kt.EOF:{this.onEof(n);break}case kt.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(n);break}}}_isIntegrationPoint(n,a,s){const f=this.treeAdapter.getNamespaceURI(a),p=this.treeAdapter.getAttrList(a);return mU(n,f,p,s)}_reconstructActiveFormattingElements(){const n=this.activeFormattingElements.entries.length;if(n){const a=this.activeFormattingElements.entries.findIndex(f=>f.type===zo.Marker||this.openElements.contains(f.element)),s=a<0?n-1:a-1;for(let f=s;f>=0;f--){const p=this.activeFormattingElements.entries[f];this._insertElement(p.token,this.treeAdapter.getNamespaceURI(p.element)),p.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=j.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(y.P),this.openElements.popUntilTagNamePopped(y.P)}_resetInsertionMode(){for(let n=this.openElements.stackTop;n>=0;n--)switch(n===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[n]){case y.TR:{this.insertionMode=j.IN_ROW;return}case y.TBODY:case y.THEAD:case y.TFOOT:{this.insertionMode=j.IN_TABLE_BODY;return}case y.CAPTION:{this.insertionMode=j.IN_CAPTION;return}case y.COLGROUP:{this.insertionMode=j.IN_COLUMN_GROUP;return}case y.TABLE:{this.insertionMode=j.IN_TABLE;return}case y.BODY:{this.insertionMode=j.IN_BODY;return}case y.FRAMESET:{this.insertionMode=j.IN_FRAMESET;return}case y.SELECT:{this._resetInsertionModeForSelect(n);return}case y.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case y.HTML:{this.insertionMode=this.headElement?j.AFTER_HEAD:j.BEFORE_HEAD;return}case y.TD:case y.TH:{if(n>0){this.insertionMode=j.IN_CELL;return}break}case y.HEAD:{if(n>0){this.insertionMode=j.IN_HEAD;return}break}}this.insertionMode=j.IN_BODY}_resetInsertionModeForSelect(n){if(n>0)for(let a=n-1;a>0;a--){const s=this.openElements.tagIDs[a];if(s===y.TEMPLATE)break;if(s===y.TABLE){this.insertionMode=j.IN_SELECT_IN_TABLE;return}}this.insertionMode=j.IN_SELECT}_isElementCausesFosterParenting(n){return k3.has(n)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let n=this.openElements.stackTop;n>=0;n--){const a=this.openElements.items[n];switch(this.openElements.tagIDs[n]){case y.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(a)===Te.HTML)return{parent:this.treeAdapter.getTemplateContent(a),beforeElement:null};break}case y.TABLE:{const s=this.treeAdapter.getParentNode(a);return s?{parent:s,beforeElement:a}:{parent:this.openElements.items[n-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(n){const a=this._findFosterParentingLocation();a.beforeElement?this.treeAdapter.insertBefore(a.parent,n,a.beforeElement):this.treeAdapter.appendChild(a.parent,n)}_isSpecialElement(n,a){const s=this.treeAdapter.getNamespaceURI(n);return B7[s].has(a)}onCharacter(n){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){GB(this,n);return}switch(this.insertionMode){case j.INITIAL:{wm(this,n);break}case j.BEFORE_HTML:{Am(this,n);break}case j.BEFORE_HEAD:{km(this,n);break}case j.IN_HEAD:{Rm(this,n);break}case j.IN_HEAD_NO_SCRIPT:{Nm(this,n);break}case j.AFTER_HEAD:{Dm(this,n);break}case j.IN_BODY:case j.IN_CAPTION:case j.IN_CELL:case j.IN_TEMPLATE:{N3(this,n);break}case j.TEXT:case j.IN_SELECT:case j.IN_SELECT_IN_TABLE:{this._insertCharacters(n);break}case j.IN_TABLE:case j.IN_TABLE_BODY:case j.IN_ROW:{GT(this,n);break}case j.IN_TABLE_TEXT:{P3(this,n);break}case j.IN_COLUMN_GROUP:{R1(this,n);break}case j.AFTER_BODY:{N1(this,n);break}case j.AFTER_AFTER_BODY:{E1(this,n);break}}}onNullCharacter(n){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){$B(this,n);return}switch(this.insertionMode){case j.INITIAL:{wm(this,n);break}case j.BEFORE_HTML:{Am(this,n);break}case j.BEFORE_HEAD:{km(this,n);break}case j.IN_HEAD:{Rm(this,n);break}case j.IN_HEAD_NO_SCRIPT:{Nm(this,n);break}case j.AFTER_HEAD:{Dm(this,n);break}case j.TEXT:{this._insertCharacters(n);break}case j.IN_TABLE:case j.IN_TABLE_BODY:case j.IN_ROW:{GT(this,n);break}case j.IN_COLUMN_GROUP:{R1(this,n);break}case j.AFTER_BODY:{N1(this,n);break}case j.AFTER_AFTER_BODY:{E1(this,n);break}}}onComment(n){if(this.skipNextNewLine=!1,this.currentNotInHTML){Sw(this,n);return}switch(this.insertionMode){case j.INITIAL:case j.BEFORE_HTML:case j.BEFORE_HEAD:case j.IN_HEAD:case j.IN_HEAD_NO_SCRIPT:case j.AFTER_HEAD:case j.IN_BODY:case j.IN_TABLE:case j.IN_CAPTION:case j.IN_COLUMN_GROUP:case j.IN_TABLE_BODY:case j.IN_ROW:case j.IN_CELL:case j.IN_SELECT:case j.IN_SELECT_IN_TABLE:case j.IN_TEMPLATE:case j.IN_FRAMESET:case j.AFTER_FRAMESET:{Sw(this,n);break}case j.IN_TABLE_TEXT:{xm(this,n);break}case j.AFTER_BODY:{_U(this,n);break}case j.AFTER_AFTER_BODY:case j.AFTER_AFTER_FRAMESET:{AU(this,n);break}}}onDoctype(n){switch(this.skipNextNewLine=!1,this.insertionMode){case j.INITIAL:{kU(this,n);break}case j.BEFORE_HEAD:case j.IN_HEAD:case j.IN_HEAD_NO_SCRIPT:case j.AFTER_HEAD:{this._err(n,le.misplacedDoctype);break}case j.IN_TABLE_TEXT:{xm(this,n);break}}}onStartTag(n){this.skipNextNewLine=!1,this.currentToken=n,this._processStartTag(n),n.selfClosing&&!n.ackSelfClosing&&this._err(n,le.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(n){this.shouldProcessStartTagTokenInForeignContent(n)?XB(this,n):this._startTagOutsideForeignContent(n)}_startTagOutsideForeignContent(n){switch(this.insertionMode){case j.INITIAL:{wm(this,n);break}case j.BEFORE_HTML:{RU(this,n);break}case j.BEFORE_HEAD:{DU(this,n);break}case j.IN_HEAD:{lo(this,n);break}case j.IN_HEAD_NO_SCRIPT:{IU(this,n);break}case j.AFTER_HEAD:{PU(this,n);break}case j.IN_BODY:{aa(this,n);break}case j.IN_TABLE:{Yf(this,n);break}case j.IN_TABLE_TEXT:{xm(this,n);break}case j.IN_CAPTION:{OB(this,n);break}case j.IN_COLUMN_GROUP:{ax(this,n);break}case j.IN_TABLE_BODY:{q1(this,n);break}case j.IN_ROW:{Q1(this,n);break}case j.IN_CELL:{MB(this,n);break}case j.IN_SELECT:{B3(this,n);break}case j.IN_SELECT_IN_TABLE:{FB(this,n);break}case j.IN_TEMPLATE:{BB(this,n);break}case j.AFTER_BODY:{zB(this,n);break}case j.IN_FRAMESET:{jB(this,n);break}case j.AFTER_FRAMESET:{YB(this,n);break}case j.AFTER_AFTER_BODY:{qB(this,n);break}case j.AFTER_AFTER_FRAMESET:{QB(this,n);break}}}onEndTag(n){this.skipNextNewLine=!1,this.currentToken=n,this.currentNotInHTML?KB(this,n):this._endTagOutsideForeignContent(n)}_endTagOutsideForeignContent(n){switch(this.insertionMode){case j.INITIAL:{wm(this,n);break}case j.BEFORE_HTML:{NU(this,n);break}case j.BEFORE_HEAD:{OU(this,n);break}case j.IN_HEAD:{LU(this,n);break}case j.IN_HEAD_NO_SCRIPT:{MU(this,n);break}case j.AFTER_HEAD:{FU(this,n);break}case j.IN_BODY:{W1(this,n);break}case j.TEXT:{wB(this,n);break}case j.IN_TABLE:{Im(this,n);break}case j.IN_TABLE_TEXT:{xm(this,n);break}case j.IN_CAPTION:{LB(this,n);break}case j.IN_COLUMN_GROUP:{IB(this,n);break}case j.IN_TABLE_BODY:{Cw(this,n);break}case j.IN_ROW:{U3(this,n);break}case j.IN_CELL:{PB(this,n);break}case j.IN_SELECT:{H3(this,n);break}case j.IN_SELECT_IN_TABLE:{UB(this,n);break}case j.IN_TEMPLATE:{HB(this,n);break}case j.AFTER_BODY:{j3(this,n);break}case j.IN_FRAMESET:{VB(this,n);break}case j.AFTER_FRAMESET:{WB(this,n);break}case j.AFTER_AFTER_BODY:{E1(this,n);break}}}onEof(n){switch(this.insertionMode){case j.INITIAL:{wm(this,n);break}case j.BEFORE_HTML:{Am(this,n);break}case j.BEFORE_HEAD:{km(this,n);break}case j.IN_HEAD:{Rm(this,n);break}case j.IN_HEAD_NO_SCRIPT:{Nm(this,n);break}case j.AFTER_HEAD:{Dm(this,n);break}case j.IN_BODY:case j.IN_TABLE:case j.IN_CAPTION:case j.IN_COLUMN_GROUP:case j.IN_TABLE_BODY:case j.IN_ROW:case j.IN_CELL:case j.IN_SELECT:case j.IN_SELECT_IN_TABLE:{I3(this,n);break}case j.TEXT:{xB(this,n);break}case j.IN_TABLE_TEXT:{xm(this,n);break}case j.IN_TEMPLATE:{z3(this,n);break}case j.AFTER_BODY:case j.IN_FRAMESET:case j.AFTER_FRAMESET:case j.AFTER_AFTER_BODY:case j.AFTER_AFTER_FRAMESET:{rx(this,n);break}}}onWhitespaceCharacter(n){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,n.chars.charCodeAt(0)===M.LINE_FEED)){if(n.chars.length===1)return;n.chars=n.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(n);return}switch(this.insertionMode){case j.IN_HEAD:case j.IN_HEAD_NO_SCRIPT:case j.AFTER_HEAD:case j.TEXT:case j.IN_COLUMN_GROUP:case j.IN_SELECT:case j.IN_SELECT_IN_TABLE:case j.IN_FRAMESET:case j.AFTER_FRAMESET:{this._insertCharacters(n);break}case j.IN_BODY:case j.IN_CAPTION:case j.IN_CELL:case j.IN_TEMPLATE:case j.AFTER_BODY:case j.AFTER_AFTER_BODY:case j.AFTER_AFTER_FRAMESET:{R3(this,n);break}case j.IN_TABLE:case j.IN_TABLE_BODY:case j.IN_ROW:{GT(this,n);break}case j.IN_TABLE_TEXT:{M3(this,n);break}}}}function bU(e,n){let a=e.activeFormattingElements.getElementEntryInScopeWithTagName(n.tagName);return a?e.openElements.contains(a.element)?e.openElements.hasInScope(n.tagID)||(a=null):(e.activeFormattingElements.removeEntry(a),a=null):L3(e,n),a}function TU(e,n){let a=null,s=e.openElements.stackTop;for(;s>=0;s--){const f=e.openElements.items[s];if(f===n.element)break;e._isSpecialElement(f,e.openElements.tagIDs[s])&&(a=f)}return a||(e.openElements.shortenToLength(s<0?0:s),e.activeFormattingElements.removeEntry(n)),a}function wU(e,n,a){let s=n,f=e.openElements.getCommonAncestor(n);for(let p=0,d=f;d!==a;p++,d=f){f=e.openElements.getCommonAncestor(d);const g=e.activeFormattingElements.getElementEntry(d),E=g&&p>=yU;!g||E?(E&&e.activeFormattingElements.removeEntry(g),e.openElements.remove(d)):(d=xU(e,g),s===n&&(e.activeFormattingElements.bookmark=g),e.treeAdapter.detachNode(s),e.treeAdapter.appendChild(d,s),s=d)}return s}function xU(e,n){const a=e.treeAdapter.getNamespaceURI(n.element),s=e.treeAdapter.createElement(n.token.tagName,a,n.token.attrs);return e.openElements.replace(n.element,s),n.element=s,s}function SU(e,n,a){const s=e.treeAdapter.getTagName(n),f=Jf(s);if(e._isElementCausesFosterParenting(f))e._fosterParentElement(a);else{const p=e.treeAdapter.getNamespaceURI(n);f===y.TEMPLATE&&p===Te.HTML&&(n=e.treeAdapter.getTemplateContent(n)),e.treeAdapter.appendChild(n,a)}}function CU(e,n,a){const s=e.treeAdapter.getNamespaceURI(a.element),{token:f}=a,p=e.treeAdapter.createElement(f.tagName,s,f.attrs);e._adoptNodes(n,p),e.treeAdapter.appendChild(n,p),e.activeFormattingElements.insertElementAfterBookmark(p,f),e.activeFormattingElements.removeEntry(a),e.openElements.remove(a.element),e.openElements.insertAfter(n,p,f.tagID)}function nx(e,n){for(let a=0;a<vU;a++){const s=bU(e,n);if(!s)break;const f=TU(e,s);if(!f)break;e.activeFormattingElements.bookmark=s;const p=wU(e,f,s.element),d=e.openElements.getCommonAncestor(s.element);e.treeAdapter.detachNode(p),d&&SU(e,d,p),CU(e,f,s)}}function Sw(e,n){e._appendCommentNode(n,e.openElements.currentTmplContentOrNode)}function _U(e,n){e._appendCommentNode(n,e.openElements.items[0])}function AU(e,n){e._appendCommentNode(n,e.document)}function rx(e,n){if(e.stopped=!0,n.location){const a=e.fragmentContext?0:2;for(let s=e.openElements.stackTop;s>=a;s--)e._setEndLocation(e.openElements.items[s],n);if(!e.fragmentContext&&e.openElements.stackTop>=0){const s=e.openElements.items[0],f=e.treeAdapter.getNodeSourceCodeLocation(s);if(f&&!f.endTag&&(e._setEndLocation(s,n),e.openElements.stackTop>=1)){const p=e.openElements.items[1],d=e.treeAdapter.getNodeSourceCodeLocation(p);d&&!d.endTag&&e._setEndLocation(p,n)}}}}function kU(e,n){e._setDocumentType(n);const a=n.forceQuirks?Ai.QUIRKS:aU(n);rU(n)||e._err(n,le.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,a),e.insertionMode=j.BEFORE_HTML}function wm(e,n){e._err(n,le.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,Ai.QUIRKS),e.insertionMode=j.BEFORE_HTML,e._processToken(n)}function RU(e,n){n.tagID===y.HTML?(e._insertElement(n,Te.HTML),e.insertionMode=j.BEFORE_HEAD):Am(e,n)}function NU(e,n){const a=n.tagID;(a===y.HTML||a===y.HEAD||a===y.BODY||a===y.BR)&&Am(e,n)}function Am(e,n){e._insertFakeRootElement(),e.insertionMode=j.BEFORE_HEAD,e._processToken(n)}function DU(e,n){switch(n.tagID){case y.HTML:{aa(e,n);break}case y.HEAD:{e._insertElement(n,Te.HTML),e.headElement=e.openElements.current,e.insertionMode=j.IN_HEAD;break}default:km(e,n)}}function OU(e,n){const a=n.tagID;a===y.HEAD||a===y.BODY||a===y.HTML||a===y.BR?km(e,n):e._err(n,le.endTagWithoutMatchingOpenElement)}function km(e,n){e._insertFakeElement(re.HEAD,y.HEAD),e.headElement=e.openElements.current,e.insertionMode=j.IN_HEAD,e._processToken(n)}function lo(e,n){switch(n.tagID){case y.HTML:{aa(e,n);break}case y.BASE:case y.BASEFONT:case y.BGSOUND:case y.LINK:case y.META:{e._appendElement(n,Te.HTML),n.ackSelfClosing=!0;break}case y.TITLE:{e._switchToTextParsing(n,Wn.RCDATA);break}case y.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(n,Wn.RAWTEXT):(e._insertElement(n,Te.HTML),e.insertionMode=j.IN_HEAD_NO_SCRIPT);break}case y.NOFRAMES:case y.STYLE:{e._switchToTextParsing(n,Wn.RAWTEXT);break}case y.SCRIPT:{e._switchToTextParsing(n,Wn.SCRIPT_DATA);break}case y.TEMPLATE:{e._insertTemplate(n),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=j.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(j.IN_TEMPLATE);break}case y.HEAD:{e._err(n,le.misplacedStartTagForHeadElement);break}default:Rm(e,n)}}function LU(e,n){switch(n.tagID){case y.HEAD:{e.openElements.pop(),e.insertionMode=j.AFTER_HEAD;break}case y.BODY:case y.BR:case y.HTML:{Rm(e,n);break}case y.TEMPLATE:{Nc(e,n);break}default:e._err(n,le.endTagWithoutMatchingOpenElement)}}function Nc(e,n){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==y.TEMPLATE&&e._err(n,le.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(y.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(n,le.endTagWithoutMatchingOpenElement)}function Rm(e,n){e.openElements.pop(),e.insertionMode=j.AFTER_HEAD,e._processToken(n)}function IU(e,n){switch(n.tagID){case y.HTML:{aa(e,n);break}case y.BASEFONT:case y.BGSOUND:case y.HEAD:case y.LINK:case y.META:case y.NOFRAMES:case y.STYLE:{lo(e,n);break}case y.NOSCRIPT:{e._err(n,le.nestedNoscriptInHead);break}default:Nm(e,n)}}function MU(e,n){switch(n.tagID){case y.NOSCRIPT:{e.openElements.pop(),e.insertionMode=j.IN_HEAD;break}case y.BR:{Nm(e,n);break}default:e._err(n,le.endTagWithoutMatchingOpenElement)}}function Nm(e,n){const a=n.type===kt.EOF?le.openElementsLeftAfterEof:le.disallowedContentInNoscriptInHead;e._err(n,a),e.openElements.pop(),e.insertionMode=j.IN_HEAD,e._processToken(n)}function PU(e,n){switch(n.tagID){case y.HTML:{aa(e,n);break}case y.BODY:{e._insertElement(n,Te.HTML),e.framesetOk=!1,e.insertionMode=j.IN_BODY;break}case y.FRAMESET:{e._insertElement(n,Te.HTML),e.insertionMode=j.IN_FRAMESET;break}case y.BASE:case y.BASEFONT:case y.BGSOUND:case y.LINK:case y.META:case y.NOFRAMES:case y.SCRIPT:case y.STYLE:case y.TEMPLATE:case y.TITLE:{e._err(n,le.abandonedHeadElementChild),e.openElements.push(e.headElement,y.HEAD),lo(e,n),e.openElements.remove(e.headElement);break}case y.HEAD:{e._err(n,le.misplacedStartTagForHeadElement);break}default:Dm(e,n)}}function FU(e,n){switch(n.tagID){case y.BODY:case y.HTML:case y.BR:{Dm(e,n);break}case y.TEMPLATE:{Nc(e,n);break}default:e._err(n,le.endTagWithoutMatchingOpenElement)}}function Dm(e,n){e._insertFakeElement(re.BODY,y.BODY),e.insertionMode=j.IN_BODY,Y1(e,n)}function Y1(e,n){switch(n.type){case kt.CHARACTER:{N3(e,n);break}case kt.WHITESPACE_CHARACTER:{R3(e,n);break}case kt.COMMENT:{Sw(e,n);break}case kt.START_TAG:{aa(e,n);break}case kt.END_TAG:{W1(e,n);break}case kt.EOF:{I3(e,n);break}}}function R3(e,n){e._reconstructActiveFormattingElements(),e._insertCharacters(n)}function N3(e,n){e._reconstructActiveFormattingElements(),e._insertCharacters(n),e.framesetOk=!1}function UU(e,n){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],n.attrs)}function BU(e,n){const a=e.openElements.tryPeekProperlyNestedBodyElement();a&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(a,n.attrs))}function HU(e,n){const a=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&a&&(e.treeAdapter.detachNode(a),e.openElements.popAllUpToHtmlElement(),e._insertElement(n,Te.HTML),e.insertionMode=j.IN_FRAMESET)}function zU(e,n){e.openElements.hasInButtonScope(y.P)&&e._closePElement(),e._insertElement(n,Te.HTML)}function jU(e,n){e.openElements.hasInButtonScope(y.P)&&e._closePElement(),xw.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(n,Te.HTML)}function VU(e,n){e.openElements.hasInButtonScope(y.P)&&e._closePElement(),e._insertElement(n,Te.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function YU(e,n){const a=e.openElements.tmplCount>0;(!e.formElement||a)&&(e.openElements.hasInButtonScope(y.P)&&e._closePElement(),e._insertElement(n,Te.HTML),a||(e.formElement=e.openElements.current))}function WU(e,n){e.framesetOk=!1;const a=n.tagID;for(let s=e.openElements.stackTop;s>=0;s--){const f=e.openElements.tagIDs[s];if(a===y.LI&&f===y.LI||(a===y.DD||a===y.DT)&&(f===y.DD||f===y.DT)){e.openElements.generateImpliedEndTagsWithExclusion(f),e.openElements.popUntilTagNamePopped(f);break}if(f!==y.ADDRESS&&f!==y.DIV&&f!==y.P&&e._isSpecialElement(e.openElements.items[s],f))break}e.openElements.hasInButtonScope(y.P)&&e._closePElement(),e._insertElement(n,Te.HTML)}function qU(e,n){e.openElements.hasInButtonScope(y.P)&&e._closePElement(),e._insertElement(n,Te.HTML),e.tokenizer.state=Wn.PLAINTEXT}function QU(e,n){e.openElements.hasInScope(y.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(y.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(n,Te.HTML),e.framesetOk=!1}function $U(e,n){const a=e.activeFormattingElements.getElementEntryInScopeWithTagName(re.A);a&&(nx(e,n),e.openElements.remove(a.element),e.activeFormattingElements.removeEntry(a)),e._reconstructActiveFormattingElements(),e._insertElement(n,Te.HTML),e.activeFormattingElements.pushElement(e.openElements.current,n)}function GU(e,n){e._reconstructActiveFormattingElements(),e._insertElement(n,Te.HTML),e.activeFormattingElements.pushElement(e.openElements.current,n)}function XU(e,n){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(y.NOBR)&&(nx(e,n),e._reconstructActiveFormattingElements()),e._insertElement(n,Te.HTML),e.activeFormattingElements.pushElement(e.openElements.current,n)}function KU(e,n){e._reconstructActiveFormattingElements(),e._insertElement(n,Te.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function ZU(e,n){e.treeAdapter.getDocumentMode(e.document)!==Ai.QUIRKS&&e.openElements.hasInButtonScope(y.P)&&e._closePElement(),e._insertElement(n,Te.HTML),e.framesetOk=!1,e.insertionMode=j.IN_TABLE}function D3(e,n){e._reconstructActiveFormattingElements(),e._appendElement(n,Te.HTML),e.framesetOk=!1,n.ackSelfClosing=!0}function O3(e){const n=v3(e,Cc.TYPE);return n!=null&&n.toLowerCase()===gU}function JU(e,n){e._reconstructActiveFormattingElements(),e._appendElement(n,Te.HTML),O3(n)||(e.framesetOk=!1),n.ackSelfClosing=!0}function eB(e,n){e._appendElement(n,Te.HTML),n.ackSelfClosing=!0}function tB(e,n){e.openElements.hasInButtonScope(y.P)&&e._closePElement(),e._appendElement(n,Te.HTML),e.framesetOk=!1,n.ackSelfClosing=!0}function nB(e,n){n.tagName=re.IMG,n.tagID=y.IMG,D3(e,n)}function rB(e,n){e._insertElement(n,Te.HTML),e.skipNextNewLine=!0,e.tokenizer.state=Wn.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=j.TEXT}function aB(e,n){e.openElements.hasInButtonScope(y.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(n,Wn.RAWTEXT)}function iB(e,n){e.framesetOk=!1,e._switchToTextParsing(n,Wn.RAWTEXT)}function mA(e,n){e._switchToTextParsing(n,Wn.RAWTEXT)}function oB(e,n){e._reconstructActiveFormattingElements(),e._insertElement(n,Te.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===j.IN_TABLE||e.insertionMode===j.IN_CAPTION||e.insertionMode===j.IN_TABLE_BODY||e.insertionMode===j.IN_ROW||e.insertionMode===j.IN_CELL?j.IN_SELECT_IN_TABLE:j.IN_SELECT}function uB(e,n){e.openElements.currentTagId===y.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(n,Te.HTML)}function sB(e,n){e.openElements.hasInScope(y.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(n,Te.HTML)}function lB(e,n){e.openElements.hasInScope(y.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(y.RTC),e._insertElement(n,Te.HTML)}function cB(e,n){e._reconstructActiveFormattingElements(),_3(n),tx(n),n.selfClosing?e._appendElement(n,Te.MATHML):e._insertElement(n,Te.MATHML),n.ackSelfClosing=!0}function dB(e,n){e._reconstructActiveFormattingElements(),A3(n),tx(n),n.selfClosing?e._appendElement(n,Te.SVG):e._insertElement(n,Te.SVG),n.ackSelfClosing=!0}function gA(e,n){e._reconstructActiveFormattingElements(),e._insertElement(n,Te.HTML)}function aa(e,n){switch(n.tagID){case y.I:case y.S:case y.B:case y.U:case y.EM:case y.TT:case y.BIG:case y.CODE:case y.FONT:case y.SMALL:case y.STRIKE:case y.STRONG:{GU(e,n);break}case y.A:{$U(e,n);break}case y.H1:case y.H2:case y.H3:case y.H4:case y.H5:case y.H6:{jU(e,n);break}case y.P:case y.DL:case y.OL:case y.UL:case y.DIV:case y.DIR:case y.NAV:case y.MAIN:case y.MENU:case y.ASIDE:case y.CENTER:case y.FIGURE:case y.FOOTER:case y.HEADER:case y.HGROUP:case y.DIALOG:case y.DETAILS:case y.ADDRESS:case y.ARTICLE:case y.SEARCH:case y.SECTION:case y.SUMMARY:case y.FIELDSET:case y.BLOCKQUOTE:case y.FIGCAPTION:{zU(e,n);break}case y.LI:case y.DD:case y.DT:{WU(e,n);break}case y.BR:case y.IMG:case y.WBR:case y.AREA:case y.EMBED:case y.KEYGEN:{D3(e,n);break}case y.HR:{tB(e,n);break}case y.RB:case y.RTC:{sB(e,n);break}case y.RT:case y.RP:{lB(e,n);break}case y.PRE:case y.LISTING:{VU(e,n);break}case y.XMP:{aB(e,n);break}case y.SVG:{dB(e,n);break}case y.HTML:{UU(e,n);break}case y.BASE:case y.LINK:case y.META:case y.STYLE:case y.TITLE:case y.SCRIPT:case y.BGSOUND:case y.BASEFONT:case y.TEMPLATE:{lo(e,n);break}case y.BODY:{BU(e,n);break}case y.FORM:{YU(e,n);break}case y.NOBR:{XU(e,n);break}case y.MATH:{cB(e,n);break}case y.TABLE:{ZU(e,n);break}case y.INPUT:{JU(e,n);break}case y.PARAM:case y.TRACK:case y.SOURCE:{eB(e,n);break}case y.IMAGE:{nB(e,n);break}case y.BUTTON:{QU(e,n);break}case y.APPLET:case y.OBJECT:case y.MARQUEE:{KU(e,n);break}case y.IFRAME:{iB(e,n);break}case y.SELECT:{oB(e,n);break}case y.OPTION:case y.OPTGROUP:{uB(e,n);break}case y.NOEMBED:case y.NOFRAMES:{mA(e,n);break}case y.FRAMESET:{HU(e,n);break}case y.TEXTAREA:{rB(e,n);break}case y.NOSCRIPT:{e.options.scriptingEnabled?mA(e,n):gA(e,n);break}case y.PLAINTEXT:{qU(e,n);break}case y.COL:case y.TH:case y.TD:case y.TR:case y.HEAD:case y.FRAME:case y.TBODY:case y.TFOOT:case y.THEAD:case y.CAPTION:case y.COLGROUP:break;default:gA(e,n)}}function fB(e,n){if(e.openElements.hasInScope(y.BODY)&&(e.insertionMode=j.AFTER_BODY,e.options.sourceCodeLocationInfo)){const a=e.openElements.tryPeekProperlyNestedBodyElement();a&&e._setEndLocation(a,n)}}function hB(e,n){e.openElements.hasInScope(y.BODY)&&(e.insertionMode=j.AFTER_BODY,j3(e,n))}function pB(e,n){const a=n.tagID;e.openElements.hasInScope(a)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(a))}function mB(e){const n=e.openElements.tmplCount>0,{formElement:a}=e;n||(e.formElement=null),(a||n)&&e.openElements.hasInScope(y.FORM)&&(e.openElements.generateImpliedEndTags(),n?e.openElements.popUntilTagNamePopped(y.FORM):a&&e.openElements.remove(a))}function gB(e){e.openElements.hasInButtonScope(y.P)||e._insertFakeElement(re.P,y.P),e._closePElement()}function vB(e){e.openElements.hasInListItemScope(y.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(y.LI),e.openElements.popUntilTagNamePopped(y.LI))}function yB(e,n){const a=n.tagID;e.openElements.hasInScope(a)&&(e.openElements.generateImpliedEndTagsWithExclusion(a),e.openElements.popUntilTagNamePopped(a))}function EB(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function bB(e,n){const a=n.tagID;e.openElements.hasInScope(a)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(a),e.activeFormattingElements.clearToLastMarker())}function TB(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(re.BR,y.BR),e.openElements.pop(),e.framesetOk=!1}function L3(e,n){const a=n.tagName,s=n.tagID;for(let f=e.openElements.stackTop;f>0;f--){const p=e.openElements.items[f],d=e.openElements.tagIDs[f];if(s===d&&(s!==y.UNKNOWN||e.treeAdapter.getTagName(p)===a)){e.openElements.generateImpliedEndTagsWithExclusion(s),e.openElements.stackTop>=f&&e.openElements.shortenToLength(f);break}if(e._isSpecialElement(p,d))break}}function W1(e,n){switch(n.tagID){case y.A:case y.B:case y.I:case y.S:case y.U:case y.EM:case y.TT:case y.BIG:case y.CODE:case y.FONT:case y.NOBR:case y.SMALL:case y.STRIKE:case y.STRONG:{nx(e,n);break}case y.P:{gB(e);break}case y.DL:case y.UL:case y.OL:case y.DIR:case y.DIV:case y.NAV:case y.PRE:case y.MAIN:case y.MENU:case y.ASIDE:case y.BUTTON:case y.CENTER:case y.FIGURE:case y.FOOTER:case y.HEADER:case y.HGROUP:case y.DIALOG:case y.ADDRESS:case y.ARTICLE:case y.DETAILS:case y.SEARCH:case y.SECTION:case y.SUMMARY:case y.LISTING:case y.FIELDSET:case y.BLOCKQUOTE:case y.FIGCAPTION:{pB(e,n);break}case y.LI:{vB(e);break}case y.DD:case y.DT:{yB(e,n);break}case y.H1:case y.H2:case y.H3:case y.H4:case y.H5:case y.H6:{EB(e);break}case y.BR:{TB(e);break}case y.BODY:{fB(e,n);break}case y.HTML:{hB(e,n);break}case y.FORM:{mB(e);break}case y.APPLET:case y.OBJECT:case y.MARQUEE:{bB(e,n);break}case y.TEMPLATE:{Nc(e,n);break}default:L3(e,n)}}function I3(e,n){e.tmplInsertionModeStack.length>0?z3(e,n):rx(e,n)}function wB(e,n){var a;n.tagID===y.SCRIPT&&((a=e.scriptHandler)===null||a===void 0||a.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function xB(e,n){e._err(n,le.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(n)}function GT(e,n){if(k3.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=j.IN_TABLE_TEXT,n.type){case kt.CHARACTER:{P3(e,n);break}case kt.WHITESPACE_CHARACTER:{M3(e,n);break}}else Vm(e,n)}function SB(e,n){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(n,Te.HTML),e.insertionMode=j.IN_CAPTION}function CB(e,n){e.openElements.clearBackToTableContext(),e._insertElement(n,Te.HTML),e.insertionMode=j.IN_COLUMN_GROUP}function _B(e,n){e.openElements.clearBackToTableContext(),e._insertFakeElement(re.COLGROUP,y.COLGROUP),e.insertionMode=j.IN_COLUMN_GROUP,ax(e,n)}function AB(e,n){e.openElements.clearBackToTableContext(),e._insertElement(n,Te.HTML),e.insertionMode=j.IN_TABLE_BODY}function kB(e,n){e.openElements.clearBackToTableContext(),e._insertFakeElement(re.TBODY,y.TBODY),e.insertionMode=j.IN_TABLE_BODY,q1(e,n)}function RB(e,n){e.openElements.hasInTableScope(y.TABLE)&&(e.openElements.popUntilTagNamePopped(y.TABLE),e._resetInsertionMode(),e._processStartTag(n))}function NB(e,n){O3(n)?e._appendElement(n,Te.HTML):Vm(e,n),n.ackSelfClosing=!0}function DB(e,n){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(n,Te.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function Yf(e,n){switch(n.tagID){case y.TD:case y.TH:case y.TR:{kB(e,n);break}case y.STYLE:case y.SCRIPT:case y.TEMPLATE:{lo(e,n);break}case y.COL:{_B(e,n);break}case y.FORM:{DB(e,n);break}case y.TABLE:{RB(e,n);break}case y.TBODY:case y.TFOOT:case y.THEAD:{AB(e,n);break}case y.INPUT:{NB(e,n);break}case y.CAPTION:{SB(e,n);break}case y.COLGROUP:{CB(e,n);break}default:Vm(e,n)}}function Im(e,n){switch(n.tagID){case y.TABLE:{e.openElements.hasInTableScope(y.TABLE)&&(e.openElements.popUntilTagNamePopped(y.TABLE),e._resetInsertionMode());break}case y.TEMPLATE:{Nc(e,n);break}case y.BODY:case y.CAPTION:case y.COL:case y.COLGROUP:case y.HTML:case y.TBODY:case y.TD:case y.TFOOT:case y.TH:case y.THEAD:case y.TR:break;default:Vm(e,n)}}function Vm(e,n){const a=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,Y1(e,n),e.fosterParentingEnabled=a}function M3(e,n){e.pendingCharacterTokens.push(n)}function P3(e,n){e.pendingCharacterTokens.push(n),e.hasNonWhitespacePendingCharacterToken=!0}function xm(e,n){let a=0;if(e.hasNonWhitespacePendingCharacterToken)for(;a<e.pendingCharacterTokens.length;a++)Vm(e,e.pendingCharacterTokens[a]);else for(;a<e.pendingCharacterTokens.length;a++)e._insertCharacters(e.pendingCharacterTokens[a]);e.insertionMode=e.originalInsertionMode,e._processToken(n)}const F3=new Set([y.CAPTION,y.COL,y.COLGROUP,y.TBODY,y.TD,y.TFOOT,y.TH,y.THEAD,y.TR]);function OB(e,n){const a=n.tagID;F3.has(a)?e.openElements.hasInTableScope(y.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(y.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=j.IN_TABLE,Yf(e,n)):aa(e,n)}function LB(e,n){const a=n.tagID;switch(a){case y.CAPTION:case y.TABLE:{e.openElements.hasInTableScope(y.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(y.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=j.IN_TABLE,a===y.TABLE&&Im(e,n));break}case y.BODY:case y.COL:case y.COLGROUP:case y.HTML:case y.TBODY:case y.TD:case y.TFOOT:case y.TH:case y.THEAD:case y.TR:break;default:W1(e,n)}}function ax(e,n){switch(n.tagID){case y.HTML:{aa(e,n);break}case y.COL:{e._appendElement(n,Te.HTML),n.ackSelfClosing=!0;break}case y.TEMPLATE:{lo(e,n);break}default:R1(e,n)}}function IB(e,n){switch(n.tagID){case y.COLGROUP:{e.openElements.currentTagId===y.COLGROUP&&(e.openElements.pop(),e.insertionMode=j.IN_TABLE);break}case y.TEMPLATE:{Nc(e,n);break}case y.COL:break;default:R1(e,n)}}function R1(e,n){e.openElements.currentTagId===y.COLGROUP&&(e.openElements.pop(),e.insertionMode=j.IN_TABLE,e._processToken(n))}function q1(e,n){switch(n.tagID){case y.TR:{e.openElements.clearBackToTableBodyContext(),e._insertElement(n,Te.HTML),e.insertionMode=j.IN_ROW;break}case y.TH:case y.TD:{e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(re.TR,y.TR),e.insertionMode=j.IN_ROW,Q1(e,n);break}case y.CAPTION:case y.COL:case y.COLGROUP:case y.TBODY:case y.TFOOT:case y.THEAD:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=j.IN_TABLE,Yf(e,n));break}default:Yf(e,n)}}function Cw(e,n){const a=n.tagID;switch(n.tagID){case y.TBODY:case y.TFOOT:case y.THEAD:{e.openElements.hasInTableScope(a)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=j.IN_TABLE);break}case y.TABLE:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=j.IN_TABLE,Im(e,n));break}case y.BODY:case y.CAPTION:case y.COL:case y.COLGROUP:case y.HTML:case y.TD:case y.TH:case y.TR:break;default:Im(e,n)}}function Q1(e,n){switch(n.tagID){case y.TH:case y.TD:{e.openElements.clearBackToTableRowContext(),e._insertElement(n,Te.HTML),e.insertionMode=j.IN_CELL,e.activeFormattingElements.insertMarker();break}case y.CAPTION:case y.COL:case y.COLGROUP:case y.TBODY:case y.TFOOT:case y.THEAD:case y.TR:{e.openElements.hasInTableScope(y.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=j.IN_TABLE_BODY,q1(e,n));break}default:Yf(e,n)}}function U3(e,n){switch(n.tagID){case y.TR:{e.openElements.hasInTableScope(y.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=j.IN_TABLE_BODY);break}case y.TABLE:{e.openElements.hasInTableScope(y.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=j.IN_TABLE_BODY,Cw(e,n));break}case y.TBODY:case y.TFOOT:case y.THEAD:{(e.openElements.hasInTableScope(n.tagID)||e.openElements.hasInTableScope(y.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=j.IN_TABLE_BODY,Cw(e,n));break}case y.BODY:case y.CAPTION:case y.COL:case y.COLGROUP:case y.HTML:case y.TD:case y.TH:break;default:Im(e,n)}}function MB(e,n){const a=n.tagID;F3.has(a)?(e.openElements.hasInTableScope(y.TD)||e.openElements.hasInTableScope(y.TH))&&(e._closeTableCell(),Q1(e,n)):aa(e,n)}function PB(e,n){const a=n.tagID;switch(a){case y.TD:case y.TH:{e.openElements.hasInTableScope(a)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(a),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=j.IN_ROW);break}case y.TABLE:case y.TBODY:case y.TFOOT:case y.THEAD:case y.TR:{e.openElements.hasInTableScope(a)&&(e._closeTableCell(),U3(e,n));break}case y.BODY:case y.CAPTION:case y.COL:case y.COLGROUP:case y.HTML:break;default:W1(e,n)}}function B3(e,n){switch(n.tagID){case y.HTML:{aa(e,n);break}case y.OPTION:{e.openElements.currentTagId===y.OPTION&&e.openElements.pop(),e._insertElement(n,Te.HTML);break}case y.OPTGROUP:{e.openElements.currentTagId===y.OPTION&&e.openElements.pop(),e.openElements.currentTagId===y.OPTGROUP&&e.openElements.pop(),e._insertElement(n,Te.HTML);break}case y.HR:{e.openElements.currentTagId===y.OPTION&&e.openElements.pop(),e.openElements.currentTagId===y.OPTGROUP&&e.openElements.pop(),e._appendElement(n,Te.HTML),n.ackSelfClosing=!0;break}case y.INPUT:case y.KEYGEN:case y.TEXTAREA:case y.SELECT:{e.openElements.hasInSelectScope(y.SELECT)&&(e.openElements.popUntilTagNamePopped(y.SELECT),e._resetInsertionMode(),n.tagID!==y.SELECT&&e._processStartTag(n));break}case y.SCRIPT:case y.TEMPLATE:{lo(e,n);break}}}function H3(e,n){switch(n.tagID){case y.OPTGROUP:{e.openElements.stackTop>0&&e.openElements.currentTagId===y.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===y.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===y.OPTGROUP&&e.openElements.pop();break}case y.OPTION:{e.openElements.currentTagId===y.OPTION&&e.openElements.pop();break}case y.SELECT:{e.openElements.hasInSelectScope(y.SELECT)&&(e.openElements.popUntilTagNamePopped(y.SELECT),e._resetInsertionMode());break}case y.TEMPLATE:{Nc(e,n);break}}}function FB(e,n){const a=n.tagID;a===y.CAPTION||a===y.TABLE||a===y.TBODY||a===y.TFOOT||a===y.THEAD||a===y.TR||a===y.TD||a===y.TH?(e.openElements.popUntilTagNamePopped(y.SELECT),e._resetInsertionMode(),e._processStartTag(n)):B3(e,n)}function UB(e,n){const a=n.tagID;a===y.CAPTION||a===y.TABLE||a===y.TBODY||a===y.TFOOT||a===y.THEAD||a===y.TR||a===y.TD||a===y.TH?e.openElements.hasInTableScope(a)&&(e.openElements.popUntilTagNamePopped(y.SELECT),e._resetInsertionMode(),e.onEndTag(n)):H3(e,n)}function BB(e,n){switch(n.tagID){case y.BASE:case y.BASEFONT:case y.BGSOUND:case y.LINK:case y.META:case y.NOFRAMES:case y.SCRIPT:case y.STYLE:case y.TEMPLATE:case y.TITLE:{lo(e,n);break}case y.CAPTION:case y.COLGROUP:case y.TBODY:case y.TFOOT:case y.THEAD:{e.tmplInsertionModeStack[0]=j.IN_TABLE,e.insertionMode=j.IN_TABLE,Yf(e,n);break}case y.COL:{e.tmplInsertionModeStack[0]=j.IN_COLUMN_GROUP,e.insertionMode=j.IN_COLUMN_GROUP,ax(e,n);break}case y.TR:{e.tmplInsertionModeStack[0]=j.IN_TABLE_BODY,e.insertionMode=j.IN_TABLE_BODY,q1(e,n);break}case y.TD:case y.TH:{e.tmplInsertionModeStack[0]=j.IN_ROW,e.insertionMode=j.IN_ROW,Q1(e,n);break}default:e.tmplInsertionModeStack[0]=j.IN_BODY,e.insertionMode=j.IN_BODY,aa(e,n)}}function HB(e,n){n.tagID===y.TEMPLATE&&Nc(e,n)}function z3(e,n){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(y.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(n)):rx(e,n)}function zB(e,n){n.tagID===y.HTML?aa(e,n):N1(e,n)}function j3(e,n){var a;if(n.tagID===y.HTML){if(e.fragmentContext||(e.insertionMode=j.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===y.HTML){e._setEndLocation(e.openElements.items[0],n);const s=e.openElements.items[1];s&&!(!((a=e.treeAdapter.getNodeSourceCodeLocation(s))===null||a===void 0)&&a.endTag)&&e._setEndLocation(s,n)}}else N1(e,n)}function N1(e,n){e.insertionMode=j.IN_BODY,Y1(e,n)}function jB(e,n){switch(n.tagID){case y.HTML:{aa(e,n);break}case y.FRAMESET:{e._insertElement(n,Te.HTML);break}case y.FRAME:{e._appendElement(n,Te.HTML),n.ackSelfClosing=!0;break}case y.NOFRAMES:{lo(e,n);break}}}function VB(e,n){n.tagID===y.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==y.FRAMESET&&(e.insertionMode=j.AFTER_FRAMESET))}function YB(e,n){switch(n.tagID){case y.HTML:{aa(e,n);break}case y.NOFRAMES:{lo(e,n);break}}}function WB(e,n){n.tagID===y.HTML&&(e.insertionMode=j.AFTER_AFTER_FRAMESET)}function qB(e,n){n.tagID===y.HTML?aa(e,n):E1(e,n)}function E1(e,n){e.insertionMode=j.IN_BODY,Y1(e,n)}function QB(e,n){switch(n.tagID){case y.HTML:{aa(e,n);break}case y.NOFRAMES:{lo(e,n);break}}}function $B(e,n){n.chars=xn,e._insertCharacters(n)}function GB(e,n){e._insertCharacters(n),e.framesetOk=!1}function V3(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==Te.HTML&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function XB(e,n){if(dU(n))V3(e),e._startTagOutsideForeignContent(n);else{const a=e._getAdjustedCurrentElement(),s=e.treeAdapter.getNamespaceURI(a);s===Te.MATHML?_3(n):s===Te.SVG&&(fU(n),A3(n)),tx(n),n.selfClosing?e._appendElement(n,s):e._insertElement(n,s),n.ackSelfClosing=!0}}function KB(e,n){if(n.tagID===y.P||n.tagID===y.BR){V3(e),e._endTagOutsideForeignContent(n);return}for(let a=e.openElements.stackTop;a>0;a--){const s=e.openElements.items[a];if(e.treeAdapter.getNamespaceURI(s)===Te.HTML){e._endTagOutsideForeignContent(n);break}const f=e.treeAdapter.getTagName(s);if(f.toLowerCase()===n.tagName){n.tagName=f,e.openElements.shortenToLength(a);break}}}re.AREA,re.BASE,re.BASEFONT,re.BGSOUND,re.BR,re.COL,re.EMBED,re.FRAME,re.HR,re.IMG,re.INPUT,re.KEYGEN,re.LINK,re.META,re.PARAM,re.SOURCE,re.TRACK,re.WBR;const ZB=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,JB=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),vA={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function Y3(e,n){const a=lH(e),s=uk("type",{handlers:{root:eH,element:tH,text:nH,comment:q3,doctype:rH,raw:iH},unknown:oH}),f={parser:a?new pA(vA):pA.getFragmentParser(void 0,vA),handle(g){s(g,f)},stitches:!1,options:n||{}};s(e,f),eh(f,Yo());const p=a?f.parser.document:f.parser.getFragment(),d=c7(p,{file:f.options.file});return f.stitches&&B1(d,"comment",function(g,E,T){const C=g;if(C.value.stitch&&T&&E!==void 0){const S=T.children;return S[E]=C.value.stitch,E}}),d.type==="root"&&d.children.length===1&&d.children[0].type===e.type?d.children[0]:d}function W3(e,n){let a=-1;if(e)for(;++a<e.length;)n.handle(e[a])}function eH(e,n){W3(e.children,n)}function tH(e,n){uH(e,n),W3(e.children,n),sH(e,n)}function nH(e,n){n.parser.tokenizer.state>4&&(n.parser.tokenizer.state=0);const a={type:kt.CHARACTER,chars:e.value,location:Ym(e)};eh(n,Yo(e)),n.parser.currentToken=a,n.parser._processToken(n.parser.currentToken)}function rH(e,n){const a={type:kt.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:Ym(e)};eh(n,Yo(e)),n.parser.currentToken=a,n.parser._processToken(n.parser.currentToken)}function aH(e,n){n.stitches=!0;const a=cH(e);if("children"in e&&"children"in a){const s=Y3({type:"root",children:e.children},n.options);a.children=s.children}q3({type:"comment",value:{stitch:a}},n)}function q3(e,n){const a=e.value,s={type:kt.COMMENT,data:a,location:Ym(e)};eh(n,Yo(e)),n.parser.currentToken=s,n.parser._processToken(n.parser.currentToken)}function iH(e,n){if(n.parser.tokenizer.preprocessor.html="",n.parser.tokenizer.preprocessor.pos=-1,n.parser.tokenizer.preprocessor.lastGapPos=-2,n.parser.tokenizer.preprocessor.gapStack=[],n.parser.tokenizer.preprocessor.skipNextNewLine=!1,n.parser.tokenizer.preprocessor.lastChunkWritten=!1,n.parser.tokenizer.preprocessor.endOfChunkHit=!1,n.parser.tokenizer.preprocessor.isEol=!1,Q3(n,Yo(e)),n.parser.tokenizer.write(n.options.tagfilter?e.value.replace(ZB,"<$1$2"):e.value,!1),n.parser.tokenizer._runParsingLoop(),n.parser.tokenizer.state===72||n.parser.tokenizer.state===78){n.parser.tokenizer.preprocessor.lastChunkWritten=!0;const a=n.parser.tokenizer._consume();n.parser.tokenizer._callState(a)}}function oH(e,n){const a=e;if(n.options.passThrough&&n.options.passThrough.includes(a.type))aH(a,n);else{let s="";throw JB.has(a.type)&&(s=". 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 `"+a.type+"` node"+s)}}function eh(e,n){Q3(e,n);const a=e.parser.tokenizer.currentCharacterToken;a&&a.location&&(a.location.endLine=e.parser.tokenizer.preprocessor.line,a.location.endCol=e.parser.tokenizer.preprocessor.col+1,a.location.endOffset=e.parser.tokenizer.preprocessor.offset+1,e.parser.currentToken=a,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=Wn.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 Q3(e,n){if(n&&n.offset!==void 0){const a={startLine:n.line,startCol:n.column,startOffset:n.offset,endLine:-1,endCol:-1,endOffset:-1};e.parser.tokenizer.preprocessor.lineStartPos=-n.column+1,e.parser.tokenizer.preprocessor.droppedBufferSize=n.offset,e.parser.tokenizer.preprocessor.line=n.line,e.parser.tokenizer.currentLocation=a}}function uH(e,n){const a=e.tagName.toLowerCase();if(n.parser.tokenizer.state===Wn.PLAINTEXT)return;eh(n,Yo(e));const s=n.parser.openElements.current;let f="namespaceURI"in s?s.namespaceURI:Sc.html;f===Sc.html&&a==="svg"&&(f=Sc.svg);const p=m7({...e,children:[]},{space:f===Sc.svg?"svg":"html"}),d={type:kt.START_TAG,tagName:a,tagID:Jf(a),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in p?p.attrs:[],location:Ym(e)};n.parser.currentToken=d,n.parser._processToken(n.parser.currentToken),n.parser.tokenizer.lastStartTagName=a}function sH(e,n){const a=e.tagName.toLowerCase();if(!n.parser.tokenizer.inForeignNode&&x7.includes(a)||n.parser.tokenizer.state===Wn.PLAINTEXT)return;eh(n,j1(e));const s={type:kt.END_TAG,tagName:a,tagID:Jf(a),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:Ym(e)};n.parser.currentToken=s,n.parser._processToken(n.parser.currentToken),a===n.parser.tokenizer.lastStartTagName&&(n.parser.tokenizer.state===Wn.RCDATA||n.parser.tokenizer.state===Wn.RAWTEXT||n.parser.tokenizer.state===Wn.SCRIPT_DATA)&&(n.parser.tokenizer.state=Wn.DATA)}function lH(e){const n=e.type==="root"?e.children[0]:e;return!!(n&&(n.type==="doctype"||n.type==="element"&&n.tagName.toLowerCase()==="html"))}function Ym(e){const n=Yo(e)||{line:void 0,column:void 0,offset:void 0},a=j1(e)||{line:void 0,column:void 0,offset:void 0};return{startLine:n.line,startCol:n.column,startOffset:n.offset,endLine:a.line,endCol:a.column,endOffset:a.offset}}function cH(e){return"children"in e?Vf({...e,children:[]}):Vf(e)}function dH(e){return function(n,a){return Y3(n,{...e,file:a})}}function $3({attachment:e}){const{name:n,size:a,type:s,url:f}=e,p=s.startsWith("image/"),d=s.startsWith("video/"),g=s.startsWith("audio/");return z.jsxs("div",{className:"size-fit gap-2 border shrink-0 rounded-xl overflow-hidden",children:[p&&z.jsx("img",{loading:"lazy",src:f,className:"object-cover size-16"}),d&&z.jsxs("video",{controls:!0,children:[z.jsx("source",{src:f,type:s}),"Your browser does not support the video tag."]}),g&&z.jsxs("audio",{controls:!0,className:"w-full mt-2 rounded-md border",children:[z.jsx("source",{src:f,type:s}),"Your browser does not support the audio tag."]}),!p&&!d&&!g&&z.jsxs("div",{className:"flex items-center gap-2 p-2",children:[z.jsx("a",{href:f,target:"_blank",rel:"noopener noreferrer",className:"text-blue-500 line-clamp-2 underline hover:text-blue-600",children:n}),z.jsxs("span",{className:"text-sm text-gray-500 whitespace-nowrap",children:[(a/1024).toFixed(2)," KB"]})]})]})}function fH({data:e,id:n,type:a,attachments:s}){return z.jsxs("div",{children:[z.jsx("div",{className:"gap-0.5 flex flex-row flex-wrap items-center justify-start",children:s==null?void 0:s.map(f=>z.jsx($3,{attachment:f},f.id))}),z.jsx(JF,{"data-type":a,"data-id":n,remarkPlugins:[fP],rehypePlugins:[dH],components:{a:({children:f,...p})=>z.jsx("a",{target:"_top",...p,children:f})},className:"leading-snug font-medium text-sm prose prose-a:decoration-primary prose-a:underline prose-sm prose-slate",children:e.message})]})}const $1=ie.forwardRef(({className:e,...n},a)=>z.jsx($f.Root,{ref:a,className:jt("relative flex size-6 aspect-square shrink-0 overflow-hidden rounded-lg border bg-secondary",e),...n}));$1.displayName=$f.Root.displayName;const ix=ie.forwardRef(({className:e,...n},a)=>z.jsx($f.Image,{ref:a,className:jt("aspect-square h-full w-full",e),...n}));ix.displayName=$f.Image.displayName;const ox=ie.forwardRef(({className:e,...n},a)=>z.jsx($f.Fallback,{ref:a,className:jt("flex size-full text-sm items-center justify-center rounded-lg",e),...n}));ox.displayName=$f.Fallback.displayName;function hH(){return z.jsx(ta.AnimatePresence,{children:z.jsxs(ta.motion.div,{animate:{opacity:1},exit:{opacity:0},transition:{duration:.5},className:"flex flex-row items-end w-full gap-1",children:[z.jsx("div",{className:"flex items-center gap-1",children:z.jsx($1,{className:"animate-pulse size-7 rounded-xl bg-secondary",children:z.jsx(ox,{})})}),z.jsxs("div",{className:"flex items-center [&_span]:bg-secondary-foreground [&_span]:size-1 gap-1 p-3 rounded-lg rounded-bl-none bg-secondary",children:[z.jsx(ta.motion.span,{className:"rounded-full animate-bounce [animation-delay:-0.3s]"}),z.jsx(ta.motion.span,{className:"rounded-full animate-bounce [animation-delay:-0.15s]"}),z.jsx(ta.motion.span,{className:"rounded-full animate-bounce"})]})]})})}function pH(e){return z.jsx("div",{className:"w-full max-w-full overflow-auto shrink-0",children:z.jsx("pre",{dir:"auto",className:"text-xs leading-tight",children:JSON.stringify(e,null,1)})})}function XT({children:e,agent:n,className:a}){return z.jsxs("div",{className:"flex flex-row items-end w-full gap-2",children:[z.jsx($1,{className:"flex items-center size-7 border-0",children:z.jsx(ix,{src:(n==null?void 0:n.profile_picture)??"",alt:"Agent Icon"})}),z.jsx("div",{className:jt("w-fit min-w-[80%]",a),children:z.jsx("div",{className:"rounded-xl rounded-bl-none bg-secondary shadow-sm p-2.5 min-w-fit",children:e})})]})}function s1({message:e,Wrapper:n,wrapperProps:a}){const s=Tt.useConfigData(),f=s.componentStore.getComponent(e.component,s.debug);return f?n?vt.createElement(n,{...a,key:e.id},z.jsx(f,{...e,id:e.id})):vt.createElement(f,{...e,id:e.id,key:e.id}):null}const mH=400,gH=600,ux={widgetMinHeight:"min-h-[400px]",widgetMaxHeight:"max-h-[600px]",widgetHeight:"h-[600px]"},G3=(e,n)=>{const a=JC(e.primary).toHsl(),s=JC(e.primary).isLight()?"240 10% 3.9%":"0 0% 100%";return{"--opencx-primary":`${a.h} ${a.s}% ${a.l}%`,"--opencx-primary-foreground":s,"--opencx-background":"0 0% 100%","--opencx-foreground":"240 10% 3.9%","--opencx-accent":"240 4.8% 95.9%","--opencx-accent-foreground":"240 5.9% 10%","--opencx-destructive":"0 84.2% 60.2%","--opencx-destructive-foreground":"0 0% 98%","--opencx-secondary":"240 4.8% 95.9%","--opencx-secondary-foreground":"240 5.9% 10%","--opencx-muted":"240 4.8% 95.9%","--opencx-muted-foreground":"240 3.8% 46.1%","--opencx-input":"240 5.9% 90%","--opencx-border":"240 5.9% 90%","--opencx-ring":"240 5.9% 10%","--opencx-trigger-offset":n.triggerOffset}},vH=10,yH=(e,n)=>({initial:{opacity:0,x:-e,...n.initial},animate:{opacity:1,x:0,...n.animate},exit:{opacity:0,x:e,...n.exit}}),EH=(e,n)=>({initial:{opacity:0,x:e,...n.initial},animate:{opacity:1,x:0,...n.animate},exit:{opacity:0,x:-e,...n.exit}}),bH=(e,n)=>({initial:{opacity:0,y:e,...n.initial},animate:{opacity:1,y:0,...n.animate},exit:{opacity:0,y:-e,...n.exit}}),TH=(e,n)=>({initial:{opacity:0,y:-e,...n.initial},animate:{opacity:1,y:0,...n.animate},exit:{opacity:0,y:e,...n.exit}}),wH={right:yH,left:EH,up:bH,down:TH},io=vt.forwardRef(({fadeIn:e="down",distance:n=vH,children:a,snapExit:s=!1,overrides:f={},...p},d)=>{const g=e?wH[e](n,f):{};return s&&g.exit&&typeof g.exit=="object"&&!Array.isArray(g.exit)&&(g.exit.transition={duration:0}),z.jsx(ta.motion.div,{ref:d,...p,...g,children:a})});io.displayName="MotionDiv";function xH(){const{contact:e}=Tt.useContact(),{collectUserData:n}=Tt.useConfigData();return{shouldCollectDataFirst:n&&!(e!=null&&e.id)}}function SH({children:e,user:n,message:a}){var f,p,d;const s=vt.useMemo(()=>a.deliveredAt?FL.formatDistance(new Date(a.deliveredAt),new Date,{addSuffix:!0}):null,[a.deliveredAt]);return z.jsxs("div",{className:"flex flex-row w-full gap-2 justify-end items-start group",children:[z.jsx("div",{className:"flex flex-col items-end gap-1 relative",children:z.jsxs("div",{className:"max-w-[85%] min-w-fit",children:[z.jsx("div",{className:"bg-primary p-2 text-primary-foreground rounded-xl leading-relaxed text-sm",children:e}),a.attachments&&a.attachments.length>0&&z.jsx("div",{className:"flex gap-1 flex-wrap mb-1",children:(f=a.attachments)==null?void 0:f.map(g=>z.jsx($3,{attachment:g},g.id))}),s&&z.jsxs("div",{className:"flex items-center justify-end gap-1 mt-1 text-[10px] text-zinc-500 opacity-0 group-hover:opacity-100 transition-opacity duration-200",children:[z.jsx("span",{children:s}),z.jsx(Yn.CheckCheck,{className:"size-3"})]})]})}),z.jsxs($1,{className:"size-8 ring-2 ring-white shadow-sm",children:[z.jsx(ix,{src:n==null?void 0:n.avatarUrl,className:"object-cover",alt:(n==null?void 0:n.name)||"User avatar"}),z.jsx(ox,{className:"bg-zinc-100 text-zinc-600 text-xs font-medium",children:((d=(p=n==null?void 0:n.name)==null?void 0:p.slice(0,2))==null?void 0:d.toUpperCase())||"U"})]})]})}const yA=e=>typeof e=="boolean"?"".concat(e):e===0?"0":e,EA=$A.clsx,CH=(e,n)=>a=>{var s;if((n==null?void 0:n.variants)==null)return EA(e,a==null?void 0:a.class,a==null?void 0:a.className);const{variants:f,defaultVariants:p}=n,d=Object.keys(f).map(T=>{const C=a==null?void 0:a[T],S=p==null?void 0:p[T];if(C===null)return null;const R=yA(C)||yA(S);return f[T][R]}),g=a&&Object.entries(a).reduce((T,C)=>{let[S,R]=C;return R===void 0||(T[S]=R),T},{}),E=n==null||(s=n.compoundVariants)===null||s===void 0?void 0:s.reduce((T,C)=>{let{class:S,className:R,...A}=C;return Object.entries(A).every(D=>{let[L,U]=D;return Array.isArray(U)?U.includes({...p,...g}[L]):{...p,...g}[L]===U})?[...T,S,R]:T},[]);return EA(e,d,E,a==null?void 0:a.class,a==null?void 0:a.className)},bA={x:2,y:2},_H={1:"scale-[1]","1.01":"scale-[1.01]","1.02":"scale-[1.02]","1.1":"scale-[1.1]"},Wm=vt.memo(vt.forwardRef(({children:e,className:n,scale:a="1.02",off:s=!1},f)=>{const[p,d]=vt.useState(!1),[g,E]=vt.useState({x:0,y:0});if(s||/translate/.test(e.props.className||""))return e;const C=D=>{var we,Me;const{clientX:L,clientY:U}=D,H=D.currentTarget.getBoundingClientRect(),G=L-(H.left+H.width/2),W=U-(H.top+H.height/2),Z=Math.max(-1,Math.min(1,G/(H.width/2))),J=Math.max(-1,Math.min(1,W/(H.height/2))),X=Z*bA.x,ce=J*bA.y;E({x:X,y:ce}),(Me=(we=e.props).onMouseMove)==null||Me.call(we,D)},S=()=>{var D,L;d(!0),(L=(D=e.props).onMouseEnter)==null||L.call(D)},R=()=>{var D,L;d(!1),E({x:0,y:0}),(L=(D=e.props).onMouseLeave)==null||L.call(D)},A={"--opencx-wobble-x":p?`${g.x}px`:"0px","--opencx-wobble-y":p?`${g.y}px`:"0px"};return vt.cloneElement(e,{ref:f,onMouseMove:C,onMouseEnter:S,onMouseLeave:R,style:{...A,...e.props.style},className:jt("translate-x-[var(--opencx-wobble-x)]","translate-y-[var(--opencx-wobble-y)]",`hover:${_H[a]}`,n,e.props.className,"transition-all ease-out")})}));Wm.displayName="Wobble";const AH=CH(jt("inline-flex shrink-0 items-center justify-center gap-2","text-sm font-medium whitespace-nowrap","ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2","disabled:pointer-events-none disabled:opacity-50","shadow-sm active:shadow-none active:scale-95 hover:active:scale-95","rounded-xl","border","transition"),{variants:{variant:{default:"border-primary bg-primary text-primary-foreground",destructive:"border-destructive bg-destructive text-destructive-foreground",outline:"bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground",ghost:"border-transparent shadow-none hover:bg-accent hover:text-accent-foreground",link:"border-transparent shadow-none text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-8 px-3 text-xs",lg:"h-11 px-8",icon:"h-10 w-10",fit:"size-fit p-2"}},defaultVariants:{variant:"default",size:"default"}}),Ac=ie.forwardRef(({className:e,variant:n,size:a,asChild:s=!1,...f},p)=>{const d=s?Pw.Slot:"button";return z.jsx(Wm,{ref:p,children:z.jsx(d,{className:jt(AH({variant:n,size:a,className:e})),...f})})});Ac.displayName="Button";function kH({options:e,onKeyboardClick:n}){return z.jsx("div",{className:"flex items-center gap-2 p-2 flex-wrap",children:e.map((a,s)=>z.jsx(Ac,{onClick:()=>n(a),className:"flex-1 rounded-full",size:"sm",children:a},s))})}const RH=qn.Root,NH=qn.Trigger,TA=qn.Group,DH=ie.forwardRef(({className:e,inset:n,children:a,...s},f)=>z.jsxs(qn.SubTrigger,{ref:f,className:jt("flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",n&&"pl-8",e),...s,children:[a,z.jsx(Yn.ChevronRight,{className:"ml-auto"})]}));DH.displayName=qn.SubTrigger.displayName;const OH=ie.forwardRef(({className:e,...n},a)=>z.jsx(qn.SubContent,{ref:a,className:jt("z-50 min-w-[8rem] overflow-hidden rounded-2xl border bg-background p-1 text-foreground shadow-2xl data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n}));OH.displayName=qn.SubContent.displayName;const X3=ie.forwardRef(({className:e,sideOffset:n=4,...a},s)=>z.jsx(qn.Content,{ref:s,sideOffset:n,className:jt("z-50 min-w-[8rem] overflow-hidden rounded-2xl border bg-background p-1 text-foreground shadow-2xl","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...a}));X3.displayName=qn.Content.displayName;const b1=ie.forwardRef(({className:e,inset:n,...a},s)=>z.jsx(io,{children:z.jsx(qn.Item,{ref:s,className:jt("relative flex cursor-default select-none items-center gap-2 rounded-xl px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:size-4 [&_svg]:shrink-0",n&&"pl-8",e),...a})}));b1.displayName=qn.Item.displayName;const LH=ie.forwardRef(({className:e,children:n,checked:a,...s},f)=>z.jsxs(qn.CheckboxItem,{ref:f,className:jt("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:a,...s,children:[z.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:z.jsx(qn.ItemIndicator,{children:z.jsx(Yn.Check,{className:"h-4 w-4"})})}),n]}));LH.displayName=qn.CheckboxItem.displayName;const IH=ie.forwardRef(({className:e,children:n,...a},s)=>z.jsxs(qn.RadioItem,{ref:s,className:jt("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...a,children:[z.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:z.jsx(qn.ItemIndicator,{children:z.jsx(Yn.Circle,{className:"h-2 w-2 fill-current"})})}),n]}));IH.displayName=qn.RadioItem.displayName;const MH=ie.forwardRef(({className:e,inset:n,...a},s)=>z.jsx(qn.Label,{ref:s,className:jt("px-2 py-1.5 text-sm font-semibold",n&&"pl-8",e),...a}));MH.displayName=qn.Label.displayName;const K3=ie.forwardRef(({className:e,...n},a)=>z.jsx(qn.Separator,{ref:a,className:jt("-mx-1 my-1 h-px bg-muted",e),...n}));K3.displayName=qn.Separator.displayName;function PH({className:e,...n}){return z.jsx("div",{className:jt("animate-pulse rounded-md bg-secondary",e),...n})}const _w=ie.forwardRef(({className:e,...n},a)=>z.jsx(Wm,{scale:"1.1",ref:a,children:z.jsx(sw.Root,{className:jt("peer group inline-flex h-5 w-9 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent shadow-sm transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",e),...n,ref:a,children:z.jsx(sw.Thumb,{className:jt("pointer-events-none block size-4 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-4 data-[state=unchecked]:translate-x-0","group-active:scale-90 group-hover:active:scale-90")})})}));_w.displayName=sw.Root.displayName;function FH(){const e=Tt.useLocale(),[n,a]=vt.useState(!1),{clearSession:s}=Tt.useChat(),{widgetSettings:f,setSettings:p}=Tt.useConfigData(),d=()=>{p({persistSession:!(f!=null&&f.persistSession)})},g=()=>{p({useSoundEffects:!(f!=null&&f.useSoundEffects)})};return z.jsxs(RH,{open:n,onOpenChange:a,children:[z.jsx(NH,{asChild:!0,children:z.jsx(Ac,{variant:"ghost",size:"fit",className:"rounded-full",children:z.jsx(Yn.EllipsisVerticalIcon,{className:"size-4"})})}),z.jsxs(X3,{align:"end",className:"min-w-56",children:[z.jsxs(TA,{children:[z.jsxs(b1,{onSelect:E=>{E.preventDefault(),d()},children:[z.jsx(ta.AnimatePresence,{mode:"wait",children:f!=null&&f.persistSession?z.jsx(io,{fadeIn:"right",distance:4,snapExit:!0,children:z.jsx(Yn.SaveIcon,{})},"save"):z.jsx(io,{fadeIn:"right",distance:4,snapExit:!0,children:z.jsx(Yn.SaveOffIcon,{})},"save-off")}),e.get("persist-session"),z.jsx(_w,{className:"ml-auto",checked:f==null?void 0:f.persistSession,onCheckedChange:d})]}),z.jsxs(b1,{onSelect:E=>{E.preventDefault(),g()},children:[z.jsx(ta.AnimatePresence,{mode:"wait",children:f!=null&&f.useSoundEffects?z.jsx(io,{fadeIn:"right",distance:4,snapExit:!0,children:z.jsx(Yn.Volume2Icon,{})},"volume-2"):z.jsx(io,{fadeIn:"right",distance:4,snapExit:!0,children:z.jsx(Yn.VolumeOffIcon,{})},"volume-off")}),e.get("sound-effects"),z.jsx(_w,{className:"ml-auto",checked:f==null?void 0:f.useSoundEffects,onCheckedChange:g})]})]}),z.jsx(K3,{}),z.jsx(TA,{children:z.jsxs(b1,{onSelect:()=>{s(),a(!1)},children:[z.jsx(ta.motion.div,{initial:{opacity:0,x:-4,rotate:360},animate:{opacity:1,x:0,rotate:0},children:z.jsx(Yn.RotateCcw,{})}),e.get("reset-conversation")]})})]})]})}function UH(){const{data:e,isLoading:n}=Tt.usePreludeData();return z.jsx("header",{className:"p-2 border-b bg-background",children:z.jsxs("div",{className:"flex items-center gap-2",children:[z.jsx("div",{className:"flex-1 pl-2",children:n?z.jsx(PH,{className:"h-4 w-2/3"}):z.jsx("h2",{className:"font-semibold",children:e==null?void 0:e.organization_name})}),z.jsx(FH,{})]})})}const[sx,BH]=Tt.createSafeContext(),HH=()=>{};function zH({defaultOpen:e,onOpenChange:n,open:a,children:s,isAlert:f}){const[p,d]=vt.useState(e),g=a??p??!1,E=n??d;return z.jsx(BH,{value:{open:g,setOpen:E,onOpenChange:n??HH,isAlert:f||!1},children:typeof s=="function"?s({open:g,setOpen:E}):s})}vt.forwardRef((e,n)=>{const{setOpen:a,open:s}=sx();return z.jsx("button",{...e,"data-open":s,onClick:()=>a(!0),ref:n})});const jH=vt.forwardRef((e,n)=>z.jsx(ta.motion.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0,transition:{delay:.1}},transition:{duration:.2},className:"absolute inset-0 z-[24] from-gray-100/30 to-gray-50/30 bg-gradient-to-t backdrop-blur-sm",...e,ref:n}));function VH(...e){return n=>{e.forEach(a=>{typeof a=="function"?a(n):a&&(a.current=n)})}}const YH=vt.forwardRef(({children:e,...n},a)=>{const{open:s,setOpen:f,isAlert:p}=sx(),d=vt.useRef(null),g=vt.useRef(null),E=VH(a,d);return vt.useEffect(()=>{if(!s||p)return;const T=C=>{C.key==="Escape"&&f(!1)};return window.addEventListener("keydown",T),()=>{window.removeEventListener("keydown",T)}},[s,f]),vt.useEffect(()=>{var T;s&&((T=d.current)==null||T.focus())},[s]),z.jsx(ta.AnimatePresence,{children:s&&z.jsxs(z.Fragment,{children:[z.jsx(ta.motion.div,{"data-alert":p,initial:{opacity:0,y:20,x:"-50%"},animate:{opacity:1,y:0,x:"-50%"},exit:{opacity:0,y:20,x:"-50%"},transition:{type:"spring",damping:20,stiffness:300},className:"bg-background rounded-xl grid grid-cols-1 gap-2 border max-w-[90%] bottom-2 w-full absolute left-1/2 p-3 z-[25]",ref:E,...n,children:e}),z.jsx(jH,{onClick:T=>{p||T.target===g.current&&f(!1)},ref:g})]})})});vt.forwardRef((e,n)=>{const{setOpen:a,open:s}=sx();return z.jsx("button",{...e,"data-open":s,onClick:()=>{a(!1)},ref:n})});function WH(){const{session:e,recreateSession:n,hookState:a}=Tt.useChat(),s=Tt.useLocale();return e&&e.isSessionClosed!==!0||a.state==="loading"?null:z.jsx(zH,{open:e==null?void 0:e.isSessionClosed,children:z.jsxs(YH,{children:[z.jsxs("header",{className:"flex items-center gap-1",children:[z.jsx(Yn.CheckCheckIcon,{className:"size-5 text-emerald-500"}),z.jsx("h2",{className:"text-base font-medium",dir:"auto",children:s.get("session-closed-lead")})]}),z.jsx("footer",{className:"grid mt-2",children:z.jsx("button",{onClick:n,className:"text-sm font-medium hover:brightness-110 whitespace-nowrap px-3 py-2 bg-primary text-primary-foreground rounded-md",children:s.get("create-new-ticket")})})]})})}function qH({file:{status:e,file:n,error:a},onCancel:s}){const[f,p]=vt.useState(null);vt.useEffect(()=>{if(!n.type.startsWith("image/"))return;const E=new FileReader;return E.onload=()=>p(E.result),E.onerror=()=>console.error("Error reading file"),E.readAsDataURL(n),()=>E.abort()},[n]);const d=()=>{switch(e){case"uploading":return z.jsx(Yn.Loader2,{className:"size-4 animate-spin"});case"error":return z.jsx(Yn.AlertCircle,{className:"size-4 text-destructive"});default:return null}},g=()=>{const E=n.type.split("/")[0];return E==="image"&&f?z.jsx("img",{src:typeof f=="string"?f:"",className:"object-cover bg-secondary size-full",alt:n.name}):E==="audio"?z.jsx(Yn.FileAudio,{}):z.jsx(Yn.FileIcon,{})};return z.jsx(cw,{content:e==="error"?z.jsxs("span",{className:"text-destructive",children:["Failed to upload: ",a]}):n.name,children:z.jsxs("div",{className:jt(e==="uploading"&&"opacity-50","group","size-12 border rounded-2xl overflow-hidden relative","flex items-center justify-center shrink-0"),children:[z.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:d()}),z.jsx("button",{className:jt("absolute bg-black/50 inset-0 size-full z-10 opacity-0","flex items-center justify-center","opacity-0 group-hover:opacity-100 transition"),onClick:s,children:z.jsx(Yn.XIcon,{className:"size-4 text-primary-foreground"})}),z.jsx(g,{})]})})}const wA=jt("rounded-3xl");function QH(){const{collectUserData:e}=Tt.useConfigData(),n=vt.useRef(null),{sendMessage:a,hookState:s,session:f}=Tt.useChat(),{contact:p}=Tt.useContact(),d=Tt.useLocale(),[g,E]=vt.useState(""),{allFiles:T,emptyTheFiles:C,handleCancelUpload:S,appendFiles:R,isUploading:A,successFiles:D}=Tt.useUploadFiles(),L=f&&((f==null?void 0:f.isAssignedToHuman)||f.ai_closure_type===zL.AIClosureType.handed_off),U=we=>{L&&R(we)},H=async()=>{s.state!=="loading"&&(A&&e_.error("please wait for the file(s) to upload"),g.trim()&&(await a({content:{text:g.trim()},user:{email:(p==null?void 0:p.email)??void 0,name:(p==null?void 0:p.name)??void 0},attachments:D.map(we=>({url:we.fileUrl,type:we.file.type,name:we.file.name,id:we.id,size:we.file.size}))}),E(""),C()))},{getRootProps:G,getInputProps:W,open:Z}=HL.useDropzone({onDrop:U,noClick:!0,onDropRejected(){L&&e_.error("unsupported file type, or the file is too large")},maxSize:5*1024*1024,accept:{"text/*":[".txt"],"image/*":[".png",".jpg",".jpeg",".gif"],"application/pdf":[".pdf"]}}),J=s.state==="loading",X=e&&!(p!=null&&p.id),ce=we=>{const Me=we.clipboardData;Me&&Me.files.length>0&&U(Array.from(Me.files))};return z.jsxs("div",{className:"p-2 relative space-y-1",...G(),children:[z.jsx("input",{...W()}),z.jsxs("div",{className:jt(wA,"relative space-y-2 border transition-all shadow py-2"),children:[z.jsx("div",{className:"flex items-center gap-1 px-2",children:z.jsx(ta.AnimatePresence,{mode:"popLayout",children:T.map(we=>z.jsx(io,{snapExit:!0,children:z.jsx(qH,{onCancel:()=>S(we.id),file:we})},we.id))})}),z.jsx("textarea",{onPaste:ce,ref:n,id:"chat-input",dir:"auto",disabled:J,value:g,rows:3,className:jt(wA,"w-full px-3","resize-none","bg-transparent outline-none","text-sm"),onChange:we=>E(we.target.value),onKeyDown:async we=>{we.key==="Enter"&&!we.shiftKey&&(we.preventDefault(),H())},placeholder:d.get("write-a-message")}),z.jsxs("div",{className:"px-2 flex justify-between",children:[z.jsx(cw,{side:"top",align:"end",content:"attach files, (maximum size 5mb)",children:z.jsx(Ac,{onClick:()=>{L&&Z()},size:"fit",variant:"outline",className:jt("disabled:opacity-0","rounded-full size-8 flex items-center justify-center p-0"),disabled:!L,children:z.jsx(Yn.PaperclipIcon,{className:"size-4"})})}),z.jsx(cw,{content:"send message",children:z.jsx(Ac,{size:"fit",onClick:H,disabled:J||X||A,className:"rounded-full size-8 flex items-center justify-center p-0",children:J?z.jsx(Yn.CircleDashed,{className:"size-4 animate-spin animate-iteration-infinite"}):z.jsx(Yn.SendHorizonal,{className:"size-4 rtl:-scale-100"})})})]})]})]})}function $H(){const{state:e,hookState:n}=Tt.useChat(),{componentStore:a,initialMessages:s,...f}=Tt.useConfigData(),p=a.getComponent("loading"),d=vt.useRef(null);function g(){setTimeout(()=>{const E=d.current;E&&(E.scrollTop=E.scrollHeight)},0)}return vt.useEffect(()=>{g()},[e.messages]),z.jsxs("div",{"data-messages":!0,ref:d,className:"max-h-full scroll-smooth relative flex-1 py-4 px-3 space-y-3 overflow-auto",children:[e.messages.length===0&&((s==null?void 0:s.map((E,T)=>z.jsx(s1,{message:{component:"text",data:{message:E},id:`initial-${T}`,type:"FROM_BOT"},Wrapper:XT,wrapperProps:{agent:f.bot}},T)))??z.jsx(s1,{message:{component:"text",data:{message:"Hello, how can I help?"},id:"default-welcome",type:"FROM_BOT",agent:f.bot},Wrapper:XT,wrapperProps:{agent:f.bot}},"default-welcome")),e.messages.map(E=>E.type==="FROM_USER"?z.jsx(SH,{message:E,user:f.user,children:E.content},E.id):E.type==="FROM_BOT"?E.component=="CHAT_EVENT"?z.jsx(s1,{message:E},E.id):z.jsx(s1,{message:E,Wrapper:XT,wrapperProps:{agent:E.agent}},E.id):null),n.state==="loading"&&z.jsx(p,{})]})}function GH(){var g;const{state:e,sendMessage:n,noMessages:a,handleKeyboard:s}=Tt.useChat(),p=(g=Tt.usePreludeData().data)==null?void 0:g.initial_questions,{observedElementRef:d}=GA({fallbackHeight:gH});return z.jsxs("div",{ref:d,className:jt(ux.widgetHeight,"w-full flex flex-col overflow-hidden bg-background z-10 origin-bottom absolute bottom-0 inset-x-0"),children:[z.jsxs("div",{className:"w-full h-full justify-between flex flex-col relative",style:{background:"linear-gradient(333.89deg, rgba(75, 240, 171, 0.8) 58%, rgba(75, 240, 171, 0) 85.74%), linear-gradient(113.43deg, #46B1FF 19.77%, #1883FF 65.81%)"},children:[z.jsx(UH,{}),z.jsxs("div",{className:"flex bg-background shadow-lg flex-col w-full flex-1 overflow-auto",children:[z.jsx($H,{}),z.jsxs("footer",{children:[e.keyboard&&z.jsx(kH,{options:e.keyboard.options,onKeyboardClick:s}),a&&p&&z.jsx("div",{className:"flex items-center flex-row justify-end gap-2 flex-wrap px-2",children:p==null?void 0:p.map((E,T)=>z.jsx(Ac,{dir:"auto",variant:"outline",size:"sm",onClick:()=>{n({content:{text:E}})},children:E},T))}),z.jsx(QH,{})]})]})]}),z.jsx(WH,{})]})}const Aw=ie.forwardRef(({className:e,type:n,...a},s)=>z.jsx(Wm,{ref:s,children:z.jsx("input",{type:n,className:jt("flex w-full rounded-xl border border-input bg-background p-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-primary-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 transition",e),...a})}));Aw.displayName="Input";const XH=NT.z.object({name:NT.z.string().min(2),email:NT.z.string().email()});function KH(){const e=Tt.useLocale(),{data:n}=Tt.usePreludeData(),{createContactAsync:a}=Tt.useContact(),{assets:s}=Tt.useConfigData(),{observedElementRef:f}=GA({fallbackHeight:mH}),[p,d]=Tt._default(async g=>{g.preventDefault();const E=new FormData(g.currentTarget),T=Object.fromEntries(E.entries()),C=XH.safeParse(T);C.success&&await a(C.data)});return z.jsxs("div",{ref:f,className:jt(ux.widgetMinHeight,"h-fit bg-primary rounded-3xl flex flex-col"),children:[z.jsxs("div",{className:"flex-1 flex flex-col px-4 py-12 text-start space-y-4 relative z-10",children:[z.jsx("div",{className:"flex items-center justify-between w-full mb-2",children:s!=null&&s.organizationLogo?z.jsx("img",{src:s==null?void 0:s.organizationLogo,alt:"Company Logo",className:"h-8 w-auto object-contain"}):z.jsx("h2",{className:"font-bold text-xl text-primary-foreground",children:n==null?void 0:n.organization_name})}),z.jsxs("div",{className:"space-y-2",children:[z.jsx("h1",{className:"text-2xl font-bold text-primary-foreground",children:e.get("welcome-title")}),z.jsx("p",{className:"text-primary-foreground/90 text-sm max-w-[320px] leading-relaxed",children:e.get("welcome-description")})]})]}),z.jsx("div",{className:"p-2 bg-background rounded-3xl",children:z.jsxs("form",{onSubmit:d,className:"space-y-2",children:[z.jsxs("div",{className:"space-y-2",children:[z.jsx(Aw,{required:!0,dir:"auto",autoFocus:!0,placeholder:e.get("your-name"),name:"name",className:"rounded-3xl pl-3"}),z.jsx(Aw,{required:!0,dir:"auto",type:"email",placeholder:e.get("your-email"),name:"email",className:"rounded-3xl pl-3"})]}),z.jsxs(Ac,{disabled:p.loading,className:"w-full rounded-3xl",children:[p.loading?e.get("starting-chat"):e.get("start-chat"),z.jsx(Yn.SendHorizontal,{className:"size-4"})]})]})})]})}function ZH(){const{shouldCollectDataFirst:e}=xH();return z.jsx("div",{className:"bg-background size-full",children:z.jsx(ta.AnimatePresence,{mode:"wait",children:e?z.jsx(io,{fadeIn:"right",className:"size-full",snapExit:!0,children:z.jsx(KH,{})},"welcome-screen"):z.jsx(io,{fadeIn:"right",className:"size-full",snapExit:!0,children:z.jsx(GH,{})},"chat-screen")})})}function Js(e,n,{checkForDefaultPrevented:a=!0}={}){return function(f){if(e==null||e(f),a===!1||!f.defaultPrevented)return n==null?void 0:n(f)}}function JH(e,n){typeof e=="function"?e(n):e!=null&&(e.current=n)}function ez(...e){return n=>e.forEach(a=>JH(a,n))}function ul(...e){return ie.useCallback(ez(...e),e)}function tz(e,n=[]){let a=[];function s(p,d){const g=ie.createContext(d),E=a.length;a=[...a,d];const T=S=>{var H;const{scope:R,children:A,...D}=S,L=((H=R==null?void 0:R[e])==null?void 0:H[E])||g,U=ie.useMemo(()=>D,Object.values(D));return z.jsx(L.Provider,{value:U,children:A})};T.displayName=p+"Provider";function C(S,R){var L;const A=((L=R==null?void 0:R[e])==null?void 0:L[E])||g,D=ie.useContext(A);if(D)return D;if(d!==void 0)return d;throw new Error(`\`${S}\` must be used within \`${p}\``)}return[T,C]}const f=()=>{const p=a.map(d=>ie.createContext(d));return function(g){const E=(g==null?void 0:g[e])||p;return ie.useMemo(()=>({[`__scope${e}`]:{...g,[e]:E}}),[g,E])}};return f.scopeName=e,[s,nz(f,...n)]}function nz(...e){const n=e[0];if(e.length===1)return n;const a=()=>{const s=e.map(f=>({useScope:f(),scopeName:f.scopeName}));return function(p){const d=s.reduce((g,{useScope:E,scopeName:T})=>{const S=E(p)[`__scope${T}`];return{...g,...S}},{});return ie.useMemo(()=>({[`__scope${n.scopeName}`]:d}),[d])}};return a.scopeName=n.scopeName,a}var kw={exports:{}},Ya={},l1={exports:{}},KT={};/**
|
|
29
|
+
`,n);return s===-1?a:a===-1||a+1===s?s:a<s?a:s}const Sc={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/"},d3={}.hasOwnProperty,l7=Object.prototype;function c7(e,n){const a=n||{};return Jw({file:a.file||void 0,location:!1,schema:a.space==="svg"?ol:zm,verbose:a.verbose||!1},e)}function Jw(e,n){let a;switch(n.nodeName){case"#comment":{const s=n;return a={type:"comment",value:s.data},y1(e,s,a),a}case"#document":case"#document-fragment":{const s=n,f="mode"in s?s.mode==="quirks"||s.mode==="limited-quirks":!1;if(a={type:"root",children:f3(e,n.childNodes),data:{quirksMode:f}},e.file&&e.location){const p=String(e.file),d=s7(p),g=d.toPoint(0),E=d.toPoint(p.length);a.position={start:g,end:E}}return a}case"#documentType":{const s=n;return a={type:"doctype"},y1(e,s,a),a}case"#text":{const s=n;return a={type:"text",value:s.value},y1(e,s,a),a}default:return a=d7(e,n),a}}function f3(e,n){let a=-1;const s=[];for(;++a<n.length;){const f=Jw(e,n[a]);s.push(f)}return s}function d7(e,n){const a=e.schema;e.schema=n.namespaceURI===Sc.svg?ol:zm;let s=-1;const f={};for(;++s<n.attrs.length;){const g=n.attrs[s],E=(g.prefix?g.prefix+":":"")+g.name;d3.call(l7,E)||(f[E]=g.value)}const d=(e.schema.space==="svg"?u7:o7)(n.tagName,f,f3(e,n.childNodes));if(y1(e,n,d),d.tagName==="template"){const g=n,E=g.sourceCodeLocation,T=E&&E.startTag&&Uf(E.startTag),C=E&&E.endTag&&Uf(E.endTag),S=Jw(e,g.content);T&&C&&e.file&&(S.position={start:T.end,end:C.start}),d.content=S}return e.schema=a,d}function y1(e,n,a){if("sourceCodeLocation"in n&&n.sourceCodeLocation&&e.file){const s=f7(e,a,n.sourceCodeLocation);s&&(e.location=!0,a.position=s)}}function f7(e,n,a){const s=Uf(a);if(n.type==="element"){const f=n.children[n.children.length-1];if(s&&!a.endTag&&f&&f.position&&f.position.end&&(s.end=Object.assign({},f.position.end)),e.verbose){const p={};let d;if(a.attrs)for(d in a.attrs)d3.call(a.attrs,d)&&(p[z1(e.schema,d).property]=Uf(a.attrs[d]));a.startTag;const g=Uf(a.startTag),E=a.endTag?Uf(a.endTag):void 0,T={opening:g};E&&(T.closing=E),T.properties=p,n.data={position:T}}}return s}function Uf(e){const n=aA({line:e.startLine,column:e.startCol,offset:e.startOffset}),a=aA({line:e.endLine,column:e.endCol,offset:e.endOffset});return n||a?{start:n,end:a}:void 0}function aA(e){return e.line&&e.column?e:void 0}const h7={},p7={}.hasOwnProperty,h3=uk("type",{handlers:{root:g7,element:T7,text:E7,comment:b7,doctype:y7}});function m7(e,n){const s=(n||h7).space;return h3(e,s==="svg"?ol:zm)}function g7(e,n){const a={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return a.childNodes=ex(e.children,a,n),Zf(e,a),a}function v7(e,n){const a={nodeName:"#document-fragment",childNodes:[]};return a.childNodes=ex(e.children,a,n),Zf(e,a),a}function y7(e){const n={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return Zf(e,n),n}function E7(e){const n={nodeName:"#text",value:e.value,parentNode:null};return Zf(e,n),n}function b7(e){const n={nodeName:"#comment",data:e.value,parentNode:null};return Zf(e,n),n}function T7(e,n){const a=n;let s=a;e.type==="element"&&e.tagName.toLowerCase()==="svg"&&a.space==="html"&&(s=ol);const f=[];let p;if(e.properties){for(p in e.properties)if(p!=="children"&&p7.call(e.properties,p)){const E=w7(s,p,e.properties[p]);E&&f.push(E)}}const d=s.space,g={nodeName:e.tagName,tagName:e.tagName,attrs:f,namespaceURI:Sc[d],childNodes:[],parentNode:null};return g.childNodes=ex(e.children,g,s),Zf(e,g),e.tagName==="template"&&e.content&&(g.content=v7(e.content,s)),g}function w7(e,n,a){const s=z1(e,n);if(a===!1||a===null||a===void 0||typeof a=="number"&&Number.isNaN(a)||!a&&s.boolean)return;Array.isArray(a)&&(a=s.commaSeparated?Fk(a):qk(a));const f={name:s.attribute,value:a===!0?"":String(a)};if(s.space&&s.space!=="html"&&s.space!=="svg"){const p=f.name.indexOf(":");p<0?f.prefix="":(f.name=f.name.slice(p+1),f.prefix=s.attribute.slice(0,p)),f.namespace=Sc[s.space]}return f}function ex(e,n,a){let s=-1;const f=[];if(e)for(;++s<e.length;){const p=h3(e[s],a);p.parentNode=n,f.push(p)}return f}function Zf(e,n){const a=e.position;a&&a.start&&a.end&&(a.start.offset,a.end.offset,n.sourceCodeLocation={startLine:a.start.line,startCol:a.start.column,startOffset:a.start.offset,endLine:a.end.line,endCol:a.end.column,endOffset:a.end.offset})}const x7=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],S7=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]),xn="�";var M;(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"})(M||(M={}));const Va={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function p3(e){return e>=55296&&e<=57343}function C7(e){return e>=56320&&e<=57343}function _7(e,n){return(e-55296)*1024+9216+n}function m3(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function g3(e){return e>=64976&&e<=65007||S7.has(e)}var le;(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"})(le||(le={}));const A7=65536;class k7{constructor(n){this.handler=n,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=A7,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(n,a){const{line:s,col:f,offset:p}=this,d=f+a,g=p+a;return{code:n,startLine:s,endLine:s,startCol:d,endCol:d,startOffset:g,endOffset:g}}_err(n){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(n,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(n){if(this.pos!==this.html.length-1){const a=this.html.charCodeAt(this.pos+1);if(C7(a))return this.pos++,this._addGap(),_7(n,a)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,M.EOF;return this._err(le.surrogateInInputStream),n}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(n,a){this.html.length>0?this.html+=n:this.html=n,this.endOfChunkHit=!1,this.lastChunkWritten=a}insertHtmlAtCurrentPos(n){this.html=this.html.substring(0,this.pos+1)+n+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(n,a){if(this.pos+n.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(a)return this.html.startsWith(n,this.pos);for(let s=0;s<n.length;s++)if((this.html.charCodeAt(this.pos+s)|32)!==n.charCodeAt(s))return!1;return!0}peek(n){const a=this.pos+n;if(a>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,M.EOF;const s=this.html.charCodeAt(a);return s===M.CARRIAGE_RETURN?M.LINE_FEED:s}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,M.EOF;let n=this.html.charCodeAt(this.pos);return n===M.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,M.LINE_FEED):n===M.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,p3(n)&&(n=this._processSurrogate(n)),this.handler.onParseError===null||n>31&&n<127||n===M.LINE_FEED||n===M.CARRIAGE_RETURN||n>159&&n<64976||this._checkForProblematicCharacters(n),n)}_checkForProblematicCharacters(n){m3(n)?this._err(le.controlCharacterInInputStream):g3(n)&&this._err(le.noncharacterInInputStream)}retreat(n){for(this.pos-=n;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}var kt;(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"})(kt||(kt={}));function v3(e,n){for(let a=e.attrs.length-1;a>=0;a--)if(e.attrs[a].name===n)return e.attrs[a].value;return null}const y3=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))),R7=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0)));var QT;const N7=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]]),D7=(QT=String.fromCodePoint)!==null&&QT!==void 0?QT:function(e){let n="";return e>65535&&(e-=65536,n+=String.fromCharCode(e>>>10&1023|55296),e=56320|e&1023),n+=String.fromCharCode(e),n};function O7(e){var n;return e>=55296&&e<=57343||e>1114111?65533:(n=N7.get(e))!==null&&n!==void 0?n:e}var Sr;(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"})(Sr||(Sr={}));const L7=32;var Zs;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(Zs||(Zs={}));function ww(e){return e>=Sr.ZERO&&e<=Sr.NINE}function I7(e){return e>=Sr.UPPER_A&&e<=Sr.UPPER_F||e>=Sr.LOWER_A&&e<=Sr.LOWER_F}function M7(e){return e>=Sr.UPPER_A&&e<=Sr.UPPER_Z||e>=Sr.LOWER_A&&e<=Sr.LOWER_Z||ww(e)}function P7(e){return e===Sr.EQUALS||M7(e)}var xr;(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"})(xr||(xr={}));var Lu;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(Lu||(Lu={}));class E3{constructor(n,a,s){this.decodeTree=n,this.emitCodePoint=a,this.errors=s,this.state=xr.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Lu.Strict}startEntity(n){this.decodeMode=n,this.state=xr.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(n,a){switch(this.state){case xr.EntityStart:return n.charCodeAt(a)===Sr.NUM?(this.state=xr.NumericStart,this.consumed+=1,this.stateNumericStart(n,a+1)):(this.state=xr.NamedEntity,this.stateNamedEntity(n,a));case xr.NumericStart:return this.stateNumericStart(n,a);case xr.NumericDecimal:return this.stateNumericDecimal(n,a);case xr.NumericHex:return this.stateNumericHex(n,a);case xr.NamedEntity:return this.stateNamedEntity(n,a)}}stateNumericStart(n,a){return a>=n.length?-1:(n.charCodeAt(a)|L7)===Sr.LOWER_X?(this.state=xr.NumericHex,this.consumed+=1,this.stateNumericHex(n,a+1)):(this.state=xr.NumericDecimal,this.stateNumericDecimal(n,a))}addToNumericResult(n,a,s,f){if(a!==s){const p=s-a;this.result=this.result*Math.pow(f,p)+parseInt(n.substr(a,p),f),this.consumed+=p}}stateNumericHex(n,a){const s=a;for(;a<n.length;){const f=n.charCodeAt(a);if(ww(f)||I7(f))a+=1;else return this.addToNumericResult(n,s,a,16),this.emitNumericEntity(f,3)}return this.addToNumericResult(n,s,a,16),-1}stateNumericDecimal(n,a){const s=a;for(;a<n.length;){const f=n.charCodeAt(a);if(ww(f))a+=1;else return this.addToNumericResult(n,s,a,10),this.emitNumericEntity(f,2)}return this.addToNumericResult(n,s,a,10),-1}emitNumericEntity(n,a){var s;if(this.consumed<=a)return(s=this.errors)===null||s===void 0||s.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(n===Sr.SEMI)this.consumed+=1;else if(this.decodeMode===Lu.Strict)return 0;return this.emitCodePoint(O7(this.result),this.consumed),this.errors&&(n!==Sr.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(n,a){const{decodeTree:s}=this;let f=s[this.treeIndex],p=(f&Zs.VALUE_LENGTH)>>14;for(;a<n.length;a++,this.excess++){const d=n.charCodeAt(a);if(this.treeIndex=F7(s,f,this.treeIndex+Math.max(1,p),d),this.treeIndex<0)return this.result===0||this.decodeMode===Lu.Attribute&&(p===0||P7(d))?0:this.emitNotTerminatedNamedEntity();if(f=s[this.treeIndex],p=(f&Zs.VALUE_LENGTH)>>14,p!==0){if(d===Sr.SEMI)return this.emitNamedEntityData(this.treeIndex,p,this.consumed+this.excess);this.decodeMode!==Lu.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var n;const{result:a,decodeTree:s}=this,f=(s[a]&Zs.VALUE_LENGTH)>>14;return this.emitNamedEntityData(a,f,this.consumed),(n=this.errors)===null||n===void 0||n.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(n,a,s){const{decodeTree:f}=this;return this.emitCodePoint(a===1?f[n]&~Zs.VALUE_LENGTH:f[n+1],s),a===3&&this.emitCodePoint(f[n+2],s),s}end(){var n;switch(this.state){case xr.NamedEntity:return this.result!==0&&(this.decodeMode!==Lu.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case xr.NumericDecimal:return this.emitNumericEntity(0,2);case xr.NumericHex:return this.emitNumericEntity(0,3);case xr.NumericStart:return(n=this.errors)===null||n===void 0||n.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case xr.EntityStart:return 0}}}function b3(e){let n="";const a=new E3(e,s=>n+=D7(s));return function(f,p){let d=0,g=0;for(;(g=f.indexOf("&",g))>=0;){n+=f.slice(d,g),a.startEntity(p);const T=a.write(f,g+1);if(T<0){d=g+a.end();break}d=g+T,g=T===0?d+1:d}const E=n+f.slice(d);return n="",E}}function F7(e,n,a,s){const f=(n&Zs.BRANCH_LENGTH)>>7,p=n&Zs.JUMP_TABLE;if(f===0)return p!==0&&s===p?a:-1;if(p){const E=s-p;return E<0||E>=f?-1:e[a+E]-1}let d=a,g=d+f-1;for(;d<=g;){const E=d+g>>>1,T=e[E];if(T<s)d=E+1;else if(T>s)g=E-1;else return e[E+f]}return-1}b3(y3);b3(R7);var Te;(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/"})(Te||(Te={}));var Cc;(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"})(Cc||(Cc={}));var Ai;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(Ai||(Ai={}));var re;(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"})(re||(re={}));var y;(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"})(y||(y={}));const U7=new Map([[re.A,y.A],[re.ADDRESS,y.ADDRESS],[re.ANNOTATION_XML,y.ANNOTATION_XML],[re.APPLET,y.APPLET],[re.AREA,y.AREA],[re.ARTICLE,y.ARTICLE],[re.ASIDE,y.ASIDE],[re.B,y.B],[re.BASE,y.BASE],[re.BASEFONT,y.BASEFONT],[re.BGSOUND,y.BGSOUND],[re.BIG,y.BIG],[re.BLOCKQUOTE,y.BLOCKQUOTE],[re.BODY,y.BODY],[re.BR,y.BR],[re.BUTTON,y.BUTTON],[re.CAPTION,y.CAPTION],[re.CENTER,y.CENTER],[re.CODE,y.CODE],[re.COL,y.COL],[re.COLGROUP,y.COLGROUP],[re.DD,y.DD],[re.DESC,y.DESC],[re.DETAILS,y.DETAILS],[re.DIALOG,y.DIALOG],[re.DIR,y.DIR],[re.DIV,y.DIV],[re.DL,y.DL],[re.DT,y.DT],[re.EM,y.EM],[re.EMBED,y.EMBED],[re.FIELDSET,y.FIELDSET],[re.FIGCAPTION,y.FIGCAPTION],[re.FIGURE,y.FIGURE],[re.FONT,y.FONT],[re.FOOTER,y.FOOTER],[re.FOREIGN_OBJECT,y.FOREIGN_OBJECT],[re.FORM,y.FORM],[re.FRAME,y.FRAME],[re.FRAMESET,y.FRAMESET],[re.H1,y.H1],[re.H2,y.H2],[re.H3,y.H3],[re.H4,y.H4],[re.H5,y.H5],[re.H6,y.H6],[re.HEAD,y.HEAD],[re.HEADER,y.HEADER],[re.HGROUP,y.HGROUP],[re.HR,y.HR],[re.HTML,y.HTML],[re.I,y.I],[re.IMG,y.IMG],[re.IMAGE,y.IMAGE],[re.INPUT,y.INPUT],[re.IFRAME,y.IFRAME],[re.KEYGEN,y.KEYGEN],[re.LABEL,y.LABEL],[re.LI,y.LI],[re.LINK,y.LINK],[re.LISTING,y.LISTING],[re.MAIN,y.MAIN],[re.MALIGNMARK,y.MALIGNMARK],[re.MARQUEE,y.MARQUEE],[re.MATH,y.MATH],[re.MENU,y.MENU],[re.META,y.META],[re.MGLYPH,y.MGLYPH],[re.MI,y.MI],[re.MO,y.MO],[re.MN,y.MN],[re.MS,y.MS],[re.MTEXT,y.MTEXT],[re.NAV,y.NAV],[re.NOBR,y.NOBR],[re.NOFRAMES,y.NOFRAMES],[re.NOEMBED,y.NOEMBED],[re.NOSCRIPT,y.NOSCRIPT],[re.OBJECT,y.OBJECT],[re.OL,y.OL],[re.OPTGROUP,y.OPTGROUP],[re.OPTION,y.OPTION],[re.P,y.P],[re.PARAM,y.PARAM],[re.PLAINTEXT,y.PLAINTEXT],[re.PRE,y.PRE],[re.RB,y.RB],[re.RP,y.RP],[re.RT,y.RT],[re.RTC,y.RTC],[re.RUBY,y.RUBY],[re.S,y.S],[re.SCRIPT,y.SCRIPT],[re.SEARCH,y.SEARCH],[re.SECTION,y.SECTION],[re.SELECT,y.SELECT],[re.SOURCE,y.SOURCE],[re.SMALL,y.SMALL],[re.SPAN,y.SPAN],[re.STRIKE,y.STRIKE],[re.STRONG,y.STRONG],[re.STYLE,y.STYLE],[re.SUB,y.SUB],[re.SUMMARY,y.SUMMARY],[re.SUP,y.SUP],[re.TABLE,y.TABLE],[re.TBODY,y.TBODY],[re.TEMPLATE,y.TEMPLATE],[re.TEXTAREA,y.TEXTAREA],[re.TFOOT,y.TFOOT],[re.TD,y.TD],[re.TH,y.TH],[re.THEAD,y.THEAD],[re.TITLE,y.TITLE],[re.TR,y.TR],[re.TRACK,y.TRACK],[re.TT,y.TT],[re.U,y.U],[re.UL,y.UL],[re.SVG,y.SVG],[re.VAR,y.VAR],[re.WBR,y.WBR],[re.XMP,y.XMP]]);function Jf(e){var n;return(n=U7.get(e))!==null&&n!==void 0?n:y.UNKNOWN}const _e=y,B7={[Te.HTML]:new Set([_e.ADDRESS,_e.APPLET,_e.AREA,_e.ARTICLE,_e.ASIDE,_e.BASE,_e.BASEFONT,_e.BGSOUND,_e.BLOCKQUOTE,_e.BODY,_e.BR,_e.BUTTON,_e.CAPTION,_e.CENTER,_e.COL,_e.COLGROUP,_e.DD,_e.DETAILS,_e.DIR,_e.DIV,_e.DL,_e.DT,_e.EMBED,_e.FIELDSET,_e.FIGCAPTION,_e.FIGURE,_e.FOOTER,_e.FORM,_e.FRAME,_e.FRAMESET,_e.H1,_e.H2,_e.H3,_e.H4,_e.H5,_e.H6,_e.HEAD,_e.HEADER,_e.HGROUP,_e.HR,_e.HTML,_e.IFRAME,_e.IMG,_e.INPUT,_e.LI,_e.LINK,_e.LISTING,_e.MAIN,_e.MARQUEE,_e.MENU,_e.META,_e.NAV,_e.NOEMBED,_e.NOFRAMES,_e.NOSCRIPT,_e.OBJECT,_e.OL,_e.P,_e.PARAM,_e.PLAINTEXT,_e.PRE,_e.SCRIPT,_e.SECTION,_e.SELECT,_e.SOURCE,_e.STYLE,_e.SUMMARY,_e.TABLE,_e.TBODY,_e.TD,_e.TEMPLATE,_e.TEXTAREA,_e.TFOOT,_e.TH,_e.THEAD,_e.TITLE,_e.TR,_e.TRACK,_e.UL,_e.WBR,_e.XMP]),[Te.MATHML]:new Set([_e.MI,_e.MO,_e.MN,_e.MS,_e.MTEXT,_e.ANNOTATION_XML]),[Te.SVG]:new Set([_e.TITLE,_e.FOREIGN_OBJECT,_e.DESC]),[Te.XLINK]:new Set,[Te.XML]:new Set,[Te.XMLNS]:new Set},xw=new Set([_e.H1,_e.H2,_e.H3,_e.H4,_e.H5,_e.H6]);re.STYLE,re.SCRIPT,re.XMP,re.IFRAME,re.NOEMBED,re.NOFRAMES,re.PLAINTEXT;var F;(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"})(F||(F={}));const Wn={DATA:F.DATA,RCDATA:F.RCDATA,RAWTEXT:F.RAWTEXT,SCRIPT_DATA:F.SCRIPT_DATA,PLAINTEXT:F.PLAINTEXT,CDATA_SECTION:F.CDATA_SECTION};function H7(e){return e>=M.DIGIT_0&&e<=M.DIGIT_9}function Sm(e){return e>=M.LATIN_CAPITAL_A&&e<=M.LATIN_CAPITAL_Z}function z7(e){return e>=M.LATIN_SMALL_A&&e<=M.LATIN_SMALL_Z}function Gs(e){return z7(e)||Sm(e)}function iA(e){return Gs(e)||H7(e)}function u1(e){return e+32}function T3(e){return e===M.SPACE||e===M.LINE_FEED||e===M.TABULATION||e===M.FORM_FEED}function oA(e){return T3(e)||e===M.SOLIDUS||e===M.GREATER_THAN_SIGN}function j7(e){return e===M.NULL?le.nullCharacterReference:e>1114111?le.characterReferenceOutsideUnicodeRange:p3(e)?le.surrogateCharacterReference:g3(e)?le.noncharacterCharacterReference:m3(e)||e===M.CARRIAGE_RETURN?le.controlCharacterReference:null}class V7{constructor(n,a){this.options=n,this.handler=a,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=F.DATA,this.returnState=F.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new k7(a),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new E3(y3,(s,f)=>{this.preprocessor.pos=this.entityStartPos+f-1,this._flushCodePointConsumedAsCharacterReference(s)},a.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(le.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:s=>{this._err(le.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+s)},validateNumericCharacterReference:s=>{const f=j7(s);f&&this._err(f,1)}}:void 0)}_err(n,a=0){var s,f;(f=(s=this.handler).onParseError)===null||f===void 0||f.call(s,this.preprocessor.getError(n,a))}getCurrentLocation(n){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-n,startOffset:this.preprocessor.offset-n,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const n=this._consume();this._ensureHibernation()||this._callState(n)}this.inLoop=!1}}pause(){this.paused=!0}resume(n){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||n==null||n())}write(n,a,s){this.active=!0,this.preprocessor.write(n,a),this._runParsingLoop(),this.paused||s==null||s()}insertHtmlAtCurrentPos(n){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(n),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(n){this.consumedAfterSnapshot+=n;for(let a=0;a<n;a++)this.preprocessor.advance()}_consumeSequenceIfMatch(n,a){return this.preprocessor.startsWith(n,a)?(this._advanceBy(n.length-1),!0):!1}_createStartTagToken(){this.currentToken={type:kt.START_TAG,tagName:"",tagID:y.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:kt.END_TAG,tagName:"",tagID:y.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(n){this.currentToken={type:kt.COMMENT,data:"",location:this.getCurrentLocation(n)}}_createDoctypeToken(n){this.currentToken={type:kt.DOCTYPE,name:n,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(n,a){this.currentCharacterToken={type:n,chars:a,location:this.currentLocation}}_createAttr(n){this.currentAttr={name:n,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var n,a;const s=this.currentToken;if(v3(s,this.currentAttr.name)===null){if(s.attrs.push(this.currentAttr),s.location&&this.currentLocation){const f=(n=(a=s.location).attrs)!==null&&n!==void 0?n:a.attrs=Object.create(null);f[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(le.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(n){this._emitCurrentCharacterToken(n.location),this.currentToken=null,n.location&&(n.location.endLine=this.preprocessor.line,n.location.endCol=this.preprocessor.col+1,n.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){const n=this.currentToken;this.prepareToken(n),n.tagID=Jf(n.tagName),n.type===kt.START_TAG?(this.lastStartTagName=n.tagName,this.handler.onStartTag(n)):(n.attrs.length>0&&this._err(le.endTagWithAttributes),n.selfClosing&&this._err(le.endTagWithTrailingSolidus),this.handler.onEndTag(n)),this.preprocessor.dropParsedChunk()}emitCurrentComment(n){this.prepareToken(n),this.handler.onComment(n),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(n){this.prepareToken(n),this.handler.onDoctype(n),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(n){if(this.currentCharacterToken){switch(n&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=n.startLine,this.currentCharacterToken.location.endCol=n.startCol,this.currentCharacterToken.location.endOffset=n.startOffset),this.currentCharacterToken.type){case kt.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case kt.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case kt.WHITESPACE_CHARACTER:{this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}}this.currentCharacterToken=null}}_emitEOFToken(){const n=this.getCurrentLocation(0);n&&(n.endLine=n.startLine,n.endCol=n.startCol,n.endOffset=n.startOffset),this._emitCurrentCharacterToken(n),this.handler.onEof({type:kt.EOF,location:n}),this.active=!1}_appendCharToCurrentCharacterToken(n,a){if(this.currentCharacterToken)if(this.currentCharacterToken.type===n){this.currentCharacterToken.chars+=a;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(n,a)}_emitCodePoint(n){const a=T3(n)?kt.WHITESPACE_CHARACTER:n===M.NULL?kt.NULL_CHARACTER:kt.CHARACTER;this._appendCharToCurrentCharacterToken(a,String.fromCodePoint(n))}_emitChars(n){this._appendCharToCurrentCharacterToken(kt.CHARACTER,n)}_startCharacterReference(){this.returnState=this.state,this.state=F.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?Lu.Attribute:Lu.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===F.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===F.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===F.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(n){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(n):this._emitCodePoint(n)}_callState(n){switch(this.state){case F.DATA:{this._stateData(n);break}case F.RCDATA:{this._stateRcdata(n);break}case F.RAWTEXT:{this._stateRawtext(n);break}case F.SCRIPT_DATA:{this._stateScriptData(n);break}case F.PLAINTEXT:{this._statePlaintext(n);break}case F.TAG_OPEN:{this._stateTagOpen(n);break}case F.END_TAG_OPEN:{this._stateEndTagOpen(n);break}case F.TAG_NAME:{this._stateTagName(n);break}case F.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(n);break}case F.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(n);break}case F.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(n);break}case F.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(n);break}case F.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(n);break}case F.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(n);break}case F.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(n);break}case F.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(n);break}case F.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(n);break}case F.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(n);break}case F.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(n);break}case F.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(n);break}case F.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(n);break}case F.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(n);break}case F.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(n);break}case F.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(n);break}case F.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(n);break}case F.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(n);break}case F.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(n);break}case F.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(n);break}case F.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(n);break}case F.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(n);break}case F.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(n);break}case F.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(n);break}case F.ATTRIBUTE_NAME:{this._stateAttributeName(n);break}case F.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(n);break}case F.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(n);break}case F.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(n);break}case F.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(n);break}case F.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(n);break}case F.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(n);break}case F.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(n);break}case F.BOGUS_COMMENT:{this._stateBogusComment(n);break}case F.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(n);break}case F.COMMENT_START:{this._stateCommentStart(n);break}case F.COMMENT_START_DASH:{this._stateCommentStartDash(n);break}case F.COMMENT:{this._stateComment(n);break}case F.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(n);break}case F.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(n);break}case F.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(n);break}case F.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(n);break}case F.COMMENT_END_DASH:{this._stateCommentEndDash(n);break}case F.COMMENT_END:{this._stateCommentEnd(n);break}case F.COMMENT_END_BANG:{this._stateCommentEndBang(n);break}case F.DOCTYPE:{this._stateDoctype(n);break}case F.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(n);break}case F.DOCTYPE_NAME:{this._stateDoctypeName(n);break}case F.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(n);break}case F.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(n);break}case F.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(n);break}case F.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(n);break}case F.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(n);break}case F.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(n);break}case F.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(n);break}case F.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(n);break}case F.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(n);break}case F.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(n);break}case F.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(n);break}case F.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(n);break}case F.BOGUS_DOCTYPE:{this._stateBogusDoctype(n);break}case F.CDATA_SECTION:{this._stateCdataSection(n);break}case F.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(n);break}case F.CDATA_SECTION_END:{this._stateCdataSectionEnd(n);break}case F.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case F.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(n);break}default:throw new Error("Unknown state")}}_stateData(n){switch(n){case M.LESS_THAN_SIGN:{this.state=F.TAG_OPEN;break}case M.AMPERSAND:{this._startCharacterReference();break}case M.NULL:{this._err(le.unexpectedNullCharacter),this._emitCodePoint(n);break}case M.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(n)}}_stateRcdata(n){switch(n){case M.AMPERSAND:{this._startCharacterReference();break}case M.LESS_THAN_SIGN:{this.state=F.RCDATA_LESS_THAN_SIGN;break}case M.NULL:{this._err(le.unexpectedNullCharacter),this._emitChars(xn);break}case M.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(n)}}_stateRawtext(n){switch(n){case M.LESS_THAN_SIGN:{this.state=F.RAWTEXT_LESS_THAN_SIGN;break}case M.NULL:{this._err(le.unexpectedNullCharacter),this._emitChars(xn);break}case M.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(n)}}_stateScriptData(n){switch(n){case M.LESS_THAN_SIGN:{this.state=F.SCRIPT_DATA_LESS_THAN_SIGN;break}case M.NULL:{this._err(le.unexpectedNullCharacter),this._emitChars(xn);break}case M.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(n)}}_statePlaintext(n){switch(n){case M.NULL:{this._err(le.unexpectedNullCharacter),this._emitChars(xn);break}case M.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(n)}}_stateTagOpen(n){if(Gs(n))this._createStartTagToken(),this.state=F.TAG_NAME,this._stateTagName(n);else switch(n){case M.EXCLAMATION_MARK:{this.state=F.MARKUP_DECLARATION_OPEN;break}case M.SOLIDUS:{this.state=F.END_TAG_OPEN;break}case M.QUESTION_MARK:{this._err(le.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=F.BOGUS_COMMENT,this._stateBogusComment(n);break}case M.EOF:{this._err(le.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(le.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=F.DATA,this._stateData(n)}}_stateEndTagOpen(n){if(Gs(n))this._createEndTagToken(),this.state=F.TAG_NAME,this._stateTagName(n);else switch(n){case M.GREATER_THAN_SIGN:{this._err(le.missingEndTagName),this.state=F.DATA;break}case M.EOF:{this._err(le.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err(le.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=F.BOGUS_COMMENT,this._stateBogusComment(n)}}_stateTagName(n){const a=this.currentToken;switch(n){case M.SPACE:case M.LINE_FEED:case M.TABULATION:case M.FORM_FEED:{this.state=F.BEFORE_ATTRIBUTE_NAME;break}case M.SOLIDUS:{this.state=F.SELF_CLOSING_START_TAG;break}case M.GREATER_THAN_SIGN:{this.state=F.DATA,this.emitCurrentTagToken();break}case M.NULL:{this._err(le.unexpectedNullCharacter),a.tagName+=xn;break}case M.EOF:{this._err(le.eofInTag),this._emitEOFToken();break}default:a.tagName+=String.fromCodePoint(Sm(n)?u1(n):n)}}_stateRcdataLessThanSign(n){n===M.SOLIDUS?this.state=F.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=F.RCDATA,this._stateRcdata(n))}_stateRcdataEndTagOpen(n){Gs(n)?(this.state=F.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(n)):(this._emitChars("</"),this.state=F.RCDATA,this._stateRcdata(n))}handleSpecialEndTag(n){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();this._createEndTagToken();const a=this.currentToken;switch(a.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case M.SPACE:case M.LINE_FEED:case M.TABULATION:case M.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=F.BEFORE_ATTRIBUTE_NAME,!1;case M.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=F.SELF_CLOSING_START_TAG,!1;case M.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=F.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(n){this.handleSpecialEndTag(n)&&(this._emitChars("</"),this.state=F.RCDATA,this._stateRcdata(n))}_stateRawtextLessThanSign(n){n===M.SOLIDUS?this.state=F.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=F.RAWTEXT,this._stateRawtext(n))}_stateRawtextEndTagOpen(n){Gs(n)?(this.state=F.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(n)):(this._emitChars("</"),this.state=F.RAWTEXT,this._stateRawtext(n))}_stateRawtextEndTagName(n){this.handleSpecialEndTag(n)&&(this._emitChars("</"),this.state=F.RAWTEXT,this._stateRawtext(n))}_stateScriptDataLessThanSign(n){switch(n){case M.SOLIDUS:{this.state=F.SCRIPT_DATA_END_TAG_OPEN;break}case M.EXCLAMATION_MARK:{this.state=F.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break}default:this._emitChars("<"),this.state=F.SCRIPT_DATA,this._stateScriptData(n)}}_stateScriptDataEndTagOpen(n){Gs(n)?(this.state=F.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(n)):(this._emitChars("</"),this.state=F.SCRIPT_DATA,this._stateScriptData(n))}_stateScriptDataEndTagName(n){this.handleSpecialEndTag(n)&&(this._emitChars("</"),this.state=F.SCRIPT_DATA,this._stateScriptData(n))}_stateScriptDataEscapeStart(n){n===M.HYPHEN_MINUS?(this.state=F.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=F.SCRIPT_DATA,this._stateScriptData(n))}_stateScriptDataEscapeStartDash(n){n===M.HYPHEN_MINUS?(this.state=F.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=F.SCRIPT_DATA,this._stateScriptData(n))}_stateScriptDataEscaped(n){switch(n){case M.HYPHEN_MINUS:{this.state=F.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case M.LESS_THAN_SIGN:{this.state=F.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case M.NULL:{this._err(le.unexpectedNullCharacter),this._emitChars(xn);break}case M.EOF:{this._err(le.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(n)}}_stateScriptDataEscapedDash(n){switch(n){case M.HYPHEN_MINUS:{this.state=F.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case M.LESS_THAN_SIGN:{this.state=F.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case M.NULL:{this._err(le.unexpectedNullCharacter),this.state=F.SCRIPT_DATA_ESCAPED,this._emitChars(xn);break}case M.EOF:{this._err(le.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=F.SCRIPT_DATA_ESCAPED,this._emitCodePoint(n)}}_stateScriptDataEscapedDashDash(n){switch(n){case M.HYPHEN_MINUS:{this._emitChars("-");break}case M.LESS_THAN_SIGN:{this.state=F.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case M.GREATER_THAN_SIGN:{this.state=F.SCRIPT_DATA,this._emitChars(">");break}case M.NULL:{this._err(le.unexpectedNullCharacter),this.state=F.SCRIPT_DATA_ESCAPED,this._emitChars(xn);break}case M.EOF:{this._err(le.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=F.SCRIPT_DATA_ESCAPED,this._emitCodePoint(n)}}_stateScriptDataEscapedLessThanSign(n){n===M.SOLIDUS?this.state=F.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:Gs(n)?(this._emitChars("<"),this.state=F.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(n)):(this._emitChars("<"),this.state=F.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(n))}_stateScriptDataEscapedEndTagOpen(n){Gs(n)?(this.state=F.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(n)):(this._emitChars("</"),this.state=F.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(n))}_stateScriptDataEscapedEndTagName(n){this.handleSpecialEndTag(n)&&(this._emitChars("</"),this.state=F.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(n))}_stateScriptDataDoubleEscapeStart(n){if(this.preprocessor.startsWith(Va.SCRIPT,!1)&&oA(this.preprocessor.peek(Va.SCRIPT.length))){this._emitCodePoint(n);for(let a=0;a<Va.SCRIPT.length;a++)this._emitCodePoint(this._consume());this.state=F.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=F.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(n))}_stateScriptDataDoubleEscaped(n){switch(n){case M.HYPHEN_MINUS:{this.state=F.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case M.LESS_THAN_SIGN:{this.state=F.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case M.NULL:{this._err(le.unexpectedNullCharacter),this._emitChars(xn);break}case M.EOF:{this._err(le.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(n)}}_stateScriptDataDoubleEscapedDash(n){switch(n){case M.HYPHEN_MINUS:{this.state=F.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case M.LESS_THAN_SIGN:{this.state=F.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case M.NULL:{this._err(le.unexpectedNullCharacter),this.state=F.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(xn);break}case M.EOF:{this._err(le.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=F.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(n)}}_stateScriptDataDoubleEscapedDashDash(n){switch(n){case M.HYPHEN_MINUS:{this._emitChars("-");break}case M.LESS_THAN_SIGN:{this.state=F.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case M.GREATER_THAN_SIGN:{this.state=F.SCRIPT_DATA,this._emitChars(">");break}case M.NULL:{this._err(le.unexpectedNullCharacter),this.state=F.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(xn);break}case M.EOF:{this._err(le.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=F.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(n)}}_stateScriptDataDoubleEscapedLessThanSign(n){n===M.SOLIDUS?(this.state=F.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=F.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(n))}_stateScriptDataDoubleEscapeEnd(n){if(this.preprocessor.startsWith(Va.SCRIPT,!1)&&oA(this.preprocessor.peek(Va.SCRIPT.length))){this._emitCodePoint(n);for(let a=0;a<Va.SCRIPT.length;a++)this._emitCodePoint(this._consume());this.state=F.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=F.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(n))}_stateBeforeAttributeName(n){switch(n){case M.SPACE:case M.LINE_FEED:case M.TABULATION:case M.FORM_FEED:break;case M.SOLIDUS:case M.GREATER_THAN_SIGN:case M.EOF:{this.state=F.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(n);break}case M.EQUALS_SIGN:{this._err(le.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=F.ATTRIBUTE_NAME;break}default:this._createAttr(""),this.state=F.ATTRIBUTE_NAME,this._stateAttributeName(n)}}_stateAttributeName(n){switch(n){case M.SPACE:case M.LINE_FEED:case M.TABULATION:case M.FORM_FEED:case M.SOLIDUS:case M.GREATER_THAN_SIGN:case M.EOF:{this._leaveAttrName(),this.state=F.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(n);break}case M.EQUALS_SIGN:{this._leaveAttrName(),this.state=F.BEFORE_ATTRIBUTE_VALUE;break}case M.QUOTATION_MARK:case M.APOSTROPHE:case M.LESS_THAN_SIGN:{this._err(le.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(n);break}case M.NULL:{this._err(le.unexpectedNullCharacter),this.currentAttr.name+=xn;break}default:this.currentAttr.name+=String.fromCodePoint(Sm(n)?u1(n):n)}}_stateAfterAttributeName(n){switch(n){case M.SPACE:case M.LINE_FEED:case M.TABULATION:case M.FORM_FEED:break;case M.SOLIDUS:{this.state=F.SELF_CLOSING_START_TAG;break}case M.EQUALS_SIGN:{this.state=F.BEFORE_ATTRIBUTE_VALUE;break}case M.GREATER_THAN_SIGN:{this.state=F.DATA,this.emitCurrentTagToken();break}case M.EOF:{this._err(le.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=F.ATTRIBUTE_NAME,this._stateAttributeName(n)}}_stateBeforeAttributeValue(n){switch(n){case M.SPACE:case M.LINE_FEED:case M.TABULATION:case M.FORM_FEED:break;case M.QUOTATION_MARK:{this.state=F.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case M.APOSTROPHE:{this.state=F.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case M.GREATER_THAN_SIGN:{this._err(le.missingAttributeValue),this.state=F.DATA,this.emitCurrentTagToken();break}default:this.state=F.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(n)}}_stateAttributeValueDoubleQuoted(n){switch(n){case M.QUOTATION_MARK:{this.state=F.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case M.AMPERSAND:{this._startCharacterReference();break}case M.NULL:{this._err(le.unexpectedNullCharacter),this.currentAttr.value+=xn;break}case M.EOF:{this._err(le.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(n)}}_stateAttributeValueSingleQuoted(n){switch(n){case M.APOSTROPHE:{this.state=F.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case M.AMPERSAND:{this._startCharacterReference();break}case M.NULL:{this._err(le.unexpectedNullCharacter),this.currentAttr.value+=xn;break}case M.EOF:{this._err(le.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(n)}}_stateAttributeValueUnquoted(n){switch(n){case M.SPACE:case M.LINE_FEED:case M.TABULATION:case M.FORM_FEED:{this._leaveAttrValue(),this.state=F.BEFORE_ATTRIBUTE_NAME;break}case M.AMPERSAND:{this._startCharacterReference();break}case M.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=F.DATA,this.emitCurrentTagToken();break}case M.NULL:{this._err(le.unexpectedNullCharacter),this.currentAttr.value+=xn;break}case M.QUOTATION_MARK:case M.APOSTROPHE:case M.LESS_THAN_SIGN:case M.EQUALS_SIGN:case M.GRAVE_ACCENT:{this._err(le.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(n);break}case M.EOF:{this._err(le.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(n)}}_stateAfterAttributeValueQuoted(n){switch(n){case M.SPACE:case M.LINE_FEED:case M.TABULATION:case M.FORM_FEED:{this._leaveAttrValue(),this.state=F.BEFORE_ATTRIBUTE_NAME;break}case M.SOLIDUS:{this._leaveAttrValue(),this.state=F.SELF_CLOSING_START_TAG;break}case M.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=F.DATA,this.emitCurrentTagToken();break}case M.EOF:{this._err(le.eofInTag),this._emitEOFToken();break}default:this._err(le.missingWhitespaceBetweenAttributes),this.state=F.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(n)}}_stateSelfClosingStartTag(n){switch(n){case M.GREATER_THAN_SIGN:{const a=this.currentToken;a.selfClosing=!0,this.state=F.DATA,this.emitCurrentTagToken();break}case M.EOF:{this._err(le.eofInTag),this._emitEOFToken();break}default:this._err(le.unexpectedSolidusInTag),this.state=F.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(n)}}_stateBogusComment(n){const a=this.currentToken;switch(n){case M.GREATER_THAN_SIGN:{this.state=F.DATA,this.emitCurrentComment(a);break}case M.EOF:{this.emitCurrentComment(a),this._emitEOFToken();break}case M.NULL:{this._err(le.unexpectedNullCharacter),a.data+=xn;break}default:a.data+=String.fromCodePoint(n)}}_stateMarkupDeclarationOpen(n){this._consumeSequenceIfMatch(Va.DASH_DASH,!0)?(this._createCommentToken(Va.DASH_DASH.length+1),this.state=F.COMMENT_START):this._consumeSequenceIfMatch(Va.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(Va.DOCTYPE.length+1),this.state=F.DOCTYPE):this._consumeSequenceIfMatch(Va.CDATA_START,!0)?this.inForeignNode?this.state=F.CDATA_SECTION:(this._err(le.cdataInHtmlContent),this._createCommentToken(Va.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=F.BOGUS_COMMENT):this._ensureHibernation()||(this._err(le.incorrectlyOpenedComment),this._createCommentToken(2),this.state=F.BOGUS_COMMENT,this._stateBogusComment(n))}_stateCommentStart(n){switch(n){case M.HYPHEN_MINUS:{this.state=F.COMMENT_START_DASH;break}case M.GREATER_THAN_SIGN:{this._err(le.abruptClosingOfEmptyComment),this.state=F.DATA;const a=this.currentToken;this.emitCurrentComment(a);break}default:this.state=F.COMMENT,this._stateComment(n)}}_stateCommentStartDash(n){const a=this.currentToken;switch(n){case M.HYPHEN_MINUS:{this.state=F.COMMENT_END;break}case M.GREATER_THAN_SIGN:{this._err(le.abruptClosingOfEmptyComment),this.state=F.DATA,this.emitCurrentComment(a);break}case M.EOF:{this._err(le.eofInComment),this.emitCurrentComment(a),this._emitEOFToken();break}default:a.data+="-",this.state=F.COMMENT,this._stateComment(n)}}_stateComment(n){const a=this.currentToken;switch(n){case M.HYPHEN_MINUS:{this.state=F.COMMENT_END_DASH;break}case M.LESS_THAN_SIGN:{a.data+="<",this.state=F.COMMENT_LESS_THAN_SIGN;break}case M.NULL:{this._err(le.unexpectedNullCharacter),a.data+=xn;break}case M.EOF:{this._err(le.eofInComment),this.emitCurrentComment(a),this._emitEOFToken();break}default:a.data+=String.fromCodePoint(n)}}_stateCommentLessThanSign(n){const a=this.currentToken;switch(n){case M.EXCLAMATION_MARK:{a.data+="!",this.state=F.COMMENT_LESS_THAN_SIGN_BANG;break}case M.LESS_THAN_SIGN:{a.data+="<";break}default:this.state=F.COMMENT,this._stateComment(n)}}_stateCommentLessThanSignBang(n){n===M.HYPHEN_MINUS?this.state=F.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=F.COMMENT,this._stateComment(n))}_stateCommentLessThanSignBangDash(n){n===M.HYPHEN_MINUS?this.state=F.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=F.COMMENT_END_DASH,this._stateCommentEndDash(n))}_stateCommentLessThanSignBangDashDash(n){n!==M.GREATER_THAN_SIGN&&n!==M.EOF&&this._err(le.nestedComment),this.state=F.COMMENT_END,this._stateCommentEnd(n)}_stateCommentEndDash(n){const a=this.currentToken;switch(n){case M.HYPHEN_MINUS:{this.state=F.COMMENT_END;break}case M.EOF:{this._err(le.eofInComment),this.emitCurrentComment(a),this._emitEOFToken();break}default:a.data+="-",this.state=F.COMMENT,this._stateComment(n)}}_stateCommentEnd(n){const a=this.currentToken;switch(n){case M.GREATER_THAN_SIGN:{this.state=F.DATA,this.emitCurrentComment(a);break}case M.EXCLAMATION_MARK:{this.state=F.COMMENT_END_BANG;break}case M.HYPHEN_MINUS:{a.data+="-";break}case M.EOF:{this._err(le.eofInComment),this.emitCurrentComment(a),this._emitEOFToken();break}default:a.data+="--",this.state=F.COMMENT,this._stateComment(n)}}_stateCommentEndBang(n){const a=this.currentToken;switch(n){case M.HYPHEN_MINUS:{a.data+="--!",this.state=F.COMMENT_END_DASH;break}case M.GREATER_THAN_SIGN:{this._err(le.incorrectlyClosedComment),this.state=F.DATA,this.emitCurrentComment(a);break}case M.EOF:{this._err(le.eofInComment),this.emitCurrentComment(a),this._emitEOFToken();break}default:a.data+="--!",this.state=F.COMMENT,this._stateComment(n)}}_stateDoctype(n){switch(n){case M.SPACE:case M.LINE_FEED:case M.TABULATION:case M.FORM_FEED:{this.state=F.BEFORE_DOCTYPE_NAME;break}case M.GREATER_THAN_SIGN:{this.state=F.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(n);break}case M.EOF:{this._err(le.eofInDoctype),this._createDoctypeToken(null);const a=this.currentToken;a.forceQuirks=!0,this.emitCurrentDoctype(a),this._emitEOFToken();break}default:this._err(le.missingWhitespaceBeforeDoctypeName),this.state=F.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(n)}}_stateBeforeDoctypeName(n){if(Sm(n))this._createDoctypeToken(String.fromCharCode(u1(n))),this.state=F.DOCTYPE_NAME;else switch(n){case M.SPACE:case M.LINE_FEED:case M.TABULATION:case M.FORM_FEED:break;case M.NULL:{this._err(le.unexpectedNullCharacter),this._createDoctypeToken(xn),this.state=F.DOCTYPE_NAME;break}case M.GREATER_THAN_SIGN:{this._err(le.missingDoctypeName),this._createDoctypeToken(null);const a=this.currentToken;a.forceQuirks=!0,this.emitCurrentDoctype(a),this.state=F.DATA;break}case M.EOF:{this._err(le.eofInDoctype),this._createDoctypeToken(null);const a=this.currentToken;a.forceQuirks=!0,this.emitCurrentDoctype(a),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(n)),this.state=F.DOCTYPE_NAME}}_stateDoctypeName(n){const a=this.currentToken;switch(n){case M.SPACE:case M.LINE_FEED:case M.TABULATION:case M.FORM_FEED:{this.state=F.AFTER_DOCTYPE_NAME;break}case M.GREATER_THAN_SIGN:{this.state=F.DATA,this.emitCurrentDoctype(a);break}case M.NULL:{this._err(le.unexpectedNullCharacter),a.name+=xn;break}case M.EOF:{this._err(le.eofInDoctype),a.forceQuirks=!0,this.emitCurrentDoctype(a),this._emitEOFToken();break}default:a.name+=String.fromCodePoint(Sm(n)?u1(n):n)}}_stateAfterDoctypeName(n){const a=this.currentToken;switch(n){case M.SPACE:case M.LINE_FEED:case M.TABULATION:case M.FORM_FEED:break;case M.GREATER_THAN_SIGN:{this.state=F.DATA,this.emitCurrentDoctype(a);break}case M.EOF:{this._err(le.eofInDoctype),a.forceQuirks=!0,this.emitCurrentDoctype(a),this._emitEOFToken();break}default:this._consumeSequenceIfMatch(Va.PUBLIC,!1)?this.state=F.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(Va.SYSTEM,!1)?this.state=F.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(le.invalidCharacterSequenceAfterDoctypeName),a.forceQuirks=!0,this.state=F.BOGUS_DOCTYPE,this._stateBogusDoctype(n))}}_stateAfterDoctypePublicKeyword(n){const a=this.currentToken;switch(n){case M.SPACE:case M.LINE_FEED:case M.TABULATION:case M.FORM_FEED:{this.state=F.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case M.QUOTATION_MARK:{this._err(le.missingWhitespaceAfterDoctypePublicKeyword),a.publicId="",this.state=F.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case M.APOSTROPHE:{this._err(le.missingWhitespaceAfterDoctypePublicKeyword),a.publicId="",this.state=F.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case M.GREATER_THAN_SIGN:{this._err(le.missingDoctypePublicIdentifier),a.forceQuirks=!0,this.state=F.DATA,this.emitCurrentDoctype(a);break}case M.EOF:{this._err(le.eofInDoctype),a.forceQuirks=!0,this.emitCurrentDoctype(a),this._emitEOFToken();break}default:this._err(le.missingQuoteBeforeDoctypePublicIdentifier),a.forceQuirks=!0,this.state=F.BOGUS_DOCTYPE,this._stateBogusDoctype(n)}}_stateBeforeDoctypePublicIdentifier(n){const a=this.currentToken;switch(n){case M.SPACE:case M.LINE_FEED:case M.TABULATION:case M.FORM_FEED:break;case M.QUOTATION_MARK:{a.publicId="",this.state=F.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case M.APOSTROPHE:{a.publicId="",this.state=F.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case M.GREATER_THAN_SIGN:{this._err(le.missingDoctypePublicIdentifier),a.forceQuirks=!0,this.state=F.DATA,this.emitCurrentDoctype(a);break}case M.EOF:{this._err(le.eofInDoctype),a.forceQuirks=!0,this.emitCurrentDoctype(a),this._emitEOFToken();break}default:this._err(le.missingQuoteBeforeDoctypePublicIdentifier),a.forceQuirks=!0,this.state=F.BOGUS_DOCTYPE,this._stateBogusDoctype(n)}}_stateDoctypePublicIdentifierDoubleQuoted(n){const a=this.currentToken;switch(n){case M.QUOTATION_MARK:{this.state=F.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case M.NULL:{this._err(le.unexpectedNullCharacter),a.publicId+=xn;break}case M.GREATER_THAN_SIGN:{this._err(le.abruptDoctypePublicIdentifier),a.forceQuirks=!0,this.emitCurrentDoctype(a),this.state=F.DATA;break}case M.EOF:{this._err(le.eofInDoctype),a.forceQuirks=!0,this.emitCurrentDoctype(a),this._emitEOFToken();break}default:a.publicId+=String.fromCodePoint(n)}}_stateDoctypePublicIdentifierSingleQuoted(n){const a=this.currentToken;switch(n){case M.APOSTROPHE:{this.state=F.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case M.NULL:{this._err(le.unexpectedNullCharacter),a.publicId+=xn;break}case M.GREATER_THAN_SIGN:{this._err(le.abruptDoctypePublicIdentifier),a.forceQuirks=!0,this.emitCurrentDoctype(a),this.state=F.DATA;break}case M.EOF:{this._err(le.eofInDoctype),a.forceQuirks=!0,this.emitCurrentDoctype(a),this._emitEOFToken();break}default:a.publicId+=String.fromCodePoint(n)}}_stateAfterDoctypePublicIdentifier(n){const a=this.currentToken;switch(n){case M.SPACE:case M.LINE_FEED:case M.TABULATION:case M.FORM_FEED:{this.state=F.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case M.GREATER_THAN_SIGN:{this.state=F.DATA,this.emitCurrentDoctype(a);break}case M.QUOTATION_MARK:{this._err(le.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),a.systemId="",this.state=F.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case M.APOSTROPHE:{this._err(le.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),a.systemId="",this.state=F.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case M.EOF:{this._err(le.eofInDoctype),a.forceQuirks=!0,this.emitCurrentDoctype(a),this._emitEOFToken();break}default:this._err(le.missingQuoteBeforeDoctypeSystemIdentifier),a.forceQuirks=!0,this.state=F.BOGUS_DOCTYPE,this._stateBogusDoctype(n)}}_stateBetweenDoctypePublicAndSystemIdentifiers(n){const a=this.currentToken;switch(n){case M.SPACE:case M.LINE_FEED:case M.TABULATION:case M.FORM_FEED:break;case M.GREATER_THAN_SIGN:{this.emitCurrentDoctype(a),this.state=F.DATA;break}case M.QUOTATION_MARK:{a.systemId="",this.state=F.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case M.APOSTROPHE:{a.systemId="",this.state=F.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case M.EOF:{this._err(le.eofInDoctype),a.forceQuirks=!0,this.emitCurrentDoctype(a),this._emitEOFToken();break}default:this._err(le.missingQuoteBeforeDoctypeSystemIdentifier),a.forceQuirks=!0,this.state=F.BOGUS_DOCTYPE,this._stateBogusDoctype(n)}}_stateAfterDoctypeSystemKeyword(n){const a=this.currentToken;switch(n){case M.SPACE:case M.LINE_FEED:case M.TABULATION:case M.FORM_FEED:{this.state=F.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case M.QUOTATION_MARK:{this._err(le.missingWhitespaceAfterDoctypeSystemKeyword),a.systemId="",this.state=F.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case M.APOSTROPHE:{this._err(le.missingWhitespaceAfterDoctypeSystemKeyword),a.systemId="",this.state=F.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case M.GREATER_THAN_SIGN:{this._err(le.missingDoctypeSystemIdentifier),a.forceQuirks=!0,this.state=F.DATA,this.emitCurrentDoctype(a);break}case M.EOF:{this._err(le.eofInDoctype),a.forceQuirks=!0,this.emitCurrentDoctype(a),this._emitEOFToken();break}default:this._err(le.missingQuoteBeforeDoctypeSystemIdentifier),a.forceQuirks=!0,this.state=F.BOGUS_DOCTYPE,this._stateBogusDoctype(n)}}_stateBeforeDoctypeSystemIdentifier(n){const a=this.currentToken;switch(n){case M.SPACE:case M.LINE_FEED:case M.TABULATION:case M.FORM_FEED:break;case M.QUOTATION_MARK:{a.systemId="",this.state=F.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case M.APOSTROPHE:{a.systemId="",this.state=F.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case M.GREATER_THAN_SIGN:{this._err(le.missingDoctypeSystemIdentifier),a.forceQuirks=!0,this.state=F.DATA,this.emitCurrentDoctype(a);break}case M.EOF:{this._err(le.eofInDoctype),a.forceQuirks=!0,this.emitCurrentDoctype(a),this._emitEOFToken();break}default:this._err(le.missingQuoteBeforeDoctypeSystemIdentifier),a.forceQuirks=!0,this.state=F.BOGUS_DOCTYPE,this._stateBogusDoctype(n)}}_stateDoctypeSystemIdentifierDoubleQuoted(n){const a=this.currentToken;switch(n){case M.QUOTATION_MARK:{this.state=F.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case M.NULL:{this._err(le.unexpectedNullCharacter),a.systemId+=xn;break}case M.GREATER_THAN_SIGN:{this._err(le.abruptDoctypeSystemIdentifier),a.forceQuirks=!0,this.emitCurrentDoctype(a),this.state=F.DATA;break}case M.EOF:{this._err(le.eofInDoctype),a.forceQuirks=!0,this.emitCurrentDoctype(a),this._emitEOFToken();break}default:a.systemId+=String.fromCodePoint(n)}}_stateDoctypeSystemIdentifierSingleQuoted(n){const a=this.currentToken;switch(n){case M.APOSTROPHE:{this.state=F.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case M.NULL:{this._err(le.unexpectedNullCharacter),a.systemId+=xn;break}case M.GREATER_THAN_SIGN:{this._err(le.abruptDoctypeSystemIdentifier),a.forceQuirks=!0,this.emitCurrentDoctype(a),this.state=F.DATA;break}case M.EOF:{this._err(le.eofInDoctype),a.forceQuirks=!0,this.emitCurrentDoctype(a),this._emitEOFToken();break}default:a.systemId+=String.fromCodePoint(n)}}_stateAfterDoctypeSystemIdentifier(n){const a=this.currentToken;switch(n){case M.SPACE:case M.LINE_FEED:case M.TABULATION:case M.FORM_FEED:break;case M.GREATER_THAN_SIGN:{this.emitCurrentDoctype(a),this.state=F.DATA;break}case M.EOF:{this._err(le.eofInDoctype),a.forceQuirks=!0,this.emitCurrentDoctype(a),this._emitEOFToken();break}default:this._err(le.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=F.BOGUS_DOCTYPE,this._stateBogusDoctype(n)}}_stateBogusDoctype(n){const a=this.currentToken;switch(n){case M.GREATER_THAN_SIGN:{this.emitCurrentDoctype(a),this.state=F.DATA;break}case M.NULL:{this._err(le.unexpectedNullCharacter);break}case M.EOF:{this.emitCurrentDoctype(a),this._emitEOFToken();break}}}_stateCdataSection(n){switch(n){case M.RIGHT_SQUARE_BRACKET:{this.state=F.CDATA_SECTION_BRACKET;break}case M.EOF:{this._err(le.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(n)}}_stateCdataSectionBracket(n){n===M.RIGHT_SQUARE_BRACKET?this.state=F.CDATA_SECTION_END:(this._emitChars("]"),this.state=F.CDATA_SECTION,this._stateCdataSection(n))}_stateCdataSectionEnd(n){switch(n){case M.GREATER_THAN_SIGN:{this.state=F.DATA;break}case M.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:this._emitChars("]]"),this.state=F.CDATA_SECTION,this._stateCdataSection(n)}}_stateCharacterReference(){let n=this.entityDecoder.write(this.preprocessor.html,this.preprocessor.pos);if(n<0)if(this.preprocessor.lastChunkWritten)n=this.entityDecoder.end();else{this.active=!1,this.preprocessor.pos=this.preprocessor.html.length-1,this.consumedAfterSnapshot=0,this.preprocessor.endOfChunkHit=!0;return}n===0?(this.preprocessor.pos=this.entityStartPos,this._flushCodePointConsumedAsCharacterReference(M.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&iA(this.preprocessor.peek(1))?F.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(n){iA(n)?this._flushCodePointConsumedAsCharacterReference(n):(n===M.SEMICOLON&&this._err(le.unknownNamedCharacterReference),this.state=this.returnState,this._callState(n))}}const w3=new Set([y.DD,y.DT,y.LI,y.OPTGROUP,y.OPTION,y.P,y.RB,y.RP,y.RT,y.RTC]),uA=new Set([...w3,y.CAPTION,y.COLGROUP,y.TBODY,y.TD,y.TFOOT,y.TH,y.THEAD,y.TR]),k1=new Set([y.APPLET,y.CAPTION,y.HTML,y.MARQUEE,y.OBJECT,y.TABLE,y.TD,y.TEMPLATE,y.TH]),Y7=new Set([...k1,y.OL,y.UL]),W7=new Set([...k1,y.BUTTON]),sA=new Set([y.ANNOTATION_XML,y.MI,y.MN,y.MO,y.MS,y.MTEXT]),lA=new Set([y.DESC,y.FOREIGN_OBJECT,y.TITLE]),q7=new Set([y.TR,y.TEMPLATE,y.HTML]),Q7=new Set([y.TBODY,y.TFOOT,y.THEAD,y.TEMPLATE,y.HTML]),$7=new Set([y.TABLE,y.TEMPLATE,y.HTML]),G7=new Set([y.TD,y.TH]);class X7{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(n,a,s){this.treeAdapter=a,this.handler=s,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=y.UNKNOWN,this.current=n}_indexOf(n){return this.items.lastIndexOf(n,this.stackTop)}_isInTemplate(){return this.currentTagId===y.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===Te.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(n,a){this.stackTop++,this.items[this.stackTop]=n,this.current=n,this.tagIDs[this.stackTop]=a,this.currentTagId=a,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(n,a,!0)}pop(){const n=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(n,!0)}replace(n,a){const s=this._indexOf(n);this.items[s]=a,s===this.stackTop&&(this.current=a)}insertAfter(n,a,s){const f=this._indexOf(n)+1;this.items.splice(f,0,a),this.tagIDs.splice(f,0,s),this.stackTop++,f===this.stackTop&&this._updateCurrentElement(),this.handler.onItemPush(this.current,this.currentTagId,f===this.stackTop)}popUntilTagNamePopped(n){let a=this.stackTop+1;do a=this.tagIDs.lastIndexOf(n,a-1);while(a>0&&this.treeAdapter.getNamespaceURI(this.items[a])!==Te.HTML);this.shortenToLength(a<0?0:a)}shortenToLength(n){for(;this.stackTop>=n;){const a=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(a,this.stackTop<n)}}popUntilElementPopped(n){const a=this._indexOf(n);this.shortenToLength(a<0?0:a)}popUntilPopped(n,a){const s=this._indexOfTagNames(n,a);this.shortenToLength(s<0?0:s)}popUntilNumberedHeaderPopped(){this.popUntilPopped(xw,Te.HTML)}popUntilTableCellPopped(){this.popUntilPopped(G7,Te.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(n,a){for(let s=this.stackTop;s>=0;s--)if(n.has(this.tagIDs[s])&&this.treeAdapter.getNamespaceURI(this.items[s])===a)return s;return-1}clearBackTo(n,a){const s=this._indexOfTagNames(n,a);this.shortenToLength(s+1)}clearBackToTableContext(){this.clearBackTo($7,Te.HTML)}clearBackToTableBodyContext(){this.clearBackTo(Q7,Te.HTML)}clearBackToTableRowContext(){this.clearBackTo(q7,Te.HTML)}remove(n){const a=this._indexOf(n);a>=0&&(a===this.stackTop?this.pop():(this.items.splice(a,1),this.tagIDs.splice(a,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(n,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===y.BODY?this.items[1]:null}contains(n){return this._indexOf(n)>-1}getCommonAncestor(n){const a=this._indexOf(n)-1;return a>=0?this.items[a]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===y.HTML}hasInDynamicScope(n,a){for(let s=this.stackTop;s>=0;s--){const f=this.tagIDs[s];switch(this.treeAdapter.getNamespaceURI(this.items[s])){case Te.HTML:{if(f===n)return!0;if(a.has(f))return!1;break}case Te.SVG:{if(lA.has(f))return!1;break}case Te.MATHML:{if(sA.has(f))return!1;break}}}return!0}hasInScope(n){return this.hasInDynamicScope(n,k1)}hasInListItemScope(n){return this.hasInDynamicScope(n,Y7)}hasInButtonScope(n){return this.hasInDynamicScope(n,W7)}hasNumberedHeaderInScope(){for(let n=this.stackTop;n>=0;n--){const a=this.tagIDs[n];switch(this.treeAdapter.getNamespaceURI(this.items[n])){case Te.HTML:{if(xw.has(a))return!0;if(k1.has(a))return!1;break}case Te.SVG:{if(lA.has(a))return!1;break}case Te.MATHML:{if(sA.has(a))return!1;break}}}return!0}hasInTableScope(n){for(let a=this.stackTop;a>=0;a--)if(this.treeAdapter.getNamespaceURI(this.items[a])===Te.HTML)switch(this.tagIDs[a]){case n:return!0;case y.TABLE:case y.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===Te.HTML)switch(this.tagIDs[n]){case y.TBODY:case y.THEAD:case y.TFOOT:return!0;case y.TABLE:case y.HTML:return!1}return!0}hasInSelectScope(n){for(let a=this.stackTop;a>=0;a--)if(this.treeAdapter.getNamespaceURI(this.items[a])===Te.HTML)switch(this.tagIDs[a]){case n:return!0;case y.OPTION:case y.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;w3.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;uA.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(n){for(;this.currentTagId!==n&&uA.has(this.currentTagId);)this.pop()}}const $T=3;var zo;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(zo||(zo={}));const cA={type:zo.Marker};class K7{constructor(n){this.treeAdapter=n,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(n,a){const s=[],f=a.length,p=this.treeAdapter.getTagName(n),d=this.treeAdapter.getNamespaceURI(n);for(let g=0;g<this.entries.length;g++){const E=this.entries[g];if(E.type===zo.Marker)break;const{element:T}=E;if(this.treeAdapter.getTagName(T)===p&&this.treeAdapter.getNamespaceURI(T)===d){const C=this.treeAdapter.getAttrList(T);C.length===f&&s.push({idx:g,attrs:C})}}return s}_ensureNoahArkCondition(n){if(this.entries.length<$T)return;const a=this.treeAdapter.getAttrList(n),s=this._getNoahArkConditionCandidates(n,a);if(s.length<$T)return;const f=new Map(a.map(d=>[d.name,d.value]));let p=0;for(let d=0;d<s.length;d++){const g=s[d];g.attrs.every(E=>f.get(E.name)===E.value)&&(p+=1,p>=$T&&this.entries.splice(g.idx,1))}}insertMarker(){this.entries.unshift(cA)}pushElement(n,a){this._ensureNoahArkCondition(n),this.entries.unshift({type:zo.Element,element:n,token:a})}insertElementAfterBookmark(n,a){const s=this.entries.indexOf(this.bookmark);this.entries.splice(s,0,{type:zo.Element,element:n,token:a})}removeEntry(n){const a=this.entries.indexOf(n);a>=0&&this.entries.splice(a,1)}clearToLastMarker(){const n=this.entries.indexOf(cA);n>=0?this.entries.splice(0,n+1):this.entries.length=0}getElementEntryInScopeWithTagName(n){const a=this.entries.find(s=>s.type===zo.Marker||this.treeAdapter.getTagName(s.element)===n);return a&&a.type===zo.Element?a:null}getElementEntry(n){return this.entries.find(a=>a.type===zo.Element&&a.element===n)}}const Xs={createDocument(){return{nodeName:"#document",mode:Ai.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(e,n,a){return{nodeName:e,tagName:e,attrs:a,namespaceURI:n,childNodes:[],parentNode:null}},createCommentNode(e){return{nodeName:"#comment",data:e,parentNode:null}},createTextNode(e){return{nodeName:"#text",value:e,parentNode:null}},appendChild(e,n){e.childNodes.push(n),n.parentNode=e},insertBefore(e,n,a){const s=e.childNodes.indexOf(a);e.childNodes.splice(s,0,n),n.parentNode=e},setTemplateContent(e,n){e.content=n},getTemplateContent(e){return e.content},setDocumentType(e,n,a,s){const f=e.childNodes.find(p=>p.nodeName==="#documentType");if(f)f.name=n,f.publicId=a,f.systemId=s;else{const p={nodeName:"#documentType",name:n,publicId:a,systemId:s,parentNode:null};Xs.appendChild(e,p)}},setDocumentMode(e,n){e.mode=n},getDocumentMode(e){return e.mode},detachNode(e){if(e.parentNode){const n=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(n,1),e.parentNode=null}},insertText(e,n){if(e.childNodes.length>0){const a=e.childNodes[e.childNodes.length-1];if(Xs.isTextNode(a)){a.value+=n;return}}Xs.appendChild(e,Xs.createTextNode(n))},insertTextBefore(e,n,a){const s=e.childNodes[e.childNodes.indexOf(a)-1];s&&Xs.isTextNode(s)?s.value+=n:Xs.insertBefore(e,Xs.createTextNode(n),a)},adoptAttributes(e,n){const a=new Set(e.attrs.map(s=>s.name));for(let s=0;s<n.length;s++)a.has(n[s].name)||e.attrs.push(n[s])},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,n){e.sourceCodeLocation=n},getNodeSourceCodeLocation(e){return e.sourceCodeLocation},updateNodeSourceCodeLocation(e,n){e.sourceCodeLocation={...e.sourceCodeLocation,...n}}},x3="html",Z7="about:legacy-compat",J7="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",S3=["+//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//"],eU=[...S3,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],tU=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),C3=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],nU=[...C3,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function dA(e,n){return n.some(a=>e.startsWith(a))}function rU(e){return e.name===x3&&e.publicId===null&&(e.systemId===null||e.systemId===Z7)}function aU(e){if(e.name!==x3)return Ai.QUIRKS;const{systemId:n}=e;if(n&&n.toLowerCase()===J7)return Ai.QUIRKS;let{publicId:a}=e;if(a!==null){if(a=a.toLowerCase(),tU.has(a))return Ai.QUIRKS;let s=n===null?eU:S3;if(dA(a,s))return Ai.QUIRKS;if(s=n===null?C3:nU,dA(a,s))return Ai.LIMITED_QUIRKS}return Ai.NO_QUIRKS}const fA={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},iU="definitionurl",oU="definitionURL",uU=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])),sU=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:Te.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:Te.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:Te.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:Te.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:Te.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:Te.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:Te.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:Te.XML}],["xml:space",{prefix:"xml",name:"space",namespace:Te.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:Te.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:Te.XMLNS}]]),lU=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])),cU=new Set([y.B,y.BIG,y.BLOCKQUOTE,y.BODY,y.BR,y.CENTER,y.CODE,y.DD,y.DIV,y.DL,y.DT,y.EM,y.EMBED,y.H1,y.H2,y.H3,y.H4,y.H5,y.H6,y.HEAD,y.HR,y.I,y.IMG,y.LI,y.LISTING,y.MENU,y.META,y.NOBR,y.OL,y.P,y.PRE,y.RUBY,y.S,y.SMALL,y.SPAN,y.STRONG,y.STRIKE,y.SUB,y.SUP,y.TABLE,y.TT,y.U,y.UL,y.VAR]);function dU(e){const n=e.tagID;return n===y.FONT&&e.attrs.some(({name:s})=>s===Cc.COLOR||s===Cc.SIZE||s===Cc.FACE)||cU.has(n)}function _3(e){for(let n=0;n<e.attrs.length;n++)if(e.attrs[n].name===iU){e.attrs[n].name=oU;break}}function A3(e){for(let n=0;n<e.attrs.length;n++){const a=uU.get(e.attrs[n].name);a!=null&&(e.attrs[n].name=a)}}function tx(e){for(let n=0;n<e.attrs.length;n++){const a=sU.get(e.attrs[n].name);a&&(e.attrs[n].prefix=a.prefix,e.attrs[n].name=a.name,e.attrs[n].namespace=a.namespace)}}function fU(e){const n=lU.get(e.tagName);n!=null&&(e.tagName=n,e.tagID=Jf(e.tagName))}function hU(e,n){return n===Te.MATHML&&(e===y.MI||e===y.MO||e===y.MN||e===y.MS||e===y.MTEXT)}function pU(e,n,a){if(n===Te.MATHML&&e===y.ANNOTATION_XML){for(let s=0;s<a.length;s++)if(a[s].name===Cc.ENCODING){const f=a[s].value.toLowerCase();return f===fA.TEXT_HTML||f===fA.APPLICATION_XML}}return n===Te.SVG&&(e===y.FOREIGN_OBJECT||e===y.DESC||e===y.TITLE)}function mU(e,n,a,s){return(!s||s===Te.HTML)&&pU(e,n,a)||(!s||s===Te.MATHML)&&hU(e,n)}const gU="hidden",vU=8,yU=3;var j;(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"})(j||(j={}));const EU={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},k3=new Set([y.TABLE,y.TBODY,y.TFOOT,y.THEAD,y.TR]),hA={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:Xs,onParseError:null};class pA{constructor(n,a,s=null,f=null){this.fragmentContext=s,this.scriptHandler=f,this.currentToken=null,this.stopped=!1,this.insertionMode=j.INITIAL,this.originalInsertionMode=j.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={...hA,...n},this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=a??this.treeAdapter.createDocument(),this.tokenizer=new V7(this.options,this),this.activeFormattingElements=new K7(this.treeAdapter),this.fragmentContextID=s?Jf(this.treeAdapter.getTagName(s)):y.UNKNOWN,this._setContextModes(s??this.document,this.fragmentContextID),this.openElements=new X7(this.document,this.treeAdapter,this)}static parse(n,a){const s=new this(a);return s.tokenizer.write(n,!0),s.document}static getFragmentParser(n,a){const s={...hA,...a};n??(n=s.treeAdapter.createElement(re.TEMPLATE,Te.HTML,[]));const f=s.treeAdapter.createElement("documentmock",Te.HTML,[]),p=new this(s,f,n);return p.fragmentContextID===y.TEMPLATE&&p.tmplInsertionModeStack.unshift(j.IN_TEMPLATE),p._initTokenizerForFragmentParsing(),p._insertFakeRootElement(),p._resetInsertionMode(),p._findFormInFragmentContext(),p}getFragment(){const n=this.treeAdapter.getFirstChild(this.document),a=this.treeAdapter.createDocumentFragment();return this._adoptNodes(n,a),a}_err(n,a,s){var f;if(!this.onParseError)return;const p=(f=n.location)!==null&&f!==void 0?f:EU,d={code:a,startLine:p.startLine,startCol:p.startCol,startOffset:p.startOffset,endLine:s?p.startLine:p.endLine,endCol:s?p.startCol:p.endCol,endOffset:s?p.startOffset:p.endOffset};this.onParseError(d)}onItemPush(n,a,s){var f,p;(p=(f=this.treeAdapter).onItemPush)===null||p===void 0||p.call(f,n),s&&this.openElements.stackTop>0&&this._setContextModes(n,a)}onItemPop(n,a){var s,f;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(n,this.currentToken),(f=(s=this.treeAdapter).onItemPop)===null||f===void 0||f.call(s,n,this.openElements.current),a){let p,d;this.openElements.stackTop===0&&this.fragmentContext?(p=this.fragmentContext,d=this.fragmentContextID):{current:p,currentTagId:d}=this.openElements,this._setContextModes(p,d)}}_setContextModes(n,a){const s=n===this.document||this.treeAdapter.getNamespaceURI(n)===Te.HTML;this.currentNotInHTML=!s,this.tokenizer.inForeignNode=!s&&!this._isIntegrationPoint(a,n)}_switchToTextParsing(n,a){this._insertElement(n,Te.HTML),this.tokenizer.state=a,this.originalInsertionMode=this.insertionMode,this.insertionMode=j.TEXT}switchToPlaintextParsing(){this.insertionMode=j.TEXT,this.originalInsertionMode=j.IN_BODY,this.tokenizer.state=Wn.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let n=this.fragmentContext;for(;n;){if(this.treeAdapter.getTagName(n)===re.FORM){this.formElement=n;break}n=this.treeAdapter.getParentNode(n)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==Te.HTML))switch(this.fragmentContextID){case y.TITLE:case y.TEXTAREA:{this.tokenizer.state=Wn.RCDATA;break}case y.STYLE:case y.XMP:case y.IFRAME:case y.NOEMBED:case y.NOFRAMES:case y.NOSCRIPT:{this.tokenizer.state=Wn.RAWTEXT;break}case y.SCRIPT:{this.tokenizer.state=Wn.SCRIPT_DATA;break}case y.PLAINTEXT:{this.tokenizer.state=Wn.PLAINTEXT;break}}}_setDocumentType(n){const a=n.name||"",s=n.publicId||"",f=n.systemId||"";if(this.treeAdapter.setDocumentType(this.document,a,s,f),n.location){const d=this.treeAdapter.getChildNodes(this.document).find(g=>this.treeAdapter.isDocumentTypeNode(g));d&&this.treeAdapter.setNodeSourceCodeLocation(d,n.location)}}_attachElementToTree(n,a){if(this.options.sourceCodeLocationInfo){const s=a&&{...a,startTag:a};this.treeAdapter.setNodeSourceCodeLocation(n,s)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(n);else{const s=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(s,n)}}_appendElement(n,a){const s=this.treeAdapter.createElement(n.tagName,a,n.attrs);this._attachElementToTree(s,n.location)}_insertElement(n,a){const s=this.treeAdapter.createElement(n.tagName,a,n.attrs);this._attachElementToTree(s,n.location),this.openElements.push(s,n.tagID)}_insertFakeElement(n,a){const s=this.treeAdapter.createElement(n,Te.HTML,[]);this._attachElementToTree(s,null),this.openElements.push(s,a)}_insertTemplate(n){const a=this.treeAdapter.createElement(n.tagName,Te.HTML,n.attrs),s=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(a,s),this._attachElementToTree(a,n.location),this.openElements.push(a,n.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(s,null)}_insertFakeRootElement(){const n=this.treeAdapter.createElement(re.HTML,Te.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(n,null),this.treeAdapter.appendChild(this.openElements.current,n),this.openElements.push(n,y.HTML)}_appendCommentNode(n,a){const s=this.treeAdapter.createCommentNode(n.data);this.treeAdapter.appendChild(a,s),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(s,n.location)}_insertCharacters(n){let a,s;if(this._shouldFosterParentOnInsertion()?({parent:a,beforeElement:s}=this._findFosterParentingLocation(),s?this.treeAdapter.insertTextBefore(a,n.chars,s):this.treeAdapter.insertText(a,n.chars)):(a=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(a,n.chars)),!n.location)return;const f=this.treeAdapter.getChildNodes(a),p=s?f.lastIndexOf(s):f.length,d=f[p-1];if(this.treeAdapter.getNodeSourceCodeLocation(d)){const{endLine:E,endCol:T,endOffset:C}=n.location;this.treeAdapter.updateNodeSourceCodeLocation(d,{endLine:E,endCol:T,endOffset:C})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(d,n.location)}_adoptNodes(n,a){for(let s=this.treeAdapter.getFirstChild(n);s;s=this.treeAdapter.getFirstChild(n))this.treeAdapter.detachNode(s),this.treeAdapter.appendChild(a,s)}_setEndLocation(n,a){if(this.treeAdapter.getNodeSourceCodeLocation(n)&&a.location){const s=a.location,f=this.treeAdapter.getTagName(n),p=a.type===kt.END_TAG&&f===a.tagName?{endTag:{...s},endLine:s.endLine,endCol:s.endCol,endOffset:s.endOffset}:{endLine:s.startLine,endCol:s.startCol,endOffset:s.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(n,p)}}shouldProcessStartTagTokenInForeignContent(n){if(!this.currentNotInHTML)return!1;let a,s;return this.openElements.stackTop===0&&this.fragmentContext?(a=this.fragmentContext,s=this.fragmentContextID):{current:a,currentTagId:s}=this.openElements,n.tagID===y.SVG&&this.treeAdapter.getTagName(a)===re.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(a)===Te.MATHML?!1:this.tokenizer.inForeignNode||(n.tagID===y.MGLYPH||n.tagID===y.MALIGNMARK)&&!this._isIntegrationPoint(s,a,Te.HTML)}_processToken(n){switch(n.type){case kt.CHARACTER:{this.onCharacter(n);break}case kt.NULL_CHARACTER:{this.onNullCharacter(n);break}case kt.COMMENT:{this.onComment(n);break}case kt.DOCTYPE:{this.onDoctype(n);break}case kt.START_TAG:{this._processStartTag(n);break}case kt.END_TAG:{this.onEndTag(n);break}case kt.EOF:{this.onEof(n);break}case kt.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(n);break}}}_isIntegrationPoint(n,a,s){const f=this.treeAdapter.getNamespaceURI(a),p=this.treeAdapter.getAttrList(a);return mU(n,f,p,s)}_reconstructActiveFormattingElements(){const n=this.activeFormattingElements.entries.length;if(n){const a=this.activeFormattingElements.entries.findIndex(f=>f.type===zo.Marker||this.openElements.contains(f.element)),s=a<0?n-1:a-1;for(let f=s;f>=0;f--){const p=this.activeFormattingElements.entries[f];this._insertElement(p.token,this.treeAdapter.getNamespaceURI(p.element)),p.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=j.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(y.P),this.openElements.popUntilTagNamePopped(y.P)}_resetInsertionMode(){for(let n=this.openElements.stackTop;n>=0;n--)switch(n===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[n]){case y.TR:{this.insertionMode=j.IN_ROW;return}case y.TBODY:case y.THEAD:case y.TFOOT:{this.insertionMode=j.IN_TABLE_BODY;return}case y.CAPTION:{this.insertionMode=j.IN_CAPTION;return}case y.COLGROUP:{this.insertionMode=j.IN_COLUMN_GROUP;return}case y.TABLE:{this.insertionMode=j.IN_TABLE;return}case y.BODY:{this.insertionMode=j.IN_BODY;return}case y.FRAMESET:{this.insertionMode=j.IN_FRAMESET;return}case y.SELECT:{this._resetInsertionModeForSelect(n);return}case y.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case y.HTML:{this.insertionMode=this.headElement?j.AFTER_HEAD:j.BEFORE_HEAD;return}case y.TD:case y.TH:{if(n>0){this.insertionMode=j.IN_CELL;return}break}case y.HEAD:{if(n>0){this.insertionMode=j.IN_HEAD;return}break}}this.insertionMode=j.IN_BODY}_resetInsertionModeForSelect(n){if(n>0)for(let a=n-1;a>0;a--){const s=this.openElements.tagIDs[a];if(s===y.TEMPLATE)break;if(s===y.TABLE){this.insertionMode=j.IN_SELECT_IN_TABLE;return}}this.insertionMode=j.IN_SELECT}_isElementCausesFosterParenting(n){return k3.has(n)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let n=this.openElements.stackTop;n>=0;n--){const a=this.openElements.items[n];switch(this.openElements.tagIDs[n]){case y.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(a)===Te.HTML)return{parent:this.treeAdapter.getTemplateContent(a),beforeElement:null};break}case y.TABLE:{const s=this.treeAdapter.getParentNode(a);return s?{parent:s,beforeElement:a}:{parent:this.openElements.items[n-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(n){const a=this._findFosterParentingLocation();a.beforeElement?this.treeAdapter.insertBefore(a.parent,n,a.beforeElement):this.treeAdapter.appendChild(a.parent,n)}_isSpecialElement(n,a){const s=this.treeAdapter.getNamespaceURI(n);return B7[s].has(a)}onCharacter(n){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){GB(this,n);return}switch(this.insertionMode){case j.INITIAL:{wm(this,n);break}case j.BEFORE_HTML:{Am(this,n);break}case j.BEFORE_HEAD:{km(this,n);break}case j.IN_HEAD:{Rm(this,n);break}case j.IN_HEAD_NO_SCRIPT:{Nm(this,n);break}case j.AFTER_HEAD:{Dm(this,n);break}case j.IN_BODY:case j.IN_CAPTION:case j.IN_CELL:case j.IN_TEMPLATE:{N3(this,n);break}case j.TEXT:case j.IN_SELECT:case j.IN_SELECT_IN_TABLE:{this._insertCharacters(n);break}case j.IN_TABLE:case j.IN_TABLE_BODY:case j.IN_ROW:{GT(this,n);break}case j.IN_TABLE_TEXT:{P3(this,n);break}case j.IN_COLUMN_GROUP:{R1(this,n);break}case j.AFTER_BODY:{N1(this,n);break}case j.AFTER_AFTER_BODY:{E1(this,n);break}}}onNullCharacter(n){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){$B(this,n);return}switch(this.insertionMode){case j.INITIAL:{wm(this,n);break}case j.BEFORE_HTML:{Am(this,n);break}case j.BEFORE_HEAD:{km(this,n);break}case j.IN_HEAD:{Rm(this,n);break}case j.IN_HEAD_NO_SCRIPT:{Nm(this,n);break}case j.AFTER_HEAD:{Dm(this,n);break}case j.TEXT:{this._insertCharacters(n);break}case j.IN_TABLE:case j.IN_TABLE_BODY:case j.IN_ROW:{GT(this,n);break}case j.IN_COLUMN_GROUP:{R1(this,n);break}case j.AFTER_BODY:{N1(this,n);break}case j.AFTER_AFTER_BODY:{E1(this,n);break}}}onComment(n){if(this.skipNextNewLine=!1,this.currentNotInHTML){Sw(this,n);return}switch(this.insertionMode){case j.INITIAL:case j.BEFORE_HTML:case j.BEFORE_HEAD:case j.IN_HEAD:case j.IN_HEAD_NO_SCRIPT:case j.AFTER_HEAD:case j.IN_BODY:case j.IN_TABLE:case j.IN_CAPTION:case j.IN_COLUMN_GROUP:case j.IN_TABLE_BODY:case j.IN_ROW:case j.IN_CELL:case j.IN_SELECT:case j.IN_SELECT_IN_TABLE:case j.IN_TEMPLATE:case j.IN_FRAMESET:case j.AFTER_FRAMESET:{Sw(this,n);break}case j.IN_TABLE_TEXT:{xm(this,n);break}case j.AFTER_BODY:{_U(this,n);break}case j.AFTER_AFTER_BODY:case j.AFTER_AFTER_FRAMESET:{AU(this,n);break}}}onDoctype(n){switch(this.skipNextNewLine=!1,this.insertionMode){case j.INITIAL:{kU(this,n);break}case j.BEFORE_HEAD:case j.IN_HEAD:case j.IN_HEAD_NO_SCRIPT:case j.AFTER_HEAD:{this._err(n,le.misplacedDoctype);break}case j.IN_TABLE_TEXT:{xm(this,n);break}}}onStartTag(n){this.skipNextNewLine=!1,this.currentToken=n,this._processStartTag(n),n.selfClosing&&!n.ackSelfClosing&&this._err(n,le.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(n){this.shouldProcessStartTagTokenInForeignContent(n)?XB(this,n):this._startTagOutsideForeignContent(n)}_startTagOutsideForeignContent(n){switch(this.insertionMode){case j.INITIAL:{wm(this,n);break}case j.BEFORE_HTML:{RU(this,n);break}case j.BEFORE_HEAD:{DU(this,n);break}case j.IN_HEAD:{lo(this,n);break}case j.IN_HEAD_NO_SCRIPT:{IU(this,n);break}case j.AFTER_HEAD:{PU(this,n);break}case j.IN_BODY:{aa(this,n);break}case j.IN_TABLE:{Yf(this,n);break}case j.IN_TABLE_TEXT:{xm(this,n);break}case j.IN_CAPTION:{OB(this,n);break}case j.IN_COLUMN_GROUP:{ax(this,n);break}case j.IN_TABLE_BODY:{q1(this,n);break}case j.IN_ROW:{Q1(this,n);break}case j.IN_CELL:{MB(this,n);break}case j.IN_SELECT:{B3(this,n);break}case j.IN_SELECT_IN_TABLE:{FB(this,n);break}case j.IN_TEMPLATE:{BB(this,n);break}case j.AFTER_BODY:{zB(this,n);break}case j.IN_FRAMESET:{jB(this,n);break}case j.AFTER_FRAMESET:{YB(this,n);break}case j.AFTER_AFTER_BODY:{qB(this,n);break}case j.AFTER_AFTER_FRAMESET:{QB(this,n);break}}}onEndTag(n){this.skipNextNewLine=!1,this.currentToken=n,this.currentNotInHTML?KB(this,n):this._endTagOutsideForeignContent(n)}_endTagOutsideForeignContent(n){switch(this.insertionMode){case j.INITIAL:{wm(this,n);break}case j.BEFORE_HTML:{NU(this,n);break}case j.BEFORE_HEAD:{OU(this,n);break}case j.IN_HEAD:{LU(this,n);break}case j.IN_HEAD_NO_SCRIPT:{MU(this,n);break}case j.AFTER_HEAD:{FU(this,n);break}case j.IN_BODY:{W1(this,n);break}case j.TEXT:{wB(this,n);break}case j.IN_TABLE:{Im(this,n);break}case j.IN_TABLE_TEXT:{xm(this,n);break}case j.IN_CAPTION:{LB(this,n);break}case j.IN_COLUMN_GROUP:{IB(this,n);break}case j.IN_TABLE_BODY:{Cw(this,n);break}case j.IN_ROW:{U3(this,n);break}case j.IN_CELL:{PB(this,n);break}case j.IN_SELECT:{H3(this,n);break}case j.IN_SELECT_IN_TABLE:{UB(this,n);break}case j.IN_TEMPLATE:{HB(this,n);break}case j.AFTER_BODY:{j3(this,n);break}case j.IN_FRAMESET:{VB(this,n);break}case j.AFTER_FRAMESET:{WB(this,n);break}case j.AFTER_AFTER_BODY:{E1(this,n);break}}}onEof(n){switch(this.insertionMode){case j.INITIAL:{wm(this,n);break}case j.BEFORE_HTML:{Am(this,n);break}case j.BEFORE_HEAD:{km(this,n);break}case j.IN_HEAD:{Rm(this,n);break}case j.IN_HEAD_NO_SCRIPT:{Nm(this,n);break}case j.AFTER_HEAD:{Dm(this,n);break}case j.IN_BODY:case j.IN_TABLE:case j.IN_CAPTION:case j.IN_COLUMN_GROUP:case j.IN_TABLE_BODY:case j.IN_ROW:case j.IN_CELL:case j.IN_SELECT:case j.IN_SELECT_IN_TABLE:{I3(this,n);break}case j.TEXT:{xB(this,n);break}case j.IN_TABLE_TEXT:{xm(this,n);break}case j.IN_TEMPLATE:{z3(this,n);break}case j.AFTER_BODY:case j.IN_FRAMESET:case j.AFTER_FRAMESET:case j.AFTER_AFTER_BODY:case j.AFTER_AFTER_FRAMESET:{rx(this,n);break}}}onWhitespaceCharacter(n){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,n.chars.charCodeAt(0)===M.LINE_FEED)){if(n.chars.length===1)return;n.chars=n.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(n);return}switch(this.insertionMode){case j.IN_HEAD:case j.IN_HEAD_NO_SCRIPT:case j.AFTER_HEAD:case j.TEXT:case j.IN_COLUMN_GROUP:case j.IN_SELECT:case j.IN_SELECT_IN_TABLE:case j.IN_FRAMESET:case j.AFTER_FRAMESET:{this._insertCharacters(n);break}case j.IN_BODY:case j.IN_CAPTION:case j.IN_CELL:case j.IN_TEMPLATE:case j.AFTER_BODY:case j.AFTER_AFTER_BODY:case j.AFTER_AFTER_FRAMESET:{R3(this,n);break}case j.IN_TABLE:case j.IN_TABLE_BODY:case j.IN_ROW:{GT(this,n);break}case j.IN_TABLE_TEXT:{M3(this,n);break}}}}function bU(e,n){let a=e.activeFormattingElements.getElementEntryInScopeWithTagName(n.tagName);return a?e.openElements.contains(a.element)?e.openElements.hasInScope(n.tagID)||(a=null):(e.activeFormattingElements.removeEntry(a),a=null):L3(e,n),a}function TU(e,n){let a=null,s=e.openElements.stackTop;for(;s>=0;s--){const f=e.openElements.items[s];if(f===n.element)break;e._isSpecialElement(f,e.openElements.tagIDs[s])&&(a=f)}return a||(e.openElements.shortenToLength(s<0?0:s),e.activeFormattingElements.removeEntry(n)),a}function wU(e,n,a){let s=n,f=e.openElements.getCommonAncestor(n);for(let p=0,d=f;d!==a;p++,d=f){f=e.openElements.getCommonAncestor(d);const g=e.activeFormattingElements.getElementEntry(d),E=g&&p>=yU;!g||E?(E&&e.activeFormattingElements.removeEntry(g),e.openElements.remove(d)):(d=xU(e,g),s===n&&(e.activeFormattingElements.bookmark=g),e.treeAdapter.detachNode(s),e.treeAdapter.appendChild(d,s),s=d)}return s}function xU(e,n){const a=e.treeAdapter.getNamespaceURI(n.element),s=e.treeAdapter.createElement(n.token.tagName,a,n.token.attrs);return e.openElements.replace(n.element,s),n.element=s,s}function SU(e,n,a){const s=e.treeAdapter.getTagName(n),f=Jf(s);if(e._isElementCausesFosterParenting(f))e._fosterParentElement(a);else{const p=e.treeAdapter.getNamespaceURI(n);f===y.TEMPLATE&&p===Te.HTML&&(n=e.treeAdapter.getTemplateContent(n)),e.treeAdapter.appendChild(n,a)}}function CU(e,n,a){const s=e.treeAdapter.getNamespaceURI(a.element),{token:f}=a,p=e.treeAdapter.createElement(f.tagName,s,f.attrs);e._adoptNodes(n,p),e.treeAdapter.appendChild(n,p),e.activeFormattingElements.insertElementAfterBookmark(p,f),e.activeFormattingElements.removeEntry(a),e.openElements.remove(a.element),e.openElements.insertAfter(n,p,f.tagID)}function nx(e,n){for(let a=0;a<vU;a++){const s=bU(e,n);if(!s)break;const f=TU(e,s);if(!f)break;e.activeFormattingElements.bookmark=s;const p=wU(e,f,s.element),d=e.openElements.getCommonAncestor(s.element);e.treeAdapter.detachNode(p),d&&SU(e,d,p),CU(e,f,s)}}function Sw(e,n){e._appendCommentNode(n,e.openElements.currentTmplContentOrNode)}function _U(e,n){e._appendCommentNode(n,e.openElements.items[0])}function AU(e,n){e._appendCommentNode(n,e.document)}function rx(e,n){if(e.stopped=!0,n.location){const a=e.fragmentContext?0:2;for(let s=e.openElements.stackTop;s>=a;s--)e._setEndLocation(e.openElements.items[s],n);if(!e.fragmentContext&&e.openElements.stackTop>=0){const s=e.openElements.items[0],f=e.treeAdapter.getNodeSourceCodeLocation(s);if(f&&!f.endTag&&(e._setEndLocation(s,n),e.openElements.stackTop>=1)){const p=e.openElements.items[1],d=e.treeAdapter.getNodeSourceCodeLocation(p);d&&!d.endTag&&e._setEndLocation(p,n)}}}}function kU(e,n){e._setDocumentType(n);const a=n.forceQuirks?Ai.QUIRKS:aU(n);rU(n)||e._err(n,le.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,a),e.insertionMode=j.BEFORE_HTML}function wm(e,n){e._err(n,le.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,Ai.QUIRKS),e.insertionMode=j.BEFORE_HTML,e._processToken(n)}function RU(e,n){n.tagID===y.HTML?(e._insertElement(n,Te.HTML),e.insertionMode=j.BEFORE_HEAD):Am(e,n)}function NU(e,n){const a=n.tagID;(a===y.HTML||a===y.HEAD||a===y.BODY||a===y.BR)&&Am(e,n)}function Am(e,n){e._insertFakeRootElement(),e.insertionMode=j.BEFORE_HEAD,e._processToken(n)}function DU(e,n){switch(n.tagID){case y.HTML:{aa(e,n);break}case y.HEAD:{e._insertElement(n,Te.HTML),e.headElement=e.openElements.current,e.insertionMode=j.IN_HEAD;break}default:km(e,n)}}function OU(e,n){const a=n.tagID;a===y.HEAD||a===y.BODY||a===y.HTML||a===y.BR?km(e,n):e._err(n,le.endTagWithoutMatchingOpenElement)}function km(e,n){e._insertFakeElement(re.HEAD,y.HEAD),e.headElement=e.openElements.current,e.insertionMode=j.IN_HEAD,e._processToken(n)}function lo(e,n){switch(n.tagID){case y.HTML:{aa(e,n);break}case y.BASE:case y.BASEFONT:case y.BGSOUND:case y.LINK:case y.META:{e._appendElement(n,Te.HTML),n.ackSelfClosing=!0;break}case y.TITLE:{e._switchToTextParsing(n,Wn.RCDATA);break}case y.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(n,Wn.RAWTEXT):(e._insertElement(n,Te.HTML),e.insertionMode=j.IN_HEAD_NO_SCRIPT);break}case y.NOFRAMES:case y.STYLE:{e._switchToTextParsing(n,Wn.RAWTEXT);break}case y.SCRIPT:{e._switchToTextParsing(n,Wn.SCRIPT_DATA);break}case y.TEMPLATE:{e._insertTemplate(n),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=j.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(j.IN_TEMPLATE);break}case y.HEAD:{e._err(n,le.misplacedStartTagForHeadElement);break}default:Rm(e,n)}}function LU(e,n){switch(n.tagID){case y.HEAD:{e.openElements.pop(),e.insertionMode=j.AFTER_HEAD;break}case y.BODY:case y.BR:case y.HTML:{Rm(e,n);break}case y.TEMPLATE:{Nc(e,n);break}default:e._err(n,le.endTagWithoutMatchingOpenElement)}}function Nc(e,n){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==y.TEMPLATE&&e._err(n,le.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(y.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(n,le.endTagWithoutMatchingOpenElement)}function Rm(e,n){e.openElements.pop(),e.insertionMode=j.AFTER_HEAD,e._processToken(n)}function IU(e,n){switch(n.tagID){case y.HTML:{aa(e,n);break}case y.BASEFONT:case y.BGSOUND:case y.HEAD:case y.LINK:case y.META:case y.NOFRAMES:case y.STYLE:{lo(e,n);break}case y.NOSCRIPT:{e._err(n,le.nestedNoscriptInHead);break}default:Nm(e,n)}}function MU(e,n){switch(n.tagID){case y.NOSCRIPT:{e.openElements.pop(),e.insertionMode=j.IN_HEAD;break}case y.BR:{Nm(e,n);break}default:e._err(n,le.endTagWithoutMatchingOpenElement)}}function Nm(e,n){const a=n.type===kt.EOF?le.openElementsLeftAfterEof:le.disallowedContentInNoscriptInHead;e._err(n,a),e.openElements.pop(),e.insertionMode=j.IN_HEAD,e._processToken(n)}function PU(e,n){switch(n.tagID){case y.HTML:{aa(e,n);break}case y.BODY:{e._insertElement(n,Te.HTML),e.framesetOk=!1,e.insertionMode=j.IN_BODY;break}case y.FRAMESET:{e._insertElement(n,Te.HTML),e.insertionMode=j.IN_FRAMESET;break}case y.BASE:case y.BASEFONT:case y.BGSOUND:case y.LINK:case y.META:case y.NOFRAMES:case y.SCRIPT:case y.STYLE:case y.TEMPLATE:case y.TITLE:{e._err(n,le.abandonedHeadElementChild),e.openElements.push(e.headElement,y.HEAD),lo(e,n),e.openElements.remove(e.headElement);break}case y.HEAD:{e._err(n,le.misplacedStartTagForHeadElement);break}default:Dm(e,n)}}function FU(e,n){switch(n.tagID){case y.BODY:case y.HTML:case y.BR:{Dm(e,n);break}case y.TEMPLATE:{Nc(e,n);break}default:e._err(n,le.endTagWithoutMatchingOpenElement)}}function Dm(e,n){e._insertFakeElement(re.BODY,y.BODY),e.insertionMode=j.IN_BODY,Y1(e,n)}function Y1(e,n){switch(n.type){case kt.CHARACTER:{N3(e,n);break}case kt.WHITESPACE_CHARACTER:{R3(e,n);break}case kt.COMMENT:{Sw(e,n);break}case kt.START_TAG:{aa(e,n);break}case kt.END_TAG:{W1(e,n);break}case kt.EOF:{I3(e,n);break}}}function R3(e,n){e._reconstructActiveFormattingElements(),e._insertCharacters(n)}function N3(e,n){e._reconstructActiveFormattingElements(),e._insertCharacters(n),e.framesetOk=!1}function UU(e,n){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],n.attrs)}function BU(e,n){const a=e.openElements.tryPeekProperlyNestedBodyElement();a&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(a,n.attrs))}function HU(e,n){const a=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&a&&(e.treeAdapter.detachNode(a),e.openElements.popAllUpToHtmlElement(),e._insertElement(n,Te.HTML),e.insertionMode=j.IN_FRAMESET)}function zU(e,n){e.openElements.hasInButtonScope(y.P)&&e._closePElement(),e._insertElement(n,Te.HTML)}function jU(e,n){e.openElements.hasInButtonScope(y.P)&&e._closePElement(),xw.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(n,Te.HTML)}function VU(e,n){e.openElements.hasInButtonScope(y.P)&&e._closePElement(),e._insertElement(n,Te.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function YU(e,n){const a=e.openElements.tmplCount>0;(!e.formElement||a)&&(e.openElements.hasInButtonScope(y.P)&&e._closePElement(),e._insertElement(n,Te.HTML),a||(e.formElement=e.openElements.current))}function WU(e,n){e.framesetOk=!1;const a=n.tagID;for(let s=e.openElements.stackTop;s>=0;s--){const f=e.openElements.tagIDs[s];if(a===y.LI&&f===y.LI||(a===y.DD||a===y.DT)&&(f===y.DD||f===y.DT)){e.openElements.generateImpliedEndTagsWithExclusion(f),e.openElements.popUntilTagNamePopped(f);break}if(f!==y.ADDRESS&&f!==y.DIV&&f!==y.P&&e._isSpecialElement(e.openElements.items[s],f))break}e.openElements.hasInButtonScope(y.P)&&e._closePElement(),e._insertElement(n,Te.HTML)}function qU(e,n){e.openElements.hasInButtonScope(y.P)&&e._closePElement(),e._insertElement(n,Te.HTML),e.tokenizer.state=Wn.PLAINTEXT}function QU(e,n){e.openElements.hasInScope(y.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(y.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(n,Te.HTML),e.framesetOk=!1}function $U(e,n){const a=e.activeFormattingElements.getElementEntryInScopeWithTagName(re.A);a&&(nx(e,n),e.openElements.remove(a.element),e.activeFormattingElements.removeEntry(a)),e._reconstructActiveFormattingElements(),e._insertElement(n,Te.HTML),e.activeFormattingElements.pushElement(e.openElements.current,n)}function GU(e,n){e._reconstructActiveFormattingElements(),e._insertElement(n,Te.HTML),e.activeFormattingElements.pushElement(e.openElements.current,n)}function XU(e,n){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(y.NOBR)&&(nx(e,n),e._reconstructActiveFormattingElements()),e._insertElement(n,Te.HTML),e.activeFormattingElements.pushElement(e.openElements.current,n)}function KU(e,n){e._reconstructActiveFormattingElements(),e._insertElement(n,Te.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function ZU(e,n){e.treeAdapter.getDocumentMode(e.document)!==Ai.QUIRKS&&e.openElements.hasInButtonScope(y.P)&&e._closePElement(),e._insertElement(n,Te.HTML),e.framesetOk=!1,e.insertionMode=j.IN_TABLE}function D3(e,n){e._reconstructActiveFormattingElements(),e._appendElement(n,Te.HTML),e.framesetOk=!1,n.ackSelfClosing=!0}function O3(e){const n=v3(e,Cc.TYPE);return n!=null&&n.toLowerCase()===gU}function JU(e,n){e._reconstructActiveFormattingElements(),e._appendElement(n,Te.HTML),O3(n)||(e.framesetOk=!1),n.ackSelfClosing=!0}function eB(e,n){e._appendElement(n,Te.HTML),n.ackSelfClosing=!0}function tB(e,n){e.openElements.hasInButtonScope(y.P)&&e._closePElement(),e._appendElement(n,Te.HTML),e.framesetOk=!1,n.ackSelfClosing=!0}function nB(e,n){n.tagName=re.IMG,n.tagID=y.IMG,D3(e,n)}function rB(e,n){e._insertElement(n,Te.HTML),e.skipNextNewLine=!0,e.tokenizer.state=Wn.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=j.TEXT}function aB(e,n){e.openElements.hasInButtonScope(y.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(n,Wn.RAWTEXT)}function iB(e,n){e.framesetOk=!1,e._switchToTextParsing(n,Wn.RAWTEXT)}function mA(e,n){e._switchToTextParsing(n,Wn.RAWTEXT)}function oB(e,n){e._reconstructActiveFormattingElements(),e._insertElement(n,Te.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===j.IN_TABLE||e.insertionMode===j.IN_CAPTION||e.insertionMode===j.IN_TABLE_BODY||e.insertionMode===j.IN_ROW||e.insertionMode===j.IN_CELL?j.IN_SELECT_IN_TABLE:j.IN_SELECT}function uB(e,n){e.openElements.currentTagId===y.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(n,Te.HTML)}function sB(e,n){e.openElements.hasInScope(y.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(n,Te.HTML)}function lB(e,n){e.openElements.hasInScope(y.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(y.RTC),e._insertElement(n,Te.HTML)}function cB(e,n){e._reconstructActiveFormattingElements(),_3(n),tx(n),n.selfClosing?e._appendElement(n,Te.MATHML):e._insertElement(n,Te.MATHML),n.ackSelfClosing=!0}function dB(e,n){e._reconstructActiveFormattingElements(),A3(n),tx(n),n.selfClosing?e._appendElement(n,Te.SVG):e._insertElement(n,Te.SVG),n.ackSelfClosing=!0}function gA(e,n){e._reconstructActiveFormattingElements(),e._insertElement(n,Te.HTML)}function aa(e,n){switch(n.tagID){case y.I:case y.S:case y.B:case y.U:case y.EM:case y.TT:case y.BIG:case y.CODE:case y.FONT:case y.SMALL:case y.STRIKE:case y.STRONG:{GU(e,n);break}case y.A:{$U(e,n);break}case y.H1:case y.H2:case y.H3:case y.H4:case y.H5:case y.H6:{jU(e,n);break}case y.P:case y.DL:case y.OL:case y.UL:case y.DIV:case y.DIR:case y.NAV:case y.MAIN:case y.MENU:case y.ASIDE:case y.CENTER:case y.FIGURE:case y.FOOTER:case y.HEADER:case y.HGROUP:case y.DIALOG:case y.DETAILS:case y.ADDRESS:case y.ARTICLE:case y.SEARCH:case y.SECTION:case y.SUMMARY:case y.FIELDSET:case y.BLOCKQUOTE:case y.FIGCAPTION:{zU(e,n);break}case y.LI:case y.DD:case y.DT:{WU(e,n);break}case y.BR:case y.IMG:case y.WBR:case y.AREA:case y.EMBED:case y.KEYGEN:{D3(e,n);break}case y.HR:{tB(e,n);break}case y.RB:case y.RTC:{sB(e,n);break}case y.RT:case y.RP:{lB(e,n);break}case y.PRE:case y.LISTING:{VU(e,n);break}case y.XMP:{aB(e,n);break}case y.SVG:{dB(e,n);break}case y.HTML:{UU(e,n);break}case y.BASE:case y.LINK:case y.META:case y.STYLE:case y.TITLE:case y.SCRIPT:case y.BGSOUND:case y.BASEFONT:case y.TEMPLATE:{lo(e,n);break}case y.BODY:{BU(e,n);break}case y.FORM:{YU(e,n);break}case y.NOBR:{XU(e,n);break}case y.MATH:{cB(e,n);break}case y.TABLE:{ZU(e,n);break}case y.INPUT:{JU(e,n);break}case y.PARAM:case y.TRACK:case y.SOURCE:{eB(e,n);break}case y.IMAGE:{nB(e,n);break}case y.BUTTON:{QU(e,n);break}case y.APPLET:case y.OBJECT:case y.MARQUEE:{KU(e,n);break}case y.IFRAME:{iB(e,n);break}case y.SELECT:{oB(e,n);break}case y.OPTION:case y.OPTGROUP:{uB(e,n);break}case y.NOEMBED:case y.NOFRAMES:{mA(e,n);break}case y.FRAMESET:{HU(e,n);break}case y.TEXTAREA:{rB(e,n);break}case y.NOSCRIPT:{e.options.scriptingEnabled?mA(e,n):gA(e,n);break}case y.PLAINTEXT:{qU(e,n);break}case y.COL:case y.TH:case y.TD:case y.TR:case y.HEAD:case y.FRAME:case y.TBODY:case y.TFOOT:case y.THEAD:case y.CAPTION:case y.COLGROUP:break;default:gA(e,n)}}function fB(e,n){if(e.openElements.hasInScope(y.BODY)&&(e.insertionMode=j.AFTER_BODY,e.options.sourceCodeLocationInfo)){const a=e.openElements.tryPeekProperlyNestedBodyElement();a&&e._setEndLocation(a,n)}}function hB(e,n){e.openElements.hasInScope(y.BODY)&&(e.insertionMode=j.AFTER_BODY,j3(e,n))}function pB(e,n){const a=n.tagID;e.openElements.hasInScope(a)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(a))}function mB(e){const n=e.openElements.tmplCount>0,{formElement:a}=e;n||(e.formElement=null),(a||n)&&e.openElements.hasInScope(y.FORM)&&(e.openElements.generateImpliedEndTags(),n?e.openElements.popUntilTagNamePopped(y.FORM):a&&e.openElements.remove(a))}function gB(e){e.openElements.hasInButtonScope(y.P)||e._insertFakeElement(re.P,y.P),e._closePElement()}function vB(e){e.openElements.hasInListItemScope(y.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(y.LI),e.openElements.popUntilTagNamePopped(y.LI))}function yB(e,n){const a=n.tagID;e.openElements.hasInScope(a)&&(e.openElements.generateImpliedEndTagsWithExclusion(a),e.openElements.popUntilTagNamePopped(a))}function EB(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function bB(e,n){const a=n.tagID;e.openElements.hasInScope(a)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(a),e.activeFormattingElements.clearToLastMarker())}function TB(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(re.BR,y.BR),e.openElements.pop(),e.framesetOk=!1}function L3(e,n){const a=n.tagName,s=n.tagID;for(let f=e.openElements.stackTop;f>0;f--){const p=e.openElements.items[f],d=e.openElements.tagIDs[f];if(s===d&&(s!==y.UNKNOWN||e.treeAdapter.getTagName(p)===a)){e.openElements.generateImpliedEndTagsWithExclusion(s),e.openElements.stackTop>=f&&e.openElements.shortenToLength(f);break}if(e._isSpecialElement(p,d))break}}function W1(e,n){switch(n.tagID){case y.A:case y.B:case y.I:case y.S:case y.U:case y.EM:case y.TT:case y.BIG:case y.CODE:case y.FONT:case y.NOBR:case y.SMALL:case y.STRIKE:case y.STRONG:{nx(e,n);break}case y.P:{gB(e);break}case y.DL:case y.UL:case y.OL:case y.DIR:case y.DIV:case y.NAV:case y.PRE:case y.MAIN:case y.MENU:case y.ASIDE:case y.BUTTON:case y.CENTER:case y.FIGURE:case y.FOOTER:case y.HEADER:case y.HGROUP:case y.DIALOG:case y.ADDRESS:case y.ARTICLE:case y.DETAILS:case y.SEARCH:case y.SECTION:case y.SUMMARY:case y.LISTING:case y.FIELDSET:case y.BLOCKQUOTE:case y.FIGCAPTION:{pB(e,n);break}case y.LI:{vB(e);break}case y.DD:case y.DT:{yB(e,n);break}case y.H1:case y.H2:case y.H3:case y.H4:case y.H5:case y.H6:{EB(e);break}case y.BR:{TB(e);break}case y.BODY:{fB(e,n);break}case y.HTML:{hB(e,n);break}case y.FORM:{mB(e);break}case y.APPLET:case y.OBJECT:case y.MARQUEE:{bB(e,n);break}case y.TEMPLATE:{Nc(e,n);break}default:L3(e,n)}}function I3(e,n){e.tmplInsertionModeStack.length>0?z3(e,n):rx(e,n)}function wB(e,n){var a;n.tagID===y.SCRIPT&&((a=e.scriptHandler)===null||a===void 0||a.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function xB(e,n){e._err(n,le.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(n)}function GT(e,n){if(k3.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=j.IN_TABLE_TEXT,n.type){case kt.CHARACTER:{P3(e,n);break}case kt.WHITESPACE_CHARACTER:{M3(e,n);break}}else Vm(e,n)}function SB(e,n){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(n,Te.HTML),e.insertionMode=j.IN_CAPTION}function CB(e,n){e.openElements.clearBackToTableContext(),e._insertElement(n,Te.HTML),e.insertionMode=j.IN_COLUMN_GROUP}function _B(e,n){e.openElements.clearBackToTableContext(),e._insertFakeElement(re.COLGROUP,y.COLGROUP),e.insertionMode=j.IN_COLUMN_GROUP,ax(e,n)}function AB(e,n){e.openElements.clearBackToTableContext(),e._insertElement(n,Te.HTML),e.insertionMode=j.IN_TABLE_BODY}function kB(e,n){e.openElements.clearBackToTableContext(),e._insertFakeElement(re.TBODY,y.TBODY),e.insertionMode=j.IN_TABLE_BODY,q1(e,n)}function RB(e,n){e.openElements.hasInTableScope(y.TABLE)&&(e.openElements.popUntilTagNamePopped(y.TABLE),e._resetInsertionMode(),e._processStartTag(n))}function NB(e,n){O3(n)?e._appendElement(n,Te.HTML):Vm(e,n),n.ackSelfClosing=!0}function DB(e,n){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(n,Te.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function Yf(e,n){switch(n.tagID){case y.TD:case y.TH:case y.TR:{kB(e,n);break}case y.STYLE:case y.SCRIPT:case y.TEMPLATE:{lo(e,n);break}case y.COL:{_B(e,n);break}case y.FORM:{DB(e,n);break}case y.TABLE:{RB(e,n);break}case y.TBODY:case y.TFOOT:case y.THEAD:{AB(e,n);break}case y.INPUT:{NB(e,n);break}case y.CAPTION:{SB(e,n);break}case y.COLGROUP:{CB(e,n);break}default:Vm(e,n)}}function Im(e,n){switch(n.tagID){case y.TABLE:{e.openElements.hasInTableScope(y.TABLE)&&(e.openElements.popUntilTagNamePopped(y.TABLE),e._resetInsertionMode());break}case y.TEMPLATE:{Nc(e,n);break}case y.BODY:case y.CAPTION:case y.COL:case y.COLGROUP:case y.HTML:case y.TBODY:case y.TD:case y.TFOOT:case y.TH:case y.THEAD:case y.TR:break;default:Vm(e,n)}}function Vm(e,n){const a=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,Y1(e,n),e.fosterParentingEnabled=a}function M3(e,n){e.pendingCharacterTokens.push(n)}function P3(e,n){e.pendingCharacterTokens.push(n),e.hasNonWhitespacePendingCharacterToken=!0}function xm(e,n){let a=0;if(e.hasNonWhitespacePendingCharacterToken)for(;a<e.pendingCharacterTokens.length;a++)Vm(e,e.pendingCharacterTokens[a]);else for(;a<e.pendingCharacterTokens.length;a++)e._insertCharacters(e.pendingCharacterTokens[a]);e.insertionMode=e.originalInsertionMode,e._processToken(n)}const F3=new Set([y.CAPTION,y.COL,y.COLGROUP,y.TBODY,y.TD,y.TFOOT,y.TH,y.THEAD,y.TR]);function OB(e,n){const a=n.tagID;F3.has(a)?e.openElements.hasInTableScope(y.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(y.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=j.IN_TABLE,Yf(e,n)):aa(e,n)}function LB(e,n){const a=n.tagID;switch(a){case y.CAPTION:case y.TABLE:{e.openElements.hasInTableScope(y.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(y.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=j.IN_TABLE,a===y.TABLE&&Im(e,n));break}case y.BODY:case y.COL:case y.COLGROUP:case y.HTML:case y.TBODY:case y.TD:case y.TFOOT:case y.TH:case y.THEAD:case y.TR:break;default:W1(e,n)}}function ax(e,n){switch(n.tagID){case y.HTML:{aa(e,n);break}case y.COL:{e._appendElement(n,Te.HTML),n.ackSelfClosing=!0;break}case y.TEMPLATE:{lo(e,n);break}default:R1(e,n)}}function IB(e,n){switch(n.tagID){case y.COLGROUP:{e.openElements.currentTagId===y.COLGROUP&&(e.openElements.pop(),e.insertionMode=j.IN_TABLE);break}case y.TEMPLATE:{Nc(e,n);break}case y.COL:break;default:R1(e,n)}}function R1(e,n){e.openElements.currentTagId===y.COLGROUP&&(e.openElements.pop(),e.insertionMode=j.IN_TABLE,e._processToken(n))}function q1(e,n){switch(n.tagID){case y.TR:{e.openElements.clearBackToTableBodyContext(),e._insertElement(n,Te.HTML),e.insertionMode=j.IN_ROW;break}case y.TH:case y.TD:{e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(re.TR,y.TR),e.insertionMode=j.IN_ROW,Q1(e,n);break}case y.CAPTION:case y.COL:case y.COLGROUP:case y.TBODY:case y.TFOOT:case y.THEAD:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=j.IN_TABLE,Yf(e,n));break}default:Yf(e,n)}}function Cw(e,n){const a=n.tagID;switch(n.tagID){case y.TBODY:case y.TFOOT:case y.THEAD:{e.openElements.hasInTableScope(a)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=j.IN_TABLE);break}case y.TABLE:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=j.IN_TABLE,Im(e,n));break}case y.BODY:case y.CAPTION:case y.COL:case y.COLGROUP:case y.HTML:case y.TD:case y.TH:case y.TR:break;default:Im(e,n)}}function Q1(e,n){switch(n.tagID){case y.TH:case y.TD:{e.openElements.clearBackToTableRowContext(),e._insertElement(n,Te.HTML),e.insertionMode=j.IN_CELL,e.activeFormattingElements.insertMarker();break}case y.CAPTION:case y.COL:case y.COLGROUP:case y.TBODY:case y.TFOOT:case y.THEAD:case y.TR:{e.openElements.hasInTableScope(y.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=j.IN_TABLE_BODY,q1(e,n));break}default:Yf(e,n)}}function U3(e,n){switch(n.tagID){case y.TR:{e.openElements.hasInTableScope(y.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=j.IN_TABLE_BODY);break}case y.TABLE:{e.openElements.hasInTableScope(y.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=j.IN_TABLE_BODY,Cw(e,n));break}case y.TBODY:case y.TFOOT:case y.THEAD:{(e.openElements.hasInTableScope(n.tagID)||e.openElements.hasInTableScope(y.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=j.IN_TABLE_BODY,Cw(e,n));break}case y.BODY:case y.CAPTION:case y.COL:case y.COLGROUP:case y.HTML:case y.TD:case y.TH:break;default:Im(e,n)}}function MB(e,n){const a=n.tagID;F3.has(a)?(e.openElements.hasInTableScope(y.TD)||e.openElements.hasInTableScope(y.TH))&&(e._closeTableCell(),Q1(e,n)):aa(e,n)}function PB(e,n){const a=n.tagID;switch(a){case y.TD:case y.TH:{e.openElements.hasInTableScope(a)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(a),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=j.IN_ROW);break}case y.TABLE:case y.TBODY:case y.TFOOT:case y.THEAD:case y.TR:{e.openElements.hasInTableScope(a)&&(e._closeTableCell(),U3(e,n));break}case y.BODY:case y.CAPTION:case y.COL:case y.COLGROUP:case y.HTML:break;default:W1(e,n)}}function B3(e,n){switch(n.tagID){case y.HTML:{aa(e,n);break}case y.OPTION:{e.openElements.currentTagId===y.OPTION&&e.openElements.pop(),e._insertElement(n,Te.HTML);break}case y.OPTGROUP:{e.openElements.currentTagId===y.OPTION&&e.openElements.pop(),e.openElements.currentTagId===y.OPTGROUP&&e.openElements.pop(),e._insertElement(n,Te.HTML);break}case y.HR:{e.openElements.currentTagId===y.OPTION&&e.openElements.pop(),e.openElements.currentTagId===y.OPTGROUP&&e.openElements.pop(),e._appendElement(n,Te.HTML),n.ackSelfClosing=!0;break}case y.INPUT:case y.KEYGEN:case y.TEXTAREA:case y.SELECT:{e.openElements.hasInSelectScope(y.SELECT)&&(e.openElements.popUntilTagNamePopped(y.SELECT),e._resetInsertionMode(),n.tagID!==y.SELECT&&e._processStartTag(n));break}case y.SCRIPT:case y.TEMPLATE:{lo(e,n);break}}}function H3(e,n){switch(n.tagID){case y.OPTGROUP:{e.openElements.stackTop>0&&e.openElements.currentTagId===y.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===y.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===y.OPTGROUP&&e.openElements.pop();break}case y.OPTION:{e.openElements.currentTagId===y.OPTION&&e.openElements.pop();break}case y.SELECT:{e.openElements.hasInSelectScope(y.SELECT)&&(e.openElements.popUntilTagNamePopped(y.SELECT),e._resetInsertionMode());break}case y.TEMPLATE:{Nc(e,n);break}}}function FB(e,n){const a=n.tagID;a===y.CAPTION||a===y.TABLE||a===y.TBODY||a===y.TFOOT||a===y.THEAD||a===y.TR||a===y.TD||a===y.TH?(e.openElements.popUntilTagNamePopped(y.SELECT),e._resetInsertionMode(),e._processStartTag(n)):B3(e,n)}function UB(e,n){const a=n.tagID;a===y.CAPTION||a===y.TABLE||a===y.TBODY||a===y.TFOOT||a===y.THEAD||a===y.TR||a===y.TD||a===y.TH?e.openElements.hasInTableScope(a)&&(e.openElements.popUntilTagNamePopped(y.SELECT),e._resetInsertionMode(),e.onEndTag(n)):H3(e,n)}function BB(e,n){switch(n.tagID){case y.BASE:case y.BASEFONT:case y.BGSOUND:case y.LINK:case y.META:case y.NOFRAMES:case y.SCRIPT:case y.STYLE:case y.TEMPLATE:case y.TITLE:{lo(e,n);break}case y.CAPTION:case y.COLGROUP:case y.TBODY:case y.TFOOT:case y.THEAD:{e.tmplInsertionModeStack[0]=j.IN_TABLE,e.insertionMode=j.IN_TABLE,Yf(e,n);break}case y.COL:{e.tmplInsertionModeStack[0]=j.IN_COLUMN_GROUP,e.insertionMode=j.IN_COLUMN_GROUP,ax(e,n);break}case y.TR:{e.tmplInsertionModeStack[0]=j.IN_TABLE_BODY,e.insertionMode=j.IN_TABLE_BODY,q1(e,n);break}case y.TD:case y.TH:{e.tmplInsertionModeStack[0]=j.IN_ROW,e.insertionMode=j.IN_ROW,Q1(e,n);break}default:e.tmplInsertionModeStack[0]=j.IN_BODY,e.insertionMode=j.IN_BODY,aa(e,n)}}function HB(e,n){n.tagID===y.TEMPLATE&&Nc(e,n)}function z3(e,n){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(y.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(n)):rx(e,n)}function zB(e,n){n.tagID===y.HTML?aa(e,n):N1(e,n)}function j3(e,n){var a;if(n.tagID===y.HTML){if(e.fragmentContext||(e.insertionMode=j.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===y.HTML){e._setEndLocation(e.openElements.items[0],n);const s=e.openElements.items[1];s&&!(!((a=e.treeAdapter.getNodeSourceCodeLocation(s))===null||a===void 0)&&a.endTag)&&e._setEndLocation(s,n)}}else N1(e,n)}function N1(e,n){e.insertionMode=j.IN_BODY,Y1(e,n)}function jB(e,n){switch(n.tagID){case y.HTML:{aa(e,n);break}case y.FRAMESET:{e._insertElement(n,Te.HTML);break}case y.FRAME:{e._appendElement(n,Te.HTML),n.ackSelfClosing=!0;break}case y.NOFRAMES:{lo(e,n);break}}}function VB(e,n){n.tagID===y.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==y.FRAMESET&&(e.insertionMode=j.AFTER_FRAMESET))}function YB(e,n){switch(n.tagID){case y.HTML:{aa(e,n);break}case y.NOFRAMES:{lo(e,n);break}}}function WB(e,n){n.tagID===y.HTML&&(e.insertionMode=j.AFTER_AFTER_FRAMESET)}function qB(e,n){n.tagID===y.HTML?aa(e,n):E1(e,n)}function E1(e,n){e.insertionMode=j.IN_BODY,Y1(e,n)}function QB(e,n){switch(n.tagID){case y.HTML:{aa(e,n);break}case y.NOFRAMES:{lo(e,n);break}}}function $B(e,n){n.chars=xn,e._insertCharacters(n)}function GB(e,n){e._insertCharacters(n),e.framesetOk=!1}function V3(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==Te.HTML&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function XB(e,n){if(dU(n))V3(e),e._startTagOutsideForeignContent(n);else{const a=e._getAdjustedCurrentElement(),s=e.treeAdapter.getNamespaceURI(a);s===Te.MATHML?_3(n):s===Te.SVG&&(fU(n),A3(n)),tx(n),n.selfClosing?e._appendElement(n,s):e._insertElement(n,s),n.ackSelfClosing=!0}}function KB(e,n){if(n.tagID===y.P||n.tagID===y.BR){V3(e),e._endTagOutsideForeignContent(n);return}for(let a=e.openElements.stackTop;a>0;a--){const s=e.openElements.items[a];if(e.treeAdapter.getNamespaceURI(s)===Te.HTML){e._endTagOutsideForeignContent(n);break}const f=e.treeAdapter.getTagName(s);if(f.toLowerCase()===n.tagName){n.tagName=f,e.openElements.shortenToLength(a);break}}}re.AREA,re.BASE,re.BASEFONT,re.BGSOUND,re.BR,re.COL,re.EMBED,re.FRAME,re.HR,re.IMG,re.INPUT,re.KEYGEN,re.LINK,re.META,re.PARAM,re.SOURCE,re.TRACK,re.WBR;const ZB=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,JB=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),vA={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function Y3(e,n){const a=lH(e),s=uk("type",{handlers:{root:eH,element:tH,text:nH,comment:q3,doctype:rH,raw:iH},unknown:oH}),f={parser:a?new pA(vA):pA.getFragmentParser(void 0,vA),handle(g){s(g,f)},stitches:!1,options:n||{}};s(e,f),eh(f,Yo());const p=a?f.parser.document:f.parser.getFragment(),d=c7(p,{file:f.options.file});return f.stitches&&B1(d,"comment",function(g,E,T){const C=g;if(C.value.stitch&&T&&E!==void 0){const S=T.children;return S[E]=C.value.stitch,E}}),d.type==="root"&&d.children.length===1&&d.children[0].type===e.type?d.children[0]:d}function W3(e,n){let a=-1;if(e)for(;++a<e.length;)n.handle(e[a])}function eH(e,n){W3(e.children,n)}function tH(e,n){uH(e,n),W3(e.children,n),sH(e,n)}function nH(e,n){n.parser.tokenizer.state>4&&(n.parser.tokenizer.state=0);const a={type:kt.CHARACTER,chars:e.value,location:Ym(e)};eh(n,Yo(e)),n.parser.currentToken=a,n.parser._processToken(n.parser.currentToken)}function rH(e,n){const a={type:kt.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:Ym(e)};eh(n,Yo(e)),n.parser.currentToken=a,n.parser._processToken(n.parser.currentToken)}function aH(e,n){n.stitches=!0;const a=cH(e);if("children"in e&&"children"in a){const s=Y3({type:"root",children:e.children},n.options);a.children=s.children}q3({type:"comment",value:{stitch:a}},n)}function q3(e,n){const a=e.value,s={type:kt.COMMENT,data:a,location:Ym(e)};eh(n,Yo(e)),n.parser.currentToken=s,n.parser._processToken(n.parser.currentToken)}function iH(e,n){if(n.parser.tokenizer.preprocessor.html="",n.parser.tokenizer.preprocessor.pos=-1,n.parser.tokenizer.preprocessor.lastGapPos=-2,n.parser.tokenizer.preprocessor.gapStack=[],n.parser.tokenizer.preprocessor.skipNextNewLine=!1,n.parser.tokenizer.preprocessor.lastChunkWritten=!1,n.parser.tokenizer.preprocessor.endOfChunkHit=!1,n.parser.tokenizer.preprocessor.isEol=!1,Q3(n,Yo(e)),n.parser.tokenizer.write(n.options.tagfilter?e.value.replace(ZB,"<$1$2"):e.value,!1),n.parser.tokenizer._runParsingLoop(),n.parser.tokenizer.state===72||n.parser.tokenizer.state===78){n.parser.tokenizer.preprocessor.lastChunkWritten=!0;const a=n.parser.tokenizer._consume();n.parser.tokenizer._callState(a)}}function oH(e,n){const a=e;if(n.options.passThrough&&n.options.passThrough.includes(a.type))aH(a,n);else{let s="";throw JB.has(a.type)&&(s=". 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 `"+a.type+"` node"+s)}}function eh(e,n){Q3(e,n);const a=e.parser.tokenizer.currentCharacterToken;a&&a.location&&(a.location.endLine=e.parser.tokenizer.preprocessor.line,a.location.endCol=e.parser.tokenizer.preprocessor.col+1,a.location.endOffset=e.parser.tokenizer.preprocessor.offset+1,e.parser.currentToken=a,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=Wn.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 Q3(e,n){if(n&&n.offset!==void 0){const a={startLine:n.line,startCol:n.column,startOffset:n.offset,endLine:-1,endCol:-1,endOffset:-1};e.parser.tokenizer.preprocessor.lineStartPos=-n.column+1,e.parser.tokenizer.preprocessor.droppedBufferSize=n.offset,e.parser.tokenizer.preprocessor.line=n.line,e.parser.tokenizer.currentLocation=a}}function uH(e,n){const a=e.tagName.toLowerCase();if(n.parser.tokenizer.state===Wn.PLAINTEXT)return;eh(n,Yo(e));const s=n.parser.openElements.current;let f="namespaceURI"in s?s.namespaceURI:Sc.html;f===Sc.html&&a==="svg"&&(f=Sc.svg);const p=m7({...e,children:[]},{space:f===Sc.svg?"svg":"html"}),d={type:kt.START_TAG,tagName:a,tagID:Jf(a),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in p?p.attrs:[],location:Ym(e)};n.parser.currentToken=d,n.parser._processToken(n.parser.currentToken),n.parser.tokenizer.lastStartTagName=a}function sH(e,n){const a=e.tagName.toLowerCase();if(!n.parser.tokenizer.inForeignNode&&x7.includes(a)||n.parser.tokenizer.state===Wn.PLAINTEXT)return;eh(n,j1(e));const s={type:kt.END_TAG,tagName:a,tagID:Jf(a),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:Ym(e)};n.parser.currentToken=s,n.parser._processToken(n.parser.currentToken),a===n.parser.tokenizer.lastStartTagName&&(n.parser.tokenizer.state===Wn.RCDATA||n.parser.tokenizer.state===Wn.RAWTEXT||n.parser.tokenizer.state===Wn.SCRIPT_DATA)&&(n.parser.tokenizer.state=Wn.DATA)}function lH(e){const n=e.type==="root"?e.children[0]:e;return!!(n&&(n.type==="doctype"||n.type==="element"&&n.tagName.toLowerCase()==="html"))}function Ym(e){const n=Yo(e)||{line:void 0,column:void 0,offset:void 0},a=j1(e)||{line:void 0,column:void 0,offset:void 0};return{startLine:n.line,startCol:n.column,startOffset:n.offset,endLine:a.line,endCol:a.column,endOffset:a.offset}}function cH(e){return"children"in e?Vf({...e,children:[]}):Vf(e)}function dH(e){return function(n,a){return Y3(n,{...e,file:a})}}function $3({attachment:e}){const{name:n,size:a,type:s,url:f}=e,p=s.startsWith("image/"),d=s.startsWith("video/"),g=s.startsWith("audio/");return z.jsxs("div",{className:"size-fit gap-2 border shrink-0 rounded-xl overflow-hidden",children:[p&&z.jsx("img",{loading:"lazy",src:f,className:"object-cover size-16"}),d&&z.jsxs("video",{controls:!0,children:[z.jsx("source",{src:f,type:s}),"Your browser does not support the video tag."]}),g&&z.jsxs("audio",{controls:!0,className:"w-full mt-2 rounded-md border",children:[z.jsx("source",{src:f,type:s}),"Your browser does not support the audio tag."]}),!p&&!d&&!g&&z.jsxs("div",{className:"flex items-center gap-2 p-2",children:[z.jsx("a",{href:f,target:"_blank",rel:"noopener noreferrer",className:"text-blue-500 line-clamp-2 underline hover:text-blue-600",children:n}),z.jsxs("span",{className:"text-sm text-gray-500 whitespace-nowrap",children:[(a/1024).toFixed(2)," KB"]})]})]})}function fH({data:e,id:n,type:a,attachments:s}){const{message:f,variant:p="default"}=e;return p==="error"?z.jsx("div",{children:z.jsx("div",{className:"gap-0.5 flex flex-row flex-wrap items-center justify-start",children:z.jsx("div",{className:"leading-snug font-medium text-sm text-rose-500",children:f})})}):z.jsxs("div",{children:[z.jsx("div",{className:"gap-0.5 flex flex-row flex-wrap items-center justify-start",children:s==null?void 0:s.map(d=>z.jsx($3,{attachment:d},d.id))}),z.jsx(JF,{"data-type":a,"data-id":n,remarkPlugins:[fP],rehypePlugins:[dH],components:{a:({children:d,...g})=>z.jsx("a",{target:"_top",...g,children:d})},className:"leading-snug font-medium text-sm prose prose-a:decoration-primary prose-a:underline prose-sm prose-slate",children:f})]})}const $1=ie.forwardRef(({className:e,...n},a)=>z.jsx($f.Root,{ref:a,className:jt("relative flex size-6 aspect-square shrink-0 overflow-hidden rounded-lg border bg-secondary",e),...n}));$1.displayName=$f.Root.displayName;const ix=ie.forwardRef(({className:e,...n},a)=>z.jsx($f.Image,{ref:a,className:jt("aspect-square h-full w-full",e),...n}));ix.displayName=$f.Image.displayName;const ox=ie.forwardRef(({className:e,...n},a)=>z.jsx($f.Fallback,{ref:a,className:jt("flex size-full text-sm items-center justify-center rounded-lg",e),...n}));ox.displayName=$f.Fallback.displayName;function hH(){return z.jsx(ta.AnimatePresence,{children:z.jsxs(ta.motion.div,{animate:{opacity:1},exit:{opacity:0},transition:{duration:.5},className:"flex flex-row items-end w-full gap-1",children:[z.jsx("div",{className:"flex items-center gap-1",children:z.jsx($1,{className:"animate-pulse size-7 rounded-xl bg-secondary",children:z.jsx(ox,{})})}),z.jsxs("div",{className:"flex items-center [&_span]:bg-secondary-foreground [&_span]:size-1 gap-1 p-3 rounded-lg rounded-bl-none bg-secondary",children:[z.jsx(ta.motion.span,{className:"rounded-full animate-bounce [animation-delay:-0.3s]"}),z.jsx(ta.motion.span,{className:"rounded-full animate-bounce [animation-delay:-0.15s]"}),z.jsx(ta.motion.span,{className:"rounded-full animate-bounce"})]})]})})}function pH(e){return z.jsx("div",{className:"w-full max-w-full overflow-auto shrink-0",children:z.jsx("pre",{dir:"auto",className:"text-xs leading-tight",children:JSON.stringify(e,null,1)})})}function XT({children:e,agent:n,className:a}){return z.jsxs("div",{className:"flex flex-row items-end w-full gap-2",children:[z.jsx($1,{className:"flex items-center size-7 border-0",children:z.jsx(ix,{src:(n==null?void 0:n.profile_picture)??"",alt:"Agent Icon"})}),z.jsx("div",{className:jt("w-fit min-w-[80%]",a),children:z.jsx("div",{className:"rounded-xl rounded-bl-none bg-secondary shadow-sm p-2.5 min-w-fit",children:e})})]})}function s1({message:e,Wrapper:n,wrapperProps:a}){const s=Tt.useConfigData(),f=s.componentStore.getComponent(e.component,s.debug);return f?n?vt.createElement(n,{...a,key:e.id},z.jsx(f,{...e,id:e.id})):vt.createElement(f,{...e,id:e.id,key:e.id}):null}const mH=400,gH=600,ux={widgetMinHeight:"min-h-[400px]",widgetMaxHeight:"max-h-[600px]",widgetHeight:"h-[600px]"},G3=(e,n)=>{const a=JC(e.primary).toHsl(),s=JC(e.primary).isLight()?"240 10% 3.9%":"0 0% 100%";return{"--opencx-primary":`${a.h} ${a.s}% ${a.l}%`,"--opencx-primary-foreground":s,"--opencx-background":"0 0% 100%","--opencx-foreground":"240 10% 3.9%","--opencx-accent":"240 4.8% 95.9%","--opencx-accent-foreground":"240 5.9% 10%","--opencx-destructive":"0 84.2% 60.2%","--opencx-destructive-foreground":"0 0% 98%","--opencx-secondary":"240 4.8% 95.9%","--opencx-secondary-foreground":"240 5.9% 10%","--opencx-muted":"240 4.8% 95.9%","--opencx-muted-foreground":"240 3.8% 46.1%","--opencx-input":"240 5.9% 90%","--opencx-border":"240 5.9% 90%","--opencx-ring":"240 5.9% 10%","--opencx-trigger-offset":n.triggerOffset}},vH=10,yH=(e,n)=>({initial:{opacity:0,x:-e,...n.initial},animate:{opacity:1,x:0,...n.animate},exit:{opacity:0,x:e,...n.exit}}),EH=(e,n)=>({initial:{opacity:0,x:e,...n.initial},animate:{opacity:1,x:0,...n.animate},exit:{opacity:0,x:-e,...n.exit}}),bH=(e,n)=>({initial:{opacity:0,y:e,...n.initial},animate:{opacity:1,y:0,...n.animate},exit:{opacity:0,y:-e,...n.exit}}),TH=(e,n)=>({initial:{opacity:0,y:-e,...n.initial},animate:{opacity:1,y:0,...n.animate},exit:{opacity:0,y:e,...n.exit}}),wH={right:yH,left:EH,up:bH,down:TH},io=vt.forwardRef(({fadeIn:e="down",distance:n=vH,children:a,snapExit:s=!1,overrides:f={},...p},d)=>{const g=e?wH[e](n,f):{};return s&&g.exit&&typeof g.exit=="object"&&!Array.isArray(g.exit)&&(g.exit.transition={duration:0}),z.jsx(ta.motion.div,{ref:d,...p,...g,children:a})});io.displayName="MotionDiv";function xH(){const{contact:e}=Tt.useContact(),{collectUserData:n}=Tt.useConfigData();return{shouldCollectDataFirst:n&&!(e!=null&&e.id)}}function SH({children:e,user:n,message:a}){var f,p,d;const s=vt.useMemo(()=>a.deliveredAt?FL.formatDistance(new Date(a.deliveredAt),new Date,{addSuffix:!0}):null,[a.deliveredAt]);return z.jsxs("div",{className:"flex flex-row w-full gap-2 justify-end items-start group",children:[z.jsx("div",{className:"flex flex-col items-end gap-1 relative",children:z.jsxs("div",{className:"max-w-[85%] min-w-fit",children:[z.jsx("div",{className:"bg-primary p-2 text-primary-foreground rounded-xl leading-relaxed text-sm",children:e}),a.attachments&&a.attachments.length>0&&z.jsx("div",{className:"flex gap-1 flex-wrap mb-1",children:(f=a.attachments)==null?void 0:f.map(g=>z.jsx($3,{attachment:g},g.id))}),s&&z.jsxs("div",{className:"flex items-center justify-end gap-1 mt-1 text-[10px] text-zinc-500 opacity-0 group-hover:opacity-100 transition-opacity duration-200",children:[z.jsx("span",{children:s}),z.jsx(Yn.CheckCheck,{className:"size-3"})]})]})}),z.jsxs($1,{className:"size-8 ring-2 ring-white shadow-sm",children:[z.jsx(ix,{src:n==null?void 0:n.avatarUrl,className:"object-cover",alt:(n==null?void 0:n.name)||"User avatar"}),z.jsx(ox,{className:"bg-zinc-100 text-zinc-600 text-xs font-medium",children:((d=(p=n==null?void 0:n.name)==null?void 0:p.slice(0,2))==null?void 0:d.toUpperCase())||"U"})]})]})}const yA=e=>typeof e=="boolean"?"".concat(e):e===0?"0":e,EA=$A.clsx,CH=(e,n)=>a=>{var s;if((n==null?void 0:n.variants)==null)return EA(e,a==null?void 0:a.class,a==null?void 0:a.className);const{variants:f,defaultVariants:p}=n,d=Object.keys(f).map(T=>{const C=a==null?void 0:a[T],S=p==null?void 0:p[T];if(C===null)return null;const R=yA(C)||yA(S);return f[T][R]}),g=a&&Object.entries(a).reduce((T,C)=>{let[S,R]=C;return R===void 0||(T[S]=R),T},{}),E=n==null||(s=n.compoundVariants)===null||s===void 0?void 0:s.reduce((T,C)=>{let{class:S,className:R,...A}=C;return Object.entries(A).every(D=>{let[L,U]=D;return Array.isArray(U)?U.includes({...p,...g}[L]):{...p,...g}[L]===U})?[...T,S,R]:T},[]);return EA(e,d,E,a==null?void 0:a.class,a==null?void 0:a.className)},bA={x:2,y:2},_H={1:"scale-[1]","1.01":"scale-[1.01]","1.02":"scale-[1.02]","1.1":"scale-[1.1]"},Wm=vt.memo(vt.forwardRef(({children:e,className:n,scale:a="1.02",off:s=!1},f)=>{const[p,d]=vt.useState(!1),[g,E]=vt.useState({x:0,y:0});if(s||/translate/.test(e.props.className||""))return e;const C=D=>{var we,Me;const{clientX:L,clientY:U}=D,H=D.currentTarget.getBoundingClientRect(),G=L-(H.left+H.width/2),W=U-(H.top+H.height/2),Z=Math.max(-1,Math.min(1,G/(H.width/2))),J=Math.max(-1,Math.min(1,W/(H.height/2))),X=Z*bA.x,ce=J*bA.y;E({x:X,y:ce}),(Me=(we=e.props).onMouseMove)==null||Me.call(we,D)},S=()=>{var D,L;d(!0),(L=(D=e.props).onMouseEnter)==null||L.call(D)},R=()=>{var D,L;d(!1),E({x:0,y:0}),(L=(D=e.props).onMouseLeave)==null||L.call(D)},A={"--opencx-wobble-x":p?`${g.x}px`:"0px","--opencx-wobble-y":p?`${g.y}px`:"0px"};return vt.cloneElement(e,{ref:f,onMouseMove:C,onMouseEnter:S,onMouseLeave:R,style:{...A,...e.props.style},className:jt("translate-x-[var(--opencx-wobble-x)]","translate-y-[var(--opencx-wobble-y)]",`hover:${_H[a]}`,n,e.props.className,"transition-all ease-out")})}));Wm.displayName="Wobble";const AH=CH(jt("inline-flex shrink-0 items-center justify-center gap-2","text-sm font-medium whitespace-nowrap","ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2","disabled:pointer-events-none disabled:opacity-50","shadow-sm active:shadow-none active:scale-95 hover:active:scale-95","rounded-xl","border","transition"),{variants:{variant:{default:"border-primary bg-primary text-primary-foreground",destructive:"border-destructive bg-destructive text-destructive-foreground",outline:"bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground",ghost:"border-transparent shadow-none hover:bg-accent hover:text-accent-foreground",link:"border-transparent shadow-none text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-8 px-3 text-xs",lg:"h-11 px-8",icon:"h-10 w-10",fit:"size-fit p-2"}},defaultVariants:{variant:"default",size:"default"}}),Ac=ie.forwardRef(({className:e,variant:n,size:a,asChild:s=!1,...f},p)=>{const d=s?Pw.Slot:"button";return z.jsx(Wm,{ref:p,children:z.jsx(d,{className:jt(AH({variant:n,size:a,className:e})),...f})})});Ac.displayName="Button";function kH({options:e,onKeyboardClick:n}){return z.jsx("div",{className:"flex items-center gap-2 p-2 flex-wrap",children:e.map((a,s)=>z.jsx(Ac,{onClick:()=>n(a),className:"flex-1 rounded-full",size:"sm",children:a},s))})}const RH=qn.Root,NH=qn.Trigger,TA=qn.Group,DH=ie.forwardRef(({className:e,inset:n,children:a,...s},f)=>z.jsxs(qn.SubTrigger,{ref:f,className:jt("flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",n&&"pl-8",e),...s,children:[a,z.jsx(Yn.ChevronRight,{className:"ml-auto"})]}));DH.displayName=qn.SubTrigger.displayName;const OH=ie.forwardRef(({className:e,...n},a)=>z.jsx(qn.SubContent,{ref:a,className:jt("z-50 min-w-[8rem] overflow-hidden rounded-2xl border bg-background p-1 text-foreground shadow-2xl data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n}));OH.displayName=qn.SubContent.displayName;const X3=ie.forwardRef(({className:e,sideOffset:n=4,...a},s)=>z.jsx(qn.Content,{ref:s,sideOffset:n,className:jt("z-50 min-w-[8rem] overflow-hidden rounded-2xl border bg-background p-1 text-foreground shadow-2xl","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...a}));X3.displayName=qn.Content.displayName;const b1=ie.forwardRef(({className:e,inset:n,...a},s)=>z.jsx(io,{children:z.jsx(qn.Item,{ref:s,className:jt("relative flex cursor-default select-none items-center gap-2 rounded-xl px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:size-4 [&_svg]:shrink-0",n&&"pl-8",e),...a})}));b1.displayName=qn.Item.displayName;const LH=ie.forwardRef(({className:e,children:n,checked:a,...s},f)=>z.jsxs(qn.CheckboxItem,{ref:f,className:jt("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:a,...s,children:[z.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:z.jsx(qn.ItemIndicator,{children:z.jsx(Yn.Check,{className:"h-4 w-4"})})}),n]}));LH.displayName=qn.CheckboxItem.displayName;const IH=ie.forwardRef(({className:e,children:n,...a},s)=>z.jsxs(qn.RadioItem,{ref:s,className:jt("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...a,children:[z.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:z.jsx(qn.ItemIndicator,{children:z.jsx(Yn.Circle,{className:"h-2 w-2 fill-current"})})}),n]}));IH.displayName=qn.RadioItem.displayName;const MH=ie.forwardRef(({className:e,inset:n,...a},s)=>z.jsx(qn.Label,{ref:s,className:jt("px-2 py-1.5 text-sm font-semibold",n&&"pl-8",e),...a}));MH.displayName=qn.Label.displayName;const K3=ie.forwardRef(({className:e,...n},a)=>z.jsx(qn.Separator,{ref:a,className:jt("-mx-1 my-1 h-px bg-muted",e),...n}));K3.displayName=qn.Separator.displayName;function PH({className:e,...n}){return z.jsx("div",{className:jt("animate-pulse rounded-md bg-secondary",e),...n})}const _w=ie.forwardRef(({className:e,...n},a)=>z.jsx(Wm,{scale:"1.1",ref:a,children:z.jsx(sw.Root,{className:jt("peer group inline-flex h-5 w-9 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent shadow-sm transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",e),...n,ref:a,children:z.jsx(sw.Thumb,{className:jt("pointer-events-none block size-4 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-4 data-[state=unchecked]:translate-x-0","group-active:scale-90 group-hover:active:scale-90")})})}));_w.displayName=sw.Root.displayName;function FH(){const e=Tt.useLocale(),[n,a]=vt.useState(!1),{clearSession:s}=Tt.useChat(),{widgetSettings:f,setSettings:p}=Tt.useConfigData(),d=()=>{p({persistSession:!(f!=null&&f.persistSession)})},g=()=>{p({useSoundEffects:!(f!=null&&f.useSoundEffects)})};return z.jsxs(RH,{open:n,onOpenChange:a,children:[z.jsx(NH,{asChild:!0,children:z.jsx(Ac,{variant:"ghost",size:"fit",className:"rounded-full",children:z.jsx(Yn.EllipsisVerticalIcon,{className:"size-4"})})}),z.jsxs(X3,{align:"end",className:"min-w-56",children:[z.jsxs(TA,{children:[z.jsxs(b1,{onSelect:E=>{E.preventDefault(),d()},children:[z.jsx(ta.AnimatePresence,{mode:"wait",children:f!=null&&f.persistSession?z.jsx(io,{fadeIn:"right",distance:4,snapExit:!0,children:z.jsx(Yn.SaveIcon,{})},"save"):z.jsx(io,{fadeIn:"right",distance:4,snapExit:!0,children:z.jsx(Yn.SaveOffIcon,{})},"save-off")}),e.get("persist-session"),z.jsx(_w,{className:"ml-auto",checked:f==null?void 0:f.persistSession,onCheckedChange:d})]}),z.jsxs(b1,{onSelect:E=>{E.preventDefault(),g()},children:[z.jsx(ta.AnimatePresence,{mode:"wait",children:f!=null&&f.useSoundEffects?z.jsx(io,{fadeIn:"right",distance:4,snapExit:!0,children:z.jsx(Yn.Volume2Icon,{})},"volume-2"):z.jsx(io,{fadeIn:"right",distance:4,snapExit:!0,children:z.jsx(Yn.VolumeOffIcon,{})},"volume-off")}),e.get("sound-effects"),z.jsx(_w,{className:"ml-auto",checked:f==null?void 0:f.useSoundEffects,onCheckedChange:g})]})]}),z.jsx(K3,{}),z.jsx(TA,{children:z.jsxs(b1,{onSelect:()=>{s(),a(!1)},children:[z.jsx(ta.motion.div,{initial:{opacity:0,x:-4,rotate:360},animate:{opacity:1,x:0,rotate:0},children:z.jsx(Yn.RotateCcw,{})}),e.get("reset-conversation")]})})]})]})}function UH(){const{data:e,isLoading:n}=Tt.usePreludeData();return z.jsx("header",{className:"p-2 border-b bg-background",children:z.jsxs("div",{className:"flex items-center gap-2",children:[z.jsx("div",{className:"flex-1 pl-2",children:n?z.jsx(PH,{className:"h-4 w-2/3"}):z.jsx("h2",{className:"font-semibold",children:e==null?void 0:e.organization_name})}),z.jsx(FH,{})]})})}const[sx,BH]=Tt.createSafeContext(),HH=()=>{};function zH({defaultOpen:e,onOpenChange:n,open:a,children:s,isAlert:f}){const[p,d]=vt.useState(e),g=a??p??!1,E=n??d;return z.jsx(BH,{value:{open:g,setOpen:E,onOpenChange:n??HH,isAlert:f||!1},children:typeof s=="function"?s({open:g,setOpen:E}):s})}vt.forwardRef((e,n)=>{const{setOpen:a,open:s}=sx();return z.jsx("button",{...e,"data-open":s,onClick:()=>a(!0),ref:n})});const jH=vt.forwardRef((e,n)=>z.jsx(ta.motion.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0,transition:{delay:.1}},transition:{duration:.2},className:"absolute inset-0 z-[24] from-gray-100/30 to-gray-50/30 bg-gradient-to-t backdrop-blur-sm",...e,ref:n}));function VH(...e){return n=>{e.forEach(a=>{typeof a=="function"?a(n):a&&(a.current=n)})}}const YH=vt.forwardRef(({children:e,...n},a)=>{const{open:s,setOpen:f,isAlert:p}=sx(),d=vt.useRef(null),g=vt.useRef(null),E=VH(a,d);return vt.useEffect(()=>{if(!s||p)return;const T=C=>{C.key==="Escape"&&f(!1)};return window.addEventListener("keydown",T),()=>{window.removeEventListener("keydown",T)}},[s,f]),vt.useEffect(()=>{var T;s&&((T=d.current)==null||T.focus())},[s]),z.jsx(ta.AnimatePresence,{children:s&&z.jsxs(z.Fragment,{children:[z.jsx(ta.motion.div,{"data-alert":p,initial:{opacity:0,y:20,x:"-50%"},animate:{opacity:1,y:0,x:"-50%"},exit:{opacity:0,y:20,x:"-50%"},transition:{type:"spring",damping:20,stiffness:300},className:"bg-background rounded-xl grid grid-cols-1 gap-2 border max-w-[90%] bottom-2 w-full absolute left-1/2 p-3 z-[25]",ref:E,...n,children:e}),z.jsx(jH,{onClick:T=>{p||T.target===g.current&&f(!1)},ref:g})]})})});vt.forwardRef((e,n)=>{const{setOpen:a,open:s}=sx();return z.jsx("button",{...e,"data-open":s,onClick:()=>{a(!1)},ref:n})});function WH(){const{session:e,recreateSession:n,hookState:a}=Tt.useChat(),s=Tt.useLocale();return e&&e.isSessionClosed!==!0||a.state==="loading"?null:z.jsx(zH,{open:e==null?void 0:e.isSessionClosed,children:z.jsxs(YH,{children:[z.jsxs("header",{className:"flex items-center gap-1",children:[z.jsx(Yn.CheckCheckIcon,{className:"size-5 text-emerald-500"}),z.jsx("h2",{className:"text-base font-medium",dir:"auto",children:s.get("session-closed-lead")})]}),z.jsx("footer",{className:"grid mt-2",children:z.jsx("button",{onClick:n,className:"text-sm font-medium hover:brightness-110 whitespace-nowrap px-3 py-2 bg-primary text-primary-foreground rounded-md",children:s.get("create-new-ticket")})})]})})}function qH({file:{status:e,file:n,error:a},onCancel:s}){const[f,p]=vt.useState(null);vt.useEffect(()=>{if(!n.type.startsWith("image/"))return;const E=new FileReader;return E.onload=()=>p(E.result),E.onerror=()=>console.error("Error reading file"),E.readAsDataURL(n),()=>E.abort()},[n]);const d=()=>{switch(e){case"uploading":return z.jsx(Yn.Loader2,{className:"size-4 animate-spin"});case"error":return z.jsx(Yn.AlertCircle,{className:"size-4 text-destructive"});default:return null}},g=()=>{const E=n.type.split("/")[0];return E==="image"&&f?z.jsx("img",{src:typeof f=="string"?f:"",className:"object-cover bg-secondary size-full",alt:n.name}):E==="audio"?z.jsx(Yn.FileAudio,{}):z.jsx(Yn.FileIcon,{})};return z.jsx(cw,{content:e==="error"?z.jsxs("span",{className:"text-destructive",children:["Failed to upload: ",a]}):n.name,children:z.jsxs("div",{className:jt(e==="uploading"&&"opacity-50","group","size-12 border rounded-2xl overflow-hidden relative","flex items-center justify-center shrink-0"),children:[z.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:d()}),z.jsx("button",{className:jt("absolute bg-black/50 inset-0 size-full z-10 opacity-0","flex items-center justify-center","opacity-0 group-hover:opacity-100 transition"),onClick:s,children:z.jsx(Yn.XIcon,{className:"size-4 text-primary-foreground"})}),z.jsx(g,{})]})})}const wA=jt("rounded-3xl");function QH(){const{collectUserData:e}=Tt.useConfigData(),n=vt.useRef(null),{sendMessage:a,hookState:s,session:f}=Tt.useChat(),{contact:p}=Tt.useContact(),d=Tt.useLocale(),[g,E]=vt.useState(""),{allFiles:T,emptyTheFiles:C,handleCancelUpload:S,appendFiles:R,isUploading:A,successFiles:D}=Tt.useUploadFiles(),L=f&&((f==null?void 0:f.isAssignedToHuman)||f.ai_closure_type===zL.AIClosureType.handed_off),U=we=>{L&&R(we)},H=async()=>{s.state!=="loading"&&(A&&e_.error("please wait for the file(s) to upload"),g.trim()&&(E(""),C(),await a({content:{text:g.trim()},user:{email:(p==null?void 0:p.email)??void 0,name:(p==null?void 0:p.name)??void 0},attachments:D.map(we=>({url:we.fileUrl,type:we.file.type,name:we.file.name,id:we.id,size:we.file.size}))})))},{getRootProps:G,getInputProps:W,open:Z}=HL.useDropzone({onDrop:U,noClick:!0,onDropRejected(){L&&e_.error("unsupported file type, or the file is too large")},maxSize:5*1024*1024,accept:{"text/*":[".txt"],"image/*":[".png",".jpg",".jpeg",".gif"],"application/pdf":[".pdf"]}}),J=s.state==="loading",X=e&&!(p!=null&&p.id),ce=we=>{const Me=we.clipboardData;Me&&Me.files.length>0&&U(Array.from(Me.files))};return z.jsxs("div",{className:"p-2 relative space-y-1",...G(),children:[z.jsx("input",{...W()}),z.jsxs("div",{className:jt(wA,"relative space-y-2 border transition-all shadow py-2"),children:[z.jsx("div",{className:"flex items-center gap-1 px-2",children:z.jsx(ta.AnimatePresence,{mode:"popLayout",children:T.map(we=>z.jsx(io,{snapExit:!0,children:z.jsx(qH,{onCancel:()=>S(we.id),file:we})},we.id))})}),z.jsx("textarea",{onPaste:ce,ref:n,id:"chat-input",dir:"auto",disabled:J,value:g,rows:3,className:jt(wA,"w-full px-3","resize-none","bg-transparent outline-none","text-sm"),onChange:we=>E(we.target.value),onKeyDown:async we=>{we.key==="Enter"&&!we.shiftKey&&(we.preventDefault(),H())},placeholder:d.get("write-a-message")}),z.jsxs("div",{className:"px-2 flex justify-between",children:[z.jsx(cw,{side:"top",align:"end",content:"attach files, (maximum size 5mb)",children:z.jsx(Ac,{onClick:()=>{L&&Z()},size:"fit",variant:"outline",className:jt("disabled:opacity-0","rounded-full size-8 flex items-center justify-center p-0"),disabled:!L,children:z.jsx(Yn.PaperclipIcon,{className:"size-4"})})}),z.jsx(cw,{content:"send message",children:z.jsx(Ac,{size:"fit",onClick:H,disabled:J||X||A,className:"rounded-full size-8 flex items-center justify-center p-0",children:J?z.jsx(Yn.CircleDashed,{className:"size-4 animate-spin animate-iteration-infinite"}):z.jsx(Yn.SendHorizonal,{className:"size-4 rtl:-scale-100"})})})]})]})]})}function $H(){const{state:e,hookState:n}=Tt.useChat(),{componentStore:a,initialMessages:s,...f}=Tt.useConfigData(),p=a.getComponent("loading"),d=vt.useRef(null);function g(){setTimeout(()=>{const E=d.current;E&&(E.scrollTop=E.scrollHeight)},0)}return vt.useEffect(()=>{g()},[e.messages]),z.jsxs("div",{"data-messages":!0,ref:d,className:"max-h-full scroll-smooth relative flex-1 py-4 px-3 space-y-3 overflow-auto",children:[e.messages.length===0&&((s==null?void 0:s.map((E,T)=>z.jsx(s1,{message:{component:"text",data:{message:E},id:`initial-${T}`,type:"FROM_BOT"},Wrapper:XT,wrapperProps:{agent:f.bot}},T)))??z.jsx(s1,{message:{component:"text",data:{message:"Hello, how can I help?"},id:"default-welcome",type:"FROM_BOT",agent:f.bot},Wrapper:XT,wrapperProps:{agent:f.bot}},"default-welcome")),e.messages.map(E=>E.type==="FROM_USER"?z.jsx(SH,{message:E,user:f.user,children:E.content},E.id):E.type==="FROM_BOT"?E.component=="CHAT_EVENT"?z.jsx(s1,{message:E},E.id):z.jsx(s1,{message:E,Wrapper:XT,wrapperProps:{agent:E.agent}},E.id):null),n.state==="loading"&&z.jsx(p,{})]})}function GH(){var g;const{state:e,sendMessage:n,noMessages:a,handleKeyboard:s}=Tt.useChat(),p=(g=Tt.usePreludeData().data)==null?void 0:g.initial_questions,{observedElementRef:d}=GA({fallbackHeight:gH});return z.jsxs("div",{ref:d,className:jt(ux.widgetHeight,"w-full flex flex-col overflow-hidden bg-background z-10 origin-bottom absolute bottom-0 inset-x-0"),children:[z.jsxs("div",{className:"w-full h-full justify-between flex flex-col relative",style:{background:"linear-gradient(333.89deg, rgba(75, 240, 171, 0.8) 58%, rgba(75, 240, 171, 0) 85.74%), linear-gradient(113.43deg, #46B1FF 19.77%, #1883FF 65.81%)"},children:[z.jsx(UH,{}),z.jsxs("div",{className:"flex bg-background shadow-lg flex-col w-full flex-1 overflow-auto",children:[z.jsx($H,{}),z.jsxs("footer",{children:[e.keyboard&&z.jsx(kH,{options:e.keyboard.options,onKeyboardClick:s}),a&&p&&z.jsx("div",{className:"flex items-center flex-row justify-end gap-2 flex-wrap px-2",children:p==null?void 0:p.map((E,T)=>z.jsx(Ac,{dir:"auto",variant:"outline",size:"sm",onClick:()=>{n({content:{text:E}})},children:E},T))}),z.jsx(QH,{})]})]})]}),z.jsx(WH,{})]})}const Aw=ie.forwardRef(({className:e,type:n,...a},s)=>z.jsx(Wm,{ref:s,children:z.jsx("input",{type:n,className:jt("flex w-full rounded-xl border border-input bg-background p-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-primary-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 transition",e),...a})}));Aw.displayName="Input";const XH=NT.z.object({name:NT.z.string().min(2),email:NT.z.string().email()});function KH(){const e=Tt.useLocale(),{data:n}=Tt.usePreludeData(),{createContactAsync:a}=Tt.useContact(),{assets:s}=Tt.useConfigData(),{observedElementRef:f}=GA({fallbackHeight:mH}),[p,d]=Tt._default(async g=>{g.preventDefault();const E=new FormData(g.currentTarget),T=Object.fromEntries(E.entries()),C=XH.safeParse(T);C.success&&await a(C.data)});return z.jsxs("div",{ref:f,className:jt(ux.widgetMinHeight,"h-fit bg-primary rounded-3xl flex flex-col"),children:[z.jsxs("div",{className:"flex-1 flex flex-col px-4 py-12 text-start space-y-4 relative z-10",children:[z.jsx("div",{className:"flex items-center justify-between w-full mb-2",children:s!=null&&s.organizationLogo?z.jsx("img",{src:s==null?void 0:s.organizationLogo,alt:"Company Logo",className:"h-8 w-auto object-contain"}):z.jsx("h2",{className:"font-bold text-xl text-primary-foreground",children:n==null?void 0:n.organization_name})}),z.jsxs("div",{className:"space-y-2",children:[z.jsx("h1",{className:"text-2xl font-bold text-primary-foreground",children:e.get("welcome-title")}),z.jsx("p",{className:"text-primary-foreground/90 text-sm max-w-[320px] leading-relaxed",children:e.get("welcome-description")})]})]}),z.jsx("div",{className:"p-2 bg-background rounded-3xl",children:z.jsxs("form",{onSubmit:d,className:"space-y-2",children:[z.jsxs("div",{className:"space-y-2",children:[z.jsx(Aw,{required:!0,dir:"auto",autoFocus:!0,placeholder:e.get("your-name"),name:"name",className:"rounded-3xl pl-3"}),z.jsx(Aw,{required:!0,dir:"auto",type:"email",placeholder:e.get("your-email"),name:"email",className:"rounded-3xl pl-3"})]}),z.jsxs(Ac,{disabled:p.loading,className:"w-full rounded-3xl",children:[p.loading?e.get("starting-chat"):e.get("start-chat"),z.jsx(Yn.SendHorizontal,{className:"size-4"})]})]})})]})}function ZH(){const{shouldCollectDataFirst:e}=xH();return z.jsx("div",{className:"bg-background size-full",children:z.jsx(ta.AnimatePresence,{mode:"wait",children:e?z.jsx(io,{fadeIn:"right",className:"size-full",snapExit:!0,children:z.jsx(KH,{})},"welcome-screen"):z.jsx(io,{fadeIn:"right",className:"size-full",snapExit:!0,children:z.jsx(GH,{})},"chat-screen")})})}function Js(e,n,{checkForDefaultPrevented:a=!0}={}){return function(f){if(e==null||e(f),a===!1||!f.defaultPrevented)return n==null?void 0:n(f)}}function JH(e,n){typeof e=="function"?e(n):e!=null&&(e.current=n)}function ez(...e){return n=>e.forEach(a=>JH(a,n))}function ul(...e){return ie.useCallback(ez(...e),e)}function tz(e,n=[]){let a=[];function s(p,d){const g=ie.createContext(d),E=a.length;a=[...a,d];const T=S=>{var H;const{scope:R,children:A,...D}=S,L=((H=R==null?void 0:R[e])==null?void 0:H[E])||g,U=ie.useMemo(()=>D,Object.values(D));return z.jsx(L.Provider,{value:U,children:A})};T.displayName=p+"Provider";function C(S,R){var L;const A=((L=R==null?void 0:R[e])==null?void 0:L[E])||g,D=ie.useContext(A);if(D)return D;if(d!==void 0)return d;throw new Error(`\`${S}\` must be used within \`${p}\``)}return[T,C]}const f=()=>{const p=a.map(d=>ie.createContext(d));return function(g){const E=(g==null?void 0:g[e])||p;return ie.useMemo(()=>({[`__scope${e}`]:{...g,[e]:E}}),[g,E])}};return f.scopeName=e,[s,nz(f,...n)]}function nz(...e){const n=e[0];if(e.length===1)return n;const a=()=>{const s=e.map(f=>({useScope:f(),scopeName:f.scopeName}));return function(p){const d=s.reduce((g,{useScope:E,scopeName:T})=>{const S=E(p)[`__scope${T}`];return{...g,...S}},{});return ie.useMemo(()=>({[`__scope${n.scopeName}`]:d}),[d])}};return a.scopeName=n.scopeName,a}var kw={exports:{}},Ya={},l1={exports:{}},KT={};/**
|
|
30
30
|
* @license React
|
|
31
31
|
* scheduler.production.min.js
|
|
32
32
|
*
|
|
@@ -239,7 +239,7 @@ You might need to use a local HTTP server (instead of file://): https://reactjs.
|
|
|
239
239
|
`)},YA=function(){var e=parseInt(document.body.getAttribute(jf)||"0",10);return isFinite(e)?e:0},pV=function(){ie.useEffect(function(){return document.body.setAttribute(jf,(YA()+1).toString()),function(){var e=YA()-1;e<=0?document.body.removeAttribute(jf):document.body.setAttribute(jf,e.toString())}},[])},mV=function(e){var n=e.noRelative,a=e.noImportant,s=e.gapMode,f=s===void 0?"margin":s;pV();var p=ie.useMemo(function(){return dV(f)},[f]);return ie.createElement(fV,{styles:hV(p,!n,f,a?"":"!important")})},Iw=!1;if(typeof window<"u")try{var p1=Object.defineProperty({},"passive",{get:function(){return Iw=!0,!0}});window.addEventListener("test",p1,p1),window.removeEventListener("test",p1,p1)}catch{Iw=!1}var Mf=Iw?{passive:!1}:!1,gV=function(e){return e.tagName==="TEXTAREA"},NR=function(e,n){if(!(e instanceof Element))return!1;var a=window.getComputedStyle(e);return a[n]!=="hidden"&&!(a.overflowY===a.overflowX&&!gV(e)&&a[n]==="visible")},vV=function(e){return NR(e,"overflowY")},yV=function(e){return NR(e,"overflowX")},WA=function(e,n){var a=n.ownerDocument,s=n;do{typeof ShadowRoot<"u"&&s instanceof ShadowRoot&&(s=s.host);var f=DR(e,s);if(f){var p=OR(e,s),d=p[1],g=p[2];if(d>g)return!0}s=s.parentNode}while(s&&s!==a.body);return!1},EV=function(e){var n=e.scrollTop,a=e.scrollHeight,s=e.clientHeight;return[n,a,s]},bV=function(e){var n=e.scrollLeft,a=e.scrollWidth,s=e.clientWidth;return[n,a,s]},DR=function(e,n){return e==="v"?vV(n):yV(n)},OR=function(e,n){return e==="v"?EV(n):bV(n)},TV=function(e,n){return e==="h"&&n==="rtl"?-1:1},wV=function(e,n,a,s,f){var p=TV(e,window.getComputedStyle(n).direction),d=p*s,g=a.target,E=n.contains(g),T=!1,C=d>0,S=0,R=0;do{var A=OR(e,g),D=A[0],L=A[1],U=A[2],H=L-U-p*D;(D||H)&&DR(e,g)&&(S+=H,R+=D),g instanceof ShadowRoot?g=g.host:g=g.parentNode}while(!E&&g!==document.body||E&&(n.contains(g)||n===g));return(C&&(Math.abs(S)<1||!f)||!C&&(Math.abs(R)<1||!f))&&(T=!0),T},m1=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},qA=function(e){return[e.deltaX,e.deltaY]},QA=function(e){return e&&"current"in e?e.current:e},xV=function(e,n){return e[0]===n[0]&&e[1]===n[1]},SV=function(e){return`
|
|
240
240
|
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
241
241
|
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
242
|
-
`)},CV=0,Pf=[];function _V(e){var n=ie.useRef([]),a=ie.useRef([0,0]),s=ie.useRef(),f=ie.useState(CV++)[0],p=ie.useState(RR)[0],d=ie.useRef(e);ie.useEffect(function(){d.current=e},[e]),ie.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(f));var L=Tt.__spreadArray([e.lockRef.current],(e.shards||[]).map(QA),!0).filter(Boolean);return L.forEach(function(U){return U.classList.add("allow-interactivity-".concat(f))}),function(){document.body.classList.remove("block-interactivity-".concat(f)),L.forEach(function(U){return U.classList.remove("allow-interactivity-".concat(f))})}}},[e.inert,e.lockRef.current,e.shards]);var g=ie.useCallback(function(L,U){if("touches"in L&&L.touches.length===2||L.type==="wheel"&&L.ctrlKey)return!d.current.allowPinchZoom;var H=m1(L),G=a.current,W="deltaX"in L?L.deltaX:G[0]-H[0],Z="deltaY"in L?L.deltaY:G[1]-H[1],J,X=L.target,ce=Math.abs(W)>Math.abs(Z)?"h":"v";if("touches"in L&&ce==="h"&&X.type==="range")return!1;var we=WA(ce,X);if(!we)return!0;if(we?J=ce:(J=ce==="v"?"h":"v",we=WA(ce,X)),!we)return!1;if(!s.current&&"changedTouches"in L&&(W||Z)&&(s.current=J),!J)return!0;var Me=s.current||J;return wV(Me,U,L,Me==="h"?W:Z,!0)},[]),E=ie.useCallback(function(L){var U=L;if(!(!Pf.length||Pf[Pf.length-1]!==p)){var H="deltaY"in U?qA(U):m1(U),G=n.current.filter(function(J){return J.name===U.type&&(J.target===U.target||U.target===J.shadowParent)&&xV(J.delta,H)})[0];if(G&&G.should){U.cancelable&&U.preventDefault();return}if(!G){var W=(d.current.shards||[]).map(QA).filter(Boolean).filter(function(J){return J.contains(U.target)}),Z=W.length>0?g(U,W[0]):!d.current.noIsolation;Z&&U.cancelable&&U.preventDefault()}}},[]),T=ie.useCallback(function(L,U,H,G){var W={name:L,delta:U,target:H,should:G,shadowParent:AV(H)};n.current.push(W),setTimeout(function(){n.current=n.current.filter(function(Z){return Z!==W})},1)},[]),C=ie.useCallback(function(L){a.current=m1(L),s.current=void 0},[]),S=ie.useCallback(function(L){T(L.type,qA(L),L.target,g(L,e.lockRef.current))},[]),R=ie.useCallback(function(L){T(L.type,m1(L),L.target,g(L,e.lockRef.current))},[]);ie.useEffect(function(){return Pf.push(p),e.setCallbacks({onScrollCapture:S,onWheelCapture:S,onTouchMoveCapture:R}),document.addEventListener("wheel",E,Mf),document.addEventListener("touchmove",E,Mf),document.addEventListener("touchstart",C,Mf),function(){Pf=Pf.filter(function(L){return L!==p}),document.removeEventListener("wheel",E,Mf),document.removeEventListener("touchmove",E,Mf),document.removeEventListener("touchstart",C,Mf)}},[]);var A=e.removeScrollBar,D=e.inert;return ie.createElement(ie.Fragment,null,D?ie.createElement(p,{styles:SV(f)}):null,A?ie.createElement(mV,{gapMode:e.gapMode}):null)}function AV(e){for(var n=null;e!==null;)e instanceof ShadowRoot&&(n=e.host,e=e.host),e=e.parentNode;return n}const kV=nV(kR,_V);var LR=ie.forwardRef(function(e,n){return ie.createElement(Z1,Tt.__assign({},e,{ref:n,sideCar:kV}))});LR.classNames=Z1.classNames;var vx="Popover",[IR,KV]=tz(vx,[mR]),Qm=mR(),[RV,Dc]=IR(vx),MR=e=>{const{__scopePopover:n,children:a,open:s,defaultOpen:f,onOpenChange:p,modal:d=!1}=e,g=Qm(n),E=ie.useRef(null),[T,C]=ie.useState(!1),[S=!1,R]=jj({prop:s,defaultProp:f,onChange:p});return z.jsx(Pj,{...g,children:z.jsx(RV,{scope:n,contentId:Az(),triggerRef:E,open:S,onOpenChange:R,onOpenToggle:ie.useCallback(()=>R(A=>!A),[R]),hasCustomAnchor:T,onCustomAnchorAdd:ie.useCallback(()=>C(!0),[]),onCustomAnchorRemove:ie.useCallback(()=>C(!1),[]),modal:d,children:a})})};MR.displayName=vx;var PR="PopoverAnchor",NV=ie.forwardRef((e,n)=>{const{__scopePopover:a,...s}=e,f=Dc(PR,a),p=Qm(a),{onCustomAnchorAdd:d,onCustomAnchorRemove:g}=f;return ie.useEffect(()=>(d(),()=>g()),[d,g]),z.jsx(SR,{...p,...s,ref:n})});NV.displayName=PR;var FR="PopoverTrigger",UR=ie.forwardRef((e,n)=>{const{__scopePopover:a,...s}=e,f=Dc(FR,a),p=Qm(a),d=ul(n,f.triggerRef),g=z.jsx(sl.button,{type:"button","aria-haspopup":"dialog","aria-expanded":f.open,"aria-controls":f.contentId,"data-state":jR(f.open),...s,ref:d,onClick:Js(e.onClick,f.onOpenToggle)});return f.hasCustomAnchor?g:z.jsx(SR,{asChild:!0,...p,children:g})});UR.displayName=FR;var DV="PopoverPortal",[ZV,OV]=IR(DV,{forceMount:void 0}),Qf="PopoverContent",BR=ie.forwardRef((e,n)=>{const a=OV(Qf,e.__scopePopover),{forceMount:s=a.forceMount,...f}=e,p=Dc(Qf,e.__scopePopover);return z.jsx(CR,{present:s||p.open,children:p.modal?z.jsx(LV,{...f,ref:n}):z.jsx(IV,{...f,ref:n})})});BR.displayName=Qf;var LV=ie.forwardRef((e,n)=>{const a=Dc(Qf,e.__scopePopover),s=ie.useRef(null),f=ul(n,s),p=ie.useRef(!1);return ie.useEffect(()=>{const d=s.current;if(d)return Qj(d)},[]),z.jsx(LR,{as:Pw.Slot,allowPinchZoom:!0,children:z.jsx(HR,{...e,ref:f,trapFocus:a.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Js(e.onCloseAutoFocus,d=>{var g;d.preventDefault(),p.current||(g=a.triggerRef.current)==null||g.focus()}),onPointerDownOutside:Js(e.onPointerDownOutside,d=>{const g=d.detail.originalEvent,E=g.button===0&&g.ctrlKey===!0,T=g.button===2||E;p.current=T},{checkForDefaultPrevented:!1}),onFocusOutside:Js(e.onFocusOutside,d=>d.preventDefault(),{checkForDefaultPrevented:!1})})})}),IV=ie.forwardRef((e,n)=>{const a=Dc(Qf,e.__scopePopover),s=ie.useRef(!1),f=ie.useRef(!1);return z.jsx(HR,{...e,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:p=>{var d,g;(d=e.onCloseAutoFocus)==null||d.call(e,p),p.defaultPrevented||(s.current||(g=a.triggerRef.current)==null||g.focus(),p.preventDefault()),s.current=!1,f.current=!1},onInteractOutside:p=>{var E,T;(E=e.onInteractOutside)==null||E.call(e,p),p.defaultPrevented||(s.current=!0,p.detail.originalEvent.type==="pointerdown"&&(f.current=!0));const d=p.target;((T=a.triggerRef.current)==null?void 0:T.contains(d))&&p.preventDefault(),p.detail.originalEvent.type==="focusin"&&f.current&&p.preventDefault()}})}),HR=ie.forwardRef((e,n)=>{const{__scopePopover:a,trapFocus:s,onOpenAutoFocus:f,onCloseAutoFocus:p,disableOutsidePointerEvents:d,onEscapeKeyDown:g,onPointerDownOutside:E,onFocusOutside:T,onInteractOutside:C,...S}=e,R=Dc(Qf,a),A=Qm(a);return vz(),z.jsx(rR,{asChild:!0,loop:!0,trapped:s,onMountAutoFocus:f,onUnmountAutoFocus:p,children:z.jsx(tR,{asChild:!0,disableOutsidePointerEvents:d,onInteractOutside:C,onEscapeKeyDown:g,onPointerDownOutside:E,onFocusOutside:T,onDismiss:()=>R.onOpenChange(!1),children:z.jsx(Fj,{"data-state":jR(R.open),role:"dialog",id:R.contentId,...A,...S,ref:n,style:{...S.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),zR="PopoverClose",MV=ie.forwardRef((e,n)=>{const{__scopePopover:a,...s}=e,f=Dc(zR,a);return z.jsx(sl.button,{type:"button",...s,ref:n,onClick:Js(e.onClick,()=>f.onOpenChange(!1))})});MV.displayName=zR;var PV="PopoverArrow",FV=ie.forwardRef((e,n)=>{const{__scopePopover:a,...s}=e,f=Qm(a);return z.jsx(Uj,{...f,...s,ref:n})});FV.displayName=PV;function jR(e){return e?"open":"closed"}var UV=MR,BV=BR;function Mw(){return Mw=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var s in a)({}).hasOwnProperty.call(a,s)&&(e[s]=a[s])}return e},Mw.apply(null,arguments)}function HV(e,n){if(e==null)return{};var a={};for(var s in e)if({}.hasOwnProperty.call(e,s)){if(n.includes(s))continue;a[s]=e[s]}return a}var VR,YR;typeof document<"u"&&(VR=document);typeof window<"u"&&(YR=window);var zV=vt.createContext({document:VR,window:YR}),jV=["children","head","initialContent","src","mountTarget"],WR=vt.forwardRef((e,n)=>{var{children:a,head:s,initialContent:f,src:p,mountTarget:d}=e,g=HV(e,jV),[E,T]=vt.useState(!1),[C,S]=vt.useState(),R=Z=>{Z&&S(Z)};vt.useImperativeHandle(n,()=>C,[C]);var A=f||"<!DOCTYPE html><html><head></head><body></body></html>",D=()=>C?C.contentDocument:null,L=()=>{var Z=D();return d?Z==null?void 0:Z.querySelector(d):Z==null?void 0:Z.body},U=vt.useRef(),H=vt.useCallback(Z=>{U.current=Z;var J=()=>setInterval(()=>H(Z),500);clearInterval(J()),E||T(!0)},[E]);vt.useMemo(()=>{!p&&g.onLoad&&E&&g.onLoad(U.current)},[E]),vt.useEffect(()=>{if(C&&!p){var Z;(Z=C.contentWindow)==null||Z.addEventListener("DOMContentLoaded",H)}return()=>{if(C&&!p){var J;(J=C.contentWindow)==null||J.removeEventListener("DOMContentLoaded",H)}}},[C,H]);var G=()=>{var Z,J=D(),X=(Z=D())==null?void 0:Z.head,ce=L(),we=(J==null?void 0:J.defaultView)||(J==null?void 0:J.parentView),Me=z.jsx(zV.Provider,{value:{document:J,window:we},children:a});return[X&&s&&D1.createPortal(s,X),C&&ce&&D1.createPortal(Me,ce)]},W={};return p?(delete W.srcDoc,W.src=p,W.onLoad=g.onLoad):W.srcDoc=A,z.jsx("iframe",Mw({title:g.title,ref:R},g,{onLoad:H},W,{children:E&&G()}))});WR.displayName="IFrame";const qR='@import"https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..700;1,14..32,100..700&display=swap";[data-chat-widget] *,[data-chat-widget] :before,[data-chat-widget] :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: }[data-chat-widget] ::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: }[data-chat-widget] *,[data-chat-widget] :before,[data-chat-widget] :after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}[data-chat-widget] :before,[data-chat-widget] :after{--tw-content: ""}[data-chat-widget] html,[data-chat-widget] :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}[data-chat-widget] body{margin:0;line-height:inherit}[data-chat-widget] hr{height:0;color:inherit;border-top-width:1px}[data-chat-widget] abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}[data-chat-widget] h1,[data-chat-widget] h2,[data-chat-widget] h3,[data-chat-widget] h4,[data-chat-widget] h5,[data-chat-widget] h6{font-size:inherit;font-weight:inherit}[data-chat-widget] a{color:inherit;text-decoration:inherit}[data-chat-widget] b,[data-chat-widget] strong{font-weight:bolder}[data-chat-widget] code,[data-chat-widget] kbd,[data-chat-widget] samp,[data-chat-widget] 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}[data-chat-widget] small{font-size:80%}[data-chat-widget] sub,[data-chat-widget] sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}[data-chat-widget] sub{bottom:-.25em}[data-chat-widget] sup{top:-.5em}[data-chat-widget] table{text-indent:0;border-color:inherit;border-collapse:collapse}[data-chat-widget] button,[data-chat-widget] input,[data-chat-widget] optgroup,[data-chat-widget] select,[data-chat-widget] 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}[data-chat-widget] button,[data-chat-widget] select{text-transform:none}[data-chat-widget] button,[data-chat-widget] input:where([type=button]),[data-chat-widget] input:where([type=reset]),[data-chat-widget] input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}[data-chat-widget] :-moz-focusring{outline:auto}[data-chat-widget] :-moz-ui-invalid{box-shadow:none}[data-chat-widget] progress{vertical-align:baseline}[data-chat-widget] ::-webkit-inner-spin-button,[data-chat-widget] ::-webkit-outer-spin-button{height:auto}[data-chat-widget] [type=search]{-webkit-appearance:textfield;outline-offset:-2px}[data-chat-widget] ::-webkit-search-decoration{-webkit-appearance:none}[data-chat-widget] ::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}[data-chat-widget] summary{display:list-item}[data-chat-widget] blockquote,[data-chat-widget] dl,[data-chat-widget] dd,[data-chat-widget] h1,[data-chat-widget] h2,[data-chat-widget] h3,[data-chat-widget] h4,[data-chat-widget] h5,[data-chat-widget] h6,[data-chat-widget] hr,[data-chat-widget] figure,[data-chat-widget] p,[data-chat-widget] pre{margin:0}[data-chat-widget] fieldset{margin:0;padding:0}[data-chat-widget] legend{padding:0}[data-chat-widget] ol,[data-chat-widget] ul,[data-chat-widget] menu{list-style:none;margin:0;padding:0}[data-chat-widget] dialog{padding:0}[data-chat-widget] textarea{resize:vertical}[data-chat-widget] input::-moz-placeholder,[data-chat-widget] textarea::-moz-placeholder{opacity:1;color:#9ca3af}[data-chat-widget] input::placeholder,[data-chat-widget] textarea::placeholder{opacity:1;color:#9ca3af}[data-chat-widget] button,[data-chat-widget] [role=button]{cursor:pointer}[data-chat-widget] :disabled{cursor:default}[data-chat-widget] img,[data-chat-widget] svg,[data-chat-widget] video,[data-chat-widget] canvas,[data-chat-widget] audio,[data-chat-widget] iframe,[data-chat-widget] embed,[data-chat-widget] object{display:block;vertical-align:middle}[data-chat-widget] img,[data-chat-widget] video{max-width:100%;height:auto}[data-chat-widget] [hidden]:where(:not([hidden=until-found])){display:none}[data-chat-widget] *{-ms-overflow-style:none;scrollbar-width:none}[data-chat-widget] *::-webkit-scrollbar{display:none}[data-chat-widget] *{border-color:hsl(var(--opencx-border))}[data-chat-widget] .container{width:100%}@media (min-width: 640px){[data-chat-widget] .container{max-width:640px}}@media (min-width: 768px){[data-chat-widget] .container{max-width:768px}}@media (min-width: 1024px){[data-chat-widget] .container{max-width:1024px}}@media (min-width: 1280px){[data-chat-widget] .container{max-width:1280px}}@media (min-width: 1536px){[data-chat-widget] .container{max-width:1536px}}[data-chat-widget] .prose{color:var(--tw-prose-body);max-width:65ch}[data-chat-widget] .prose :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}[data-chat-widget] .prose :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-lead);font-size:1.25em;line-height:1.6;margin-top:1.2em;margin-bottom:1.2em}[data-chat-widget] .prose :where(a):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-links);text-decoration:underline;font-weight:500}[data-chat-widget] .prose :where(strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-bold);font-weight:600}[data-chat-widget] .prose :where(a strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}[data-chat-widget] .prose :where(blockquote strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}[data-chat-widget] .prose :where(thead th strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}[data-chat-widget] .prose :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:decimal;margin-top:1.25em;margin-bottom:1.25em;padding-inline-start:1.625em}[data-chat-widget] .prose :where(ol[type=A]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}[data-chat-widget] .prose :where(ol[type=a]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}[data-chat-widget] .prose :where(ol[type=A s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}[data-chat-widget] .prose :where(ol[type=a s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}[data-chat-widget] .prose :where(ol[type=I]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}[data-chat-widget] .prose :where(ol[type=i]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}[data-chat-widget] .prose :where(ol[type=I s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}[data-chat-widget] .prose :where(ol[type=i s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}[data-chat-widget] .prose :where(ol[type="1"]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:decimal}[data-chat-widget] .prose :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:disc;margin-top:1.25em;margin-bottom:1.25em;padding-inline-start:1.625em}[data-chat-widget] .prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{font-weight:400;color:var(--tw-prose-counters)}[data-chat-widget] .prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{color:var(--tw-prose-bullets)}[data-chat-widget] .prose :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;margin-top:1.25em}[data-chat-widget] .prose :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){border-color:var(--tw-prose-hr);border-top-width:1px;margin-top:3em;margin-bottom:3em}[data-chat-widget] .prose :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:500;font-style:italic;color:var(--tw-prose-quotes);border-inline-start-width:.25rem;border-inline-start-color:var(--tw-prose-quote-borders);quotes:"“""”""‘""’";margin-top:1.6em;margin-bottom:1.6em;padding-inline-start:1em}[data-chat-widget] .prose :where(blockquote p:first-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:open-quote}[data-chat-widget] .prose :where(blockquote p:last-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:close-quote}[data-chat-widget] .prose :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:800;font-size:2.25em;margin-top:0;margin-bottom:.8888889em;line-height:1.1111111}[data-chat-widget] .prose :where(h1 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:900;color:inherit}[data-chat-widget] .prose :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:700;font-size:1.5em;margin-top:2em;margin-bottom:1em;line-height:1.3333333}[data-chat-widget] .prose :where(h2 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:800;color:inherit}[data-chat-widget] .prose :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;font-size:1.25em;margin-top:1.6em;margin-bottom:.6em;line-height:1.6}[data-chat-widget] .prose :where(h3 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:700;color:inherit}[data-chat-widget] .prose :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;margin-top:1.5em;margin-bottom:.5em;line-height:1.5}[data-chat-widget] .prose :where(h4 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:700;color:inherit}[data-chat-widget] .prose :where(img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}[data-chat-widget] .prose :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){display:block;margin-top:2em;margin-bottom:2em}[data-chat-widget] .prose :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}[data-chat-widget] .prose :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:500;font-family:inherit;color:var(--tw-prose-kbd);box-shadow:0 0 0 1px rgb(var(--tw-prose-kbd-shadows) / 10%),0 3px rgb(var(--tw-prose-kbd-shadows) / 10%);font-size:.875em;border-radius:.3125rem;padding-top:.1875em;padding-inline-end:.375em;padding-bottom:.1875em;padding-inline-start:.375em}[data-chat-widget] .prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-code);font-weight:600;font-size:.875em}[data-chat-widget] .prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:"`"}[data-chat-widget] .prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:"`"}[data-chat-widget] .prose :where(a code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}[data-chat-widget] .prose :where(h1 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}[data-chat-widget] .prose :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.875em}[data-chat-widget] .prose :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.9em}[data-chat-widget] .prose :where(h4 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}[data-chat-widget] .prose :where(blockquote code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}[data-chat-widget] .prose :where(thead th code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}[data-chat-widget] .prose :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-pre-code);background-color:var(--tw-prose-pre-bg);overflow-x:auto;font-weight:400;font-size:.875em;line-height:1.7142857;margin-top:1.7142857em;margin-bottom:1.7142857em;border-radius:.375rem;padding-top:.8571429em;padding-inline-end:1.1428571em;padding-bottom:.8571429em;padding-inline-start:1.1428571em}[data-chat-widget] .prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)){background-color:transparent;border-width:0;border-radius:0;padding:0;font-weight:inherit;color:inherit;font-size:inherit;font-family:inherit;line-height:inherit}[data-chat-widget] .prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:none}[data-chat-widget] .prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:none}[data-chat-widget] .prose :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){width:100%;table-layout:auto;margin-top:2em;margin-bottom:2em;font-size:.875em;line-height:1.7142857}[data-chat-widget] .prose :where(thead):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-th-borders)}[data-chat-widget] .prose :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;vertical-align:bottom;padding-inline-end:.5714286em;padding-bottom:.5714286em;padding-inline-start:.5714286em}[data-chat-widget] .prose :where(tbody tr):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-td-borders)}[data-chat-widget] .prose :where(tbody tr:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:0}[data-chat-widget] .prose :where(tbody td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:baseline}[data-chat-widget] .prose :where(tfoot):not(:where([class~=not-prose],[class~=not-prose] *)){border-top-width:1px;border-top-color:var(--tw-prose-th-borders)}[data-chat-widget] .prose :where(tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:top}[data-chat-widget] .prose :where(th,td):not(:where([class~=not-prose],[class~=not-prose] *)){text-align:start}[data-chat-widget] .prose :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}[data-chat-widget] .prose :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-captions);font-size:.875em;line-height:1.4285714;margin-top:.8571429em}[data-chat-widget] .prose{--tw-prose-body: #374151;--tw-prose-headings: #111827;--tw-prose-lead: #4b5563;--tw-prose-links: #111827;--tw-prose-bold: #111827;--tw-prose-counters: #6b7280;--tw-prose-bullets: #d1d5db;--tw-prose-hr: #e5e7eb;--tw-prose-quotes: #111827;--tw-prose-quote-borders: #e5e7eb;--tw-prose-captions: #6b7280;--tw-prose-kbd: #111827;--tw-prose-kbd-shadows: 17 24 39;--tw-prose-code: #111827;--tw-prose-pre-code: #e5e7eb;--tw-prose-pre-bg: #1f2937;--tw-prose-th-borders: #d1d5db;--tw-prose-td-borders: #e5e7eb;--tw-prose-invert-body: #d1d5db;--tw-prose-invert-headings: #fff;--tw-prose-invert-lead: #9ca3af;--tw-prose-invert-links: #fff;--tw-prose-invert-bold: #fff;--tw-prose-invert-counters: #9ca3af;--tw-prose-invert-bullets: #4b5563;--tw-prose-invert-hr: #374151;--tw-prose-invert-quotes: #f3f4f6;--tw-prose-invert-quote-borders: #374151;--tw-prose-invert-captions: #9ca3af;--tw-prose-invert-kbd: #fff;--tw-prose-invert-kbd-shadows: 255 255 255;--tw-prose-invert-code: #fff;--tw-prose-invert-pre-code: #d1d5db;--tw-prose-invert-pre-bg: rgb(0 0 0 / 50%);--tw-prose-invert-th-borders: #4b5563;--tw-prose-invert-td-borders: #374151;font-size:1rem;line-height:1.75}[data-chat-widget] .prose :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}[data-chat-widget] .prose :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;margin-bottom:.5em}[data-chat-widget] .prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.375em}[data-chat-widget] .prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.375em}[data-chat-widget] .prose :where(.prose>ul>li p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}[data-chat-widget] .prose :where(.prose>ul>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}[data-chat-widget] .prose :where(.prose>ul>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}[data-chat-widget] .prose :where(.prose>ol>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}[data-chat-widget] .prose :where(.prose>ol>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}[data-chat-widget] .prose :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}[data-chat-widget] .prose :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}[data-chat-widget] .prose :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;padding-inline-start:1.625em}[data-chat-widget] .prose :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}[data-chat-widget] .prose :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}[data-chat-widget] .prose :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}[data-chat-widget] .prose :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}[data-chat-widget] .prose :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}[data-chat-widget] .prose :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}[data-chat-widget] .prose :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.5714286em;padding-inline-end:.5714286em;padding-bottom:.5714286em;padding-inline-start:.5714286em}[data-chat-widget] .prose :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}[data-chat-widget] .prose :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}[data-chat-widget] .prose :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}[data-chat-widget] .prose :where(.prose>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}[data-chat-widget] .prose :where(.prose>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0}[data-chat-widget] .prose-sm{font-size:.875rem;line-height:1.7142857}[data-chat-widget] .prose-sm :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em}[data-chat-widget] .prose-sm :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.2857143em;line-height:1.5555556;margin-top:.8888889em;margin-bottom:.8888889em}[data-chat-widget] .prose-sm :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.3333333em;margin-bottom:1.3333333em;padding-inline-start:1.1111111em}[data-chat-widget] .prose-sm :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:2.1428571em;margin-top:0;margin-bottom:.8em;line-height:1.2}[data-chat-widget] .prose-sm :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.4285714em;margin-top:1.6em;margin-bottom:.8em;line-height:1.4}[data-chat-widget] .prose-sm :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.2857143em;margin-top:1.5555556em;margin-bottom:.4444444em;line-height:1.5555556}[data-chat-widget] .prose-sm :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.4285714em;margin-bottom:.5714286em;line-height:1.4285714}[data-chat-widget] .prose-sm :where(img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}[data-chat-widget] .prose-sm :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}[data-chat-widget] .prose-sm :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}[data-chat-widget] .prose-sm :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}[data-chat-widget] .prose-sm :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;border-radius:.3125rem;padding-top:.1428571em;padding-inline-end:.3571429em;padding-bottom:.1428571em;padding-inline-start:.3571429em}[data-chat-widget] .prose-sm :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em}[data-chat-widget] .prose-sm :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.9em}[data-chat-widget] .prose-sm :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8888889em}[data-chat-widget] .prose-sm :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;line-height:1.6666667;margin-top:1.6666667em;margin-bottom:1.6666667em;border-radius:.25rem;padding-top:.6666667em;padding-inline-end:1em;padding-bottom:.6666667em;padding-inline-start:1em}[data-chat-widget] .prose-sm :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em;padding-inline-start:1.5714286em}[data-chat-widget] .prose-sm :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em;padding-inline-start:1.5714286em}[data-chat-widget] .prose-sm :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.2857143em;margin-bottom:.2857143em}[data-chat-widget] .prose-sm :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.4285714em}[data-chat-widget] .prose-sm :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.4285714em}[data-chat-widget] .prose-sm :where(.prose-sm>ul>li p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5714286em;margin-bottom:.5714286em}[data-chat-widget] .prose-sm :where(.prose-sm>ul>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em}[data-chat-widget] .prose-sm :where(.prose-sm>ul>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.1428571em}[data-chat-widget] .prose-sm :where(.prose-sm>ol>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em}[data-chat-widget] .prose-sm :where(.prose-sm>ol>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.1428571em}[data-chat-widget] .prose-sm :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5714286em;margin-bottom:.5714286em}[data-chat-widget] .prose-sm :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em}[data-chat-widget] .prose-sm :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em}[data-chat-widget] .prose-sm :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.2857143em;padding-inline-start:1.5714286em}[data-chat-widget] .prose-sm :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2.8571429em;margin-bottom:2.8571429em}[data-chat-widget] .prose-sm :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}[data-chat-widget] .prose-sm :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}[data-chat-widget] .prose-sm :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}[data-chat-widget] .prose-sm :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}[data-chat-widget] .prose-sm :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;line-height:1.5}[data-chat-widget] .prose-sm :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:1em;padding-bottom:.6666667em;padding-inline-start:1em}[data-chat-widget] .prose-sm :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}[data-chat-widget] .prose-sm :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}[data-chat-widget] .prose-sm :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.6666667em;padding-inline-end:1em;padding-bottom:.6666667em;padding-inline-start:1em}[data-chat-widget] .prose-sm :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}[data-chat-widget] .prose-sm :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}[data-chat-widget] .prose-sm :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}[data-chat-widget] .prose-sm :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}[data-chat-widget] .prose-sm :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;line-height:1.3333333;margin-top:.6666667em}[data-chat-widget] .prose-sm :where(.prose-sm>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}[data-chat-widget] .prose-sm :where(.prose-sm>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0}[data-chat-widget] .prose-slate{--tw-prose-body: #334155;--tw-prose-headings: #0f172a;--tw-prose-lead: #475569;--tw-prose-links: #0f172a;--tw-prose-bold: #0f172a;--tw-prose-counters: #64748b;--tw-prose-bullets: #cbd5e1;--tw-prose-hr: #e2e8f0;--tw-prose-quotes: #0f172a;--tw-prose-quote-borders: #e2e8f0;--tw-prose-captions: #64748b;--tw-prose-kbd: #0f172a;--tw-prose-kbd-shadows: 15 23 42;--tw-prose-code: #0f172a;--tw-prose-pre-code: #e2e8f0;--tw-prose-pre-bg: #1e293b;--tw-prose-th-borders: #cbd5e1;--tw-prose-td-borders: #e2e8f0;--tw-prose-invert-body: #cbd5e1;--tw-prose-invert-headings: #fff;--tw-prose-invert-lead: #94a3b8;--tw-prose-invert-links: #fff;--tw-prose-invert-bold: #fff;--tw-prose-invert-counters: #94a3b8;--tw-prose-invert-bullets: #475569;--tw-prose-invert-hr: #334155;--tw-prose-invert-quotes: #f1f5f9;--tw-prose-invert-quote-borders: #334155;--tw-prose-invert-captions: #94a3b8;--tw-prose-invert-kbd: #fff;--tw-prose-invert-kbd-shadows: 255 255 255;--tw-prose-invert-code: #fff;--tw-prose-invert-pre-code: #cbd5e1;--tw-prose-invert-pre-bg: rgb(0 0 0 / 50%);--tw-prose-invert-th-borders: #475569;--tw-prose-invert-td-borders: #334155}[data-chat-widget] .pointer-events-none{pointer-events:none}[data-chat-widget] .visible{visibility:visible}[data-chat-widget] .fixed{position:fixed}[data-chat-widget] .absolute{position:absolute}[data-chat-widget] .relative{position:relative}[data-chat-widget] .inset-0{top:0;right:0;bottom:0;left:0}[data-chat-widget] .inset-x-0{left:0;right:0}[data-chat-widget] .bottom-0{bottom:0}[data-chat-widget] .bottom-2{bottom:.5rem}[data-chat-widget] .left-0{left:0}[data-chat-widget] .left-1\\/2{left:50%}[data-chat-widget] .left-2{left:.5rem}[data-chat-widget] .right-0{right:0}[data-chat-widget] .top-1\\/2{top:50%}[data-chat-widget] .isolate{isolation:isolate}[data-chat-widget] .z-0{z-index:0}[data-chat-widget] .z-10{z-index:10}[data-chat-widget] .z-50{z-index:50}[data-chat-widget] .z-\\[24\\]{z-index:24}[data-chat-widget] .z-\\[25\\]{z-index:25}[data-chat-widget] .-mx-1{margin-left:-.25rem;margin-right:-.25rem}[data-chat-widget] .my-1{margin-top:.25rem;margin-bottom:.25rem}[data-chat-widget] .my-2{margin-top:.5rem;margin-bottom:.5rem}[data-chat-widget] .mb-1{margin-bottom:.25rem}[data-chat-widget] .mb-2{margin-bottom:.5rem}[data-chat-widget] .ml-auto{margin-left:auto}[data-chat-widget] .mt-1{margin-top:.25rem}[data-chat-widget] .mt-2{margin-top:.5rem}[data-chat-widget] .line-clamp-2{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}[data-chat-widget] .block{display:block}[data-chat-widget] .inline{display:inline}[data-chat-widget] .flex{display:flex}[data-chat-widget] .inline-flex{display:inline-flex}[data-chat-widget] .grid{display:grid}[data-chat-widget] .contents{display:contents}[data-chat-widget] .hidden{display:none}[data-chat-widget] .aspect-square{aspect-ratio:1 / 1}[data-chat-widget] .size-12{width:3rem;height:3rem}[data-chat-widget] .size-16{width:4rem;height:4rem}[data-chat-widget] .size-3{width:.75rem;height:.75rem}[data-chat-widget] .size-4{width:1rem;height:1rem}[data-chat-widget] .size-5{width:1.25rem;height:1.25rem}[data-chat-widget] .size-6{width:1.5rem;height:1.5rem}[data-chat-widget] .size-7{width:1.75rem;height:1.75rem}[data-chat-widget] .size-8{width:2rem;height:2rem}[data-chat-widget] .size-fit{width:-moz-fit-content;width:fit-content;height:-moz-fit-content;height:fit-content}[data-chat-widget] .size-full{width:100%;height:100%}[data-chat-widget] .h-10{height:2.5rem}[data-chat-widget] .h-11{height:2.75rem}[data-chat-widget] .h-2{height:.5rem}[data-chat-widget] .h-3\\.5{height:.875rem}[data-chat-widget] .h-4{height:1rem}[data-chat-widget] .h-5{height:1.25rem}[data-chat-widget] .h-8{height:2rem}[data-chat-widget] .h-\\[600px\\]{height:600px}[data-chat-widget] .h-fit{height:-moz-fit-content;height:fit-content}[data-chat-widget] .h-full{height:100%}[data-chat-widget] .h-px{height:1px}[data-chat-widget] .max-h-\\[600px\\]{max-height:600px}[data-chat-widget] .max-h-full{max-height:100%}[data-chat-widget] .min-h-\\[400px\\]{min-height:400px}[data-chat-widget] .w-10{width:2.5rem}[data-chat-widget] .w-2{width:.5rem}[data-chat-widget] .w-2\\/3{width:66.666667%}[data-chat-widget] .w-3\\.5{width:.875rem}[data-chat-widget] .w-4{width:1rem}[data-chat-widget] .w-60{width:15rem}[data-chat-widget] .w-9{width:2.25rem}[data-chat-widget] .w-auto{width:auto}[data-chat-widget] .w-fit{width:-moz-fit-content;width:fit-content}[data-chat-widget] .w-full{width:100%}[data-chat-widget] .min-w-56{min-width:14rem}[data-chat-widget] .min-w-\\[80\\%\\]{min-width:80%}[data-chat-widget] .min-w-\\[8rem\\]{min-width:8rem}[data-chat-widget] .min-w-fit{min-width:-moz-fit-content;min-width:fit-content}[data-chat-widget] .max-w-\\[320px\\]{max-width:320px}[data-chat-widget] .max-w-\\[85\\%\\]{max-width:85%}[data-chat-widget] .max-w-\\[90\\%\\]{max-width:90%}[data-chat-widget] .max-w-full{max-width:100%}[data-chat-widget] .max-w-xs{max-width:20rem}[data-chat-widget] .flex-1{flex:1 1 0%}[data-chat-widget] .shrink-0{flex-shrink:0}[data-chat-widget] .origin-bottom{transform-origin:bottom}[data-chat-widget] .-translate-x-1\\/2{--tw-translate-x: -50%;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))}[data-chat-widget] .-translate-y-1\\/2{--tw-translate-y: -50%;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))}[data-chat-widget] .translate-x-\\[var\\(--opencx-wobble-x\\)\\]{--tw-translate-x: var(--opencx-wobble-x);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))}[data-chat-widget] .translate-y-\\[var\\(--opencx-wobble-y\\)\\]{--tw-translate-y: var(--opencx-wobble-y);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}[data-chat-widget] .scale-\\[1\\.01\\]{--tw-scale-x: 1.01;--tw-scale-y: 1.01;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))}[data-chat-widget] .scale-\\[1\\.02\\]{--tw-scale-x: 1.02;--tw-scale-y: 1.02;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))}[data-chat-widget] .scale-\\[1\\.1\\]{--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))}[data-chat-widget] .scale-\\[1\\]{--tw-scale-x: 1;--tw-scale-y: 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))}@keyframes bounce{0%,to{transform:translateY(-25%);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{transform:none;animation-timing-function:cubic-bezier(0,0,.2,1)}}[data-chat-widget] .animate-bounce{animation:bounce 1s infinite}@keyframes pulse{50%{opacity:.5}}[data-chat-widget] .animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes spin{to{transform:rotate(360deg)}}[data-chat-widget] .animate-spin{animation:spin 1s linear infinite}[data-chat-widget] .cursor-default{cursor:default}[data-chat-widget] .cursor-pointer{cursor:pointer}[data-chat-widget] .select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}[data-chat-widget] .resize-none{resize:none}[data-chat-widget] .grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}[data-chat-widget] .flex-row{flex-direction:row}[data-chat-widget] .flex-col{flex-direction:column}[data-chat-widget] .flex-wrap{flex-wrap:wrap}[data-chat-widget] .items-start{align-items:flex-start}[data-chat-widget] .items-end{align-items:flex-end}[data-chat-widget] .items-center{align-items:center}[data-chat-widget] .justify-start{justify-content:flex-start}[data-chat-widget] .justify-end{justify-content:flex-end}[data-chat-widget] .justify-center{justify-content:center}[data-chat-widget] .justify-between{justify-content:space-between}[data-chat-widget] .gap-0\\.5{gap:.125rem}[data-chat-widget] .gap-1{gap:.25rem}[data-chat-widget] .gap-2{gap:.5rem}[data-chat-widget] .space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}[data-chat-widget] .space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}[data-chat-widget] .space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}[data-chat-widget] .space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}[data-chat-widget] .overflow-auto{overflow:auto}[data-chat-widget] .overflow-hidden{overflow:hidden}[data-chat-widget] .scroll-smooth{scroll-behavior:smooth}[data-chat-widget] .whitespace-nowrap{white-space:nowrap}[data-chat-widget] .rounded-2xl{border-radius:1rem}[data-chat-widget] .rounded-3xl{border-radius:1.5rem}[data-chat-widget] .rounded-full{border-radius:9999px}[data-chat-widget] .rounded-lg{border-radius:.5rem}[data-chat-widget] .rounded-md{border-radius:.375rem}[data-chat-widget] .rounded-sm{border-radius:.125rem}[data-chat-widget] .rounded-xl{border-radius:.75rem}[data-chat-widget] .rounded-bl-none{border-bottom-left-radius:0}[data-chat-widget] .border{border-width:1px}[data-chat-widget] .border-0{border-width:0px}[data-chat-widget] .border-2{border-width:2px}[data-chat-widget] .border-b{border-bottom-width:1px}[data-chat-widget] .border-destructive{border-color:hsl(var(--opencx-destructive))}[data-chat-widget] .border-input{border-color:hsl(var(--opencx-input))}[data-chat-widget] .border-primary{border-color:hsl(var(--opencx-primary))}[data-chat-widget] .border-transparent{border-color:transparent}[data-chat-widget] .bg-background{background-color:hsl(var(--opencx-background))}[data-chat-widget] .bg-black{--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity))}[data-chat-widget] .bg-black\\/50{background-color:#00000080}[data-chat-widget] .bg-destructive{background-color:hsl(var(--opencx-destructive))}[data-chat-widget] .bg-muted{background-color:hsl(var(--opencx-muted))}[data-chat-widget] .bg-primary{background-color:hsl(var(--opencx-primary))}[data-chat-widget] .bg-secondary{background-color:hsl(var(--opencx-secondary))}[data-chat-widget] .bg-transparent{background-color:transparent}[data-chat-widget] .bg-zinc-100{--tw-bg-opacity: 1;background-color:rgb(244 244 245 / var(--tw-bg-opacity))}[data-chat-widget] .bg-gradient-to-t{background-image:linear-gradient(to top,var(--tw-gradient-stops))}[data-chat-widget] .from-gray-100\\/30{--tw-gradient-from: rgb(243 244 246 / .3) var(--tw-gradient-from-position);--tw-gradient-to: rgb(243 244 246 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}[data-chat-widget] .from-primary\\/50{--tw-gradient-from: hsl(var(--opencx-primary) / .5) var(--tw-gradient-from-position);--tw-gradient-to: hsl(var(--opencx-primary) / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}[data-chat-widget] .via-primary{--tw-gradient-to: hsl(var(--opencx-primary) / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), hsl(var(--opencx-primary)) var(--tw-gradient-via-position), var(--tw-gradient-to)}[data-chat-widget] .to-gray-50\\/30{--tw-gradient-to: rgb(249 250 251 / .3) var(--tw-gradient-to-position)}[data-chat-widget] .to-primary{--tw-gradient-to: hsl(var(--opencx-primary)) var(--tw-gradient-to-position)}[data-chat-widget] .fill-current{fill:currentColor}[data-chat-widget] .object-contain{-o-object-fit:contain;object-fit:contain}[data-chat-widget] .object-cover{-o-object-fit:cover;object-fit:cover}[data-chat-widget] .p-0{padding:0}[data-chat-widget] .p-1{padding:.25rem}[data-chat-widget] .p-2{padding:.5rem}[data-chat-widget] .p-2\\.5{padding:.625rem}[data-chat-widget] .p-3{padding:.75rem}[data-chat-widget] .p-4{padding:1rem}[data-chat-widget] .px-2{padding-left:.5rem;padding-right:.5rem}[data-chat-widget] .px-3{padding-left:.75rem;padding-right:.75rem}[data-chat-widget] .px-4{padding-left:1rem;padding-right:1rem}[data-chat-widget] .px-8{padding-left:2rem;padding-right:2rem}[data-chat-widget] .py-1\\.5{padding-top:.375rem;padding-bottom:.375rem}[data-chat-widget] .py-12{padding-top:3rem;padding-bottom:3rem}[data-chat-widget] .py-2{padding-top:.5rem;padding-bottom:.5rem}[data-chat-widget] .py-3{padding-top:.75rem;padding-bottom:.75rem}[data-chat-widget] .py-4{padding-top:1rem;padding-bottom:1rem}[data-chat-widget] .pl-2{padding-left:.5rem}[data-chat-widget] .pl-3{padding-left:.75rem}[data-chat-widget] .pl-8{padding-left:2rem}[data-chat-widget] .pr-2{padding-right:.5rem}[data-chat-widget] .text-center{text-align:center}[data-chat-widget] .text-start{text-align:start}[data-chat-widget] .align-middle{vertical-align:middle}[data-chat-widget] .font-inter{font-family:Inter,sans-serif}[data-chat-widget] .text-2xl{font-size:1.5rem;line-height:2rem}[data-chat-widget] .text-\\[10px\\]{font-size:10px}[data-chat-widget] .text-base{font-size:1rem;line-height:1.5rem}[data-chat-widget] .text-sm{font-size:.875rem;line-height:1.25rem}[data-chat-widget] .text-xl{font-size:1.25rem;line-height:1.75rem}[data-chat-widget] .text-xs{font-size:.75rem;line-height:1rem}[data-chat-widget] .font-bold{font-weight:700}[data-chat-widget] .font-medium{font-weight:500}[data-chat-widget] .font-semibold{font-weight:600}[data-chat-widget] .leading-relaxed{line-height:1.625}[data-chat-widget] .leading-snug{line-height:1.375}[data-chat-widget] .leading-tight{line-height:1.25}[data-chat-widget] .tracking-widest{letter-spacing:.1em}[data-chat-widget] .text-blue-500{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity))}[data-chat-widget] .text-destructive{color:hsl(var(--opencx-destructive))}[data-chat-widget] .text-destructive-foreground{color:hsl(var(--opencx-destructive-foreground))}[data-chat-widget] .text-emerald-500{--tw-text-opacity: 1;color:rgb(16 185 129 / var(--tw-text-opacity))}[data-chat-widget] .text-foreground{color:hsl(var(--opencx-foreground))}[data-chat-widget] .text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}[data-chat-widget] .text-primary{color:hsl(var(--opencx-primary))}[data-chat-widget] .text-primary-foreground{color:hsl(var(--opencx-primary-foreground))}[data-chat-widget] .text-primary-foreground\\/90{color:hsl(var(--opencx-primary-foreground) / .9)}[data-chat-widget] .text-secondary-foreground{color:hsl(var(--opencx-secondary-foreground))}[data-chat-widget] .text-zinc-500{--tw-text-opacity: 1;color:rgb(113 113 122 / var(--tw-text-opacity))}[data-chat-widget] .text-zinc-600{--tw-text-opacity: 1;color:rgb(82 82 91 / var(--tw-text-opacity))}[data-chat-widget] .underline{text-decoration-line:underline}[data-chat-widget] .underline-offset-4{text-underline-offset:4px}[data-chat-widget] .antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}[data-chat-widget] .opacity-0{opacity:0}[data-chat-widget] .opacity-50{opacity:.5}[data-chat-widget] .opacity-60{opacity:.6}[data-chat-widget] .shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}[data-chat-widget] .shadow-2xl{--tw-shadow: 0 25px 50px -12px rgb(0 0 0 / .25);--tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}[data-chat-widget] .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)}[data-chat-widget] .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)}[data-chat-widget] .shadow-none{--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}[data-chat-widget] .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)}[data-chat-widget] .shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}[data-chat-widget] .outline-none{outline:2px solid transparent;outline-offset:2px}[data-chat-widget] .outline{outline-style:solid}[data-chat-widget] .ring-0{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}[data-chat-widget] .ring-2{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}[data-chat-widget] .ring-white{--tw-ring-opacity: 1;--tw-ring-color: rgb(255 255 255 / var(--tw-ring-opacity))}[data-chat-widget] .ring-offset-background{--tw-ring-offset-color: hsl(var(--opencx-background))}[data-chat-widget] .backdrop-blur-sm{--tw-backdrop-blur: blur(4px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}[data-chat-widget] .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}[data-chat-widget] .transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}[data-chat-widget] .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}[data-chat-widget] .transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}[data-chat-widget] .transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}[data-chat-widget] .duration-200{transition-duration:.2s}[data-chat-widget] .ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}@keyframes enter{0%{opacity:var(--tw-enter-opacity, 1);transform:translate3d(var(--tw-enter-translate-x, 0),var(--tw-enter-translate-y, 0),0) scale3d(var(--tw-enter-scale, 1),var(--tw-enter-scale, 1),var(--tw-enter-scale, 1)) rotate(var(--tw-enter-rotate, 0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity, 1);transform:translate3d(var(--tw-exit-translate-x, 0),var(--tw-exit-translate-y, 0),0) scale3d(var(--tw-exit-scale, 1),var(--tw-exit-scale, 1),var(--tw-exit-scale, 1)) rotate(var(--tw-exit-rotate, 0))}}[data-chat-widget] .animate-in{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}[data-chat-widget] .fade-in-0{--tw-enter-opacity: 0}[data-chat-widget] .zoom-in-95{--tw-enter-scale: .95}[data-chat-widget] .duration-200{animation-duration:.2s}[data-chat-widget] .ease-out{animation-timing-function:cubic-bezier(0,0,.2,1)}[data-chat-widget] .\\[animation-delay\\:-0\\.15s\\]{animation-delay:-.15s}[data-chat-widget] .\\[animation-delay\\:-0\\.3s\\]{animation-delay:-.3s}[data-chat-widget] .\\[background\\:radial-gradient\\(68\\.75\\%_68\\.75\\%_at_50\\%_100\\%\\,_\\#717171_0\\%\\,_\\#000000_100\\%\\)\\]{background:radial-gradient(68.75% 68.75% at 50% 100%,#717171,#000)}[data-chat-widget] .required:after{content:" *";color:red}[data-chat-widget] .file\\:border-0::file-selector-button{border-width:0px}[data-chat-widget] .file\\:bg-transparent::file-selector-button{background-color:transparent}[data-chat-widget] .file\\:text-sm::file-selector-button{font-size:.875rem;line-height:1.25rem}[data-chat-widget] .file\\:font-medium::file-selector-button{font-weight:500}[data-chat-widget] .file\\:text-primary-foreground::file-selector-button{color:hsl(var(--opencx-primary-foreground))}[data-chat-widget] .placeholder\\:text-muted-foreground::-moz-placeholder{color:hsl(var(--opencx-muted-foreground))}[data-chat-widget] .placeholder\\:text-muted-foreground::placeholder{color:hsl(var(--opencx-muted-foreground))}[data-chat-widget] .hover\\:bg-accent:hover{background-color:hsl(var(--opencx-accent))}[data-chat-widget] .hover\\:text-accent-foreground:hover{color:hsl(var(--opencx-accent-foreground))}[data-chat-widget] .hover\\:text-blue-600:hover{--tw-text-opacity: 1;color:rgb(37 99 235 / var(--tw-text-opacity))}[data-chat-widget] .hover\\:underline:hover{text-decoration-line:underline}[data-chat-widget] .hover\\:brightness-110:hover{--tw-brightness: brightness(1.1);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)}[data-chat-widget] .focus\\:bg-accent:focus{background-color:hsl(var(--opencx-accent))}[data-chat-widget] .focus\\:text-accent-foreground:focus{color:hsl(var(--opencx-accent-foreground))}[data-chat-widget] .focus-visible\\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}[data-chat-widget] .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)}[data-chat-widget] .focus-visible\\:ring-ring:focus-visible{--tw-ring-color: hsl(var(--opencx-ring))}[data-chat-widget] .focus-visible\\:ring-offset-2:focus-visible{--tw-ring-offset-width: 2px}[data-chat-widget] .focus-visible\\:ring-offset-background:focus-visible{--tw-ring-offset-color: hsl(var(--opencx-background))}[data-chat-widget] .active\\:scale-90:active{--tw-scale-x: .9;--tw-scale-y: .9;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))}[data-chat-widget] .active\\:scale-95:active{--tw-scale-x: .95;--tw-scale-y: .95;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))}[data-chat-widget] .active\\:shadow-none:active{--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}[data-chat-widget] .hover\\:active\\:scale-95:active:hover{--tw-scale-x: .95;--tw-scale-y: .95;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))}[data-chat-widget] .disabled\\:pointer-events-none:disabled{pointer-events:none}[data-chat-widget] .disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}[data-chat-widget] .disabled\\:opacity-0:disabled{opacity:0}[data-chat-widget] .disabled\\:opacity-50:disabled{opacity:.5}[data-chat-widget] .group:hover .group-hover\\:opacity-100{opacity:1}[data-chat-widget] .group:hover .group-hover\\:active\\:scale-90:active,[data-chat-widget] .group:active .group-active\\:scale-90{--tw-scale-x: .9;--tw-scale-y: .9;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))}[data-chat-widget] .data-\\[disabled\\]\\:pointer-events-none[data-disabled]{pointer-events:none}[data-chat-widget] .data-\\[state\\=checked\\]\\:translate-x-4[data-state=checked]{--tw-translate-x: 1rem;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))}[data-chat-widget] .data-\\[state\\=unchecked\\]\\:translate-x-0[data-state=unchecked]{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}[data-chat-widget] .data-\\[state\\=checked\\]\\:bg-primary[data-state=checked]{background-color:hsl(var(--opencx-primary))}[data-chat-widget] .data-\\[state\\=open\\]\\:bg-accent[data-state=open]{background-color:hsl(var(--opencx-accent))}[data-chat-widget] .data-\\[state\\=unchecked\\]\\:bg-input[data-state=unchecked]{background-color:hsl(var(--opencx-input))}[data-chat-widget] .data-\\[disabled\\]\\:opacity-50[data-disabled]{opacity:.5}[data-chat-widget] .data-\\[state\\=open\\]\\:animate-in[data-state=open]{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}[data-chat-widget] .data-\\[state\\=closed\\]\\:animate-out[data-state=closed]{animation-name:exit;animation-duration:.15s;--tw-exit-opacity: initial;--tw-exit-scale: initial;--tw-exit-rotate: initial;--tw-exit-translate-x: initial;--tw-exit-translate-y: initial}[data-chat-widget] .data-\\[state\\=closed\\]\\:fade-out-0[data-state=closed]{--tw-exit-opacity: 0}[data-chat-widget] .data-\\[state\\=open\\]\\:fade-in-0[data-state=open]{--tw-enter-opacity: 0}[data-chat-widget] .data-\\[state\\=closed\\]\\:zoom-out-95[data-state=closed]{--tw-exit-scale: .95}[data-chat-widget] .data-\\[state\\=open\\]\\:zoom-in-95[data-state=open]{--tw-enter-scale: .95}[data-chat-widget] .data-\\[side\\=bottom\\]\\:slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y: -.5rem}[data-chat-widget] .data-\\[side\\=left\\]\\:slide-in-from-right-2[data-side=left]{--tw-enter-translate-x: .5rem}[data-chat-widget] .data-\\[side\\=right\\]\\:slide-in-from-left-2[data-side=right]{--tw-enter-translate-x: -.5rem}[data-chat-widget] .data-\\[side\\=top\\]\\:slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y: .5rem}[data-chat-widget] .prose-a\\:underline :is(:where(a):not(:where([class~=not-prose],[class~=not-prose] *))){text-decoration-line:underline}[data-chat-widget] .prose-a\\:decoration-primary :is(:where(a):not(:where([class~=not-prose],[class~=not-prose] *))){text-decoration-color:hsl(var(--opencx-primary))}[data-chat-widget] .rtl\\:-scale-100:where([dir=rtl],[dir=rtl] *){--tw-scale-x: -1;--tw-scale-y: -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))}[data-chat-widget] .\\[\\&_span\\]\\:size-1 span{width:.25rem;height:.25rem}[data-chat-widget] .\\[\\&_span\\]\\:bg-secondary-foreground span{background-color:hsl(var(--opencx-secondary-foreground))}[data-chat-widget] .\\[\\&_svg\\]\\:pointer-events-none svg{pointer-events:none}[data-chat-widget] .\\[\\&_svg\\]\\:size-4 svg{width:1rem;height:1rem}[data-chat-widget] .\\[\\&_svg\\]\\:size-6 svg{width:1.5rem;height:1.5rem}[data-chat-widget] .\\[\\&_svg\\]\\:shrink-0 svg{flex-shrink:0}';function VV({className:e}){return z.jsx("svg",{width:"26",height:"32",viewBox:"0 0 26 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:jt("text-primary-foreground",e),children:z.jsx("path",{d:"M1.34103 25.6132H5.44245C5.74203 25.6228 6.02673 25.7462 6.23867 25.9582C6.45062 26.1703 6.5739 26.4551 6.58348 26.7548V30.8584C6.59305 31.1581 6.71634 31.443 6.92828 31.655C7.14023 31.8671 7.42492 31.9904 7.7245 32H18.2894C18.589 31.9904 18.8737 31.8671 19.0856 31.655C19.2976 31.443 19.4209 31.1581 19.4304 30.8584V26.7548C19.4401 26.4545 19.5638 26.1692 19.7765 25.957C19.9892 25.7449 20.2748 25.6219 20.5749 25.6132H24.659C24.9586 25.6036 25.2433 25.4803 25.4552 25.2682C25.6671 25.0562 25.7904 24.7713 25.8 24.4716V7.52839C25.7904 7.22865 25.6671 6.94381 25.4552 6.73176C25.2433 6.5197 24.9586 6.39635 24.659 6.38677H20.561C20.2603 6.37802 19.9742 6.25457 19.7614 6.04169C19.5487 5.82881 19.4253 5.54261 19.4165 5.24168V1.14161C19.4072 0.84419 19.2858 0.561291 19.0768 0.349589C18.8678 0.137887 18.5865 0.0130193 18.2894 0L7.7245 0C7.42492 0.00957792 7.14023 0.132929 6.92828 0.344983C6.71634 0.557036 6.59305 0.841878 6.58348 1.14161V5.24168C6.57477 5.54203 6.45187 5.82773 6.23983 6.04052C6.0278 6.25331 5.74262 6.37715 5.44245 6.38677H1.34103C1.04144 6.39635 0.756749 6.5197 0.544805 6.73176C0.332861 6.94381 0.209574 7.22865 0.200001 7.52839V24.4716C0.209574 24.7713 0.332861 25.0562 0.544805 25.2682C0.756749 25.4803 1.04144 25.6036 1.34103 25.6132ZM6.58348 24.4716V7.52839C6.59305 7.22865 6.71634 6.94381 6.92828 6.73176C7.14023 6.5197 7.42492 6.39635 7.7245 6.38677H18.2894C18.589 6.39635 18.8737 6.5197 19.0856 6.73176C19.2976 6.94381 19.4209 7.22865 19.4304 7.52839V24.4716C19.4209 24.7713 19.2976 25.0562 19.0856 25.2682C18.8737 25.4803 18.589 25.6036 18.2894 25.6132H7.7245C7.42492 25.6036 7.14023 25.4803 6.92828 25.2682C6.71634 25.0562 6.59305 24.7713 6.58348 24.4716Z",fill:"currentColor"})})}function YV({isOpen:e}){const{theme:n}=Tt.useConfigData();return z.jsx(UR,{"data-chat-widget":!0,style:{fontSize:"16px",position:"fixed",zIndex:1e7,...G3({primary:n.primaryColor},{triggerOffset:n.triggerOffset}),right:n.triggerOffset,bottom:n.triggerOffset},className:jt("size-12 font-inter flex items-center justify-center"),children:z.jsx(Wm,{children:z.jsx("div",{className:jt("relative size-full rounded-full","flex items-center justify-center","transition-all","[background:radial-gradient(68.75%_68.75%_at_50%_100%,_#717171_0%,_#000000_100%)]","text-primary-foreground","shadow-xl","active:scale-90","[&_svg]:size-6"),children:z.jsx(ta.AnimatePresence,{mode:"wait",children:e?z.jsx(io,{snapExit:!0,fadeIn:"up",overrides:{initial:{rotate:45},animate:{rotate:0}},children:z.jsx(Yn.XIcon,{})},"x-icon"):z.jsx(io,{snapExit:!0,overrides:{initial:{rotate:45},animate:{rotate:0}},children:z.jsx(VV,{})},"message-icon")})})})})}const WV=`<!DOCTYPE html>
|
|
242
|
+
`)},CV=0,Pf=[];function _V(e){var n=ie.useRef([]),a=ie.useRef([0,0]),s=ie.useRef(),f=ie.useState(CV++)[0],p=ie.useState(RR)[0],d=ie.useRef(e);ie.useEffect(function(){d.current=e},[e]),ie.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(f));var L=Tt.__spreadArray([e.lockRef.current],(e.shards||[]).map(QA),!0).filter(Boolean);return L.forEach(function(U){return U.classList.add("allow-interactivity-".concat(f))}),function(){document.body.classList.remove("block-interactivity-".concat(f)),L.forEach(function(U){return U.classList.remove("allow-interactivity-".concat(f))})}}},[e.inert,e.lockRef.current,e.shards]);var g=ie.useCallback(function(L,U){if("touches"in L&&L.touches.length===2||L.type==="wheel"&&L.ctrlKey)return!d.current.allowPinchZoom;var H=m1(L),G=a.current,W="deltaX"in L?L.deltaX:G[0]-H[0],Z="deltaY"in L?L.deltaY:G[1]-H[1],J,X=L.target,ce=Math.abs(W)>Math.abs(Z)?"h":"v";if("touches"in L&&ce==="h"&&X.type==="range")return!1;var we=WA(ce,X);if(!we)return!0;if(we?J=ce:(J=ce==="v"?"h":"v",we=WA(ce,X)),!we)return!1;if(!s.current&&"changedTouches"in L&&(W||Z)&&(s.current=J),!J)return!0;var Me=s.current||J;return wV(Me,U,L,Me==="h"?W:Z,!0)},[]),E=ie.useCallback(function(L){var U=L;if(!(!Pf.length||Pf[Pf.length-1]!==p)){var H="deltaY"in U?qA(U):m1(U),G=n.current.filter(function(J){return J.name===U.type&&(J.target===U.target||U.target===J.shadowParent)&&xV(J.delta,H)})[0];if(G&&G.should){U.cancelable&&U.preventDefault();return}if(!G){var W=(d.current.shards||[]).map(QA).filter(Boolean).filter(function(J){return J.contains(U.target)}),Z=W.length>0?g(U,W[0]):!d.current.noIsolation;Z&&U.cancelable&&U.preventDefault()}}},[]),T=ie.useCallback(function(L,U,H,G){var W={name:L,delta:U,target:H,should:G,shadowParent:AV(H)};n.current.push(W),setTimeout(function(){n.current=n.current.filter(function(Z){return Z!==W})},1)},[]),C=ie.useCallback(function(L){a.current=m1(L),s.current=void 0},[]),S=ie.useCallback(function(L){T(L.type,qA(L),L.target,g(L,e.lockRef.current))},[]),R=ie.useCallback(function(L){T(L.type,m1(L),L.target,g(L,e.lockRef.current))},[]);ie.useEffect(function(){return Pf.push(p),e.setCallbacks({onScrollCapture:S,onWheelCapture:S,onTouchMoveCapture:R}),document.addEventListener("wheel",E,Mf),document.addEventListener("touchmove",E,Mf),document.addEventListener("touchstart",C,Mf),function(){Pf=Pf.filter(function(L){return L!==p}),document.removeEventListener("wheel",E,Mf),document.removeEventListener("touchmove",E,Mf),document.removeEventListener("touchstart",C,Mf)}},[]);var A=e.removeScrollBar,D=e.inert;return ie.createElement(ie.Fragment,null,D?ie.createElement(p,{styles:SV(f)}):null,A?ie.createElement(mV,{gapMode:e.gapMode}):null)}function AV(e){for(var n=null;e!==null;)e instanceof ShadowRoot&&(n=e.host,e=e.host),e=e.parentNode;return n}const kV=nV(kR,_V);var LR=ie.forwardRef(function(e,n){return ie.createElement(Z1,Tt.__assign({},e,{ref:n,sideCar:kV}))});LR.classNames=Z1.classNames;var vx="Popover",[IR,KV]=tz(vx,[mR]),Qm=mR(),[RV,Dc]=IR(vx),MR=e=>{const{__scopePopover:n,children:a,open:s,defaultOpen:f,onOpenChange:p,modal:d=!1}=e,g=Qm(n),E=ie.useRef(null),[T,C]=ie.useState(!1),[S=!1,R]=jj({prop:s,defaultProp:f,onChange:p});return z.jsx(Pj,{...g,children:z.jsx(RV,{scope:n,contentId:Az(),triggerRef:E,open:S,onOpenChange:R,onOpenToggle:ie.useCallback(()=>R(A=>!A),[R]),hasCustomAnchor:T,onCustomAnchorAdd:ie.useCallback(()=>C(!0),[]),onCustomAnchorRemove:ie.useCallback(()=>C(!1),[]),modal:d,children:a})})};MR.displayName=vx;var PR="PopoverAnchor",NV=ie.forwardRef((e,n)=>{const{__scopePopover:a,...s}=e,f=Dc(PR,a),p=Qm(a),{onCustomAnchorAdd:d,onCustomAnchorRemove:g}=f;return ie.useEffect(()=>(d(),()=>g()),[d,g]),z.jsx(SR,{...p,...s,ref:n})});NV.displayName=PR;var FR="PopoverTrigger",UR=ie.forwardRef((e,n)=>{const{__scopePopover:a,...s}=e,f=Dc(FR,a),p=Qm(a),d=ul(n,f.triggerRef),g=z.jsx(sl.button,{type:"button","aria-haspopup":"dialog","aria-expanded":f.open,"aria-controls":f.contentId,"data-state":jR(f.open),...s,ref:d,onClick:Js(e.onClick,f.onOpenToggle)});return f.hasCustomAnchor?g:z.jsx(SR,{asChild:!0,...p,children:g})});UR.displayName=FR;var DV="PopoverPortal",[ZV,OV]=IR(DV,{forceMount:void 0}),Qf="PopoverContent",BR=ie.forwardRef((e,n)=>{const a=OV(Qf,e.__scopePopover),{forceMount:s=a.forceMount,...f}=e,p=Dc(Qf,e.__scopePopover);return z.jsx(CR,{present:s||p.open,children:p.modal?z.jsx(LV,{...f,ref:n}):z.jsx(IV,{...f,ref:n})})});BR.displayName=Qf;var LV=ie.forwardRef((e,n)=>{const a=Dc(Qf,e.__scopePopover),s=ie.useRef(null),f=ul(n,s),p=ie.useRef(!1);return ie.useEffect(()=>{const d=s.current;if(d)return Qj(d)},[]),z.jsx(LR,{as:Pw.Slot,allowPinchZoom:!0,children:z.jsx(HR,{...e,ref:f,trapFocus:a.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Js(e.onCloseAutoFocus,d=>{var g;d.preventDefault(),p.current||(g=a.triggerRef.current)==null||g.focus()}),onPointerDownOutside:Js(e.onPointerDownOutside,d=>{const g=d.detail.originalEvent,E=g.button===0&&g.ctrlKey===!0,T=g.button===2||E;p.current=T},{checkForDefaultPrevented:!1}),onFocusOutside:Js(e.onFocusOutside,d=>d.preventDefault(),{checkForDefaultPrevented:!1})})})}),IV=ie.forwardRef((e,n)=>{const a=Dc(Qf,e.__scopePopover),s=ie.useRef(!1),f=ie.useRef(!1);return z.jsx(HR,{...e,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:p=>{var d,g;(d=e.onCloseAutoFocus)==null||d.call(e,p),p.defaultPrevented||(s.current||(g=a.triggerRef.current)==null||g.focus(),p.preventDefault()),s.current=!1,f.current=!1},onInteractOutside:p=>{var E,T;(E=e.onInteractOutside)==null||E.call(e,p),p.defaultPrevented||(s.current=!0,p.detail.originalEvent.type==="pointerdown"&&(f.current=!0));const d=p.target;((T=a.triggerRef.current)==null?void 0:T.contains(d))&&p.preventDefault(),p.detail.originalEvent.type==="focusin"&&f.current&&p.preventDefault()}})}),HR=ie.forwardRef((e,n)=>{const{__scopePopover:a,trapFocus:s,onOpenAutoFocus:f,onCloseAutoFocus:p,disableOutsidePointerEvents:d,onEscapeKeyDown:g,onPointerDownOutside:E,onFocusOutside:T,onInteractOutside:C,...S}=e,R=Dc(Qf,a),A=Qm(a);return vz(),z.jsx(rR,{asChild:!0,loop:!0,trapped:s,onMountAutoFocus:f,onUnmountAutoFocus:p,children:z.jsx(tR,{asChild:!0,disableOutsidePointerEvents:d,onInteractOutside:C,onEscapeKeyDown:g,onPointerDownOutside:E,onFocusOutside:T,onDismiss:()=>R.onOpenChange(!1),children:z.jsx(Fj,{"data-state":jR(R.open),role:"dialog",id:R.contentId,...A,...S,ref:n,style:{...S.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),zR="PopoverClose",MV=ie.forwardRef((e,n)=>{const{__scopePopover:a,...s}=e,f=Dc(zR,a);return z.jsx(sl.button,{type:"button",...s,ref:n,onClick:Js(e.onClick,()=>f.onOpenChange(!1))})});MV.displayName=zR;var PV="PopoverArrow",FV=ie.forwardRef((e,n)=>{const{__scopePopover:a,...s}=e,f=Qm(a);return z.jsx(Uj,{...f,...s,ref:n})});FV.displayName=PV;function jR(e){return e?"open":"closed"}var UV=MR,BV=BR;function Mw(){return Mw=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var s in a)({}).hasOwnProperty.call(a,s)&&(e[s]=a[s])}return e},Mw.apply(null,arguments)}function HV(e,n){if(e==null)return{};var a={};for(var s in e)if({}.hasOwnProperty.call(e,s)){if(n.includes(s))continue;a[s]=e[s]}return a}var VR,YR;typeof document<"u"&&(VR=document);typeof window<"u"&&(YR=window);var zV=vt.createContext({document:VR,window:YR}),jV=["children","head","initialContent","src","mountTarget"],WR=vt.forwardRef((e,n)=>{var{children:a,head:s,initialContent:f,src:p,mountTarget:d}=e,g=HV(e,jV),[E,T]=vt.useState(!1),[C,S]=vt.useState(),R=Z=>{Z&&S(Z)};vt.useImperativeHandle(n,()=>C,[C]);var A=f||"<!DOCTYPE html><html><head></head><body></body></html>",D=()=>C?C.contentDocument:null,L=()=>{var Z=D();return d?Z==null?void 0:Z.querySelector(d):Z==null?void 0:Z.body},U=vt.useRef(),H=vt.useCallback(Z=>{U.current=Z;var J=()=>setInterval(()=>H(Z),500);clearInterval(J()),E||T(!0)},[E]);vt.useMemo(()=>{!p&&g.onLoad&&E&&g.onLoad(U.current)},[E]),vt.useEffect(()=>{if(C&&!p){var Z;(Z=C.contentWindow)==null||Z.addEventListener("DOMContentLoaded",H)}return()=>{if(C&&!p){var J;(J=C.contentWindow)==null||J.removeEventListener("DOMContentLoaded",H)}}},[C,H]);var G=()=>{var Z,J=D(),X=(Z=D())==null?void 0:Z.head,ce=L(),we=(J==null?void 0:J.defaultView)||(J==null?void 0:J.parentView),Me=z.jsx(zV.Provider,{value:{document:J,window:we},children:a});return[X&&s&&D1.createPortal(s,X),C&&ce&&D1.createPortal(Me,ce)]},W={};return p?(delete W.srcDoc,W.src=p,W.onLoad=g.onLoad):W.srcDoc=A,z.jsx("iframe",Mw({title:g.title,ref:R},g,{onLoad:H},W,{children:E&&G()}))});WR.displayName="IFrame";const qR='@import"https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..700;1,14..32,100..700&display=swap";[data-chat-widget] *,[data-chat-widget] :before,[data-chat-widget] :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: }[data-chat-widget] ::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: }[data-chat-widget] *,[data-chat-widget] :before,[data-chat-widget] :after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}[data-chat-widget] :before,[data-chat-widget] :after{--tw-content: ""}[data-chat-widget] html,[data-chat-widget] :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}[data-chat-widget] body{margin:0;line-height:inherit}[data-chat-widget] hr{height:0;color:inherit;border-top-width:1px}[data-chat-widget] abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}[data-chat-widget] h1,[data-chat-widget] h2,[data-chat-widget] h3,[data-chat-widget] h4,[data-chat-widget] h5,[data-chat-widget] h6{font-size:inherit;font-weight:inherit}[data-chat-widget] a{color:inherit;text-decoration:inherit}[data-chat-widget] b,[data-chat-widget] strong{font-weight:bolder}[data-chat-widget] code,[data-chat-widget] kbd,[data-chat-widget] samp,[data-chat-widget] 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}[data-chat-widget] small{font-size:80%}[data-chat-widget] sub,[data-chat-widget] sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}[data-chat-widget] sub{bottom:-.25em}[data-chat-widget] sup{top:-.5em}[data-chat-widget] table{text-indent:0;border-color:inherit;border-collapse:collapse}[data-chat-widget] button,[data-chat-widget] input,[data-chat-widget] optgroup,[data-chat-widget] select,[data-chat-widget] 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}[data-chat-widget] button,[data-chat-widget] select{text-transform:none}[data-chat-widget] button,[data-chat-widget] input:where([type=button]),[data-chat-widget] input:where([type=reset]),[data-chat-widget] input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}[data-chat-widget] :-moz-focusring{outline:auto}[data-chat-widget] :-moz-ui-invalid{box-shadow:none}[data-chat-widget] progress{vertical-align:baseline}[data-chat-widget] ::-webkit-inner-spin-button,[data-chat-widget] ::-webkit-outer-spin-button{height:auto}[data-chat-widget] [type=search]{-webkit-appearance:textfield;outline-offset:-2px}[data-chat-widget] ::-webkit-search-decoration{-webkit-appearance:none}[data-chat-widget] ::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}[data-chat-widget] summary{display:list-item}[data-chat-widget] blockquote,[data-chat-widget] dl,[data-chat-widget] dd,[data-chat-widget] h1,[data-chat-widget] h2,[data-chat-widget] h3,[data-chat-widget] h4,[data-chat-widget] h5,[data-chat-widget] h6,[data-chat-widget] hr,[data-chat-widget] figure,[data-chat-widget] p,[data-chat-widget] pre{margin:0}[data-chat-widget] fieldset{margin:0;padding:0}[data-chat-widget] legend{padding:0}[data-chat-widget] ol,[data-chat-widget] ul,[data-chat-widget] menu{list-style:none;margin:0;padding:0}[data-chat-widget] dialog{padding:0}[data-chat-widget] textarea{resize:vertical}[data-chat-widget] input::-moz-placeholder,[data-chat-widget] textarea::-moz-placeholder{opacity:1;color:#9ca3af}[data-chat-widget] input::placeholder,[data-chat-widget] textarea::placeholder{opacity:1;color:#9ca3af}[data-chat-widget] button,[data-chat-widget] [role=button]{cursor:pointer}[data-chat-widget] :disabled{cursor:default}[data-chat-widget] img,[data-chat-widget] svg,[data-chat-widget] video,[data-chat-widget] canvas,[data-chat-widget] audio,[data-chat-widget] iframe,[data-chat-widget] embed,[data-chat-widget] object{display:block;vertical-align:middle}[data-chat-widget] img,[data-chat-widget] video{max-width:100%;height:auto}[data-chat-widget] [hidden]:where(:not([hidden=until-found])){display:none}[data-chat-widget] *{-ms-overflow-style:none;scrollbar-width:none}[data-chat-widget] *::-webkit-scrollbar{display:none}[data-chat-widget] *{border-color:hsl(var(--opencx-border))}[data-chat-widget] .container{width:100%}@media (min-width: 640px){[data-chat-widget] .container{max-width:640px}}@media (min-width: 768px){[data-chat-widget] .container{max-width:768px}}@media (min-width: 1024px){[data-chat-widget] .container{max-width:1024px}}@media (min-width: 1280px){[data-chat-widget] .container{max-width:1280px}}@media (min-width: 1536px){[data-chat-widget] .container{max-width:1536px}}[data-chat-widget] .prose{color:var(--tw-prose-body);max-width:65ch}[data-chat-widget] .prose :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}[data-chat-widget] .prose :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-lead);font-size:1.25em;line-height:1.6;margin-top:1.2em;margin-bottom:1.2em}[data-chat-widget] .prose :where(a):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-links);text-decoration:underline;font-weight:500}[data-chat-widget] .prose :where(strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-bold);font-weight:600}[data-chat-widget] .prose :where(a strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}[data-chat-widget] .prose :where(blockquote strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}[data-chat-widget] .prose :where(thead th strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}[data-chat-widget] .prose :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:decimal;margin-top:1.25em;margin-bottom:1.25em;padding-inline-start:1.625em}[data-chat-widget] .prose :where(ol[type=A]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}[data-chat-widget] .prose :where(ol[type=a]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}[data-chat-widget] .prose :where(ol[type=A s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}[data-chat-widget] .prose :where(ol[type=a s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}[data-chat-widget] .prose :where(ol[type=I]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}[data-chat-widget] .prose :where(ol[type=i]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}[data-chat-widget] .prose :where(ol[type=I s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}[data-chat-widget] .prose :where(ol[type=i s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}[data-chat-widget] .prose :where(ol[type="1"]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:decimal}[data-chat-widget] .prose :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:disc;margin-top:1.25em;margin-bottom:1.25em;padding-inline-start:1.625em}[data-chat-widget] .prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{font-weight:400;color:var(--tw-prose-counters)}[data-chat-widget] .prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{color:var(--tw-prose-bullets)}[data-chat-widget] .prose :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;margin-top:1.25em}[data-chat-widget] .prose :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){border-color:var(--tw-prose-hr);border-top-width:1px;margin-top:3em;margin-bottom:3em}[data-chat-widget] .prose :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:500;font-style:italic;color:var(--tw-prose-quotes);border-inline-start-width:.25rem;border-inline-start-color:var(--tw-prose-quote-borders);quotes:"“""”""‘""’";margin-top:1.6em;margin-bottom:1.6em;padding-inline-start:1em}[data-chat-widget] .prose :where(blockquote p:first-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:open-quote}[data-chat-widget] .prose :where(blockquote p:last-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:close-quote}[data-chat-widget] .prose :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:800;font-size:2.25em;margin-top:0;margin-bottom:.8888889em;line-height:1.1111111}[data-chat-widget] .prose :where(h1 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:900;color:inherit}[data-chat-widget] .prose :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:700;font-size:1.5em;margin-top:2em;margin-bottom:1em;line-height:1.3333333}[data-chat-widget] .prose :where(h2 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:800;color:inherit}[data-chat-widget] .prose :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;font-size:1.25em;margin-top:1.6em;margin-bottom:.6em;line-height:1.6}[data-chat-widget] .prose :where(h3 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:700;color:inherit}[data-chat-widget] .prose :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;margin-top:1.5em;margin-bottom:.5em;line-height:1.5}[data-chat-widget] .prose :where(h4 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:700;color:inherit}[data-chat-widget] .prose :where(img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}[data-chat-widget] .prose :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){display:block;margin-top:2em;margin-bottom:2em}[data-chat-widget] .prose :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}[data-chat-widget] .prose :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:500;font-family:inherit;color:var(--tw-prose-kbd);box-shadow:0 0 0 1px rgb(var(--tw-prose-kbd-shadows) / 10%),0 3px rgb(var(--tw-prose-kbd-shadows) / 10%);font-size:.875em;border-radius:.3125rem;padding-top:.1875em;padding-inline-end:.375em;padding-bottom:.1875em;padding-inline-start:.375em}[data-chat-widget] .prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-code);font-weight:600;font-size:.875em}[data-chat-widget] .prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:"`"}[data-chat-widget] .prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:"`"}[data-chat-widget] .prose :where(a code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}[data-chat-widget] .prose :where(h1 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}[data-chat-widget] .prose :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.875em}[data-chat-widget] .prose :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.9em}[data-chat-widget] .prose :where(h4 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}[data-chat-widget] .prose :where(blockquote code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}[data-chat-widget] .prose :where(thead th code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}[data-chat-widget] .prose :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-pre-code);background-color:var(--tw-prose-pre-bg);overflow-x:auto;font-weight:400;font-size:.875em;line-height:1.7142857;margin-top:1.7142857em;margin-bottom:1.7142857em;border-radius:.375rem;padding-top:.8571429em;padding-inline-end:1.1428571em;padding-bottom:.8571429em;padding-inline-start:1.1428571em}[data-chat-widget] .prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)){background-color:transparent;border-width:0;border-radius:0;padding:0;font-weight:inherit;color:inherit;font-size:inherit;font-family:inherit;line-height:inherit}[data-chat-widget] .prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:none}[data-chat-widget] .prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:none}[data-chat-widget] .prose :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){width:100%;table-layout:auto;margin-top:2em;margin-bottom:2em;font-size:.875em;line-height:1.7142857}[data-chat-widget] .prose :where(thead):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-th-borders)}[data-chat-widget] .prose :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;vertical-align:bottom;padding-inline-end:.5714286em;padding-bottom:.5714286em;padding-inline-start:.5714286em}[data-chat-widget] .prose :where(tbody tr):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-td-borders)}[data-chat-widget] .prose :where(tbody tr:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:0}[data-chat-widget] .prose :where(tbody td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:baseline}[data-chat-widget] .prose :where(tfoot):not(:where([class~=not-prose],[class~=not-prose] *)){border-top-width:1px;border-top-color:var(--tw-prose-th-borders)}[data-chat-widget] .prose :where(tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:top}[data-chat-widget] .prose :where(th,td):not(:where([class~=not-prose],[class~=not-prose] *)){text-align:start}[data-chat-widget] .prose :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}[data-chat-widget] .prose :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-captions);font-size:.875em;line-height:1.4285714;margin-top:.8571429em}[data-chat-widget] .prose{--tw-prose-body: #374151;--tw-prose-headings: #111827;--tw-prose-lead: #4b5563;--tw-prose-links: #111827;--tw-prose-bold: #111827;--tw-prose-counters: #6b7280;--tw-prose-bullets: #d1d5db;--tw-prose-hr: #e5e7eb;--tw-prose-quotes: #111827;--tw-prose-quote-borders: #e5e7eb;--tw-prose-captions: #6b7280;--tw-prose-kbd: #111827;--tw-prose-kbd-shadows: 17 24 39;--tw-prose-code: #111827;--tw-prose-pre-code: #e5e7eb;--tw-prose-pre-bg: #1f2937;--tw-prose-th-borders: #d1d5db;--tw-prose-td-borders: #e5e7eb;--tw-prose-invert-body: #d1d5db;--tw-prose-invert-headings: #fff;--tw-prose-invert-lead: #9ca3af;--tw-prose-invert-links: #fff;--tw-prose-invert-bold: #fff;--tw-prose-invert-counters: #9ca3af;--tw-prose-invert-bullets: #4b5563;--tw-prose-invert-hr: #374151;--tw-prose-invert-quotes: #f3f4f6;--tw-prose-invert-quote-borders: #374151;--tw-prose-invert-captions: #9ca3af;--tw-prose-invert-kbd: #fff;--tw-prose-invert-kbd-shadows: 255 255 255;--tw-prose-invert-code: #fff;--tw-prose-invert-pre-code: #d1d5db;--tw-prose-invert-pre-bg: rgb(0 0 0 / 50%);--tw-prose-invert-th-borders: #4b5563;--tw-prose-invert-td-borders: #374151;font-size:1rem;line-height:1.75}[data-chat-widget] .prose :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}[data-chat-widget] .prose :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;margin-bottom:.5em}[data-chat-widget] .prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.375em}[data-chat-widget] .prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.375em}[data-chat-widget] .prose :where(.prose>ul>li p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}[data-chat-widget] .prose :where(.prose>ul>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}[data-chat-widget] .prose :where(.prose>ul>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}[data-chat-widget] .prose :where(.prose>ol>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}[data-chat-widget] .prose :where(.prose>ol>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}[data-chat-widget] .prose :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}[data-chat-widget] .prose :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}[data-chat-widget] .prose :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;padding-inline-start:1.625em}[data-chat-widget] .prose :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}[data-chat-widget] .prose :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}[data-chat-widget] .prose :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}[data-chat-widget] .prose :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}[data-chat-widget] .prose :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}[data-chat-widget] .prose :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}[data-chat-widget] .prose :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.5714286em;padding-inline-end:.5714286em;padding-bottom:.5714286em;padding-inline-start:.5714286em}[data-chat-widget] .prose :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}[data-chat-widget] .prose :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}[data-chat-widget] .prose :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}[data-chat-widget] .prose :where(.prose>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}[data-chat-widget] .prose :where(.prose>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0}[data-chat-widget] .prose-sm{font-size:.875rem;line-height:1.7142857}[data-chat-widget] .prose-sm :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em}[data-chat-widget] .prose-sm :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.2857143em;line-height:1.5555556;margin-top:.8888889em;margin-bottom:.8888889em}[data-chat-widget] .prose-sm :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.3333333em;margin-bottom:1.3333333em;padding-inline-start:1.1111111em}[data-chat-widget] .prose-sm :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:2.1428571em;margin-top:0;margin-bottom:.8em;line-height:1.2}[data-chat-widget] .prose-sm :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.4285714em;margin-top:1.6em;margin-bottom:.8em;line-height:1.4}[data-chat-widget] .prose-sm :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.2857143em;margin-top:1.5555556em;margin-bottom:.4444444em;line-height:1.5555556}[data-chat-widget] .prose-sm :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.4285714em;margin-bottom:.5714286em;line-height:1.4285714}[data-chat-widget] .prose-sm :where(img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}[data-chat-widget] .prose-sm :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}[data-chat-widget] .prose-sm :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}[data-chat-widget] .prose-sm :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}[data-chat-widget] .prose-sm :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;border-radius:.3125rem;padding-top:.1428571em;padding-inline-end:.3571429em;padding-bottom:.1428571em;padding-inline-start:.3571429em}[data-chat-widget] .prose-sm :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em}[data-chat-widget] .prose-sm :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.9em}[data-chat-widget] .prose-sm :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8888889em}[data-chat-widget] .prose-sm :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;line-height:1.6666667;margin-top:1.6666667em;margin-bottom:1.6666667em;border-radius:.25rem;padding-top:.6666667em;padding-inline-end:1em;padding-bottom:.6666667em;padding-inline-start:1em}[data-chat-widget] .prose-sm :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em;padding-inline-start:1.5714286em}[data-chat-widget] .prose-sm :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em;padding-inline-start:1.5714286em}[data-chat-widget] .prose-sm :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.2857143em;margin-bottom:.2857143em}[data-chat-widget] .prose-sm :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.4285714em}[data-chat-widget] .prose-sm :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.4285714em}[data-chat-widget] .prose-sm :where(.prose-sm>ul>li p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5714286em;margin-bottom:.5714286em}[data-chat-widget] .prose-sm :where(.prose-sm>ul>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em}[data-chat-widget] .prose-sm :where(.prose-sm>ul>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.1428571em}[data-chat-widget] .prose-sm :where(.prose-sm>ol>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em}[data-chat-widget] .prose-sm :where(.prose-sm>ol>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.1428571em}[data-chat-widget] .prose-sm :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5714286em;margin-bottom:.5714286em}[data-chat-widget] .prose-sm :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em}[data-chat-widget] .prose-sm :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em}[data-chat-widget] .prose-sm :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.2857143em;padding-inline-start:1.5714286em}[data-chat-widget] .prose-sm :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2.8571429em;margin-bottom:2.8571429em}[data-chat-widget] .prose-sm :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}[data-chat-widget] .prose-sm :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}[data-chat-widget] .prose-sm :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}[data-chat-widget] .prose-sm :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}[data-chat-widget] .prose-sm :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;line-height:1.5}[data-chat-widget] .prose-sm :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:1em;padding-bottom:.6666667em;padding-inline-start:1em}[data-chat-widget] .prose-sm :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}[data-chat-widget] .prose-sm :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}[data-chat-widget] .prose-sm :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.6666667em;padding-inline-end:1em;padding-bottom:.6666667em;padding-inline-start:1em}[data-chat-widget] .prose-sm :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}[data-chat-widget] .prose-sm :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}[data-chat-widget] .prose-sm :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}[data-chat-widget] .prose-sm :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}[data-chat-widget] .prose-sm :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;line-height:1.3333333;margin-top:.6666667em}[data-chat-widget] .prose-sm :where(.prose-sm>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}[data-chat-widget] .prose-sm :where(.prose-sm>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0}[data-chat-widget] .prose-slate{--tw-prose-body: #334155;--tw-prose-headings: #0f172a;--tw-prose-lead: #475569;--tw-prose-links: #0f172a;--tw-prose-bold: #0f172a;--tw-prose-counters: #64748b;--tw-prose-bullets: #cbd5e1;--tw-prose-hr: #e2e8f0;--tw-prose-quotes: #0f172a;--tw-prose-quote-borders: #e2e8f0;--tw-prose-captions: #64748b;--tw-prose-kbd: #0f172a;--tw-prose-kbd-shadows: 15 23 42;--tw-prose-code: #0f172a;--tw-prose-pre-code: #e2e8f0;--tw-prose-pre-bg: #1e293b;--tw-prose-th-borders: #cbd5e1;--tw-prose-td-borders: #e2e8f0;--tw-prose-invert-body: #cbd5e1;--tw-prose-invert-headings: #fff;--tw-prose-invert-lead: #94a3b8;--tw-prose-invert-links: #fff;--tw-prose-invert-bold: #fff;--tw-prose-invert-counters: #94a3b8;--tw-prose-invert-bullets: #475569;--tw-prose-invert-hr: #334155;--tw-prose-invert-quotes: #f1f5f9;--tw-prose-invert-quote-borders: #334155;--tw-prose-invert-captions: #94a3b8;--tw-prose-invert-kbd: #fff;--tw-prose-invert-kbd-shadows: 255 255 255;--tw-prose-invert-code: #fff;--tw-prose-invert-pre-code: #cbd5e1;--tw-prose-invert-pre-bg: rgb(0 0 0 / 50%);--tw-prose-invert-th-borders: #475569;--tw-prose-invert-td-borders: #334155}[data-chat-widget] .pointer-events-none{pointer-events:none}[data-chat-widget] .visible{visibility:visible}[data-chat-widget] .fixed{position:fixed}[data-chat-widget] .absolute{position:absolute}[data-chat-widget] .relative{position:relative}[data-chat-widget] .inset-0{top:0;right:0;bottom:0;left:0}[data-chat-widget] .inset-x-0{left:0;right:0}[data-chat-widget] .bottom-0{bottom:0}[data-chat-widget] .bottom-2{bottom:.5rem}[data-chat-widget] .left-0{left:0}[data-chat-widget] .left-1\\/2{left:50%}[data-chat-widget] .left-2{left:.5rem}[data-chat-widget] .right-0{right:0}[data-chat-widget] .top-1\\/2{top:50%}[data-chat-widget] .isolate{isolation:isolate}[data-chat-widget] .z-0{z-index:0}[data-chat-widget] .z-10{z-index:10}[data-chat-widget] .z-50{z-index:50}[data-chat-widget] .z-\\[24\\]{z-index:24}[data-chat-widget] .z-\\[25\\]{z-index:25}[data-chat-widget] .-mx-1{margin-left:-.25rem;margin-right:-.25rem}[data-chat-widget] .my-1{margin-top:.25rem;margin-bottom:.25rem}[data-chat-widget] .my-2{margin-top:.5rem;margin-bottom:.5rem}[data-chat-widget] .mb-1{margin-bottom:.25rem}[data-chat-widget] .mb-2{margin-bottom:.5rem}[data-chat-widget] .ml-auto{margin-left:auto}[data-chat-widget] .mt-1{margin-top:.25rem}[data-chat-widget] .mt-2{margin-top:.5rem}[data-chat-widget] .line-clamp-2{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}[data-chat-widget] .block{display:block}[data-chat-widget] .inline{display:inline}[data-chat-widget] .flex{display:flex}[data-chat-widget] .inline-flex{display:inline-flex}[data-chat-widget] .grid{display:grid}[data-chat-widget] .contents{display:contents}[data-chat-widget] .hidden{display:none}[data-chat-widget] .aspect-square{aspect-ratio:1 / 1}[data-chat-widget] .size-12{width:3rem;height:3rem}[data-chat-widget] .size-16{width:4rem;height:4rem}[data-chat-widget] .size-3{width:.75rem;height:.75rem}[data-chat-widget] .size-4{width:1rem;height:1rem}[data-chat-widget] .size-5{width:1.25rem;height:1.25rem}[data-chat-widget] .size-6{width:1.5rem;height:1.5rem}[data-chat-widget] .size-7{width:1.75rem;height:1.75rem}[data-chat-widget] .size-8{width:2rem;height:2rem}[data-chat-widget] .size-fit{width:-moz-fit-content;width:fit-content;height:-moz-fit-content;height:fit-content}[data-chat-widget] .size-full{width:100%;height:100%}[data-chat-widget] .h-10{height:2.5rem}[data-chat-widget] .h-11{height:2.75rem}[data-chat-widget] .h-2{height:.5rem}[data-chat-widget] .h-3\\.5{height:.875rem}[data-chat-widget] .h-4{height:1rem}[data-chat-widget] .h-5{height:1.25rem}[data-chat-widget] .h-8{height:2rem}[data-chat-widget] .h-\\[600px\\]{height:600px}[data-chat-widget] .h-fit{height:-moz-fit-content;height:fit-content}[data-chat-widget] .h-full{height:100%}[data-chat-widget] .h-px{height:1px}[data-chat-widget] .max-h-\\[600px\\]{max-height:600px}[data-chat-widget] .max-h-full{max-height:100%}[data-chat-widget] .min-h-\\[400px\\]{min-height:400px}[data-chat-widget] .w-10{width:2.5rem}[data-chat-widget] .w-2{width:.5rem}[data-chat-widget] .w-2\\/3{width:66.666667%}[data-chat-widget] .w-3\\.5{width:.875rem}[data-chat-widget] .w-4{width:1rem}[data-chat-widget] .w-60{width:15rem}[data-chat-widget] .w-9{width:2.25rem}[data-chat-widget] .w-auto{width:auto}[data-chat-widget] .w-fit{width:-moz-fit-content;width:fit-content}[data-chat-widget] .w-full{width:100%}[data-chat-widget] .min-w-56{min-width:14rem}[data-chat-widget] .min-w-\\[80\\%\\]{min-width:80%}[data-chat-widget] .min-w-\\[8rem\\]{min-width:8rem}[data-chat-widget] .min-w-fit{min-width:-moz-fit-content;min-width:fit-content}[data-chat-widget] .max-w-\\[320px\\]{max-width:320px}[data-chat-widget] .max-w-\\[85\\%\\]{max-width:85%}[data-chat-widget] .max-w-\\[90\\%\\]{max-width:90%}[data-chat-widget] .max-w-full{max-width:100%}[data-chat-widget] .max-w-xs{max-width:20rem}[data-chat-widget] .flex-1{flex:1 1 0%}[data-chat-widget] .shrink-0{flex-shrink:0}[data-chat-widget] .origin-bottom{transform-origin:bottom}[data-chat-widget] .-translate-x-1\\/2{--tw-translate-x: -50%;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))}[data-chat-widget] .-translate-y-1\\/2{--tw-translate-y: -50%;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))}[data-chat-widget] .translate-x-\\[var\\(--opencx-wobble-x\\)\\]{--tw-translate-x: var(--opencx-wobble-x);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))}[data-chat-widget] .translate-y-\\[var\\(--opencx-wobble-y\\)\\]{--tw-translate-y: var(--opencx-wobble-y);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}[data-chat-widget] .scale-\\[1\\.01\\]{--tw-scale-x: 1.01;--tw-scale-y: 1.01;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))}[data-chat-widget] .scale-\\[1\\.02\\]{--tw-scale-x: 1.02;--tw-scale-y: 1.02;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))}[data-chat-widget] .scale-\\[1\\.1\\]{--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))}[data-chat-widget] .scale-\\[1\\]{--tw-scale-x: 1;--tw-scale-y: 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))}@keyframes bounce{0%,to{transform:translateY(-25%);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{transform:none;animation-timing-function:cubic-bezier(0,0,.2,1)}}[data-chat-widget] .animate-bounce{animation:bounce 1s infinite}@keyframes pulse{50%{opacity:.5}}[data-chat-widget] .animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes spin{to{transform:rotate(360deg)}}[data-chat-widget] .animate-spin{animation:spin 1s linear infinite}[data-chat-widget] .cursor-default{cursor:default}[data-chat-widget] .cursor-pointer{cursor:pointer}[data-chat-widget] .select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}[data-chat-widget] .resize-none{resize:none}[data-chat-widget] .grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}[data-chat-widget] .flex-row{flex-direction:row}[data-chat-widget] .flex-col{flex-direction:column}[data-chat-widget] .flex-wrap{flex-wrap:wrap}[data-chat-widget] .items-start{align-items:flex-start}[data-chat-widget] .items-end{align-items:flex-end}[data-chat-widget] .items-center{align-items:center}[data-chat-widget] .justify-start{justify-content:flex-start}[data-chat-widget] .justify-end{justify-content:flex-end}[data-chat-widget] .justify-center{justify-content:center}[data-chat-widget] .justify-between{justify-content:space-between}[data-chat-widget] .gap-0\\.5{gap:.125rem}[data-chat-widget] .gap-1{gap:.25rem}[data-chat-widget] .gap-2{gap:.5rem}[data-chat-widget] .space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}[data-chat-widget] .space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}[data-chat-widget] .space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}[data-chat-widget] .space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}[data-chat-widget] .overflow-auto{overflow:auto}[data-chat-widget] .overflow-hidden{overflow:hidden}[data-chat-widget] .scroll-smooth{scroll-behavior:smooth}[data-chat-widget] .whitespace-nowrap{white-space:nowrap}[data-chat-widget] .rounded-2xl{border-radius:1rem}[data-chat-widget] .rounded-3xl{border-radius:1.5rem}[data-chat-widget] .rounded-full{border-radius:9999px}[data-chat-widget] .rounded-lg{border-radius:.5rem}[data-chat-widget] .rounded-md{border-radius:.375rem}[data-chat-widget] .rounded-sm{border-radius:.125rem}[data-chat-widget] .rounded-xl{border-radius:.75rem}[data-chat-widget] .rounded-bl-none{border-bottom-left-radius:0}[data-chat-widget] .border{border-width:1px}[data-chat-widget] .border-0{border-width:0px}[data-chat-widget] .border-2{border-width:2px}[data-chat-widget] .border-b{border-bottom-width:1px}[data-chat-widget] .border-destructive{border-color:hsl(var(--opencx-destructive))}[data-chat-widget] .border-input{border-color:hsl(var(--opencx-input))}[data-chat-widget] .border-primary{border-color:hsl(var(--opencx-primary))}[data-chat-widget] .border-transparent{border-color:transparent}[data-chat-widget] .bg-background{background-color:hsl(var(--opencx-background))}[data-chat-widget] .bg-black{--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity))}[data-chat-widget] .bg-black\\/50{background-color:#00000080}[data-chat-widget] .bg-destructive{background-color:hsl(var(--opencx-destructive))}[data-chat-widget] .bg-muted{background-color:hsl(var(--opencx-muted))}[data-chat-widget] .bg-primary{background-color:hsl(var(--opencx-primary))}[data-chat-widget] .bg-secondary{background-color:hsl(var(--opencx-secondary))}[data-chat-widget] .bg-transparent{background-color:transparent}[data-chat-widget] .bg-zinc-100{--tw-bg-opacity: 1;background-color:rgb(244 244 245 / var(--tw-bg-opacity))}[data-chat-widget] .bg-gradient-to-t{background-image:linear-gradient(to top,var(--tw-gradient-stops))}[data-chat-widget] .from-gray-100\\/30{--tw-gradient-from: rgb(243 244 246 / .3) var(--tw-gradient-from-position);--tw-gradient-to: rgb(243 244 246 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}[data-chat-widget] .from-primary\\/50{--tw-gradient-from: hsl(var(--opencx-primary) / .5) var(--tw-gradient-from-position);--tw-gradient-to: hsl(var(--opencx-primary) / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}[data-chat-widget] .via-primary{--tw-gradient-to: hsl(var(--opencx-primary) / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), hsl(var(--opencx-primary)) var(--tw-gradient-via-position), var(--tw-gradient-to)}[data-chat-widget] .to-gray-50\\/30{--tw-gradient-to: rgb(249 250 251 / .3) var(--tw-gradient-to-position)}[data-chat-widget] .to-primary{--tw-gradient-to: hsl(var(--opencx-primary)) var(--tw-gradient-to-position)}[data-chat-widget] .fill-current{fill:currentColor}[data-chat-widget] .object-contain{-o-object-fit:contain;object-fit:contain}[data-chat-widget] .object-cover{-o-object-fit:cover;object-fit:cover}[data-chat-widget] .p-0{padding:0}[data-chat-widget] .p-1{padding:.25rem}[data-chat-widget] .p-2{padding:.5rem}[data-chat-widget] .p-2\\.5{padding:.625rem}[data-chat-widget] .p-3{padding:.75rem}[data-chat-widget] .p-4{padding:1rem}[data-chat-widget] .px-2{padding-left:.5rem;padding-right:.5rem}[data-chat-widget] .px-3{padding-left:.75rem;padding-right:.75rem}[data-chat-widget] .px-4{padding-left:1rem;padding-right:1rem}[data-chat-widget] .px-8{padding-left:2rem;padding-right:2rem}[data-chat-widget] .py-1\\.5{padding-top:.375rem;padding-bottom:.375rem}[data-chat-widget] .py-12{padding-top:3rem;padding-bottom:3rem}[data-chat-widget] .py-2{padding-top:.5rem;padding-bottom:.5rem}[data-chat-widget] .py-3{padding-top:.75rem;padding-bottom:.75rem}[data-chat-widget] .py-4{padding-top:1rem;padding-bottom:1rem}[data-chat-widget] .pl-2{padding-left:.5rem}[data-chat-widget] .pl-3{padding-left:.75rem}[data-chat-widget] .pl-8{padding-left:2rem}[data-chat-widget] .pr-2{padding-right:.5rem}[data-chat-widget] .text-center{text-align:center}[data-chat-widget] .text-start{text-align:start}[data-chat-widget] .align-middle{vertical-align:middle}[data-chat-widget] .font-inter{font-family:Inter,sans-serif}[data-chat-widget] .text-2xl{font-size:1.5rem;line-height:2rem}[data-chat-widget] .text-\\[10px\\]{font-size:10px}[data-chat-widget] .text-base{font-size:1rem;line-height:1.5rem}[data-chat-widget] .text-sm{font-size:.875rem;line-height:1.25rem}[data-chat-widget] .text-xl{font-size:1.25rem;line-height:1.75rem}[data-chat-widget] .text-xs{font-size:.75rem;line-height:1rem}[data-chat-widget] .font-bold{font-weight:700}[data-chat-widget] .font-medium{font-weight:500}[data-chat-widget] .font-semibold{font-weight:600}[data-chat-widget] .leading-relaxed{line-height:1.625}[data-chat-widget] .leading-snug{line-height:1.375}[data-chat-widget] .leading-tight{line-height:1.25}[data-chat-widget] .tracking-widest{letter-spacing:.1em}[data-chat-widget] .text-blue-500{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity))}[data-chat-widget] .text-destructive{color:hsl(var(--opencx-destructive))}[data-chat-widget] .text-destructive-foreground{color:hsl(var(--opencx-destructive-foreground))}[data-chat-widget] .text-emerald-500{--tw-text-opacity: 1;color:rgb(16 185 129 / var(--tw-text-opacity))}[data-chat-widget] .text-foreground{color:hsl(var(--opencx-foreground))}[data-chat-widget] .text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}[data-chat-widget] .text-primary{color:hsl(var(--opencx-primary))}[data-chat-widget] .text-primary-foreground{color:hsl(var(--opencx-primary-foreground))}[data-chat-widget] .text-primary-foreground\\/90{color:hsl(var(--opencx-primary-foreground) / .9)}[data-chat-widget] .text-rose-500{--tw-text-opacity: 1;color:rgb(244 63 94 / var(--tw-text-opacity))}[data-chat-widget] .text-secondary-foreground{color:hsl(var(--opencx-secondary-foreground))}[data-chat-widget] .text-zinc-500{--tw-text-opacity: 1;color:rgb(113 113 122 / var(--tw-text-opacity))}[data-chat-widget] .text-zinc-600{--tw-text-opacity: 1;color:rgb(82 82 91 / var(--tw-text-opacity))}[data-chat-widget] .underline{text-decoration-line:underline}[data-chat-widget] .underline-offset-4{text-underline-offset:4px}[data-chat-widget] .antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}[data-chat-widget] .opacity-0{opacity:0}[data-chat-widget] .opacity-50{opacity:.5}[data-chat-widget] .opacity-60{opacity:.6}[data-chat-widget] .shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}[data-chat-widget] .shadow-2xl{--tw-shadow: 0 25px 50px -12px rgb(0 0 0 / .25);--tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}[data-chat-widget] .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)}[data-chat-widget] .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)}[data-chat-widget] .shadow-none{--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}[data-chat-widget] .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)}[data-chat-widget] .shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}[data-chat-widget] .outline-none{outline:2px solid transparent;outline-offset:2px}[data-chat-widget] .outline{outline-style:solid}[data-chat-widget] .ring-0{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}[data-chat-widget] .ring-2{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}[data-chat-widget] .ring-white{--tw-ring-opacity: 1;--tw-ring-color: rgb(255 255 255 / var(--tw-ring-opacity))}[data-chat-widget] .ring-offset-background{--tw-ring-offset-color: hsl(var(--opencx-background))}[data-chat-widget] .backdrop-blur-sm{--tw-backdrop-blur: blur(4px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}[data-chat-widget] .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}[data-chat-widget] .transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}[data-chat-widget] .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}[data-chat-widget] .transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}[data-chat-widget] .transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}[data-chat-widget] .duration-200{transition-duration:.2s}[data-chat-widget] .ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}@keyframes enter{0%{opacity:var(--tw-enter-opacity, 1);transform:translate3d(var(--tw-enter-translate-x, 0),var(--tw-enter-translate-y, 0),0) scale3d(var(--tw-enter-scale, 1),var(--tw-enter-scale, 1),var(--tw-enter-scale, 1)) rotate(var(--tw-enter-rotate, 0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity, 1);transform:translate3d(var(--tw-exit-translate-x, 0),var(--tw-exit-translate-y, 0),0) scale3d(var(--tw-exit-scale, 1),var(--tw-exit-scale, 1),var(--tw-exit-scale, 1)) rotate(var(--tw-exit-rotate, 0))}}[data-chat-widget] .animate-in{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}[data-chat-widget] .fade-in-0{--tw-enter-opacity: 0}[data-chat-widget] .zoom-in-95{--tw-enter-scale: .95}[data-chat-widget] .duration-200{animation-duration:.2s}[data-chat-widget] .ease-out{animation-timing-function:cubic-bezier(0,0,.2,1)}[data-chat-widget] .\\[animation-delay\\:-0\\.15s\\]{animation-delay:-.15s}[data-chat-widget] .\\[animation-delay\\:-0\\.3s\\]{animation-delay:-.3s}[data-chat-widget] .\\[background\\:radial-gradient\\(68\\.75\\%_68\\.75\\%_at_50\\%_100\\%\\,_\\#717171_0\\%\\,_\\#000000_100\\%\\)\\]{background:radial-gradient(68.75% 68.75% at 50% 100%,#717171,#000)}[data-chat-widget] .required:after{content:" *";color:red}[data-chat-widget] .file\\:border-0::file-selector-button{border-width:0px}[data-chat-widget] .file\\:bg-transparent::file-selector-button{background-color:transparent}[data-chat-widget] .file\\:text-sm::file-selector-button{font-size:.875rem;line-height:1.25rem}[data-chat-widget] .file\\:font-medium::file-selector-button{font-weight:500}[data-chat-widget] .file\\:text-primary-foreground::file-selector-button{color:hsl(var(--opencx-primary-foreground))}[data-chat-widget] .placeholder\\:text-muted-foreground::-moz-placeholder{color:hsl(var(--opencx-muted-foreground))}[data-chat-widget] .placeholder\\:text-muted-foreground::placeholder{color:hsl(var(--opencx-muted-foreground))}[data-chat-widget] .hover\\:bg-accent:hover{background-color:hsl(var(--opencx-accent))}[data-chat-widget] .hover\\:text-accent-foreground:hover{color:hsl(var(--opencx-accent-foreground))}[data-chat-widget] .hover\\:text-blue-600:hover{--tw-text-opacity: 1;color:rgb(37 99 235 / var(--tw-text-opacity))}[data-chat-widget] .hover\\:underline:hover{text-decoration-line:underline}[data-chat-widget] .hover\\:brightness-110:hover{--tw-brightness: brightness(1.1);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)}[data-chat-widget] .focus\\:bg-accent:focus{background-color:hsl(var(--opencx-accent))}[data-chat-widget] .focus\\:text-accent-foreground:focus{color:hsl(var(--opencx-accent-foreground))}[data-chat-widget] .focus-visible\\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}[data-chat-widget] .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)}[data-chat-widget] .focus-visible\\:ring-ring:focus-visible{--tw-ring-color: hsl(var(--opencx-ring))}[data-chat-widget] .focus-visible\\:ring-offset-2:focus-visible{--tw-ring-offset-width: 2px}[data-chat-widget] .focus-visible\\:ring-offset-background:focus-visible{--tw-ring-offset-color: hsl(var(--opencx-background))}[data-chat-widget] .active\\:scale-90:active{--tw-scale-x: .9;--tw-scale-y: .9;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))}[data-chat-widget] .active\\:scale-95:active{--tw-scale-x: .95;--tw-scale-y: .95;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))}[data-chat-widget] .active\\:shadow-none:active{--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}[data-chat-widget] .hover\\:active\\:scale-95:active:hover{--tw-scale-x: .95;--tw-scale-y: .95;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))}[data-chat-widget] .disabled\\:pointer-events-none:disabled{pointer-events:none}[data-chat-widget] .disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}[data-chat-widget] .disabled\\:opacity-0:disabled{opacity:0}[data-chat-widget] .disabled\\:opacity-50:disabled{opacity:.5}[data-chat-widget] .group:hover .group-hover\\:opacity-100{opacity:1}[data-chat-widget] .group:hover .group-hover\\:active\\:scale-90:active,[data-chat-widget] .group:active .group-active\\:scale-90{--tw-scale-x: .9;--tw-scale-y: .9;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))}[data-chat-widget] .data-\\[disabled\\]\\:pointer-events-none[data-disabled]{pointer-events:none}[data-chat-widget] .data-\\[state\\=checked\\]\\:translate-x-4[data-state=checked]{--tw-translate-x: 1rem;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))}[data-chat-widget] .data-\\[state\\=unchecked\\]\\:translate-x-0[data-state=unchecked]{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}[data-chat-widget] .data-\\[state\\=checked\\]\\:bg-primary[data-state=checked]{background-color:hsl(var(--opencx-primary))}[data-chat-widget] .data-\\[state\\=open\\]\\:bg-accent[data-state=open]{background-color:hsl(var(--opencx-accent))}[data-chat-widget] .data-\\[state\\=unchecked\\]\\:bg-input[data-state=unchecked]{background-color:hsl(var(--opencx-input))}[data-chat-widget] .data-\\[disabled\\]\\:opacity-50[data-disabled]{opacity:.5}[data-chat-widget] .data-\\[state\\=open\\]\\:animate-in[data-state=open]{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}[data-chat-widget] .data-\\[state\\=closed\\]\\:animate-out[data-state=closed]{animation-name:exit;animation-duration:.15s;--tw-exit-opacity: initial;--tw-exit-scale: initial;--tw-exit-rotate: initial;--tw-exit-translate-x: initial;--tw-exit-translate-y: initial}[data-chat-widget] .data-\\[state\\=closed\\]\\:fade-out-0[data-state=closed]{--tw-exit-opacity: 0}[data-chat-widget] .data-\\[state\\=open\\]\\:fade-in-0[data-state=open]{--tw-enter-opacity: 0}[data-chat-widget] .data-\\[state\\=closed\\]\\:zoom-out-95[data-state=closed]{--tw-exit-scale: .95}[data-chat-widget] .data-\\[state\\=open\\]\\:zoom-in-95[data-state=open]{--tw-enter-scale: .95}[data-chat-widget] .data-\\[side\\=bottom\\]\\:slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y: -.5rem}[data-chat-widget] .data-\\[side\\=left\\]\\:slide-in-from-right-2[data-side=left]{--tw-enter-translate-x: .5rem}[data-chat-widget] .data-\\[side\\=right\\]\\:slide-in-from-left-2[data-side=right]{--tw-enter-translate-x: -.5rem}[data-chat-widget] .data-\\[side\\=top\\]\\:slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y: .5rem}[data-chat-widget] .prose-a\\:underline :is(:where(a):not(:where([class~=not-prose],[class~=not-prose] *))){text-decoration-line:underline}[data-chat-widget] .prose-a\\:decoration-primary :is(:where(a):not(:where([class~=not-prose],[class~=not-prose] *))){text-decoration-color:hsl(var(--opencx-primary))}[data-chat-widget] .rtl\\:-scale-100:where([dir=rtl],[dir=rtl] *){--tw-scale-x: -1;--tw-scale-y: -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))}[data-chat-widget] .\\[\\&_span\\]\\:size-1 span{width:.25rem;height:.25rem}[data-chat-widget] .\\[\\&_span\\]\\:bg-secondary-foreground span{background-color:hsl(var(--opencx-secondary-foreground))}[data-chat-widget] .\\[\\&_svg\\]\\:pointer-events-none svg{pointer-events:none}[data-chat-widget] .\\[\\&_svg\\]\\:size-4 svg{width:1rem;height:1rem}[data-chat-widget] .\\[\\&_svg\\]\\:size-6 svg{width:1.5rem;height:1.5rem}[data-chat-widget] .\\[\\&_svg\\]\\:shrink-0 svg{flex-shrink:0}';function VV({className:e}){return z.jsx("svg",{width:"26",height:"32",viewBox:"0 0 26 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:jt("text-primary-foreground",e),children:z.jsx("path",{d:"M1.34103 25.6132H5.44245C5.74203 25.6228 6.02673 25.7462 6.23867 25.9582C6.45062 26.1703 6.5739 26.4551 6.58348 26.7548V30.8584C6.59305 31.1581 6.71634 31.443 6.92828 31.655C7.14023 31.8671 7.42492 31.9904 7.7245 32H18.2894C18.589 31.9904 18.8737 31.8671 19.0856 31.655C19.2976 31.443 19.4209 31.1581 19.4304 30.8584V26.7548C19.4401 26.4545 19.5638 26.1692 19.7765 25.957C19.9892 25.7449 20.2748 25.6219 20.5749 25.6132H24.659C24.9586 25.6036 25.2433 25.4803 25.4552 25.2682C25.6671 25.0562 25.7904 24.7713 25.8 24.4716V7.52839C25.7904 7.22865 25.6671 6.94381 25.4552 6.73176C25.2433 6.5197 24.9586 6.39635 24.659 6.38677H20.561C20.2603 6.37802 19.9742 6.25457 19.7614 6.04169C19.5487 5.82881 19.4253 5.54261 19.4165 5.24168V1.14161C19.4072 0.84419 19.2858 0.561291 19.0768 0.349589C18.8678 0.137887 18.5865 0.0130193 18.2894 0L7.7245 0C7.42492 0.00957792 7.14023 0.132929 6.92828 0.344983C6.71634 0.557036 6.59305 0.841878 6.58348 1.14161V5.24168C6.57477 5.54203 6.45187 5.82773 6.23983 6.04052C6.0278 6.25331 5.74262 6.37715 5.44245 6.38677H1.34103C1.04144 6.39635 0.756749 6.5197 0.544805 6.73176C0.332861 6.94381 0.209574 7.22865 0.200001 7.52839V24.4716C0.209574 24.7713 0.332861 25.0562 0.544805 25.2682C0.756749 25.4803 1.04144 25.6036 1.34103 25.6132ZM6.58348 24.4716V7.52839C6.59305 7.22865 6.71634 6.94381 6.92828 6.73176C7.14023 6.5197 7.42492 6.39635 7.7245 6.38677H18.2894C18.589 6.39635 18.8737 6.5197 19.0856 6.73176C19.2976 6.94381 19.4209 7.22865 19.4304 7.52839V24.4716C19.4209 24.7713 19.2976 25.0562 19.0856 25.2682C18.8737 25.4803 18.589 25.6036 18.2894 25.6132H7.7245C7.42492 25.6036 7.14023 25.4803 6.92828 25.2682C6.71634 25.0562 6.59305 24.7713 6.58348 24.4716Z",fill:"currentColor"})})}function YV({isOpen:e}){const{theme:n}=Tt.useConfigData();return z.jsx(UR,{"data-chat-widget":!0,style:{fontSize:"16px",position:"fixed",zIndex:1e7,...G3({primary:n.primaryColor},{triggerOffset:n.triggerOffset}),right:n.triggerOffset,bottom:n.triggerOffset},className:jt("size-12 font-inter flex items-center justify-center"),children:z.jsx(Wm,{children:z.jsx("div",{className:jt("relative size-full rounded-full","flex items-center justify-center","transition-all","[background:radial-gradient(68.75%_68.75%_at_50%_100%,_#717171_0%,_#000000_100%)]","text-primary-foreground","shadow-xl","active:scale-90","[&_svg]:size-6"),children:z.jsx(ta.AnimatePresence,{mode:"wait",children:e?z.jsx(io,{snapExit:!0,fadeIn:"up",overrides:{initial:{rotate:45},animate:{rotate:0}},children:z.jsx(Yn.XIcon,{})},"x-icon"):z.jsx(io,{snapExit:!0,overrides:{initial:{rotate:45},animate:{rotate:0}},children:z.jsx(VV,{})},"message-icon")})})})})}const WV=`<!DOCTYPE html>
|
|
243
243
|
<html>
|
|
244
244
|
<head>
|
|
245
245
|
<style>
|